/* MAWA Lounge Löhne – Bestellseite
   Aufbau nach Lieferando-Muster (Titelbild, Restaurantkarte, mitlaufende
   Kategorien, Warenkorb rechts), Farben aus dem MAWA-Auftritt:
   Logo-Schwarz, Flyer-Gold, Rot für Scharfes. */

:root {
  --schwarz: #000000;
  --tinte: #1a1814;
  --grau: #5e5a52;
  --linie: #e6e3dc;
  --flaeche: #f4f3ef;
  --weiss: #ffffff;
  --gold: #f8a701;
  --gold-hell: #fff3d6;
  --gold-text: #8f5d00;
  --rot: #d42a20;
  --gruen: #1f8a4c;

  --schrift: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --titel: "Barlow Condensed", "Arial Narrow", sans-serif;
  --logo: "Montserrat", "Helvetica Neue", sans-serif;

  --r-klein: 8px;
  --r: 14px;
  --r-gross: 22px;
  --schatten: 0 1px 2px rgba(26, 24, 20, 0.06), 0 6px 20px rgba(26, 24, 20, 0.06);
  --schatten-hoch: 0 18px 50px rgba(0, 0, 0, 0.22);

  --raus: cubic-bezier(0.22, 1, 0.36, 1);
  --feder: cubic-bezier(0.34, 1.4, 0.64, 1);
  --kopf-h: 64px;
  --leiste-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf-h) + 120px); }
body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 16px;
  line-height: 1.5;
  color: var(--tinte);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}
body.gesperrt { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ikon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.springen { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--schwarz); padding: 10px 14px; border-radius: var(--r-klein); font-weight: 700; }
.springen:focus { top: 12px; }

/* ---------- Kopf ---------- */

.kopf {
  position: sticky; top: 0; z-index: 40;
  background: var(--schwarz); color: var(--weiss);
  height: var(--kopf-h);
}
.kopf-innen {
  max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.marke { display: flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.marke-wort { font-family: var(--logo); font-weight: 300; font-size: 25px; letter-spacing: 0.32em; margin-right: -0.32em; }
.marke-ort {
  font-family: var(--logo); font-weight: 300; font-size: 10.5px; letter-spacing: 0.08em;
  border-top: 1px solid rgba(255, 255, 255, 0.55); padding-top: 4px; margin-top: 4px;
}

.art-wahl {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  background: #22201c; border-radius: 999px; padding: 4px;
}
.art-wahl button {
  position: relative; z-index: 1; border: 0; background: none; color: #cfcac0;
  padding: 7px 16px; font-weight: 600; font-size: 14px; border-radius: 999px;
  transition: color 0.25s var(--raus);
}
.art-wahl button[aria-checked="true"] { color: var(--schwarz); }
.art-marker {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  background: var(--gold); border-radius: 999px;
  transition: transform 0.35s var(--raus);
}
.art-wahl[data-art="abholung"] .art-marker { transform: translateX(100%); }

/* ---------- Titelbild ---------- */

.titelbild { position: relative; height: 210px; overflow: hidden; background: var(--schwarz); }
.titelbild img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 55%; }
.titelbild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.35)); }

/* ---------- Seitenraster ---------- */

.seite {
  max-width: 1280px; margin: 0 auto; padding: 0 16px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px;
}
@media (min-width: 1024px) {
  .seite { grid-template-columns: minmax(0, 1fr) 360px; }
  .titelbild { height: 280px; }
}

/* ---------- Restaurantkarte ---------- */

