/* Gästekarte am Tisch: GRUNDFORM für alle Restaurants (Motor-Styles: Aufbau, Dialoge, Warenkorb, Fokus, Bewegung).
   Das Aussehen eines Restaurants steht in public/restaurants/<kurzname>/stil.css und wird nach dieser Datei geladen.
   Dort lassen sich alle Variablen unten ändern und jede Regel überschreiben (Anleitung: docs/DESIGN-JE-RESTAURANT.md).
   Ohne eigenes Design gilt diese schlichte Form: ruhige Farben, Systemschriften, keine Bilder. */

:root {
  /* Flächen und Text */
  --grund: #f6f4ef;            /* Seitenhintergrund */
  --flaeche: #ffffff;          /* Karten, Dialoge, Felder */
  --text: #1d1f1e;
  --leise: #545a58;            /* Nebentext (mind. 4,5:1 auf --grund) */
  --linie: #d6d2c8;
  /* Akzent: Knöpfe, Links, Preise */
  --akzent: #1f4d46;
  --akzent-dunkel: #163a35;
  --auf-akzent: #ffffff;       /* Schrift auf dem Akzent */
  --zweit: #2f4a33;            /* zweite Farbe (z. B. vegetarisch) */
  --zier: #8a6d2f;             /* feine Zierlinien */
  /* Hinweise und Meldungen */
  --hinweis-grund: #f7f0dc;
  --hinweis-rand: #8a6d2f;
  --fehler-grund: #f6e3e0;
  --fehler-text: #5a1214;
  --fehler-banner: #7a1812;
  --ok-grund: #e3f1e6;
  --ok-text: #173d20;
  --ok-rand: #2f6b3a;
  --feldrand: #7c7f7d;
  --punktlinie: #8b8f8c;       /* Linie zwischen Gericht und Preis */
  --leiste-leer: #ebe7dd;      /* Fortschritt des Bestellstands */
  --aus-grund: #d9d6cf;        /* gesperrter Knopf */
  --aus-text: #4a4d4b;
  --abdunkeln: rgba(20, 22, 21, .6);
  /* Schriften: nur Systemschriften oder Dateien im Ordner des Restaurants (keine Verbindung zu Dritten) */
  --schrift: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --schrift-titel: var(--schrift);
  --schrift-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* Bis das Design des Restaurants geladen ist (js/gast-design.js): nichts zeigen, damit nichts springt */
html.design-laedt body { visibility: hidden; }
:root { color-scheme: light; } /* Formularfelder bleiben auch im Dunkelmodus des Systems lesbar */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 8rem; scroll-padding-bottom: 6rem; }
body { margin: 0; font-family: var(--schrift); font-size: 1.0625rem; color: var(--text); background: var(--grund); line-height: 1.5; }
h1, h2, h3 { font-family: var(--schrift); line-height: 1.2; margin: 0; font-weight: 700; }
button, input { font: inherit; }
input { background: var(--flaeche); color: var(--text); }
a { color: var(--akzent); }
[hidden] { display: none !important; }
.zentriert { text-align: center; }

