/* Medienbro Concierge — Restaurant-Template
   Mobil-first, kein Framework, system-ui-Stack, 3 Varianten via Custom Properties. */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ---------- Icon-System (design-politur 2026-07) ----------
   Ersetzt Emoji (📞 💬 📣 🚫 🧾 🌱 🌿 🌶 ⭐ ✨ ...) durch EIN Set aus
   templates/restaurant/_icons.html.jinja: 24x24-Raster, stroke="currentColor",
   folgt der Textfarbe automatisch (auch je Variante warm/fresh/bold).
   Skaliert per 1em mit der Schriftgroesse der jeweiligen Stelle -- ein Icon in
   einem 0.74rem-Badge ist automatisch kleiner als eines im 1rem-Button. */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -0.125em;
}

/* ---------- Design-Tokens (Basis) ---------- */
:root {
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  --max-width: 68rem;
  --narrow-width: 44rem;
}

/* Variante WARM — Terracotta / Creme (klassisches Restaurant, Imbiss) */
.variant-warm {
  --bg: #faf4ec;
  --surface: #ffffff;
  --surface-alt: #f3e8da;
  --ink: #382318;
  --muted: #74594a;
  --line: #e8d9c8;
  --line-strong: #cbb49d;
  --accent: #a63c14;
  --accent-hover: #8a3110;
  --accent-ink: #ffffff;
  --accent-soft: #f7e2d7;
  --hero-bg: linear-gradient(160deg, #541f0a 0%, #71290e 55%, #843d1d 100%);
  --hero-ink: #fff6ee;
  /* Kontrast-Fix v2 (25.07.2026): der erste Fix hatte --hero-muted auf
     #0d0702 (fast schwarz) gesetzt -- rechnerisch WCAG-AA-konform (4,57:1),
     sah aber stumpf/tot aus. Jetzt stattdessen den Gradient selbst um 32%
     Richtung Schwarz abgedunkelt (Tiefe/Kontrast statt schwarzer Text) und
     den warmen, hellen Ton von vorher zurückgeholt: #f6d9c5 auf der
     hellsten Gradient-Stelle #843d1d misst jetzt 5,87:1 -- komfortabel
     ueber 4,5:1 UND sichtbar waermer/schoener als reines Schwarz. */
  --hero-muted: #f6d9c5;
  --banner-bg: #38251a;
  --banner-ink: #ffe9d6;
  --footer-bg: #38251a;
  --footer-ink: #eedbc9;
}

/* Variante FRESH — Grün / hell (frisch, gesund, Café) */
.variant-fresh {
  --bg: #f5faf5;
  --surface: #ffffff;
  --surface-alt: #e8f3e8;
  --ink: #16281c;
  --muted: #48604f;
  --line: #d7e6d8;
  --line-strong: #a9c5ab;
  --accent: #1e6b3c;
  --accent-hover: #175330;
  --accent-ink: #ffffff;
  --accent-soft: #ddefe2;
  --hero-bg: linear-gradient(160deg, #0e2b1a 0%, #144929 60%, #1f5e36 100%);
  --hero-ink: #f2fbf4;
  /* Kontrast-Fix v2 (25.07.2026): analog zu warm -- Gradient um 32% Richtung
     Schwarz abgedunkelt statt Text schwaerzen. #cbe8d2 auf der hellsten
     Gradient-Stelle #1f5e36 misst jetzt 5,90:1 statt vorher 3,29:1 (mit
     dem alten hellen Gruenton) bzw. statt eines fast-schwarzen Fix-Tons. */
  --hero-muted: #cbe8d2;
  --banner-bg: #143f26;
  --banner-ink: #dff3e4;
  --footer-bg: #142b1c;
  --footer-ink: #cfe3d4;
}

/* Variante BOLD — dunkel / Rot-Orange (Schnellgastro, Streetfood) */
.variant-bold {
  --bg: #17181c;
  --surface: #212329;
  --surface-alt: #2a2c33;
  --ink: #f4efe8;
  --muted: #b8b2a8;
  --line: #34363e;
  --line-strong: #4c4f59;
  --accent: #ff6b35;
  --accent-hover: #ff8556;
  --accent-ink: #23110a;
  --accent-soft: #3a2118;
  --hero-bg: linear-gradient(160deg, #101114 0%, #2a1510 60%, #4a1d0d 100%);
  --hero-ink: #fef4ec;
  /* Kontrast-Check (Nutzertest-Audit): #e8c2ad auf #4a1d0d (hellste Stelle des
     Hero-Gradients) misst bereits 8,66:1 -- unveraendert, deutlich ueber 4,5:1. */
  --hero-muted: #e8c2ad;
  --banner-bg: #ff6b35;
  --banner-ink: #23110a;
  --footer-bg: #101114;
  --footer-ink: #b8b2a8;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* ---------- Grundlayout ---------- */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section-narrow { max-width: var(--narrow-width); }
.section { padding: 4rem 0; }

h1, h2, h3 { line-height: 1.2; text-wrap: balance; }
h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 1.75rem;
  letter-spacing: -0.01em;
}
h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  margin-top: 0.6rem;
  border-radius: 2px;
  background: var(--accent);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.5rem 1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Preview-Banner ---------- */
.preview-banner {
  position: sticky;
  top: 0;
  z-index: 60;
  background: repeating-linear-gradient(-45deg, #1d232b, #1d232b 14px, #2c333d 14px, #2c333d 28px);
  color: #ffd166;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
}

/* ---------- Demo-Hinweis oben (design.demo_badge) ----------
   Bewusst unaufdringlich: kein Sticky, keine Warnfarbe -- Ehrlichkeit ist bei
   diesem Produkt Verkaufsargument, kein Makel. Der werbliche Hinweis mit Link
   bleibt zusaetzlich im Footer (site-footer .demo-badge). */
.demo-top-badge {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  padding: 0.4rem 1rem;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02), 0 4px 16px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 50;
}
.preview-banner + .site-header { top: 2.1rem; }
.site-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.brand-logo { border-radius: 8px; }

/* ---------- Mobile-Navigation (Burger-Menue) ----------
   Unter 48rem: .nav-links ist ein fixes Panel, das von rechts einschiebt (per
   Transform, respektiert prefers-reduced-motion global). .nav-toggle oeffnet/
   schliesst es (Logik in index.html.jinja: Fokus-Falle, ESC, Backdrop-Klick,
   Klick auf Link). Ab 48rem: Toggle/Backdrop ausgeblendet, Panel liegt normal
   inline als horizontale Liste -- siehe "Groessere Screens" weiter unten. */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle:hover { border-color: var(--accent); }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.35rem;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -0.42rem; }
.nav-toggle-bars::after { top: 0.42rem; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.nav-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(20, 15, 10, 0.45);
}
.nav-panel-backdrop[hidden] { display: none; }

.nav-links {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 65;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: min(19rem, 84vw);
  padding: calc(var(--header-h, 4rem) + 1.25rem) 1.25rem 1.5rem;
  background: var(--surface);
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  font-size: 1.02rem;
  overflow-y: auto;
}
.nav-links.is-open { transform: translateX(0); }
.nav-links a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-alt); }
.nav-links a:focus-visible,
.btn:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.variant-bold .nav-links a:focus-visible,
.variant-bold .btn:focus-visible,
.variant-bold a:focus-visible { outline-color: var(--accent-hover); }