.info-karte {
  position: relative; margin-top: -56px; z-index: 2;
  background: var(--weiss); border-radius: var(--r-gross); box-shadow: var(--schatten);
  padding: 20px; display: grid; gap: 16px;
  grid-template-columns: auto 1fr;
}
.info-logo {
  width: 72px; height: 72px; border-radius: var(--r); background: var(--schwarz); color: var(--weiss);
  display: grid; place-items: center; margin-top: -44px; box-shadow: 0 0 0 4px var(--weiss);
}
.info-logo span { font-family: var(--logo); font-weight: 300; font-size: 14px; letter-spacing: 0.24em; margin-right: -0.24em; }
.info-text { grid-column: 1 / -1; }
.info-karte h1 { font-family: var(--titel); font-weight: 700; font-size: clamp(30px, 6vw, 40px); letter-spacing: 0.005em; }
.info-kueche { margin: 4px 0 10px; color: var(--grau); }
.status { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; font-size: 14px; padding: 5px 12px 5px 10px; border-radius: 999px; }
.status.offen { background: #e6f4ec; color: var(--gruen); }
.status.geschlossen { background: var(--flaeche); color: var(--grau); }
.status-punkt { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.offen .status-punkt { animation: puls 2.4s ease-in-out infinite; }
@keyframes puls { 0%, 100% { box-shadow: 0 0 0 0 rgba(31,138,76,0.45); } 50% { box-shadow: 0 0 0 6px rgba(31,138,76,0); } }

.info-fakten { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--linie); padding-top: 14px; }
.info-fakten div { padding: 0 12px; border-left: 1px solid var(--linie); }
.info-fakten div:first-child { padding-left: 0; border-left: 0; }
.info-fakten dt { font-size: 13px; color: var(--grau); }
.info-fakten dd { margin: 2px 0 0; font-weight: 700; }
.info-knopf {
  grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 0; font-weight: 600; color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Postleitzahl prüfen ---------- */

.plz-pruefung { margin-top: 20px; }
.plz-pruefung label { display: block; font-weight: 700; margin-bottom: 6px; }
.plz-zeile { display: flex; gap: 8px; }
.plz-zeile input {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1.5px solid var(--linie); border-radius: 999px; background: var(--weiss);
  transition: border-color 0.2s;
}
.plz-zeile input:focus { outline: none; border-color: var(--schwarz); }
.plz-zeile button { height: 48px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--schwarz); color: var(--weiss); font-weight: 700; transition: transform 0.15s; }
.plz-zeile button:active { transform: scale(0.96); }
.plz-ergebnis { margin: 8px 4px 0; min-height: 1.5em; font-weight: 500; }
.plz-ergebnis.ok { color: var(--gruen); }
.plz-ergebnis.nein { color: var(--rot); }

/* ---------- Suche und Kategorienleiste ---------- */

.leiste {
  position: sticky; top: var(--kopf-h); z-index: 30;
  background: var(--weiss); margin: 8px -16px 0; padding: 12px 16px 0;
  transition: box-shadow 0.25s;
}
.leiste.klebt { box-shadow: 0 6px 16px -10px rgba(0,0,0,0.25); }
.suche { position: relative; }
.suche .ikon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--grau); }
.suche input {
  width: 100%; height: 44px; padding: 0 16px 0 44px; border: 0; border-radius: 999px; background: var(--flaeche);
}
.suche input:focus { outline: 2px solid var(--schwarz); outline-offset: 0; background: var(--weiss); }

.kat-nav { position: relative; display: flex; align-items: center; margin-top: 6px; }
.kat-spur {
  position: relative; display: flex; gap: 4px; overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; padding: 6px 0 10px;
}
.kat-spur::-webkit-scrollbar { display: none; }
.kat-spur a {
  position: relative; z-index: 1; flex: none; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 15px; color: var(--grau); white-space: nowrap;
  transition: color 0.25s var(--raus);
}
.kat-spur a:hover { color: var(--tinte); }
.kat-spur a[aria-current="true"] { color: var(--weiss); }
.kat-marker {
  position: absolute; top: 6px; left: 0; height: calc(100% - 16px); width: 0;
  background: var(--schwarz); border-radius: 999px;
  transition: transform 0.4s var(--raus), width 0.4s var(--raus);
}
.kat-pfeil {
  position: absolute; top: 6px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: var(--weiss); box-shadow: var(--schatten); display: none; place-items: center;
}
.kat-pfeil.links { left: -6px; }
.kat-pfeil.rechts { right: -6px; }
@media (hover: hover) and (min-width: 720px) { .kat-pfeil:not([hidden]) { display: grid; } }

/* ---------- Empfehlungen ---------- */

