/* Drehplan für Max — Notion-Raster in den Style.md-Tokens. Siehe DESIGN.md.
   Weiße Fläche, eine mittige Spalte (720 px), obere Leiste, Hairlines statt Karten. */

:root {
  --grund: #ffffff;
  --leiste: rgba(255, 255, 255, .86);
  --fuellung: #f4f4f2;
  --fuellung-hover: #ececea;
  --tinte: #0a0a0a;
  --tinte-weich: #262626;
  --leise: #737373;
  --leise-buehne: #a3a3a3;
  --haarlinie: #e8e8e6;
  --haarlinie-leicht: #f1f1ef;
  --fehler: #e7000b;
  --regie: #8a4f08;          /* Anweisung auf hellem Grund */
  --regie-flaeche: #fff6e5;
  --regie-kante: #ffc53d;
  --regie-hell: #ffc53d;     /* Anweisung im Prompter, auf Schwarz */
  --radius-karte: 12px;
  --radius-knopf: 10px;
  --radius-nest: 8px;
  --kurve: cubic-bezier(.16, 1, .3, 1);
  --schrift: "Geist", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --spalte: 720px;
  --leiste-hoehe: 56px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--grund);
  color: var(--tinte);
  font-family: var(--schrift);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }

/* ---------- Bewegung ----------
   Inhalte sind ohne JS immer sichtbar (html.js schaltet die Reveals erst frei).
   Nur transform und opacity. Dauerläufer gibt es nicht. */
.js .reveal { opacity: 0; transform: translateY(10px); }
.js .reveal.sichtbar {
  opacity: 1; transform: none;
  transition: opacity .5s var(--kurve), transform .5s var(--kurve);
  transition-delay: calc(var(--i, 0) * 50ms);
}
.js .reveal--links { transform: translateX(-10px); }
.js .reveal--zoom { transform: scale(.97); }
.wort { display: inline-block; }
.js .wort { opacity: 0; transform: translateY(.35em); }
.js .wort.sichtbar { opacity: 1; transform: none; transition: opacity .45s var(--kurve), transform .5s var(--kurve); transition-delay: calc(var(--i, 0) * 45ms); }
@keyframes rein { from { opacity: 0; transform: translateY(6px); } }
@keyframes pop { 0% { transform: scale(.7); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@keyframes puls { 0% { box-shadow: 0 0 0 0 rgba(10, 10, 10, .3); } 100% { box-shadow: 0 0 0 12px rgba(10, 10, 10, 0); } }
@keyframes count { from { transform: scale(1.6); opacity: 0; } 20% { opacity: 1; } to { transform: scale(.9); opacity: 0; } }
.badge--neu { animation: pop .45s var(--kurve) both; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .wort { opacity: 1; transform: none; transition: none; }
  .karte, .badge--neu { animation: none !important; }
  * { transition-duration: 0s !important; scroll-behavior: auto !important; }
}

/* ---------- Leiste oben: Wortmarke links, Textlinks, Abmelden rechts ---------- */
.leiste {
  position: fixed; inset: 0 0 auto 0; z-index: 5;
  height: var(--leiste-hoehe);
  background: var(--leiste);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--haarlinie-leicht);
  display: flex; align-items: center; justify-content: center;
  padding: 0 20px;
}
.leiste__innen { width: 100%; max-width: var(--spalte); display: flex; align-items: center; gap: 4px; }
.leiste__marke { font-size: 15px; font-weight: 600; letter-spacing: -.01em; margin-right: 16px; text-decoration: none; white-space: nowrap; }
.leiste__marke span { color: var(--leise); font-weight: 400; }
.leiste__gruppe { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.leiste__punkt {
  height: 34px; padding: 0 10px; border-radius: var(--radius-nest); border: 0; background: transparent;
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--leise); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background .18s var(--kurve), color .18s var(--kurve);
}
.leiste__punkt svg { width: 17px; height: 17px; }
@media (hover: hover) { .leiste__punkt:hover { background: var(--fuellung); color: var(--tinte); } }
.leiste__punkt[aria-current="page"] { color: var(--tinte); background: var(--fuellung); }
.leiste__raus { margin-left: auto; }
.leiste__punkt:focus-visible, .knopf:focus-visible, .feld:focus-visible, .zeile:focus-visible, .pille:focus-visible, .prompter__knopf:focus-visible {
  outline: 2px solid var(--tinte); outline-offset: 2px;
}

/* ---------- Fläche: eine mittige Spalte ---------- */
.buehne {
  min-height: 100svh;
  padding: calc(var(--leiste-hoehe) + 56px) 24px 96px;
  display: flex; flex-direction: column; align-items: center;
}
.buehne__karten { width: 100%; max-width: var(--spalte); display: flex; flex-direction: column; gap: 64px; min-width: 0; }
.buehne__text { display: none; }
.buehne--anmeldung { padding-top: 24px; justify-content: center; }
.buehne--anmeldung .buehne__karten { max-width: 360px; }
.buehne--anmeldung .abschnitt { border-top: 0; padding-top: 4px; margin-top: 28px; }

/* ---------- Karte: kein Rahmen mehr, nur Abstand ---------- */
.karte { animation: rein .3s var(--kurve) both; min-width: 0; }
.karte h1 { font-size: 36px; line-height: 1.15; letter-spacing: -.025em; font-weight: 600; text-wrap: balance; }
.karte h1 b { font-weight: 600; }
.karte h1 + .lauf { margin-top: 12px; }
.karte h2 { font-size: 20px; line-height: 1.4; font-weight: 600; letter-spacing: -.015em; }
.buehne--anmeldung .karte h1 { font-size: 28px; }
.lauf { color: var(--leise); font-size: 16px; line-height: 1.55; max-width: 60ch; }
.lauf + .lauf, .lauf p + p { margin-top: 10px; }
.klein { color: var(--leise); font-size: 14px; }
.abschnitt { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--haarlinie); }
.abschnitt h2 { margin-bottom: 12px; }
.kopfzeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.kopfzeile h2 { margin-bottom: 0; }
.kopfzeile__rechts { display: flex; align-items: center; gap: 10px; }

