/* ═══════════════════════════════════════════════════════════
   Mein Ladenhelfer – Kiosk
   Grün + Hellbraun/Beige, Mandarine nur als Wegweiser-Signal.
   Ausgelegt auf stehenden Touchscreen (1080×1920), läuft aber
   auch auf Tablet und Handy sauber.
   ═══════════════════════════════════════════════════════════ */

:root {
  --creme:        #F5EFE3;
  --papier:       #FBF8F1;
  --sand:         #EDE3D0;
  --hellbraun:    #D9C7A7;
  --braun-linie:  #C9B492;

  --tanne:        #1F3A2E;
  --gruen:        #4A7C3F;
  --gruen-hell:   #6B9C5C;
  --gruen-blass:  #E4EDDE;

  --mandarine:    #E5672A;
  --mandarine-hell: #FBE6DA;

  --text:         #24322B;
  --text-leise:   #6A7A70;

  --radius:       22px;
  --radius-klein: 14px;
  --schatten:     0 2px 0 rgba(31, 58, 46, .08);

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Skaliert die ganze Oberfläche – am Kiosk größer, am Handy kleiner */
  --u: clamp(14px, 1.35vh + 0.35vw, 26px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--creme);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--u);
  line-height: 1.5;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior: none;
}

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

/* ─── Grundgerüst ─────────────────────────────────────────── */

.rahmen {
  height: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 60% at 50% 0%, #FFFDF8 0%, transparent 60%),
    var(--creme);
}

/* Feines Papierkorn */
.rahmen::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  z-index: 1;
  background-image: radial-gradient(rgba(31, 58, 46, .045) 1px, transparent 1px);
  background-size: 4px 4px;
}

/* ─── Kopf ────────────────────────────────────────────────── */

.kopf {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.4rem;
  border-bottom: 2px solid var(--braun-linie);
  background: rgba(251, 248, 241, .82);
  backdrop-filter: blur(6px);
}

.marke { display: flex; align-items: center; gap: .7rem; }
.marke-zeichen { width: 2.6rem; height: 2.6rem; object-fit: contain; }
.marke-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--tanne);
  line-height: 1.1;
}
.marke-ort {
  margin: 0;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-leise);
  font-weight: 600;
}

.kopf-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .75rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .88rem;
  color: var(--tanne);
  border: 2px solid var(--braun-linie);
  background: var(--papier);
  transition: transform .12s ease, background .12s ease;
}
.kopf-btn:active { transform: scale(.96); background: var(--sand); }
.kopf-btn.zurueck { justify-self: start; }
.kopf-btn.beenden { justify-self: end; }
.kopf-btn[hidden] { display: none; }

/* ─── Bühne / Screens ─────────────────────────────────────── */

.buehne {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  padding: 2rem 1.6rem 1.4rem;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: none;
  flex-direction: column;
  gap: .9rem;
}
.screen.aktiv {
  display: flex;
  animation: hereinschieben .26s cubic-bezier(.22, .9, .3, 1);
}
@keyframes hereinschieben {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ─── Typografie ──────────────────────────────────────────── */

.augenbraue {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  align-self: flex-start;
  padding: .45rem 1rem;
  border-radius: 999px;
  background: var(--mandarine-hell);
  color: #A6431A;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: .2rem 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vh, 3.4rem);
  line-height: 1.05;
  color: var(--tanne);
  letter-spacing: -.01em;
}

h2 { font-family: var(--serif); font-weight: 400; color: var(--tanne); margin: 0; }

.lead {
  margin: 0;
  max-width: 34ch;
  font-size: 1.02rem;
  color: var(--text-leise);
  font-weight: 500;
}
.lead.compact { font-size: .94rem; }

.hinweis-zeile {
  margin: .3rem 0 0;
  font-size: .82rem;
  color: var(--text-leise);
}

.fehler-zeile {
  margin: 0;
  padding: .8rem 1rem;
  border-radius: var(--radius-klein);
  background: #FCE9E4;
  color: #A22F14;
  font-weight: 700;
  font-size: .9rem;
}

/* ─── Buttons ─────────────────────────────────────────────── */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3.6rem;
  padding: 0 1.7rem;
  border-radius: 999px;
  background: var(--mandarine);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 3px 0 #B94E1D;
  transition: transform .11s ease, box-shadow .11s ease;
}
.cta:active { transform: translateY(3px); box-shadow: 0 0 0 #B94E1D; }
.cta:disabled { opacity: .4; box-shadow: none; }

.cta.gross { min-height: 4.4rem; font-size: 1.15rem; padding: 0 2.2rem; align-self: flex-start; }

.cta.zweit {
  background: var(--papier);
  color: var(--tanne);
  border: 2px solid var(--braun-linie);
  box-shadow: none;
}
.cta.zweit:active { transform: scale(.97); background: var(--sand); }

/* "Ich kenn mich aus": zweiter Knopf in Mandarine, damit man ihn sieht -
   als blasser Textlink ist er im Laden glatt untergegangen (Stefan, 09.09.). */
.leiser-link {
  align-self: flex-start;
  min-height: 3.4rem;
  display: inline-flex;
  align-items: center;
  padding: 0 1.4rem;
  border-radius: 999px;
  background: var(--mandarine-hell);
  border: 2px solid var(--mandarine);
  color: #B94E1D;
  font-weight: 800;
  font-size: .95rem;
  text-decoration: none;
}
.leiser-link:active { background: var(--mandarine); color: #fff; }

.knopfreihe {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: auto;
  padding-top: 1rem;
}

/* ─── Startscreen ─────────────────────────────────────────── */

/* Echtes Ladenfoto als Kulisse. Oben liegt volle Creme-Deckung, damit die
   Schrift ruhig steht; nach unten wird das Foto frei und der Avatar bekommt
   Boden unter die Füße. */
.start-hintergrund {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.start-hintergrund::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/wiersch-ladenhintergrund.jpg") center 60% / cover no-repeat;
  filter: saturate(.78) brightness(1.06);
}
.start-hintergrund::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--creme) 0%,
    var(--creme) 24%,
    rgba(245, 239, 227, .95) 38%,
    rgba(245, 239, 227, .74) 52%,
    rgba(245, 239, 227, .42) 74%,
    rgba(245, 239, 227, .28) 100%
  );
}