.empfohlen { margin-top: 28px; }
.empfohlen h2, .kategorie-kopf h2, .fragen h2 { font-family: var(--titel); font-weight: 700; font-size: 28px; }
.empfohlen-liste {
  list-style: none; margin: 14px -16px 0; padding: 4px 16px 12px; display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 72%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.empfohlen-liste::-webkit-scrollbar { display: none; }
.empfohlen-liste li { scroll-snap-align: start; }
@media (min-width: 720px) { .empfohlen-liste { grid-auto-columns: minmax(250px, 1fr); } }
.empfohlen-karte {
  width: 100%; height: 100%; text-align: left; display: flex; flex-direction: column; gap: 6px;
  background: var(--weiss); border: 1.5px solid var(--linie); border-radius: var(--r); padding: 16px;
  transition: border-color 0.2s, transform 0.2s var(--raus);
}
.empfohlen-karte:hover { border-color: var(--tinte); }
.empfohlen-karte:active { transform: scale(0.98); }
.empfohlen-name { font-weight: 700; font-size: 17px; }
.empfohlen-text { color: var(--grau); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.empfohlen-fuss { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; }
.empfohlen-preis { font-weight: 700; }

/* ---------- Speisekarte ---------- */

.kategorie { margin-top: 36px; scroll-margin-top: calc(var(--kopf-h) + var(--leiste-h) + 12px); }
.kategorie-bild { display: block; height: 140px; border-radius: var(--r); overflow: hidden; margin-bottom: 16px; background: var(--schwarz); }
.kategorie-bild img { width: 100%; height: 100%; object-fit: cover; }
.kategorie-kopf p { margin: 6px 0 0; color: var(--grau); max-width: 65ch; }
.gerichte { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .gerichte { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) and (max-width: 1199px) { .gerichte { grid-template-columns: minmax(0, 1fr); } }

.gericht-knopf {
  position: relative; width: 100%; height: 100%; text-align: left;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--weiss); border: 1.5px solid var(--linie); border-radius: var(--r);
  padding: 16px 64px 16px 16px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.18s var(--raus);
}
.gericht-knopf:hover { border-color: #bdb8ad; box-shadow: var(--schatten); }
.gericht-knopf:active { transform: scale(0.985); }
.gericht-kopf { display: flex; align-items: center; gap: 6px; }
.gericht-name { font-weight: 700; font-size: 17px; }
.gericht-text { color: var(--grau); font-size: 14.5px; line-height: 1.45; }
.gericht-wahl { font-size: 13px; color: var(--grau); }
.gericht-preis { margin-top: 6px; font-weight: 700; }
.pfand { font-weight: 400; font-size: 12.5px; color: var(--grau); }
.merkmal.scharf { color: var(--rot); display: inline-flex; }
.chili { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.chili path:last-child { fill: none; }

.gericht-plus {
  position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--flaeche); display: grid; place-items: center;
  transition: background 0.2s, transform 0.25s var(--feder);
}
.empfohlen-karte .gericht-plus { position: static; }
.gericht-knopf:hover .gericht-plus { background: var(--gold); }
.gericht-menge {
  position: absolute; inset: 0; border-radius: 50%; background: var(--schwarz); color: var(--weiss);
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
  transform: scale(0); transition: transform 0.3s var(--feder);
}
.gericht.im-korb .gericht-menge { transform: scale(1); }
.gericht.im-korb .gericht-knopf { border-color: var(--tinte); }
.gericht.ausgeblendet { display: none; }
.gericht.ausverkauft .gericht-knopf { cursor: not-allowed; background: var(--flaeche); transform: none; box-shadow: none; border-color: var(--linie); }
.gericht.ausverkauft .gericht-name, .gericht.ausverkauft .gericht-preis, .gericht.ausverkauft .gericht-text { opacity: 0.55; }
.gericht.ausverkauft .gericht-plus { display: none; }
.gericht-aus { font-size: 13px; font-weight: 700; color: var(--rot); }
.kategorie.leer { display: none; }
.keine-treffer { margin: 40px 0; padding: 24px; text-align: center; background: var(--flaeche); border-radius: var(--r); color: var(--grau); }
.gericht-plus.hupf { animation: hupf 0.45s var(--feder); }
@keyframes hupf { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* ---------- Fragen ---------- */

.fragen { margin: 56px 0 40px; max-width: 760px; }
.frage { border-bottom: 1px solid var(--linie); }
.frage summary { list-style: none; cursor: pointer; padding: 16px 32px 16px 0; font-weight: 700; position: relative; }
.frage summary::-webkit-details-marker { display: none; }
.frage summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
  transition: transform 0.3s var(--raus);
}
.frage[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.frage p { margin: 0 0 16px; color: var(--grau); max-width: 65ch; }

/* ---------- Warenkorb ---------- */

.korb {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  max-height: 88dvh; display: flex; flex-direction: column;
  background: var(--weiss); border-radius: var(--r-gross) var(--r-gross) 0 0; box-shadow: var(--schatten-hoch);
  transform: translateY(105%); visibility: hidden;
  transition: transform 0.45s var(--raus), visibility 0s linear 0.45s;
}
.korb.offen { transform: translateY(0); visibility: visible; transition: transform 0.45s var(--raus), visibility 0s; }
.korb.zieht { transition: none; }
.korb:focus { outline: none; }
.korb-griff { width: 40px; height: 5px; border-radius: 3px; background: var(--linie); margin: 10px auto 0; flex: none; }
.korb-kopf { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px 8px; touch-action: none; }
.korb-kopf h2 { font-family: var(--titel); font-weight: 700; font-size: 26px; }
.korb-rumpf { overflow-y: auto; padding: 0 20px; flex: 1; overscroll-behavior: contain; }
.korb-leer { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--grau); padding: 28px 0 36px; }
.korb-leer svg { width: 56px; height: 56px; fill: none; stroke: #c9c4b8; stroke-width: 2.5; stroke-linejoin: round; margin-bottom: 12px; }
.korb-leer p { margin: 0; }
.korb-leer strong { display: block; color: var(--tinte); font-size: 17px; }
.korb-liste { list-style: none; margin: 0; padding: 0; }
.korb-liste li {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--linie);
  animation: rein 0.35s var(--raus);
}
@keyframes rein { from { opacity: 0; transform: translateY(-6px); } }
.korb-name { font-weight: 600; }
.korb-zusatz { display: block; font-size: 13.5px; color: var(--grau); font-weight: 400; }
.korb-preis { font-weight: 600; text-align: right; }
.korb-liste .menge { grid-column: 1 / -1; justify-self: start; }

.menge { display: inline-flex; align-items: center; border: 1.5px solid var(--linie); border-radius: 999px; }
.menge button { width: 38px; height: 38px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; }
.menge button:active { transform: scale(0.88); }
.menge output { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.korb-liste .menge button { width: 32px; height: 32px; }
.korb-liste .menge .ikon { width: 16px; height: 16px; }

.korb-fuss { padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linie); }
.mindest { margin-bottom: 12px; }
.mindest-balken { height: 6px; border-radius: 3px; background: var(--flaeche); overflow: hidden; }
.mindest-balken span { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 3px; transition: width 0.6s var(--raus); }
.mindest p { margin: 6px 0 0; font-size: 14px; color: var(--grau); }
.summen { margin: 0; display: grid; gap: 4px; }
.summen div { display: flex; justify-content: space-between; }
.summen dt { color: var(--grau); }
.summen dd { margin: 0; font-variant-numeric: tabular-nums; }
.summen .gesamt { font-weight: 700; font-size: 18px; padding-top: 6px; }
.summen .gesamt dt { color: var(--tinte); }

.haupt-knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  height: 52px; margin-top: 14px; padding: 0 20px; border: 0; border-radius: 999px;
  background: var(--gold); color: var(--schwarz); font-weight: 700; font-size: 17px;
  transition: transform 0.15s var(--raus), background 0.2s, opacity 0.2s;
}
.haupt-knopf:hover { background: #ffb21a; }
.haupt-knopf:active { transform: scale(0.97); }
.haupt-knopf:disabled { background: var(--flaeche); color: #9a958a; cursor: not-allowed; transform: none; }
.haupt-knopf span:empty { display: none; }

.korb-leiste {
  position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 50;
  height: 56px; border: 0; border-radius: 999px; background: var(--schwarz); color: var(--weiss);
  display: flex; align-items: center; gap: 12px; padding: 0 20px 0 10px; font-weight: 700; font-size: 16px;
  box-shadow: var(--schatten-hoch);
  animation: hoch 0.45s var(--raus);
}
@keyframes hoch { from { transform: translateY(120%); } }
.korb-leiste-anzahl {
  min-width: 36px; height: 36px; border-radius: 999px; background: var(--gold); color: var(--schwarz);
  display: grid; place-items: center; padding: 0 8px;
}
.korb-leiste-anzahl.hupf { animation: hupf 0.45s var(--feder); }
.korb-leiste-summe { margin-left: auto; font-variant-numeric: tabular-nums; }
.korb-leiste[hidden] { display: none; }

.schleier {
  position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,0.45);
  animation: blende 0.3s ease;
}
.schleier[hidden] { display: none; }
@keyframes blende { from { opacity: 0; } }

.schliessen { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--flaeche); display: grid; place-items: center; flex: none; }
.schliessen:hover { background: var(--linie); }

@media (min-width: 1024px) {
  .korb {
    position: sticky; top: calc(var(--kopf-h) + 20px); align-self: start; margin-top: 24px;
    max-height: calc(100vh - var(--kopf-h) - 40px); transform: none; visibility: visible; transition: none;
    border: 1.5px solid var(--linie); border-radius: var(--r-gross); box-shadow: none; z-index: 1;
  }
  .korb-griff, .korb-zu { display: none; }
  .korb-kopf { padding-top: 18px; }
  .korb-leiste, .schleier#schleier.nur-korb { display: none !important; }
  .korb.hupf { animation: korbhupf 0.5s var(--feder); }
}
@keyframes korbhupf { 30% { transform: translateY(-4px); box-shadow: 0 10px 30px -10px rgba(248,167,1,0.6); } }

/* ---------- Dialoge ---------- */

.dialog { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; }
.dialog[hidden] { display: none; }
.dialog::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.5); animation: blende 0.3s ease; }
.dialog.zu::before { opacity: 0; transition: opacity 0.25s; }
.dialog-blatt {
  position: relative; width: 100%; max-height: 92dvh; display: flex; flex-direction: column;
  background: var(--weiss); border-radius: var(--r-gross) var(--r-gross) 0 0;
  animation: blatt-hoch 0.45s var(--raus);
}
.dialog.zu .dialog-blatt { transform: translateY(100%); transition: transform 0.28s cubic-bezier(0.4, 0, 1, 1); }
@keyframes blatt-hoch { from { transform: translateY(100%); } }
@media (min-width: 720px) {
  .dialog { align-items: center; padding: 24px; }
  .dialog-blatt { max-width: 520px; border-radius: var(--r-gross); max-height: 88vh; animation: blatt-auf 0.35s var(--raus); }
  .dialog-blatt.breit { max-width: 620px; }
  .dialog.zu .dialog-blatt { transform: scale(0.96); opacity: 0; transition: transform 0.2s, opacity 0.2s; }
  @keyframes blatt-auf { from { transform: scale(0.94) translateY(12px); opacity: 0; } }
}
.dialog-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 20px 8px; }
.dialog-kopf h2 { font-family: var(--titel); font-weight: 700; font-size: 30px; }
.dialog-rumpf { overflow-y: auto; padding: 0 20px 20px; overscroll-behavior: contain; }
.dialog-fuss { display: flex; gap: 12px; align-items: center; padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linie); }
.dialog-fuss .haupt-knopf { margin-top: 0; flex: 1; }