/* Fokus: dunkler Rahmen auf hellem Grund, golden in der dunklen Küche */
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.bar:focus-visible { outline-color: var(--auf-akzent); outline-offset: -6px; }
main:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Hilfsklassen ---------- */
.skip { position: absolute; left: .5rem; top: -4rem; z-index: 100; background: var(--text); color: var(--grund); padding: .7rem 1.1rem; font-family: var(--schrift-ui); font-weight: 600; text-decoration: none; }
.skip:focus { top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Schaltflächen ---------- */
.primaer, .sekundaer, .knopf {
  display: inline-block; border: 1px solid var(--akzent); border-radius: 0; padding: .8rem 1.5rem; cursor: pointer;
  font-family: var(--schrift-ui); font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  text-align: center; text-decoration: none; transition: background-color .15s, color .15s;
}
.primaer, .knopf { background: var(--akzent); color: var(--auf-akzent); }
.primaer:hover, .knopf:hover { background: var(--akzent-dunkel); border-color: var(--akzent-dunkel); }
.primaer:disabled { background: var(--aus-grund); border-color: var(--aus-grund); color: var(--aus-text); cursor: not-allowed; }
.sekundaer { background: transparent; color: var(--text); border-color: var(--linie); }
.sekundaer:hover { background: color-mix(in srgb, var(--text) 5%, transparent); }
.gross { width: 100%; padding: 1rem 1.4rem; }

/* ---------- Gäste-Seite: Kopf ---------- */
.demo-hinweis { background: var(--text); color: var(--grund); text-align: center; font-family: var(--schrift-ui); font-size: .85rem; padding: .5rem .75rem; }
.demo-hinweis.fehlerbanner { background: var(--fehler-banner); }
.sprache { display: flex; justify-content: flex-end; gap: .25rem; max-width: 56rem; margin: 0 auto; padding: .35rem .75rem 0; }
.sprache button { background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--leise); padding: .5rem .7rem; min-height: 2.5rem; font-family: var(--schrift-ui); font-size: .82rem; font-weight: 600; letter-spacing: .06em; cursor: pointer; }
.sprache button:hover { color: var(--akzent); }
.sprache button[aria-pressed="true"] { color: var(--akzent); border-bottom-color: var(--akzent); }
.kopf { padding: .6rem 1rem 1.2rem; }
.kopf-rahmen {
  max-width: 40rem; margin: 0 auto; text-align: center; padding: 1.6rem 1.25rem 1.3rem;
  border: 1px solid var(--akzent); outline: 1px solid var(--akzent); outline-offset: 4px;
}
.wappen { width: 3.6rem; height: 3.6rem; color: var(--akzent); }
.ueberzeile { margin: .4rem 0 0; font-family: var(--schrift-ui); font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: var(--leise); }
.kopf h1 { font-size: clamp(2.1rem, 8vw, 3.2rem); font-weight: 400; color: var(--akzent); letter-spacing: .02em; margin: .2rem 0 .3rem; }
.unterzeile { margin: 0; font-style: italic; color: var(--leise); }
.tisch-leiste { display: flex; align-items: center; gap: .9rem; max-width: 24rem; margin: 1.1rem auto .5rem; }
.strich { flex: 1; border-top: 1px solid var(--linie); }
.chip { font-family: var(--schrift-ui); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--akzent); color: var(--akzent); padding: .3rem .9rem; white-space: nowrap; }
.willkommen { margin: 0 auto; max-width: 28rem; font-size: .95rem; color: var(--leise); }

/* ---------- Gäste-Seite: Bild-Fenster (Kopf und Kategorien), gleich wie auf der Website der Osteria ---------- */
.fenster { position: relative; overflow: hidden; background: var(--text); }
.gast .kopf h1 { font-family: var(--schrift-titel); font-weight: 500; font-size: clamp(2.6rem, 9vw, 3.8rem); line-height: 1.05; letter-spacing: 0; }
.gast .kategorie h2 { font-family: var(--schrift-titel); font-weight: 500; font-size: clamp(2.3rem, 1.8rem + 1.8vw, 2.9rem); }
.gast .service h2 { font-family: var(--schrift-titel); font-weight: 500; font-size: 2rem; }
.fenster > img { position: absolute; left: 0; top: -20%; width: 100%; height: 140%; object-fit: cover; will-change: transform; }
.kopf-bild { height: clamp(13rem, 38vh, 24rem); }
.kopf-bild > img { object-position: 30% 55%; }
.kopf-bild + .kopf { position: relative; margin-top: -4.5rem; padding-top: 0; }
.kopf-bild + .kopf .kopf-rahmen { background: var(--flaeche); }
.kat-bild { height: clamp(8.5rem, 30vw, 14rem); margin: 0 0 1.5rem; border-radius: 18px; }
.kopf-bild { border-radius: 0 0 24px 24px; }
/* Fotos der Gerichte mit runden Ecken, beim Zeigen leicht größer (wie auf der Website) */
.gast .gericht-bild { border: 0; padding: 0; border-radius: 10px; transition: scale .6s cubic-bezier(.16, 1, .3, 1); }
.gast .gericht:hover .gericht-bild { scale: 1.06; }
@media (prefers-reduced-motion: reduce) { .gast .gericht:hover .gericht-bild { scale: 1; } }

