/* SHIO Gaeste-Tablet (/tisch/). Setzt tokens.css, fonts.css und ui.css voraus.
   iPad quer (1024 bis 1366) und hochkant, Web-App vom Home-Bildschirm. Bewegung nur transform/opacity. */

:root {
  --sicher-oben: env(safe-area-inset-top, 0px);
  --sicher-unten: env(safe-area-inset-bottom, 0px);
  --sicher-links: env(safe-area-inset-left, 0px);
  --sicher-rechts: env(safe-area-inset-right, 0px);
  --leiste-h: 76px;
  --rail-b: clamp(172px, 15vw, 214px);
  --panel-b: clamp(300px, 28vw, 384px);
  --panel-zu: calc(112px + var(--sicher-unten));
  --karte-bg: #07080a;
  --karte-flaeche: #101317;
  --gold-text-verlauf: linear-gradient(100deg, #b18a4f 0%, #e9d5a6 34%, #f7ecd0 50%, #d2b277 70%, #9c7a45 100%);
}

/* ---------- Grundgeruest: kein Zoom, kein Gummiband, keine Textauswahl ---------- */
html, body { height: 100%; }
html { background: var(--karte-bg); overscroll-behavior: none; }
body {
  position: fixed; inset: 0; overflow: hidden; overscroll-behavior: none;
  background: var(--karte-bg);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  touch-action: manipulation;
}
input, textarea { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
img { -webkit-user-drag: none; }
button { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.app { position: fixed; inset: 0; overflow: hidden; }
.ansicht {
  position: absolute; inset: 0; overflow: hidden;
  opacity: 0; visibility: hidden;
  transition: opacity 520ms var(--ease), visibility 0s linear 520ms;
}
.ansicht.ist-aktiv { opacity: 1; visibility: visible; transition: opacity 520ms var(--ease), visibility 0s; }

/* ---------- Laden / Startfehler ---------- */
.ansicht--laden, .ansicht--fehler { display: grid; place-items: center; align-content: center; gap: 22px; text-align: center; padding: 24px; }
.laden__zeichen { width: 96px; height: 96px; animation: laden-atmen 2.4s ease-in-out infinite; }
.ansicht--fehler .laden__zeichen { animation: none; opacity: .8; }
@keyframes laden-atmen { 0%, 100% { opacity: .55; transform: scale(.97); } 50% { opacity: 1; transform: scale(1); } }

/* ---------- Gemeinsame Kleinteile ---------- */
.live-punkt { position: relative; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.live-punkt::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: live-ring 2s var(--ease) infinite; }
@keyframes live-ring { from { transform: scale(1); opacity: .55; } to { transform: scale(2.8); opacity: 0; } }
.lade-punkt--dunkel { border-color: rgba(26, 20, 8, .25); border-top-color: #1a1408; }
.knopf.ist-laden { pointer-events: none; }
.knopf.ist-laden::after { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(26, 20, 8, .25); border-top-color: #1a1408; animation: ui-drehen .8s linear infinite; }
.ist-schuetteln { animation: tisch-schuetteln 440ms var(--ease) !important; }
@keyframes tisch-schuetteln { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
.foto { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 500ms var(--ease); }
.foto.ist-geladen { opacity: 1; }
.foto-platzhalter {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 42%, #1c2026 0%, #111418 55%, #0c0e11 100%);
  color: var(--gold);
}
.foto-platzhalter::before { content: ""; position: absolute; width: 38%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(201, 168, 106, .28); }
.foto-platzhalter .icon { width: 30%; max-width: 64px; height: auto; aspect-ratio: 1; opacity: .85; --icon-strich: 1.4; }

/* Pinsel-Schrift in Gold (wie "Coming Soon" auf dem Aushang); zh/ru ohne Pinsel */
.gold-schrift {
  background: var(--gold-text-verlauf); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* =========================================================================================== */
/* Willkommen                                                                                   */
/* =========================================================================================== */
.willkommen { display: grid; grid-template-rows: auto 1fr auto; background: #050608; }
.willkommen__hg { position: absolute; inset: -4%; overflow: hidden; }
.willkommen__hg img {
  width: 100%; height: 100%; object-fit: cover; opacity: .36;
  transform: scale(1.02); animation: hg-atmen 40s ease-in-out infinite alternate;
}
@keyframes hg-atmen { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.1) translate3d(-1.6%, -1.2%, 0); } }
.willkommen__schleier {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 58% 60% at 50% 46%, rgba(5, 6, 8, .56) 0%, rgba(5, 6, 8, .84) 62%, #050608 100%),
    linear-gradient(180deg, rgba(5, 6, 8, .7), rgba(5, 6, 8, 0) 26%, rgba(5, 6, 8, 0) 70%, rgba(5, 6, 8, .92));
}
.willkommen__oben {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: calc(22px + var(--sicher-oben)) calc(30px + var(--sicher-rechts)) 0 calc(30px + var(--sicher-links));
  min-height: 70px;
}
.willkommen__tisch {
  display: inline-flex; align-items: center; gap: 10px; color: var(--text-2);
  font-size: .74rem; font-weight: 600; letter-spacing: var(--sperrung); text-transform: uppercase;
}
.willkommen__tisch-strich { width: 28px; height: 1px; background: var(--gold); opacity: .8; }
.willkommen__mitte { position: relative; display: grid; justify-items: center; align-content: center; text-align: center; padding: 0 24px; min-height: 0; }
.willkommen__logo { width: min(270px, 27vh); aspect-ratio: 1312 / 1530; cursor: default; }
.willkommen__logo svg, .willkommen__logo img { width: 100%; height: 100%; display: block; overflow: visible; }
.willkommen__gruss { position: relative; width: min(960px, 92vw); height: clamp(78px, 11vh, 108px); margin-top: clamp(16px, 3vh, 32px); }
.willkommen__wort {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-schrift); font-weight: 400; font-size: clamp(3.3rem, 7.6vh, 4.8rem); line-height: 1.15;
  background: var(--gold-text-verlauf); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-block: .06em;
  opacity: 0; transform: translate3d(0, 14px, 0);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}
.willkommen__wort.ohne-pinsel { font-family: var(--font-sans); font-weight: 300; letter-spacing: .08em; font-size: clamp(2.3rem, 5.4vh, 3.3rem); }
.willkommen__wort.ist-aktiv { opacity: 1; transform: none; }
.willkommen__unter { position: relative; width: 100%; height: 1.6em; margin-top: 6px; }
.willkommen__unter span {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--text-2); font-size: .8rem; font-weight: 600; letter-spacing: var(--sperrung); text-transform: uppercase;
  opacity: 0; transition: opacity 900ms var(--ease);
}
.willkommen__unter span.ist-aktiv { opacity: 1; }
.willkommen__sprachen {
  display: grid; grid-template-columns: repeat(3, minmax(170px, 214px)); gap: 14px;
  margin-top: clamp(22px, 4.4vh, 44px);
}
.sprachknopf {
  min-height: 64px; padding: 0 22px; border-radius: 999px;
  border: 1px solid rgba(201, 168, 106, .3); background: rgba(12, 14, 18, .64);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--weiss); font-size: 1.12rem; font-weight: 500; letter-spacing: .02em; cursor: pointer;
  transition: border-color 700ms var(--ease), box-shadow 700ms var(--ease), background-color 200ms var(--ease), transform 140ms var(--ease);
}
.sprachknopf.ist-vorschau { border-color: rgba(233, 213, 166, .78); box-shadow: inset 0 0 0 1px rgba(233, 213, 166, .16), 0 14px 32px -18px rgba(201, 168, 106, .75); }
.sprachknopf:active { transform: scale(.97); background: var(--gold-glanz); }
.willkommen__fuss { position: relative; display: flex; justify-content: center; padding: 0 0 calc(22px + var(--sicher-unten)); }

/* Logo-Animation: Kreis zeichnet sich, Zeichen taucht auf, Wellen gleiten hinein */
.logo-anim #kreis circle { stroke-dashoffset: var(--umfang, 0); }
.logo-anim #zeichen, .logo-anim #wort, .logo-anim #zusatz, .logo-anim #welle-1, .logo-anim #welle-2, .logo-anim #welle-3 { opacity: 0; }
.logo-anim.spielt #kreis circle { animation: kreis-zeichnen 1900ms cubic-bezier(.55, .08, .25, 1) 150ms both; }
.logo-anim.spielt #zeichen { transform-box: fill-box; transform-origin: 50% 50%; animation: zeichen-rein 1200ms var(--ease) 700ms both; }
.logo-anim.spielt #welle-1 { animation: welle-rein 1500ms var(--ease) 1000ms both; }
.logo-anim.spielt #welle-2 { animation: welle-rein 1500ms var(--ease) 1150ms both; }
.logo-anim.spielt #welle-3 { animation: welle-rein 1500ms var(--ease) 1300ms both; }
.logo-anim.spielt #wort { animation: logo-auf 1000ms var(--ease) 1450ms both; }
.logo-anim.spielt #zusatz { animation: logo-auf 1000ms var(--ease) 1700ms both; }
@keyframes kreis-zeichnen { to { stroke-dashoffset: 0; } } /* Start ist der Grundwert (Umfang), keine var() in Keyframes (Safari) */
@keyframes zeichen-rein { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes welle-rein { from { opacity: 0; transform: translateX(-360px); } 40% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes logo-auf { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* =========================================================================================== */
/* Personen                                                                                     */
/* =========================================================================================== */
.personen { display: grid; grid-template-rows: auto minmax(0, 1fr); background: #06070a; }
.personen__hg { position: absolute; inset: 0; overflow: hidden; }
.personen__hg img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.personen__hg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(6, 7, 10, .55), rgba(6, 7, 10, .94) 70%), linear-gradient(180deg, rgba(6, 7, 10, .8), rgba(6, 7, 10, .2) 40%, rgba(6, 7, 10, .9));
}
.personen__kopf {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: calc(18px + var(--sicher-oben)) calc(28px + var(--sicher-rechts)) 0 calc(28px + var(--sicher-links));
}
.personen__kopf > .knopf { justify-self: start; }
.personen__marke { height: 40px; width: auto; }
.personen__tisch {
  justify-self: end; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--linie); background: rgba(255, 255, 255, .03); color: var(--text-2); font-size: .9rem; font-weight: 500;
}
.personen__tisch .icon { color: var(--gold); }
.personen__inhalt {
  position: relative; z-index: 1; display: grid; justify-items: center; align-content: center; gap: clamp(18px, 3.2vh, 32px);
  padding: 8px 28px calc(24px + var(--sicher-unten)); overflow-y: auto; overscroll-behavior: contain; min-height: 0;
}
.personen__titel { display: grid; justify-items: center; gap: 10px; text-align: center; max-width: 680px; }
.personen__titel .t-leise { max-width: 52ch; }
.personen__zaehler { display: grid; grid-template-columns: repeat(2, minmax(250px, 320px)); gap: 20px; }
.personen__karte {
  display: grid; justify-items: center; gap: 18px; padding: 22px 22px 20px;
  border-radius: 28px; border: 1px solid var(--linie-stark);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)), rgba(14, 16, 20, .82);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 24px 50px -30px rgba(0, 0, 0, .9);
}
.personen__karte-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.personen__icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-hell); border: 1px solid rgba(201, 168, 106, .42); background: var(--gold-glanz); }
.personen__icon .icon { width: 20px; height: 20px; }
.personen__was { font-size: 1.08rem; font-weight: 600; color: var(--weiss); }
.personen__alter { font-size: .76rem; color: var(--text-3); }
.personen .zaehlwerk { padding: 7px; gap: 12px; background: rgba(7, 8, 10, .7); }
.personen .zaehlwerk__knopf { width: 64px; height: 64px; }
.personen .zaehlwerk__knopf .icon { width: 26px; height: 26px; }
.personen .zaehlwerk__zahl { font-size: 2.7rem; font-weight: 300; min-width: 2.1ch; line-height: 1; }
.personen__preis { color: var(--text-2); font-size: .88rem; }
.personen__preis b { color: var(--gold-hell); font-size: 1.05rem; font-weight: 600; }
.personen__tarif {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px;
  width: min(660px, 100%); padding: 16px 4px; position: relative;
}
.personen__tarif::before, .personen__tarif::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--ui-gold-linie); opacity: .55; }
.personen__tarif::before { top: 0; }
.personen__tarif::after { bottom: 0; }
.personen__tarif-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text-2); font-size: .9rem; }
.personen__tarif-name .icon { color: var(--gold); }
.personen__punkt { color: var(--gold); }
.personen__summe { display: flex; align-items: baseline; gap: 14px; }
.personen__summe-wert { font-size: 2.1rem; font-weight: 300; color: var(--weiss); letter-spacing: .01em; }
.personen__los { min-width: min(440px, 100%); }
.personen__los .icon { width: 1.3em; height: 1.3em; }

