:root {
  --gelb: #ffc72c;
  --rot: #da291c;
  --gruen: #264f36;
  --gruen-hell: #2e8b57;
  --text: #292929;
  --grau: #6b6b6b;
  --grau-hell: #b5b5b5;
  --flaeche: #f5f5f5;
  --linie: #ececec;
  --warn: #b7791f;
  --warn-flaeche: #fff4d6;
  --navi-hoehe: 64px;
  --aktion-hoehe: 58px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; touch-action: manipulation; }
img { display: block; }
[hidden] { display: none !important; }

.inhalt {
  max-width: 560px;
  margin: 0 auto;
  padding: env(safe-area-inset-top) 16px calc(var(--navi-hoehe) + var(--aktion-hoehe) + 24px + env(safe-area-inset-bottom));
}

/* Kopf */
.kopf {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  position: relative; padding: 14px 0 16px;
}
.kopf .logo { width: 38px; height: 38px; border-radius: 9px; }
.kopf h1 { font-size: 20px; font-weight: 800; letter-spacing: -0.2px; }
.kopf .zurueck { color: var(--text); position: absolute; left: 0; top: 14px; width: 38px; height: 38px; display: grid; place-items: center; }
.kopf .zurueck svg { width: 22px; height: 22px; }

h2.abschnitt { font-size: 17px; font-weight: 800; margin: 18px 2px 10px; }
.unterzeile { font-size: 13px; color: var(--grau); margin: -6px 2px 14px; }

/* Hinweise */
.hinweis { border-radius: 14px; padding: 12px 14px; font-size: 14px; margin: 10px 0; }
.hinweis.fehler { background: #fdecea; color: var(--rot); font-weight: 600; }
.hinweis.info { background: var(--flaeche); color: var(--grau); }
.hinweis.warn { background: var(--warn-flaeche); color: var(--warn); font-weight: 600; }
.leer { text-align: center; color: var(--grau); padding: 40px 10px; font-size: 15px; line-height: 1.5; }
.laden { text-align: center; color: var(--grau); padding: 40px 0; }

/* Suche */
.suche { display: flex; gap: 8px; margin-bottom: 10px; }
.suche input {
  flex: 1; min-width: 0; background: var(--flaeche); border: 0; border-radius: 14px;
  padding: 14px 16px; font-size: 16px; outline: none;
}
.suche input:focus { box-shadow: 0 0 0 2px var(--gelb); }
.knopf {
  background: var(--gelb); color: var(--text); font-weight: 800; border-radius: 14px; padding: 0 18px; font-size: 15px;
}
.knopf:active, .aktion:active { filter: brightness(0.95); }
.link-knopf {
  display: flex; align-items: center; gap: 8px; color: var(--rot); font-weight: 700; font-size: 14px; padding: 6px 2px;
}
.link-knopf svg { width: 18px; height: 18px; }

/* Filialliste */
.filiale { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--linie); }
.filiale .pin {
  width: 42px; height: 42px; border-radius: 12px; background: var(--rot); flex: 0 0 auto; display: grid; place-items: center;
}
.filiale .pin svg { width: 22px; height: 22px; }
.filiale.zu .pin { background: var(--grau-hell); }
.filiale .info { flex: 1; min-width: 0; }
.filiale .name { font-weight: 700; font-size: 15px; }
.filiale .meta { font-size: 12.5px; color: var(--grau); margin-top: 3px; }
.offen { color: var(--gruen-hell); font-weight: 700; }
.geschlossen { color: var(--grau); font-weight: 700; }
.filiale .weg { font-weight: 700; font-size: 14px; white-space: nowrap; }