.start-grid {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
  min-height: 0;
}
.start-text { display: flex; flex-direction: column; gap: .9rem; align-items: flex-start; }

.start-bild {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.start-bild img {
  position: relative;
  z-index: 2;
  max-height: 100%;
  max-width: 88%;
  object-fit: contain;
  animation: atmen 6s ease-in-out infinite;
}
@keyframes atmen {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.start-bild img {
  /* Weicher Lichthof, damit die Comic-Figur sich vom Foto abhebt.
     Bewusst nur EIN drop-shadow – zwei gefilterte Ebenen auf einem grossen
     PNG ruckeln auf schwacher Mini-PC-Grafik bei der Atem-Animation. */
  filter: drop-shadow(0 4px 22px rgba(31, 58, 46, .3));
}

.kreis { position: absolute; border-radius: 50%; z-index: 1; }
.kreis-gross {
  width: 76%; aspect-ratio: 1;
  bottom: 2%; left: 12%;
  background: radial-gradient(circle,
    rgba(251, 248, 241, .92) 0%,
    rgba(251, 248, 241, .62) 52%,
    rgba(251, 248, 241, 0) 72%);
}
.kreis-klein {
  width: 22%; aspect-ratio: 1;
  border: 3px dashed var(--mandarine);
  opacity: .45;
  top: 8%; right: 8%;
}

/* ─── Schritte (Erklärung) ────────────────────────────────── */

.schritte {
  list-style: none;
  margin: .4rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.schritte li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.05rem 1.2rem;
  background: var(--papier);
  border: 2px solid var(--braun-linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
}
.schritt-nr {
  flex: none;
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gruen);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
}
.schritte strong { display: block; color: var(--tanne); font-size: 1.05rem; }
.schritte p { margin: .15rem 0 0; color: var(--text-leise); font-size: .9rem; }

/* ─── Hauptmenü ───────────────────────────────────────────── */

.menu-grid {
  display: grid;
  gap: .9rem;
  margin-top: .4rem;
}

.menu-kachel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 1.1rem;
  align-items: center;
  padding: 1.4rem 1.3rem;
  text-align: left;
  background: var(--papier);
  border: 2px solid var(--braun-linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  transition: transform .12s ease, border-color .12s ease;
}
.menu-kachel:active { transform: scale(.98); border-color: var(--mandarine); }
.menu-kachel .kachel-icon {
  grid-row: 1 / 3;
  width: 3.4rem; height: 3.4rem;
  display: grid; place-items: center;
  border-radius: var(--radius-klein);
  background: var(--gruen-blass);
  font-size: 1.5rem;
  color: var(--gruen);
}
.menu-kachel strong { font-size: 1.2rem; color: var(--tanne); font-weight: 800; }
.menu-kachel small { color: var(--text-leise); font-size: .86rem; }
.kachel-pfeil {
  grid-row: 1 / 3;
  font-size: 1.4rem;
  color: var(--mandarine);
}
.kachel-video .kachel-icon   { background: var(--mandarine-hell); color: var(--mandarine); }
.kachel-bestellen .kachel-icon { background: #E7EFDF; }

/* ─── Videos (Stufe 2) ────────────────────────────────────── */

.video-grid { display: grid; gap: .9rem; margin-top: .4rem; }

.video-karte {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.1rem;
  padding: 1.2rem;
  text-align: left;
  background: var(--papier);
  border: 2px solid var(--braun-linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  transition: transform .12s ease, border-color .12s ease;
}
.video-karte:active { transform: scale(.98); border-color: var(--mandarine); }
.video-karte .v-icon {
  position: relative;
  width: 4.2rem; height: 4.2rem;
  display: grid; place-items: center;
  border-radius: var(--radius-klein);
  background: var(--tanne);
  color: #fff;
  font-size: 1.7rem;
}
.video-karte .v-play {
  position: absolute;
  right: -.4rem; bottom: -.4rem;
  width: 1.7rem; height: 1.7rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--mandarine);
  color: #fff;
  font-size: .7rem;
  border: 2px solid var(--papier);
}
.video-karte strong { display: block; font-size: 1.12rem; color: var(--tanne); }
.video-karte small { color: var(--text-leise); font-size: .86rem; }
.video-karte .v-dauer { color: var(--mandarine); font-weight: 800; font-size: .82rem; }

.video-karte.fehlt { opacity: .55; }
.video-karte.fehlt .v-icon { background: var(--hellbraun); color: var(--tanne); }
.video-karte.fehlt .v-dauer { color: var(--text-leise); }

/* Vollbild-Player */
.player {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #0C1712;
  display: flex;
  flex-direction: column;
}
.player[hidden] { display: none; }
.player video { flex: 1; width: 100%; height: 100%; object-fit: contain; background: #0C1712; }
.player-schliessen {
  flex: none;
  padding: 1.5rem;
  background: var(--mandarine);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

/* ─── Kategorien (Stufe 3 + 5) ────────────────────────────── */

.kat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem;
  margin-top: .4rem;
  padding-bottom: 1rem;
}

.kat-kachel {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.15rem 1rem;
  text-align: left;
  background: var(--papier);
  border: 2px solid var(--braun-linie);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  transition: transform .12s ease, border-color .12s ease;
}
.kat-kachel:active { transform: scale(.97); border-color: var(--mandarine); }
.kat-kachel .k-icon { font-size: 1.9rem; line-height: 1; }
.kat-kachel strong { font-size: 1rem; color: var(--tanne); line-height: 1.2; }
.kat-kachel small { color: var(--text-leise); font-size: .78rem; }
.kat-kachel .k-anzahl {
  margin-top: auto;
  padding-top: .4rem;
  color: var(--gruen);
  font-weight: 800;
  font-size: .78rem;
}

.ort-banner {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .95rem 1.15rem;
  border-radius: var(--radius-klein);
  background: var(--gruen-blass);
  border-left: 5px solid var(--gruen);
  color: var(--tanne);
  font-weight: 700;
  font-size: .94rem;
}

.produktliste {
  list-style: none;
  margin: .3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
}
.produktliste li {
  padding: .85rem 1rem;
  background: var(--papier);
  border: 2px solid var(--sand);
  border-radius: var(--radius-klein);
  font-weight: 600;
  font-size: .92rem;
  color: var(--tanne);
}

/* ─── Ladenplan (Stufe 4) ─────────────────────────────────── */

.such-feld {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .3rem .5rem .3rem 1.1rem;
  background: var(--papier);
  border: 2px solid var(--braun-linie);
  border-radius: 999px;
  box-shadow: var(--schatten);
}
.such-feld input {
  flex: 1;
  min-width: 0;
  padding: .95rem 0;
  border: 0;
  background: none;
  outline: none;
  font-size: 1rem;
  font-weight: 600;
}
.such-feld input::placeholder { color: #A3AFA7; font-weight: 500; }
.such-leeren {
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  background: var(--sand);
  color: var(--tanne);
  font-weight: 800;
}

.such-treffer {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  max-height: 22vh;
  overflow-y: auto;
  /* flex-shrink 0 ist Pflicht: Der Bildschirm ist eine Flex-Spalte, und sobald
     die Tastatur aufgeht, wurde die Trefferliste auf 0 px zusammengedrueckt -
     acht Treffer da, keiner sichtbar. Lieber scrollt die Liste in sich. */
  flex-shrink: 0;
}
#best-treffer { flex-shrink: 0; }
.treffer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  padding: .85rem 1.1rem;
  text-align: left;
  background: var(--papier);
  border: 2px solid var(--sand);
  border-radius: var(--radius-klein);
}
.treffer:active { border-color: var(--mandarine); }
.treffer strong { color: var(--tanne); font-size: .95rem; }
.treffer span { color: var(--gruen); font-weight: 800; font-size: .8rem; white-space: nowrap; }
.treffer-leer { padding: .9rem 1.1rem; color: var(--text-leise); font-size: .9rem; }

.plan-wrapper {
  flex: 1;
  min-height: 0;
  display: flex;
  justify-content: center;
  padding: .5rem 0;
}
#plan { height: 100%; width: 100%; max-width: 100%; }

.zone rect {
  fill: var(--papier);
  stroke: var(--braun-linie);
  stroke-width: 1;
  rx: 3;
  transition: fill .2s ease, stroke .2s ease;
}
.zone text {
  font-family: var(--sans);
  font-size: 3.4px;   /* Fallback – JS setzt pro Zone die passende Groesse */
  text-rendering: geometricPrecision;
  font-weight: 700;
  fill: var(--tanne);
  text-anchor: middle;
  pointer-events: none;
}
.zone.hell rect { fill: var(--mandarine); stroke: #B94E1D; stroke-width: 1.6; }
.zone.hell text { fill: #fff; }
.zone.hell rect { animation: pochen 1.5s ease-in-out infinite; }
@keyframes pochen {
  0%, 100% { opacity: 1; }
  50%      { opacity: .72; }
}
.zone-eingang rect { fill: var(--gruen-blass); stroke: var(--gruen); stroke-dasharray: 2 1.5; }
.zone-eingang text { fill: var(--gruen); }

.plan-info {
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  background: var(--papier);
  border: 2px solid var(--braun-linie);
  box-shadow: var(--schatten);
}
.plan-info strong { display: block; color: var(--tanne); font-size: 1.05rem; }
.plan-info p { margin: .2rem 0 0; color: var(--text-leise); font-size: .88rem; }
.plan-info.aktiv { border-color: var(--mandarine); background: var(--mandarine-hell); }
.plan-info.aktiv p { color: #A6431A; }

/* ─── Vorbestellung (Stufe 5) ─────────────────────────────── */

.kat-grid.klein .kat-kachel { padding: 1rem .9rem; }

.artikelliste, .korbliste {
  list-style: none;
  margin: .3rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.artikel-zeile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.05rem 1.2rem;
  text-align: left;
  background: var(--papier);
  border: 2px solid var(--braun-linie);
  border-radius: var(--radius-klein);
  box-shadow: var(--schatten);
  transition: transform .12s ease, border-color .12s ease;
}
.artikel-zeile:active { transform: scale(.985); border-color: var(--mandarine); }
.artikel-zeile strong { color: var(--tanne); font-size: 1.02rem; font-weight: 700; }
.artikel-zeile .a-einheit { display: block; color: var(--text-leise); font-size: .8rem; font-weight: 600; }
.artikel-zeile .a-plus {
  flex: none;
  width: 2.8rem; height: 2.8rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gruen);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
}
.artikel-zeile.drin { border-color: var(--gruen); background: var(--gruen-blass); }
.artikel-zeile.drin .a-plus { background: var(--mandarine); }

.korb-zeile {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: .8rem;
  padding: 1rem 1.1rem;
  background: var(--papier);
  border: 2px solid var(--braun-linie);
  border-radius: var(--radius-klein);
}
.korb-zeile strong { color: var(--tanne); font-size: 1rem; }
.korb-zeile .k-menge {
  padding: .4rem .9rem;
  border-radius: 999px;
  background: var(--gruen-blass);
  color: var(--gruen);
  font-weight: 800;
  font-size: .92rem;
  white-space: nowrap;
}
.korb-zeile .k-weg {
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  background: var(--sand);
  color: #A22F14;
  font-size: 1.1rem;
  font-weight: 800;
}
.korb-leer { color: var(--text-leise); font-style: italic; }

.tag-reihe {
  display: flex;
  gap: .6rem;
  overflow-x: auto;
  padding-bottom: .3rem;
}
.tag-knopf {
  flex: none;
  padding: .9rem 1.3rem;
  border-radius: var(--radius-klein);
  background: var(--papier);
  border: 2px solid var(--braun-linie);
  text-align: center;
  font-weight: 700;
  color: var(--tanne);
}
.tag-knopf small { display: block; color: var(--text-leise); font-size: .75rem; font-weight: 600; }
.tag-knopf.gewaehlt { background: var(--tanne); color: #fff; border-color: var(--tanne); }
.tag-knopf.gewaehlt small { color: #C7D8CD; }

.zeit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: .55rem;
  overflow-y: auto;
  padding: .2rem 0 1rem;
}
.zeit-knopf {
  padding: 1rem .4rem;
  border-radius: var(--radius-klein);
  background: var(--papier);
  border: 2px solid var(--braun-linie);
  font-weight: 800;
  font-size: 1rem;
  color: var(--tanne);
}
.zeit-knopf.gewaehlt { background: var(--mandarine); border-color: var(--mandarine); color: #fff; }

/* ─── Formular ────────────────────────────────────────────── */

.formular { display: flex; flex-direction: column; gap: .35rem; }
.formular label {
  margin-top: .5rem;
  font-weight: 800;
  font-size: .86rem;
  color: var(--tanne);
}
.formular .optional { color: var(--text-leise); font-weight: 600; }
.formular input, .formular textarea {
  padding: 1.05rem 1.15rem;
  border-radius: var(--radius-klein);
  border: 2px solid var(--braun-linie);
  background: var(--papier);
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  resize: none;
  -webkit-user-select: text;
  user-select: text;
}
.formular input:focus, .formular textarea:focus { border-color: var(--mandarine); }

.zusammenfassung {
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  background: var(--gruen-blass);
  border-left: 5px solid var(--gruen);
  font-size: .92rem;
}
.zusammenfassung strong { display: block; color: var(--tanne); margin-bottom: .3rem; }
.zusammenfassung ul { margin: .3rem 0 0; padding-left: 1.1rem; color: var(--text-leise); }

/* ─── Fertig ──────────────────────────────────────────────── */

.fertig-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
}
.haken {
  width: 5rem; height: 5rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gruen);
  color: #fff;
  font-size: 2.6rem;
  animation: aufploppen .4s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes aufploppen { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

.nummer-karte {
  padding: 1.2rem 2rem;
  border-radius: var(--radius);
  background: var(--tanne);
  color: #fff;
  text-align: center;
}
.nummer-karte small { display: block; opacity: .75; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.nummer-karte strong { font-family: var(--serif); font-size: 3rem; line-height: 1.1; }

/* ─── Fuß ─────────────────────────────────────────────────── */

.fuss {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .8rem 1.4rem;
  border-top: 2px solid var(--braun-linie);
  background: rgba(251, 248, 241, .82);
}
.fuss p { margin: 0; display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: var(--text-leise); font-weight: 600; }
.fuss-punkt { width: .5rem; height: .5rem; border-radius: 50%; background: var(--mandarine); }

.korb-knopf {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1.3rem;
  border-radius: 999px;
  background: var(--tanne);
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
}
.korb-knopf[hidden] { display: none; }
.korb-zahl {
  min-width: 1.6rem;
  padding: .1rem .4rem;
  border-radius: 999px;
  background: var(--mandarine);
  text-align: center;
}

/* ─── Mengen-Dialog ───────────────────────────────────────── */

.dialog-huelle {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1.4rem;
  background: rgba(31, 58, 46, .45);
  backdrop-filter: blur(3px);
}
.dialog-huelle[hidden] { display: none; }

.dialog {
  width: min(30rem, 100%);
  display: flex;
  flex-direction: column;
  gap: .8rem;
  padding: 1.8rem;
  border-radius: 28px;
  background: var(--papier);
  border: 2px solid var(--braun-linie);
  box-shadow: 0 18px 44px rgba(31, 58, 46, .28);
  animation: aufploppen .22s cubic-bezier(.2, 1.3, .4, 1);
}
.dialog-augenbraue {
  margin: 0;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mandarine);
}
.dialog h2 { font-size: 1.6rem; line-height: 1.15; }
.dialog .knopfreihe { margin-top: .4rem; padding-top: 0; }
.dialog .cta { flex: 1; }

.mengen-steuerung {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: .9rem;
  border-radius: var(--radius);
  background: var(--gruen-blass);
}
.mengen-btn {
  width: 3.8rem; height: 3.8rem;
  border-radius: 50%;
  background: var(--tanne);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}
.mengen-btn:active { transform: scale(.93); }
.mengen-anzeige { text-align: center; }
.mengen-anzeige span { display: block; font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--tanne); }
.mengen-anzeige small { color: var(--text-leise); font-weight: 700; font-size: .82rem; }

.schnell-reihe { display: flex; flex-wrap: wrap; gap: .5rem; }
.schnell-knopf {
  padding: .6rem 1.1rem;
  border-radius: 999px;
  background: var(--sand);
  border: 2px solid transparent;
  color: var(--tanne);
  font-weight: 700;
  font-size: .88rem;
}
.schnell-knopf:active { border-color: var(--mandarine); }

/* ─── Ruhebildschirm ──────────────────────────────────────── */

.screensaver {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--tanne);
  display: flex;
  align-items: center;
  justify-content: center;
}
.screensaver[hidden] { display: none; }
.werbevideo { width: 100%; height: 100%; object-fit: cover; }
.werbevideo[hidden] { display: none; }

.screensaver-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--creme);
}
.screensaver-fallback img { max-width: 92%; max-height: 82%; object-fit: contain; }
.screensaver.ohne-video .werbevideo { display: none; }
.screensaver.ohne-video .screensaver-fallback { display: flex; }

.screensaver-prompt {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: 1.1rem 2rem;
  border-radius: 999px;
  background: var(--mandarine);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}
.puls {
  width: .8rem; height: .8rem;
  border-radius: 50%;
  background: #fff;
  animation: pulsieren 1.6s ease-in-out infinite;
}
@keyframes pulsieren {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .35; transform: scale(.7); }
}

/* ─── Große Bildschirme (Kiosk im Hochformat) ─────────────── */

@media (min-height: 1200px) {
  .screen { padding: 3rem 3rem 2rem; gap: 1.3rem; }
  .kopf { padding: 1.6rem 3rem; }
  .fuss { padding: 1.2rem 3rem; }
  .kat-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── Querformat / Desktop ────────────────────────────────── */

@media (min-width: 900px) and (orientation: landscape) {
  .start-grid { grid-template-rows: none; grid-template-columns: 1.1fr .9fr; align-items: center; }
  .kat-grid { grid-template-columns: repeat(3, 1fr); }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .produktliste { grid-template-columns: repeat(3, 1fr); }
}

/* ─── Kleine Handys ───────────────────────────────────────── */

@media (max-width: 420px) {
  .kat-grid { grid-template-columns: repeat(2, 1fr); }
  .produktliste { grid-template-columns: 1fr; }
  .marke-ort { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   Bildschirmtastatur
   Am Touchscreen hängt keine echte Tastatur – ohne die hier
   käme niemand durch die Vorbestellung.
   ═══════════════════════════════════════════════════════════ */

.tastatur {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  padding: .8rem 1rem 1.2rem;
  background: var(--sand);
  border-top: 3px solid var(--braun-linie);
  box-shadow: 0 -10px 30px rgba(31, 58, 46, .18);
  animation: hochschieben .18s ease-out;
}
.tastatur[hidden] { display: none; }
@keyframes hochschieben { from { transform: translateY(100%); } to { transform: none; } }

.tastatur-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .7rem;
}
.tastatur-feldname {
  font-weight: 800;
  font-size: .86rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-leise);
}
.tastatur-fertig {
  padding: .7rem 1.4rem;
  border-radius: 999px;
  background: var(--gruen);
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
}
.tastatur-fertig:active { transform: scale(.96); }

.tastatur-flaeche { display: flex; flex-direction: column; gap: .45rem; }
.tasten-reihe { display: flex; gap: .45rem; justify-content: center; }

.taste {
  flex: 1;
  min-width: 0;
  min-height: 3.4rem;
  border-radius: var(--radius-klein);
  background: var(--papier);
  border: 2px solid var(--braun-linie);
  color: var(--tanne);
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 2px 0 var(--braun-linie);
}
.taste:active { transform: translateY(2px); box-shadow: none; background: var(--gruen-blass); }
.taste-breit { flex: 1.6; font-size: .92rem; }
.taste-leer { flex: 4; font-size: .92rem; }
.taste-loeschen { background: var(--hellbraun); }
.taste.an { background: var(--tanne); color: #fff; border-color: var(--tanne); }

/* Zahlenblock mittig und größer – für Telefonnummern */
.tastatur-flaeche.zahlenblock { max-width: 22rem; margin: 0 auto; }
.tastatur-flaeche.zahlenblock .taste { min-height: 4rem; font-size: 1.5rem; }

/* Platz schaffen, damit die Tastatur nichts verdeckt */
body.tastatur-offen .screen { padding-bottom: 26rem; }
body.tastatur-offen .fuss { display: none; }

/* Felder mit Bildschirmtastatur: readonly, soll aber nicht grau wirken */
input[data-tastatur], textarea[data-tastatur] { cursor: pointer; }
input[data-tastatur]:focus, textarea[data-tastatur]:focus { border-color: var(--mandarine); }

/* ─── Anleitungen (Stufe 2) ───────────────────────────────── */

.video-knopf {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.3rem;
  text-align: left;
  border-radius: var(--radius);
  background: var(--tanne);
  color: #fff;
  box-shadow: var(--schatten);
}
.video-knopf[hidden] { display: none; }
.video-knopf:active { transform: scale(.98); }
.video-knopf-icon {
  flex: none;
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--mandarine);
  font-size: 1.1rem;
}
.video-knopf strong { display: block; font-size: 1.05rem; }
.video-knopf small { opacity: .75; font-size: .82rem; }

/* Trefferliste in der Vorbestell-Suche */
#best-treffer[hidden] { display: none; }
#best-treffer { max-height: 40vh; overflow-y: auto; }
.treffer-kat {
  display: block;
  color: var(--text-leise);
  font-size: .78rem;
  font-weight: 700;
}

/* Regalreihe – die konkreteste Wegbeschreibung, die wir geben koennen */
.produktliste li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.reihe-marke {
  flex: none;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: var(--gruen-blass);
  color: var(--gruen);
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}
.plan-info .reihe-gross {
  margin: .3rem 0 .1rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--mandarine);
}

/* Ein Ladenplan, der auf 14 px zusammenfaellt, hilft niemandem.
   Auf kleinen Bildschirmen darf der Rest lieber scrollen. */
.plan-wrapper { min-height: 34vh; }

/* Zonen, die zu klein fuer ihren Namen sind, tragen eine Nummer.
   Die taucht im Infofeld wieder auf, damit man beides zusammenbringt. */
.zone.nur-nummer rect { fill: var(--gruen-blass); }
.zone.nur-nummer.hell rect { fill: var(--mandarine); }
.zonen-nummer {
  display: inline-grid;
  place-items: center;
  width: 1.9rem; height: 1.9rem;
  margin-right: .45rem;
  border-radius: 50%;
  background: var(--mandarine);
  color: #fff;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 800;
  vertical-align: middle;
}

/* Dosengroesse im Mengen-Dialog – ohne die weiss an der Theke niemand,
   ob 400 oder 800 g gemeint war */
.groessen-reihe { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.groessen-reihe[hidden] { display: none; }
.groessen-titel {
  width: 100%;
  font-weight: 800;
  font-size: .8rem;
  color: var(--text-leise);
}
.groessen-knopf {
  flex: 1;
  min-height: 3.4rem;
  padding: 0 1.2rem;
  border-radius: var(--radius-klein);
  background: var(--papier);
  border: 2px solid var(--braun-linie);
  color: var(--tanne);
  font-weight: 800;
  font-size: 1rem;
}
.groessen-knopf.gewaehlt {
  background: var(--tanne);
  border-color: var(--tanne);
  color: #fff;
}

/* Heute-Bestellung ohne feste Zusage – muss auffallen, nicht untergehen */
.hinweis-zeile.ohne-zusage {
  padding: .7rem 1rem;
  border-radius: var(--radius-klein);
  background: #FDF0D5;
  color: #8A6100;
  font-weight: 700;
}

/* Aufzählung statt Schrittfolge – z. B. Partyservice-Pakete */
.schritte.aufzaehlung .schritt-nr {
  background: var(--mandarine);
  font-size: 1.4rem;
}

/* QR-Code auf einer Infoseite */
.qr-block {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius);
  background: var(--papier);
  border: 2px solid var(--braun-linie);
  box-shadow: var(--schatten);
}
.qr-block[hidden] { display: none; }
.qr-block img { width: 8rem; height: 8rem; flex: none; }
.qr-block p { margin: 0; color: var(--text-leise); font-size: .92rem; font-weight: 600; }

/* Regalreihen als Streifen in der markierten Zone – oberste Reihe oben.
   Die eigene Beschriftung der Zone weicht solange, das Infofeld nennt sie. */
.zone.mit-reihen > text { display: none; }
.zone .reihen rect {
  fill: rgba(255, 255, 255, .14);
  stroke: none;
  animation: none;
}
.zone .reihen rect.reihe-aktiv {
  fill: #fff;
  stroke: #B94E1D;
  stroke-width: .45;
}
.zone .reihen .reihe-text {
  fill: #B94E1D;
  font-family: var(--sans);
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}
.treffer.gewaehlt { border-color: var(--mandarine); background: var(--mandarine-hell); }

/* "Am Stueck" oder "Geschnitten" – gleiche Optik wie die Dosengroessen */
.variante-reihe { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.variante-reihe[hidden] { display: none; }

/* Foto des Bereichs im Infofeld - Breite voll, Hoehe begrenzt, damit der
   Plan darueber nicht aus dem Bild rutscht */
.plan-info .zonen-foto {
  display: block;
  width: 100%;
  max-height: 34vh;
  object-fit: contain;
  background: var(--papier);
  margin-top: .7rem;
  border-radius: var(--radius-klein);
  border: 1px solid var(--braun-linie);
}


/* Erklaerung: die vier Punkte sind selbst die Knoepfe. "Verstanden, weiter"
   wird ueberlesen - der Punkt, der einen interessiert, nicht. */
.schritte-links li { padding: 0; }
.schritt-link {
  width: 100%;
  display: flex;
  gap: 1rem;
  align-items: center;
  text-align: left;
  padding: 1.05rem 1.2rem;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
}
.schritt-link:active { background: var(--sand); }
.schritt-link > div { flex: 1; }
.schritt-pfeil {
  flex: none;
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--mandarine);
  color: #fff;
  font-weight: 800;
}

/* Sortiment: jeder Artikel antippbar, oeffnet den kleinen Plan */
.produkt-knopf {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem .4rem .75rem .9rem;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
}
.produkt-knopf:active { background: var(--sand); }
.produkt-name { flex: 1; }
.produkt-pin { flex: none; font-size: 1.1rem; }

/* Ort-Popup */
.ort-dialog { width: min(34rem, 100%); gap: .5rem; }
.ort-zeile { margin: 0; color: var(--tanne); font-size: 1.05rem; }
.ort-dialog .reihe-gross {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--mandarine);
}
.ort-plan-wrapper { padding: .4rem 0; }
#ort-plan { width: 100%; height: auto; display: block; }
.mini-zone { fill: var(--papier); stroke: var(--braun-linie); stroke-width: .8; }
.mini-ziel { fill: var(--mandarine); stroke: #B94E1D; stroke-width: 1.2; }
.mini-eingang { fill: var(--gruen-blass); stroke: var(--gruen); stroke-width: .8; stroke-dasharray: 2 1.5; }
.mini-eingang-text {
  font-family: var(--sans); font-size: 3.2px; font-weight: 700;
  fill: var(--gruen); text-anchor: middle; dominant-baseline: central;
}
.mini-reihe { fill: rgba(255, 255, 255, .14); }
.mini-reihe-aktiv { fill: #fff; stroke: #B94E1D; stroke-width: .45; }
.mini-ring {
  fill: none; stroke: var(--mandarine); stroke-width: 1.2;
  animation: ring-pochen 1.4s ease-in-out infinite;
}
@keyframes ring-pochen {
  0%, 100% { opacity: .25; }
  50%      { opacity: 1; }
}
.ort-dialog .zonen-foto { margin-top: .2rem; max-height: 26vh; }

.produktliste li:has(.produkt-knopf) { padding: 0; }


/* Clip am einzelnen Schritt */
.schritte li.mit-clip { flex-wrap: wrap; }
.schritt-play {
  flex: none;
  margin-left: auto;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 2.8rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: var(--mandarine);
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  box-shadow: 0 2px 0 #B94E1D;
}
.schritt-play:active { transform: translateY(2px); box-shadow: none; }


/* Menue: warmes Essen in Mandarine-Ton, Kaffee in Beige */
.kachel-warm .kachel-icon  { background: var(--mandarine-hell); color: var(--mandarine); }
.kachel-video .kachel-icon { background: var(--sand); }

/* Kleine Themen unter dem Menue - da, aber nicht im Weg */
.mehr-themen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
}
.mehr-themen > span { color: var(--text-leise); font-weight: 700; font-size: .85rem; }
.thema-chip {
  min-height: 2.6rem;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--papier);
  border: 2px solid var(--braun-linie);
  color: var(--tanne);
  font-weight: 700;
  font-size: .88rem;
}
.thema-chip:active { background: var(--sand); }


/* Videoplayer: grosses X oben rechts, Tipp aufs Bild schliesst ebenfalls */
.player video { cursor: pointer; }
.player-x {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 2;
  width: 3.6rem; height: 3.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--tanne);
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}


/* Erklaerseite: die Verkaeuferin mit dem Zeigefinger neben der Ueberschrift -
   ein anderes Bild als auf der Startseite, damit es nicht zweimal dasselbe ist */
.erkl-kopf {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}
.erkl-kopf > div { flex: 1; min-width: 0; }
.erkl-figur {
  flex: none;
  width: 32%;
  max-width: 230px;
  height: auto;
  margin-bottom: -.4rem;
  filter: drop-shadow(0 6px 14px rgba(31, 58, 46, .22));
}
@media (max-width: 420px) { .erkl-figur { display: none; } }

/* Menue-Kacheln: feste Plaetze im Grid. Ohne das rutschten Pfeil und Text
   bei der Auto-Platzierung durcheinander (Pfeil neben dem Icon, Text rechts). */
.menu-kachel .kachel-icon { grid-column: 1; grid-row: 1 / 3; }
.menu-kachel strong       { grid-column: 2; grid-row: 1; text-align: left; }
.menu-kachel small        { grid-column: 2; grid-row: 2; text-align: left; }
.menu-kachel .kachel-pfeil { grid-column: 3; grid-row: 1 / 3; }

.kachel-zutritt .kachel-icon { background: var(--gruen); color: #fff; }


/* Web-Modus (Handy per QR): Felder sind echte Eingabefelder, Kiosk-Hinweise weg */
body[data-modus="web"] .fuss { display: none; }
body[data-modus="web"] input[data-tastatur],
body[data-modus="web"] input:not([readonly]) { cursor: text; }
a.menu-kachel { text-decoration: none; color: inherit; }
