/* Kellergang Kino – dunkler Samt, Messinglicht, Kinokarten. */

@font-face {
  font-family: 'Kellerschrift';
  src: url('/schrift.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

:root {
  --saal: #1c1422;
  --saal-tief: #150f1a;
  --samt: #271c2e;
  --vorhang: #3a2944;
  --messing: #e9b44c;
  --messing-hell: #f4cd7c;
  --leinwand: #f3ebe1;
  --staub: #a99bb0;
  --rot: #ff8a7a;
  --gruen: #7fd1ae;
  --anzeige: 'Kellerschrift', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --text: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --rand: clamp(16px, 4vw, 48px);
  --kopf: 64px;
}

* { box-sizing: border-box; }
html { background: var(--saal); color: var(--leinwand); font: 16px/1.5 var(--text); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--saal); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--messing); outline-offset: 2px; }
[hidden] { display: none !important; }

h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.05; }
.anzeige { font-family: var(--anzeige); font-weight: 800; letter-spacing: .01em; }
.leise { color: var(--staub); }
.klein { font-size: .85rem; }

/* ── Knöpfe ── */
.knopf {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  min-height: 44px; padding: 0 1.2em; border-radius: 999px; border: 1px solid transparent;
  background: var(--messing); color: #2a1a0a; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .1s;
}
.knopf:hover { background: var(--messing-hell); }
.knopf:active { transform: translateY(1px); }
.knopf svg { width: 18px; height: 18px; flex: none; }
.knopf.zweit { background: rgba(243, 235, 225, .08); color: var(--leinwand); border-color: rgba(243, 235, 225, .18); }
.knopf.zweit:hover { background: rgba(243, 235, 225, .15); }
.knopf.still { background: none; color: var(--staub); padding: 0 .8em; }
.knopf.still:hover { color: var(--leinwand); background: rgba(243, 235, 225, .06); }
.knopf.gefahr { background: none; color: var(--rot); border-color: rgba(255, 138, 122, .35); }
.knopf.gefahr:hover { background: rgba(255, 138, 122, .1); }
.knopf.klein { min-height: 34px; padding: 0 .9em; font-size: .88rem; }
.knopf:disabled { opacity: .5; cursor: default; }

.feld { display: grid; gap: 6px; }
.feld > span { font-size: .88rem; color: var(--staub); }
.eingabe {
  width: 100%; min-height: 44px; padding: 0 14px; border-radius: 10px;
  background: var(--saal-tief); border: 1px solid var(--vorhang); color: var(--leinwand);
}
.eingabe:focus { border-color: var(--messing); outline: none; }
.schalter { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.schalter input { width: 18px; height: 18px; accent-color: var(--messing); }

/* ── Kopf ── */
.kopf {
  position: sticky; top: 0; z-index: 20; height: var(--kopf);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--rand);
  background: linear-gradient(rgba(28, 20, 34, .8), rgba(28, 20, 34, 0));
  transition: background .2s;
}
.kopf.fest { background: rgba(28, 20, 34, .96); box-shadow: 0 1px 0 var(--vorhang); }
.marke { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.marke img { width: 30px; height: 30px; }
.marke span { font-family: var(--anzeige); font-weight: 800; font-size: 1.55rem; letter-spacing: .02em; line-height: 1; }
.navi { display: flex; gap: 4px; }
.navi a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--staub); font-weight: 550; }
.navi a:hover { color: var(--leinwand); }
.navi a[aria-current='page'] { color: var(--leinwand); background: rgba(243, 235, 225, .07); }
.kopf .rechts { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.suche { position: relative; }
.suche input { width: min(240px, 36vw); min-height: 38px; padding-left: 36px; border-radius: 999px; background: rgba(21, 15, 26, .7); }
.suche svg { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; color: var(--staub); pointer-events: none; }
.ich-knopf {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--vorhang);
  background: var(--samt); cursor: pointer; font-weight: 700; text-transform: uppercase;
}
.menue {
  position: absolute; right: var(--rand); top: calc(var(--kopf) - 6px); min-width: 200px;
  background: var(--samt); border: 1px solid var(--vorhang); border-radius: 12px; padding: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.menue a, .menue button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; border: 0; background: none; text-decoration: none; cursor: pointer; }