/* Chips */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { background: var(--flaeche); border-radius: 20px; padding: 9px 16px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.chip.an { background: var(--text); color: #fff; }

/* Produktkacheln */
.kacheln { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kachel {
  border: 1px solid var(--linie); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); background: #fff;
}
.kachel .foto { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; padding: 6px; }
.kachel .koerper { padding: 9px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.kachel .name { font-weight: 700; font-size: 14.5px; line-height: 1.2; }
.kachel .text { font-size: 11.5px; color: var(--grau); line-height: 1.3; margin-top: 3px; flex: 1; }
.kachel .fuss { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; gap: 6px; }
.preis { font-weight: 800; font-size: 15px; }
.preis.klein { font-size: 13px; color: var(--grau); font-weight: 600; }

.plus {
  width: 32px; height: 32px; border-radius: 50%; background: var(--gelb); display: grid; place-items: center; flex: 0 0 auto;
}
.plus svg { width: 16px; height: 16px; }
.menge { display: flex; align-items: center; gap: 6px; }
.menge .zahl { min-width: 18px; text-align: center; font-weight: 800; }
.menge .minus { width: 32px; height: 32px; border-radius: 50%; background: var(--flaeche); display: grid; place-items: center; }
.menge .minus svg { width: 16px; height: 16px; }

/* Coupons */
.coupon {
  display: flex; align-items: center; gap: 14px; border: 1.5px solid var(--linie); border-radius: 18px;
  padding: 12px 14px; margin-bottom: 12px; width: 100%; text-align: left;
}
.coupon.an { border-color: var(--rot); }
.coupon .bild { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--flaeche); flex: 0 0 auto; }
.coupon .info { flex: 1; min-width: 0; }
.coupon .titel { font-weight: 800; font-size: 15px; line-height: 1.25; }
.coupon .bis { font-size: 12px; color: var(--grau); margin-top: 3px; }
.coupon .cpreis { font-size: 14px; margin-top: 5px; color: var(--rot); font-weight: 800; }
.schalter-rund {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--rot); color: var(--rot);
  display: grid; place-items: center; flex: 0 0 auto;
}
.schalter-rund svg { width: 16px; height: 16px; }
.coupon.an .schalter-rund { background: var(--rot); color: #fff; }

/* Warenkorb */
.position { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--linie); }
.position .bild { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--flaeche); flex: 0 0 auto; }
.position .info { flex: 1; min-width: 0; }
.position .name { font-weight: 700; font-size: 15px; }
.position .einzel { font-size: 12.5px; color: var(--grau); margin-top: 2px; }
.coupon-zeile { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--linie); }
.coupon-zeile .titel { flex: 1; font-weight: 700; color: var(--rot); font-size: 14px; }
.entfernen { color: var(--grau); font-size: 13px; font-weight: 600; padding: 6px; }
.schalter-zeile { display: flex; align-items: center; justify-content: space-between; padding: 16px 2px; font-size: 15px; font-weight: 600; }
.schalter { appearance: none; width: 50px; height: 30px; border-radius: 15px; background: var(--grau-hell); position: relative; transition: background 0.2s; cursor: pointer; }
.schalter::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.schalter:checked { background: var(--gruen-hell); }
.schalter:checked::after { transform: translateX(20px); }
.richtsumme { display: flex; justify-content: space-between; padding: 14px 2px 0; font-size: 14px; color: var(--grau); }
.richtsumme b { color: var(--text); font-size: 16px; }

/* Ergebnis */
.bestellung { background: var(--flaeche); border-radius: 16px; padding: 14px 16px; margin-bottom: 20px; }
.bestellung .t { font-size: 12px; color: var(--grau); font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; }
.bestellung .l { font-size: 14px; margin-top: 6px; line-height: 1.5; }
.bestellung .c { color: var(--rot); font-weight: 700; }
.sieger { border: 2px solid var(--gruen); border-radius: 18px; padding: 18px 16px 14px; margin-bottom: 14px; position: relative; }
.sieger .marke {
  position: absolute; top: -12px; left: 16px; background: var(--gruen); color: #fff; font-size: 11px;
  font-weight: 800; padding: 4px 10px; border-radius: 20px; letter-spacing: 0.3px;
}
.zeile { display: flex; align-items: center; gap: 12px; }
.zeile .info { flex: 1; min-width: 0; }
.zeile .name { font-weight: 800; font-size: 16px; }
.zeile .meta { font-size: 12.5px; color: var(--grau); margin-top: 3px; }
.zeile .betrag { text-align: right; }
.zeile .gross { font-size: 24px; font-weight: 800; }
.ersparnis { font-size: 13px; font-weight: 700; color: var(--gruen-hell); margin-top: 10px; }
.stand { font-size: 11.5px; color: var(--grau); }
.stand.alt { color: var(--warn); font-weight: 700; }
.weitere { display: flex; align-items: center; gap: 12px; padding: 14px 6px; border-bottom: 1px solid var(--linie); }
.weitere .info { flex: 1; min-width: 0; }
.weitere .name { font-weight: 700; font-size: 15px; }
.weitere .meta { font-size: 12.5px; color: var(--grau); margin-top: 3px; }
.weitere .betrag { text-align: right; font-weight: 800; font-size: 17px; }
.weitere .auf { display: block; font-size: 12px; color: var(--rot); margin-top: 2px; }
.weitere.zu .name, .weitere.zu .betrag, .sieger.zu .name { color: var(--grau); }
.unvollstaendig .weitere { opacity: 0.75; }
.fehlt { color: var(--rot); font-size: 12.5px; font-weight: 600; margin-top: 3px; }
.notiz { font-size: 12px; color: var(--rot); font-weight: 600; margin-top: 4px; }