/* =========================================================================================== */
/* Regeln                                                                                       */
/* =========================================================================================== */
.regeln { position: fixed; inset: 0; z-index: 880; display: grid; place-items: center; padding: calc(20px + var(--sicher-oben)) 20px calc(20px + var(--sicher-unten)); }
.regeln__grund { position: absolute; inset: 0; background: rgba(3, 4, 6, .74); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity 420ms var(--ease); }
.regeln__karte {
  position: relative; width: min(800px, 100%); max-height: 100%; overflow-y: auto; overscroll-behavior: contain;
  padding: 38px 40px 30px; border-radius: 34px; text-align: center;
  background: radial-gradient(120% 80% at 50% 0%, #171a20 0%, #0c0e11 62%);
  border: 1px solid rgba(201, 168, 106, .3);
  box-shadow: 0 40px 110px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .05);
  opacity: 0; transform: translate3d(0, 26px, 0) scale(.98);
  transition: opacity 420ms var(--ease), transform 560ms var(--ease);
}
.regeln__karte::before { content: ""; position: absolute; left: 60px; right: 60px; top: 0; height: 1px; background: var(--ui-gold-linie); }
.regeln.ist-offen .regeln__grund { opacity: 1; }
.regeln.ist-offen .regeln__karte { opacity: 1; transform: none; }
.regeln__zu { position: absolute; top: 16px; right: 16px; }
.regeln__kopf { display: grid; justify-items: center; gap: 12px; margin-bottom: 26px; }
.regeln__zeichen { width: 56px; height: 56px; }
.regeln__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; }
.regeln__punkt {
  display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: start; padding: 18px 18px 18px 16px;
  border-radius: 22px; background: rgba(255, 255, 255, .028); border: 1px solid var(--linie);
  opacity: 0; transform: translate3d(0, 14px, 0);
  transition: opacity 500ms var(--ease) calc(var(--n) * 90ms + 160ms), transform 600ms var(--ease) calc(var(--n) * 90ms + 160ms);
}
.regeln.ist-offen .regeln__punkt { opacity: 1; transform: none; }
.regeln__icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-hell); background: var(--gold-glanz); border: 1px solid rgba(201, 168, 106, .45); }
.regeln__icon .icon { width: 26px; height: 26px; }
.regeln__titel { font-size: 1.04rem; font-weight: 600; color: var(--weiss); line-height: 1.3; }
.regeln__text { margin-top: 6px; font-size: .86rem; color: var(--text-2); line-height: 1.45; }
.regeln__hinweis { margin: 18px 0 20px; }
.regeln__los { min-width: min(400px, 100%); }
.regeln__los .icon { width: 1.3em; height: 1.3em; }

/* =========================================================================================== */
/* Karte (Hauptansicht)                                                                         */
/* =========================================================================================== */
.haupt {
  display: grid;
  grid-template-columns: var(--rail-b) minmax(0, 1fr) var(--panel-b);
  grid-template-rows: calc(var(--leiste-h) + var(--sicher-oben)) minmax(0, 1fr);
  grid-template-areas: "leiste leiste leiste" "rail inhalt panel";
  background: var(--karte-bg);
}