/* ---------- Announcement ---------- */
/* Bewusst KEIN Flex-Container fuer Icon+Text: als zwei Flex-Items wrappen sie auf
   schmalen Screens auf eigene Zeilen (Icon isoliert oben, Text darunter zentriert)
   -- unruhig. Als normaler zentrierter Textfluss mit inline-block-Icon wickeln
   Icon und erstes Wort zusammen um, wie ein normaler Satz. */
.announcement {
  background: var(--banner-bg);
  color: var(--banner-ink);
  text-align: center;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  animation: announcement-slide-in 0.5s ease both;
}
.announcement-icon {
  display: inline-block;
  margin-right: 0.4rem;
}
@keyframes announcement-slide-in {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--hero-bg);
  color: var(--hero-ink);
  padding: 4.5rem 0 4rem;
  overflow: hidden;
}
/* Optionales Hero-Bild (design.hero_image): das Bild liegt ganzflaechig hinter
   dem Inhalt, ein Farbverlauf in der Variantenfarbe legt sich als Schleier
   darueber -- garantiert denselben Textkontrast wie ohne Bild (siehe Tests),
   gibt der Flaeche aber Tiefe/Textur statt eines reinen Verlaufs. */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-bg);
  /* 0.93 statt z.B. 0.86: rechnerisch geprueft gegen den denkbar ungnuedigsten
     Fall (reinweisse Bildstelle unter dem Text, hellste Gradient-Stelle) --
     bei 0.86 faellt der Text-Kontrast auf ~4.17:1 (unter AA); bei 0.93 bleibt
     er auch im Extremfall > 4.5:1, siehe test_hero_image_overlay_worst_case_contrast. */
  opacity: 0.93;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--hero-muted);
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 7.5vw, 4.25rem);
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 0.6rem;
  text-wrap: balance;
}
.hero-tagline {
  font-size: clamp(1.08rem, 2.5vw, 1.4rem);
  line-height: 1.5;
  color: var(--hero-muted);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.hero-actions .btn { width: 100%; }
@media (min-width: 30rem) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-actions .btn { width: auto; }
}
.hero-status { font-weight: 700; font-size: 0.95rem; }
.hero-status.is-open::before,
.hero-status.is-closed::before {
  content: "";
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  margin-right: 0.45rem;
  background: #48d17c;
}
.hero-status.is-closed::before { background: #f2b8a2; }
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.feature-pills li {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--hero-ink);
  border-radius: 999px;
  padding: 0.2rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  white-space: nowrap;
  min-height: 2.75rem;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--accent-hover); }
