/* Eine Schicht im ptc KIOSK. Farben und Schriften aus Entwurf A „Das Schild“: weißes Feld, blaue Kontur, runde Ecken. */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url(/spiel/fonts/bricolage.woff2) format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url(/spiel/fonts/dm-sans.woff2) format('woff2');
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --blau: #0121c1;
  --tief: #011694;
  --tinte: #060b33;
  --leise: #3b3f5c;
  --hell: #f3f5fc;
  --linie: rgba(1, 33, 193, .2);
  --rot: #d22630;
  --sonne: #ffc93c;
  --gruen: #1f8a4c;
  --titel: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --text: 'DM Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--tief);
  color: var(--tinte);
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button {
  font: inherit;
  color: inherit;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--sonne); outline-offset: 2px; }
h1, h2 { margin: 0; }
[hidden] { display: none !important; }

/* ---------- Gerüst ---------- */
.spiel {
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto minmax(178px, 1fr) auto auto auto auto;
  background: var(--hell);
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
}

/* ---------- Leiste ---------- */
.leiste {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: calc(6px + env(safe-area-inset-top)) 10px 6px;
  background: var(--blau);
  color: #fff;
}
.marke { display: flex; align-items: center; min-width: 0; }
.marke img { width: 96px; height: auto; display: block; }
.uhr {
  font-family: var(--titel);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-align: center;
  min-width: 3.2ch;
}
.uhr.knapp { color: var(--sonne); animation: puls 1s ease-in-out infinite; }
.rechts { justify-self: end; display: flex; align-items: center; gap: 6px; }
.kasse {
  margin-right: 2px;
  font-family: var(--titel);
  font-weight: 700;
  font-size: 18px;
  color: var(--sonne);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.knopf-rund {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .45);
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  padding: 0;
}
.knopf-rund svg { width: 19px; height: 19px; }
.knopf-rund .welle-aus { display: none; }
.knopf-rund[aria-pressed="false"] .welle-an { display: none; }
.knopf-rund[aria-pressed="false"] .welle-aus { display: inline; }

/* ---------- Theke: das Kioskfenster ---------- */
.theke {
  position: relative;
  min-height: 0;
  overflow: clip;
  display: flex;
  flex-direction: column;
  container: theke / size;
  background:
    linear-gradient(rgba(255, 255, 255, .0), rgba(255, 255, 255, .0)),
    linear-gradient(#ffffff, #EEF2FB);
}
.tafel {
  flex: none;
  width: min(92%, 560px);
  margin: 10px auto 0;
  display: none;
  padding: 7px 14px 8px;
  border: 2px solid var(--blau);
  border-radius: 14px;
  background: #fff;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  color: var(--leise);
  text-wrap: balance;
}
.tafel b { color: var(--blau); font-family: var(--titel); font-weight: 700; margin-right: 3px; }
.tafel:empty { display: none !important; }
.plaetze {
  position: relative;
  flex: 1;
  min-height: 0;
  container: plaetze / size;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  gap: 8px;
  padding: 8px 8px 6px;
  align-items: end;
}
.schild {
  flex: none;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  background: var(--blau);
  border-top: 3px solid #fff;
  box-shadow: 0 -2px 0 var(--blau);
}
.schild svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kunde {
  position: relative;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 12px;
}
.kunde.leer { cursor: default; }
.blase {
  position: relative;
  flex: none;
  width: 100%;
  min-height: 52px;
  margin-bottom: 6px;
  padding: 5px 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: #fff;
  border: 2px solid var(--blau);
  border-radius: 12px;
  font-size: 11.5px;
  line-height: 1.2;
  text-align: left;
}
.blase::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: #fff;
  border-right: 2px solid var(--blau);
  border-bottom: 2px solid var(--blau);
  transform: rotate(45deg);
}
.kunde.leer .blase { visibility: hidden; }
.blase-frage { font-weight: 700; color: var(--blau); text-align: center; }
.z-wartet .blase { animation: anstupsen 1.6s ease-in-out infinite; }
.posten { display: flex; align-items: flex-start; gap: 5px; }
.posten-bild { position: relative; width: 22px; height: 22px; flex: none; }
.posten-bild svg { width: 100%; height: 100%; display: block; }
.posten-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.posten-text b { font-weight: 700; font-size: 11.5px; line-height: 1.15; overflow-wrap: break-word; }
.posten-text small { font-size: 10.5px; line-height: 1.2; color: var(--leise); }
.posten.da { color: var(--gruen); }
.posten.da .posten-text small { color: var(--gruen); }
.posten.da .posten-bild::after {
  content: '✓';
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gruen);
  color: #fff;
  font-size: 8.5px;
  font-weight: 800;
  line-height: 12px;
  text-align: center;
}
.posten-reihe { display: flex; justify-content: center; gap: 6px; }
.posten-reihe .posten-bild { width: 28px; height: 28px; }
.blase-los {
  margin-top: 1px;
  padding: 3px 4px;
  border-radius: 6px;
  background: var(--blau);
  color: #fff;
  font-weight: 700;
  text-align: center;
}
.bereit .blase { border-color: var(--sonne); box-shadow: 0 0 0 3px rgba(255, 201, 60, .55); }
.bereit .blase::after { border-color: var(--sonne); }
.blase-dank { color: var(--gruen); font-weight: 700; text-align: center; }
.blase-sauer { color: var(--rot); font-weight: 700; text-align: center; }

