/* ==========================================================
   miraMENU — Premium Guest Frontend (Phase 12)
   Design-System: Restaurant-Grade Editorial · Mobile-First · 2026
   ========================================================== */

/* Ersatzschriften mit angeglichenen Massen (seit 30.10.2026). Inter und
   Cormorant stehen auf font-display: optional (fonts-local.css): kommt eine
   Schrift nicht zum ersten Bild, bleibt der Aufruf bei der Ersatzschrift, statt
   spaeter umzuschalten und die Karte springen zu lassen. Diese Regeln geben der
   Ersatzschrift Hoehe und mittlere Breite der echten.

   Zahlen aus den Schriftdateien, gerechnet mit Capsize wie
   sites/com/tools/schrift-ersatzmasse.mjs (Inter gegen Arial, gleich wie auf
   mirateq.com; Cormorant 400-600 gegen Times New Roman). Nach einem
   Schriftwechsel neu rechnen, nicht von Hand anpassen. Kursiv nimmt dieselbe
   Regel, die Hoehen sind gleich. */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial'), local('ArialMT');
  ascent-override: 90.4365%;
  descent-override: 22.518%;
  line-gap-override: 0%;
  size-adjust: 107.1194%;
}
@font-face {
  font-family: 'Cormorant Garamond Fallback';
  src: local('Times New Roman'), local('TimesNewRomanPSMT');
  ascent-override: 95.7589%;
  descent-override: 29.7433%;
  line-gap-override: 0%;
  size-adjust: 96.4923%;
}

:root {
  --bg:          #fdfbf6;          /* cream paper */
  --bg-elev:     #ffffff;           /* card surface */
  --ink:         #2c1810;           /* deep umber — instead of pure black */
  --ink-muted:   #5c4838;           /* WCAG AA on cream bg (was #6b5544 — too light) */
  --ink-faint:   #886f57;           /* gestaltet #8a7058, lesbare Stufe auf Creme */
  --line:        #ece5d8;           /* hairline divider */
  --accent:      #c1474e;           /* rich Thai-red, signature CTA */
  --accent-dk:   #9c3a40;
  --gold:        #a07c34;           /* price + premium accents */
  --sage:        #7a8771;           /* fresh/veg hint */
  /* Schrift in Markenfarben. Flaechen, Punkte und Rahmen nehmen weiter die
     Farbe selbst, Text die lesbare Stufe (Regel D5). Die Werte hier gelten ohne
     eigenes Branding. Mit Branding rechnet index.php sie fuer den Grund des
     Betriebs neu (includes/farben.php), tools/test-farben.php haelt beide gleich. */
  --accent-text: #c1474e;
  --on-accent:   #ffffff;           /* Schrift auf einer Flaeche in --accent */
  --sage-text:   #6c7864;
  --raw-text:    #3577b4;
  /* LINE (der Messenger, nicht --line die Haarlinie): Markengruen #06C755 traegt
     weisse Schrift nur mit 2,26:1. Fuer Flaechen mit Text gilt die dunkle Stufe
     aus D5, 5,06:1. Das Gruen selbst bleibt fuer Leuchten und Schatten. */
  --line-brand-cta: #04803A;
  --shadow-sm:           0 1px 2px rgba(44,24,16,.04), 0 1px 3px rgba(44,24,16,.06);
  --shadow-md:           0 4px 12px rgba(44,24,16,.06), 0 8px 24px rgba(44,24,16,.08);
  --shadow-lg:           0 12px 32px rgba(44,24,16,.12), 0 24px 64px rgba(44,24,16,.16);
  /* Schatten der schwebenden Knoepfe unten: endet vor der Fensterkante (4 + 10 px bei
     16 px Abstand). Safari schneidet Fixiertes an der Kante ab, ein laengerer Schatten
     endet dort hart und wirkt unter der Glasleiste wie ein Balken (18.11.2026). */
  --shadow-pille:        0 4px 10px rgba(44,24,16,.16), 0 1px 3px rgba(44,24,16,.12);
  --shadow-inset-border: inset 0 0 0 1px rgba(44,24,16,.08);
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --serif:       'Cormorant Garamond', 'Cormorant Garamond Fallback', Georgia, serif;
  --sans:        'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --topbar-height: 52px;
}

/* ═══ Dark Theme — überschreibt :root-Variablen ═══════════════════════
   Aktiv via <html data-theme="dark"> (gesetzt durch Theme-Toggle / OS-Pref). */
html[data-theme="dark"] {
  --bg:          #181210;
  --bg-elev:     #221a16;
  --ink:         #f4ede0;
  --ink-muted:   #cbb89c;
  --ink-faint:   #9a8772;
  --accent-text: #cb646a;           /* Thai-Rot auf dunklem Grund nur 3,49:1 */
  --on-accent:   #ffffff;
  --sage-text:   #7a8771;
  --raw-text:    #7ab0e8;
  --line:        #3a2e26;
  --shadow-sm:           0 1px 2px rgba(0,0,0,.4), 0 1px 3px rgba(0,0,0,.5);
  --shadow-md:           0 4px 12px rgba(0,0,0,.45), 0 8px 24px rgba(0,0,0,.55);
  --shadow-lg:           0 12px 32px rgba(0,0,0,.55), 0 24px 64px rgba(0,0,0,.65);
  --shadow-pille:        0 4px 10px rgba(0,0,0,.5), 0 1px 3px rgba(0,0,0,.4);
  --shadow-inset-border: inset 0 0 0 1px rgba(255,255,255,.07);
}
/* Hardcoded Farben im Light-Modus, die im Dark-Modus nachgezogen werden müssen */
/* cat-tabs transparent — nav-bar hat eigenen backdrop-filter */
html[data-theme="dark"] .item-img-placeholder {
  background: linear-gradient(135deg, #2c2018 0%, #221a16 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* Phase 14.7 — Custom Tap-Highlight in Akzent-Rot statt webkit-default-blau */
  -webkit-tap-highlight-color: rgba(193, 71, 78, 0.18);
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04';
  min-height: 100vh;
  min-height: 100dvh;        /* dynamischer Viewport (berücksichtigt Browser-Toolbar); 100vh = Fallback */
  /* iPhone-Home-Indicator: padding-bottom respektiert Safe-Area */
  padding-bottom: calc(100px + env(safe-area-inset-bottom, 0));
}

/* Embed-Mode (Demo-iframe auf mirateq.com, ?embed=1): min-height:0 statt 100vh.
   Sonst wächst body mit der vom Parent gesetzten iframe-Höhe mit → Resize-
   Feedback-Loop. So meldet body.scrollHeight die echte Content-Höhe → Parent
   setzt die iframe-Höhe einmalig, kein internes iframe-Scrolling (nur die Seite
   scrollt — wie bei der Booking-Demo). */
body[data-embed] { min-height: 0; }

.view { display: none; }
.view.active { display: block; }
.hidden { display: none !important; }

/* ═══ Phase 14.12 — Tier 'view' (nur Speisekarte, kein Bestellsystem) ═══
   Im view-Modus werden alle Cart/Pay/Order-UI-Elemente komplett versteckt.
   Service-Ruf (.btn-waiter-float) bleibt verfügbar wenn payment.call_waiter_enabled
   aktiv ist — separate Bedingung, von tier unabhängig. */
body[data-tier="view"] .btn-add-first,
body[data-tier="view"] .qty-ctrl,
/* View-Tier hat kein Tisch-Bill-System → "Table 1" unter dem Restaurantnamen
   im Hero ist irreführend (alle Gäste sehen die gleiche Karte). Weg damit. */
body[data-tier="view"] .hero-sub { display: none; }

body[data-tier="view"] .item-add,
body[data-tier="view"] #cart-sticky,
body[data-tier="view"] #bottom-pay-bar,
body[data-tier="view"] .sheet-actions,
body[data-tier="view"] #sheet-add-btn { display: none !important; }

/* Item-Footer ohne Add-Button: Preis bekommt mehr Atemraum */
body[data-tier="view"] .item-footer { justify-content: flex-start; }
body[data-tier="view"] .item-price  { font-size: 17px; padding: 4px 0; }

/* Padding-bottom Reset weil keine Pay-Bar/Cart-Sticky den Content blockiert */
body[data-tier="view"] {
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0));
}
/* Mit Service-Ruf-FAB (Lite-Plus): wieder etwas mehr Padding für den FAB */
body[data-tier="view"]:has(.btn-waiter-float:not(.hidden)) {
  padding-bottom: calc(100px + env(safe-area-inset-bottom, 0));
}