/* ---------- Gäste-Seite: Navigation und Filter ---------- */
.navleiste { position: sticky; top: 0; z-index: 10; background: var(--grund); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.kategorien, .filter { display: flex; justify-content: center; gap: .1rem; overflow-x: auto; max-width: 56rem; margin: 0 auto; padding: 0 .5rem; scrollbar-width: none; }
.kategorien::-webkit-scrollbar, .filter::-webkit-scrollbar { display: none; }
.kategorien a {
  flex: none; text-decoration: none; color: var(--text); padding: .8rem .9rem .65rem; min-height: 2.75rem;
  font-family: var(--schrift-ui); font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 2px solid transparent;
}
.kategorien a:hover { color: var(--akzent); }
.kategorien a.aktiv { color: var(--akzent); border-bottom-color: var(--akzent); }
.filter { padding-bottom: .55rem; gap: .5rem; }
.filter button {
  flex: none; background: transparent; color: var(--leise); border: 1px solid var(--linie); border-radius: 0;
  padding: .35rem .85rem; font-family: var(--schrift-ui); font-size: .78rem; cursor: pointer;
}
.filter button:hover { border-color: var(--leise); }
.filter button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--grund); }

/* ---------- Gäste-Seite: Speisekarte ---------- */
.gast main { max-width: 42rem; margin: 0 auto; padding: 1.5rem 1.1rem 7rem; }
/* Restaurantname: 5 Sekunden halten öffnet den Personal-Dialog. Kein Markieren, kein Kontextmenü beim langen Drücken. */
.kopf h1.halten { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }

.kategorie { margin-bottom: 2.4rem; }
.kategorie h2 { text-align: center; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.5rem); font-weight: 400; font-style: italic; color: var(--akzent); }
.kategorie h2::after { content: ""; display: block; width: 5rem; height: 1px; background: var(--zier); margin: .55rem auto 0; }
.kat-hinweis { margin: .6rem 0 0; text-align: center; font-style: italic; color: var(--leise); font-size: .95rem; }
.gerichte { margin-top: 1.1rem; }

.gericht { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.gericht .text { flex: 1; min-width: 0; }
.zeile { display: flex; align-items: baseline; gap: .4rem; }
.zeile h3 { font-size: 1.12rem; }
.leader { flex: 1; min-width: 1rem; border-bottom: 1px dotted var(--punktlinie); transform: translateY(-.28em); }
.preis { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.beschreibung { margin: .15rem 0 0; font-style: italic; color: var(--leise); font-size: .98rem; }
.zusatz { margin: .15rem 0 0; font-family: var(--schrift-ui); font-size: .76rem; color: var(--leise); }

.control { flex: none; width: 7.4rem; display: flex; justify-content: flex-end; padding-top: .1rem; } /* feste Breite: Preise stehen untereinander */
.add { width: 2.6rem; height: 2.6rem; background: transparent; color: var(--akzent); border: 1px solid var(--akzent); border-radius: 0; font-family: var(--schrift-ui); font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background-color .15s, color .15s; }
.add:hover { background: var(--akzent); color: var(--auf-akzent); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--akzent); }
.stepper button { width: 2.6rem; height: 2.6rem; border: 0; background: transparent; color: var(--akzent); font-family: var(--schrift-ui); font-size: 1.3rem; cursor: pointer; }
.stepper button:hover { background: var(--akzent); color: var(--auf-akzent); }
.stepper span { min-width: 2rem; text-align: center; font-weight: 700; font-family: var(--schrift-ui); }

.service { margin-top: 2.5rem; padding: 1.3rem 1.2rem 1.4rem; border: 1px solid var(--akzent); outline: 1px solid var(--akzent); outline-offset: 4px; text-align: center; }
.service h2 { font-size: 1.6rem; font-weight: 400; font-style: italic; color: var(--akzent); }
.service p { margin: .4rem 0 1rem; color: var(--leise); }
.service-knoepfe { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.service-knoepfe button { flex: 1 1 12rem; max-width: 16rem; }
.bewertung { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: 0 0 1.25rem; padding: .7rem 1rem; border: 1px solid var(--zier); background: var(--hinweis-grund); }
.bewertung p { margin: 0; }
.ruf-gruppe { border: 1px solid var(--linie); margin: 0 0 .8rem; padding: .6rem .9rem .8rem; }
.ruf-gruppe legend { padding: 0 .4rem; font-family: var(--schrift-ui); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--leise); }
.ruf-gruppe label { display: inline-flex; align-items: center; gap: .5rem; margin-right: 1.4rem; min-height: 2.5rem; font-family: var(--schrift-ui); cursor: pointer; }
.ruf-gruppe input[type="radio"] { width: 1.15rem; height: 1.15rem; accent-color: var(--akzent); }
.ruf-bewertung { margin: 1rem 0 0; padding: .7rem .9rem; border: 1px solid var(--hinweis-rand); background: var(--hinweis-grund); font-size: .95rem; }
.ruf-bewertung p { margin: 0; }
.bewertung-link { margin-top: .6rem; padding: .6rem 1.1rem; }

/* Fotos der Gerichte: auf schmalen Bildschirmen steht der Mengenknopf unter dem Text */
.gericht.mit-bild { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); grid-template-areas: "bild text" "bild control"; column-gap: .9rem; row-gap: .4rem; }
.gericht.mit-bild .gericht-bild { grid-area: bild; }
.gericht.mit-bild .text { grid-area: text; }
.gericht.mit-bild .control { grid-area: control; width: auto; }
.gericht-bild { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--linie); border: 1px solid var(--linie); padding: 2px; }
@media (min-width: 560px) {
  .gericht.mit-bild { grid-template-columns: 7.5rem minmax(0, 1fr) 7.4rem; grid-template-areas: "bild text control"; }
}
/* Nur ansehen (ohne Tisch): keine Spalte für den Mengenknopf, der Text nutzt die ganze Breite */
body.nur-ansehen .gericht.mit-bild { grid-template-columns: 5.6rem minmax(0, 1fr); grid-template-areas: "bild text"; }
@media (min-width: 560px) {
  body.nur-ansehen .gericht.mit-bild { grid-template-columns: 7.5rem minmax(0, 1fr); }
}

