/* dega.stefan.pk – „Werkstatt trifft Konditorei“
   Handy zuerst (360–430 px), am Desktop eine mittige Spalte vor der Garagenwand.
   Animationen nur über transform/opacity. */

:root {
  --garage: #1d2024;
  --blech: #2b3036;
  --gelb: #ffc928;
  --rosa: #ff7aa8;
  --sahne: #fff3df;
  --kaffee: #6b3f26;
  --minze: #5fd3b3;
  --blau: #58a6ff;

  --tinte: #1d2024;
  --tinte-weich: #5e4b3d;
  --russ: #0b0c0e;
  --rot: #ff4d4d;
  --orange: #ff9a3c;
  --gruen: #4fd27a;
  --lila: #a66bff;
  --regenbogen: linear-gradient(90deg, #ff4d4d, #ff9a3c, #ffd23c, #4fd27a, #4aa3ff, #a66bff);

  --schrift-schild: "Bungee", "Arial Black", Impact, system-ui, sans-serif;
  --schrift-text: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --spalte: 560px;
  --rand: 16px;
  --oben: env(safe-area-inset-top, 0px);
  --unten: env(safe-area-inset-bottom, 0px);
  --links: env(safe-area-inset-left, 0px);
  --rechts: env(safe-area-inset-right, 0px);
  --schatten: 5px 6px 0 var(--russ);
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--garage);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--schrift-text);
  font-size: 17px;
  line-height: 1.5;
  color: var(--sahne);
  overflow-wrap: break-word;
  -webkit-tap-highlight-color: transparent;
  /* Garagenwand (nur am Desktop neben der Spalte sichtbar) */
  background-color: #15171a;
  background-image:
    radial-gradient(120% 45% at 50% -8%, rgba(255, 201, 40, .12), rgba(255, 201, 40, 0) 60%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 3px, rgba(0, 0, 0, 0) 3px 26px, rgba(0, 0, 0, .28) 26px 29px, rgba(0, 0, 0, 0) 29px 52px);
}

html.tor-zu, html.tor-zu body { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 .8em; }
strong { font-weight: 900; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; }

.sprung {
  position: absolute;
  z-index: 60;
  left: 12px;
  top: calc(8px + var(--oben));
  padding: 10px 16px;
  background: var(--gelb);
  color: #111;
  font-weight: 900;
  border-radius: 10px;
  transform: translateY(-200%);
}
.sprung:focus { transform: none; }

/* ---------- Spalte ---------- */
.seite {
  position: relative;
  max-width: var(--spalte);
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--garage);
  background-image:
    radial-gradient(70% 40% at 15% 30%, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0)),
    radial-gradient(60% 30% at 85% 65%, rgba(0, 0, 0, .22), rgba(0, 0, 0, 0));
}
@media (min-width: 600px) {
  .seite { box-shadow: 0 0 0 2px var(--russ), 0 30px 90px rgba(0, 0, 0, .65); }
}

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 20px;
  font-family: var(--schrift-text);
  font-weight: 900;
  font-size: 17px;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  color: #111;
  background: var(--gelb);
  border: 3px solid #111;
  border-radius: 14px;
  box-shadow: 0 5px 0 #111;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  transition: transform .08s ease;
}
.knopf:active { transform: translateY(4px); box-shadow: 0 1px 0 #111; }
.knopf:disabled { opacity: .65; cursor: progress; }
.knopf.gross {
  min-height: 60px;
  padding: 14px 30px;
  font-family: var(--schrift-schild);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: .02em;
}
.knopf.klein { min-height: 44px; padding: 8px 16px; font-size: 15.5px; }
.knopf.sahne { background: var(--sahne); }
.knopf.rosa { background: var(--rosa); }
.knopf.minze { background: var(--minze); }
.knopf.dunkel { background: var(--blech); color: var(--sahne); border-color: var(--russ); box-shadow: 0 5px 0 var(--russ); }
.knopf.dunkel:active { box-shadow: 0 1px 0 var(--russ); }

/* ================================================================
   1. ROLLTOR
   ================================================================ */
#tor {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  right: 0;
  top: 0;
  height: 100vh;
  height: 100dvh;
  background-color: #9ba4ac;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, .55) 0, rgba(0, 0, 0, 0) 8%, rgba(0, 0, 0, 0) 92%, rgba(0, 0, 0, .55) 100%),
    radial-gradient(140% 60% at 50% -8%, rgba(255, 206, 120, .5), rgba(255, 206, 120, 0) 62%),
    radial-gradient(22px 30px at 13% 84%, rgba(130, 64, 20, .38), rgba(130, 64, 20, 0)),
    radial-gradient(34px 14px at 88% 22%, rgba(130, 64, 20, .3), rgba(130, 64, 20, 0)),
    radial-gradient(12px 12px at 71% 61%, rgba(130, 64, 20, .3), rgba(130, 64, 20, 0)),
    radial-gradient(70% 28% at 50% 100%, rgba(0, 0, 0, .38), rgba(0, 0, 0, 0)),
    repeating-linear-gradient(180deg, #c4cbd2 0, #e7ebef 3px, #cdd4da 8px, #a4adb5 15px, #7f8890 20px, #555d65 22px, #c4cbd2 24px);
  touch-action: none;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  cursor: grab;
  transform: translate3d(0, 0, 0);
  transition: transform .6s cubic-bezier(.25, 1.45, .45, 1);
}
html.tor-zu #tor { display: block; }
#tor.zieht { transition: none; cursor: grabbing; }
#tor.oeffnet { transition: transform .9s cubic-bezier(.55, .06, .25, 1); }
#tor.schliesst { transition: transform 1s cubic-bezier(.45, 0, .3, 1.12); }
#tor:focus-visible { outline: 4px solid var(--blau); outline-offset: -10px; }

/* Verlängerung nach oben: beim Zurückfedern sieht man kein Loch */
#tor::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 140px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .55) 0, rgba(0, 0, 0, 0) 8%, rgba(0, 0, 0, 0) 92%, rgba(0, 0, 0, .55) 100%),
    repeating-linear-gradient(180deg, #c4cbd2 0, #e7ebef 3px, #cdd4da 8px, #a4adb5 15px, #7f8890 20px, #555d65 22px, #c4cbd2 24px);
}
/* Gummidichtung unten */
#tor::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  background: linear-gradient(180deg, #59616a, #1a1c1f 45%, var(--russ));
}
.tor-kante {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 40px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.tor-innen {
  position: relative;
  height: 100%;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(24px + var(--oben)) 20px calc(150px + var(--unten));
  text-align: center;
}
.tor-mitte { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.tor-schild {
  width: min(80vw, 400px);
  filter: drop-shadow(0 10px 0 rgba(0, 0, 0, .28));
  pointer-events: none;
}
.tor-schild-ersatz { display: none; }
.tor-schild.kaputt { display: none; }
.tor-schild.kaputt + .tor-schild-ersatz {
  display: inline-block;
  padding: .08em .45em 0;
  font-family: var(--schrift-schild);
  font-size: clamp(64px, 22vw, 120px);
  line-height: 1.1;
  color: #111;
  background: var(--gelb);
  border: 6px solid #111;
  border-radius: 20px;
  box-shadow: 0 10px 0 rgba(0, 0, 0, .28);
}
.tor-unterzeile {
  margin: 18px 0 0;
  padding: 7px 16px;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sahne);
  background: var(--garage);
  border-radius: 999px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .3);
}