/* ---------- Leiste ---------- */
.leiste {
  grid-area: leiste; position: relative; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  padding: var(--sicher-oben) calc(16px + var(--sicher-rechts)) 0 calc(14px + var(--sicher-links));
  background: linear-gradient(180deg, #0d0f12, #090a0d);
}
.leiste::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ui-gold-linie); opacity: .42; }
.leiste__marke {
  display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 10px 0 4px; flex: none;
  border: 0; border-radius: 18px; background: none; cursor: pointer; color: inherit;
}
.leiste__zeichen { width: 48px; height: 48px; transition: transform 260ms var(--ease); }
.leiste__marke.haelt .leiste__zeichen { transform: scale(.86) rotate(-8deg); transition: transform 1500ms linear; }
.leiste__wort { height: 38px; width: auto; }
.leiste__runde {
  flex: 1 1 auto; min-width: 0; height: 64px; display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 0 14px; border: 0; border-radius: 20px; background: none; color: inherit; cursor: pointer; text-align: left;
  transition: background-color 220ms var(--ease);
}
.leiste__runde:active { background: rgba(255, 255, 255, .04); }
.leiste__runde-symbol {
  width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center;
  color: var(--gold-hell); background: var(--gold-glanz); border: 1px solid rgba(201, 168, 106, .45);
}
.leiste__runde-symbol .icon { width: 24px; height: 24px; }
.leiste__runde--vorbei .leiste__runde-symbol { color: var(--text-2); background: rgba(255, 255, 255, .04); border-color: var(--linie-stark); }
.leiste__ring { flex: none; }
.leiste__ring .ring__text .icon { width: 20px; height: 20px; color: var(--gold-hell); }
.leiste__runde-texte { display: grid; gap: 3px; min-width: 0; }
.leiste__runde-label { font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leiste__runde-text { font-size: .98rem; font-weight: 600; color: var(--weiss); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leiste__runde--gesperrt .leiste__runde-text { color: var(--gold-hell); }
/* Countdown: bei Platzmangel kuerzt nur der Vortext, die Restzeit bleibt stehen */
.leiste__runde-text.mit-countdown { display: flex; gap: .32em; text-overflow: clip; }
.leiste__runde-text.mit-countdown .countdown__vor { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leiste__runde-text.mit-countdown .countdown__zeit { flex: none; }
.leiste__runde--vorbei .leiste__runde-label { color: var(--text-2); }
.leiste__runde--vorbei .leiste__runde-text { font-weight: 500; font-size: .86rem; color: var(--text-2); }
.leiste__fortschritt { width: clamp(120px, 14vw, 200px); height: 4px; margin-top: 3px; }
.leiste__fortschritt.ist-voll::after { background: linear-gradient(90deg, #d2b277, #f3e3b8); }
.leiste__rechts { display: flex; align-items: center; gap: 10px; flex: none; }
.leiste__tisch {
  display: inline-flex; align-items: center; gap: 7px; height: 48px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--linie); background: rgba(255, 255, 255, .025);
  color: var(--text-2); font-size: .95rem;
}
.leiste__tisch b { color: var(--weiss); font-weight: 600; }
.leiste__tisch-icon .icon { width: 19px; height: 19px; color: var(--gold); }
.leiste__trenner { width: 1px; height: 20px; background: var(--linie-stark); margin: 0 5px; }
.leiste__icon .icon { width: 21px; height: 21px; }
.leiste__bestellungen { position: relative; padding: 0 18px; gap: 9px; }
.leiste__neu {
  position: absolute; top: 6px; right: 8px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 3px var(--karte-bg); opacity: 0; transform: scale(.3);
  transition: opacity 260ms var(--ease), transform 360ms var(--ease-feder);
}
.leiste__bestellungen.hat-neues .leiste__neu { opacity: 1; transform: none; }
.leiste__sprache { padding: 0 15px; gap: 8px; }
.leiste__kuerzel { font-size: .82rem; font-weight: 700; letter-spacing: .1em; }
.leiste__rund { position: relative; }
.leiste__rund.ist-aktiv { border-color: rgba(79, 207, 141, .6); color: #a8f0c9; background: rgba(79, 207, 141, .12); }
.leiste__rund.ist-aktiv::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(79, 207, 141, .7);
  animation: glocke-ring 2.2s var(--ease) infinite;
}
@keyframes glocke-ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.45); opacity: 0; } }
.leiste__lokal { flex: none; }

/* ---------- Kategorien (Rail) ---------- */
.rail {
  grid-area: rail; min-height: 0; display: flex; flex-direction: column;
  border-right: 1px solid var(--linie); background: #08090b;
  padding-left: var(--sicher-links);
}
.rail__liste {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  display: grid; align-content: start; gap: 3px; padding: 14px 10px 14px;
}
.rail__liste::-webkit-scrollbar { display: none; }
.rail__knopf {
  position: relative; display: flex; align-items: center; gap: 11px; min-height: 52px; width: 100%;
  padding: 7px 10px; border: 0; border-radius: 15px; background: none; cursor: pointer; text-align: left;
  color: var(--text-2); font-size: .86rem; font-weight: 500; line-height: 1.2;
  transition: color 240ms var(--ease), background-color 240ms var(--ease);
}
.rail__icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--gold); opacity: .78; transition: background-color 240ms var(--ease), opacity 240ms var(--ease); }
.rail__icon .icon { width: 21px; height: 21px; }
.rail__name { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.rail__knopf:active { background: rgba(255, 255, 255, .04); }
.rail__knopf.ist-aktiv { color: var(--weiss); background: linear-gradient(90deg, rgba(201, 168, 106, .17), rgba(201, 168, 106, .02)); }
.rail__knopf.ist-aktiv::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--gold-verlauf); }
.rail__knopf.ist-aktiv .rail__icon { opacity: 1; background: var(--gold-glanz); }
.rail__fuss { padding: 14px 14px calc(16px + var(--sicher-unten)); border-top: 1px solid var(--linie); }
.rail__fuss .rbpay-marke { font-size: .56rem; letter-spacing: .13em; gap: 7px; }
.rail__fuss .rbpay-marke img { height: 12px; }

/* ---------- Gerichte-Raster ---------- */
.inhalt {
  grid-area: inhalt; position: relative; min-height: 0; overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 0 22px calc(30px + var(--sicher-unten));
}
.inhalt__kopf {
  position: sticky; top: 0; z-index: 8;
  display: flex; align-items: center; gap: 10px;
  margin: 0 -22px; padding: 14px 22px 14px;
  background: rgba(7, 8, 10, .97);
}
.inhalt__kopf::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; pointer-events: none; background: linear-gradient(180deg, rgba(7, 8, 10, .97), rgba(7, 8, 10, 0)); }
.inhalt__filter { flex: none; }
.inhalt__filter.ist-aktiv { border-color: rgba(201, 168, 106, .7); color: var(--gold-hell); }
.inhalt__chips { display: flex; gap: 8px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.inhalt__chips::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px 0 16px;
  border-radius: 999px; border: 1px solid rgba(201, 168, 106, .45); background: var(--gold-glanz);
  color: var(--gold-hell); font-size: .82rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.filter-chip__x .icon { width: 16px; height: 16px; opacity: .8; }
.inhalt__marke { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.inhalt__abb { font-size: .7rem; color: var(--text-3); white-space: nowrap; }
.inhalt__kopf.hat-filter .inhalt__abb { display: none; }
.inhalt__chips { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); padding-right: 20px; }
.ruf-hinweis { display: none; align-items: center; gap: 8px; flex: none; }
.ruf-hinweis.ist-sichtbar { display: flex; }
.ruf-hinweis.ist-sichtbar ~ .inhalt__abb { display: none; }
.ruf-hinweis__eintrag {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px 0 12px;
  border-radius: 999px; background: rgba(79, 207, 141, .1); border: 1px solid rgba(79, 207, 141, .45);
  color: #b4f2d1; font-size: .78rem; font-weight: 600; white-space: nowrap;
  animation: ruf-rein 420ms var(--ease) both;
}
.ruf-hinweis__eintrag .icon { width: 16px; height: 16px; }
@keyframes ruf-rein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.abschnitt { padding-top: 4px; }
.abschnitt__kopf { display: flex; align-items: center; gap: 12px; margin: 14px 0 16px; }
.abschnitt__icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--gold); border: 1px solid rgba(201, 168, 106, .36); background: rgba(201, 168, 106, .06); }
.abschnitt__icon .icon { width: 22px; height: 22px; }
.abschnitt__titel { font-size: 1.42rem; font-weight: 500; color: var(--weiss); line-height: 1.2; letter-spacing: .005em; }
.abschnitt__anzahl { font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.abschnitt__linie { flex: 1; height: 1px; min-width: 20px; background: linear-gradient(90deg, rgba(201, 168, 106, .45), rgba(201, 168, 106, 0)); }
.abschnitt + .abschnitt { margin-top: 18px; }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); gap: 16px; }