/* Das Gesicht nimmt, was neben Blase und Namen übrig bleibt: kurze Bestellung, großes Gesicht */
.figur {
  flex: 1 1 0;
  min-height: 28px;
  max-height: min(96px, 26cqw);
  aspect-ratio: 1;
  width: auto;
}
.figur svg { width: 100%; height: 100%; display: block; overflow: visible; }
.kunde.leer .figur { visibility: hidden; }
@container plaetze (min-width: 700px) {
  .figur { max-height: min(118px, 18cqw); }
}
@container theke (min-height: 380px) {
  .tafel { display: block; }
}
@container theke (min-width: 700px) and (min-height: 290px) {
  .tafel { display: block; }
}

.kunde-name, .kunde-art, .geduld { flex: none; }
.kunde-name {
  max-width: 100%;
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kunde-art {
  max-width: 100%;
  font-size: 11px;
  line-height: 1.15;
  color: var(--leise);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.geduld {
  width: 78%;
  height: 6px;
  margin-top: 3px;
  border-radius: 3px;
  background: var(--linie);
  overflow: hidden;
}
.kunde.leer .geduld { visibility: hidden; }
.geduld-stand {
  display: block;
  height: 100%;
  transform-origin: left center;
  background: var(--gruen);
}
.geduld-stand[data-stufe="mittel"] { background: #E8A317; }
.geduld-stand[data-stufe="knapp"] { background: var(--rot); }

.z-froh, .z-sauer, .z-geht { pointer-events: none; }
.z-froh .figur, .z-sauer .figur, .z-geht .figur,
.z-froh .kunde-name, .z-sauer .kunde-name, .z-geht .kunde-name,
.z-froh .kunde-art, .z-sauer .kunde-art, .z-geht .kunde-art { animation: gehen 1.3s ease-in .25s both; }
.z-geht .figur { animation-duration: 1.6s; }
.dampft .figur { animation: brodeln .28s linear infinite; }
.z-sauer.dampft .figur, .z-geht.dampft .figur { animation: gehen 1.3s ease-in .25s both; }

.schwebt {
  position: absolute;
  left: 50%;
  top: 8%;
  z-index: 3;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 8px;
  background: #fff;
  border: 1.5px solid var(--linie);
  font-family: var(--titel);
  font-weight: 800;
  font-size: 15px;
  color: var(--tinte);
  white-space: nowrap;
  pointer-events: none;
  animation: schweben 1.5s ease-out forwards;
}
.schwebt.gut { color: var(--gruen); }

/* ---------- Funkzeile ---------- */
.funk {
  margin: 0;
  height: calc(2 * 1.3em + 12px);
  padding: 6px 12px;
  background: var(--tief);
  color: #fff;
  font-size: 13px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.funk[data-art="gut"] { color: #A8EBC1; }
.funk[data-art="schlecht"] { color: #FFC0B3; }
.funk[data-art="hinweis"] { color: #FFE08A; }
.funk.neu { animation: aufleuchten .45s ease-out; }

/* ---------- Tresen ---------- */
.tresen {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 3px;
  padding: 4px 10px 6px;
  background: #fff;
  border-bottom: 1px solid var(--linie);
}
.tresen h2, .station h2 {
  font-family: var(--titel);
  font-weight: 700;
  font-size: 13px;
  color: var(--blau);
}
.tresen-plaetze {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.teller {
  height: 52px;
  padding: 2px 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 1.5px solid var(--blau);
  border-radius: 10px;
  background: #fff;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.1;
}
.teller.leer { border-style: dashed; border-color: var(--linie); background: transparent; }
.teller-bild { width: 24px; height: 24px; flex: none; }
.teller-bild svg { width: 100%; height: 100%; display: block; }
.teller-name { max-width: 100%; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.teller.weg { border-color: var(--rot); background: #FDECEA; color: var(--rot); }

/* ---------- Stationen ---------- */
.stationen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr) minmax(0, 1.1fr);
  gap: 8px;
  padding: 8px 10px;
  background: var(--hell);
}
.station {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 6px;
  border: 2px solid var(--blau);
  border-radius: 14px;
  background: #fff;
}
.station h2 { text-align: center; }
.ofen-plaetze { display: grid; gap: 5px; }
.ofenplatz {
  height: 56px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  column-gap: 6px;
  padding: 4px 7px 6px 5px;
  border: 0;
  border-radius: 9px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  background: linear-gradient(#1C2550, #121A3D);
  color: #fff;
}
.ofen-bild { grid-row: 1 / 3; width: 34px; height: 34px; }
.ofen-bild svg { width: 100%; height: 100%; display: block; }
.uhrbalken {
  grid-column: 2;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .22);
  overflow: hidden;
}
.uhrbalken span { display: block; height: 100%; transform-origin: left center; transform: scaleX(0); background: #fff; }
.ofenplatz.z-leer { color: rgba(255, 255, 255, .78); }
.ofenplatz.z-backt { box-shadow: inset 0 0 18px rgba(255, 140, 40, .65); }
.ofenplatz.z-backt .ofen-bild { animation: blubbern .6s ease-in-out infinite alternate; }
.ofenplatz.z-gar { background: var(--sonne); color: var(--tinte); animation: winken .9s ease-in-out infinite alternate; }
.ofenplatz.z-gar .uhrbalken span { background: var(--rot); }
.ofenplatz.z-gar .uhrbalken { background: rgba(6, 11, 51, .18); }
.ofenplatz.z-verbrannt { background: #2B231D; color: #FFB3A3; }
.z-verbrannt .ofen-bild { animation: qualmen 1.2s ease-in-out infinite; }

.station-sieb { align-items: stretch; }
.sieb {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  padding: 2px 2px 3px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  color: var(--tinte);
}
.sieb-bild { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.sieb-bild svg { width: 44px; height: 76px; display: block; }
.sieb-strahl { opacity: 0; }
.sieb.zieht .sieb-strahl { opacity: 1; animation: strahl .3s linear infinite; }
.sieb.zieht .sieb-griff { animation: brodeln .2s linear infinite; }
.sieb-text small { display: block; font-weight: 600; font-size: .92em; color: var(--leise); }
.sieb.leer .sieb-text small { color: var(--rot); font-weight: 700; }

.kuehl {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 9px;
  background: linear-gradient(160deg, #EAF4FC, #D4E8F7);
  box-shadow: inset 0 0 0 1.5px #9CC9E6;
}
.flasche {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 2px;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, .55);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
}
.flasche-bild { width: 26px; height: 26px; flex: none; }
.flasche-bild svg { width: 100%; height: 100%; display: block; }
.flasche-name { max-width: 100%; overflow-wrap: anywhere; }

/* ---------- Arbeitsplatte ---------- */
.platte {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  grid-template-areas: "feld zutaten" "aktion aktion";
  gap: 8px 10px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: #E4E9F6;
}
.platte-feld {
  grid-area: feld;
  position: relative;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background:
    repeating-linear-gradient(100deg, rgba(150, 105, 50, .07) 0 2px, transparent 2px 10px),
    linear-gradient(135deg, #F1DDB6, #E2C595);
  box-shadow: inset 0 0 0 2px rgba(150, 105, 50, .22), 0 2px 0 rgba(1, 33, 193, .12);
}
.basis-wahl { display: grid; grid-template-columns: 1fr; gap: 4px; width: 100%; padding: 5px; }
.basis {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 2px 7px;
  border: 2px dashed rgba(1, 33, 193, .45);
  border-radius: 10px;
  background: rgba(255, 255, 255, .6);
  font-weight: 700;
  font-size: 13px;
  color: var(--tinte);
}
.basis svg { width: 28px; height: 28px; flex: none; }
.platte-bild { width: 80px; height: 80px; margin-bottom: 22px; transition: transform .25s ease-out; }
.platte-bild svg { width: 100%; height: 100%; display: block; }
.quetscht .platte-bild { animation: quetschen .45s ease-in-out; }
.platte-name {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 5px;
  padding: 2px 5px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .92);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: break-word;
}
.zutaten { grid-area: zutaten; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 36px; gap: 5px; align-content: center; }
.zutaten[data-basis=""]::before {
  content: 'Erst Brötchen, Tasse oder Glas auf die Arbeitsplatte legen. Danach stehen hier die Zutaten.';
  grid-column: 1 / -1;
  grid-row: span 3;
  align-self: center;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--leise);
}
.zutat {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 7px;
  border: 1.5px solid var(--linie);
  border-radius: 9px;
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.1;
  text-align: left;
  overflow: hidden;
}
.zutat span { min-width: 0; overflow-wrap: break-word; }
.zutat i { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.zutat-kaese i { background: #F4C95A; border-radius: 2px; }
.zutat-schinken i { background: #EBA0A0; }
.zutat-tomate i { background: #E0453A; }
.zutat-gurke i { background: #9BCB6A; box-shadow: inset 0 0 0 2px #4E8A2E; }
.zutat-salat i { background: #8CC152; border-radius: 6px 2px; }
.zutat-schokokuss i { background: #4A2A1A; border-radius: 6px 6px 2px 2px; }
.zutat-espresso i { background: #3A2214; box-shadow: inset 0 0 0 2px #B5733C; }
.zutat-milch i { background: #FFF8EC; box-shadow: inset 0 0 0 1.5px #C9CED6; }
.zutat-hafer i { background: #EFDDB8; box-shadow: inset 0 0 0 1.5px #C9B48A; }
.zutat-erdbeere i { background: #E8436A; }
.zutat-eis i { background: #fff; border-radius: 3px; box-shadow: inset 0 0 0 1.5px #9CC9E6; }
.zutat-matcha i { background: #7AA33C; }
.zutat.drauf { background: var(--blau); border-color: var(--blau); color: #fff; }
.zutat.alle { border-style: dashed; color: var(--leise); }
.platte-aktion { grid-area: aktion; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 6px; }
.knopf {
  height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  font-size: 14.5px;
}
.knopf-haupt { background: var(--blau); color: #fff; }
.knopf-haupt:disabled { background: #8C98D6; color: rgba(255, 255, 255, .9); }
.knopf-leise { background: #fff; border: 2px solid var(--blau); color: var(--blau); }
.knopf-leise:disabled { border-color: var(--linie); color: #8A90AE; }

/* ---------- Fenster: Start, Pause, Feierabend ---------- */
.schicht {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(1, 22, 148, .9);
  overflow-y: auto;
}
.schicht-karte {
  width: 100%;
  max-width: 420px;
  padding: 26px 22px 20px;
  border: 3px solid #fff;
  border-radius: 22px;
  background: #fff;
  text-align: center;
  box-shadow: 0 0 0 2px var(--blau), 0 18px 50px rgba(0, 0, 0, .35);
}
.schicht-marke { width: 190px; height: auto; display: block; margin: 0 auto 14px; }
.schicht-karte h1 {
  font-family: var(--titel);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--tinte);
  text-wrap: balance;
}
.schicht-satz { margin: 12px 0 18px; font-size: 16px; line-height: 1.45; color: var(--tinte); text-wrap: pretty; }
.knopf-gross { width: 100%; height: 54px; font-size: 17px; }
.schicht-klein { margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: var(--leise); }
.schicht-klein a { color: var(--blau); font-weight: 700; }
.kein-umbruch { white-space: nowrap; }
.wusstest:empty { display: none; }
.wusstest {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 2px solid var(--blau);
  border-radius: 14px;
  text-align: left;
  font-size: 14px;
  line-height: 1.45;
  color: var(--tinte);
}
.wusstest p { margin: 0; text-wrap: pretty; }
.wusstest b { color: var(--blau); font-family: var(--titel); }
.ende-rang { margin: 8px 0 14px; font-size: 16px; color: var(--leise); }
.ende-kasse {
  margin: 0 0 14px;
  font-family: var(--titel);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  color: var(--blau);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ende-kasse small { font-family: var(--text); font-weight: 600; font-size: 14px; color: var(--gruen); }
.ende-kasse small.ohne { color: var(--leise); }
.ende-bestes { margin: -6px 0 10px; font-size: 13.5px; font-weight: 600; color: var(--blau); }
.ende-bestes:empty { display: none; }
.ende-gesichter { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin: 0 0 14px; }
.ende-gesichter:empty { display: none; }
.ende-gesichter span { width: 30px; height: 30px; }
.ende-gesichter svg { width: 100%; height: 100%; display: block; }
.ende-gesichter .ende-mehr { display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--leise); }
.ende-zahlen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 14px;
}
.ende-zahlen div { padding: 8px; border-radius: 12px; background: var(--hell); }
.ende-zahlen dt { font-size: 12.5px; color: var(--leise); }
.ende-zahlen dd { margin: 2px 0 0; font-family: var(--titel); font-weight: 800; font-size: 22px; color: var(--tinte); }

/* ---------- Ankommen und Konfetti ---------- */
.kunde.kommt .figur, .kunde.kommt .kunde-name, .kunde.kommt .kunde-art, .kunde.kommt .geduld { animation: ankommen .45s ease-out both; }
@keyframes ankommen { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.konfetti { position: fixed; inset: 0; z-index: 11; pointer-events: none; overflow: hidden; }
.konfetti i { position: absolute; top: -12px; width: 8px; height: 13px; border-radius: 2px; animation: konfetti 1.9s cubic-bezier(.3, .6, .5, 1) both; }
@keyframes konfetti { from { transform: translateY(0) rotate(0); opacity: 1; } to { transform: translateY(105vh) rotate(var(--dreh)); opacity: .9; } }

/* ---------- Handy quer ---------- */
.quer { display: none; }
@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  .quer {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--blau);
    color: #fff;
    text-align: center;
  }
  .quer p { max-width: 26ch; margin: 0; font-family: var(--titel); font-weight: 700; font-size: 22px; line-height: 1.3; }
}

/* ---------- Hilfe für die ersten Kunden ---------- */
.hinweis {
  outline: 3px solid var(--sonne);
  outline-offset: 1px;
  animation: hinweis-puls 1.1s ease-in-out infinite;
}
.kunde.hinweis { outline-offset: -1px; }
.basis.hinweis { background: #fff; border-color: var(--blau); }
@keyframes hinweis-puls {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 201, 60, .7); }
  50% { box-shadow: 0 0 0 7px rgba(255, 201, 60, 0); }
}

/* ---------- Bewegung ---------- */
.wackelt { animation: wackeln .3s ease-in-out; }
@keyframes wackeln { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@keyframes puls { 50% { opacity: .55; } }
@keyframes anstupsen { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes gehen { to { opacity: 0; transform: translateY(18px); } }
@keyframes brodeln { 25% { transform: translateX(-1px) rotate(-1deg); } 75% { transform: translateX(1px) rotate(1deg); } }
@keyframes schweben { 0% { opacity: 0; transform: translate(-50%, 6px); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -34px); } }
@keyframes aufleuchten { from { background: var(--blau); } }
@keyframes blubbern { to { transform: translateY(-2px); } }
@keyframes winken { to { box-shadow: 0 0 0 3px rgba(255, 201, 60, .45); } }
@keyframes qualmen { 50% { opacity: .5; } }
@keyframes strahl { 50% { stroke-dasharray: 4 3; } }
@keyframes quetschen { 0% { transform: scale(1, 1); } 45% { transform: scale(1.22, .62); } 75% { transform: scale(.94, 1.06); } 100% { transform: scale(1, 1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Kurze Handy-Bildschirme ---------- */
@media (max-width: 759px) and (max-height: 760px) {
  .uhr { font-size: 25px; }
  .leiste { padding-bottom: 5px; }
  .marke img { width: 84px; }
  .knopf-rund { width: 36px; height: 36px; }
  .funk { font-size: 12.5px; padding: 4px 10px; height: calc(2 * 1.3em + 8px); }
  .teller { height: 40px; padding: 2px 4px; font-size: 10.5px; line-height: 1.1; }
  .tresen { padding: 2px 10px 4px; gap: 1px; }
  .teller-bild { display: none; }
  .tresen h2 { font-size: 11px; }
  .stationen { padding: 5px 10px; gap: 6px; }
  .station { padding: 4px; gap: 3px; border-radius: 12px; }
  .station h2, .tresen h2 { font-size: 12px; }
  .ofenplatz { height: 44px; grid-template-columns: 28px minmax(0, 1fr); font-size: 11.5px; padding: 3px 6px 5px 4px; }
  .ofen-bild { width: 28px; height: 28px; }
  .sieb-bild svg { width: 34px; height: 58px; }
  .flasche-bild { width: 20px; height: 20px; }
  .flasche { font-size: 9.5px; }
  .platte { padding-top: 6px; gap: 6px 10px; grid-template-columns: 104px minmax(0, 1fr); }
  .platte-feld { height: 118px; }
  .zutaten { grid-auto-rows: 33px; gap: 4px; }
  .basis { height: 33px; }
  .basis svg { width: 24px; height: 24px; }
  .platte-bild { width: 64px; height: 64px; margin-bottom: 24px; }
  .zutat { font-size: 12px; }
  .knopf { height: 40px; font-size: 14px; }
  .schild { height: 24px; }
  .schild svg { width: 16px; height: 16px; }
}
@media (max-width: 759px) and (max-height: 700px) {
  .kunde-art { display: none; }
  /* Getränk, Paket und Arancini brauchen keine zweite Zeile, das Bild zeigt es; zusammengesetzte behalten ihren Inhalt */
  .posten.einfach small { display: none; }
  .posten.einfach { align-items: center; }
  .blase { padding: 4px 5px; gap: 3px; min-height: 44px; }
  .posten-text b { font-size: 11px; }
  .posten-text small { font-size: 10px; line-height: 1.15; }
  .posten-bild { width: 18px; height: 18px; }
  .plaetze { padding-top: 3px; }
  .blase { margin-bottom: 5px; }
}

@media (max-width: 759px) and (max-height: 650px) {
  .schild { height: 20px; }
  .schild svg { width: 14px; height: 14px; }
  .teller { height: 36px; }
  .ofenplatz { height: 38px; }
  .sieb-bild svg { width: 30px; height: 50px; }
  .platte-feld { height: 106px; }
  .zutaten { grid-auto-rows: 30px; }
  .basis { height: 30px; }
  .platte-bild { width: 56px; height: 56px; }
  .knopf { height: 38px; }
}

/* ---------- Größer ab Tablet und Computer ---------- */
@media (min-width: 760px) {
  .spiel { border-left: 2px solid var(--blau); border-right: 2px solid var(--blau); }
  .leiste { padding: 10px 20px; }
  .marke img { width: 150px; }
  .uhr { font-size: 36px; }
  .kasse { font-size: 24px; margin-right: 10px; }
  .knopf-rund { width: 42px; height: 42px; }
  .plaetze { gap: 22px; padding: 14px 28px 10px; }
  .schild { height: 40px; justify-content: center; gap: 56px; }
  .schild svg { width: 24px; height: 24px; }
  .blase { min-height: 70px; padding: 8px 10px; font-size: 14px; border-radius: 14px; gap: 6px; }
  .posten { gap: 8px; }
  .posten-bild { width: 30px; height: 30px; }
  .posten-text b { font-size: 14px; }
  .posten-text small { font-size: 12.5px; }
  .tafel { width: min(84%, 720px); font-size: 14px; padding: 9px 18px 10px; }
  .kunde-name { font-size: 15px; }
  .kunde-art { font-size: 13px; }
  .geduld { width: 60%; height: 8px; border-radius: 4px; }
  .funk { padding: 8px 28px; font-size: 15px; }
  .tresen { grid-template-columns: auto minmax(0, 1fr); padding: 8px 28px; gap: 16px; }
  .tresen h2, .station h2 { font-size: 15px; }
  .teller { height: 58px; flex-direction: row; gap: 8px; font-size: 13px; padding: 4px 10px; justify-content: flex-start; }
  .teller-bild { width: 40px; height: 40px; }
  .teller-name { text-align: left; }
  .stationen { gap: 14px; padding: 12px 28px; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.2fr); }
  .station { padding: 8px; gap: 7px; }
  .ofen-plaetze { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ofenplatz { height: 100px; grid-template-columns: 1fr; grid-template-rows: 1fr auto auto; justify-items: center; text-align: center; row-gap: 5px; padding: 8px 8px 10px; font-size: 13.5px; }
  .ofen-bild { grid-row: auto; width: 48px; height: 48px; }
  .uhrbalken { grid-column: 1; width: 100%; height: 5px; }
  .sieb { flex-direction: row; justify-content: center; gap: 10px; font-size: 14px; text-align: left; }
  .sieb-bild { flex: none; }
  .sieb-bild svg { width: 60px; height: 104px; }
  .kuehl { grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px; }
  .flasche { font-size: 12.5px; gap: 4px; }
  .flasche-bild { width: 44px; height: 44px; }
  .platte { grid-template-columns: 220px minmax(0, 1fr); grid-template-areas: "feld zutaten" "feld aktion"; gap: 10px 16px; padding: 12px 28px 16px; }
  .platte-feld { height: 150px; }
  .platte-bild { width: 104px; height: 104px; }
  .basis-wahl { grid-template-columns: 1fr 1fr 1fr; padding: 8px; gap: 6px; }
  .basis { flex-direction: column; justify-content: center; height: 110px; gap: 4px; padding: 6px 2px; font-size: 14px; }
  .basis svg { width: 46px; height: 46px; }
  .platte-name { font-size: 13px; }
  .zutaten { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 44px; gap: 8px; }
  .zutaten[data-basis=""]::before { grid-row: span 2; font-size: 14px; }
  .zutat { font-size: 14px; gap: 8px; }
  .zutat i { width: 14px; height: 14px; }
  .platte-aktion { gap: 10px; }
  .knopf { height: 50px; font-size: 16px; }
  .schicht-karte { max-width: 460px; padding: 32px 32px 24px; }
}
@media (hover: hover) {
  .zutat:not(.drauf):hover, .basis:hover, .flasche:hover { border-color: var(--blau); background: #fff; }
  .knopf-leise:not(:disabled):hover { background: var(--hell); }
  .knopf-haupt:not(:disabled):hover { background: var(--tief); }
}