.menue a:hover, .menue button:hover { background: rgba(243, 235, 225, .07); }
.menue .wer { padding: 8px 12px 10px; border-bottom: 1px solid var(--vorhang); margin-bottom: 6px; color: var(--staub); font-size: .88rem; }
.upload-mini { font-size: .85rem; color: var(--messing); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.upload-mini svg { width: 16px; height: 16px; }

main { padding: 0 var(--rand) 80px; }

/* ── Leinwand (Hero) ── */
.leinwand {
  position: relative; margin: calc(var(--kopf) * -1) calc(var(--rand) * -1) 0;
  min-height: min(78vh, 680px); display: flex; align-items: flex-end;
  padding: calc(var(--kopf) + 40px) var(--rand) 56px; overflow: hidden; isolation: isolate;
}
.leinwand .standbild {
  position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 30%;
  animation: aufblenden 1.6s ease-out both;
}
.leinwand::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(28, 20, 34, .92) 0%, rgba(28, 20, 34, .55) 45%, rgba(28, 20, 34, 0) 75%),
    linear-gradient(0deg, var(--saal) 0%, rgba(28, 20, 34, 0) 45%);
}
@keyframes aufblenden { from { opacity: 0; filter: brightness(2.2) saturate(.3); } to { opacity: 1; filter: none; } }
.leinwand .inhalt { max-width: 640px; }
.leinwand .zusatz { color: var(--messing); font-weight: 600; margin-bottom: 10px; }
.leinwand h1 { font-family: var(--anzeige); font-size: clamp(3rem, 8vw, 6rem); letter-spacing: .005em; text-wrap: balance; }
.leinwand .meta { margin: 14px 0 26px; color: var(--staub); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.leinwand .aktionen { display: flex; flex-wrap: wrap; gap: 12px; }
.leinwand .meta { align-items: center; }
.leinwand.kurz { min-height: min(56vh, 520px); padding-bottom: 40px; }
.leinwand.kurz h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
/* Klarlogo aus Kodi statt gesetztem Titel – es ist die Schrift des Films selbst */
.logo-titel img { display: block; width: auto; height: auto; max-width: min(520px, 82vw); max-height: clamp(84px, 13vw, 170px); object-fit: contain; object-position: left bottom; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .55)); }
.handlung { margin: -10px 0 26px; max-width: 58ch; color: rgba(243, 235, 225, .86); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fsk { display: inline-block; padding: 1px 7px; border: 1.5px solid currentColor; border-radius: 5px; font-size: .8rem; font-weight: 700; line-height: 1.5; }

/* ── Reihen ── */
.reihe { margin-top: 44px; }
.reihe > header { display: flex; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.reihe h2 { font-family: var(--anzeige); font-size: 1.9rem; letter-spacing: .01em; }
.band {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 23vw, 320px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin: 0 calc(var(--rand) * -1); padding-inline: var(--rand);
  scroll-padding-inline: var(--rand); scrollbar-width: thin; scrollbar-color: var(--vorhang) transparent;
}
.band > * { scroll-snap-align: start; }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 44vw), 1fr)); gap: 24px 16px; }
.raster.plakate { grid-template-columns: repeat(auto-fill, minmax(min(168px, 42vw), 1fr)); gap: 26px 18px; }
.band.plakate { grid-auto-columns: clamp(136px, 14vw, 196px); }