/* ---------- Gerichtkarte ---------- */
.gericht {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: linear-gradient(180deg, #13161a 0%, #0e1013 100%);
  border: 1px solid rgba(255, 255, 255, .065); border-radius: 20px; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
  transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.gericht.hat-menge { border-color: rgba(201, 168, 106, .6); box-shadow: inset 0 0 0 1px rgba(201, 168, 106, .16), 0 18px 38px -24px rgba(201, 168, 106, .6); }
.gericht__bildbox { position: relative; }
.gericht__foto {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; margin: 0;
  background: var(--flaeche-2); overflow: hidden; cursor: pointer; border-radius: 0;
}
.gericht__foto .foto { transition: opacity 500ms var(--ease), transform 700ms var(--ease); }
.gericht__foto:active .foto { transform: scale(1.035); }
.gericht__foto::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .34) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, .5) 100%);
}
.gericht__oben { position: absolute; z-index: 1; left: 10px; right: 10px; top: 10px; display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; pointer-events: none; }
.gericht__label {
  display: inline-flex; align-items: center; min-height: 24px; padding: 3px 10px; border-radius: 999px;
  background: rgba(8, 9, 11, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 168, 106, .55); color: var(--gold-hell);
  font-size: .58rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; line-height: 1.2; white-space: nowrap;
}
.gericht__label--signature { background: var(--gold-verlauf); border-color: rgba(243, 227, 184, .6); color: #1a1408; }
.gericht__symbole { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.gericht__symbol {
  width: 28px; height: 28px; flex: none; border-radius: 50%; display: inline-grid; place-items: center;
  background: rgba(8, 9, 11, .74); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .16); color: var(--weiss); font-size: .6rem; font-weight: 700; letter-spacing: .02em;
}
.gericht__symbol .icon { width: 15px; height: 15px; --icon-strich: 2; }
.gericht__symbol--vegan { color: #9fdcae; border-color: rgba(143, 209, 158, .5); }
.gericht__symbol--vegetarisch { color: #d2e6a4; border-color: rgba(207, 227, 160, .45); }
.gericht__symbol--scharf { color: #ffa597; border-color: rgba(238, 90, 82, .5); }
.gericht__symbol--roh { color: var(--shio-blau); border-color: rgba(159, 211, 242, .5); }
.gericht__symbol--alkohol { width: auto; min-width: 28px; padding: 0 7px; border-radius: 999px; color: var(--gold-hell); border-color: rgba(201, 168, 106, .55); }

.gericht__aktion { position: absolute; z-index: 3; right: 10px; bottom: 10px; width: 48px; height: 48px; }
.gericht__plus, .gericht__minus {
  width: 48px; height: 48px; flex: none; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; cursor: pointer;
  transition: transform 140ms var(--ease), filter 240ms var(--ease), box-shadow 240ms var(--ease);
}
.gericht__plus .icon, .gericht__minus .icon { width: 22px; height: 22px; --icon-strich: 2.3; }
.gericht__plus {
  background: var(--gold-verlauf); color: #1a1408;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(0, 0, 0, .2), 0 10px 22px -8px rgba(0, 0, 0, .85), 0 8px 20px -10px rgba(201, 168, 106, .8);
}
.gericht__minus { background: rgba(255, 255, 255, .07); color: var(--weiss); }
.gericht__plus:active, .gericht__minus:active { transform: scale(.9); }
.gericht__plus--allein { position: absolute; right: 0; bottom: 0; transition: opacity 220ms var(--ease), transform 320ms var(--ease-feder), filter 240ms var(--ease); }
.gericht__stepper {
  position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: 2px; padding: 0;
  border-radius: 999px; background: rgba(8, 9, 11, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 168, 106, .55); box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .9);
  opacity: 0; transform: scale(.55); transform-origin: calc(100% - 24px) 50%; pointer-events: none;
  transition: opacity 220ms var(--ease), transform 340ms var(--ease-feder);
}
.gericht__menge { min-width: 2.2ch; text-align: center; font-size: 1.12rem; font-weight: 700; color: var(--weiss); }
.gericht__menge.ist-neu { animation: menge-hupf 360ms var(--ease-feder); }
@keyframes menge-hupf { 0% { transform: scale(.6); opacity: .4; } 100% { transform: none; opacity: 1; } }
.gericht.hat-menge .gericht__plus--allein { opacity: 0; transform: scale(.5); pointer-events: none; }
.gericht.hat-menge .gericht__stepper { opacity: 1; transform: none; pointer-events: auto; }
.inhalt.ist-voll .gericht:not(.gericht--getraenk) .gericht__plus,
.inhalt.ist-zeitvorbei .gericht:not(.gericht--getraenk) .gericht__plus { filter: grayscale(1) brightness(.55); box-shadow: none; }

/* Name bis 3 Zeilen, Beschreibung 2 Zeilen; die Meta-Zeile sitzt unten, damit sie in einer Reihe buendig bleibt */
.gericht__koerper { position: relative; display: grid; grid-template-rows: auto auto 1fr; gap: 5px; align-content: start; padding: 12px 14px 13px; flex: 1; }
.gericht__meta { align-self: end; }
.gericht__name { font-size: .97rem; font-weight: 600; line-height: 1.26; color: var(--weiss); }
.gericht__name-knopf {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  width: 100%; min-height: 2.52em; padding: 0; margin: 0; border: 0; background: none;
  color: inherit; font: inherit; line-height: inherit; text-align: left; cursor: pointer; overflow-wrap: anywhere;
}
.gericht__name-knopf::after { content: ""; position: absolute; inset: 0; }
.gericht__text {
  font-size: .8rem; line-height: 1.4; color: var(--text-2); min-height: 2.8em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gericht__meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; min-height: 22px; font-size: .74rem; color: var(--text-3); }
.gericht__stueck { color: var(--gold); font-weight: 600; letter-spacing: .03em; white-space: nowrap; }
.gericht__allergene { margin-left: auto; letter-spacing: .14em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gericht__preis { margin-left: auto; color: var(--gold-hell); font-weight: 700; font-size: .92rem; white-space: nowrap; }
.gericht__allergene + .gericht__preis { margin-left: 4px; }

.inhalt__keine { margin: 40px 0; }
.inhalt__fuss { display: grid; gap: 8px; justify-items: start; margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--linie); color: var(--text-3); font-size: .74rem; line-height: 1.5; max-width: 80ch; }
.inhalt__fuss .rbpay-marke { display: none; margin-top: 10px; }

/* ---------- Panel "Ihre Runde" ---------- */
.panel {
  grid-area: panel; position: relative; z-index: 5; min-height: 0; display: flex; flex-direction: column;
  border-left: 1px solid var(--linie); background: linear-gradient(180deg, #0c0e11, #08090b);
  padding-right: var(--sicher-rechts);
}
.panel__kopf { padding: 18px 20px 14px; border-bottom: 1px solid var(--linie); flex: none; }
.panel__griff { display: none; }
.panel__titelzeile { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.panel__symbol .icon { width: 24px; height: 24px; color: var(--gold); }
.panel__titel { flex: 1; min-width: 0; font-size: 1.14rem; font-weight: 600; color: var(--weiss); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel__zaehler {
  min-width: 66px; height: 36px; padding: 0 12px; border-radius: 999px; display: inline-grid; place-items: center; flex: none;
  background: var(--gold-glanz); border: 1px solid rgba(201, 168, 106, .5); color: var(--gold-hell); font-weight: 700; font-size: .98rem;
}
.panel__zaehler.ist-puls { animation: zaehler-puls 520ms var(--ease-feder); }
@keyframes zaehler-puls { 0% { transform: scale(1); } 35% { transform: scale(1.2); } 100% { transform: scale(1); } }
.panel__umschalter, .panel__mini { display: none; }
.panel__fortschritt { margin-top: 14px; }
.panel__unter { display: none; }
.panel__liste { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 14px; }
.panel__leer { display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 100%; padding: 30px 12px 18%; text-align: center; color: var(--text-3); font-size: .86rem; line-height: 1.5; }
.panel__leer b { color: var(--text); font-size: 1rem; font-weight: 600; }
.panel__leer-icon { width: 76px; height: 76px; margin-bottom: 8px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); border: 1px dashed rgba(201, 168, 106, .45); background: rgba(201, 168, 106, .04); }
.panel__leer-icon .icon { width: 34px; height: 34px; --icon-strich: 1.5; }
.panel__gruppe { padding-top: 8px; }
.panel__gruppe-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 2px 8px; font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.panel__gruppe-kopf .t-zahl { color: var(--text-3); letter-spacing: .08em; }
.pos { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: "bild info" "unten unten"; gap: 8px 12px; padding: 12px 2px; border-top: 1px solid var(--linie); animation: pos-rein 320ms var(--ease) both; }
@keyframes pos-rein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pos__bild { grid-area: bild; position: relative; width: 52px; height: 52px; border-radius: 13px; overflow: hidden; background: var(--flaeche-2); }
.pos__bild .foto-platzhalter .icon { width: 24px; }
.pos__bild .foto-platzhalter::before { display: none; }
.pos__info { grid-area: info; min-width: 0; align-self: center; }
.pos__name { font-size: .92rem; font-weight: 600; line-height: 1.3; color: var(--weiss); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pos__meta { margin-top: 2px; font-size: .74rem; color: var(--text-3); }
.pos__unten { grid-area: unten; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pos__notiz {
  display: inline-flex; align-items: center; gap: 7px; min-height: 48px; min-width: 0; max-width: 58%;
  padding: 0 12px 0 8px; border: 1px dashed transparent; border-radius: 13px; background: none;
  color: var(--text-3); font-size: .78rem; cursor: pointer; text-align: left;
}
.pos__notiz .icon { width: 16px; height: 16px; flex: none; }
.pos__notiz-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos__notiz.hat-notiz { color: var(--gold-hell); border-color: rgba(201, 168, 106, .35); background: rgba(201, 168, 106, .06); }
.panel .zaehlwerk { padding: 3px; gap: 4px; background: rgba(255, 255, 255, .02); }
.panel .zaehlwerk__zahl { font-size: 1.1rem; min-width: 2ch; }
.panel__summe { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 4px; padding: 12px 2px 2px; border-top: 1px solid var(--linie); color: var(--text-2); font-size: .86rem; }
.panel__summe b { color: var(--gold-hell); font-size: 1rem; }
.panel__fuss { flex: none; display: grid; gap: 10px; padding: 14px 16px calc(16px + var(--sicher-unten)); border-top: 1px solid var(--linie); background: rgba(0, 0, 0, .28); }
.panel__sperre {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px;
  background: rgba(201, 168, 106, .07); border: 1px solid rgba(201, 168, 106, .3);
}
.panel__sperre > div:last-child { display: grid; gap: 3px; min-width: 0; }
.panel__sperre .ring__text { font-size: .74rem; }
.panel__sperre span { font-size: .78rem; color: var(--text-2); line-height: 1.38; }
/* darf zweizeilig werden (Russisch), die Restzeit bricht nie auseinander */
.panel__countdown { color: var(--gold-hell); font-size: .9rem; font-weight: 600; line-height: 1.3; }
.panel__sperre .panel__countdown span { font-size: inherit; color: inherit; line-height: inherit; }
.panel__countdown .countdown__zeit { white-space: nowrap; }
.panel__sperre b:not(.panel__countdown) { color: var(--weiss); font-size: .9rem; }
.panel__sperre--vorbei { background: rgba(255, 255, 255, .03); border-color: var(--linie-stark); }
.panel__sperre-icon { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); border: 1px solid var(--linie-stark); }
.panel__senden { font-size: 1.06rem; padding: 0 22px; white-space: nowrap; }
.panel__senden[disabled] { background: var(--flaeche-2); color: var(--text-3); border-color: var(--linie-stark); box-shadow: none; text-shadow: none; opacity: 1; filter: none; }
.panel__senden[disabled] .knopf__zahl { background: rgba(255, 255, 255, .08); color: var(--text-2); }
.panel__nur-getraenke { white-space: normal; line-height: 1.2; padding-inline: 16px; }
.panel__senden span:not(.knopf__zahl), .panel__nur-getraenke span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.panel__mini[disabled] { background: var(--flaeche-2); color: var(--text-3); border-color: var(--linie-stark); box-shadow: none; text-shadow: none; opacity: 1; filter: none; }
.panel__senden .knopf__zahl { margin-left: 2px; }
.panel-grund { display: none; }

/* ---------- Flug ins Panel ---------- */
.flug {
  position: fixed; z-index: 850; margin: 0; pointer-events: none; object-fit: cover;
  border-radius: 18px; opacity: 1; will-change: transform, opacity;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8), 0 0 0 2px rgba(233, 213, 166, .5);
}
.foto-platzhalter.flug { position: fixed; }

/* =========================================================================================== */
/* Blaetter (ui.js blatt) und Aufklappfeld                                                      */
/* =========================================================================================== */
.blatt { background: linear-gradient(180deg, #0f1115, #0a0b0e); }
.blatt__titel { overflow-wrap: anywhere; }
.blatt--detail .blatt__inhalt { padding-top: 0; }

/* Detail */
.detail { display: grid; gap: 20px; }
.detail__bild { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: var(--flaeche-2) center / cover no-repeat; box-shadow: 0 20px 44px -26px rgba(0, 0, 0, .9); }
.detail__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; color: var(--gold); font-weight: 600; font-size: .9rem; letter-spacing: .03em; }
.detail__preis { color: var(--gold-hell); font-size: 1.25rem; font-weight: 600; }
.detail__ayce { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); font-weight: 700; }
.detail__text { margin-top: 10px; font-size: 1.02rem; line-height: 1.6; color: var(--text); }
.detail__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.detail__tag { letter-spacing: .08em; }
.detail__tag--vegan, .detail__tag--vegetarisch { color: #b7e4c0; border-color: rgba(143, 209, 158, .45); }
.detail__tag--scharf { color: #ffb3a7; border-color: rgba(238, 90, 82, .45); }
.detail__tag--roh { color: var(--shio-blau); border-color: rgba(159, 211, 242, .45); }
.detail__abschnitt { padding-top: 18px; border-top: 1px solid var(--linie); }
.detail__h { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.detail__allergene { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.detail__allergene li { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--text); line-height: 1.3; }
.detail__allergene b { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(201, 168, 106, .5); color: var(--gold-hell); font-size: .78rem; }
.detail__keine { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: .9rem; }
.detail__keine .icon { color: var(--ok); }
.detail__hinweis { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; line-height: 1.5; color: var(--text-2); }
.detail__hinweis + .detail__hinweis { margin-top: 10px; }
.detail__hinweis .icon { color: var(--gold); margin-top: 2px; }
.detail__nachweis { font-size: .7rem; color: var(--text-3); }
.detail__fussbox { display: grid; gap: 12px; width: 100%; }
.detail__sperre { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; border-radius: 14px; background: rgba(240, 181, 69, .08); border: 1px solid rgba(240, 181, 69, .35); color: #ffd48a; font-size: .84rem; line-height: 1.4; }
.detail__sperre .icon { flex: none; }
.detail__fuss { display: flex; align-items: center; gap: 14px; width: 100%; }
.detail__hinzu { flex: 1; }
.detail__hinzu.ist-gesperrt { opacity: .45; filter: saturate(.3); }
.detail__summe { margin-left: 4px; opacity: .78; font-weight: 700; }

/* Notiz */
.notiz { display: grid; gap: 10px; }
.notiz__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.notiz__chip {
  min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--linie-stark);
  background: var(--flaeche-2); color: var(--text); font-size: .88rem; font-weight: 500; cursor: pointer;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease), color 200ms var(--ease);
}
.notiz__chip.ist-an { border-color: rgba(201, 168, 106, .7); background: var(--gold-glanz); color: var(--gold-hell); }
.notiz__feld { min-height: 76px; }

/* Senden */
.blatt--senden .blatt__fuss { justify-content: stretch; }
.senden { display: grid; gap: 16px; }
.senden__kopf { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 20px; background: rgba(201, 168, 106, .07); border: 1px solid rgba(201, 168, 106, .3); }
.senden__symbol { width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--gold-hell); background: var(--gold-glanz); border: 1px solid rgba(201, 168, 106, .45); }
.senden__symbol .icon { width: 28px; height: 28px; }
.senden__gross { font-size: 1.5rem; font-weight: 500; color: var(--weiss); line-height: 1.2; }
.senden__klein { font-size: .82rem; color: var(--text-2); margin-top: 2px; }
.senden__liste { list-style: none; margin: 0; padding: 0; }
.senden__zeile { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 11px 2px; border-bottom: 1px solid var(--linie); font-size: .98rem; }
.senden__menge { color: var(--gold-hell); font-weight: 700; }
.senden__name { color: var(--weiss); overflow-wrap: anywhere; }
.senden__notiz { display: block; font-size: .78rem; color: var(--gold-hell); opacity: .85; margin-top: 2px; }
.senden__preis { color: var(--text-2); }
.senden__gruppe { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.senden__summe { display: flex; justify-content: space-between; color: var(--text-2); font-size: .9rem; }
.senden__summe b { color: var(--gold-hell); }
.senden__hinweis { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: .82rem; }
.senden__hinweis .icon { color: var(--gold); }
.senden__fuss { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; width: 100%; }

/* Erfolg */
.erfolg {
  position: fixed; inset: 0; z-index: 970; display: grid; place-items: center; overflow: hidden; cursor: pointer;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(14, 16, 20, .93) 0%, rgba(5, 6, 8, .97) 70%);
  opacity: 0; transition: opacity 460ms var(--ease);
}
.erfolg.ist-offen { opacity: 1; }
.erfolg.ist-zu { opacity: 0; }
.erfolg__wellen { position: absolute; left: 0; top: 50%; width: 100%; height: 260px; transform: translate3d(0, -50%, 0); pointer-events: none; }
.erfolg__wellen path { stroke-dashoffset: 0; }
.erfolg.ist-offen .erfolg__wellen { animation: wellen-gleiten 3200ms var(--ease) both; }
.erfolg.ist-offen .erfolg__wellen path { animation: welle-zeichnen 1500ms cubic-bezier(.5, .1, .2, 1) calc(var(--n) * 150ms) forwards; }
@keyframes welle-zeichnen { to { stroke-dashoffset: 0; } }
@keyframes wellen-gleiten { from { transform: translate3d(-3%, -50%, 0); opacity: .4; } 30% { opacity: 1; } to { transform: translate3d(2%, -50%, 0); opacity: .85; } }
.erfolg__inhalt { position: relative; z-index: 1; display: grid; justify-items: center; gap: 12px; text-align: center; padding: 34px 48px; }
.erfolg__inhalt::before { content: ""; position: absolute; inset: -30px -90px; z-index: -1; background: radial-gradient(closest-side, rgba(7, 8, 10, .94), rgba(7, 8, 10, .7) 60%, rgba(7, 8, 10, 0)); }
.erfolg__kreis svg { width: 96px; height: 96px; display: block; }
.erfolg__kreis circle { fill: rgba(201, 168, 106, .08); stroke: var(--gold); stroke-width: 2.5; }
.erfolg__kreis path { fill: none; stroke: var(--gold-hell); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.erfolg.ist-offen .erfolg__kreis circle { animation: strich 800ms var(--ease) 160ms forwards; }
.erfolg.ist-offen .erfolg__kreis path { animation: strich 520ms var(--ease) 760ms forwards; }
@keyframes strich { to { stroke-dashoffset: 0; } }
.erfolg__titel {
  font-family: var(--font-schrift); font-size: clamp(3rem, 6.6vw, 4.6rem); line-height: 1.15; padding: .06em .18em;
  background: var(--gold-text-verlauf); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translate3d(0, 16px, 0) scale(.98);
  transition: opacity 700ms var(--ease) 520ms, transform 800ms var(--ease) 520ms;
}
.erfolg__titel.ohne-pinsel { font-family: var(--font-sans); font-weight: 300; letter-spacing: .04em; font-size: clamp(2rem, 4.2vw, 3rem); }
.erfolg__unter, .erfolg__text { opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity 600ms var(--ease) 820ms, transform 700ms var(--ease) 820ms; }
.erfolg__unter { font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.erfolg__text { color: var(--text-2); font-size: 1rem; }
.erfolg.ist-offen .erfolg__titel, .erfolg.ist-offen .erfolg__unter, .erfolg.ist-offen .erfolg__text { opacity: 1; transform: none; }

/* Meine Bestellungen */
.bestellungen__live { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 16px; color: var(--ok); font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.bestellungen__liste { display: grid; gap: 14px; }
.bestellung { padding: 16px 18px 8px; border-radius: 22px; border: 1px solid var(--linie-stark); background: linear-gradient(180deg, #14171c, #0f1115); }
.bestellung--fertig { border-color: rgba(79, 207, 141, .5); box-shadow: 0 0 0 1px rgba(79, 207, 141, .12) inset; }
.bestellung--serviert { opacity: .82; }
.bestellung__kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bestellung__titel { display: flex; align-items: baseline; gap: 12px; font-size: 1.06rem; font-weight: 600; color: var(--weiss); }
.bestellung__zeit { font-size: .84rem; font-weight: 500; color: var(--text-3); }
.bestellung__stationen { display: flex; gap: 6px; }
.bestellung__station-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); border: 1px solid rgba(201, 168, 106, .35); }
.bestellung__station-icon .icon { width: 17px; height: 17px; }
.verlauf { list-style: none; margin: 16px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.verlauf__schritt { position: relative; display: grid; justify-items: center; gap: 7px; text-align: center; font-size: .66rem; line-height: 1.25; color: var(--text-3); padding: 0 2px; }
.verlauf__schritt::before { content: ""; position: absolute; top: 7px; left: -50%; right: 50%; height: 2px; background: var(--linie-stark); }
.verlauf__schritt:first-child::before { display: none; }
.verlauf__schritt.ist-erledigt::before, .verlauf__schritt.ist-jetzt::before { background: var(--gold); }
.verlauf__punkt { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--linie-stark); background: #0f1115; }
.verlauf__schritt.ist-erledigt .verlauf__punkt { background: var(--gold); border-color: var(--gold); }
.verlauf__schritt.ist-jetzt .verlauf__punkt { background: var(--gold-hell); border-color: var(--gold-hell); box-shadow: 0 0 0 5px rgba(233, 213, 166, .16); }
.verlauf__schritt.ist-jetzt .verlauf__text { color: var(--gold-hell); font-weight: 600; }
.bestellung__liste { list-style: none; margin: 0; padding: 0; }
.bestellung__pos { display: grid; grid-template-columns: 26px 34px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 11px 0; border-top: 1px solid var(--linie); font-size: .9rem; }
.bestellung__station .icon { width: 18px; height: 18px; color: var(--gold); }
.bestellung__menge { color: var(--gold-hell); font-weight: 700; }
.bestellung__name { color: var(--weiss); overflow-wrap: anywhere; }
.bestellung__notiz { display: block; margin-top: 2px; font-size: .74rem; color: var(--gold-hell); opacity: .8; }
.bestellung__pos.ist-storniert .bestellung__name { text-decoration: line-through; color: var(--text-3); }
.status-pille { font-size: .58rem; letter-spacing: .1em; padding: 3px 9px; min-height: 24px; }

/* Service */
.ruf-status { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 12px 16px; border-radius: 16px; background: rgba(79, 207, 141, .08); border: 1px solid rgba(79, 207, 141, .38); color: #b4f2d1; font-weight: 600; font-size: .9rem; }
.ruf-status--block { margin: 0; width: 100%; justify-content: center; min-height: 60px; }
.service__frage { margin: 4px 0 18px; }
.service__raster { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.service__grund {
  display: grid; justify-items: start; align-content: start; gap: 8px; min-height: 156px; padding: 18px;
  border-radius: 22px; border: 1px solid var(--linie-stark); background: linear-gradient(180deg, #14171c, #0f1115);
  color: var(--text); text-align: left; cursor: pointer;
  transition: transform 140ms var(--ease), border-color 220ms var(--ease);
}
.service__grund:active { transform: scale(.98); }
.service__grund.ist-aktiv { border-color: rgba(79, 207, 141, .55); }
.service__icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-hell); background: var(--gold-glanz); border: 1px solid rgba(201, 168, 106, .45); margin-bottom: 4px; }
.service__icon .icon { width: 24px; height: 24px; }
.service__titel { font-size: 1.02rem; font-weight: 600; color: var(--weiss); line-height: 1.3; }
.service__text { font-size: .82rem; color: var(--text-2); line-height: 1.4; }

/* Rechnung */
.rechnung__beleg { padding: 20px 20px 18px; border-radius: 22px; border: 1px solid var(--linie-stark); background: linear-gradient(180deg, #15181d, #0f1115); }
.rechnung__kopf { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--linie-stark); }
.rechnung__marke { height: 32px; width: auto; }
.rechnung__meta { display: grid; justify-items: end; gap: 5px; font-size: .78rem; color: var(--text-2); text-align: right; }
.rechnung__label { margin: 16px 0 4px; }
.rechnung__zeilen { list-style: none; margin: 0; padding: 0; }
.rechnung__zeile { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--linie); font-size: .92rem; }
.rechnung__menge { color: var(--gold-hell); font-weight: 700; }
.rechnung__text { color: var(--weiss); overflow-wrap: anywhere; }
.rechnung__einzel { display: block; margin-top: 2px; font-size: .74rem; color: var(--text-3); }
.rechnung__betrag { color: var(--weiss); font-weight: 600; }
.rechnung__summe { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 6px; padding-top: 14px; border-top: 1px solid rgba(201, 168, 106, .45); color: var(--text); font-weight: 600; }
.rechnung__summe small { display: block; font-size: .7rem; font-weight: 500; color: var(--text-3); }
.rechnung__summe b { font-size: 1.7rem; font-weight: 500; color: var(--gold-hell); }
.rechnung__zahlen { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; width: 100%; }
.rechnung__zahlarten { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: .9rem; line-height: 1.4; }
.rechnung__karte { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--gold-hell); background: var(--gold-glanz); border: 1px solid rgba(201, 168, 106, .45); }
.rechnung__fuss { width: 100%; display: grid; gap: 14px; }
.rechnung__zahlen .rbpay-marke { flex: none; }

/* Filter */
.filter__gruppe { margin: 22px 0 12px; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.filter__gruppe:first-child { margin-top: 4px; }
.filter__schalterliste { display: grid; gap: 8px; }
.filter__schalter {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 0 16px;
  border-radius: 18px; border: 1px solid var(--linie-stark); background: var(--flaeche); color: var(--text);
  text-align: left; cursor: pointer; transition: border-color 220ms var(--ease);
}
.filter__schalter.ist-an { border-color: rgba(201, 168, 106, .6); }
.filter__icon .icon { width: 22px; height: 22px; color: var(--gold); }
.filter__text { flex: 1; font-size: .98rem; font-weight: 500; }
.filter__kippe { position: relative; width: 50px; height: 30px; flex: none; border-radius: 999px; background: var(--flaeche-3); border: 1px solid var(--linie-stark); transition: background-color 220ms var(--ease); }
.filter__kippe::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--text-2); transition: transform 260ms var(--ease-feder), background-color 220ms var(--ease); }
.filter__schalter.ist-an .filter__kippe { background: var(--gold-verlauf); border-color: transparent; }
.filter__schalter.ist-an .filter__kippe::after { transform: translateX(20px); background: #1a1408; }
.filter__hilfe { font-size: .78rem; line-height: 1.5; color: var(--text-3); margin: 0 0 12px; }
.filter__allergene { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filter__allergen {
  display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 6px 12px;
  border-radius: 15px; border: 1px solid var(--linie-stark); background: var(--flaeche); color: var(--text);
  font-size: .82rem; line-height: 1.25; text-align: left; cursor: pointer;
}
.filter__allergen b { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(201, 168, 106, .45); color: var(--gold-hell); font-size: .78rem; }
.filter__allergen.ist-an { border-color: rgba(238, 90, 82, .6); background: rgba(238, 90, 82, .09); color: #ffd3cf; }
.filter__allergen.ist-an b { border-color: rgba(238, 90, 82, .7); color: #ffb3ad; background: rgba(238, 90, 82, .14); }
.filter__legende { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.filter__legende li { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--text-2); }
.filter__legende .gericht__symbol { -webkit-backdrop-filter: none; backdrop-filter: none; }
.filter__fuss { display: flex; gap: 12px; width: 100%; }
.filter__zeigen { flex: 1; white-space: nowrap; padding-inline: 18px; }
.filter__fuss .knopf--leise { flex: none; padding-inline: 20px; }

/* Sprachwahl */
.aufklapp-grund { position: fixed; inset: 0; z-index: 890; }
.aufklapp {
  position: fixed; z-index: 891; width: 240px; padding: 8px; border-radius: 22px;
  background: rgba(17, 20, 24, .97); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--linie-stark); box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  opacity: 0; transform: translate3d(0, -8px, 0) scale(.97); transform-origin: top right;
  transition: opacity 200ms var(--ease), transform 260ms var(--ease);
}
.aufklapp.ist-offen { opacity: 1; transform: none; }
.aufklapp__eintrag {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; padding: 0 16px;
  border: 0; border-radius: 15px; background: none; color: var(--text); font-size: 1.02rem; text-align: left; cursor: pointer;
}
.aufklapp__eintrag:active { background: rgba(255, 255, 255, .06); }
.aufklapp__eintrag.ist-aktiv { color: var(--gold-hell); background: var(--gold-glanz); }
.aufklapp__eintrag .icon { width: 18px; height: 18px; }

/* Verbindung: ruhiger Hinweis fuer die Gaeste (kein Alarm, keine Bedienung), bei wieder erreichbarem System
   in der Offline-Demo mit Knopf "Zurueck zum System" */
.verbindung {
  position: fixed; z-index: 870; left: 50%; top: calc(10px + var(--sicher-oben));
  display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 24px); min-height: 56px; padding: 8px 22px 8px 18px;
  border-radius: 999px; background: rgba(17, 20, 24, .95); border: 1px solid rgba(201, 168, 106, .4);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
  transform: translate3d(-50%, -160%, 0); transition: transform 460ms var(--ease);
}
.verbindung.ist-offen { transform: translate3d(-50%, 0, 0); }
.verbindung--wieder { padding-right: 8px; }
.verbindung__laden { flex: none; }
.verbindung__icon .icon { width: 22px; height: 22px; color: var(--gold); }
.verbindung__text { display: grid; gap: 1px; min-width: 0; }
.verbindung__text b { color: var(--weiss); font-size: .92rem; }
.verbindung__text span { color: var(--text-2); font-size: .74rem; }
.verbindung__knopf { flex: none; }

/* =========================================================================================== */
/* Einrichten und Personal                                                                      */
/* =========================================================================================== */
.einrichten { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: calc(24px + var(--sicher-oben)) 24px calc(18px + var(--sicher-unten)); overflow-y: auto; overscroll-behavior: contain; }
.einrichten > .einrichten__karte { margin-top: auto; }
.einrichten__hg { position: absolute; inset: 0; background: radial-gradient(90% 70% at 50% 0%, #15181d 0%, #07080a 70%); }
.einrichten__karte {
  position: relative; width: min(540px, 100%); display: grid; justify-items: center; gap: 14px; text-align: center;
  padding: 40px 38px 36px; border-radius: 34px; border: 1px solid var(--linie-stark);
  background: rgba(12, 14, 17, .86); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9);
}
.einrichten__karte--breit { width: min(920px, 100%); justify-items: stretch; text-align: left; padding: 30px 32px 26px; gap: 10px; }
.einrichten__logo { width: 116px; margin-bottom: 8px; }
.einrichten__text { max-width: 52ch; margin-bottom: 10px; }
.einrichten__knoepfe { display: flex; justify-content: flex-start; margin-top: 8px; }
.einrichten__fuss { position: relative; margin-top: auto; display: flex; justify-content: center; flex: none; }

.tischwahl { display: grid; gap: 12px; width: 100%; }
.tischwahl__name { margin-bottom: 8px; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.tischwahl__raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; }
.tischwahl__tisch {
  position: relative; min-height: 58px; display: grid; place-items: center; align-content: center; gap: 2px;
  border-radius: 16px; border: 1px solid var(--linie-stark); background: var(--flaeche); color: var(--weiss); cursor: pointer;
  transition: transform 140ms var(--ease), border-color 200ms var(--ease);
}
.tischwahl__tisch:active { transform: scale(.96); }
.tischwahl__nr { font-size: 1.35rem; font-weight: 600; line-height: 1; }
.tischwahl__plaetze { font-size: .66rem; color: var(--text-3); }
.tischwahl__tisch.ist-besetzt { border-color: rgba(240, 181, 69, .45); }
.tischwahl__tisch.ist-besetzt::after { content: ""; position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.tischwahl__tisch.ist-aktuell { border-color: var(--gold); background: var(--gold-glanz); }

.personal { display: grid; gap: 12px; }
.personal__kopf { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--gold-glanz); border: 1px solid rgba(201, 168, 106, .4); }
.personal__tischnr { display: inline-flex; align-items: center; gap: 8px; font-size: 1.2rem; font-weight: 600; color: var(--weiss); white-space: nowrap; }
.personal__tischnr .icon { color: var(--gold); }
.personal__gruppe { margin-top: 12px; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.personal__titel { font-size: .95rem; font-weight: 600; color: var(--weiss); }
.personal__text { font-size: .8rem; color: var(--text-2); line-height: 1.45; }
.personal__zeile { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.personal__zeile .knopf { flex: none; }
.personal__tempo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.personal__tempo-knopf {
  display: grid; justify-items: center; gap: 2px; min-height: 64px; padding: 8px; border-radius: 16px;
  border: 1px solid var(--linie-stark); background: var(--flaeche); color: var(--text); cursor: pointer;
}
.personal__tempo-knopf b { font-size: 1.02rem; color: var(--weiss); }
.personal__tempo-knopf span { font-size: .7rem; color: var(--text-3); }
.personal__tempo-knopf.ist-aktiv { border-color: var(--gold); background: var(--gold-glanz); }
.personal__tempo-knopf.ist-aktiv b { color: var(--gold-hell); }
.personal__info { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.personal__info li { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--text-2); }
.personal__info .icon { color: var(--gold); }
.personal__fuss { margin-top: 12px; display: flex; justify-content: center; }

/* =========================================================================================== */
/* Quer, schmal (1024 x 768)                                                                    */
/* =========================================================================================== */
@media (orientation: landscape) and (max-width: 1100px) {
  :root { --leiste-h: 72px; }
  .rail__knopf { font-size: .82rem; gap: 9px; padding-inline: 8px; }
  .rail__icon { width: 30px; height: 30px; }
  .panel__countdown { display: none; }
  .panel__sperre { padding: 10px 12px; gap: 12px; }
  /* schmales Panel (300 px): Platz fuer laengere Beschriftungen (pl "Wyślij zamówienie", ru "Пожелание") */
  .panel__senden { padding-inline: 14px; gap: .45em; }
  .pos__notiz { padding: 0 8px 0 6px; gap: 5px; }
  .leiste { gap: 10px; }
  .leiste__wort { height: 32px; }
  .leiste__bestellungen { padding: 0 14px; }
  .leiste__tisch { padding: 0 12px; }
  .leiste__fortschritt { width: 120px; }
  .inhalt { padding-inline: 18px; }
  .inhalt__kopf { margin-inline: -18px; padding-inline: 18px; }
  .inhalt__abb { display: none; }
  .raster { gap: 14px; }
}
/* iPad mini quer (1133 px): Rail nur 172 px, ru "Популярное" braeche sonst mitten im Wort um */
@media (orientation: landscape) and (max-width: 1140px) {
  .rail__knopf { gap: 9px; padding-inline: 8px; }
}
@media (orientation: landscape) and (max-width: 1060px) {
  .leiste__bestellungen-text { display: none; }
  .leiste__bestellungen { width: 48px; padding: 0; }
}
@media (orientation: landscape) and (max-height: 800px) {
  .panel__senden { --k-hoehe: 60px; }
  .panel__kopf { padding-block: 14px 12px; }
  .panel__fortschritt { margin-top: 10px; }
  .rail__knopf { min-height: 48px; padding-block: 5px; }
  .rail__icon { width: 30px; height: 30px; }
  .willkommen__sprachen { gap: 12px; }
  .sprachknopf { min-height: 58px; }
  .personen__karte { padding: 18px 20px 16px; gap: 14px; }
  .personen .zaehlwerk__knopf { width: 58px; height: 58px; }
  .regeln__karte { padding: 30px 34px 24px; }
  .regeln__kopf { margin-bottom: 18px; }
  .regeln__punkt { padding: 14px; }
}

/* =========================================================================================== */
/* Hochkant (820 x 1180, 768 x 1024)                                                            */
/* =========================================================================================== */
@media (orientation: portrait) {
  :root { --leiste-h: 72px; }
  .haupt {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: calc(var(--leiste-h) + var(--sicher-oben)) auto minmax(0, 1fr);
    grid-template-areas: "leiste" "rail" "inhalt";
  }
  .leiste { gap: 8px; padding-left: calc(10px + var(--sicher-links)); padding-right: calc(12px + var(--sicher-rechts)); }
  .leiste__wort, .leiste__bestellungen-text, .leiste__sprache .leiste__kuerzel { display: none; }
  .leiste__bestellungen, .leiste__sprache { width: 48px; padding: 0; }
  .leiste__runde { padding: 0 6px; gap: 10px; justify-content: flex-start; }
  .leiste__fortschritt { width: 110px; }
  .leiste__tisch { padding: 0 12px; }
  .leiste__rechts { gap: 8px; }

  .rail { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--linie); padding-left: 0; }
  .rail__liste { display: flex; flex-direction: row; overflow-x: auto; overflow-y: hidden; gap: 8px; padding: 10px 16px; }
  .rail__knopf { flex: none; width: auto; min-height: 48px; padding: 5px 16px 5px 7px; border-radius: 999px; border: 1px solid var(--linie); white-space: nowrap; }
  .rail__knopf.ist-aktiv { border-color: rgba(201, 168, 106, .6); background: var(--gold-glanz); }
  .rail__knopf.ist-aktiv::before { display: none; }
  .rail__icon { width: 32px; height: 32px; }
  .rail__name { overflow-wrap: normal; }
  .rail__fuss { display: none; }

  .inhalt { padding: 0 16px calc(var(--panel-zu) + 28px); }
  .inhalt__kopf { margin-inline: -16px; padding-inline: 16px; }
  .inhalt__fuss .rbpay-marke { display: inline-flex; }
  .raster { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }

  .panel {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    height: min(80vh, 900px); border-left: 0; padding-right: 0;
    border-radius: 30px 30px 0 0; border-top: 1px solid rgba(201, 168, 106, .35);
    background: linear-gradient(180deg, #111318, #0a0b0e 40%);
    box-shadow: 0 -24px 60px rgba(0, 0, 0, .65);
    transform: translate3d(0, calc(100% - var(--panel-zu)), 0);
    transition: transform 440ms var(--ease);
  }
  .panel.ist-offen { transform: none; }
  .panel__kopf { cursor: pointer; padding: 10px 18px 14px; border-bottom-color: transparent; }
  .panel.ist-offen .panel__kopf { border-bottom-color: var(--linie); }
  .panel__griff { display: block; width: 46px; height: 5px; margin: 0 auto 10px; border-radius: 3px; background: rgba(255, 255, 255, .24); }
  .panel__titelzeile { min-height: 48px; }
  .panel__umschalter { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; border: 1px solid var(--linie-stark); background: none; color: var(--text); cursor: pointer; }
  .panel__umschalter .icon { transition: transform 300ms var(--ease); }
  .panel.ist-offen .panel__umschalter .icon { transform: rotate(180deg); }
  .panel__mini { display: inline-flex; min-height: 48px; padding: 0 18px; }
  .panel.ist-offen .panel__mini { display: none; }
  .panel__unter { display: none; }
  .panel__fortschritt { margin-top: 10px; }
  .panel-grund { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(3, 4, 6, .58); opacity: 0; pointer-events: none; transition: opacity 380ms var(--ease); }
  .panel-grund.ist-offen { opacity: 1; pointer-events: auto; }
  html[data-ansicht="karte"] .toast-leiste { bottom: calc(var(--panel-zu) + 16px); }

  .willkommen__sprachen { grid-template-columns: repeat(2, minmax(200px, 250px)); }
  .willkommen__logo { width: min(250px, 24vh); }
  .personen__zaehler { grid-template-columns: 1fr; width: min(460px, 100%); }
  .personen__karte { grid-template-columns: 1fr auto; justify-items: start; align-items: center; }
  .personen__karte-kopf { justify-content: flex-start; }
  .personen__karte .zaehlwerk { grid-row: span 2; justify-self: end; }
  .regeln__liste { grid-template-columns: 1fr; }
  .service__raster { grid-template-columns: 1fr 1fr; }
}

/* Quer: Toasts ueber dem Raster statt ueber dem Panel */
@media (orientation: landscape) {
  html[data-ansicht="karte"] .toast-leiste {
    left: calc(var(--rail-b) + (100vw - var(--rail-b) - var(--panel-b)) / 2);
    width: min(520px, calc(100vw - var(--rail-b) - var(--panel-b) - 32px));
  }
}

/* Handy (nur Notbetrieb, das Tablet ist das Ziel) */
@media (max-width: 600px) {
  .raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .leiste__tisch { display: none; }
  .willkommen__sprachen { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .personen__kopf { grid-template-columns: auto 1fr; }
  .personen__marke { display: none; }
  .regeln__karte { padding: 28px 20px 22px; }
  .service__raster, .filter__allergene, .detail__allergene { grid-template-columns: 1fr; }
  .inhalt__marke .inhalt__abb { display: none; }
}

/* Bewegung reduzieren: Einblendungen stehen sofort, Hintergrund ruht */
@media (prefers-reduced-motion: reduce) {
  .willkommen__hg img { animation: none; }
  .logo-anim #zeichen, .logo-anim #wort, .logo-anim #zusatz, .logo-anim #welle-1, .logo-anim #welle-2, .logo-anim #welle-3 { opacity: 1; }
  .logo-anim #kreis circle { stroke-dashoffset: 0; }
  .erfolg__wellen path { stroke-dashoffset: 0 !important; }
  .live-punkt::after, .leiste__rund.ist-aktiv::after { display: none; }
}

/* Android-App „SHIO Bestellung“ (Lenovo TB311FU, schwache Grafik), gemessen 13.10.2026: Unschärfe hinter Elementen
   (backdrop-filter, u. a. dreimal je Gerichtkarte) wird bei jedem Scrollschritt neu gerechnet, 44 ms je Bild.
   Nur in der App aus; die Hintergründe werden dafür etwas deckender, damit Lesbarkeit und Optik bleiben. */
.ist-kiosk *, .ist-kiosk *::before, .ist-kiosk *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
/* Ausnahmen: das goldene Signature-Etikett und die Rueckmeldung beim Antippen behalten ihren eigenen Hintergrund */
.ist-kiosk .gericht__label:not(.gericht__label--signature), .ist-kiosk .gericht__symbol { background: rgba(8, 9, 11, .88); }
.ist-kiosk .gericht__stepper { background: rgba(8, 9, 11, .95); }
.ist-kiosk .sprachknopf:not(:active) { background: rgba(12, 14, 18, .86); }
.ist-kiosk .personen__karte { background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)), rgba(14, 16, 20, .95); }
.ist-kiosk .regeln__grund { background: rgba(3, 4, 6, .9); }
.ist-kiosk .karte--glas { background: rgba(20, 23, 28, .95); }
.ist-kiosk .ui-grund { background: rgba(3, 4, 6, .8); }
/* Essenszeit abgelaufen (2 Stunden, Zeitsprung im Tischplan): am Tablet nur noch Getraenke sichtbar (13.10.2026) */
.ayce-vorbei .abschnitt:not([data-kat="getraenke"]) { display: none !important; }
.ayce-vorbei .rail__knopf:not([data-kat="getraenke"]) { display: none !important; }