/* Bestellstand für den Gast */
.status-box { margin: 0 0 1.75rem; padding: 1rem 1.1rem .4rem; border: 1px solid var(--zweit); outline: 1px solid var(--zweit); outline-offset: 3px; background: var(--flaeche); }
.status-box h2 { font-size: 1.4rem; font-weight: 400; font-style: italic; color: var(--zweit); margin-bottom: .4rem; }
.status-box h2:focus { outline: none; }
.status-gruppe { padding: .6rem 0 .8rem; border-top: 1px solid var(--linie); }
.status-zeit { margin: 0; font-family: var(--schrift-ui); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--leise); }
.status-stand { margin: .15rem 0 .45rem; font-size: 1.2rem; font-weight: 700; color: var(--text); }
.status-gruppe.fertig .status-stand { color: var(--zweit); }
.status-box progress { display: block; width: 100%; height: .55rem; border: 1px solid var(--linie); background: var(--leiste-leer); appearance: none; -webkit-appearance: none; accent-color: var(--zweit); }
.status-box progress::-webkit-progress-bar { background: var(--leiste-leer); }
.status-box progress::-webkit-progress-value { background: var(--zweit); transition: width .6s; }
.status-box progress::-moz-progress-bar { background: var(--zweit); }
.status-positionen { list-style: none; margin: .55rem 0 0; padding: 0; font-family: var(--schrift-ui); font-size: .9rem; }
.status-positionen li { display: flex; justify-content: space-between; gap: .75rem; padding: .15rem 0; }
.status-positionen .pos-stand { color: var(--leise); white-space: nowrap; }
.status-positionen li.erledigt .pos-stand { color: var(--zweit); font-weight: 600; }
.danke-zeit { font-weight: 700; color: var(--zweit); }
.leer { color: var(--leise); }
.hinweise { margin-top: 2.5rem; padding-top: 1.1rem; border-top: 1px solid var(--linie); font-size: .9rem; color: var(--leise); }
.hinweise h2 { font-size: 1.1rem; color: var(--text); margin-bottom: .5rem; }
.legende-titel { font-family: var(--schrift-ui); font-size: .82rem; font-weight: 700; color: var(--text); margin: .4rem 0 .3rem; }
.legende { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; padding: 0; margin: 0 0 .75rem; font-family: var(--schrift-ui); font-size: .82rem; }

