@font-face {
  font-family: 'Roboto Slab';
  src: url(fonts/roboto-slab.woff2) format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url(fonts/dm-sans.woff2) format('woff2');
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --nacht: #102B52;
  --akti: #1B4B8A;
  --welle: #3B73C4;
  --wand: #EDF1F6;
  --stahl: #D3D9E0;
  --stahl-hell: #E6EAEF;
  --stahl-dunkel: #8D98A7;
  --tinte: #14233A;
  --leise: #4D5D73;
  --gold: #F2B33D;
  --glut: #C8402E;
  --gruen: #2C8A57;
  --holz: #C99A5B;
  --slab: 'Roboto Slab', Georgia, serif;
  --sans: '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(--nacht);
  color: var(--tinte);
  font-family: var(--sans);
  -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(--gold); 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(--wand);
  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(--nacht);
  color: #fff;
}
.marke { display: flex; align-items: center; gap: 8px; min-width: 0; }
.marke img { width: 34px; height: 34px; border-radius: 8px; flex: none; }
.marke span { font-family: var(--slab); font-weight: 800; font-size: 17px; letter-spacing: .01em; white-space: nowrap; display: none; }
.uhr {
  font-family: var(--slab);
  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(--gold); animation: puls 1s ease-in-out infinite; }
.rechts { justify-self: end; display: flex; align-items: center; gap: 6px; }
.kasse {
  margin-right: 4px;
  font-family: var(--slab);
  font-weight: 700;
  font-size: 19px;
  color: var(--gold);
  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, .35);
  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 ---------- */
.theke {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  container: theke / size;
  background: linear-gradient(#F6F8FB, var(--wand) 70%);
}
.tafel {
  flex: none;
  width: min(92%, 560px);
  margin: 10px auto 0;
  display: none;
  grid-template-columns: 1fr 1fr;
  column-gap: 18px;
  row-gap: 2px;
  padding: 8px 14px 10px;
  border-radius: 8px;
  background: var(--nacht);
  color: #fff;
  font-size: 11.5px;
  line-height: 1.3;
  box-shadow: 0 3px 0 rgba(16, 43, 82, .18);
}
.tafel-titel {
  grid-column: 1 / -1;
  margin-bottom: 3px;
  font-family: var(--slab);
  font-weight: 800;
  font-size: 13px;
  text-align: center;
  color: #9DBCEE;
}
.tafel-posten { display: flex; justify-content: space-between; gap: 6px; }
.tafel-posten span:last-child { font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 600; }
.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 20px;
  align-items: end;
}
.theke-welle {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 24px;
  pointer-events: none;
}

.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: 56px;
  margin-bottom: 6px;
  padding: 5px 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  background: #fff;
  border: 2px solid var(--nacht);
  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(--nacht);
  border-bottom: 2px solid var(--nacht);
  transform: rotate(45deg);
}
.kunde.leer .blase { visibility: hidden; }
.blase-frage { font-weight: 700; color: var(--akti); text-align: center; }
.z-wartet .blase { border-color: var(--akti); animation: anstupsen 1.6s ease-in-out infinite; }
.z-wartet .blase::after { border-color: var(--akti); }
.posten { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.posten-bild { position: relative; width: 20px; height: 20px; flex: none; }
.posten-bild svg { width: 100%; height: 100%; display: block; }
.posten.da { 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: 26px; height: 26px; }
.blase-los {
  margin-top: 1px;
  padding: 3px 4px;
  border-radius: 6px;
  background: var(--akti);
  color: #fff;
  font-weight: 700;
  text-align: center;
}
.bereit .blase { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 179, 61, .45); }
.bereit .blase::after { border-color: var(--gold); }
.blase-dank { color: var(--gruen); font-weight: 700; text-align: center; }
.blase-sauer { color: var(--glut); font-weight: 700; text-align: center; }

.figur {
  width: clamp(40px, 7.5vh, 66px);
  width: clamp(40px, min(100cqh - 122px, 24cqw), 96px);
  aspect-ratio: 1;
  flex: 0 1 auto;
  min-height: 34px;
}
.figur svg { width: 100%; height: 100%; display: block; overflow: visible; }
.kunde.leer .figur { visibility: hidden; }
@container plaetze (min-width: 700px) {
  .figur { width: clamp(56px, min(100cqh - 136px, 18cqw), 118px); }
}
@container theke (min-height: 330px) {
  .tafel { display: grid; }
}
@container theke (min-width: 760px) {
  .tafel { display: none; }
}
@container theke (min-width: 760px) and (min-height: 350px) {
  .tafel { display: grid; }
}