.gd-text { margin: 0; color: var(--grau); }
.gd-preis { margin: 10px 0 0; font-weight: 700; font-size: 18px; }
.gruppe { margin-top: 22px; border: 0; padding: 0; }
.gruppe legend { display: flex; width: 100%; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 17px; padding: 0 0 6px; }
.gruppe legend small { font-weight: 500; font-size: 13px; color: var(--grau); background: var(--flaeche); padding: 2px 10px; border-radius: 999px; }
.gruppe legend small.pflicht { background: var(--gold-hell); color: var(--gold-text); }
.option {
  display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--linie); cursor: pointer;
}
.option:last-child { border-bottom: 0; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .kaestchen {
  width: 22px; height: 22px; flex: none; border: 2px solid #b7b2a7; border-radius: 6px; display: grid; place-items: center;
  transition: background 0.15s, border-color 0.15s;
}
.option input[type="radio"] + .kaestchen { border-radius: 50%; }
.option .kaestchen::after {
  content: ""; width: 10px; height: 6px; border-left: 2.5px solid var(--schwarz); border-bottom: 2.5px solid var(--schwarz);
  transform: rotate(-45deg) scale(0); margin-top: -3px; transition: transform 0.2s var(--feder);
}
.option input[type="radio"] + .kaestchen::after { width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--schwarz); margin: 0; transform: scale(0); }
.option input:checked + .kaestchen { background: var(--gold); border-color: var(--gold); }
.option input:checked + .kaestchen::after { transform: rotate(-45deg) scale(1); }
.option input[type="radio"]:checked + .kaestchen::after { transform: scale(1); }
.option input:focus-visible + .kaestchen { outline: 3px solid var(--gold); outline-offset: 2px; }
.option-name { flex: 1; }
.option-preis { color: var(--grau); font-variant-numeric: tabular-nums; }