/* Hochformat. Wo kein Poster da ist, setzt das Kino eins: Standbild oben, der Titel groß darunter */
.karte .bild.hoch { aspect-ratio: 2 / 3; border-radius: 6px; }
.ersatzplakat { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 14px 16px; background: var(--samt); overflow: hidden; }
.ersatzbild { position: absolute; inset: 0 0 38%; background: var(--vorhang) center / cover no-repeat; }
.ersatzbild::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(39, 28, 46, 0) 35%, var(--samt)); }
.ersatztitel { position: relative; font-family: var(--anzeige); font-size: clamp(1.5rem, 2.2vw, 2.1rem); line-height: .98; color: var(--leinwand); overflow-wrap: break-word; hyphens: auto; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ersatztitel.lang { font-size: clamp(1.15rem, 1.6vw, 1.5rem); }
.ersatzjahr { position: relative; margin-top: 8px; color: var(--messing); font-weight: 650; font-size: .85rem; }

.karte { display: block; text-decoration: none; cursor: pointer; background: none; border: 0; padding: 0; text-align: left; min-width: 0; }
.karte .bild {
  position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden;
  background: var(--samt) center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(243, 235, 225, .06);
}
.karte:hover .bild, .karte:focus-visible .bild { box-shadow: inset 0 0 0 2px var(--messing); }
.karte .platzhalter {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--anzeige); font-size: 4rem; color: rgba(243, 235, 225, .12);
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(0, 0, 0, .25) 18px 26px) top / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(0, 0, 0, .25) 18px 26px) bottom / 100% 10px no-repeat,
    var(--samt);
}
.karte .balken { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0, 0, 0, .5); }
.karte .balken::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: var(--messing); }
.karte .zustand {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; text-align: center;
  background: rgba(21, 15, 26, .72); font-size: .9rem; color: var(--leinwand); padding: 12px;
}
.karte .zustand.fehler { color: var(--rot); }
.karte .titel { margin-top: 10px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.karte .meta { font-size: .85rem; color: var(--staub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Leere Zustände ── */
.leer { max-width: 520px; margin: 12vh auto 0; text-align: center; }
.leer h1 { font-family: var(--anzeige); font-size: clamp(2.6rem, 7vw, 4.2rem); margin-bottom: 14px; }
.leer p { color: var(--staub); margin: 0 0 28px; }

/* ── Seiten mit Inhalt ── */
.seite { max-width: 980px; margin: 24px auto 0; }
.seite.breit { max-width: 1180px; margin-left: 0; }
.seite > h1 { font-family: var(--anzeige); font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: 8px; }
.seite > .unterzeile { color: var(--staub); margin: 0 0 32px; max-width: 64ch; }
.block { background: var(--samt); border: 1px solid var(--vorhang); border-radius: 16px; padding: clamp(18px, 3vw, 28px); margin-bottom: 24px; }
.block > h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.block > p { color: var(--staub); margin: 0 0 18px; max-width: 70ch; }
code, .code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .9em; background: var(--saal-tief); padding: 2px 6px; border-radius: 6px; }

/* ── Hochladen ── */
.ablage {
  display: grid; place-items: center; text-align: center; gap: 10px; padding: 48px 20px;
  border: 2px dashed var(--vorhang); border-radius: 18px; cursor: pointer; transition: border-color .15s, background .15s;
}
.ablage:hover, .ablage.drueber { border-color: var(--messing); background: rgba(233, 180, 76, .05); }
.ablage svg { width: 42px; height: 42px; color: var(--messing); }
.ablage strong { font-size: 1.2rem; }
.liste { display: grid; gap: 10px; margin-top: 18px; }
.liste:empty { display: none; }
.zeile {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center;
  padding: 14px 16px; background: var(--saal-tief); border-radius: 12px;
}
.zeile .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeile .info { grid-column: 1; font-size: .85rem; color: var(--staub); }
.zeile .tasten { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 6px; }
.fortschritt { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--vorhang); overflow: hidden; }
.fortschritt > i { display: block; height: 100%; width: var(--p, 0%); background: var(--messing); transition: width .4s; }
.zeile.fertig .fortschritt > i { background: var(--gruen); }
.zeile.fehler .info { color: var(--rot); }
.schluessel { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.schluessel code { padding: 10px 14px; font-size: 1rem; word-break: break-all; border: 1px solid var(--messing); }
.schritte { margin: 0; padding-left: 1.3em; display: grid; gap: 12px; color: var(--leinwand); }
.schritte li::marker { color: var(--messing); font-weight: 700; }

/* ── Dialog ── */
dialog {
  width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--vorhang);
  border-radius: 18px; background: var(--samt); color: var(--leinwand); box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
dialog::backdrop { background: rgba(10, 6, 14, .72); backdrop-filter: blur(3px); }
dialog[open] { animation: aufgehen .18s ease-out; }
@keyframes aufgehen { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.dialog-bild { aspect-ratio: 21 / 9; background: var(--saal-tief) center 30% / cover; position: relative; }
.dialog-bild::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--samt), rgba(39, 28, 46, 0) 60%); }
.dialog-inhalt { padding: 0 clamp(18px, 4vw, 32px) 28px; margin-top: -40px; position: relative; }
.dialog-inhalt h2 { font-family: var(--anzeige); font-size: clamp(2rem, 5vw, 3rem); }
.dialog-inhalt h2.logo-titel img { max-height: clamp(70px, 11vw, 120px); max-width: min(420px, 70vw); }
.dialog-inhalt .motto { margin: 6px 0 0; color: var(--messing); font-weight: 600; }
.dialog-inhalt .meta { align-items: center; }
.handlung.lang { margin: 0 0 22px; -webkit-line-clamp: unset; display: block; max-width: 68ch; }