/* Untere Aktionsleiste */
.aktion {
  position: fixed; left: 0; right: 0; bottom: calc(var(--navi-hoehe) + env(safe-area-inset-bottom));
  height: var(--aktion-hoehe); background: var(--gelb); display: flex; align-items: center; justify-content: center;
  gap: 10px; font-weight: 800; font-size: 16px; z-index: 5; width: 100%;
}
.aktion .anzahl { background: var(--text); color: #fff; border-radius: 20px; padding: 2px 10px; font-size: 13px; }
.aktion.aus { background: var(--flaeche); color: var(--grau-hell); }

/* Navigation */
.navi {
  position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--navi-hoehe) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--linie);
  display: flex; z-index: 6;
}
.navi a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 10.5px; font-weight: 600; color: var(--grau); text-decoration: none; position: relative;
}
.navi a svg { width: 23px; height: 23px; }
.navi a.an { color: var(--text); }
.navi a.an svg { color: var(--rot); }
.navi .badge {
  position: absolute; top: 7px; left: calc(50% + 6px); background: var(--rot); color: #fff; font-size: 10px;
  font-weight: 800; border-radius: 10px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 5px;
}

/* Detailblatt (wie Produktseite der App) */
.blatt { padding: 8px 4px 0; position: relative; }
.schliessen { position: absolute; left: 0; top: 4px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--text); }
.schliessen svg { width: 26px; height: 26px; }
.produktname { font-size: 30px; font-weight: 800; line-height: 1.15; margin-top: 52px; letter-spacing: -0.3px; }
.blattpreis { font-size: 17px; margin-top: 6px; }
.blattbild { width: 100%; max-width: 360px; aspect-ratio: 1; object-fit: contain; margin: 18px auto 6px; }
.blatttext { color: var(--grau); font-size: 14px; text-align: center; margin-bottom: 18px; }
.stepper {
  display: inline-flex; align-items: center; gap: 22px; border: 1.5px solid var(--grau-hell); border-radius: 40px; padding: 8px 18px;
}
.stepper button { width: 32px; height: 32px; display: grid; place-items: center; }
.stepper svg { width: 18px; height: 18px; }
.stepper .zahl { font-size: 22px; font-weight: 700; min-width: 24px; text-align: center; }
.hinweis-klein { font-size: 12.5px; color: var(--grau); margin-top: 14px; }
.menueab { font-size: 12px; font-weight: 700; color: var(--rot); margin-top: 4px; }
.kachel .foto, .kachel .name { cursor: pointer; }

/* Zweigeteilte Leiste: Als Menü | Zum Warenkorb */
.aktion.zweiteilig { background: #fff; border-top: 1px solid var(--linie); gap: 0; }
.aktion button { height: 100%; font-weight: 700; font-size: 16px; }
.aktion button.weiss { flex: 1; background: #fff; border-right: 1px solid var(--linie); }
.aktion button.gelb { flex: 1; background: var(--gelb); }
.aktion button.voll { width: 100%; }

/* Menübild wie in der App: Burger groß vorne links, Pommes hinten Mitte, Getränk hinten rechts.
   Die Produktbilder sind freigestellt (durchsichtig), die Reihenfolge im HTML legt die Ebenen fest. */
/* Menübilder nach Vorlage der McDonald's-App (Screenshots 01.12.2026): Positionen aus den Vorlagen gemessen */
.menuebild { position: relative; width: 150px; aspect-ratio: 1.04; flex: 0 0 auto; }
.menuebild img { position: absolute; object-fit: contain; }
.menuebild .mb-haupt, .menuebild .mb-haupt2 { filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.14)); }
.menuebild .mb-pommes { width: 43.8%; left: 38.1%; top: -1.6%; }
.menuebild .mb-getraenk { width: 52.4%; left: 61.8%; top: -5.7%; }
.menuebild .mb-haupt { width: 80.8%; left: -1.9%; top: 27.0%; }
.menuebild.klein .mb-pommes { width: 38.4%; left: 40.9%; top: 7.6%; }
.menuebild.klein .mb-haupt { width: 89.4%; left: -2.2%; top: 19.0%; }
.menuebild.smart .mb-pommes { width: 53.4%; left: 10.8%; top: 22.0%; }
.menuebild.smart .mb-getraenk { width: 53.4%; left: 35.8%; top: 18.0%; }
.menuebild.smart .mb-haupt2 { width: 53.9%; left: 48.1%; top: 40.5%; }
.menuebild.smart .mb-haupt { width: 58.3%; left: 1.9%; top: 50.2%; }
.menuebild.frueh .mb-getraenk { width: 71.2%; left: 37.1%; top: -10.3%; }
.menuebild.frueh .mb-haupt { width: 92.7%; left: -3.3%; top: 21.8%; }
.menuebild.gross { width: 190px; }
.menuekopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 52px; padding-bottom: 18px; border-bottom: 1px solid var(--linie); }
.menuekopf .produktname { margin-top: 0; font-size: 26px; }
.groesse { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 2px; border-bottom: 1px solid var(--linie); text-align: left; }
.groesse .menuebild { width: 96px; }
.groesse .gname { flex: 1; font-weight: 800; font-size: 16px; }
.groesse .gpreis { font-size: 14px; color: var(--grau); }
.groesse .haken { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.groesse.an .haken { background: var(--gelb); }
.groesse .haken svg { width: 16px; height: 16px; }

/* Happy Meal: Box hinten, Cheeseburger vorne (wie in der App) */
.happybild { position: relative; width: 100%; aspect-ratio: 1.15; overflow: hidden; }
.happybild img { position: absolute; object-fit: contain; }
.happybild .hb-box { width: 92.6%; left: -1.7%; top: -24%; }
.happybild .hb-essen { width: 55.1%; left: 32.7%; top: 32.3%; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.14)); }
.blatt .happybild { max-width: 360px; margin: 18px auto 6px; }