.gd-info { margin-top: 22px; background: var(--flaeche); border-radius: var(--r-klein); padding: 12px 14px; font-size: 14px; }
.gd-info summary { cursor: pointer; font-weight: 600; }
.gd-info ul { margin: 8px 0 0; padding-left: 18px; color: var(--grau); }

/* ---------- Kasse ---------- */

.block { border: 0; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--linie); }
.block legend { font-weight: 700; font-size: 17px; padding: 0 0 10px; }
.wahl-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wahl-paar label { position: relative; cursor: pointer; }
.wahl-paar input { position: absolute; opacity: 0; }
.wahl-paar span {
  display: flex; flex-direction: column; justify-content: center; min-height: 52px; height: 100%; padding: 10px 14px;
  border: 1.5px solid var(--linie); border-radius: var(--r); font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}
.wahl-paar small { font-weight: 400; font-size: 13px; color: var(--grau); }
.wahl-paar input:checked + span { border-color: var(--schwarz); background: var(--gold-hell); box-shadow: inset 0 0 0 1px var(--schwarz); }
.wahl-paar input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.wahl-paar .gesperrt { cursor: not-allowed; opacity: 0.55; }
.wahl-paar label[hidden] { display: none; }
.feld { display: grid; gap: 4px; margin-top: 10px; flex: 1; min-width: 0; }
.feld label { font-size: 14px; font-weight: 600; }
.feld small { font-weight: 400; color: var(--grau); }
.feld input, .feld select, .feld textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--linie); border-radius: var(--r-klein); background: var(--weiss);
}
.feld textarea { resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: none; border-color: var(--schwarz); }
.feld input[aria-invalid="true"] { border-color: var(--rot); }
.feld-zeile { display: flex; gap: 10px; }
.feld.plz { flex: 0 0 110px; }
.hinweis { margin: 10px 0 0; font-size: 14px; padding: 10px 12px; border-radius: var(--r-klein); background: var(--flaeche); }
.hinweis.ok { background: #e6f4ec; color: #17673a; }
.hinweis.fehler { background: #fdeceb; color: #a3201a; }
.kasse-summen { padding-top: 16px; }
.fehler { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--r-klein); background: #fdeceb; color: #a3201a; font-weight: 500; }
.voll { width: 100%; }

.fertig { align-items: center; text-align: center; padding: 36px 24px calc(28px + env(safe-area-inset-bottom)); }
.fertig:focus { outline: none; }
.fertig h2 { font-family: var(--titel); font-weight: 700; font-size: 32px; margin-top: 16px; }
.fertig p { margin: 10px 0 0; color: var(--grau); max-width: 40ch; }
.fertig .haupt-knopf { max-width: 320px; margin-top: 24px; }
.fertig-nummer strong { color: var(--tinte); font-size: 20px; }
.fertig-klein { font-size: 14px; }
.fertig-haken svg { width: 76px; height: 76px; fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.fertig-haken circle { stroke: var(--gold); stroke-dasharray: 151; stroke-dashoffset: 151; animation: zeichnen 0.6s var(--raus) 0.1s forwards; }
.fertig-haken path { stroke: var(--schwarz); stroke-dasharray: 40; stroke-dashoffset: 40; animation: zeichnen 0.4s var(--raus) 0.55s forwards; }
@keyframes zeichnen { to { stroke-dashoffset: 0; } }

/* ---------- Infos ---------- */

.info-rumpf section { padding: 14px 0; border-bottom: 1px solid var(--linie); }
.info-rumpf section:last-child { border-bottom: 0; }
.info-rumpf h3 { font-size: 17px; margin: 0 0 8px; }
.info-rumpf h3 + dl + h3 { margin-top: 16px; }
.info-rumpf p { margin: 0; }
.zeiten { margin: 0; display: grid; gap: 4px; }
.zeiten-zeile { display: flex; justify-content: space-between; gap: 16px; max-width: 280px; }
.zeiten dd { margin: 0; font-variant-numeric: tabular-nums; }
.zonen { width: 100%; border-collapse: collapse; font-size: 15px; }
.zonen th, .zonen td { text-align: left; padding: 8px 6px 8px 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
.zonen thead th { font-size: 13px; color: var(--grau); font-weight: 600; }
.zonen tbody th span { display: block; font-weight: 400; font-size: 13px; color: var(--grau); }
.zonen td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.legende { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; font-size: 14px; }
.legende div { display: flex; gap: 8px; }
.legende dt { font-weight: 700; min-width: 28px; }
.legende dd { margin: 0; color: var(--grau); }
.klein { font-size: 13px; color: var(--grau); margin-top: 12px !important; }

/* ---------- Fuß ---------- */

.fuss { background: var(--schwarz); color: #d8d3c8; margin-top: 40px; padding: 40px 16px calc(100px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .fuss { padding-bottom: 32px; } }
.fuss-innen { max-width: 1280px; margin: 0 auto; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.fuss h2 { font-size: 15px; color: var(--weiss); margin-bottom: 10px; }
.fuss-marke { font-family: var(--logo); font-weight: 300; font-size: 24px; letter-spacing: 0.32em; color: var(--weiss); margin: 0 0 10px; }
.fuss address { font-style: normal; margin-bottom: 8px; }
.fuss a, .link-knopf { color: var(--gold); text-decoration: none; }
.fuss a:hover, .link-knopf:hover { text-decoration: underline; }
.link-knopf { background: none; border: 0; padding: 0; text-align: left; }
.fuss p { margin: 0; line-height: 1.9; }
.fuss .zeiten-zeile { max-width: 240px; }
.fuss-zeile { max-width: 1280px; margin: 28px auto 0 !important; padding-top: 16px; border-top: 1px solid #2a2722; font-size: 13px; color: #8f897d; }

/* ---------- Hinweis-Blase ---------- */

.toast {
  position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 80;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--tinte); color: var(--weiss); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px;
  max-width: calc(100% - 32px); text-align: center;
  transition: transform 0.35s var(--raus), opacity 0.25s;
}
.toast.sichtbar { transform: translate(-50%, 0); opacity: 1; }
@media (min-width: 1024px) { .toast { bottom: 28px; } }

/* Fliegender Punkt vom Gericht zum Warenkorb */
.flieger {
  position: fixed; z-index: 90; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 3px var(--weiss); pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .flieger { display: none; }
}

/* ---------- Anrufen ---------- */
.kopf-rechts { display: flex; align-items: center; gap: 12px; }
.anruf-kopf { display: inline-flex; align-items: center; gap: 8px; color: var(--weiss); text-decoration: none; font-weight: 600; font-size: 15px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid #3a3630; transition: border-color 0.2s, background 0.2s; }
.anruf-kopf:hover { border-color: var(--gold); }
.anruf-kopf .ikon { color: var(--gold); }
@media (max-width: 719px) {
  .anruf-kopf { width: 40px; padding: 0; justify-content: center; }
  .anruf-kopf span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .art-wahl button { padding: 7px 12px; }
}
.info-aktionen { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.anruf-knopf { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; background: var(--schwarz); color: var(--weiss); border-radius: 999px; padding: 10px 18px 10px 14px; font-weight: 700; transition: transform 0.15s; }
.anruf-knopf:active { transform: scale(0.97); }
.anruf-knopf .ikon { color: var(--gold); }
.anruf-knopf small { font-weight: 500; color: #cfcac0; margin-left: 4px; }
.anruf-knopf.klein { padding: 6px 14px 6px 10px; font-size: 15px; vertical-align: middle; }
.anruf-fuss { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 700; }
.kasse-tel, .korb-tel { margin: 14px 0 0; font-size: 14px; color: var(--grau); }
.kasse-tel a, .korb-tel a { color: var(--gold-text); font-weight: 700; }