/* ─── TOPBAR-BG: Frosted-Glass-Gradient (hinter Topbar) ─────────────────── */
.topbar-bg {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 52px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  pointer-events: none;
  z-index: 99;
}

/* ─── TOPBAR: Logo links + Controls-Pill rechts (floating) ──────────────── */
.topbar {
  position: fixed;
  top: 0; left: 12px; right: 12px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.topbar-start { display: flex; align-items: center; }

.topbar-logo {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

/* Unified Controls-Pill: Layout + Lang + Theme in einer Kapsel */
.topbar-controls {
  display: inline-flex;
  align-items: center;
  background: var(--bg-elev);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  box-shadow: var(--shadow-sm), var(--shadow-inset-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Layout-Toggle innerhalb der Controls-Pill */
.topbar-controls .layout-toggle {
  display: inline-flex;
  gap: 2px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.topbar-controls .layout-btn {
  width: 30px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  border-radius: 999px;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background .15s, color .15s;
  padding: 0;
}
.topbar-controls .layout-btn:hover  { color: var(--ink); background: rgba(0,0,0,.05); }
.topbar-controls .layout-btn.active { background: var(--ink); color: var(--bg); }
html[data-theme="dark"] .topbar-controls .layout-btn:hover { background: rgba(255,255,255,.08); }

/* Trennstrich zwischen Gruppen */
.topbar-controls .ctrl-divider {
  width: 1px; height: 18px;
  background: var(--line);
  margin: 0 2px;
  flex-shrink: 0;
}

/* Lang-Pill innerhalb der Controls-Pill */
.topbar-controls .topbar-lang {
  display: inline-flex;
  gap: 2px;
  background: transparent;
  border: none;
  padding: 0;
}
.topbar-controls .lang-pill {
  color: var(--ink-muted);
  min-width: 32px; height: 28px;
  padding: 0 9px;
  font-size: 12px; font-weight: 600; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.topbar-controls .lang-pill:hover  { color: var(--ink); background: rgba(0,0,0,.05); }
.topbar-controls .lang-pill.active { background: var(--ink); color: var(--bg); }
html[data-theme="dark"] .topbar-controls .lang-pill:hover { background: rgba(255,255,255,.08); }

/* Theme-Button innerhalb der Controls-Pill */
.topbar-controls .theme-btn {
  width: 30px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  border-radius: 999px;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background .15s, color .15s;
  padding: 0;
}
.topbar-controls .theme-btn:hover { color: var(--ink); background: rgba(0,0,0,.05); }
html[data-theme="dark"] .topbar-controls .theme-btn:hover { background: rgba(255,255,255,.08); }

/* ─── HERO ────────────────────────────────────────────── */
.hero {
  --hero-h: 220px;          /* dieselbe Zahl steht in index.php (sizes des Kopfbilds) */
  height: var(--hero-h);
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 20px 28px;
  position: relative;
}
.hero-cover {
  position: absolute; inset: 0;
  transform: scale(1.05);
  filter: brightness(.7) saturate(1.15);
}
/* Seit 31.10.2026 ein <img> statt Hintergrund, damit der Browser per srcset
 * eine kleinere Fassung waehlen kann (includes/bildfassungen.php). cover und
 * object-position rechnen wie vorher background-size: cover und
 * background-position: der Punkt bei X % des Bildes liegt bei X % des Kopfs. */
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--hero-x, 50%) var(--hero-y, 50%);
}
.hero-img:not([src]) { display: none; }
/* Ausschnitt frei waehlbar — nur wenn index.php die Bildmasse kennt (data-ar).
 *
 * Mit cover fuellt das Bild genau EINE Achse exakt aus, in der anderen ragt es
 * ueber. Nur dort bewegt die Position etwas. Bei einem 220 Pixel flachen Hero
 * kippt das an der Fensterbreite 440: darunter laesst sich nur seitlich
 * schieben, darueber nur senkrecht. Fuer den Wirt sieht das aus wie ein
 * kaputter Regler.
 *
 * Deshalb kommt der Zoom obendrauf, um den Fokuspunkt herum: ab 101% ragt das
 * Bild in BEIDEN Achsen ueber und der Fokuspunkt wirkt in beide Richtungen.
 * Das ergibt dieselbe Groesse und Lage wie bis 31.10.2026 die selbst gerechnete
 * background-size (max(Breite, Hoehe * Seitenverhaeltnis) * Zoom).
 *
 * Das transform des Rahmens faellt dabei weg: die 5% von vorher stecken im
 * Standardwert --hero-zoom: 1.05, sonst kaeme die Vergroesserung doppelt. */
.hero-cover[data-ar] { transform: none; }
.hero-cover[data-ar] .hero-img {
  transform: scale(var(--hero-zoom, 1.05));
  transform-origin: var(--hero-x, 50%) var(--hero-y, 50%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(44,24,16,.2) 0%, rgba(44,24,16,.55) 50%, rgba(44,24,16,.85) 100%);
  opacity: var(--hero-overlay, 1);
}
.hero-content { position: relative; z-index: 2; text-align: left; }

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.85;
  margin-bottom: 8px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin-bottom: 4px;
}
.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  opacity: 0.9;
}
.lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 999px;
  transition: background .2s, color .2s;
}

html[lang="th"] .hero-title { line-height: 1.15; }
html[lang="th"] body { line-height: 1.65; }

/* theme-btn: binär (Hell ↔ Dunkel). data-theme-mode = aktuelles Theme,
   steuert welches Icon sichtbar ist. */
.theme-btn .theme-icon          { display: none; }
/* light: Sonne zeigen */
.theme-btn[data-theme-mode="light"]  .theme-icon-light  { display: block; }
/* dark: Mond zeigen */
.theme-btn[data-theme-mode="dark"]   .theme-icon-dark   { display: block; }
/* Fallback wenn noch kein data-theme-mode gesetzt → Sonne (Hell-Default) */
.theme-btn:not([data-theme-mode]) .theme-icon-light     { display: block; }


/* ─── NAV-BAR: Category-Tabs (scrollbar, volle Breite — Pay-CTA ist seit Phase 14.10 unten) ── */
/* Safari-Leiste (iPhone): Eine klebende Leiste ueber mindestens 90 % der Breite
   zaehlt Safari als Leiste und malt unten einen deckenden Balken in ihrer Farbe,
   sobald seine Leiste beim Scrollen einklappt (iOS-Simulator, 18.11.2026). Es
   zaehlt der klebende Kasten, nicht die sichtbare Flaeche: Kasten 50 % breit und
   mittig, Grund (::before) und Reiter darin ueber die volle Breite.
   Regel: ~/.claude/rules/safari-leiste-iphone.md */
.nav-bar {
  position: sticky;
  top: var(--topbar-height);
  z-index: 49;
  width: 50%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid transparent;
}
.nav-bar::before {
  content: '';
  position: absolute;
  inset: 0 -50% -1px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  z-index: -1;
}

/* ─── CATEGORY-TABS ────────────────────────────────────── */
.cat-tabs {
  flex: 0 0 200%;   /* volle Breite im halben Kasten der .nav-bar (Safari-Leiste) */
  width: 200%;
  margin-inline: -50%;
  min-width: 0;     /* erlaubt overflow-scroll im flex-child */
  display: flex;
  gap: 6px;
  padding: 14px 16px;
  overflow-x: auto;
  background: transparent;
  scrollbar-width: none;
  scroll-snap-type: x proximity;     /* Industry-Standard: Tabs snap an Container-Rand */
  scroll-padding-left: 16px;
}
.tab-btn {
  scroll-snap-align: start;
}
/* Subtiler Fade-out rechts — Hinweis dass mehr Tabs durch Scrollen sichtbar werden */
.nav-bar::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 1px;
  right: -50%;      /* rechter Rand des Fensters, der Kasten ist nur halb so breit */
  width: 28px;
  background: linear-gradient(to right, transparent, var(--bg, #fdfbf6) 70%);
  pointer-events: none;
  z-index: 1;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  min-height: 44px;          /* Apple HIG / Material 48dp Touch-Target */
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
}
.tab-btn:hover { color: var(--ink); border-color: var(--ink-faint); }
.tab-btn.active {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

/* ─── ITEMS ────────────────────────────────────────────── */
.items-wrap { padding: 8px 16px 24px; }
/* Leere Kategorie: gedaempfte Schrift, die in beiden Modi ueber 4,5:1 liegt (bis 18.11.2026 fest #6b7280, dunkel 3,83:1). */
.kategorie-leer { color: var(--ink-muted); }
.category-section { margin-bottom: 36px; }

/* Subkategorie-Gruppen innerhalb einer Kategorie */
.subcat-group { margin-bottom: 28px; }
.subcat-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-muted);
  margin: 24px 0 12px;
  padding: 0;
}
.subcat-group-title::before {
  content: '';
  flex: 0 0 3px;
  height: 14px;
  background: var(--accent);
  border-radius: 2px;
}
.subcat-group-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.category-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  margin: 28px 4px 14px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
}
.category-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--accent);
  opacity: 0.45;
}