/* ---------- Kennzahlen (Themenseite) ---------- */
.kennzahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.kennzahl { border: 1px solid var(--haarlinie); border-radius: var(--radius-karte); padding: 14px 16px; }
.kennzahl b { display: block; font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kennzahl span { font-size: 13px; color: var(--leise); }
.balken { height: 4px; border-radius: 2px; background: var(--fuellung); margin-top: 12px; overflow: hidden; }
.balken i { display: block; height: 100%; width: 0; background: var(--tinte); border-radius: 2px; transition: width 1s var(--kurve) .2s; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--radius-knopf); border: 0;
  background: var(--tinte); color: #fafafa; font-size: 14px; font-weight: 500;
  text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--kurve), background .2s var(--kurve), opacity .2s;
}
.knopf svg { width: 17px; height: 17px; }
@media (hover: hover) {
  .knopf:hover { background: var(--tinte-weich); }
  .knopf--leise:hover { background: var(--fuellung-hover); }
  .knopf--umriss:hover { background: var(--fuellung); }
  .knopf--fehler:hover { background: transparent; text-decoration: underline; }
  .knopf--eis:hover { background: var(--fuellung); color: var(--tinte); }
}
.knopf:active { transform: scale(.97); }
.knopf:disabled { opacity: .4; cursor: default; transform: none; }
.knopf--leise { background: var(--fuellung); color: var(--tinte); }
.knopf--umriss { background: transparent; border: 1px solid var(--haarlinie); color: var(--tinte); }
.knopf--klein { height: 32px; padding: 0 12px; font-size: 13px; }
.knopf--breit { width: 100%; height: 44px; font-size: 15px; }
.knopf--fehler { background: transparent; color: var(--fehler); padding: 0 8px; }
.knopf--eis { background: transparent; color: var(--leise); padding: 0 10px; height: 32px; font-size: 13px; }
.knopf--puls { animation: puls 1.2s var(--kurve) 1; }
.knopfreihe { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; align-items: center; }
.zurueck {
  display: inline-flex; align-items: center; gap: 4px; color: var(--leise); font-size: 14px;
  text-decoration: none; margin-bottom: 24px; margin-left: -8px; padding: 6px 10px 6px 6px; border-radius: var(--radius-nest);
  transition: color .18s, background .18s;
}
.zurueck svg { width: 17px; height: 17px; transition: transform .25s var(--kurve); }
@media (hover: hover) { .zurueck:hover { color: var(--tinte); background: var(--fuellung); } .zurueck:hover svg { transform: translateX(-3px); } }