.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: rgba(16, 43, 82, .14);
  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: var(--gold); }
.geduld-stand[data-stufe="knapp"] { background: var(--glut); }

.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;
  font-family: var(--slab);
  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(--akti);
  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; }

/* ---------- Ablage ---------- */
.ablage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 3px;
  padding: 4px 10px 6px;
  background: var(--stahl-hell);
  border-bottom: 1px solid rgba(16, 43, 82, .12);
}
.ablage h2, .station h2 {
  font-family: var(--slab);
  font-weight: 700;
  font-size: 13px;
  color: var(--nacht);
}
.ablage-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 #B9C2CD;
  border-radius: 10px;
  background: #fff;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.1;
}
.teller.leer { border-style: dashed; background: transparent; }
.teller-bild { width: 22px; height: 22px; 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; }
.teller.weg { border-color: var(--glut); background: #FDECEA; color: var(--glut); }

/* ---------- Küche ---------- */
.kueche {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .78fr) minmax(0, 1fr);
  gap: 8px;
  padding: 8px 10px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .16) 0 1px, transparent 1px 3px),
    linear-gradient(#DCE1E7, #C7CED7);
}
.station {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 6px;
  border-radius: 12px;
  background: linear-gradient(#BCC4CE, #AEB7C3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(16, 43, 82, .1);
}
.station h2 { text-align: center; }
.koerbe, .ofen-plaetze { display: grid; gap: 5px; }
.korb, .ofenplatz {
  height: 58px;
  display: grid;
  grid-template-columns: 38px 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;
}
.korb-bild, .ofen-bild { grid-row: 1 / 3; width: 38px; height: 38px; }
.korb-bild svg, .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; }