.tor-unten {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: calc(34px + var(--unten));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  pointer-events: none;
}
.tor-hinweis {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 10px 20px 12px;
  font-weight: 900;
  font-size: 16px;
  color: #fff;
  background: rgba(17, 19, 22, .88);
  border-radius: 16px;
}
.tor-pfeile { position: relative; display: block; width: 22px; height: 26px; }
.tor-pfeile i {
  position: absolute;
  left: 3px;
  width: 15px;
  height: 15px;
  border-left: 4px solid var(--gelb);
  border-top: 4px solid var(--gelb);
  opacity: 0;
  transform: rotate(45deg);
  animation: pfeil 1.5s ease-out infinite;
}
.tor-pfeile i:nth-child(1) { top: 13px; }
.tor-pfeile i:nth-child(2) { top: 7px; animation-delay: .18s; }
.tor-pfeile i:nth-child(3) { top: 1px; animation-delay: .36s; }
@keyframes pfeil {
  0% { opacity: 0; transform: translateY(6px) rotate(45deg); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-6px) rotate(45deg); }
}
.tor-griff {
  position: relative;
  width: 150px;
  height: 26px;
  border-radius: 13px;
  background: linear-gradient(180deg, #f4f6f8, #b7bec5 45%, #6d757d);
  border: 3px solid #23272c;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .35);
}
.tor-griff i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #f1d27e, #a07a1f 70%);
  border: 2px solid #3b2f12;
}