/* ---------- Felder: weiß mit Haarlinie ---------- */
.feld {
  display: block; width: 100%; border: 1px solid var(--haarlinie); border-radius: var(--radius-knopf);
  background: #fff; padding: 10px 12px; font-size: 15px; line-height: 1.5;
  transition: border-color .18s, box-shadow .18s;
}
.feld::placeholder { color: #a3a3a3; }
.feld:focus { outline: 0; border-color: var(--tinte); box-shadow: 0 0 0 3px rgba(10, 10, 10, .06); }
textarea.feld { min-height: 140px; resize: vertical; }
textarea.feld--kurz { min-height: 88px; }
select.feld { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 40px; }
.feld--pin { font-size: 28px; letter-spacing: .3em; text-align: center; font-weight: 500; height: 60px; padding: 0 16px; font-variant-numeric: tabular-nums; }
.etikett { display: block; font-size: 13px; font-weight: 500; color: var(--leise); margin: 0 0 6px 2px; }
.formfeld + .formfeld { margin-top: 16px; }
.formzeile { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.formzeile + .formfeld, .formfeld + .formzeile, .formzeile + .formzeile { margin-top: 16px; }
.fehlermeldung { color: var(--fehler); font-size: 14px; margin-top: 12px; }
.hinweis { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-nest); background: var(--fuellung); color: var(--leise); font-size: 14px; }

/* ---------- Pillen (Filter, Badges) ---------- */
.pillen { display: flex; gap: 6px; flex-wrap: wrap; margin: 28px 0 8px; }
.pille {
  height: 32px; padding: 0 12px; border-radius: var(--radius-nest); border: 1px solid var(--haarlinie);
  background: #fff; color: var(--leise); font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .2s var(--kurve), color .2s var(--kurve), border-color .2s, transform .2s var(--kurve);
}
.pille .klein { font-size: 12px; }
@media (hover: hover) { .pille:hover { color: var(--tinte); background: var(--fuellung); } }
.pille:active { transform: scale(.96); }
.pille[aria-pressed="true"] { background: var(--tinte); border-color: var(--tinte); color: #fafafa; }
.pille[aria-pressed="true"] .klein { color: #a3a3a3; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px;
  border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap;
  border: 1px solid var(--haarlinie); color: var(--tinte); background: transparent;
}
.badge svg { width: 12px; height: 12px; stroke-width: 2.4; }
.badge--roh { background: var(--fuellung); border-color: transparent; }
.badge--schnitt { background: var(--tinte-weich); border-color: transparent; color: #fafafa; }
.badge--fertig { background: var(--tinte); border-color: transparent; color: #fafafa; }
.badge--online { background: var(--fuellung); border-color: transparent; }
.badge--rueck { background: var(--regie-flaeche); border-color: transparent; color: var(--regie); }

/* ---------- Themenliste: Zeilen, die beim Überfahren leicht getönt werden ---------- */
.liste { list-style: none; margin: 0; padding: 0; }
.zeile {
  display: grid; grid-template-columns: 1fr auto 18px; align-items: center; gap: 12px;
  width: 100%; padding: 14px 10px; margin: 0 -10px; width: calc(100% + 20px);
  border: 0; border-radius: var(--radius-nest);
  background: transparent; text-align: left; text-decoration: none; color: inherit;
  transition: background .18s var(--kurve);
}
.liste li + li .zeile { box-shadow: inset 0 1px 0 var(--haarlinie-leicht); }
.zeile svg { width: 18px; height: 18px; color: #a3a3a3; transition: transform .25s var(--kurve), color .25s; }
@media (hover: hover) {
  .zeile:hover { background: var(--fuellung); }
  .zeile:hover svg { transform: translateX(3px); color: var(--tinte); }
}
.zeile[aria-current="true"] { background: var(--fuellung); }
.zeile__titel { display: block; font-size: 16px; font-weight: 500; line-height: 1.35; letter-spacing: -.01em; }
.zeile__meta { display: block; color: var(--leise); font-size: 14px; margin-top: 2px; }
.zeile__meta b { font-weight: 500; color: var(--tinte); }
.zeile--leer { color: var(--leise); font-size: 16px; padding: 24px 0; }

/* ---------- Listen mit Haken ---------- */
.haken { list-style: none; margin: 0; padding: 0; }
.haken li + li { border-top: 1px solid var(--haarlinie-leicht); }
.haken label { display: flex; gap: 12px; align-items: center; padding: 11px 2px; font-size: 16px; cursor: pointer; }
.haken input { appearance: none; width: 20px; height: 20px; border-radius: 6px; border: 1px solid #c8c8c6; background: #fff; flex: none; display: grid; place-items: center; margin: 0; transition: background .2s var(--kurve), border-color .2s, transform .2s var(--kurve); }
.haken input::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fafafa; border-bottom: 2px solid #fafafa; transform: rotate(-45deg) translateY(-1px) scale(.5); opacity: 0; transition: opacity .15s, transform .25s var(--kurve); }
.haken input:checked { background: var(--tinte); border-color: var(--tinte); }
.haken input:active { transform: scale(.9); }
.haken input:checked::after { opacity: 1; transform: rotate(-45deg) translateY(-1px) scale(1); }
.haken input:checked + span { color: var(--leise); text-decoration: line-through; transition: color .3s; }
.haken--dicht label { padding: 8px 2px; font-size: 15px; }

/* ---------- Skript: groß, Absatz für Absatz zum Ablesen ---------- */
.skript { font-size: 19px; line-height: 1.55; letter-spacing: -.005em; color: var(--tinte); }
.skript p { padding: 14px 0; border-top: 1px solid var(--haarlinie-leicht); }
.skript p:first-child { border-top: 0; padding-top: 4px; }
.skript p:last-child { padding-bottom: 4px; }
.skript b { font-weight: 600; }
.skript p.regie {
  border-top: 0; margin: 14px 0; padding: 12px 16px;
  background: var(--regie-flaeche); color: var(--regie);
  border-left: 3px solid var(--regie-kante);
  border-radius: 0 var(--radius-nest) var(--radius-nest) 0;
  font-size: 16px; font-weight: 500; line-height: 1.45;
}
.skript p.regie + p { border-top: 0; padding-top: 0; }
.skript p:first-child.regie { margin-top: 0; }
.dauer-schild { display: inline-flex; align-items: center; gap: 5px; color: var(--leise); font-size: 13px; font-variant-numeric: tabular-nums; }
.dauer-schild svg { width: 15px; height: 15px; }

/* ---------- Links, Caption, Freigabe ---------- */
.linkzeile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.linkzeile__link {
  flex: 1 1 200px; min-width: 0; display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-knopf); border: 1px solid var(--haarlinie); background: #fff; text-decoration: none;
  transition: background .18s;
}
@media (hover: hover) { .linkzeile__link:hover { background: var(--fuellung); } }
.linkzeile__link svg { color: var(--leise); }
.linkzeile__link > span { display: flex; flex-direction: column; min-width: 0; }
.linkzeile__host { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkzeile__zeit { font-size: 13px; color: var(--leise); }
.linkzeile__knoepfe { display: flex; gap: 4px; align-items: center; }
.linkform { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.linkform .feld { flex: 1 1 220px; }
.linkform textarea.feld { flex-basis: 100%; }
.caption { margin-top: 12px; padding: 14px 16px; border-radius: var(--radius-knopf); background: var(--fuellung); font-size: 15px; line-height: 1.55; white-space: pre-line; }
.caption + .knopfreihe { margin-top: 10px; }
.rueck { margin-top: 14px; padding: 12px 16px; border-radius: 0 var(--radius-nest) var(--radius-nest) 0; background: var(--regie-flaeche); border-left: 3px solid var(--regie-kante); font-size: 15px; line-height: 1.5; }
.rueck small { display: block; color: var(--regie); font-size: 13px; margin-top: 4px; }
.fertig-kreis { width: 48px; height: 48px; border-radius: 50%; background: var(--tinte); color: #fafafa; display: grid; place-items: center; margin-bottom: 14px; animation: pop .5s var(--kurve) both; }
.fertig-kreis svg { width: 22px; height: 22px; stroke-width: 2.2; }

/* ---------- Wünsche ---------- */
.wunsch { padding: 12px 0; display: flex; gap: 12px; align-items: flex-start; }
.liste li + li .wunsch { border-top: 1px solid var(--haarlinie-leicht); }
.wunsch p { flex: 1; font-size: 16px; line-height: 1.45; }
.wunsch small { display: block; color: var(--leise); font-size: 13px; margin-top: 3px; }

/* ---------- Drehregeln ---------- */
.regeln { list-style: none; margin: 0; padding: 0; }
.regeln li { padding: 16px 0; border-top: 1px solid var(--haarlinie-leicht); }
.regeln li:first-child { border-top: 0; padding-top: 4px; }
.regeln h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; letter-spacing: -.01em; }
.regeln p { color: var(--leise); font-size: 15px; line-height: 1.5; }

/* ---------- Prompter (bleibt schwarz, das ist die Aufnahme) ---------- */
.prompter { position: fixed; inset: 0; z-index: 20; background: #000; color: #fff; display: flex; flex-direction: column; animation: rein .25s var(--kurve) both; --skala: 1; }
.prompter__kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #262626; flex-wrap: wrap; }
.prompter__kopf-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 160px; }
.prompter__titel { font-size: 14px; color: var(--leise-buehne); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prompter__hinweis { font-size: 12px; color: var(--regie-hell); }
.prompter__uhr { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; padding: 6px 12px; border-radius: 10px; background: #171717; transition: background .3s, color .3s; }
.prompter__uhr svg { width: 16px; height: 16px; color: var(--leise-buehne); }
.prompter__ziel { color: var(--leise-buehne); font-weight: 400; font-size: 14px; }
.prompter__uhr.laeuft { background: #fff; color: #000; }
.prompter__uhr.laeuft svg { color: #000; }
.prompter__uhr.ueber { background: var(--regie-hell); color: #000; }
.prompter__regler { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.prompter__knopf { width: 44px; height: 44px; border-radius: 10px; border: 0; background: #171717; color: #fff; display: grid; place-items: center; font-size: 20px; transition: background .18s, transform .18s var(--kurve); }
.prompter__knopf--text { font-size: 14px; font-weight: 500; }
.prompter__knopf[aria-pressed="true"] { background: #fff; color: #000; }
.prompter__knopf--start { background: #fff; color: #000; }
@media (hover: hover) { .prompter__knopf:hover { background: #262626; } .prompter__knopf--start:hover, .prompter__knopf[aria-pressed="true"]:hover { background: #e5e5e5; } }
.prompter__knopf:active { transform: scale(.92); }
.prompter__tempo { font-size: 13px; color: var(--leise-buehne); min-width: 40px; text-align: center; font-variant-numeric: tabular-nums; }
.prompter__lauf { flex: 1; overflow: auto; padding: 40vh 24px; scroll-behavior: auto; }
.prompter--spiegel .prompter__lauf { transform: scaleX(-1); }
.prompter__text { max-width: 720px; margin: 0 auto; font-size: calc(clamp(28px, 4.5vw, 44px) * var(--skala)); line-height: 1.35; font-weight: 500; letter-spacing: -.01em; white-space: pre-line; transition: font-size .25s var(--kurve); }
.prompter__text p + p { margin-top: 1em; }
.prompter__text p.regie { color: var(--regie-hell); font-size: .68em; font-weight: 600; }
.prompter__count { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .78); backdrop-filter: blur(4px); }
.prompter__count span { font-size: clamp(120px, 30vw, 260px); font-weight: 600; letter-spacing: -.06em; line-height: 1; animation: count 1s var(--kurve) both; }
.prompter__count span.los { color: var(--regie-hell); font-size: clamp(64px, 16vw, 140px); letter-spacing: -.04em; }

/* ---------- Admin: Formular und Liste untereinander in derselben Spalte ---------- */
.status-wahl { display: flex; gap: 12px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.status-wahl select { width: auto; }

/* ---------- Mobil: Leiste wird zur Zeile unten, Spalte volle Breite ---------- */
@media (max-width: 759px) {
  .buehne { padding: 32px 20px 100px; }
  .buehne--anmeldung { padding: 24px 20px; min-height: 100svh; }
  .buehne__karten { gap: 48px; }
  .leiste {
    inset: auto 0 0 0; height: auto; padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-bottom: 0; border-top: 1px solid var(--haarlinie);
  }
  .leiste__innen { gap: 0; }
  .leiste__marke { display: none; }
  .leiste__gruppe { justify-content: space-around; gap: 0; }
  .leiste__punkt { flex-direction: column; gap: 4px; height: auto; min-width: 60px; padding: 8px 6px; font-size: 11px; }
  .leiste__punkt svg { width: 20px; height: 20px; }
  .leiste__punkt[aria-current="page"] { background: transparent; }
  .leiste__raus { margin-left: 0; }
  .karte h1 { font-size: 28px; }
  .formzeile { grid-template-columns: 1fr; }
  .kennzahlen { gap: 8px; }
  .kennzahl { padding: 12px; }
  .kennzahl b { font-size: 24px; }
  .prompter__kopf { padding: 8px 10px; gap: 8px; }
  .prompter__kopf-text { flex-basis: 100%; }
  .prompter__uhr { order: 3; }
  .prompter__regler { order: 2; flex: 1; }
  .prompter__knopf { width: 40px; height: 40px; }
  .prompter__lauf { padding: 30vh 20px; }
}

/* ---------- Entwürfe (nur Christian): Zeile mit Freischalt-Knopf ---------- */
.zeile-mit-knopf { display: flex; align-items: center; gap: 8px; }
.zeile-mit-knopf .zeile { flex: 1; min-width: 0; width: calc(100% + 10px); margin: 0 0 0 -10px; }
.badge--entwurf { border-style: dashed; color: var(--leise); }
.gruppe { margin-top: 32px; }
.gruppe__kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.gruppe__kopf h2 { font-size: 16px; }

/* ---------- Entwürfe bei Max: unscharf, nicht klickbar ---------- */
.zeile--bald { cursor: default; }
@media (hover: hover) { .zeile--bald:hover { background: transparent; } }
.zeile__titel--blur { filter: blur(6px); color: var(--leise); user-select: none; -webkit-user-select: none; pointer-events: none; }
.zeile--bald .zeile__meta { color: #a3a3a3; }

/* ---------- Gesperrte Themen und Freischaltung ---------- */
.zeile--gesperrt { cursor: default; grid-template-columns: 1fr auto; }
@media (hover: hover) { .zeile--gesperrt:hover { background: transparent; } }
.zeile--gesperrt .zeile__meta { color: #a3a3a3; }
.badge--entwurf svg { width: 12px; height: 12px; }
.schloss__kopf { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.schloss__kopf h2 { font-size: 18px; }
.schloss__icon { width: 32px; height: 32px; border-radius: var(--radius-nest); background: var(--fuellung); display: grid; place-items: center; flex: none; }
.schloss__icon svg { width: 17px; height: 17px; }
.schloss .lauf + .lauf { margin-top: 8px; }

/* ---------- Drehtag ---------- */
.haken--wahl input:checked + span { text-decoration: none; color: inherit; }
.haken--wahl span b { display: block; font-weight: 500; }
.haken--wahl span small { color: var(--leise); font-size: 13px; }
.knopfreihe .klein { flex: 1 1 200px; }
.prompter__knopf--weiter { width: auto; padding: 0 16px; background: var(--regie-hell); color: #000; font-weight: 600; }
@media (hover: hover) { .prompter__knopf--weiter:hover { background: #ffd469; } }

/* ---------- Sprachnotiz ---------- */
.rec { display: flex; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.rec__knopf { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--tinte); color: #fafafa; display: grid; place-items: center; flex: none; transition: transform .2s var(--kurve), background .2s; }
.rec__knopf svg { width: 26px; height: 26px; }
@media (hover: hover) { .rec__knopf:hover { transform: scale(1.05); } }
.rec__knopf:active { transform: scale(.94); }
.rec__knopf--an { background: var(--fehler); animation: rec-puls 1.4s ease-out infinite; }
.rec__stop { width: 22px; height: 22px; border-radius: 5px; background: #fff; }
@keyframes rec-puls { 0% { box-shadow: 0 0 0 0 rgba(231, 0, 11, .45); } 100% { box-shadow: 0 0 0 18px rgba(231, 0, 11, 0); } }
.rec__zeit { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; min-width: 64px; }
.rec__pegel { display: flex; gap: 3px; align-items: center; height: 28px; }
.rec__pegel i { display: block; width: 4px; height: 100%; border-radius: 2px; background: var(--tinte); transform: scaleY(.15); transform-origin: center; transition: transform .08s linear; opacity: .75; }
.rec__text { color: var(--leise); flex: 1 1 200px; }
.rec audio { width: 100%; max-width: 440px; }
.rec__reihe { margin-top: 12px; width: 100%; }
.rec__haken { margin: 0; }
.ton audio { width: 100%; max-width: 360px; }
@media (prefers-reduced-motion: reduce) { .rec__knopf--an { animation: none; } }

/* ---------- Leiste: Hell/Dunkel ---------- */
.leiste__theme .nur-dunkel { display: none; }
[data-theme="dark"] .leiste__theme .nur-hell { display: none; }
[data-theme="dark"] .leiste__theme .nur-dunkel { display: block; }

/* ==========================================================================
   Dunkel: tiefes Schwarz mit Lichtkanten, weichem Glow und gestaffelten Schatten.
   Nur Tokens und die wenigen Stellen mit festen Farben werden überschrieben.
   ========================================================================== */
[data-theme="dark"] {
  color-scheme: dark;
  --grund: #0b0b0c;
  --leiste: rgba(11, 11, 12, .72);
  --fuellung: rgba(255, 255, 255, .055);
  --fuellung-hover: rgba(255, 255, 255, .09);
  --tinte: #f2f2f0;
  --tinte-weich: #ffffff;
  --leise: #9c9c99;
  --leise-buehne: #8a8a88;
  --haarlinie: rgba(255, 255, 255, .1);
  --haarlinie-leicht: rgba(255, 255, 255, .06);
  --regie: #ffc53d;
  --regie-flaeche: rgba(255, 197, 61, .08);
  --regie-kante: rgba(255, 197, 61, .75);
  --glas: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  --kante: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 0 0 1px rgba(255, 255, 255, .04);
  --tiefe: 0 24px 48px -28px rgba(0, 0, 0, .9), 0 8px 20px -12px rgba(0, 0, 0, .7);
  --glow: 0 0 0 1px rgba(255, 255, 255, .12), 0 10px 30px -10px rgba(255, 255, 255, .28);
}
[data-theme="dark"] body { background: var(--grund); }
[data-theme="dark"] body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 520px at 50% -140px, rgba(255, 255, 255, .10), transparent 65%),
    radial-gradient(700px 520px at 100% 105%, rgba(255, 197, 61, .06), transparent 60%),
    radial-gradient(520px 420px at -10% 80%, rgba(255, 255, 255, .035), transparent 60%);
}
[data-theme="dark"] .buehne { position: relative; z-index: 1; }
[data-theme="dark"] .leiste { border-bottom-color: var(--haarlinie-leicht); box-shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 12px 32px -20px rgba(0, 0, 0, .8); }
[data-theme="dark"] .karte h1 { text-shadow: 0 0 48px rgba(255, 255, 255, .18); }

[data-theme="dark"] .knopf { background: #f5f5f4; color: #0a0a0a; box-shadow: var(--glow); }
[data-theme="dark"] .knopf:hover { background: #ffffff; }
[data-theme="dark"] .knopf--leise { background: var(--glas); color: var(--tinte); box-shadow: var(--kante); }
[data-theme="dark"] .knopf--leise:hover { background: var(--fuellung-hover); }
[data-theme="dark"] .knopf--umriss { background: transparent; color: var(--tinte); box-shadow: none; }
[data-theme="dark"] .knopf--umriss:hover { background: var(--fuellung); }
[data-theme="dark"] .knopf--eis, [data-theme="dark"] .knopf--fehler { background: transparent; box-shadow: none; color: var(--leise); }
[data-theme="dark"] .knopf--fehler { color: #ff5a5f; }
[data-theme="dark"] .knopf--eis:hover { background: var(--fuellung); color: var(--tinte); }
[data-theme="dark"] .knopf--puls { animation-name: puls-dunkel; }
@keyframes puls-dunkel { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .45); } 100% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); } }

[data-theme="dark"] .feld { background-color: rgba(255, 255, 255, .04); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
[data-theme="dark"] .feld::placeholder { color: #6d6d6b; }
[data-theme="dark"] .feld:focus { border-color: rgba(255, 255, 255, .45); box-shadow: 0 0 0 3px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .06); background-color: rgba(255, 255, 255, .05); }
[data-theme="dark"] select.feld { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239c9c99' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }

[data-theme="dark"] .kennzahl { background: var(--glas); border-color: transparent; box-shadow: var(--kante), var(--tiefe); }
[data-theme="dark"] .balken { background: rgba(255, 255, 255, .07); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); }
[data-theme="dark"] .balken i { background: #f5f5f4; box-shadow: 0 0 12px rgba(255, 255, 255, .45); }

[data-theme="dark"] .pille { background: transparent; }
[data-theme="dark"] .pille:hover { background: var(--fuellung); }
[data-theme="dark"] .pille[aria-pressed="true"] { background: #f5f5f4; border-color: #f5f5f4; color: #0a0a0a; box-shadow: var(--glow); }
[data-theme="dark"] .pille[aria-pressed="true"] .klein { color: #6d6d6b; }
[data-theme="dark"] .badge--schnitt, [data-theme="dark"] .badge--fertig { background: #f5f5f4; color: #0a0a0a; box-shadow: 0 0 14px rgba(255, 255, 255, .2); }
[data-theme="dark"] .badge--roh, [data-theme="dark"] .badge--online { background: var(--glas); box-shadow: var(--kante); }

[data-theme="dark"] .zeile:hover, [data-theme="dark"] .zeile[aria-current="true"] { background: var(--glas); box-shadow: var(--kante); }
[data-theme="dark"] .zeile svg { color: #6d6d6b; }
[data-theme="dark"] .zeile__titel--blur { color: #7a7a78; }
[data-theme="dark"] .zeile--gesperrt .zeile__meta, [data-theme="dark"] .zeile--bald .zeile__meta { color: #6d6d6b; }

[data-theme="dark"] .haken input { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); }
[data-theme="dark"] .haken input::after { border-color: #0a0a0a; }
[data-theme="dark"] .haken input:checked { background: #f5f5f4; border-color: #f5f5f4; box-shadow: 0 0 12px rgba(255, 255, 255, .25); }

[data-theme="dark"] .skript p.regie { box-shadow: var(--kante); }
[data-theme="dark"] .caption, [data-theme="dark"] .hinweis, [data-theme="dark"] .rueck { background: var(--glas); box-shadow: var(--kante); }
[data-theme="dark"] .rueck { background: var(--regie-flaeche); }
[data-theme="dark"] .linkzeile__link { background: var(--glas); border-color: transparent; box-shadow: var(--kante), var(--tiefe); }
[data-theme="dark"] .linkzeile__link:hover { background: var(--fuellung-hover); }
[data-theme="dark"] .fertig-kreis { background: #f5f5f4; color: #0a0a0a; box-shadow: var(--glow); }
[data-theme="dark"] .schloss__icon { background: var(--glas); box-shadow: var(--kante); }
[data-theme="dark"] .schloss { background: var(--glas); border: 0; box-shadow: var(--kante), var(--tiefe); border-radius: var(--radius-karte); padding: 24px; }
[data-theme="dark"] .rec__knopf { background: #f5f5f4; color: #0a0a0a; box-shadow: var(--glow); }
[data-theme="dark"] .rec__knopf--an { background: #ff3b45; color: #fff; box-shadow: none; }
[data-theme="dark"] .rec__pegel i { background: #f5f5f4; box-shadow: 0 0 8px rgba(255, 255, 255, .35); }
[data-theme="dark"] .fehlermeldung { color: #ff5a5f; }
[data-theme="dark"] .leiste__punkt:focus-visible, [data-theme="dark"] .knopf:focus-visible, [data-theme="dark"] .feld:focus-visible, [data-theme="dark"] .zeile:focus-visible, [data-theme="dark"] .pille:focus-visible { outline-color: #f5f5f4; }

/* ---------- Handy: während der Aufnahme verschwindet die Leiste ----------
   Sie liegt dort als Überlagerung oben, das Springen beim Ein- und Ausblenden
   entfällt damit. Antippen pausiert und holt sie zurück (siehe prompterHalt). */
@media (max-width: 759px) {
  .prompter__kopf {
    position: absolute; inset: 0 0 auto 0; z-index: 2;
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom-color: rgba(255, 255, 255, .08);
    transition: transform .32s var(--kurve), opacity .22s ease;
  }
  .prompter--kopflos .prompter__kopf { transform: translateY(-100%); opacity: 0; pointer-events: none; }
}