.korb { background: linear-gradient(#4E4128, #392F1C); color: #F6E7C0; }
.korb.z-leer { background: linear-gradient(#5B5F66, #474B52); color: #fff; }
.korb.z-frittiert .korb-bild { animation: blubbern .5s ease-in-out infinite alternate; }
.korb.z-gar, .ofenplatz.z-gar { background: var(--gold); color: var(--nacht); animation: winken .9s ease-in-out infinite alternate; }
.korb.z-gar .uhrbalken span, .ofenplatz.z-gar .uhrbalken span { background: var(--glut); }
.korb.z-gar .uhrbalken, .ofenplatz.z-gar .uhrbalken { background: rgba(16, 43, 82, .18); }
.korb.z-verbrannt, .ofenplatz.z-verbrannt { background: #2B231D; color: #FFB3A3; }
.z-verbrannt .korb-bild, .z-verbrannt .ofen-bild { animation: qualmen 1.2s ease-in-out infinite; }

.ofenplatz { background: linear-gradient(#3A3F47, #2A2E35); color: #fff; }
.ofenplatz.z-leer { color: rgba(255, 255, 255, .6); }
.ofenplatz.z-backt { box-shadow: inset 0 0 16px rgba(255, 128, 32, .6); }
.ofenplatz.wartet-auf-pizza { color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); }

.station-spiess { align-items: stretch; }
.spiess {
  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(--nacht);
}
.spiess-bild { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.spiess-bild svg { width: 42px; height: 81px; display: block; }
.spiess-streifen { animation: drehen 1.4s linear infinite; }
.spiess-fleisch { transform-box: view-box; transform-origin: 32px 50px; transition: transform .45s ease-out; }
.spiess-messer { transform-box: fill-box; transform-origin: right center; }
.spiess.schneidet .spiess-messer { animation: schneiden .45s ease-in-out; }
.spiess-text small { display: block; font-weight: 600; font-size: .92em; color: var(--leise); }
.spiess.leer .spiess-text small { color: var(--glut); font-weight: 700; }

/* ---------- Brett ---------- */
.brett {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  grid-template-areas: "holz belag" "aktion aktion";
  gap: 8px 10px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: linear-gradient(#C7CED7, #B8C0CA);
}
.brett-holz {
  grid-area: holz;
  position: relative;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background:
    repeating-linear-gradient(100deg, rgba(120, 72, 24, .09) 0 2px, transparent 2px 9px),
    linear-gradient(135deg, #D7AC6C, #BF8E4F);
  box-shadow: inset 0 0 0 2px rgba(120, 72, 24, .25), 0 2px 0 rgba(16, 43, 82, .15);
}
.basis-wahl { display: grid; grid-template-columns: 1fr; gap: 6px; width: 100%; padding: 6px; }
.basis {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  border: 2px dashed rgba(255, 255, 255, .75);
  border-radius: 10px;
  background: rgba(255, 255, 255, .22);
  font-weight: 700;
  font-size: 13px;
  color: #3A2410;
}
.basis svg { width: 40px; height: 40px; flex: none; }
.brett-bild { width: 78px; height: 78px; margin-bottom: 24px; }
.brett-bild svg { width: 100%; height: 100%; display: block; }
.brett-name {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 5px;
  padding: 2px 5px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .9);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}
.belag { grid-area: belag; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; align-content: center; }
.zutat:last-child { grid-column: span 2; }
.zutat {
  height: 40px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 6px;
  border: 1.5px solid #B9C2CD;
  border-radius: 9px;
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}
.zutat i { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.zutat-gyros i { background: #7A4A26; }
.zutat-zwiebeln i { background: transparent; box-shadow: inset 0 0 0 2.5px #9B4F96; }
.zutat-zaziki i { background: #F8F8F2; box-shadow: inset 0 0 0 1.5px #C9CCBE; }
.zutat-salami i { background: #B23A2E; }
.zutat-schinken i { background: #EBA0A0; border-radius: 2px; }
.zutat-champignons i { background: #D8C3A5; border-radius: 6px 6px 2px 2px; }
.zutat.drauf { background: var(--akti); border-color: var(--akti); color: #fff; }
.zutat.passt-nicht { opacity: .38; }
.zutat.alle:not(.passt-nicht) { border-style: dashed; color: var(--leise); }
.brett-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: 10px;
  border: 0;
  font-weight: 700;
  font-size: 14.5px;
}
.knopf-haupt { background: var(--akti); color: #fff; }
.knopf-haupt:disabled { background: #7E93B0; color: rgba(255, 255, 255, .85); }
.knopf-leise { background: #fff; border: 1.5px solid #B9C2CD; color: var(--nacht); }
.knopf-leise:disabled { color: #9AA5B3; }

/* ---------- Schicht-Fenster ---------- */
.schicht {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 43, 82, .88);
  overflow-y: auto;
}
.schicht-karte {
  width: 100%;
  max-width: 420px;
  padding: 26px 22px 20px;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}
.schicht-logo { width: 148px; height: 148px; display: block; margin: -4px auto 10px; }
.schicht-karte h1 {
  font-family: var(--slab);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.1;
  color: var(--nacht);
}
.schicht-satz { margin: 12px 0 18px; font-size: 16px; line-height: 1.45; color: var(--tinte); }
.knopf-gross { width: 100%; height: 54px; font-size: 17px; border-radius: 12px; }
.schicht-klein { margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: var(--leise); }
.schicht-klein a { color: var(--akti); font-weight: 700; }
.kein-umbruch { white-space: nowrap; }
.ende-rang { margin: 8px 0 14px; font-size: 16px; color: var(--leise); }
.ende-kasse {
  margin: 0 0 14px;
  font-family: var(--slab);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  color: var(--akti);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ende-kasse small { font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--gruen); }
.ende-bestes { margin: -6px 0 10px; font-size: 13.5px; font-weight: 600; color: var(--akti); }
.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 18px;
}
.ende-zahlen div { padding: 8px; border-radius: 10px; background: var(--wand); }
.ende-zahlen dt { font-size: 12.5px; color: var(--leise); }
.ende-zahlen dd { margin: 2px 0 0; font-family: var(--slab); font-weight: 800; font-size: 22px; color: var(--nacht); }

/* ---------- 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(--nacht);
    color: #fff;
    text-align: center;
  }
  .quer p { max-width: 26ch; margin: 0; font-family: var(--slab); font-weight: 700; font-size: 22px; line-height: 1.3; }
}

/* ---------- Hilfe für die erste Bestellung ---------- */
.hinweis {
  outline: 3px solid var(--gold);
  outline-offset: 1px;
  animation: hinweis-puls 1.1s ease-in-out infinite;
}
.basis.hinweis { background: rgba(255, 255, 255, .55); border-color: #fff; }
@keyframes hinweis-puls {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242, 179, 61, .65); }
  50% { box-shadow: 0 0 0 7px rgba(242, 179, 61, 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(--welle); } }
@keyframes blubbern { to { transform: translateY(-2px); } }
@keyframes winken { to { filter: brightness(1.1); } }
@keyframes qualmen { 50% { opacity: .55; filter: grayscale(.6); } }
@keyframes drehen { to { transform: translateX(-20px); } }
@keyframes schneiden { 50% { transform: translate(-6px, 10px) rotate(-12deg); } }

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

/* ---------- Kurze Handy-Bildschirme ---------- */
@media (max-width: 759px) and (max-height: 760px) {
  .uhr { font-size: 25px; }
  .leiste { padding-bottom: 5px; }
  .knopf-rund { width: 36px; height: 36px; }
  .funk { font-size: 12.5px; padding: 5px 10px; }
  .teller { height: 42px; padding: 2px 4px; font-size: 10.5px; line-height: 1.1; }
  .ablage { padding: 3px 10px 5px; gap: 2px; }
  .teller-bild { display: none; }
  .teller-name { text-align: center; }
  .ablage h2 { font-size: 11px; }
  .kueche { padding: 6px 10px; gap: 6px; }
  .station { padding: 5px; gap: 4px; }
  .station h2, .ablage h2 { font-size: 12px; }
  .korb, .ofenplatz { height: 47px; grid-template-columns: 30px minmax(0, 1fr); font-size: 11.5px; padding: 3px 6px 5px 4px; }
  .korb-bild, .ofen-bild { width: 30px; height: 30px; }
  .brett { padding-top: 6px; gap: 6px 10px; grid-template-columns: 104px minmax(0, 1fr); }
  .brett-holz { height: 112px; }
  .spiess-bild svg { width: 32px; height: 62px; }
  .brett-bild { width: 62px; height: 62px; margin-bottom: 26px; }
  .basis svg { width: 32px; height: 32px; }
  .zutat { height: 34px; font-size: 12px; }
  .knopf { height: 40px; font-size: 14px; }
}
@media (max-width: 759px) and (max-height: 600px) {
  .kunde-art { display: none; }
}

/* ---------- Größer ab Tablet und Desktop ---------- */
@media (min-width: 400px) {
  .marke span { display: inline; }
}
@media (min-width: 760px) {
  .spiel { border-left: 1px solid rgba(255, 255, 255, .08); border-right: 1px solid rgba(255, 255, 255, .08); }
  .leiste { padding: 10px 20px; }
  .marke img { width: 40px; height: 40px; }
  .marke span { font-size: 20px; }
  .uhr { font-size: 36px; }
  .kasse { font-size: 24px; margin-right: 10px; }
  .knopf-rund { width: 42px; height: 42px; }
  .plaetze { gap: 22px; padding: 14px 28px 26px; }
  .theke-welle { height: 30px; }
  .blase { min-height: 74px; padding: 8px 10px; font-size: 14px; border-radius: 14px; }
  .posten-bild { width: 26px; height: 26px; }
  .tafel { width: min(84%, 760px); grid-template-columns: repeat(4, 1fr); font-size: 13px; padding: 10px 18px 12px; }
  .tafel-titel { font-size: 15px; }
  .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; }
  .ablage { grid-template-columns: auto minmax(0, 1fr); padding: 8px 28px; gap: 16px; }
  .ablage 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: 38px; height: 38px; }
  .teller-name { text-align: left; }
  .kueche { gap: 14px; padding: 12px 28px; }
  .station { padding: 8px; gap: 7px; }
  .koerbe, .ofen-plaetze { grid-template-columns: 1fr 1fr; gap: 8px; }
  .korb, .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; }
  .korb-bild, .ofen-bild { grid-row: auto; width: 50px; height: 50px; }
  .uhrbalken { grid-column: 1; width: 100%; height: 5px; }
  .spiess { flex-direction: row; justify-content: center; gap: 10px; font-size: 14px; text-align: left; }
  .spiess-bild { flex: none; }
  .spiess-bild svg { width: 58px; height: 112px; }
  .brett { grid-template-columns: 200px minmax(0, 1fr); grid-template-areas: "holz belag" "holz aktion"; gap: 10px 16px; padding: 12px 28px 16px; }
  .brett-holz { height: 140px; }
  .brett-bild { width: 104px; height: 104px; }
  .basis-wahl { grid-template-columns: 1fr 1fr; padding: 10px; }
  .basis { flex-direction: column; gap: 4px; padding: 8px 4px; font-size: 14px; }
  .basis svg { width: 52px; height: 52px; }
  .brett-name { font-size: 13px; }
  .belag { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .zutat { height: 48px; flex-direction: column; justify-content: center; gap: 3px; font-size: 13.5px; }
  .brett-aktion { gap: 10px; }
  .knopf { height: 50px; font-size: 16px; }
  .schicht-karte { max-width: 460px; padding: 32px 32px 24px; }
}
@media (min-width: 960px) {
  .belag { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .zutat:last-child { grid-column: auto; }
}
@media (hover: hover) {
  .zutat:not(.passt-nicht):hover, .knopf-leise:not(:disabled):hover, .basis:hover { border-color: var(--akti); }
  .knopf-haupt:not(:disabled):hover { background: var(--nacht); }
}