/* Aufkleber auf dem Tor */
.tor-aufkleber { position: absolute; inset: 0; pointer-events: none; }
.aufkleber {
  position: absolute;
  max-width: min(44%, 200px);
  padding: 9px 12px;
  font-weight: 900;
  font-size: clamp(12.5px, 3.5vw, 15px);
  line-height: 1.15;
  color: #111;
  background: var(--rosa);
  border: 3px solid #fff;
  border-radius: 12px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .16), 3px 4px 0 rgba(0, 0, 0, .22);
  transform: rotate(var(--d, 0deg));
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
/* angelöste Ecke */
.aufkleber::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 16px;
  height: 16px;
  border-radius: 0 0 10px 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0) 50%, #e9e9e9 50%, #bdbdbd);
}
.aufkleber.a1 { top: calc(8% + var(--oben)); left: 5%; --d: -8deg; background: var(--rosa); }
.aufkleber.a2 {
  top: calc(6% + var(--oben));
  right: 5%;
  --d: 10deg;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 50%;
  background: var(--gelb);
}
.aufkleber.a2::after { display: none; }
.aufkleber.a3 { bottom: calc(25% + 44px); left: 5%; --d: 5deg; background: var(--blau); }
.aufkleber.a4 {
  bottom: calc(31% + 44px);
  right: 5%;
  --d: -6deg;
  background: #fff7d1;
  border: 6px solid transparent;
  border-image: repeating-linear-gradient(-45deg, var(--gelb) 0 8px, #111 8px 16px) 6;
}
.aufkleber.a4::after { display: none; }
.aufkleber.a5 { top: calc(20% + var(--oben)); left: 26%; --d: -3deg; background: var(--minze); }
@media (max-height: 680px) {
  .aufkleber.a5, .aufkleber.a3 { display: none; }
}
@media (max-height: 520px) {
  .aufkleber { display: none; }
  .tor-innen { padding-bottom: calc(110px + var(--unten)); }
  .tor-schild { width: min(50vw, 300px); }
}

/* ================================================================
   2. HELD
   ================================================================ */
.held {
  position: relative;
  padding: var(--oben) calc(var(--rand) + var(--rechts)) 36px calc(var(--rand) + var(--links));
  text-align: center;
  background-image: radial-gradient(100% 46% at 50% 0%, rgba(255, 201, 40, .17), rgba(255, 201, 40, 0) 70%);
}
.lichterkette { width: 100%; height: auto; margin: 0 auto 6px; }
/* Dauer-Animationen oben anhalten, sobald der Kopf aus dem Bild ist (Akku) */
.held-weg .held *, .held-weg .held *::before, .held-weg .held *::after { animation-play-state: paused !important; }
.lichterkette rect { fill: #3a3f45; }
.birnen > g:nth-child(5n+1) { --c: #ff4d4d; }
.birnen > g:nth-child(5n+2) { --c: #ffd23c; }
.birnen > g:nth-child(5n+3) { --c: #4fd27a; }
.birnen > g:nth-child(5n+4) { --c: #58a6ff; }
.birnen > g:nth-child(5n+5) { --c: #ff7aa8; }
.birnen path { fill: var(--c); stroke: rgba(0, 0, 0, .35); stroke-width: 1; }
.birnen .schein { fill: var(--c); opacity: .3; animation: birne 2.4s ease-in-out infinite; }
.birnen > g:nth-child(even) .schein { animation-delay: -1.2s; }
@keyframes birne { 0%, 100% { opacity: .12; } 50% { opacity: .55; } }

.vorzeile {
  display: inline-block;
  margin: 0;
  padding: 6px 14px;
  font-weight: 900;
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gelb);
  border: 2px dashed rgba(255, 201, 40, .6);
  border-radius: 999px;
}

.titel-buehne {
  position: relative;
  --zahl: clamp(118px, 40vw, 190px);
  --tw: clamp(64px, 20vw, 100px);
  margin: 14px 0 4px;
}
.held-titel { font-family: var(--schrift-schild); font-weight: 400; line-height: 1; color: var(--sahne); }
.titel-vorne {
  display: block;
  font-size: clamp(30px, 9.4vw, 46px);
  letter-spacing: .02em;
  text-shadow: 3px 4px 0 var(--russ);
}
.zahl-huelle {
  position: relative;
  display: inline-block;
  margin-top: 4px;
  font-size: var(--zahl);
  line-height: .95;
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}
.zahl, .zahl-schatten { display: block; padding: 0 .04em; }
.zahl-schatten {
  position: absolute;
  inset: 0;
  color: var(--russ);
  -webkit-text-stroke: .07em var(--russ);
  transform: translate(.045em, .055em);
}
.zahl { position: relative; color: #ffd23c; -webkit-text-stroke: .025em var(--russ); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .zahl {
    background: linear-gradient(172deg, #ff4d4d 10%, #ff9a3c 26%, #ffd23c 42%, #4fd27a 58%, #4aa3ff 74%, #a66bff 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
.zahl-huelle.hupf { animation: hupf .5s cubic-bezier(.3, 1.6, .5, 1); }

/* Tassen-Maskottchen lehnt an der 7 */
.tasse {
  position: absolute;
  z-index: 2;
  bottom: -6px;
  left: min(calc(50% + var(--zahl) * .6), calc(100% - var(--tw)));
  width: var(--tw);
  height: var(--tw);
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  transform: rotate(14deg);
  touch-action: manipulation;
}
.tasse img { width: 100%; height: 100%; pointer-events: none; animation: schaukeln 3.2s ease-in-out infinite; }
.tasse img.kaputt { display: none; }
.tasse-ersatz { display: none; }
.tasse img.kaputt + .tasse-ersatz { display: grid; place-items: center; width: 100%; height: 100%; font-size: calc(var(--tw) * .7); }
.tasse.stups img { animation: stups .45s cubic-bezier(.3, 1.6, .5, 1); }
.tasse-blase {
  position: absolute;
  right: 40%;
  bottom: 92%;
  padding: 6px 10px;
  font-family: var(--schrift-text);
  font-weight: 900;
  font-size: 14px;
  line-height: 1.1;
  white-space: nowrap;
  color: #111;
  background: #fff;
  border: 2px solid #111;
  border-radius: 12px 12px 2px 12px;
  transform: rotate(-14deg) scale(.4);
  transform-origin: 100% 100%;
  opacity: 0;
  pointer-events: none;
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), opacity .2s;
}
.tasse-blase.da { opacity: 1; transform: rotate(-14deg) scale(1); }
@keyframes schaukeln { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-4deg); } }
@keyframes stups { 0% { transform: scale(1); } 35% { transform: scale(.82, 1.12) rotate(-8deg); } 70% { transform: scale(1.08, .94) rotate(5deg); } 100% { transform: none; } }

.untertitel {
  max-width: 25em;
  margin: 18px auto 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: rgba(255, 243, 223, .92);
}

/* Countdown als Kilometerzähler */
.countdown {
  max-width: 24em;
  min-height: 2.2em;
  margin: 16px auto 0;
  font-weight: 800;
  font-size: 17px;
  line-height: 2.15;
  color: rgba(255, 243, 223, .92);
}
.zahl-gruppe {
  display: inline-flex;
  gap: 3px;
  margin: 0 3px;
  padding: 3px;
  vertical-align: middle;
  line-height: 1;
  background: var(--russ);
  border: 2px solid #474e56;
  border-radius: 9px;
}
.ziffer {
  position: relative;
  display: block;
  width: 24px;
  height: 32px;
  overflow: hidden;
  border-radius: 5px;
  background: linear-gradient(180deg, #333a41 0 49%, #1b1f24 51%);
  font-family: var(--schrift-schild);
  font-weight: 400;
  font-size: 20px;
  line-height: 32px;
  text-align: center;
  color: #fff;
}
.ziffer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, .55);
}
.ziffer-innen { display: block; }
.zahl-gruppe.s .ziffer { background: linear-gradient(180deg, #fff 0 49%, #e7e7e7 51%); color: #d62839; }
.countdown.bald, .countdown.laeuft { color: var(--gelb); font-size: 18px; line-height: 1.45; }
.countdown.vorbei { color: rgba(255, 243, 223, .8); line-height: 1.45; }
.live-punkt {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 8px;
  border-radius: 50%;
  background: #ff3b3b;
  box-shadow: 0 0 0 3px rgba(255, 59, 59, .3);
  vertical-align: 1px;
  animation: pulsieren 1.2s ease-in-out infinite;
}
@keyframes pulsieren { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.7); opacity: .55; } }

.dabei { margin-top: 22px; animation: anstupsen 6s ease-in-out 3s infinite; }
@keyframes anstupsen {
  0%, 86%, 100% { transform: none; }
  89% { transform: rotate(-4deg) scale(1.05); }
  92% { transform: rotate(4deg) scale(1.05); }
  95% { transform: rotate(-2deg); }
}
.dabei:active { animation: none; }

/* Torte */
.torte-huelle { max-width: 340px; margin: 26px auto 0; }
.torte { width: 100%; height: auto; cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.torte .zahlkerze {
  font-family: var(--schrift-schild);
  font-size: 62px;
  stroke: #1d2024;
  stroke-width: 3.5px;
  stroke-linejoin: round;
  paint-order: stroke;
}
.kerze { outline: none; }
.kerze:focus-visible .glut { opacity: 1; stroke: var(--blau); stroke-width: 3; }
.flamme { pointer-events: none; }
.feuer {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: transform .22s ease-in, opacity .22s;
  animation: flackern 1.1s ease-in-out infinite;
}
.kerze:nth-of-type(even) .feuer { animation-duration: 1.35s; animation-delay: -.4s; }
.glut { transition: opacity .3s; animation: gluehen 1.7s ease-in-out infinite; }
.kerze.aus .feuer { animation: none; transform: scale(.15, 0); opacity: 0; }
.kerze.aus .glut { animation: none; opacity: 0; }
.kerze.wackelt .feuer { animation: wackeln .55s ease-in-out; }
.kerze.zuenden .feuer { animation: zuenden .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes flackern {
  0%, 100% { transform: none; }
  25% { transform: scale(.93, 1.06) skewX(2deg); }
  50% { transform: scale(1.05, .95) skewX(-2deg); }
  75% { transform: scale(.97, 1.04) skewX(1deg); }
}
@keyframes gluehen { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
@keyframes wackeln {
  0%, 100% { transform: none; }
  30% { transform: skewX(-18deg) scale(.85, 1); }
  60% { transform: skewX(10deg); }
}
@keyframes zuenden { 0% { transform: scale(0); opacity: 0; } 60% { transform: scale(1.25); opacity: 1; } 100% { transform: none; } }
.rauch circle { fill: #c9ced4; opacity: 0; transform-box: fill-box; transform-origin: center; animation: rauch 1.5s ease-out forwards; }
.rauch circle:nth-child(2) { animation-delay: .12s; --x: -7px; }
.rauch circle:nth-child(3) { animation-delay: .24s; --x: 4px; }
@keyframes rauch {
  0% { opacity: .75; transform: translate(0, 0) scale(.6); }
  100% { opacity: 0; transform: translate(var(--x, 6px), -40px) scale(2.3); }
}

.kerzen-unten { margin-top: 6px; }
.kerzen-hinweis { margin: 0; font-size: 14.5px; font-weight: 700; color: rgba(255, 243, 223, .7); }
.kerzen-spruch {
  display: inline-block;
  max-width: 100%;
  margin: 4px 0 14px;
  padding: 10px 16px;
  font-weight: 900;
  font-size: 16.5px;
  color: var(--tinte);
  background: var(--sahne);
  border: 3px solid #111;
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--russ);
  animation: blase .45s cubic-bezier(.3, 1.6, .5, 1);
}
.kerzen-spruch:empty { display: none; }
@keyframes blase { 0% { transform: scale(.3); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes hupf { 0% { transform: none; } 30% { transform: translateY(-10px) scale(1.06, .95); } 60% { transform: translateY(2px) scale(.97, 1.03); } 100% { transform: none; } }

/* ================================================================
   Abschnitte allgemein
   ================================================================ */
.abschnitt {
  position: relative;
  padding: 52px calc(var(--rand) + var(--rechts)) 20px calc(var(--rand) + var(--links));
  scroll-margin-top: calc(8px + var(--oben));
}
.titel {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin: 0 0 20px;
  padding: 12px 24px 10px;
  font-family: var(--schrift-schild);
  font-weight: 400;
  font-size: clamp(23px, 7vw, 32px);
  line-height: 1.1;
  color: #16181b;
  background: var(--schild, var(--gelb));
  border: 3px solid #111;
  border-radius: 8px;
  box-shadow: 4px 5px 0 var(--russ);
  transform: rotate(-1.6deg);
  hyphens: auto;
  -webkit-hyphens: auto;
}
.titel::before, .titel::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #9aa1a8 45%, #4b5157);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35);
}
.titel::before { left: 8px; }
.titel::after { right: 8px; }
#kuchen { --schild: var(--rosa); }
#kuchen .titel, #zusage .titel, #pinnwand .titel { transform: rotate(1.4deg); }
#programm { --schild: var(--minze); }
#spiel { --schild: var(--blau); }
#pinnwand { --schild: var(--rosa); }
#faq { --schild: var(--minze); }

.intro { max-width: 34em; margin: 0 0 20px; color: rgba(255, 243, 223, .88); }
.unter-titel { font-family: var(--schrift-schild); font-weight: 400; font-size: 20px; line-height: 1.15; margin-bottom: 12px; }
.karte {
  background: var(--sahne);
  color: var(--tinte);
  border: 3px solid #111;
  border-radius: 20px;
  box-shadow: var(--schatten);
}

/* Einblenden (nur wenn app.js läuft) */
.bereit .einblenden {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .3, 1);
}
.bereit .einblenden.sichtbar { opacity: 1; transform: none; }

/* Absperrband */
.absperrband { position: relative; overflow: hidden; padding: 20px 0; }
.band {
  width: 116%;
  margin-left: -8%;
  overflow: hidden;
  transform: rotate(-2.5deg);
  background: var(--gelb);
  border-top: 3px solid #111;
  border-bottom: 3px solid #111;
  box-shadow: 0 5px 0 rgba(0, 0, 0, .35);
}
.absperrband.andersrum .band { transform: rotate(2deg); background: var(--rosa); }
.band span {
  display: block;
  padding: 7px 0 5px;
  font-family: var(--schrift-schild);
  font-size: 15px;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #111;
  background:
    repeating-linear-gradient(-45deg, #111 0 6px, rgba(0, 0, 0, 0) 6px 12px) top left / 100% 4px no-repeat,
    repeating-linear-gradient(-45deg, #111 0 6px, rgba(0, 0, 0, 0) 6px 12px) bottom left / 100% 4px no-repeat;
}

/* ================================================================
   3. ECKDATEN
   ================================================================ */
.eckdaten-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.eck {
  position: relative;
  padding: 14px 12px 12px;
  background: var(--sahne);
  color: var(--tinte);
  border: 3px solid #111;
  border-radius: 16px;
  box-shadow: 4px 5px 0 var(--russ);
  transform: rotate(-.6deg);
}
.eck:nth-child(even) { transform: rotate(.8deg); }
.eck:nth-child(6n+1) { --akzent: var(--gelb); }
.eck:nth-child(6n+2) { --akzent: var(--rosa); }
.eck:nth-child(6n+3) { --akzent: var(--minze); }
.eck:nth-child(6n+4) { --akzent: var(--blau); }
.eck:nth-child(6n+5) { --akzent: var(--orange); }
.eck:nth-child(6n+6) { --akzent: #c9a7ff; }
.eck:last-child:nth-child(odd) { grid-column: 1 / -1; }
.eck-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  font-size: 25px;
  line-height: 1;
  background: var(--akzent, var(--gelb));
  border: 2px solid #111;
  border-radius: 12px;
}
.eck-titel { margin: 0; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: #8a6a52; }
.eck-wert { margin: 2px 0 6px; font-weight: 900; font-size: 17px; line-height: 1.2; hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word; }
.eck-klein { margin: 0; font-size: 13.5px; line-height: 1.35; color: var(--tinte-weich); hyphens: auto; -webkit-hyphens: auto; }

/* ================================================================
   4. KUCHEN
   ================================================================ */
.kuchen-liste { display: grid; gap: 30px; }
.kuchen-karte {
  overflow: hidden;
  background: var(--sahne);
  color: var(--tinte);
  border: 3px solid #111;
  border-radius: 22px;
  box-shadow: var(--schatten);
}
.kuchen-foto {
  position: relative;
  aspect-ratio: 5 / 4;
  background: linear-gradient(135deg, #ffd9e6, #fff3df 55%, #d7f5ec);
  border-bottom: 3px solid #111;
}
.kuchen-foto::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9px;
  background: var(--band, var(--regenbogen));
}
.kuchen-karte:nth-child(2) { --band: repeating-linear-gradient(90deg, #f2b33d 0 16px, #6b3f26 16px 32px); }
.kuchen-foto img { width: 100%; height: 100%; object-fit: cover; }
.kuchen-foto img.kaputt { display: none; }
.foto-ersatz { display: none; }
.kuchen-foto img.kaputt + .foto-ersatz { display: grid; place-items: center; height: 100%; font-size: 90px; }
.stempel {
  position: absolute;
  top: 14px;
  right: 12px;
  max-width: 62%;
  padding: 5px 12px 6px;
  text-align: center;
  color: #d6264f;
  background: rgba(255, 255, 255, .82);
  border: 3px solid currentColor;
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .9), inset 0 0 0 4px currentColor;
  transform: rotate(-11deg);
}
.stempel b { display: block; font-family: var(--schrift-schild); font-weight: 400; font-size: 18px; line-height: 1.1; letter-spacing: .04em; text-transform: uppercase; }
.stempel small { display: block; font-weight: 900; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.kuchen-inhalt { padding: 16px 16px 18px; }
.sorte { margin: 0 0 4px; font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: #8a6a52; }
.kuchen-name { font-family: var(--schrift-schild); font-weight: 400; font-size: 23px; line-height: 1.12; margin-bottom: 8px; hyphens: auto; -webkit-hyphens: auto; }
.kuchen-beschreibung { margin-bottom: 14px; }

/* Nährwerttabelle (Packungs-Parodie) */
.naehrwert { padding: 8px 10px 6px; background: #fff; border: 2px solid #111; font-size: 14.5px; line-height: 1.3; }
.nw-kopf { font-family: var(--schrift-schild); font-weight: 400; font-size: 21px; line-height: 1; padding-bottom: 6px; border-bottom: 9px solid #111; }
.nw-unter { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: 12px; font-weight: 800; border-bottom: 3px solid #111; }
.naehrwert dl { margin: 0; }
.nw-zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; border-bottom: 1px solid #111; }
.nw-zeile:last-child { border-bottom: 5px solid #111; }
.nw-zeile dt { flex: 0 1 auto; min-width: 0; font-weight: 900; }
.nw-zeile dd { flex: 0 1 auto; min-width: 0; margin: 0; text-align: right; font-weight: 600; }
.nw-zeile.einrueck dt { padding-left: 14px; font-weight: 700; }
.nw-fuss { margin: 0; padding-top: 5px; font-size: 11.5px; color: #555; }

.warnung {
  position: relative;
  margin: 14px 0 0;
  padding: 12px 12px 12px 48px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.4;
  background: #fff7d1;
  border: 7px solid transparent;
  border-image: repeating-linear-gradient(-45deg, var(--gelb) 0 10px, #111 10px 20px) 7;
}
/* Warndreieck aus CSS (kein Emoji, sieht überall gleich aus) */
.warnung::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 12px;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 25px solid #111;
}
.warnung::after {
  content: "!";
  position: absolute;
  left: 10px;
  top: 21px;
  width: 28px;
  font-family: var(--schrift-schild);
  font-size: 14px;
  line-height: 1;
  text-align: center;
  color: var(--gelb);
}
.fussnote { margin: 22px 0 0; font-size: 14px; font-style: italic; color: rgba(255, 243, 223, .7); }

/* ================================================================
   5. PROGRAMM (Zollstock-Zeitleiste)
   ================================================================ */
.zeitleiste { position: relative; list-style: none; margin: 0; padding: 4px 0 0; }
.zeitleiste::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0;
  bottom: 0;
  width: 18px;
  border: 2px solid #111;
  border-radius: 3px;
  background:
    radial-gradient(circle at 50% 50%, #8d959d 0 3px, #3b4046 3.5px, rgba(0, 0, 0, 0) 4.5px) center 80px / 100% 160px repeat-y,
    repeating-linear-gradient(180deg, #111 0 2px, rgba(0, 0, 0, 0) 2px 40px) left top / 11px 100% no-repeat,
    repeating-linear-gradient(180deg, #111 0 1.5px, rgba(0, 0, 0, 0) 1.5px 8px) left top / 6px 100% no-repeat,
    var(--gelb);
}
.punkt {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 7px 0 7px 32px;
}
.punkt::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 25px;
  width: 14px;
  height: 3px;
  background: #111;
}
.punkt-zeit {
  position: relative;
  justify-self: stretch;
  padding: 8px 4px 6px;
  font-family: var(--schrift-schild);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.1;
  text-align: center;
  color: var(--gelb);
  background: var(--blech);
  border: 2px solid #111;
  border-radius: 9px;
}
.punkt-text {
  margin: 0;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--tinte);
  background: var(--sahne);
  border: 2px solid #111;
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--russ);
}
.punkt.vorbei { opacity: .55; }
.punkt.jetzt .punkt-text { background: var(--gelb); }
.punkt.jetzt .punkt-zeit { color: #111; background: var(--gelb); }
.punkt.jetzt .punkt-zeit::after {
  content: "Jetzt";
  position: absolute;
  left: 50%;
  top: -11px;
  padding: 2px 7px;
  font-family: var(--schrift-text);
  font-weight: 900;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: #e5243b;
  border-radius: 999px;
  transform: translateX(-50%);
}

/* ================================================================
   6. HAUSORDNUNG (laminierter Aushang)
   ================================================================ */
.aushang {
  position: relative;
  margin: 10px 2px 0;
  padding: 34px 18px 26px;
  color: var(--tinte);
  background: #fdfbf6;
  border-radius: 12px;
  box-shadow: 4px 6px 0 rgba(0, 0, 0, .55);
  transform: rotate(-.5deg);
}
/* Laminierfolie: Rand + Glanz */
.aushang::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0) 0 22%, rgba(255, 255, 255, .7) 27%, rgba(255, 255, 255, 0) 34% 61%, rgba(255, 255, 255, .4) 64%, rgba(255, 255, 255, 0) 68%);
  box-shadow: inset 0 0 0 7px rgba(225, 238, 245, .65), inset 0 0 0 8px rgba(0, 0, 0, .1);
}
.klebe {
  position: absolute;
  z-index: 1;
  top: -12px;
  width: 86px;
  height: 26px;
  background: rgba(255, 238, 170, .78);
  border-left: 2px dotted rgba(0, 0, 0, .12);
  border-right: 2px dotted rgba(0, 0, 0, .12);
}
.klebe.links { left: 10px; transform: rotate(-9deg); }
.klebe.rechts { right: 10px; transform: rotate(7deg); }
.aushang-kopf { margin: 0 0 4px; font-size: 12px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; color: #c0263f; }
.aushang-titel {
  font-family: var(--schrift-schild);
  font-weight: 400;
  font-size: clamp(22px, 6.6vw, 30px);
  line-height: 1.1;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 3px double #111;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.aushang-intro { font-style: italic; font-weight: 600; color: var(--tinte-weich); }
.paragraphen { list-style: none; margin: 0; padding: 0; }
.paragraph { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-top: 1px dashed #c8b9a3; }
.paragraph:first-child { border-top: 0; }
.para-nr {
  align-self: start;
  padding: 5px 2px 3px;
  font-family: var(--schrift-schild);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.1;
  text-align: center;
  color: var(--sahne);
  background: var(--garage);
  border-radius: 7px;
}
.para-titel { display: block; font-weight: 900; font-size: 16px; }
.para-text { margin: 2px 0 0; font-size: 15.5px; line-height: 1.45; }
.aushang-mehr {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 8px 0 0;
  padding: 10px;
  font-weight: 900;
  font-size: 15.5px;
  color: var(--tinte);
  background: rgba(0, 0, 0, .05);
  border: 2px dashed #b9a487;
  border-radius: 12px;
  touch-action: manipulation;
}
.aushang-stempel {
  position: relative;
  z-index: 0;
  width: max-content;
  max-width: 100%;
  margin: 18px 4px 0 auto;
  padding: 6px 14px 5px;
  font-family: var(--schrift-schild);
  font-size: 19px;
  line-height: 1.05;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(28, 92, 196, .82);
  border: 3px solid currentColor;
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px #fdfbf6, inset 0 0 0 4px currentColor;
  transform: rotate(-9deg);
}
.aushang-stempel small { display: block; font-family: var(--schrift-text); font-weight: 900; font-size: 10px; letter-spacing: .12em; }

/* ================================================================
   7. ZUSAGE
   ================================================================ */
.formular-karte { padding: 20px 14px 22px; }
.noscript { font-weight: 800; }
.feld { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.feld > label, .feld > legend { display: block; padding: 0; margin-bottom: 8px; font-weight: 900; font-size: 16.5px; }
input[type="text"], textarea {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  font-size: 18px;
  line-height: 1.35;
  color: var(--tinte);
  background: #fff;
  border: 3px solid #111;
  border-radius: 12px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
input[type="text"]::placeholder, textarea::placeholder { color: #9d8b7b; }
input[type="text"]:focus, textarea:focus { border-color: #1a5fd0; box-shadow: 0 0 0 4px rgba(88, 166, 255, .45); }
textarea { min-height: 100px; resize: vertical; }
.zeichen { margin-top: 4px; text-align: right; font-size: 13px; font-weight: 800; color: #8a6a52; font-variant-numeric: tabular-nums; }
.zeichen.knapp { color: #d6264f; }

/* Status: drei große Knöpfe */
.status-knoepfe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.wahl { position: relative; display: block; min-width: 0; }
.wahl input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }
.wahl > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 94px;
  padding: 10px 2px 8px;
  font-weight: 900;
  font-size: 13.5px;
  line-height: 1.12;
  text-align: center;
  color: var(--tinte);
  background: #fff;
  border: 3px solid #111;
  border-radius: 16px;
  box-shadow: 0 4px 0 #111;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .1s ease;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.wahl .emoji { font-size: 34px; line-height: 1; }
.wahl input:checked + span { transform: translateY(3px); box-shadow: 0 1px 0 #111; background: var(--wahl, var(--gelb)); }
.wahl input:checked + span .emoji { animation: hupf .45s cubic-bezier(.3, 1.6, .5, 1); }
.wahl input:focus-visible + span { outline: 3px solid #1a5fd0; outline-offset: 3px; }
.wahl.s-ja { --wahl: var(--minze); }
.wahl.s-vielleicht { --wahl: var(--gelb); }
.wahl.s-nein { --wahl: var(--rosa); }

/* Stücke-Chips */
.stuecke-chips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.chip > span {
  display: grid;
  place-items: center;
  min-height: 50px;
  padding: 0 2px;
  font-family: var(--schrift-schild);
  font-weight: 400;
  font-size: 18px;
  color: var(--tinte);
  background: #fff;
  border: 3px solid #111;
  border-radius: 12px;
  box-shadow: 0 3px 0 #111;
}
.chip input:checked + span { background: var(--rosa); transform: translateY(2px); box-shadow: 0 1px 0 #111; }
.stuecke-text {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  margin: 10px 0 0;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
  background: #fff;
  border: 2px dashed #b9a487;
  border-radius: 12px;
}
.stuecke-text.leer { color: #8a6a52; font-weight: 700; }
.stapel { display: flex; flex: none; }
.stapel img, .stapel .stueck-emoji { width: 24px; height: 24px; margin-left: -8px; }
.stapel img:first-child, .stapel .stueck-emoji:first-child { margin-left: 0; }
.stueck-emoji { display: inline-grid; place-items: center; font-size: 19px; line-height: 1; }
.stapel-plus { margin-left: 2px; font-weight: 900; }

/* Honigtopf: für Menschen unsichtbar */
.honig { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; }

.formular-fehler {
  margin: 0 0 14px;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 15px;
  color: #7a0e22;
  background: #ffe1e8;
  border: 2px solid #d6264f;
  border-radius: 12px;
}
.senden { width: 100%; }
.senden.laedt span { opacity: .6; }

/* Antwort als Bon */
.ergebnis {
  padding: 18px 14px 20px;
  text-align: center;
  background: #fff;
  border: 2px dashed #c9b394;
  border-radius: 12px;
  outline: none;
}
.bon-kopf { margin: 0 0 6px; font-size: 11.5px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; color: #8a6a52; }
.ergebnis-emoji { font-size: 66px; line-height: 1.1; }
.ergebnis.frisch .ergebnis-emoji { animation: hupf .6s cubic-bezier(.3, 1.6, .5, 1); }
.ergebnis-text { margin: 8px 0 6px; font-weight: 900; font-size: 18px; line-height: 1.35; }
.ergebnis-zusammenfassung { margin: 0 0 16px; font-size: 14.5px; font-weight: 700; color: var(--tinte-weich); overflow-wrap: anywhere; }

/* Ausreden-Würfel */
.ausreden {
  margin-top: 20px;
  padding: 18px 16px 20px;
  background: var(--blech);
  border: 3px dashed var(--rosa);
  border-radius: 20px;
}
.wuerfel-zeile { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.wuerfel {
  flex: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: 64px;
  height: 64px;
  padding: 8px;
  background: #fff;
  border: 3px solid #111;
  border-radius: 14px;
  box-shadow: 0 4px 0 #111;
}
.wuerfel i { width: 11px; height: 11px; margin: auto; border-radius: 50%; background: #111; opacity: 0; }
.wuerfel[data-wert="1"] i:nth-child(5),
.wuerfel[data-wert="2"] i:nth-child(3), .wuerfel[data-wert="2"] i:nth-child(7),
.wuerfel[data-wert="3"] i:nth-child(3), .wuerfel[data-wert="3"] i:nth-child(5), .wuerfel[data-wert="3"] i:nth-child(7),
.wuerfel[data-wert="4"] i:nth-child(1), .wuerfel[data-wert="4"] i:nth-child(3), .wuerfel[data-wert="4"] i:nth-child(7), .wuerfel[data-wert="4"] i:nth-child(9),
.wuerfel[data-wert="5"] i:nth-child(1), .wuerfel[data-wert="5"] i:nth-child(3), .wuerfel[data-wert="5"] i:nth-child(5), .wuerfel[data-wert="5"] i:nth-child(7), .wuerfel[data-wert="5"] i:nth-child(9),
.wuerfel[data-wert="6"] i:nth-child(1), .wuerfel[data-wert="6"] i:nth-child(3), .wuerfel[data-wert="6"] i:nth-child(4), .wuerfel[data-wert="6"] i:nth-child(6), .wuerfel[data-wert="6"] i:nth-child(7), .wuerfel[data-wert="6"] i:nth-child(9) { opacity: 1; }
.wuerfel[data-wert="1"] i:nth-child(5) { background: #e5243b; width: 14px; height: 14px; }
.wuerfel.rollt { animation: rollen .8s cubic-bezier(.2, .7, .3, 1); }
@keyframes rollen {
  0% { transform: none; }
  30% { transform: translateY(-28px) rotate(220deg) scale(1.1); }
  58% { transform: translateY(0) rotate(420deg); }
  74% { transform: translateY(-9px) rotate(470deg); }
  100% { transform: rotate(720deg); }
}
.ausrede {
  position: relative;
  margin: 18px 0 12px;
  padding: 14px 16px 14px 40px;
  font-weight: 800;
  font-size: 17px;
  line-height: 1.4;
  color: var(--tinte);
  background: var(--sahne);
  border: 3px solid #111;
  border-radius: 16px;
  overflow-wrap: anywhere;
  animation: blase .4s cubic-bezier(.3, 1.6, .5, 1);
}
.ausrede::before {
  content: "„";
  position: absolute;
  left: 10px;
  top: -4px;
  font-family: var(--schrift-schild);
  font-size: 44px;
  line-height: 1;
  color: var(--rosa);
}

/* Kuchen-Lage (Tacho + Ampel) */
.kuchenlage { margin-top: 26px; padding: 18px 16px 18px; text-align: center; }
.tacho-huelle { max-width: 270px; margin: 0 auto; }
.tacho { width: 100%; height: auto; overflow: visible; }
.tacho .zeiger {
  transform-box: view-box;
  transform-origin: 110px 112px;
  transform: rotate(-90deg);
  transition: transform 1.2s cubic-bezier(.3, 1.45, .5, 1);
}
.tacho .skala { font-family: var(--schrift-schild); font-size: 12px; fill: var(--tinte); }
.lage-zahlen { margin: 8px 0 10px; font-weight: 800; font-size: 16px; }
.lage-zahlen b { font-family: var(--schrift-schild); font-weight: 400; font-size: 26px; vertical-align: -2px; }
.lage-text {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 10px 12px;
  text-align: left;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.35;
  background: #fff;
  border: 2px solid #111;
  border-radius: 14px;
}
.ampel { display: flex; flex-direction: column; flex: none; gap: 3px; padding: 4px; background: #111; border-radius: 9px; }
.ampel i { width: 12px; height: 12px; border-radius: 50%; background: #3a3f45; }
.lage-text.kritisch .ampel i:nth-child(1) { background: #ff3b3b; box-shadow: 0 0 6px #ff3b3b; }
.lage-text.knapp .ampel i:nth-child(2) { background: var(--gelb); box-shadow: 0 0 6px var(--gelb); }
.lage-text.gut .ampel i:nth-child(3) { background: var(--gruen); box-shadow: 0 0 6px var(--gruen); }
.lage-text.gut { background: #e3f8ee; }
.lage-text.knapp { background: #fff4cc; }
.lage-text.kritisch { background: #ffe1e6; }

/* Gästeliste */
.gaeste { margin-top: 30px; }
.gaeste-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 4px; }
.gaeste-kopf .unter-titel { margin: 0; }
.zaehlwerk { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.zaehlwerk span {
  padding: 3px 10px;
  font-weight: 900;
  font-size: 14px;
  background: var(--blech);
  border: 2px solid var(--russ);
  border-radius: 999px;
  white-space: nowrap;
}
.hinweis-offline {
  margin: 10px 0 0;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 15px;
  color: var(--sahne);
  background: rgba(255, 122, 168, .12);
  border: 2px dashed var(--rosa);
  border-radius: 12px;
}
.gaeste-liste { display: grid; gap: 8px; list-style: none; margin: 12px 0 0; padding: 0; }
.gast-laden, .gast-leer {
  padding: 14px;
  font-weight: 700;
  text-align: center;
  color: rgba(255, 243, 223, .75);
  border: 2px dashed #4a5058;
  border-radius: 14px;
}
.gast {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 7px 12px 7px 8px;
  color: var(--tinte);
  background: var(--sahne);
  border: 2px solid #111;
  border-radius: 14px;
}
.gast.nein { background: #ece2d2; }
.gast.ich { box-shadow: 0 0 0 3px var(--blau); }
.gast.neu { animation: blase .5s cubic-bezier(.3, 1.6, .5, 1); }
.initialen {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-weight: 900;
  font-size: 16px;
  color: #111;
  background: var(--farbe, var(--gelb));
  border: 2px solid #111;
  border-radius: 50%;
}
.gast-mitte { min-width: 0; }
.gast-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 900; }
.gast-du { font-weight: 800; color: #1a5fd0; }
.gast-zeit { display: block; font-size: 12.5px; color: #8a6a52; }
.gast-rechts { display: flex; align-items: center; gap: 8px; }
.gast-status { font-size: 22px; line-height: 1; }
.gast-stuecke { display: flex; align-items: center; }
.gast-stuecke img, .gast-stuecke .stueck-emoji { width: 18px; height: 18px; margin-left: -6px; font-size: 14px; }
.gast-stuecke > :first-child { margin-left: 0; }
.mehr-knopf { width: 100%; margin-top: 12px; }

/* ================================================================
   8. SPIEL
   ================================================================ */
.spiel-feld { position: relative; width: 100%; min-width: 0; }
.spiel-fehlt {
  padding: 26px 18px;
  text-align: center;
  font-weight: 800;
  background: var(--blech);
  border: 3px dashed #59616a;
  border-radius: 20px;
}
.spiel-fehlt span { display: block; font-size: 44px; margin-bottom: 6px; }
.bestenliste { margin-top: 24px; padding: 18px 12px 12px; }
.bestenliste .unter-titel { padding: 0 4px; }
.platz-liste { list-style: none; margin: 0; padding: 0; }
.platz {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 6px 8px;
  border-bottom: 2px dashed #dcc9ae;
}
.platz:last-child { border-bottom: 0; }
.platz.leer { display: block; padding: 12px 8px; font-weight: 700; text-align: center; color: var(--tinte-weich); }
.platz-nr { font-family: var(--schrift-schild); font-size: 15px; text-align: center; color: #8a6a52; }
.platz-nr.medaille { font-family: inherit; font-size: 27px; line-height: 1; }
.platz-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 900; }
.platz-punkte { font-family: var(--schrift-schild); font-size: 16px; font-variant-numeric: tabular-nums; }
.platz.p1 { background: linear-gradient(90deg, rgba(255, 201, 40, .45), rgba(255, 201, 40, 0)); border-radius: 10px; }
.platz.ich .platz-name { color: #1a5fd0; }

/* ================================================================
   9. PINNWAND (Lochwand)
   ================================================================ */
.lochwand {
  position: relative;
  padding: 24px 14px 10px;
  background-color: #b98d5d;
  background-image:
    url("grafik/werkzeug.svg"),
    radial-gradient(circle, #3b2a1a 0 2.6px, rgba(59, 42, 26, 0) 3.2px);
  background-size: 240px 240px, 22px 22px;
  background-position: center top, 11px 11px;
  border: 3px solid #111;
  border-radius: 18px;
  box-shadow: inset 0 0 0 6px rgba(0, 0, 0, .12), var(--schatten);
}
.zettel-liste { list-style: none; margin: 0; padding: 0; columns: 2 136px; column-gap: 14px; }
.zettel {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
  padding: 22px 12px 12px;
  color: #1d2024;
  background: var(--z, #fff27a);
  border-radius: 2px 2px 12px 2px;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, .32);
  transform: rotate(var(--dreh, 0deg));
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
.zettel.f0 { --z: #fff27a; }
.zettel.f1 { --z: #ffb3cd; }
.zettel.f2 { --z: #a8f0d8; }
.zettel.f3 { --z: #b7d8ff; }
.zettel.f4 { --z: #ffd6a3; }
.zettel.pin::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 15px;
  height: 15px;
  margin-left: -7.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff9a9a, #d81f3a 55%, #7e0d1f);
  box-shadow: 1px 3px 0 rgba(0, 0, 0, .3);
}
.zettel.f2.pin::before, .zettel.f4.pin::before { background: radial-gradient(circle at 35% 30%, #9cc8ff, #1f6fd8 55%, #0d3a7e); }
.zettel.tesa::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -9px;
  width: 64px;
  height: 22px;
  margin-left: -32px;
  background: rgba(255, 255, 255, .55);
  border-left: 2px dotted rgba(0, 0, 0, .1);
  border-right: 2px dotted rgba(0, 0, 0, .1);
  transform: rotate(-4deg);
}
.zettel-text { margin: 0; font-weight: 700; font-size: 15px; line-height: 1.38; white-space: pre-line; overflow-wrap: anywhere; }
.zettel-name { margin: 8px 0 0; font-weight: 900; font-size: 14px; text-align: right; overflow-wrap: anywhere; }
.zettel.leer { display: block; column-span: all; padding-top: 26px; font-weight: 800; text-align: center; background: rgba(255, 243, 223, .92); }

/* ================================================================
   10. FAQ
   ================================================================ */
.faq-liste { display: grid; gap: 10px; }
.faq {
  color: var(--tinte);
  background: var(--sahne);
  border: 3px solid #111;
  border-radius: 14px;
  box-shadow: 3px 4px 0 var(--russ);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 10px 12px 10px 14px;
  font-weight: 900;
  font-size: 16.5px;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
  touch-action: manipulation;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary > span { min-width: 0; }
.plus {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  background: var(--gelb);
  border: 2px solid #111;
  border-radius: 50%;
  transition: transform .25s ease;
}
.plus::before, .plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 3px;
  margin: -1.5px 0 0 -6px;
  background: #111;
  border-radius: 2px;
}
.plus::after { transform: rotate(90deg); }
.faq[open] .plus { transform: rotate(135deg); }
.faq-antwort { padding: 0 14px 14px; font-size: 15.5px; line-height: 1.5; }
.faq-antwort p { margin: 0; }

/* ================================================================
   11. FUSS
   ================================================================ */
.fuss {
  padding: 46px calc(var(--rand) + var(--rechts)) calc(40px + var(--unten)) calc(var(--rand) + var(--links));
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .4));
}
.fuss-garage { max-width: 420px; margin: 0 auto; touch-action: manipulation; }
.fuss-garage img { width: 100%; }
.fuss-garage img.kaputt { display: none; }
.fuss-knoepfe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0 12px; }
.fuss-knoepfe .knopf { padding: 10px 10px; font-size: 15.5px; min-height: 56px; }
.google-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font-weight: 700;
  font-size: 14.5px;
  color: rgba(255, 243, 223, .75);
}
.kleingedrucktes { max-width: 30em; margin: 18px auto 0; padding-top: 16px; border-top: 2px dashed #3a4047; }
.kleingedrucktes p { margin: 0 0 6px; font-size: 13px; line-height: 1.45; color: rgba(255, 243, 223, .6); }

/* ================================================================
   Schwebender Zusage-Knopf, Toasts, Konfetti
   ================================================================ */
.schnell-zusage {
  position: fixed;
  z-index: 40;
  right: max(calc(14px + var(--rechts)), calc(50% - var(--spalte) / 2 + 14px));
  bottom: calc(16px + var(--unten));
  min-height: 52px;
  padding: 10px 18px;
  visibility: hidden;
  transform: translateY(160%);
  transition: transform .3s cubic-bezier(.3, 1.3, .5, 1), visibility 0s linear .3s;
}
.schnell-zusage.da { visibility: visible; transform: none; transition: transform .3s cubic-bezier(.3, 1.3, .5, 1), visibility 0s; }
.schnell-zusage.da:active { transform: translateY(4px); }

.toasts {
  position: fixed;
  z-index: 110;
  left: 0;
  right: 0;
  top: calc(12px + var(--oben));
  display: flex;
  justify-content: center;
  padding: 0 calc(16px + var(--rechts)) 0 calc(16px + var(--links));
  pointer-events: none;
}
.toast {
  max-width: 420px;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 15.5px;
  line-height: 1.35;
  text-align: center;
  color: var(--sahne);
  background: #111;
  border: 2px solid var(--gelb);
  border-radius: 14px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .4);
  opacity: 0;
  transform: translateY(-24px) scale(.96);
  transition: opacity .3s ease, transform .35s cubic-bezier(.3, 1.4, .5, 1);
}
.toast.da { opacity: 1; transform: none; }

.konfetti { position: fixed; z-index: 120; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Easter Egg: Koffein-Modus ---------- */
.koffein .titel, .koffein .zahl-huelle, .koffein .dabei, .koffein .vorzeile { animation: zittern .12s linear infinite; }
.koffein .tasse img { animation: drehen .6s linear infinite; }
@keyframes zittern {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(1.5px, -1px) rotate(.5deg); }
  50% { transform: translate(-1.5px, 1px); }
  75% { transform: translate(1px, 1.5px) rotate(-.5deg); }
}
@keyframes drehen { to { transform: rotate(360deg); } }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
  }
  .bereit .einblenden { opacity: 1; transform: none; }
}

/* ---------- etwas mehr Luft auf größeren Handys/Desktop ---------- */
@media (min-width: 420px) {
  :root { --rand: 20px; }
  .formular-karte { padding: 22px 18px 24px; }
}
@media (hover: hover) and (pointer: fine) {
  .knopf:hover { filter: brightness(1.06); }
  .faq summary:hover .plus { transform: rotate(90deg); }
  .faq[open] summary:hover .plus { transform: rotate(135deg); }
}

/* Schmale Handys (bis 400 px): Vorzeile und Countdown passen in eine Zeile */
@media (max-width: 400px) {
  .vorzeile { font-size: 10.5px; letter-spacing: .03em; padding: 6px 10px; }
  .countdown { font-size: 15px; }
  .zahl-gruppe { margin: 0 2px; gap: 2px; padding: 2px; }
  .ziffer { width: 20px; height: 28px; line-height: 28px; font-size: 17px; }
}