.fuss { text-align: center; padding: 1.2rem 1rem 6rem; font-family: var(--schrift-ui); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.fuss a { display: inline-block; margin: 0 .25rem; padding: .75rem .6rem; }

/* ---------- Warenkorb-Leiste und Dialog ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  background: var(--akzent); color: var(--auf-akzent); border: 0; border-top: 3px double color-mix(in srgb, var(--auf-akzent) 55%, transparent); border-radius: 0;
  padding: .95rem max(1.1rem, calc((100vw - 42rem) / 2 + 1.1rem)); font-family: var(--schrift-ui); font-size: .9rem; font-weight: 600; cursor: pointer; text-align: left;
}
.bar:hover { background: var(--akzent-dunkel); }
.bar-mitte { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; opacity: .95; }
.bar-summe { font-size: 1rem; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .bar-mitte { display: none; } }

.sheet {
  border: 1px solid var(--akzent); padding: 1.6rem 1.5rem; width: min(34rem, calc(100% - 1.5rem)); max-height: 92vh; margin: auto;
  background: var(--flaeche); color: var(--text); border-radius: 0;
  box-shadow: inset 0 0 0 5px var(--flaeche), inset 0 0 0 6px var(--linie);
}
.sheet[open] { animation: einblenden .2s ease-out; }
@keyframes einblenden { from { opacity: 0; } to { opacity: 1; } }
.sheet::backdrop { background: var(--abdunkeln); }
.sheet-kopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.sheet-kopf h2 { font-size: 1.7rem; font-weight: 400; font-style: italic; color: var(--akzent); }
.icon { width: 2.75rem; height: 2.75rem; border: 0; background: transparent; color: var(--text); font-size: 1.9rem; line-height: 1; cursor: pointer; }
.icon:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.cart-liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.cart-zeile { padding: .75rem 0; border-bottom: 1px solid var(--linie); }
.cart-oben { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.notiz { margin-top: .5rem; }
.notiz label { display: block; margin-bottom: .2rem; font-family: var(--schrift-ui); font-size: .8rem; color: var(--leise); }
.notiz input { width: 100%; padding: .5rem .7rem; border: 1px solid var(--feldrand); border-radius: 0; font-family: var(--schrift-ui); font-size: .95rem; }
.cart-name { display: flex; flex-direction: column; }
.cart-name span { color: var(--leise); font-size: .92rem; }
.summe { display: flex; justify-content: space-between; font-size: 1.25rem; padding: 1rem 0 .3rem; }
.klein { font-size: .84rem; color: var(--leise); margin: 0 0 .6rem; }
.cart-tisch { font-weight: 700; margin: 0 0 .75rem; }
.cart-tisch.fehlt { font-weight: 400; border: 1px solid var(--hinweis-rand); padding: .4rem .7rem; background: var(--hinweis-grund); }
/* Personal-Dialog auf der Speisekarte (Tisch für neue Gäste öffnen) */
#personal-formular label { display: block; font-weight: 700; margin: .5rem 0 .3rem; }
.personal-pin { width: 11rem; max-width: 100%; padding: .65rem .9rem; margin-bottom: .75rem; border: 1px solid var(--feldrand); border-radius: 0; font-family: var(--schrift-ui); font-size: 1.5rem; letter-spacing: .3em; text-align: center; }
.personal-meldung { font-family: var(--schrift-ui); font-size: .95rem; padding: .6rem .8rem; margin: .5rem 0 .75rem; border: 1px solid var(--hinweis-rand); background: var(--hinweis-grund); }
.personal-meldung.ok { border-color: var(--ok-rand); background: var(--ok-grund); color: var(--ok-text); }
.personal-meldung.fehler { border-color: var(--akzent); background: var(--fehler-grund); color: var(--fehler-text); }
.fehler { border: 1px solid var(--akzent); background: var(--fehler-grund); color: var(--fehler-text); padding: .6rem .8rem; margin: 0 0 .75rem; font-family: var(--schrift-ui); font-size: .9rem; }
.sheet .sekundaer { width: 100%; margin-top: .4rem; }
.danke { text-align: center; padding: 1rem 0 .5rem; }
.danke h2 { font-size: 2rem; font-weight: 400; font-style: italic; color: var(--akzent); margin-bottom: .6rem; }
.danke h2::after { content: ""; display: block; width: 5rem; height: 1px; background: var(--zier); margin: .6rem auto 0; }
.danke p { margin: 1rem 0 1.4rem; }

/* =====================================================================================================
   Stand 11/2026: Personal, Raumplan, Dashboard-Anbindung und modernere Bewegungen (Küche, Service, Karte).
   Charakter bleibt: Papier, Bordeaux, Gold, Serifenschrift, eckige Karten. Neu: ruhige, kurze Bewegungen
   (unter 0,3 s), Knöpfe geben beim Drücken nach, Segmente mit gleitendem Schieber wie der Bestellannahme-Schalter.
   Wer "weniger Bewegung" eingestellt hat, sieht keine Animationen (Regel ganz oben).
   ===================================================================================================== */
:root {
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
}

/* ---------- Drücken: Knöpfe geben leicht nach ---------- */
.primaer, .sekundaer, .knopf, .add, .stepper button, .mini, .k-segment button, .k-schalter, .k-tabs button,
.s-tisch, .v-kachel, .bar, .rp-tisch, .pe-tisch, .icon, .sprache button, .filter button {
  transition-property: background-color, color, border-color, box-shadow, transform, opacity;
  transition-duration: .16s;
  transition-timing-function: var(--ease-out);
}
.primaer:active:not(:disabled), .sekundaer:active:not(:disabled), .knopf:active, .add:active, .stepper button:active,
.mini:active, .k-segment button:active, .k-schalter:active, .icon:active, .filter button:active, .pe-tisch:active { transform: scale(.97); }
.s-tisch:active, .v-kachel:active, .rp-tisch:active { transform: scale(.98); }
.bar:active { transform: scale(.995); }
.k-schiene { transition: background-color .2s var(--ease-out); }
.k-schiene::after { transition: transform .22s var(--ease-out); }

/* ---------- Kurze Bestätigung unten ---------- */
.toast { position: fixed; left: 50%; bottom: 1.4rem; z-index: 60; max-width: calc(100% - 2rem); padding: .7rem 1.15rem; background: var(--flaeche); color: var(--text);
  border: 1px solid var(--zier); font: 600 .95rem var(--schrift-ui); box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transform: translate(-50%, 140%); opacity: 0; transition: transform .28s var(--ease-out), opacity .2s ease; pointer-events: none; }
.toast.sichtbar { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Fenster (Dialoge) gleiten herein ---------- */
.sheet[open] { animation: sheet-rein .26s var(--ease-out); }
.sheet[open]::backdrop { animation: einblenden .26s ease; }
@keyframes sheet-rein { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
/* Warenkorb auf dem Handy: als Blatt von unten */
@media (max-width: 560px) {
  #cart-dialog.sheet, .s-sheet { width: 100%; max-width: 100%; margin: auto 0 0; max-height: 90vh; border-bottom: 0; padding-bottom: max(1.4rem, env(safe-area-inset-bottom)); }
  #cart-dialog.sheet[open], .s-sheet[open] { animation: blatt-rein .32s var(--ease-drawer); }
}
@keyframes blatt-rein { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- Speisekarte: Warenkorb ---------- */
.bar { transition-property: background-color, transform; }
.bar:not([hidden]) { animation: leiste-rein .32s var(--ease-drawer); }
@keyframes leiste-rein { from { transform: translateY(100%); } to { transform: none; } }
.bar-summe.hupf, .bar-links.hupf { display: inline-block; animation: hupf .34s var(--ease-out); }
@keyframes hupf { 0% { transform: scale(1); } 35% { transform: scale(1.14); } 100% { transform: scale(1); } }
.stepper span.pop { display: inline-block; animation: hupf .3s var(--ease-out); }
.flieg-punkt { position: fixed; z-index: 70; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--akzent);
  box-shadow: 0 0 0 3px var(--flaeche); pointer-events: none; }
.add:hover { box-shadow: 0 2px 0 color-mix(in srgb, var(--akzent) 25%, transparent); }

/* Hinweise zur Bestellung im Warenkorb (aufklappbar) */
.bestellhinweise { margin: 0 0 .6rem; }
.bestellhinweise summary { cursor: pointer; min-height: 24px; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.bestellhinweise ol { margin: .4rem 0 0; padding-left: 1.2rem; }
.bestellhinweise li { margin: 0 0 .3rem; }