/* Zugangs-PIN */
.zugang { display: flex; flex-direction: column; align-items: center; padding-top: 18vh; text-align: center; }
.zugang-logo { width: 110px; height: 110px; border-radius: 24px; margin-bottom: 14px; }
.zugang h1 { font-size: 26px; font-weight: 800; margin-bottom: 22px; }
.zugang form { display: flex; gap: 8px; width: 100%; max-width: 320px; }
.zugang input { flex: 1; min-width: 0; background: var(--flaeche); border: 0; border-radius: 14px; padding: 14px 16px; font-size: 18px; text-align: center; letter-spacing: 4px; outline: none; }
.zugang input:focus { box-shadow: 0 0 0 2px var(--gelb); }
.zugang .knopf { padding: 0 18px; }

.aktion.zweiteilig button { font-size: 15px; white-space: nowrap; padding: 0 10px; }
.menuebild.mini { width: 64px; }
.weitere .betrag.teil { color: var(--grau); font-weight: 700; font-size: 15px; }
.weitere .auf.grau { color: var(--grau); font-weight: 600; }
.kachel .foto .happybild { aspect-ratio: 4 / 3; height: 100%; }

/* Kartenansicht */
.standort-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.karten-knopf {
  display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: var(--flaeche); color: var(--text); font-weight: 700; font-size: 13.5px; text-decoration: none;
}
.karten-knopf svg { width: 18px; height: 18px; }
a.filiale { color: inherit; text-decoration: none; }
.kartenseite { position: fixed; inset: 0 0 var(--navi-hoehe) 0; z-index: 5; background: var(--flaeche); }
.karte { width: 100%; height: 100%; }
.karte-zurueck {
  position: absolute; top: calc(env(safe-area-inset-top) + 12px); left: 12px; z-index: 2; width: 42px; height: 42px;
  display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.karte-zurueck svg { width: 22px; height: 22px; }
.karte-fehler { position: absolute; top: 45%; left: 0; right: 0; text-align: center; color: var(--grau); font-weight: 600; }
.karten-pin {
  position: relative; width: 22px; height: 29px; padding: 0; border: 0; background: none; cursor: pointer;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3)); transition: width 0.15s, height 0.15s;
}
.karten-pin svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--rot); }
.karten-pin img { position: absolute; left: 20%; top: 14%; width: 60%; display: none; }
.nah .karten-pin { width: 40px; height: 52px; }
.nah .karten-pin img, .karten-pin.gewaehlt img { display: block; }
.karten-pin.gewaehlt { width: 54px; height: 70px; z-index: 2; }
.karten-pin.zu { opacity: 0.55; }
.mein-punkt { width: 16px; height: 16px; border-radius: 50%; background: #1a73e8; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(26, 115, 232, 0.2); }
.kartenblatt {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; background: #fff; border-radius: 18px 18px 0 0;
  padding: 16px 18px 18px; box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.15);
}
.kb-kopf { display: flex; justify-content: space-between; gap: 12px; }
.kb-name { font-weight: 800; font-size: 17px; }
.kb-adresse { font-size: 13px; color: var(--grau); margin-top: 2px; }
.kb-meta { font-size: 13px; margin-top: 6px; }
.kb-zu { border: 0; background: var(--flaeche); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.kb-zu svg { width: 16px; height: 16px; }
.kb-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.kb-knoepfe .knopf, .filialkopf .route { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.knopf.hell { background: var(--flaeche); color: var(--text); }
.knopf svg { width: 18px; height: 18px; }
.filialkopf { padding: 4px 0 10px; border-bottom: 1px solid var(--linie); }
.filialkopf .route { margin-top: 12px; }
.preiszeile { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--linie); font-size: 14.5px; }
.preiszeile b { white-space: nowrap; }