/* Category / Subcategory image thumbnails */
.cat-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.cat-thumb--sm {
  width: 28px;
  height: 28px;
  border-radius: 5px;
}
[data-hide-cat-images] .cat-thumb { display: none; }
.items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 600px) { .items-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (min-width: 960px) {
  .items-wrap { max-width: 1000px; margin: 0 auto; }
  .items-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* ─── LAYOUT-UMSCHALTER (Nav-Button) ───────────────────── */
.layout-toggle {
  flex: 0 0 auto;
  display: flex;
  gap: 4px;
  padding-right: 14px;
  padding-left: 6px;
  position: relative;
  z-index: 2;                 /* über dem nav-bar::after Fade */
  background: var(--bg);
}
.layout-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-muted);
  border-radius: 9px;
  cursor: pointer;
  transition: all .18s;
}
.layout-btn:hover { color: var(--ink); border-color: var(--ink-faint); }
.layout-btn.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ─── KOMPAKTE LISTEN-ANSICHT (.layout-list auf #menu-items) ───
   Reflowt die Bild-Karten zu kompakten Zeilen: Thumb · Name/Desc · Preis.
   Höhere Spezifität als die Grid-Media-Queries → kein !important nötig. */
.items-wrap.layout-list .items-grid { grid-template-columns: 1fr; gap: 8px; }
.items-wrap.layout-list .item-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
}
.items-wrap.layout-list .item-media,
.items-wrap.layout-list .item-img-placeholder {
  width: 56px;
  height: 56px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  font-size: 24px;
  flex-shrink: 0;
}
/* Blur-Radius im Mini-Thumbnail kleiner — 18px wären auf 56px nur noch Matsch */
.items-wrap.layout-list .item-media::before { filter: blur(6px) saturate(1.15) brightness(0.88); }
.items-wrap.layout-list .item-body { padding: 0; min-width: 0; }
.items-wrap.layout-list .item-name { font-size: 1.02rem; margin-bottom: 2px; }
.items-wrap.layout-list .item-desc {
  -webkit-line-clamp: 1;
  margin-bottom: 0;
  font-size: 12px;
}
.items-wrap.layout-list .item-diet { margin: 1px 0 3px; }
.items-wrap.layout-list .item-footer {
  padding: 0;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

/* Bilder in Listenansicht deaktiviert — nur list, nicht cards */
body[data-hide-list-images] .items-wrap.layout-list .item-img,
body[data-hide-list-images] .items-wrap.layout-list .item-img-placeholder {
  display: none;
}
body[data-hide-list-images] .items-wrap.layout-list .item-card {
  grid-template-columns: 1fr auto;
}

.item-card {
  background: var(--bg-elev);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
  position: relative;
}
.item-card:active { transform: scale(0.985); }
@media (hover: hover) {
  .item-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
}
/* ─────────────────────────────────────────────────────────────────────────
   Bilder IMMER vollständig zeigen (Kundenwunsch The Hill, 2026-07-12)

   Vorher: aspect-ratio-Box + object-fit: cover → jedes Foto, das nicht 16:10
   war, wurde beschnitten. Bei einer hochkant fotografierten Flasche blieb
   ein Ausschnitt aus der Mitte übrig, Kopf und Fuß fehlten.

   Jetzt: object-fit: contain — das ganze Foto ist zu sehen, egal ob hochkant
   oder quer. Damit dabei keine kahlen Balken entstehen und das Raster
   gleichmäßig bleibt, füllt eine unscharf gezoomte Kopie DESSELBEN Bildes den
   Rest der Kachel (::before mit --item-img). Genau so lösen es Spotify,
   YouTube und Instagram bei Covern/Thumbnails in fixen Rastern.

   Kein zusätzlicher Netzwerk-Request: es ist dieselbe Datei, der Browser hat
   sie bereits. Und die hochgeladene Datei bleibt unangetastet — der Upload
   skaliert nur proportional (max. 1200px), er beschneidet nichts.
   ───────────────────────────────────────────────────────────────────────── */
.item-media {
  position: relative;
  width: 100%;
  /* 4:3 statt 16:10 — bewusst nach den ECHTEN Bildern gewaehlt, nicht nach
     Gefuehl. In The Hills Bibliothek sind 193 von 229 Fotos exakt 4:3; in der
     alten 16:10-Kachel wurden ausgerechnet DIE oben und unten beschnitten.
     Mit 4:3 fuellen sie die Kachel punktgenau (kein Balken, kein Beschnitt),
     und die hochkant fotografierten Flaschen bekommen spuerbar mehr Breite. */
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--line);   /* Fallback, falls der Backdrop nicht greift */
  display: block;
}
.item-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--item-img);
  background-size: cover;
  background-position: center;
  /* scale schiebt die ausgefransten Blur-Kanten aus der Kachel heraus */
  filter: blur(18px) saturate(1.15) brightness(0.88);
  transform: scale(1.25);
}
.item-img {
  position: relative;        /* über dem unscharfen Backdrop */
  width: 100%;
  height: 100%;
  object-fit: contain;       /* ← das ganze Foto, nichts abgeschnitten */
  display: block;
}
.item-img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;   /* identisch zu .item-media — sonst springt das Raster */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, #f5ede0 0%, #ece5d8 100%);
  color: var(--ink-faint);
}
.item-body { padding: 14px 16px 4px; }
.item-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.2;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.item-desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-muted);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-diet {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 6px;
}
.diet-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.diet-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.diet-badge--spicy { color: var(--accent-text); }
.diet-badge--spicy .diet-dot { background: var(--accent); }
/* Vegetarisch und vegan teilen die Farbe: es steht nie beides da (includes/diaet.php). */
.diet-badge--vegetarian,
.diet-badge--vegan { color: var(--sage-text); }
.diet-badge--vegetarian .diet-dot,
.diet-badge--vegan .diet-dot { background: var(--sage); }
.diet-badge--raw_fish { color: var(--raw-text); }
.diet-badge--raw_fish .diet-dot { background: #5090cc; }
html[data-theme="dark"] .diet-badge--raw_fish .diet-dot { background: #7ab0e8; }
.item-footer {
  padding: 6px 16px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.item-price {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
html[data-theme="dark"] .item-price { color: var(--accent-text); }
.item-add { display: flex; align-items: center; }
.btn-add-first {
  background: var(--ink);
  color: var(--bg);
  border: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  padding: 9px 14px 9px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform .12s, background .2s;
}
.btn-add-first::before { content: '+'; font-size: 16px; font-weight: 400; line-height: 1; }
.btn-add-first:hover { background: var(--accent); color: var(--on-accent); }
.btn-add-first:active { transform: scale(0.95); }
.qty-ctrl {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  padding: 4px;
}
.qty-btn {
  background: transparent;
  border: none;
  color: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  width: 28px; height: 28px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { background: rgba(255,255,255,.18); }
.qty-display {
  min-width: 22px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

/* ─── ITEM-DETAIL BOTTOM-SHEET ─────────────────────────── */
/* Ein <dialog>. Der Browser bringt Rand, Innenabstand, Hoechstmasse, mittige
   Lage und eigene Farben mit. Seine Schriftfarbe (CanvasText) folgt dem System,
   nicht unserem Hell/Dunkel-Schalter, darum alles zuruecksetzen. Geschlossen
   haelt ihn der Browser auf display:none, deshalb steht flex nur an [open]. */
.item-sheet {
  position: fixed;
  inset: auto 0 0 0;
  margin: 0;
  padding: 0;
  border: 0;
  width: 100%;
  max-width: none;
  max-height: 92vh;
  color: var(--ink);
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  overflow-y: auto;
  flex-direction: column;
}
.item-sheet[open] {
  display: flex;
  animation: slideUp .35s cubic-bezier(.2,.8,.2,1);
}
.item-sheet::backdrop {
  background: rgba(44,24,16,.55);
  backdrop-filter: blur(2px);
  animation: fadeIn .2s ease-out;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@media (min-width: 600px) {
  /* Mittig ueber die Raender statt translateX(-50%): Die Einblendung setzt
     transform selbst und schob das Sheet sonst waehrenddessen nach rechts. */
  .item-sheet {
    max-width: 480px;
    margin: 0 auto;
    bottom: 24px;
    border-radius: 24px;
    max-height: calc(100vh - 48px);
  }
}
@keyframes slideUp { from { transform: translateY(100%) } to { transform: translateY(0) } }

.sheet-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 5;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--bg-elev);          /* theme-aware: cream → dark umber */
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  color: var(--ink);                   /* auto-kontrast: dark ↔ cream */
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .15s;
}
.sheet-close:hover { transform: scale(1.05); }

/* Detail-Sheet: gleiche Logik wie die Kachel. Gerade HIER will der Gast das
   Gericht bzw. die Flasche ganz sehen — vorher wurde auch hier beschnitten. */
.sheet-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 45vh;   /* auf kleinen Displays darf das Bild das Sheet nicht auffressen */
  background: var(--line);
  flex-shrink: 0;
  overflow: hidden;
}
.sheet-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--item-img);
  background-size: cover;
  background-position: center;
  filter: blur(22px) saturate(1.15) brightness(0.85);
  transform: scale(1.25);
}
.sheet-hero img {
  position: relative;
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
/* Gericht ohne Foto: keine Bildflaeche. Dann braucht der Text oben Platz fuer
   den Schliessen-Knopf, der sonst ueber dem Bild sitzt. */
.sheet-hero[hidden] { display: none; }
.sheet-hero[hidden] + .sheet-body { padding-top: 64px; }
.sheet-body {
  padding: 22px 24px 12px;
  flex: 1;
}
.sheet-diet {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.sheet-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.sheet-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
.sheet-price-row {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.sheet-price {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.sheet-actions {
  position: sticky;
  bottom: 0;
  padding: 16px 20px max(22px, env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: center;
}
.sheet-qty {
  display: inline-flex;
  align-items: center;
  background: #f1ebe0;
  border-radius: 999px;
  padding: 6px;
  flex-shrink: 0;
}
.sheet-qty .qty-btn {
  background: transparent;
  color: #2c1810;            /* feste Tinte — die Pille ist in BEIDEN Themes cremefarben */
  width: 36px; height: 36px;
  font-size: 18px;
}
.sheet-qty .qty-display {
  color: #2c1810;            /* sonst im Dark-Mode unsichtbar (helle Schrift auf creme) */
  font-size: 16px;
  min-width: 32px;
}
.sheet-add {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sheet-add-total {
  font-weight: 600;
  opacity: 0.9;
}

/* ─── STICKY CART-FOOTER ───────────────────────────────── */
/* Unter 90 % der Breite: sonst zaehlt Safari die Pille als Leiste und malt unten
   einen Balken in ihrer Farbe (iOS-Simulator, 18.11.2026, siehe .nav-bar).
   Und nie ueber den Rand animieren, siehe @keyframes einblendenAmPlatz. */
.cart-sticky {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom, 0));
  left: max(16px, 6%); right: max(16px, 6%);
  z-index: 150;
  background: var(--ink);
  color: var(--bg);
  padding: 14px 18px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-pille);
  transition: transform .2s, background .2s;
  animation: einblendenAmPlatz .3s cubic-bezier(.2,.8,.2,1);
}
/* Am Platz einblenden, nie von unterhalb des Bildschirmrands hereingleiten: Ragt ein
   fixiertes Element auch nur waehrend der Animation ueber den Rand, faerbt Safari auf dem
   iPhone seine Leiste und bleibt dabei (am echten iPhone belegt: marcin.media, 06.11.2026;
   auf Davids iPhone stand am 18.11.2026 mit der hereingleitenden Pille ein Balken in Pillenfarbe). */
@keyframes einblendenAmPlatz { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: translateY(0) } }
.cart-sticky:hover { background: var(--accent); color: var(--on-accent); }
.cart-sticky:active { transform: scale(0.98); }
.cart-sticky-count { display: inline-flex; align-items: center; gap: 6px; }
.cart-sticky-count::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
@media (min-width: 600px) {
  .cart-sticky {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    min-width: 360px;
    max-width: 480px;
  }
}

.footer-brand {
  text-align: center;
  padding: 32px 16px 24px;
  color: var(--ink-muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}
/* Bis menu.js die Karte gebaut hat (seit 30.10.2026). Die Fusszeile kommt mit
   dem HTML und stand beim ersten Bild direkt unter "Loading…"; dann setzte das
   Skript die Gerichte davor und schob sie aus dem Bild. Layout-Sprung 0,054 am
   Rechner in jedem Lauf, Google schrieb ihn der Schrift zu. Unsichtbares zaehlt
   nicht als Sprung, sein Erscheinen auch nicht. init() nimmt die Klasse nach
   dem Bau der Karte weg, auch im Fehlerfall. Faellt das Skript ganz aus, zeigt
   die Animation die Fusszeile nach 5 s trotzdem: Telefon und Datenschutz
   bleiben erreichbar. */
body.karte-laedt .footer-brand {
  visibility: hidden;
  animation: mm-karte-sichtbar 0s linear 5s forwards;
}
@keyframes mm-karte-sichtbar {
  to { visibility: visible; }
}
.footer-brand strong { color: var(--ink); }

/* Anruf beim Betrieb. Eigene Zeile ueber "Powered by", groesser als die
   Fusszeile, weil der Gast hier wirklich etwas tun will. 44px Tapp-Flaeche. */
.footer-contact {
  margin-bottom: 14px;
}
.footer-contact a {
  display: inline-block;
  padding: 12px 8px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-tel {
  font-weight: 600;
  white-space: nowrap;
}

/* Datenschutzhinweis. Eigene Zeile, damit der Pflichtlink nicht neben der
   Produktnennung untergeht, und mit 44px Tapp-Flaeche fuer den Daumen. */
.footer-legal {
  margin-top: 10px;
}
.footer-legal a {
  display: inline-block;
  padding: 12px 8px;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-legal a:hover,
.footer-legal a:focus-visible { color: var(--ink); }

/* ─── PAGE-HEADER (Cart, Confirm) ─────────────────────── */
.page-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg-elev);            /* theme-aware: cream → dark umber */
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.btn-back {
  background: none; border: none;
  color: var(--ink);
  cursor: pointer;
  width: 40px; height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-back:hover { background: var(--line); }
.page-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  flex: 1;
  text-align: center;
}
.page-header-spacer { width: 40px; }

/* ─── CART ─────────────────────────────────────────────── */
.cart-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--ink-faint);
}
.cart-empty-icon { font-size: 40px; margin-bottom: 12px; }
.cart-empty p { font-family: var(--serif); font-style: italic; font-size: 1.1rem; }
.cart-lines {
  padding: 12px 16px;
  max-width: 600px;
  margin: 0 auto;
}
.cart-line {
  background: var(--bg-elev);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 2px;
}
.cart-line-price {
  font-size: 13px;
  color: var(--ink-muted);
}
.cart-footer-form {
  padding: 16px 16px 100px;
  max-width: 600px;
  margin: 0 auto;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .15s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.cart-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 0 20px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  font-family: var(--serif);
}
.cart-total-row > span:first-child {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  font-weight: 500;
}
.cart-total-amount {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
}

/* ─── CTAs ─────────────────────────────────────────────── */
.btn-cta {
  width: 100%;
  background: var(--ink);
  color: var(--bg);
  border: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  padding: 16px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, transform .15s;
  letter-spacing: 0.01em;
}
.btn-cta:hover { background: var(--accent); color: var(--on-accent); }
.btn-cta:active { transform: scale(0.98); }
.btn-cta:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary {
  width: 100%;
  background: var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
}
.btn-secondary:hover { background: var(--ink); color: var(--bg); }
.btn-ghost {
  background: none; border: none;
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.btn-ghost:hover { color: var(--ink); }
.error-msg {
  color: var(--accent-text);
  font-size: 14px;
  text-align: center;
  margin-top: 12px;
}

/* ─── CONFIRM ──────────────────────────────────────────── */
.confirm-box {
  max-width: 500px;
  margin: 0 auto;
  padding: 48px 24px 100px;
  text-align: center;
}
.confirm-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: pop .5s cubic-bezier(.2,.8,.2,1);
}
@keyframes pop { from { transform: scale(0); } 60% { transform: scale(1.1); } to { transform: scale(1) } }
.confirm-box h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2rem;
  margin-bottom: 12px;
}
.confirm-box > p {
  color: var(--ink-muted);
  font-size: 15px;
  margin-bottom: 32px;
  line-height: 1.5;
}
.qr-pay-box {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}
.qr-amount {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 16px;
  font-weight: 500;
}
.qr-img-wrap {
  margin: 0 auto 16px;
  max-width: 260px;
}
.qr-img-wrap svg, .qr-img-wrap img {
  width: 100%; height: auto;
  display: block;
}
.qr-hint {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 20px;
  font-style: italic;
}
.btn-mark-paid { margin-bottom: 12px; }
.paid-status {
  background: rgba(122,135,113,.12);
  color: var(--sage-text);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-top: 12px;
}
.waiter-status {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-muted);
}

/* ─── LINE-RETENTION CTA (Stufe 0) ─────────────────────────
   Add-Friend-Karte in der confirm-view. Flaeche in --line-brand-cta (D5), das
   Markengruen #06C755 bleibt im Schatten.
   Mobile-First, voll tappbar. Standard hidden (von menu.js eingeblendet). */
.line-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 360px;
  margin: 28px auto 0;
  padding: 14px 18px;
  background: var(--line-brand-cta);
  border-radius: var(--radius-md);
  text-align: left;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(6,199,85,.28);
  transition: transform .12s ease, box-shadow .12s ease;
}
.line-cta:hover { box-shadow: 0 6px 20px rgba(6,199,85,.38); }
.line-cta:active { transform: scale(.98); }
.line-cta[hidden] { display: none; }
.line-cta-icon {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.line-cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.line-cta-title {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
}
.line-cta-sub {
  color: #fff;   /* mit 85 % Deckkraft nur 4,1:1 auf dem dunklen Gruen */
  font-size: 12px;
  line-height: 1.3;
}

/* ─── SCHLANKE CTA-LEISTE unter den KATEGORIEN (view-Tier/Lite) ───────────────
   Google bewerten + LINE folgen, mit klarem Label. Sticky direkt unter der
   Kategorie-Leiste (bleibt beim Scrollen sichtbar). Wie bei .nav-bar ist der
   klebende Kasten nur halb so breit, Grund und Knoepfe (.menu-cta-inner) gehen
   ueber die volle Breite: Sonst malt Safari auf dem iPhone unten einen Balken.
   --cta-bar-top wird von menu.js exakt gesetzt (Topbar + Kategorie-Leiste). */
.menu-cta-bar {
  position: sticky;
  top: var(--cta-bar-top, 104px);
  z-index: 48;
  width: 50%;
  margin-inline: auto;
  border-bottom: 1px solid transparent;
}
.menu-cta-bar::before {
  content: '';
  position: absolute;
  inset: 0 -50% -1px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  z-index: -1;
}
.menu-cta-inner {
  width: 200%;
  margin-inline: -50%;
  display: flex;
  gap: 8px;
  padding: 7px 16px;
}
.menu-cta-bar.hidden { display: none; }

.cta-bar-btn {
  flex: 1 1 0;
  min-width: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 10px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}
.cta-bar-btn[hidden] { display: none; }
.cta-bar-btn:active { transform: scale(.97); }
/* Icons: schlicht, KEIN Kreis-Hintergrund (überschreibt .line-cta-icon-Basis). */
.cta-bar-btn .line-cta-icon,
.cta-bar-btn .gmb-g {
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  width: auto; height: auto;
  background: none; border-radius: 0;
}
.cta-bar-label {
  font-size: 14px; font-weight: 700; letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Google (Priorität): buntes G + „Review us on Google", eine Zeile, zentriert. */
.cta-bar-review {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.cta-bar-review:hover { border-color: #f5b400; }

/* LINE: grüner Button, weißes Logo + „Follow on LINE". Flaeche in der dunklen
   Stufe, auf #06C755 hatte die weisse Schrift 2,26:1 (Audit 12.10.2026). */
.cta-bar-line {
  background: var(--line-brand-cta);
  color: #fff;
  box-shadow: 0 2px 10px rgba(6,199,85,.3);
}

/* ─── GOOGLE-REVIEW CTA (Pro, Empty-Tab nach Zahlung) ───── */
.review-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 360px;
  margin: 4px auto 20px;
  padding: 14px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  box-shadow: var(--shadow-md);
  transition: border-color .15s ease, transform .12s ease;
}
.review-cta:hover { border-color: #f5b400; }
.review-cta:active { transform: scale(.98); }
.review-cta-star { flex: 0 0 auto; font-size: 22px; color: #f5b400; line-height: 1; }

/* ─── BELEGE nach der Zahlung (Empty-Tab) ────────────────────
   Gleiche Kartenoptik wie der Bewertungs-Knopf darüber, damit die leere
   Rechnung ruhig bleibt. Der Link öffnet den Beleg in einem neuen Tab, dort
   druckt oder speichert ihn der Gast. */
.receipt-list {
  max-width: 360px;
  margin: 4px auto 16px;
  font-style: normal;
}
.receipt-list-title {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.receipt-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-bottom: 8px;
  padding: 12px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, transform .12s ease;
}
.receipt-link:hover { border-color: var(--ink-faint); }
.receipt-link:active { transform: scale(.98); }
.receipt-link-icon { flex: 0 0 auto; font-size: 20px; line-height: 1; }
.receipt-link-text { flex: 1; text-align: left; font-variant-numeric: tabular-nums; }
.receipt-link-total { font-variant-numeric: tabular-nums; color: var(--ink-muted); }

/* ─── FLOATING WAITER-BUTTON ───────────────────────────── */
.btn-waiter-float {
  position: fixed;
  /* Phase 14.7: höhere Position damit nicht über Item-Cards. Safe-Area-Inset
     für iPhone Home-Indicator. 90px ist tief, jetzt 110px + safe-area. */
  bottom: calc(110px + env(safe-area-inset-bottom, 0));
  right: 16px;
  z-index: 140;
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 22px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, background .2s;
}
.btn-waiter-float:hover { transform: scale(1.05); background: var(--bg); }
.btn-waiter-float.called { background: var(--sage); color: #fff; border-color: var(--sage); }
.waiter-float-msg {
  position: fixed;
  bottom: calc(176px + env(safe-area-inset-bottom, 0));
  right: 16px;
  z-index: 145;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  box-shadow: var(--shadow-md);
  animation: fadeIn .2s;
}

/* ════════════════════════════════════════════════════════════════
 * Phase 14.10 — Bottom-Pay-Bar (Waiter-Icon + Pay-CTA, fixed bottom)
 * Branchen-Standard (Mr Yum, Bbot, Tabsquare): Pay-Aktion in Thumb-Zone,
 * Service immer erreichbar — links als Icon-Button integriert.
 * ════════════════════════════════════════════════════════════════ */

.bottom-pay-bar {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom, 0));
  left: max(16px, 6%);   /* unter 90 % der Breite, siehe .cart-sticky */
  right: max(16px, 6%);
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: einblendenAmPlatz .3s cubic-bezier(.2,.8,.2,1);
}
.bottom-pay-bar.hidden { display: none; }

/* Waiter-Icon links — kompakter Circle-Button */
.bottom-pay-waiter {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 999px;
  background: var(--bg-elev, #fff);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-pille);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, background .2s;
}
.bottom-pay-waiter:hover { transform: scale(1.05); background: var(--bg); }
.bottom-pay-waiter:active { transform: scale(0.95); }
.bottom-pay-waiter.called { background: var(--sage); color: #fff; border-color: var(--sage); }

/* Bill-Pill rechts — primärer CTA (Action-Style "Pay") */
.bill-pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  background: linear-gradient(135deg, #c1474e, #a03840);
  color: #fdfbf6;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(193, 71, 78, 0.36), 0 1px 2px rgba(193, 71, 78, 0.18);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.bill-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(193, 71, 78, 0.46), 0 2px 4px rgba(193, 71, 78, 0.24);
  filter: brightness(1.05);
}
.bill-pill:active { transform: scale(0.98); }
.bill-pill.hidden { display: none; }

.bill-pill-icon { font-size: 17px; line-height: 1; }
.bill-pill-action { font-weight: 700; letter-spacing: 0.01em; }
.bill-pill-meta {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  opacity: 0.95;
  padding-left: 8px;
  border-left: 1px solid rgba(253, 251, 246, 0.32);
}
.bill-pill-arrow {
  font-size: 16px;
  font-weight: 600;
  opacity: 0.85;
  transition: transform .15s ease;
  margin-left: 2px;
}
.bill-pill:hover .bill-pill-arrow { transform: translateX(2px); opacity: 1; }

/* Beleg statt Rechnung: dieselbe Pille, aber ruhig statt rot. Es gibt nichts
   mehr zu zahlen, nur etwas abzuholen. */
.bill-pill.is-receipt {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-md);
}
.bill-pill.is-receipt .bill-pill-meta { border-left-color: color-mix(in srgb, currentColor 35%, transparent); }

/* Desktop: zentriert + Max-Width (wie Cart-Sticky) */
@media (min-width: 600px) {
  .bottom-pay-bar {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    min-width: 360px;
    max-width: 520px;
  }
}

/* Wenn Cart-Sticky AUCH sichtbar (Items im Cart + offene Bill):
   Cart-Sticky drüber stapeln, Bottom-Pay-Bar bleibt unten */
body:has(.bottom-pay-bar:not(.hidden)) .cart-sticky {
  bottom: calc(88px + env(safe-area-inset-bottom, 0));
}

/* Wenn Bottom-Pay-Bar sichtbar: Waiter-FAB versteckt (Waiter ist in Bar integriert) */
body:has(.bottom-pay-bar:not(.hidden)) .btn-waiter-float,
body:has(.bottom-pay-bar:not(.hidden)) .waiter-float-msg {
  display: none !important;
}

/* Waiter-FAB NUR im Menü-View sinnvoll. In Cart/Confirm/Tab würde die Glocke
   die Buttons (z.B. „Place order") überlappen → dort ausblenden.
   Views schalten über .active (NICHT .hidden) — darum .active matchen, sonst
   greift die Regel immer und der FAB ist dauerhaft display:none. */
body:has(#cart-view.active) .btn-waiter-float,
body:has(#confirm-view.active) .btn-waiter-float,
body:has(#tab-view.active) .btn-waiter-float,
body:has(#cart-view.active) .waiter-float-msg,
body:has(#confirm-view.active) .waiter-float-msg,
body:has(#tab-view.active) .waiter-float-msg {
  display: none !important;
}

/* Body braucht mehr Bottom-Padding wenn Bottom-Bar(s) aktiv — sonst werden
   die letzten Item-Cards überdeckt. Bar ~64px + 16px gap + safe-area */
body:has(.bottom-pay-bar:not(.hidden)) {
  padding-bottom: calc(108px + env(safe-area-inset-bottom, 0));
}
body:has(.bottom-pay-bar:not(.hidden)):has(.cart-sticky:not(.hidden)) {
  padding-bottom: calc(180px + env(safe-area-inset-bottom, 0));
}

/* ════════════════════════════════════════════════════════════════
 * Phase 12.4 — Open Tab / Bill-View
 * ════════════════════════════════════════════════════════════════ */

.confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}
.confirm-actions .btn-cta { width: 100%; min-height: 52px; font-size: 16px; }
.confirm-actions .btn-secondary,
.confirm-actions .btn-ghost {
  width: 100%;
  min-height: 48px;
  font-size: 15px;
}
.confirm-hint {
  color: var(--ink-muted, #5c4838);
  font-style: italic;
  margin: 12px 0 0 0;
  font-size: 14px;
}

.tab-box { max-width: 640px; margin: 0 auto; padding: 24px 20px 80px; }
.tab-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.tab-header h1 {
  font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
  font-weight: 500;
  font-size: 2rem;
  margin: 0;
  flex: 1;
}
.tab-table-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint, #8a7058);
  font-weight: 600;
}
.tab-back {
  border: 0;
  background: rgba(0,0,0,.04);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  color: var(--ink, #2c1810);
}
.tab-back:hover { background: rgba(0,0,0,.08); }

.tab-loading, .tab-error, .tab-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-muted, #5c4838);
  font-style: italic;
}
.tab-empty .btn-cta { margin-top: 20px; max-width: 280px; }

.tab-items {
  background: var(--bg-elev, #fff);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(44,24,16,.08));
  margin-bottom: 16px;
}
.tab-order-group { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line, #ece5d8); }
.tab-order-group:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.tab-order-head {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint, #8a7058);
  font-weight: 600;
  margin-bottom: 10px;
}
.tab-line { display: grid; grid-template-columns: 40px 1fr auto; gap: 8px; padding: 6px 0; font-size: 15px; align-items: baseline; }
.tab-line-qty { color: var(--accent, #c1474e); font-weight: 600; font-variant-numeric: tabular-nums; }
.tab-line-name { color: var(--ink, #2c1810); }
.tab-line-price { font-variant-numeric: tabular-nums; color: var(--ink-muted, #5c4838); }

.tab-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px;
  background: linear-gradient(135deg, #2c1810, #3d2418);
  color: #fdfbf6;
  border-radius: 14px;
  margin-bottom: 24px;
}
.tab-total-label {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  opacity: 0.85;
}
.tab-total-amount {
  font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
  font-size: 2rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tab-pay-section { display: flex; flex-direction: column; gap: 10px; }
.tab-pay-title {
  font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
  font-weight: 500;
  font-size: 1.4rem;
  margin: 0 0 8px 0;
}
.tab-pay-option {
  background: var(--bg-elev, #fff);
  border-radius: 12px;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(44,24,16,.08));
  overflow: hidden;
}
.tab-pay-option > summary {
  padding: 16px 18px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  font-size: 15px;
}
.tab-pay-option > summary::-webkit-details-marker { display: none; }
.tab-pay-option > summary::after { content: '▾'; margin-left: auto; color: var(--ink-faint, #8a7058); transition: transform .2s; }
.tab-pay-option[open] > summary::after { transform: rotate(180deg); }
.tab-pay-body { padding: 0 18px 18px 18px; border-top: 1px solid var(--line, #ece5d8); }
.tab-pay-body p { margin: 14px 0; color: var(--ink-muted, #5c4838); font-size: 14px; line-height: 1.5; }
.tab-pay-body .btn-cta { width: 100%; min-height: 48px; margin-top: 12px; }
.tab-pay-body .qr-amount { font-size: 18px; font-weight: 600; text-align: center; color: var(--ink, #2c1810); }
.tab-pay-body .qr-img-wrap { display: flex; justify-content: center; padding: 12px 0; }
.tab-pay-body .qr-img-wrap svg { max-width: 260px; height: auto; }
.tab-pay-body .qr-hint { font-size: 12px; text-align: center; color: var(--ink-faint, #8a7058); }

@media (max-width: 600px) {
  .tab-box { padding: 16px 14px 80px; }
  .tab-header h1 { font-size: 1.7rem; }
  .tab-total-amount { font-size: 1.7rem; }
  .tab-line { grid-template-columns: 36px 1fr auto; font-size: 14px; }
}

/* ── Vorbestell-Brücke (miraBOOK) ─────────────────────────────────────────── */
/* Info-Banner im Vorbestell-Modus: „du bestellst für deine Reservierung vor" */
.preorder-banner {
  margin: 14px 16px 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: color-mix(in oklch, var(--accent) 12%, white);
  border: 1px solid color-mix(in oklch, var(--accent) 32%, transparent);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.preorder-banner strong { color: var(--accent-dk, var(--accent)); font-size: 15px; }
.preorder-banner span   { font-weight: 600; font-size: 14px; }
.preorder-banner small  { color: #6b7280; font-size: 12.5px; line-height: 1.45; }

/* Ankunfts-Check-in-Banner: „deine Vorbestellung an die Küche schicken" */
.preorder-checkin-banner {
  margin: 14px 16px 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: color-mix(in oklch, var(--accent) 14%, white);
  border: 1px solid color-mix(in oklch, var(--accent) 40%, transparent);
  display: flex;
  align-items: center;
  gap: 12px;
}
.preorder-checkin-banner > div { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.preorder-checkin-banner strong { color: var(--accent-dk, var(--accent)); font-size: 15px; }
.preorder-checkin-banner small  { color: #6b7280; font-size: 12.5px; line-height: 1.4; }
.preorder-checkin-banner .btn-cta { width: auto; flex-shrink: 0; padding: 11px 18px; }

/* ── Promotion Popup (Center Modal) ─────────────────────────────────────── */
/* WICHTIG: Overlay ist NICHT bildschirmfüllend, sondern nur so groß wie das
   Modal (zentriert). Ein bildschirmfüllendes fixed-Overlay lässt Safari 26 die
   untere Browser-Leiste opak schalten → weißer Hintergrund-Streifen NUR beim
   Popup. Als kleines fixed-Element (wie die FAB-Buttons) passiert das nicht. */
.promo-overlay {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: min(calc(100% - 32px), 460px);
    max-height: 90dvh;
    z-index: 200;
    display: flex;
    opacity: 0;
    transition: opacity 0.28s ease;
}
.promo-overlay.visible { opacity: 1; }

/* Seiten-Scroll sperren, solange das Popup offen ist (body wird fix positioniert;
   JS merkt die Scroll-Position und stellt sie beim Schließen wieder her). */
body.promo-scroll-lock {
    position: fixed;
    left: 0; right: 0; width: 100%;
    overflow: hidden;
}

/* Zentriertes Modal: schwebt in der Mitte, dockt nirgends an, alle Ecken rund. */
.promo-modal {
    position: relative;
    background: var(--bg-elev, #fff);
    border-radius: 22px;
    width: 100%; max-width: 460px;
    max-height: 88dvh;
    overflow-y: auto; overflow-x: hidden;
    transform: scale(0.94);
    opacity: 0;
    transition: transform 0.34s cubic-bezier(0.32,0.72,0,1), opacity 0.26s ease;
    box-shadow: 0 24px 64px rgba(0,0,0,0.34);
    will-change: transform, opacity;
}
.promo-overlay.visible .promo-modal {
    transform: scale(1);
    opacity: 1;
}

/* Drag-Handle (Bottom-Sheet-Affordance) im zentrierten Modal ausblenden */
.promo-modal::before { display: none; }

.promo-img-wrap {
    position: relative;
    aspect-ratio: 16/7;
    overflow: hidden;
    background: var(--line, #e8e0d6);
}
.promo-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.promo-img-wrap::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.22) 0%,
        rgba(0,0,0,0.0)  45%,
        rgba(0,0,0,0.35) 100%);
    pointer-events: none;
}

.promo-close {
    position: absolute; top: 12px; right: 16px; z-index: 3;
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    background: var(--line, #e8e0d6);
    border: none; border-radius: 50%;
    color: var(--ink-muted, #5c4838); font-size: 15px; line-height: 1;
    cursor: pointer;
    transition: background 0.15s;
    padding: 0;
}
.promo-close:hover { background: var(--border, #d4c9bc); }
/* When hero image shown: white button */
.promo-modal:not(.no-image) .promo-close {
    background: rgba(0,0,0,0.38);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    color: #fff;
}
.promo-modal:not(.no-image) .promo-close:hover { background: rgba(0,0,0,0.58); }

.promo-content {
    padding: 22px 28px 32px;
}
.promo-badge {
    display: inline-block;
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--accent-text, var(--accent, #c8a05b));
    margin-bottom: 10px;
}
.promo-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.6rem, 6vw, 2.1rem);
    font-weight: 600; line-height: 1.15;
    color: var(--ink, #2c1810);
    margin: 0 0 14px;
}
.promo-divider {
    width: 40px; height: 2px;
    background: var(--accent, #c8a05b);
    border-radius: 1px;
    margin-bottom: 16px;
}
.promo-body {
    font-size: 0.95rem; line-height: 1.7;
    color: var(--ink-muted, #5c4838);
    white-space: pre-wrap; margin: 0;
}

/* ── Promo Popup — Item Cards (2×2 Grid, kein Scrollen) ─────────────────── */
.promo-modal.has-promo-items .promo-content { padding-bottom: 16px; }

.promo-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 20px 32px;
}

.promo-item-card {
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-elev, #fff);
    border: 1px solid rgba(0,0,0,0.08);
    cursor: pointer;
}
html[data-theme="dark"] .promo-item-card { border-color: rgba(255,255,255,0.10); }

/* Promo-Popup („Chef Picks"): gleiche Regel wie die Speisekarten-Kacheln.
   Vorher beschnitt ausgerechnet die Chef-Empfehlung die Fotos. */
.promo-item-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--line, #e8e0d6);
}
.promo-item-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--item-img);
    background-size: cover;
    background-position: center;
    filter: blur(12px) saturate(1.15) brightness(0.88);
    transform: scale(1.25);
}
.promo-item-img img {
    position: relative;
    width: 100%; height: 100%;
    object-fit: contain;   /* ganzes Foto */
    display: block;
}

.promo-item-info { padding: 7px 10px 10px; }
.promo-item-info--noimg { padding: 14px 10px; }

.promo-item-name {
    font-size: 0.8rem; font-weight: 600; line-height: 1.3;
    color: var(--ink, #2c1810);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.promo-item-price {
    font-size: 0.78rem; font-weight: 700;
    color: var(--accent-text, var(--accent, #c8a05b));
    margin-top: 3px;
}

/* ── Wenige Promos: grosse Karten ueber die volle Breite ─────────────────────
   Bei 1–2 Gerichten stand das Raster sonst starr auf zwei Spalten und liess
   eine halbbreite Kachel oben links stehen, der Rest des Popups blieb leer.
   Ab 3 Promos bleibt das kompakte 2x2-Raster. Die Anzahl setzt menu.js als
   data-count auf .promo-items. */
.promo-items[data-count="1"],
.promo-items[data-count="2"] { grid-template-columns: 1fr; gap: 14px; }
/* 1 Promo: 4/3 wie die Gerichtsfotos selbst, das Foto fuellt die Kachel randlos.
   2 Promos: Hoehe an den Viewport gekoppelt, damit beide Karten komplett
   sichtbar bleiben und das Modal nicht intern scrollen muss. */
.promo-items[data-count="1"] .promo-item-img { aspect-ratio: 4/3; height: auto; }
.promo-items[data-count="2"] .promo-item-img { aspect-ratio: auto; height: clamp(110px, 17dvh, 190px); }
.promo-items[data-count="1"] .promo-item-info,
.promo-items[data-count="2"] .promo-item-info { padding: 11px 16px 13px; }
.promo-items[data-count="1"] .promo-item-name,
.promo-items[data-count="2"] .promo-item-name  { font-size: 1rem; }
.promo-items[data-count="1"] .promo-item-price,
.promo-items[data-count="2"] .promo-item-price { font-size: 0.95rem; }

/* Gericht ohne Foto: eigenstaendige, zentrierte Karte statt duenner Textzeile,
   damit ein Betrieb seine Promos auch ganz ohne Bilder zeigen kann. */
.promo-items[data-count="1"] .promo-item-info--noimg,
.promo-items[data-count="2"] .promo-item-info--noimg { padding: 22px 18px; text-align: center; }
.promo-items[data-count="1"] .promo-item-info--noimg .promo-item-name,
.promo-items[data-count="2"] .promo-item-info--noimg .promo-item-name {
    display: block;            /* hebt das 2-Zeilen-Clamping der Kachel auf */
    -webkit-line-clamp: none;
    font-size: 1.08rem;
}
.promo-items[data-count="1"] .promo-item-info--noimg .promo-item-price,
.promo-items[data-count="2"] .promo-item-info--noimg .promo-item-price {
    font-size: 1.02rem; margin-top: 6px;
}
/* Einzelnes Gericht ohne Foto: eine Stufe groesser, damit die Empfehlung den
   Platz traegt, statt als kleine Kachel in einem grossen Popup zu sitzen. */
.promo-items[data-count="1"] .promo-item-info--noimg { padding: 28px 20px; }
.promo-items[data-count="1"] .promo-item-info--noimg .promo-item-name  { font-size: 1.2rem; }
.promo-items[data-count="1"] .promo-item-info--noimg .promo-item-price { font-size: 1.12rem; }

/* Countdown-Balken unten am Sheet */
.promo-progress {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent, #c8a05b);
    transform-origin: left center;
    transform: scaleX(1);
    pointer-events: none;
    z-index: 2;
    opacity: 0.55;
}