/* Besetzung: runde Fotos aus dem .actors-Ordner, sonst Initialen */
.besetzung { display: grid; grid-auto-flow: column; grid-auto-columns: 92px; gap: 14px; overflow-x: auto; padding: 2px 2px 12px; margin: 0 0 18px; scrollbar-width: thin; scrollbar-color: var(--vorhang) transparent; }
.person { display: grid; justify-items: center; align-content: start; text-align: center; gap: 2px; font-size: .8rem; line-height: 1.25; }
.person img, .person .initialen { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: center 20%; margin-bottom: 6px; background: var(--vorhang); }
.person .initialen { display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; color: var(--staub); }
.person b { font-weight: 650; }
.person span:not(.initialen) { color: var(--staub); }
.fakten a { color: var(--messing); }
.dialog-inhalt .meta { color: var(--staub); margin: 8px 0 20px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.dialog-inhalt .aktionen { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.fakten { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: .92rem; }
.fakten dt { color: var(--staub); }
.fakten dd { margin: 0; }
.dialog-zu { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(21, 15, 26, .7); cursor: pointer; display: grid; place-items: center; }
.dialog-zu svg { width: 18px; height: 18px; }
.formular { display: grid; gap: 14px; }
.formular .zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.verwalten { border-top: 1px solid var(--vorhang); margin-top: 22px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Kinosaal (Player) ── */
.kinosaal { position: fixed; inset: 0; z-index: 40; background: #000; display: grid; place-items: center; }
.kinosaal video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.kinosaal .oben {
  position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 14px;
  padding: 16px var(--rand) 40px; background: linear-gradient(rgba(0, 0, 0, .75), transparent); transition: opacity .3s;
}
.kinosaal.ruhig .oben { opacity: 0; pointer-events: none; }
.kinosaal .oben h1 { font-family: var(--anzeige); font-size: 1.7rem; }
.zurueck { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(243, 235, 225, .1); cursor: pointer; display: grid; place-items: center; flex: none; }
.zurueck svg { width: 22px; height: 22px; }
.hinweis-unten {
  position: absolute; left: 50%; bottom: 90px; translate: -50% 0; display: flex; gap: 12px; align-items: center;
  background: rgba(39, 28, 46, .95); border: 1px solid var(--vorhang); padding: 10px 10px 10px 18px; border-radius: 999px;
}

/* ── Raum ── */
.raum { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; margin-top: 12px; height: calc(100vh - var(--kopf) - 36px); min-height: 520px; }
.raum .buehne { position: relative; background: #000; border-radius: 14px; overflow: hidden; display: grid; place-items: center; }
.raum .buehne video { width: 100%; height: 100%; object-fit: contain; }
.raum .seitenleiste { display: flex; flex-direction: column; gap: 14px; min-height: 0; }

/* Die Eintrittskarte: Raumcode zum Weitergeben. Zwei Hälften mit Abrisskante dazwischen. */
.karte-ticket { color: #2a1a0a; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35)); }
.karte-ticket .abschnitt { padding: 16px 22px 14px; border-radius: 12px 12px 0 0;
  background: radial-gradient(circle at 0 100%, transparent 10px, var(--messing) 10.5px) left / 51% 100% no-repeat,
              radial-gradient(circle at 100% 100%, transparent 10px, var(--messing) 10.5px) right / 51% 100% no-repeat; }
.karte-ticket .stummel { padding: 12px 22px 16px; border-radius: 0 0 12px 12px; border-top: 2px dashed rgba(42, 26, 10, .3);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  background: radial-gradient(circle at 0 0, transparent 10px, var(--messing) 10.5px) left / 51% 100% no-repeat,
              radial-gradient(circle at 100% 0, transparent 10px, var(--messing) 10.5px) right / 51% 100% no-repeat;
  background-origin: border-box; }
.karte-ticket .zeile1 { font-size: .85rem; font-weight: 650; opacity: .7; }
.karte-ticket .filmname { font-weight: 700; font-size: 1.05rem; line-height: 1.25; margin-top: 2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.karte-ticket .raumcode { font-family: var(--anzeige); font-size: 2.6rem; letter-spacing: .14em; line-height: 1; }
.karte-ticket button { border: 0; border-radius: 999px; padding: 8px 14px; background: #2a1a0a; color: var(--messing); font-weight: 650; cursor: pointer; font-size: .88rem; margin-bottom: 4px; }
.karte-ticket button:hover { background: #3b260f; }

.leute { display: flex; flex-wrap: wrap; gap: 6px; }
.leute span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px; background: var(--samt); font-size: .88rem; }
.leute span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gruen); }
.chat { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--samt); border: 1px solid var(--vorhang); border-radius: 14px; overflow: hidden; }
.chat .verlauf { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; font-size: .93rem; }
.chat .nachricht b { color: var(--messing); font-weight: 650; margin-right: 6px; }
.chat .ereignis { color: var(--staub); font-size: .82rem; }
.chat form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--vorhang); }
.chat form .eingabe { min-height: 40px; }
.reaktionen { display: flex; gap: 4px; padding: 0 10px 10px; }
.reaktionen button { flex: 1; border: 0; background: var(--saal-tief); border-radius: 8px; padding: 6px 0; font-size: 1.2rem; cursor: pointer; }
.reaktionen button:hover { background: var(--vorhang); }
.flieger { position: absolute; bottom: 60px; font-size: 2.4rem; pointer-events: none; animation: fliegen 2.6s ease-out forwards; z-index: 3; }
.flieger small { display: block; font-size: .75rem; color: var(--leinwand); text-align: center; text-shadow: 0 1px 3px #000; }
@keyframes fliegen { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; transform: translateY(-30px) scale(1.1); } 100% { transform: translateY(-260px) scale(1); opacity: 0; } }
.vorhang {
  position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; gap: 16px; text-align: center; padding: 20px;
  background: radial-gradient(ellipse at center, rgba(39, 28, 46, .92), rgba(21, 15, 26, .98));
}
.vorhang h2 { font-family: var(--anzeige); font-size: clamp(2rem, 5vw, 3.2rem); }
.vorhang p { margin: 0; color: var(--staub); }

/* ── Serie ── */
.staffel-wahl { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 24px; }
.staffel-wahl button { border: 1px solid var(--vorhang); background: none; border-radius: 999px; padding: 6px 16px; cursor: pointer; color: var(--staub); }
.staffel-wahl button[aria-pressed='true'] { background: var(--messing); border-color: var(--messing); color: #2a1a0a; font-weight: 650; }
.folgen { display: grid; gap: 10px; }
.folge { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: center; padding: 10px; border-radius: 12px; cursor: pointer; background: none; border: 0; text-align: left; }
.folge:hover { background: var(--samt); }
.folge .karte { pointer-events: none; }
.folge h3 { font-size: 1.05rem; font-weight: 650; }
.folge p { margin: 4px 0 0; color: var(--staub); font-size: .88rem; }
.folge .folge-text { color: rgba(243, 235, 225, .72); max-width: 70ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ablage-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* ── Verwaltung ── */
.zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.zahl strong { display: block; font-family: var(--anzeige); font-size: 2.2rem; line-height: 1.1; }
.zahl span { color: var(--staub); font-size: .88rem; }
.platz { height: 10px; border-radius: 5px; background: var(--saal-tief); overflow: hidden; margin-top: 18px; }
.platz i { display: block; height: 100%; background: var(--messing); width: var(--p); }
.tabelle { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tabelle th { text-align: left; font-weight: 600; color: var(--staub); font-size: .85rem; padding: 0 10px 8px; }
.tabelle td { padding: 10px; border-top: 1px solid var(--vorhang); vertical-align: middle; }
.tabelle td:last-child { text-align: right; white-space: nowrap; }
.geheim { margin-top: 16px; padding: 16px; border-radius: 12px; border: 1px solid var(--messing); background: rgba(233, 180, 76, .08); }
.geheim code { font-size: 1.15rem; padding: 6px 10px; }

/* ── Anmeldung ── */
.anmeldung { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(233, 180, 76, .12), transparent 70%), var(--saal); }
.anmeldung form { width: min(380px, 100%); display: grid; gap: 16px; }
.anmeldung .marke { justify-content: center; margin-bottom: 18px; }
.anmeldung .marke img { width: 44px; height: 44px; }
.anmeldung .marke span { font-size: 2.4rem; }
.fehlertext { color: var(--rot); font-size: .92rem; min-height: 1.4em; margin: 0; }

/* ── Meldungen ── */
#toasts { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 100; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 12px; background: var(--leinwand); color: var(--saal); font-weight: 550; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: aufgehen .2s ease-out; max-width: calc(100vw - 32px); }
.toast.fehler { background: var(--rot); color: #2a0a06; }
.toast button { border: 0; background: none; font-weight: 700; text-decoration: underline; cursor: pointer; color: inherit; padding: 0; }

.laedt { display: grid; place-items: center; min-height: 40vh; color: var(--staub); }

/* ── Klein ── */
@media (max-width: 900px) {
  .raum { grid-template-columns: 1fr; height: auto; }
  .raum .buehne { aspect-ratio: 16 / 9; }
  .chat { min-height: 360px; }
}
@media (max-width: 720px) {
  :root { --kopf: 58px; }
  .kopf { gap: 12px; }
  .navi { display: none; }
  .marke span { font-size: 1.3rem; }
  .suche input { width: 42vw; }
  .leinwand { min-height: 70vh; }
  .folge { grid-template-columns: 120px 1fr; gap: 12px; }
  .formular .zweispaltig { grid-template-columns: 1fr; }
  .tabelle .weg-mobil { display: none; }
  .menue .nur-mobil { display: block; }
}
.menue .nur-mobil { display: none; }
@media (max-width: 720px) { .menue .nur-mobil { display: block; } }
@media (max-width: 480px) {
  .marke span { display: none; }
  .suche input { width: 100%; }
  .kopf .rechts { flex: 1; }
  .suche { flex: 1; }
}

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