.hero .btn-primary {
  background: #ffffff;
  color: #33241c;
}
.variant-fresh .hero .btn-primary { color: #143f26; }
.variant-bold .hero .btn-primary { background: var(--accent); color: var(--accent-ink); }
.hero .btn-primary:hover { filter: brightness(0.94); }
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-secondary:hover { background: var(--accent-soft); }
.hero .btn-secondary {
  color: var(--hero-ink);
  border-color: rgba(255, 255, 255, 0.55);
}
.hero .btn-secondary:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Speisekarte ---------- */
.menu { background: var(--bg); }

.menu-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: -1rem 0 1.5rem;
  max-width: 42rem;
}

/* Direktbestellung pausiert (features.orders_paused): deutlich sichtbar, aber kein
   Alarmrot -- ein Betrieb, der bewusst pausiert, macht nichts falsch. */
.order-paused-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-alt);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  max-width: 42rem;
}

/* Kategorie-Sprungleiste: nur gerendert bei >2 Kategorien (has_menu_jump). Sticky
   direkt unter dem Header, horizontal scrollbar auf mobil, faellt ohne JS auf
   einfache Anker-Links zurueck (kein active-state, aber voll funktionsfaehig). */
.menu-jump {
  position: sticky;
  top: var(--header-h, 4rem);
  z-index: 40;
  background: var(--bg);
  padding: 0.6rem 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.menu-jump-list {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 0.2rem;
}
.menu-jump-chip {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  min-height: 2.75rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.menu-jump-chip:hover { border-color: var(--accent); color: var(--accent); }
.menu-jump-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.menu-category {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.menu-category:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12); }
.variant-bold .menu-category:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5); }
.menu-category h3 {
  font-size: 1.25rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-soft);
  color: var(--accent);
  letter-spacing: 0.01em;
}
.variant-bold .menu-category h3 { color: var(--accent); }
.menu-item { padding: 0.85rem 0; border-bottom: 1px dashed var(--line); }
.menu-item:last-child { border-bottom: 0; padding-bottom: 0.25rem; }
.menu-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.6rem;
}
.menu-item-name { font-weight: 700; font-size: 1.02rem; }
.menu-item-number {
  display: inline-block;
  min-width: 1.9rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
/* Badges leben als eigene Gruppe NEBEN dem Namen (nicht mehr als Text darin
   verschachtelt) -- so wickeln sie als geschlossene Einheit um, statt
   mitten im Namenstext zu zerreissen. */
.menu-item-badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.menu-item-badges .badge { margin-left: 0; }
.menu-dots {
  flex: 1 1 auto;
  min-width: 1.5rem;
  border-bottom: 2px dotted var(--line-strong);
  transform: translateY(-0.28em);
}
.menu-item-price {
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.menu-item-desc {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.15rem;
  max-width: 38rem;
}
.menu-variants { margin-top: 0.5rem; }
.menu-variants li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.6rem;
  padding: 0.25rem 0 0.25rem 1.1rem;
  border-left: 2px solid var(--line);
}
.menu-variants li + li { margin-top: 0.15rem; }
.variant-name { color: var(--muted); font-size: 0.95rem; font-weight: 600; }

/* Speisekarte: mobile Politur (<480px). Punkt-Leader wirken auf sehr schmalen
   Screens unruhig (Preis "schwimmt" mitten in der Zeile, Badges/Stepper quetschen
   sich neben den Namen). Ab hier bekommt der Name (+Badges) eine eigene Zeile,
   Preis (+Stepper) rutscht rechtsbuendig und fett in die Zeile darunter -- klare
   Hierarchie Name > Beschreibung > Preis, kein Punktgewusel. */
@media (max-width: 29.9375rem) {
  .menu-dots { display: none; }
  .menu-item-head,
  .menu-variants li {
    justify-content: flex-end;
    row-gap: 0.4rem;
    column-gap: 0.85rem;
  }
  .menu-item-name,
  .variant-name,
  .menu-item-badges {
    flex: 1 1 100%;
  }
  .menu-item-badges { margin-top: -0.05rem; }
  .menu-item-price {
    font-size: 1.1rem;
  }
  .menu-item { padding: 1.15rem 0; }
  .menu-item-desc { margin-top: 0.35rem; }
  .menu-category { margin-bottom: 1.85rem; }
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 0.18rem 0.65rem;
  margin-left: 0.35rem;
  vertical-align: 0.12em;
  background: var(--surface-alt);
  color: var(--muted);
  border: 1px solid var(--line);
}
.badge-beliebt { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.variant-bold .badge-beliebt { color: var(--accent-hover); }
.badge-neu { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.badge-vegetarisch, .badge-vegan { background: #e2efdd; color: #2a5a26; border-color: transparent; }
.variant-bold .badge-vegetarisch, .variant-bold .badge-vegan { background: #24331f; color: #a4d69a; }
.badge-scharf { background: #fbe3da; color: #9c2f0f; border-color: transparent; }
.variant-bold .badge-scharf { background: #3c1c11; color: #ffab8a; }
/* Ausverkauft (items[].sold_out_until, lauft automatisch zum Tagesende ab): deutlich
   staerker als die Geschmacks-Badges, damit es nicht mit "scharf" verwechselt wird. */
.badge-sold-out { background: #7a1f0a; color: #ffffff; border-color: transparent; font-weight: 800; }
.variant-bold .badge-sold-out { background: #ff6b35; color: #23110a; }

/* ---------- Über uns ---------- */
.about { background: var(--surface); border-block: 1px solid var(--line); }
.about p { margin-bottom: 1rem; max-width: 40rem; font-size: 1.05rem; }
.about p:last-child { margin-bottom: 0; }

/* ---------- Team / Über uns ---------- */
.team { background: var(--bg); }
.team-hero-photo {
  width: 100%;
  max-width: 44rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.team-intro { max-width: 40rem; font-size: 1.05rem; color: var(--muted); margin-bottom: 2rem; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1.5rem 1.25rem;
  max-width: 52rem;
}
.team-card { text-align: center; }
.team-photo,
.team-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  margin: 0 auto 0.85rem;
  box-shadow: var(--shadow);
}
.team-photo { object-fit: cover; }
.team-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 2.2rem;
  font-weight: 800;
  border: 1px solid var(--line);
}
.variant-bold .team-avatar { color: var(--accent); }
.team-name { font-weight: 750; font-size: 1.02rem; }
.team-role { color: var(--muted); font-size: 0.9rem; margin-top: 0.15rem; }

/* ---------- Galerie ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16); }
.variant-bold .gallery-item:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* ---------- Öffnungszeiten ---------- */
.hours { background: var(--surface); border-block: 1px solid var(--line); }
.hours-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.5rem 1.25rem;
}
.hours-table th, .hours-table td {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}
.hours-table th { font-weight: 600; width: 45%; }
.hours-table td { font-variant-numeric: tabular-nums; }
.hours-table tr.is-today th, .hours-table tr.is-today td {
  background: var(--accent-soft);
  font-weight: 750;
}
.hours-table tr.is-today th { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.hours-table tr.is-today td { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.today-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  margin-left: 0.4rem;
  vertical-align: 0.14em;
}
.hours-note { margin-top: 0.9rem; color: var(--muted); font-size: 0.92rem; }

/* ---------- Kontakt ---------- */
.contact-card {
  font-style: normal;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.4rem;
  margin-bottom: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12); }
.variant-bold .contact-card:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5); }
.contact-name { font-weight: 800; font-size: 1.15rem; margin-bottom: 0.3rem; }
.contact-card p { display: flex; align-items: center; min-height: 1.6rem; }
.contact-card a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.contact-card a:hover { color: var(--accent-hover); }
.variant-bold .contact-card a { color: var(--accent); }
.variant-bold .contact-card a:hover { color: var(--accent-hover); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; }
.link-social {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.link-social:hover { color: var(--accent-hover); }

/* ---------- Legal ---------- */
.legal-page h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin-bottom: 1.5rem; }
.legal-page p { margin-bottom: 1rem; max-width: 40rem; }
.legal-page h2 { font-size: 1.3rem; margin: 1.75rem 0 0.75rem; }
.legal-page h2::after { display: none; }
.legal-placeholder {
  background: var(--surface-alt);
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}
.legal-placeholder p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 2rem 0;
  font-size: 0.92rem;
}
.demo-badge {
  background: rgba(0, 0, 0, 0.18);
  color: var(--footer-ink);
  text-align: center;
  font-size: 0.82rem;
  padding: 0.55rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.demo-badge a {
  color: inherit;
  font-weight: 700;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}
.demo-badge a:hover { color: #ffffff; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: inherit;
  font-weight: 600;
  text-underline-offset: 3px;
}
.site-footer a:hover { color: #ffffff; }

/* ---------- Scroll-Reveal (dezente Motion) ---------- */
/* .js wird per Inline-Script ganz oben im <body> gesetzt, damit ohne JS
   (oder bei deaktiviertem Script) alle Inhalte sofort normal sichtbar bleiben. */
.js .reveal {
  opacity: 0;
  transform: translateY(1rem);
}
.js .reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ---------- Bestell-Spickzettel (Feature: order_list) ---------- */
.order-stepper {
  display: inline-flex;
  align-items: center;
  align-self: center;
  flex-shrink: 0;
  gap: 0.35rem;
}
.order-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  min-height: 2.25rem;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.order-btn:hover { border-color: var(--accent); color: var(--accent); }
.order-btn:disabled { opacity: 0.4; cursor: default; }
.order-stepper .order-btn-minus,
.order-stepper .order-qty { display: none; }
.order-stepper.has-qty .order-btn-minus,
.order-stepper.has-qty .order-qty { display: inline-flex; }
.order-stepper.has-qty .order-btn-plus {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.order-qty {
  min-width: 1.4rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.order-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.18);
}
.order-bar[hidden] { display: none; }
.order-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem env(safe-area-inset-bottom, 0);
}
.order-bar-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  text-align: center;
}
.order-bar-toggle:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: -3px; }

.order-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(20, 15, 10, 0.5);
}
.order-panel-backdrop[hidden] { display: none; }
.order-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
}
.order-panel[hidden] { display: none; }
.order-panel-inner { padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0)); }
.order-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.order-panel-head h2 { font-size: 1.2rem; margin: 0; }
.order-panel-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
}
.order-panel-close:hover { background: var(--accent-soft); color: var(--accent); }
.order-panel-empty { color: var(--muted); margin-bottom: 0.5rem; }
.order-panel-list { margin-bottom: 0.5rem; }
.order-panel-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}
.order-panel-item:last-child { border-bottom: 0; }
.order-panel-item-price { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.order-panel-total {
  font-weight: 800;
  font-size: 1.05rem;
  padding-top: 0.5rem;
  border-top: 2px solid var(--line);
  margin-bottom: 0.75rem;
}
/* Rechtlich/geschaeftlich wichtig: der Bestellzettel darf keine Bestellung
   vortaeuschen -- deshalb fett statt gedaempft wie der Hinweis darunter. */
.order-panel-disclaimer { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.4rem; }
.order-panel-hint { color: var(--muted); font-size: 0.85rem; margin-bottom: 1rem; }
.order-panel-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.order-panel-actions .btn { width: 100%; }

@media (min-width: 40rem) {
  .order-panel {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(28rem, 90vw);
    max-height: 80vh;
    border-radius: var(--radius);
  }
  .order-panel-actions { flex-direction: row; }
  .order-panel-actions .btn { width: auto; flex: 1 1 auto; }
}

/* ---------- Grössere Screens ---------- */
@media (min-width: 48rem) {
  .section { padding: 5rem 0; }
  .hero { padding: 7rem 0 6rem; }
  .menu-category { padding: 2rem 2rem; }
  .hours-table th { width: 40%; }

  /* Ab hier normale horizontale Nav statt Burger-Panel. */
  .nav-toggle { display: none; }
  .nav-panel-backdrop { display: none !important; }
  .nav-links {
    position: static;
    z-index: auto;
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    transition: none;
    overflow: visible;
    font-size: 0.95rem;
  }
  .nav-links a { min-height: 2.75rem; }
}

/* Body-Scroll sperren, waehrend das mobile Nav-Panel offen ist (nur < 48rem
   relevant, da .nav-open sonst wirkungslos bleibt -- Panel ist dort statisch). */
@media (max-width: 47.9375rem) {
  body.nav-open { overflow: hidden; }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .menu-category:hover,
  .gallery-item:hover,
  .contact-card:hover { transform: none; }
  .announcement { animation: none; }
}
html { scroll-behavior: smooth; }
