@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/libre-baskerville-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Libre Baskerville';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/libre-baskerville-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/libre-baskerville-bold.woff2') format('woff2');
}

@font-face {
  font-family: 'Noto Sans TC';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/noto-sans-tc-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Noto Sans TC';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/noto-sans-tc-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Noto Sans TC';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/noto-sans-tc-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Noto Sans TC';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/noto-sans-tc-700.woff2') format('woff2');
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #ffffff;
  --color-card-bg: #fafafa;
  --color-text: #111111;
  --color-muted: #999999;
  --color-border: #e8e8e8;
  --font-headline: 'Libre Baskerville', 'Baskerville', Georgia, serif;
  --font-body: 'Noto Sans TC', 'Helvetica Neue', Arial, sans-serif;
}

html {
  height: 100%;
  width: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-headline);
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.6;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  background: var(--color-bg);
  text-align: center;
  padding: 5rem 2rem 4rem;
}

.hero-content {
  max-width: 680px;
}

.hero-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.hero-logo {
  height: 48px;
  object-fit: contain;
}

.hero-logo-lai {
  height: 60px;
}

.hero-logos-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

.hero-tagline {
  font-family: var(--font-headline);
  font-size: 1.85rem;
  color: var(--color-text);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.01em;
}

.hero-tagline em {
  font-style: italic;
}


.section-divider {
  width: 60px;
  height: 1px;
  background: var(--color-border);
  margin: 0 auto;
}

.restaurants {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(6, auto);
  column-gap: 1.5rem;
  row-gap: 0;
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}

.restaurant-card {
  border-radius: 12px;
  overflow: visible;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease;
  display: grid;
  grid-row: span 6;
  grid-template-rows: subgrid;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
}

.badge-wochenkarte {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #B26D28;
  color: #fff;
  font-family: var(--font-headline);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.15;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s;
  padding: 0;
}

.badge-wochenkarte:hover {
  transform: scale(1.08);
}

.restaurant-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.card-inner {
  display: contents;
}

.card-logo {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-logo img {
  max-width: 180px;
  max-height: 100px;
  object-fit: contain;
}

.restaurant-card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
  color: var(--color-text);
}

.restaurant-card .subtitle {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.3px;
}

.btn-reserve {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text);
  border: 1px solid var(--color-text);
  padding: 0.6rem 1.8rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.btn-reserve:hover {
  background: var(--color-text);
  color: var(--color-bg);
  opacity: 1;
}

.btn-menu {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-muted);
  background: none;
  border: 1px solid var(--color-border);
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-menu:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}

.card-details {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  align-self: start;
}

.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 1.5;
}

.detail-row svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-muted);
}

.detail-row a {
  text-decoration: underline;
  text-decoration-color: var(--color-border);
  text-underline-offset: 3px;
}

.detail-row a:hover {
  text-decoration-color: var(--color-text);
  opacity: 1;
}

footer {
  background: var(--color-bg);
  padding: 2.5rem 2rem 3rem;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-divider {
  color: var(--color-muted);
  font-weight: 300;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.link-btn {
  background: none;
  border: none;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s;
  padding: 0;
}

.link-btn:hover {
  opacity: 1;
}

.footer-copy {
  font-size: 0.7rem;
  color: var(--color-muted);
}

.footer-copy a {
  color: var(--color-muted);
  text-decoration: underline;
  text-decoration-color: var(--color-border);
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.footer-copy a:hover {
  color: var(--color-text);
  opacity: 1;
}

.hero-sub {
  font-family: var(--font-headline);
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-top: 2.5rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.legal-dialog {
  border: none;
  border-radius: 12px;
  padding: 0;
  max-width: 580px;
  width: 90vw;
  max-height: 80vh;
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

.legal-dialog::backdrop {
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
}

.dialog-content {
  padding: 2.5rem;
  overflow-y: auto;
  max-height: 80vh;
  position: relative;
}

.dialog-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-muted);
  line-height: 1;
  transition: color 0.2s;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dialog-close:hover {
  color: var(--color-text);
}

.dialog-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.dialog-content h3 {
  font-size: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.dialog-content p {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
  color: #444;
}

.dialog-content h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.dialog-content ul {
  font-size: 0.85rem;
  line-height: 1.7;
  color: #444;
  margin: 0.5rem 0 0.75rem 1.25rem;
}

.dialog-content ul li {
  margin-bottom: 0.25rem;
}

.dialog-content a {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--color-border);
  text-underline-offset: 2px;
}

.dialog-content a:hover {
  text-decoration-color: var(--color-text);
}

.menu-dialog {
  border: none;
  border-radius: 12px;
  padding: 0;
  max-width: 720px;
  width: 92vw;
  max-height: 90vh;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
  background: var(--color-bg);
}

.menu-dialog::backdrop {
  background: rgba(0,0,0,0.5);
}

.menu-content {
  overflow-y: auto;
  max-height: 88vh;
  padding: 2.5rem 2rem 2rem;
}

.menu-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.menu-logo {
  height: 50px;
  margin-bottom: 0.75rem;
}

.menu-header h2 {
  font-family: var(--font-headline);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.menu-note {
  font-size: 0.75rem;
  color: var(--color-muted);
  font-style: italic;
}

.menu-content h3 {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text);
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--color-border);
}

.menu-content h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.menu-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.menu-item.has-image {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.menu-item.has-image img {
  width: 110px;
  height: 85px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.menu-item-info {
  flex: 1;
  min-width: 0;
}

.menu-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.menu-item-head strong {
  font-weight: 500;
}

.price {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-item p {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--color-muted);
  margin-top: 0.15rem;
}

.lunch-special {
  color: #B26D28;
  font-size: 0.75rem;
  font-style: italic;
  margin-top: 0.4rem;
}

.wk-sides {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
  font-style: italic;
}

.menu-variants {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
}

.menu-variants li {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #555;
  padding: 0.15rem 0;
}

.menu-extras {
  margin-bottom: 0.5rem;
}

.menu-extras .menu-item-head {
  padding: 0.3rem 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 0.82rem;
}

.menu-extras .menu-item-head span:first-child {
  color: #444;
}

.btn-pdf {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  padding: 0.4rem 1.2rem;
  border-radius: 4px;
  margin-top: 0.5rem;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-pdf:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}

@media (max-width: 768px) {
  .hero {
    min-height: 40vh;
    padding: 3rem 1.5rem 2.5rem;
  }

  .hero-tagline {
    font-size: 1.4rem;
  }

  .hero-logo {
    height: 36px;
  }

  .hero-logo-lai {
    height: 44px;
  }

  .restaurants {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    padding: 2.5rem 1rem 3rem;
    row-gap: 1.25rem;
  }

  .restaurant-card {
    grid-row: auto;
    grid-template-rows: none;
    padding: 2rem 1.5rem;
  }

  .menu-content {
    padding: 2rem 1.25rem 1.5rem;
  }

  .menu-item.has-image {
    flex-direction: column;
  }

  .menu-item.has-image img {
    width: 100%;
    height: 160px;
    border-radius: 6px;
  }
}

@media (max-width: 480px) {
  .hero-tagline {
    font-size: 1.15rem;
  }

  .hero-logos {
    gap: 1.25rem;
    margin-bottom: 2rem;
  }

  .restaurant-card h2 {
    font-size: 1.15rem;
  }

  .restaurant-card {
    padding: 1.5rem 1.25rem;
  }
}
