/* PD Event-Plattform — Regiepult
   Wird nachts bedient, im dunklen Saal, oft einhändig. Dunkle Fläche,
   harte Linien, Signalfarben ausschließlich für Zustände. */

@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("fonts/sg.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 700;
  font-display: swap; src: url("fonts/sg7.woff2") format("woff2");
}
@font-face {
  font-family: "Plex"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("fonts/plex4.woff2") format("woff2");
}
@font-face {
  font-family: "Plex"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("fonts/plex6.woff2") format("woff2");
}

:root {
  --bg:        #0a0b0e;
  --bg-2:      #101216;
  --panel:     #15181d;
  --panel-2:   #1b1f26;
  --line:      #262b33;
  --line-hell: #39404a;
  --text:      #e9ebee;
  --muted:     #868e9a;
  --amber:     #ffb020;
  --amber-tief:#3a2a06;
  --gruen:     #35d07f;
  --rot:       #ff5252;
  --blau:      #4cc9f0;

  --display: "Space Grotesk", "Trebuchet MS", sans-serif;
  --body: "Plex", "Segoe UI", sans-serif;

  --rand: 1px solid var(--line);
  --tempo: 220ms cubic-bezier(.2, .7, .3, 1);
}

* { box-sizing: border-box; }
/* Das hidden-Attribut MUSS gewinnen — sonst blenden Klassen wie
   .selfie-cam { display: grid } versteckte Bereiche trotzdem ein und alles
   überlagert sich (Lehre 25.07.: Selfie-Kamera immer sichtbar im Popup). */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  /* Kein 300-ms-Zögern beim Tippen — zählt im Betrieb, wenn es schnell gehen muss */
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(255, 176, 32, .18);
}

/* Sprungmarke: nur sichtbar, wenn sie den Fokus hat */
.sprung {
  position: absolute; left: 8px; top: -60px; z-index: 90;
  background: var(--amber); color: #14100a; padding: 12px 18px;
  font-family: var(--display); font-weight: 700; text-decoration: none;
  transition: top var(--tempo);
}
.sprung:focus { top: 8px; }

#inhalt:focus { outline: none; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #0d0f13 0%, var(--bg) 55%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.016) 0 1px, transparent 1px 96px);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

/* Feines Korn — nimmt der Fläche das Digitale, ohne zu stören */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
}

h1, h2, h3, .display {
  font-family: var(--display); font-weight: 700;
  letter-spacing: -.02em; margin: 0;
  text-wrap: balance;
}

/* Eventnamen und Ortsangaben sind nicht vorhersehbar lang */
.karte h2, .cockpit-kopf h1, .modul h3, .fakt .w, .karte .meta { overflow-wrap: anywhere; }
.modul .oben > div, .modulwahl label > span { min-width: 0; }

a { color: inherit; }

/* ------------------------------------------------------------------ Kopfzeile */
.kopf {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  /* ⚠️ Der Kopf muss die Gerätekanten kennen: als Web-App vom Homebildschirm
     läuft die Seite unter Statusleiste und Dynamic Island hindurch
     (viewport-fit=cover). Ohne diese Zeilen sitzt der Zurück-Pfeil im
     Hochformat hinter der Uhr und im Querformat hinter der Display-Rundung.
     Die Gastseiten-Leiste (.es-nav) macht es seit jeher so — der
     Verwaltungskopf hatte es nur nie gebraucht, weil er im Browser lief. */
  padding: 12px 20px;
  padding-top: max(12px, env(safe-area-inset-top));
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  background: rgba(10,11,14,.88);
  backdrop-filter: blur(14px);
  border-bottom: var(--rand);
}
/* Zurück eine Ebene höher. Sitzt im sticky Kopf, weil die Web-App auf dem
   Homebildschirm keine Browser-Zurücktaste hat (Christian 27.07.2026).
   Volle 44 px Höhe für den Daumen; der negative linke Rand zieht das
   Pfeil-Symbol optisch auf die Kante der Marke zurück, damit die Fläche
   größer ist als sie aussieht. */
.kopf-zurueck {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; min-width: 44px; margin-left: -10px;
  padding: 0 10px;
  color: var(--muted); text-decoration: none;
  font-size: 13px; letter-spacing: .08em;
  border-right: var(--rand); padding-right: 14px; margin-right: -4px;
  transition: color var(--tempo);
}
.kopf-zurueck svg { flex: none; transition: transform var(--tempo); }
.kopf-zurueck:hover, .kopf-zurueck:focus-visible { color: var(--text); }
/* Kurz gedrückt = Pfeil rückt an: die einzige Bewegung, die dieser Knopf
   braucht. Sie bestätigt den Treffer, bevor die neue Seite da ist.
   Nur transform — und die globale reduced-motion-Regel nimmt sie zurück. */
.kopf-zurueck:active svg { transform: translateX(-2px); }
@media (max-width: 560px) {
  /* Auf dem Handy zählt jeder Millimeter im Kopf — der Pfeil allein trägt,
     das Ziel steht im aria-label. */
  .kopf-zurueck-t { display: none; }
  .kopf-zurueck { padding-right: 10px; }
}
.marke {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 15px;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
}
.marke .punkt {
  width: 11px; height: 11px; background: var(--amber);
  box-shadow: 0 0 14px rgba(255,176,32,.75);
}
.marke .zusatz { color: var(--muted); font-weight: 500; letter-spacing: .1em; }
.kopf .rechts { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.mandant-chip {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); border: var(--rand); padding: 6px 10px;
}

/* ---------------------------------------------------------------------- Raster */
.huelle { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 28px 20px 96px; }

.seiten-kopf { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.seiten-kopf h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.02; }
.seiten-kopf .beischrift {
  color: var(--muted); font-size: 13px; letter-spacing: .18em;
  text-transform: uppercase; margin-bottom: 8px; display: block;
}
.seiten-kopf .aktionen { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* --------------------------------------------------------------------- Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  font-family: var(--display); font-size: 14px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  color: var(--text); background: var(--panel-2);
  border: 1px solid var(--line-hell); border-radius: 2px;
  cursor: pointer; transition: background var(--tempo), border-color var(--tempo), transform var(--tempo);
}
.knopf:hover { background: #232830; border-color: #4b545f; }
.knopf:active { transform: translateY(1px); }
.knopf.haupt {
  background: var(--amber); color: #14100a; border-color: var(--amber);
  box-shadow: 0 0 0 1px rgba(255,176,32,.25), 0 8px 30px -14px rgba(255,176,32,.9);
}
.knopf.haupt:hover { background: #ffc24d; border-color: #ffc24d; }
.knopf.stumm { background: transparent; color: var(--muted); }
.knopf.stumm:hover { color: var(--text); }
.knopf.gefahr { border-color: #5d2a2a; color: #ff8f8f; background: #1d1214; }
.knopf.gefahr:hover { background: #2a171a; border-color: #7d3636; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--amber); outline-offset: 2px;
}

/* -------------------------------------------------------------- Event-Karten */
.karten { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .karten { grid-template-columns: 1fr 1fr; } }

.karte {
  position: relative; display: block; text-decoration: none;
  background: var(--panel); border: var(--rand); border-left: 3px solid var(--line-hell);
  padding: 18px 20px; transition: border-color var(--tempo), background var(--tempo), transform var(--tempo);
}
.karte:hover { background: var(--panel-2); border-left-color: var(--amber); transform: translateX(2px); }
.karte .zeile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.karte h2 { font-size: 21px; margin: 6px 0 4px; }
.karte .meta { color: var(--muted); font-size: 14px; }
.karte .fuss {
  margin-top: 14px; padding-top: 12px; border-top: var(--rand);
  display: flex; gap: 16px; color: var(--muted); font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase;
}
.karte.laeuft { border-left-color: var(--gruen); }

/* ------------------------------------------------------------------- Marken */
.pille {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--display); font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 9px; border: 1px solid var(--line-hell); color: var(--muted);
}
.pille.scharf { color: var(--gruen); border-color: rgba(53,208,127,.45); background: rgba(53,208,127,.08); }
.pille.entwurf { color: var(--amber); border-color: rgba(255,176,32,.4); background: rgba(255,176,32,.07); }
.pille.archiv { color: var(--muted); }
.pille.live { color: #08130d; background: var(--gruen); border-color: var(--gruen); }
.pille.live .blinker {
  width: 7px; height: 7px; border-radius: 50%; background: #08130d;
  animation: puls 1.4s ease-in-out infinite;
}
@keyframes puls { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* ------------------------------------------------------------- Modul-Kacheln */
.modul-raster { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .modul-raster { grid-template-columns: 1fr 1fr; } }

.modul {
  background: var(--panel); border: var(--rand);
  border-left: 3px solid var(--line); padding: 16px 18px;
  transition: border-color var(--tempo), background var(--tempo);
}
.modul.an { border-left-color: var(--amber); background: var(--panel-2); }
.modul .oben { display: flex; align-items: flex-start; gap: 14px; }
.modul h3 { font-size: 17px; }
.modul .text { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.modul .unten {
  margin-top: 14px; padding-top: 12px; border-top: var(--rand);
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
/* Zustand steuert die Aktionen — ohne Neuladen der Seite */
.modul:not(.an) .wenn-an { display: none; }
.modul.an .wenn-aus { display: none; }

.melder { min-height: 20px; margin: -4px 0 12px; color: var(--muted); font-size: 13.5px; }
.melder.fehler { color: var(--rot); }

.modul .stufe {
  margin-left: auto; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}

/* Schalter — bewusst groß und mechanisch, für den Daumen im Dunkeln */
.schalter {
  flex: 0 0 auto; position: relative; width: 62px; height: 34px;
  border: 1px solid var(--line-hell); background: #0d0f12;
  border-radius: 2px; cursor: pointer; padding: 0;
  transition: background var(--tempo), border-color var(--tempo);
}
.schalter .griff {
  position: absolute; top: 3px; left: 3px; width: 26px; height: 26px;
  background: #4b545f; transition: transform var(--tempo), background var(--tempo);
}
.schalter[aria-checked="true"] { background: var(--amber-tief); border-color: var(--amber); }
.schalter[aria-checked="true"] .griff { transform: translateX(28px); background: var(--amber); }
.schalter:disabled { opacity: .45; cursor: not-allowed; }

/* --------------------------------------------------------------- Anlagepfad */
.schritte { display: grid; gap: 22px; }
.schritt { border: var(--rand); background: var(--panel); padding: 20px; }
.schritt > legend, .schritt > .titel {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--display); font-weight: 700; font-size: 18px;
  padding: 0; margin-bottom: 4px;
}
.schritt .nr {
  font-size: 12px; letter-spacing: .18em; color: var(--amber);
  border: 1px solid rgba(255,176,32,.35); padding: 3px 8px;
}
.schritt .hinweis { color: var(--muted); font-size: 14px; margin: 0 0 16px; }

.wahl { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .wahl { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .wahl.drei { grid-template-columns: repeat(3, 1fr); } }

/* Felder in der Anmeldung: je Feld aus / freiwillig / Pflicht */
.felder-stufen {
  border: var(--rand); padding: 16px; margin: 4px 0 12px;
  display: grid; gap: 12px; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .felder-stufen { grid-template-columns: 1fr 1fr; } }
.felder-stufen > legend {
  font-family: var(--display); font-weight: 700; font-size: 15px;
  padding: 0 6px; color: var(--muted);
}
.felder-stufen select:disabled { opacity: .6; cursor: not-allowed; }

.wahl label {
  display: block; position: relative; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg-2); padding: 16px;
  transition: border-color var(--tempo), background var(--tempo), transform var(--tempo);
}
.wahl label:hover { border-color: var(--line-hell); transform: translateY(-1px); }
.wahl input { position: absolute; opacity: 0; width: 0; height: 0; }
.wahl input:checked + .inhalt { color: var(--text); }
.wahl label:has(input:checked) {
  border-color: var(--amber); background: linear-gradient(180deg, rgba(255,176,32,.09), transparent);
  box-shadow: inset 3px 0 0 var(--amber);
}
.wahl label:has(input:focus-visible) { outline: 2px solid var(--amber); outline-offset: 2px; }
.wahl .titel-z { font-family: var(--display); font-weight: 700; font-size: 16px; }
.wahl .unter { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.wahl .betont { color: var(--amber); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-top: 8px; }

.feld { display: grid; gap: 6px; margin-bottom: 14px; }
.feld label { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.feld input[type="text"], .feld input[type="date"], .feld textarea, .feld input[type="color"] {
  min-height: 48px; padding: 10px 14px;
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 2px;
  font-family: var(--body); font-size: 16px;
}
.feld input:focus, .feld textarea:focus { border-color: var(--amber); outline: none; }
.feld textarea { min-height: 90px; resize: vertical; }
.feld-paar { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .feld-paar { grid-template-columns: 1fr 1fr; } }

.modulwahl { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .modulwahl { grid-template-columns: 1fr 1fr; } }
.modulwahl label {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line); background: var(--bg-2); padding: 13px 14px;
  cursor: pointer; transition: border-color var(--tempo), background var(--tempo);
}
.modulwahl label:hover { border-color: var(--line-hell); }
.modulwahl label:has(input:checked) { border-color: var(--amber); background: rgba(255,176,32,.06); }
.modulwahl input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--amber); flex: none; }
.modulwahl .n { font-family: var(--display); font-weight: 700; font-size: 15px; }
.modulwahl .t { color: var(--muted); font-size: 13px; }

/* -------------------------------------------------------------------- Cockpit */
.cockpit-kopf {
  border: var(--rand); border-top: 3px solid var(--amber);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  padding: 22px; margin-bottom: 22px;
}
.cockpit-kopf h1 { font-size: clamp(26px, 5.2vw, 42px); line-height: 1.03; margin-bottom: 10px; }
.cockpit-kopf .zeile { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cockpit-kopf .fakten {
  display: flex; gap: 26px; flex-wrap: wrap; margin-top: 18px;
  padding-top: 16px; border-top: var(--rand);
}
.fakt .k { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.fakt .w { font-family: var(--display); font-weight: 700; font-size: 19px; margin-top: 2px; }
.fakt .w.amber { color: var(--amber); }
.fakt .w.gruen { color: var(--gruen); }

.abschnitt { margin-top: 34px; }
.abschnitt > h2 {
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); padding-bottom: 10px; margin-bottom: 14px;
  border-bottom: var(--rand); display: flex; align-items: center; gap: 12px;
}
.abschnitt > h2 .zahl { color: var(--amber); }

/* Gefahrenzone — bewusst abgesetzt, nie neben harmlosen Knöpfen */
.gefahrenzone {
  margin-top: 40px; border: 1px dashed #4a2b2b; background: rgba(255,82,82,.035);
  padding: 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.gefahrenzone .txt { flex: 1 1 260px; }
.gefahrenzone h3 { font-size: 15px; color: #ff9b9b; }
.gefahrenzone p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }

.tabelle { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tabelle th, .tabelle td { text-align: left; padding: 10px 12px; border-bottom: var(--rand); }
.tabelle th { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.tabelle tr:last-child td { border-bottom: none; }

.leer {
  border: 1px dashed var(--line-hell); background: rgba(255,255,255,.012);
  padding: 44px 24px; text-align: center;
}
.leer h2 { font-size: 22px; margin-bottom: 8px; }
.leer p { color: var(--muted); max-width: 46ch; margin: 0 auto 20px; }

.fehlerbox {
  border: 1px solid #6b2f2f; background: rgba(255,82,82,.08);
  padding: 14px 18px; margin-bottom: 22px;
}
.fehlerbox ul { margin: 6px 0 0; padding-left: 20px; }

.hinweis-zeile {
  margin-top: 26px; padding: 14px 16px; border: var(--rand);
  border-left: 3px solid var(--blau); background: rgba(76,201,240,.04);
  color: var(--muted); font-size: 13.5px;
}

/* -------------------------------------------------------------------- Beamer */
.beamer-buehne {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 6vh 5vw;
}
.beamer-buehne .oben-links {
  position: fixed; top: 3vh; left: 3vw; font-size: 13px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.beamer-buehne h1 { font-size: clamp(40px, 9vw, 128px); line-height: .95; }
.beamer-buehne .unter { color: var(--muted); font-size: clamp(16px, 2.4vw, 26px); margin-top: 18px; }
.beamer-quellen { position: fixed; bottom: 3vh; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* --------------------------------------------------------------- Einblenden */
.stufe-auf { animation: hoch 460ms cubic-bezier(.2,.7,.3,1) both; }
@keyframes hoch { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

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

/* ============================================================ Bingo — Admin */
.rundenleiste { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.rundenchip {
  display: grid; gap: 1px; text-decoration: none; padding: 9px 14px;
  border: var(--rand); border-left: 3px solid var(--line-hell); background: var(--panel);
  min-height: 48px; align-content: center;
  transition: border-color var(--tempo), background var(--tempo);
}
.rundenchip:hover { background: var(--panel-2); }
.rundenchip b { font-family: var(--display); font-size: 14px; letter-spacing: .04em; }
.rundenchip span { font-size: 12px; color: var(--muted); }
.rundenchip.st-laeuft { border-left-color: var(--gruen); }
.rundenchip.st-beendet { opacity: .55; }
.rundenchip.aktiv { border-color: var(--amber); border-left-color: var(--amber); background: var(--panel-2); }

/* Ziehpult — der Knopf muss im Dunkeln blind zu treffen sein */
.zieh-pult {
  display: grid; gap: 18px; grid-template-columns: 1fr;
  border: var(--rand); border-top: 3px solid var(--amber);
  background: linear-gradient(180deg, var(--panel), var(--bg-2)); padding: 20px;
}
@media (min-width: 900px) { .zieh-pult { grid-template-columns: 1.4fr 1fr; align-items: start; } }

.zp-anzeige { display: grid; gap: 14px; grid-template-columns: auto 1fr; align-items: center; }
.zp-ball {
  display: grid; place-items: center; align-content: center;
  width: 116px; height: 116px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #2a3038, #14171c 70%);
  border: 2px solid var(--amber); box-shadow: 0 0 40px -12px rgba(255,176,32,.7);
}
.zp-ball span {
  font-family: var(--display); font-size: 11px; font-weight: 700;
  letter-spacing: .22em; color: var(--amber); min-height: 14px;
}
.zp-ball b { font-family: var(--display); font-size: 42px; line-height: 1; }
.zp-fakten { display: flex; gap: 22px; flex-wrap: wrap; }
.zp-verlauf {
  grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 14px; letter-spacing: .04em;
}

.zp-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; align-content: start; }
.zp-gross { flex: 1 1 100%; min-height: 82px; font-size: 18px; letter-spacing: .12em; }
.zp-knoepfe .knopf { flex: 1 1 140px; }
#btn-auto.laeuft { border-color: var(--gruen); color: var(--gruen); background: rgba(53,208,127,.1); }
.zp-knoepfe .knopf:disabled { opacity: .4; cursor: not-allowed; }

.zp-tempo { grid-column: 1 / -1; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .zp-tempo { grid-template-columns: 1fr 1fr; } }
.zp-tempo .feld { margin: 0; }
.zp-tempo input[type="number"] {
  min-height: 48px; padding: 10px 14px; background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 2px; font-family: var(--body); font-size: 16px;
}
.zp-tempo input:focus { border-color: var(--amber); outline: none; }
.zp-hinweis { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 13px; }

.unter-block { border: none; padding: 0; margin: 0 0 18px; }
.unter-block > legend {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); padding: 0; margin-bottom: 10px;
}
.muster-satz[hidden] { display: none; }

/* Prüfpult */
.pruefpult { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.pruefpult .feld { margin: 0; flex: 1 1 240px; }
.pruefpult input {
  min-height: 56px; padding: 10px 16px; background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 2px;
  font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .18em;
  text-transform: uppercase;
}
.pruefpult input:focus { border-color: var(--amber); outline: none; }
.pruefpult .knopf { min-height: 56px; }

.pruef-ergebnis:empty { display: none; }
.pruef-ergebnis {
  margin-top: 16px; padding: 18px 20px; border: var(--rand); border-left: 3px solid var(--line-hell);
  background: var(--panel);
}
.pruef-ergebnis .pe-kopf { margin: 0; font-family: var(--display); font-weight: 700; font-size: 19px; }
.pruef-ergebnis .pe-fuss { margin: 12px 0 0; color: var(--muted); font-size: 13.5px; }
.pruef-ergebnis.erg-gewinn { border-left-color: var(--gruen); background: rgba(53,208,127,.07); }
.pruef-ergebnis.erg-gewinn .pe-kopf { color: var(--gruen); }
.pruef-ergebnis.erg-zu_frueh { border-left-color: var(--amber); background: rgba(255,176,32,.06); }
.pruef-ergebnis.erg-zu_frueh .pe-kopf { color: var(--amber); }
.pruef-ergebnis.erg-unbekannt,
.pruef-ergebnis.erg-fremde_runde { border-left-color: var(--rot); background: rgba(255,82,82,.06); }
.pruef-ergebnis.erg-unbekannt .pe-kopf,
.pruef-ergebnis.erg-fremde_runde .pe-kopf { color: #ff9b9b; }

.pe-karte { display: grid; gap: 4px; margin-top: 16px; max-width: 420px; }
.pe-karte.sp-75 { grid-template-columns: repeat(5, 1fr); }
.pe-karte.sp-90 { grid-template-columns: repeat(9, 1fr); max-width: 560px; }
.pe-karte .pf {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 1;
  border: 1px solid var(--line); background: var(--bg-2);
  font-size: 15px; color: var(--muted);
}
.pe-karte.sp-90 .pf { font-size: 13px; }
.pe-karte .pf.an { background: var(--amber); color: #14100a; border-color: var(--amber); font-weight: 600; }
.pe-karte .pf.frei { color: var(--amber); border-style: dashed; }

.protokoll { margin-top: 22px; }
.protokoll summary {
  cursor: pointer; min-height: 44px; display: flex; align-items: center;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.protokoll .erg-gewinn { color: var(--gruen); }
.protokoll .erg-zu_frueh { color: var(--amber); }
.protokoll .erg-unbekannt, .protokoll .erg-fremde_runde { color: #ff9b9b; }

/* =========================================================== Bingo — Beamer */
.bingo-buehne {
  position: relative; z-index: 1;
  min-height: 100vh; display: flex; flex-direction: column; gap: 2vh; padding: 3vh 4vw;
}

.bb-kopf {
  display: flex; align-items: baseline; gap: 3vw; flex-wrap: wrap;
  font-family: var(--display); font-size: clamp(13px, 1.5vw, 22px);
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.bb-kopf .bb-runde b { color: var(--text); }
.bb-kopf .bb-muster { margin-left: auto; color: var(--amber); }

.bb-mitte {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: clamp(20px, 5vw, 90px); flex-wrap: wrap;
}

/* --- Trommel. SVG statt GIF: scharf auf jeder Leinwand, Dauer steuerbar. --- */
.kaefig { margin: 0; flex: 0 1 clamp(200px, 26vw, 420px); }
.kaefig svg { width: 100%; height: auto; display: block; transform-box: view-box; }
.kaefig .gestell { stroke: #3b434f; stroke-width: 9; fill: none; stroke-linecap: round; }
.kaefig .gestell-fuss { fill: #3b434f; }
.kaefig .trommel-glas { fill: url(#glas); stroke: #4b545f; stroke-width: 3; }
.kaefig .gitter { fill: none; stroke: rgba(180,192,208,.34); stroke-width: 2; }
.kaefig .gitter .reif { stroke: rgba(255,176,32,.5); stroke-width: 3.5; }
.kaefig .auswurf { fill: none; stroke: #3b434f; stroke-width: 9; stroke-linecap: round; }
.kaefig .kugel-wolke circle {
  fill: #d8dee8; stroke: rgba(0,0,0,.35); stroke-width: 1.5;
  transform-origin: 200px 185px;
}
.kaefig .kugel-wolke circle:nth-child(odd) { fill: var(--amber); }
.kaefig .kugel-wolke, .kaefig .gitter .reif { transform-origin: 200px 185px; }

.kaefig.dreht .kugel-wolke {
  animation: trommel-dreh var(--dreh-dauer, 1600ms) cubic-bezier(.35,.05,.2,1) both;
}
.kaefig.dreht .gitter .reif {
  animation: reif-dreh var(--dreh-dauer, 1600ms) cubic-bezier(.35,.05,.2,1) both;
}
.kaefig.dreht .trommel-glas { animation: trommel-schein var(--dreh-dauer, 1600ms) ease-out both; }
@keyframes trommel-dreh   { from { transform: rotate(0); } to { transform: rotate(1080deg); } }
@keyframes reif-dreh      { from { transform: rotate(0); } to { transform: rotate(-720deg); } }
@keyframes trommel-schein { 0%, 100% { stroke: #4b545f; } 45% { stroke: var(--amber); } }

/* --- Die gezogene Zahl: eine Kugel, groß, sonst nichts --- */
.bb-zahl { display: grid; justify-items: center; gap: 2.4vh; }
.ball {
  display: grid; place-items: center; align-content: center; gap: .4vh;
  width: clamp(230px, 30vw, 460px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #333b46, #16191f 62%, #0d0f13);
  border: 3px solid var(--amber);
  box-shadow: 0 0 0 10px rgba(255,176,32,.06), 0 0 120px -30px rgba(255,176,32,.95);
  transition: opacity var(--tempo), transform var(--tempo);
}
.ball-brief {
  font-family: var(--display); font-weight: 700; color: var(--amber);
  font-size: clamp(18px, 2.4vw, 40px); letter-spacing: .3em; min-height: 1em;
}
.ball-zahl {
  font-family: var(--display); font-weight: 700; line-height: .9;
  font-size: clamp(96px, 16vw, 250px); letter-spacing: -.03em;
}
.ball.wartet { opacity: .18; transform: scale(.9); }
.ball.kommt { animation: ball-rein 640ms cubic-bezier(.16,.9,.3,1) both; }
@keyframes ball-rein {
  0%   { opacity: 0; transform: translateY(-9vh) scale(.5); }
  55%  { opacity: 1; transform: translateY(0) scale(1.1); }
  75%  { transform: scale(.97); }
  100% { opacity: 1; transform: none; }
}
.bb-status {
  margin: 0; font-family: var(--display); color: var(--muted);
  font-size: clamp(14px, 1.8vw, 26px); letter-spacing: .22em; text-transform: uppercase;
}

/* --- Zahlentafel: für alle, die später dazukommen --- */
.bb-tafel {
  display: grid; grid-template-columns: repeat(15, 1fr); gap: .5vh .4vw;
  max-width: 1500px; width: 100%; margin: 0 auto;
}
.bb-tafel .tf {
  display: flex; align-items: center; justify-content: center;
  /* Ungezogene Zahlen bleiben ruhig, müssen aus der letzten Reihe aber
     noch lesbar sein — #6f7885 hält 4,5:1 gegen den Hintergrund. */
  aspect-ratio: 1; border: 1px solid var(--line); color: #6f7885;
  font-size: clamp(10px, 1.1vw, 19px); font-weight: 600;
  transition: background var(--tempo), color var(--tempo), border-color var(--tempo);
}
.bb-tafel .tf.an { background: rgba(255,176,32,.16); border-color: rgba(255,176,32,.5); color: var(--amber); }
.bb-tafel .tf.neu { background: var(--amber); border-color: var(--amber); color: #14100a; }

/* Störungsanzeige des Bingo-Beamers — dezent, aber im Saal lesbar.
   Sitzt über dem Fuß, damit sie den Spielstand nicht verdeckt. */
.bb-stoerung {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(3vh + 58px); z-index: 6;
  background: rgba(45, 12, 12, .92); border: 1px solid #7d3636; color: #ff9b9b;
  padding: 10px 18px; font-size: clamp(14px, 1.8vw, 20px); letter-spacing: .04em;
}
.bb-stoerung[hidden] { display: none; }

.bb-fuss {
  display: flex; gap: 3vw; flex-wrap: wrap; align-items: baseline;
  font-family: var(--display); font-size: clamp(12px, 1.3vw, 20px);
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.bb-fuss b { color: var(--amber); }
.bb-fuss .bb-letzte { margin-left: auto; letter-spacing: .1em; }

@media (max-width: 760px) {
  .bb-tafel { grid-template-columns: repeat(10, 1fr); }
  .bb-kopf .bb-muster { margin-left: 0; }
}

/* Tonschalter auf der Beamerseite — muss sichtbar sein, weil Browser die
   Sprachausgabe erst nach einem echten Klick zulassen. */
.bb-ton {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 16px; cursor: pointer;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(11px, 1.1vw, 15px); letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); background: transparent;
  border: 1px solid var(--line-hell); border-radius: 2px;
  transition: color var(--tempo), border-color var(--tempo), background var(--tempo);
}
.bb-ton:hover { color: var(--text); border-color: var(--text); }
.bb-ton .bb-ton-punkt {
  width: 10px; height: 10px; border-radius: 50%;
  background: #4b545f; transition: background var(--tempo), box-shadow var(--tempo);
}
.bb-ton.an { color: var(--gruen); border-color: rgba(53,208,127,.55); background: rgba(53,208,127,.08); }
.bb-ton.an .bb-ton-punkt { background: var(--gruen); box-shadow: 0 0 12px rgba(53,208,127,.9); }
.bb-ton:disabled { opacity: .4; cursor: not-allowed; }

/* Erfahrungswert am Muster — sagt beim Anlegen, wie eng die Runde wird */
.mst-erf {
  display: block; margin-top: 10px; padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-family: var(--display); font-weight: 700;
  font-size: 11.5px; letter-spacing: .06em; color: var(--muted);
}
.mst-erf:empty { display: none; }
.mst-erf.stufe-gut   { color: var(--gruen); }
.mst-erf.stufe-mittel { color: var(--amber); }
.mst-erf.stufe-eng   { color: #ff9b9b; }
.mst-fussnote {
  margin: 12px 0 0; color: var(--muted); font-size: 12.5px; max-width: 78ch;
}

/* ============================================================ Stufe 2
   Anmeldung · Tippspiel · Voting · Buchung & Verleih · Wallet.
   Gleiche Sprache wie Stufe 0/1: harte Kanten, Signalfarben nur für
   Zustände, Flächen groß genug für den Daumen im Dunkeln. */

/* Alle Eingabefelder gleich behandeln — die Stufe-0-Regel kannte nur
   wenige Typen, ab hier kommen Zahl, Zeit, Datei und E-Mail dazu. */
.feld input, .feld select, .feld textarea,
.zeilen-aktionen input, .zeilen-aktionen select, .tabelle select, .tabelle input {
  background: var(--bg-2); color: var(--text); border: var(--rand);
  border-radius: 2px; padding: 11px 12px; font: inherit; font-size: 15px;
  min-height: 44px; width: 100%;
}
.tabelle select, .tabelle input, .zeilen-aktionen input, .zeilen-aktionen select {
  min-height: 38px; padding: 6px 8px; font-size: 14px; width: auto;
}
.feld input:focus-visible, .feld select:focus-visible, .feld textarea:focus-visible {
  outline: 2px solid var(--amber); outline-offset: 1px;
}
.feld > span {
  font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted);
}
.feld.schmal { max-width: 130px; }
.feld-paar { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.feld-paar > .feld { flex: 1 1 180px; margin-bottom: 14px; }

.wahl { display: grid; gap: 10px; margin: 14px 0; }
.wahl label, .wahl-zeile {
  display: flex; gap: 12px; align-items: flex-start; font-size: 15px;
  line-height: 1.45; padding: 10px 0; cursor: pointer;
}
.wahl input[type="checkbox"], .wahl-zeile input[type="checkbox"] {
  width: 26px; height: 26px; accent-color: var(--amber); flex: none; margin-top: 1px;
}

.knopf.gross { min-height: 54px; font-size: 16px; width: 100%; }
.knopf.klein-knopf { min-height: 38px; padding: 6px 12px; font-size: 13.5px; }
.knopf.aus { opacity: .35; pointer-events: none; }
.klein { font-size: 12.5px; color: var(--muted); }
.gruen { color: var(--gruen); }
.rot { color: var(--rot); }
.amber { color: var(--amber); }
.ziffern { font-variant-numeric: tabular-nums; }
.melder.sichtbar {
  color: var(--text); background: var(--panel); border-left: 3px solid var(--amber);
  padding: 12px 14px; margin-bottom: 16px;
}
.zeilen-aktionen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.zeilen-aktionen form { display: flex; gap: 6px; align-items: center; }
.tabelle-rahmen { overflow-x: auto; }
.tabelle .summe td { border-top: 2px solid var(--line-hell); }
.tabelle tr.gesperrt-zeile { opacity: .5; }
.klapp { border: var(--rand); background: var(--panel); margin: 14px 0; }
.klapp > summary {
  padding: 14px 16px; cursor: pointer; font-family: var(--display);
  letter-spacing: .04em; min-height: 48px; display: flex; align-items: center;
}
.klapp > *:not(summary) { padding: 0 16px 16px; }
.pille.fest, .pille.gruen { color: var(--gruen); border-color: rgba(53,208,127,.45); }
.pille.offen, .pille.warteliste { color: var(--amber); border-color: rgba(255,176,32,.4); }
.pille.storniert { color: var(--muted); }
.gefahrenzone.schmal { margin-top: 18px; }

/* ------------------------------------------------------------ Gastseiten */
.gast-kopf {
  border-top: 3px solid var(--amber); background: var(--panel);
  padding: 26px 20px 22px; text-align: center;
}
.gast-kopf h1 { margin: 6px 0 0; font-size: clamp(24px, 6vw, 34px); }
.gast-text { color: var(--muted); margin: 10px auto 0; max-width: 52ch; }
.gast-huelle { max-width: 620px; margin: 0 auto; padding: 20px 16px 60px; }
.gast-zurueck {
  display: inline-flex; align-items: center; min-height: 40px;
  margin-bottom: 6px; color: var(--muted); text-decoration: none; font-size: 14px;
}
.gast-zurueck:hover, .gast-zurueck:focus-visible { color: var(--ev); }
.gast-form { display: grid; gap: 2px; }
.gast-zaehler { text-align: center; color: var(--muted); margin: 4px 0 18px; }

/* Voting-Zeitsperre: Countdown bis zur Freigabe */
.v-count { text-align: center; margin: 18px 0 24px; }
.v-count-uhr { display: flex; gap: 18px; justify-content: center; margin-top: 6px; flex-wrap: wrap; }
.v-count-uhr span { display: grid; gap: 2px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.v-count-uhr b { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 9vw, 52px); color: var(--amber); }
.ausweis {
  border: var(--rand); background: var(--panel); padding: 24px; text-align: center;
  margin-bottom: 20px;
}
.ausweis-code {
  font-family: var(--display); font-size: clamp(30px, 9vw, 46px);
  letter-spacing: .16em; color: var(--amber); margin: 8px 0;
}
.ausweis-betrag {
  font-family: var(--display); font-size: clamp(34px, 11vw, 56px); margin: 6px 0;
}
.daten { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 18px 0; }
.daten dt { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.daten dd { margin: 0; }
.erklaerungstext {
  border: var(--rand); background: var(--panel); padding: 18px;
  line-height: 1.6; margin-bottom: 20px; max-height: 40vh; overflow-y: auto;
}

/* ------------------------------------------------------------- Tippspiel */
.tipp-karte { border: var(--rand); background: var(--panel); padding: 18px; margin-bottom: 18px; }
.tipp-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tipp-kopf h2 { margin: 0; font-size: 19px; }
.gegen { color: var(--muted); font-weight: 400; font-size: 14px; }
.ergebnis-zahl { font-family: var(--display); font-size: 26px; color: var(--amber); }
.tipp-eingabe, .ergebnis-form { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.doppelpunkt { font-size: 26px; color: var(--muted); padding-bottom: 18px; }
.mein-tipp { font-size: 17px; margin: 12px 0 4px; }

/* ---------------------------------------------------------------- Voting */
.galerie {
  display: grid; gap: 16px; margin-top: 8px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  align-items: stretch; grid-auto-rows: 1fr;
}
.galerie-karte {
  border: var(--rand); background: var(--panel); display: flex; flex-direction: column;
}
.galerie-karte.gesperrt { border-color: #5d2a2a; }
.gk-bild { position: relative; aspect-ratio: 4 / 3; background: var(--bg-2); }
.gk-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Anklickbares Bild → Lightbox */
.gk-zoom { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: zoom-in;
  width: 100%; height: 100%; display: block; }
.gk-zoom:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.gk-lupe { position: absolute; right: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 6px;
  display: grid; place-items: center; background: rgba(20,16,26,.6); color: #fff; font-size: 15px;
  opacity: 0; transition: opacity .15s ease; }
.gk-zoom:hover .gk-lupe, .gk-zoom:focus-visible .gk-lupe { opacity: 1; }

.v-lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.v-lightbox::backdrop { background: rgba(0,0,0,.82); }
.v-lightbox img { display: block; max-width: 96vw; max-height: 84vh; width: auto; height: auto;
  margin: 0 auto; border-radius: 8px; }
.v-lightbox-titel { color: #fff; text-align: center; margin: 10px 0 0; font-size: 15px; }
.v-lightbox-zu { position: fixed; top: 14px; right: 18px; width: 44px; height: 44px; border: 0;
  border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer; }
.v-lightbox-zu:hover, .v-lightbox-zu:focus-visible { background: rgba(255,255,255,.28); }
.gk-kein-bild {
  position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted);
  font-size: 13px;
}
.gk-nr, .gk-platz {
  position: absolute; top: 8px; left: 8px; background: rgba(10,11,14,.86);
  color: var(--amber); font-family: var(--display); padding: 4px 9px; font-size: 15px;
}
.gk-text { padding: 14px 14px 6px; flex: 1; }
.gk-text h3 { margin: 0 0 4px; font-size: 16px; }
.gk-stimmen { color: var(--amber); font-family: var(--display); }
.gk-aktionen { padding: 10px 14px 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.galerie.gast .gk-aktionen .knopf { width: 100%; }

/* --------------------------------------------------- Buchung & Verleih */
.kassenpult { border: var(--rand); background: var(--panel); padding: 18px; }
.preis-anzeige { font-family: var(--display); font-size: 22px; margin: 6px 0 0; }
.plan { width: 100%; border-collapse: collapse; font-size: 14px; }
.plan th, .plan td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.plan thead th {
  background: var(--panel-2); font-family: var(--display); font-size: 12.5px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.plan-zeit { background: var(--panel-2); white-space: nowrap; width: 1%; }
.plan-zelle { min-width: 120px; }
.plan-zelle.frei { color: var(--gruen); background: rgba(53,208,127,.07); }
.plan-zelle.frei.vorbei { color: var(--muted); background: transparent; }
.plan-zelle.belegt { background: rgba(255,176,32,.08); }
.plan-zelle.belegt strong { display: block; font-size: 14px; }
.plan-zelle.belegt.laeuft { background: rgba(53,208,127,.12); }
.slot { display: flex; gap: 8px; align-items: center; cursor: pointer; min-height: 40px; }
.slot input[type="radio"] { width: 22px; height: 22px; accent-color: var(--amber); }
.tag-waehler {
  display: flex; gap: 14px; align-items: center; justify-content: center;
  margin-bottom: 18px; font-family: var(--display);
}
.slot-wahl { border: var(--rand); padding: 14px; margin-bottom: 18px; }
.slot-wahl legend { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .09em; }

.timer-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.timer { border: var(--rand); border-left-width: 4px; background: var(--panel); padding: 14px 16px; }
.timer.gruen { border-left-color: var(--gruen); }
.timer.gelb  { border-left-color: var(--amber); }
.timer.rot   { border-left-color: var(--rot); background: #1d1214; }
.t-kopf { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.t-rest { font-family: var(--display); font-size: 17px; }
.timer.gelb .t-rest { color: var(--amber); }
.timer.rot .t-rest { color: var(--rot); }
.t-aktionen { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.verleih-zeile { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.verleih-zeile li { display: flex; gap: 10px; align-items: center; font-size: 13.5px; }

.groessen-raster {
  display: grid; gap: 10px; margin-top: 10px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.groesse {
  border: var(--rand); background: var(--bg-2); padding: 10px; display: grid; gap: 6px;
}
.groesse.leer { opacity: .45; }
.g-name { font-family: var(--display); font-size: 14px; }
.g-frei { color: var(--gruen); font-size: 13px; }
.groesse.leer .g-frei { color: var(--rot); }

/* --------------------------------------------------------- Beamer Stufe 2 */
.beamer-body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); }

/* Hintergrund der Leinwand (28.07.2026, eingestellt in der Beamer-Regie).
   Zwei fixierte Ebenen HINTER der Bühne — dieselbe Bauart wie die Fläche der
   Eventseite, bewusst als echte Elemente statt `background-attachment: fixed`.
   Negativer z-index: die Bühnen der zehn Ansichten haben keinen eigenen
   Hintergrund und liegen automatisch darüber; der Vollbild-Knopf (z-index
   9999) bleibt ebenfalls unberührt. */
.beamer-flaeche-bild, .beamer-flaeche-schleier {
  position: fixed; inset: 0; pointer-events: none;
}
.beamer-flaeche-bild {
  z-index: -2;
  background-size: cover; background-repeat: no-repeat;
}
.beamer-flaeche-schleier { z-index: -1; }
.tb-buehne, .vb-buehne {
  min-height: 100vh; display: flex; flex-direction: column; padding: 3vh 3vw;
}
.tb-kopf, .vb-kopf {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  border-bottom: var(--rand); padding-bottom: 2vh; flex-wrap: wrap;
}
.tb-event, .vb-event { font-family: var(--display); color: var(--muted); font-size: clamp(16px, 2vw, 26px); }
.tb-titel, .vb-titel { font-family: var(--display); font-size: clamp(20px, 3vw, 40px); color: var(--amber); }
.vb-status { color: var(--muted); font-size: clamp(14px, 1.6vw, 22px); }
.tb-mitte, .vb-mitte { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 3vh; padding: 3vh 0; }
.tb-fuss, .vb-fuss {
  display: flex; justify-content: space-between; border-top: var(--rand);
  padding-top: 2vh; color: var(--muted); font-size: clamp(14px, 1.6vw, 22px);
}
.tb-warten { color: var(--muted); text-align: center; font-size: clamp(18px, 2.4vw, 30px); }
.tb-paarung {
  display: flex; gap: 3vw; align-items: center; justify-content: center;
  font-family: var(--display); font-size: clamp(26px, 5vw, 76px); text-align: center;
  flex-wrap: wrap;
}
.tb-gegen { color: var(--muted); font-size: clamp(14px, 1.8vw, 26px); }
.tb-ergebnis { font-family: var(--display); font-size: clamp(60px, 16vw, 220px); text-align: center; color: var(--amber); }
.tb-aufruf { text-align: center; font-family: var(--display); font-size: clamp(22px, 4vw, 56px); color: var(--gruen); }
.tb-gewinner { text-align: center; }
.tb-label { display: block; color: var(--muted); letter-spacing: .2em; text-transform: uppercase; font-size: clamp(13px, 1.4vw, 20px); }
.tb-name { font-family: var(--display); font-size: clamp(28px, 6vw, 90px); color: var(--amber); }
.tb-verteilung { list-style: none; margin: 0 auto; padding: 0; width: min(900px, 90%); display: grid; gap: 1vh; }
.tb-verteilung li { display: grid; grid-template-columns: 5ch 1fr 4ch; gap: 14px; align-items: center; }
.tb-tipp { font-family: var(--display); font-variant-numeric: tabular-nums; font-size: clamp(16px, 2vw, 28px); }
.tb-balken { height: clamp(12px, 1.8vh, 22px); background: var(--amber); display: block; }
.tb-anzahl { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.tb-tabelle { margin: 0 auto; padding-left: 3ch; width: min(700px, 90%); }
.tb-tabelle li { display: flex; justify-content: space-between; gap: 20px; font-size: clamp(16px, 2vw, 28px); padding: .4vh 0; }

.vb-raster {
  display: grid; gap: 1.6vw;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 22vw), 1fr));
}
.vb-raster.klein { grid-template-columns: repeat(auto-fill, minmax(min(150px, 14vw), 1fr)); }
.vb-treppe { display: grid; gap: 2vw; grid-template-columns: repeat(3, 1fr); align-items: end; }
.vb-karte { margin: 0; border: var(--rand); background: var(--panel); }
.vb-karte.platz-1 { border-color: var(--amber); }
.vk-bild { position: relative; aspect-ratio: 4 / 3; background: var(--bg-2); }
.vk-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vk-kein-bild { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.vk-nr {
  position: absolute; top: 6px; left: 6px; background: rgba(10,11,14,.86); color: var(--amber);
  font-family: var(--display); padding: 3px 8px; font-size: clamp(13px, 1.4vw, 22px);
}
.vk-platz {
  position: absolute; top: 6px; right: 6px; background: var(--amber); color: #14100a;
  font-family: var(--display); padding: 3px 10px; font-size: clamp(15px, 1.8vw, 28px);
}
.vb-karte figcaption {
  display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px;
  font-size: clamp(13px, 1.4vw, 22px);
}
.vk-stimmen { color: var(--amber); font-family: var(--display); }

@media (max-width: 620px) {
  .vb-treppe { grid-template-columns: 1fr; }
  .feld.schmal { max-width: 100%; }
  .feld-paar { gap: 0; }
  .feld-paar > .feld { flex-basis: 100%; }
}

/* ================================================= Wettkampf & Turnier */
/* Entscheidungsbaum — die Art-Wahl. Große Flächen, im Dunkeln gut greifbar. */
.baum-karte { margin: 0; }
.baum-knopf {
  width: 100%; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 6px;
  background: var(--panel); border: var(--rand); border-left: 3px solid var(--line-hell);
  border-radius: 2px; padding: 18px 20px; min-height: 96px; color: var(--text);
  font: inherit; transition: background .12s, border-color .12s, transform .12s;
}
.baum-knopf:hover { background: var(--panel-2); border-left-color: var(--amber); transform: translateX(2px); }
.baum-knopf:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.baum-name { font-family: var(--display); font-size: 19px; font-weight: 700; }
.baum-text { color: var(--muted); font-size: 13.5px; }
.baum-marke { color: var(--amber); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-top: 2px; }
.baum-marke.bald { color: var(--muted); }
.baum-bald { opacity: .72; }

/* Teilnehmerfeld */
.wk-liste { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wk-liste li { display: flex; align-items: center; gap: 12px; background: var(--panel); border: var(--rand); padding: 8px 12px; }
.wk-nr { min-width: 2.4em; text-align: center; color: var(--amber); font-family: var(--display); font-weight: 700; }
.wk-name { flex: 1; overflow-wrap: anywhere; }
.wk-name .klein { display: block; color: var(--muted); font-size: 12.5px; }
.wk-inline-form { display: flex; gap: 8px; margin-top: 14px; }
.wk-inline-form input { flex: 1; }
.knopf.klein-knopf { padding: 8px 12px; min-height: 40px; }

/* Gruppen & Tabellen */
.wk-gruppen { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .wk-gruppen { grid-template-columns: 1fr 1fr; } }
.wk-gruppe { background: var(--panel); border: var(--rand); padding: 12px 14px; }
.wk-gruppe h3 { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); margin-bottom: 6px; }
.wk-tabelle { font-size: 13.5px; }
.wk-tabelle th, .wk-tabelle td { padding: 6px 8px; }
.wk-tabelle tr.wk-qual td { background: rgba(53,208,127,.07); }
.wk-tabelle tr.wk-qual td:first-child { box-shadow: inset 3px 0 0 var(--gruen); }

.wk-tausch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.wk-tausch select { flex: 1 1 160px; }

/* Spielplan / Partien */
.wk-plan { display: grid; gap: 8px; grid-template-columns: 1fr; margin-top: 6px; }
@media (min-width: 760px) { .wk-plan { grid-template-columns: 1fr 1fr; } }
.wk-partie { background: var(--panel); border: var(--rand); border-left: 3px solid var(--line-hell); padding: 10px 12px; }
.wk-partie.wk-fertig { border-left-color: var(--gruen); }
.wk-partie-kopf { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.wk-feld { letter-spacing: .08em; text-transform: uppercase; }
.wk-partie-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wk-heim, .wk-gast { flex: 1 1 30%; overflow-wrap: anywhere; font-size: 14px; }
.wk-gast { text-align: right; }
.wk-tor { width: 3.2em; text-align: center; }
.wk-saetze { width: 8.5em; text-align: center; }
.wk-doppel { color: var(--muted); }
.wk-ko-stufe { margin-top: 16px; }
.wk-ko-stufe h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-bottom: 6px; }

/* Elimination — Runden */
.wk-runden { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.wk-runde-karte { background: var(--panel); border: var(--rand); border-left: 3px solid var(--line-hell); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.wk-runde-karte.st-beendet { border-left-color: var(--gruen); }
.wk-runde-kopf { display: flex; align-items: center; gap: 12px; }
.wk-runde-titel { flex: 1; display: flex; flex-direction: column; }
.wk-runde-titel .klein { color: var(--muted); font-size: 12.5px; }
.wk-runde-raus { min-width: 2.4em; text-align: right; color: var(--rot); font-family: var(--display); font-weight: 700; }
.wk-raus-form { display: flex; gap: 8px; }
.wk-raus-form input { flex: 1; }

/* Beamer — Elimination: der große Zähler */
.wk-beamer-elim { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.wk-elim-gross { font-family: var(--display); font-weight: 700; color: var(--gruen); font-size: clamp(80px, 30vh, 340px); line-height: .9; }
.wk-elim-label { font-size: clamp(20px, 4vw, 40px); letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin-top: 2vh; }
.wk-elim-von { color: var(--muted); font-size: clamp(15px, 2.4vw, 26px); margin-top: 1vh; }

/* Beamer — Turnier */
.wk-beamer-turnier { flex: 1; display: grid; gap: 3vh; grid-template-columns: 2fr 1fr; padding: 2vh 3vw; align-content: start; }
.wk-beamer-gruppen { display: grid; gap: 2vh; grid-template-columns: 1fr 1fr; }
.wk-beamer-turnier .wk-tabelle { font-size: clamp(14px, 1.6vw, 24px); }
.wk-beamer-naechste h3, .wk-beamer-gruppen .wk-gruppe h3 { color: var(--amber); }
.wk-next-partie { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: var(--rand); }
.wk-next-zeit { color: var(--amber); font-family: var(--display); }
.wk-next-feld { color: var(--muted); font-size: .85em; }
.wk-next-teams { flex: 1; overflow-wrap: anywhere; }
.wk-next-teams em { color: var(--muted); font-style: normal; }
@media (max-width: 820px) {
  .wk-beamer-turnier { grid-template-columns: 1fr; }
  .wk-beamer-gruppen { grid-template-columns: 1fr; }
}

/* Abhak-Knopf in der Runden-Karte */
.wk-abhak-zeile { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wk-abhak-vorschau { color: var(--muted); font-size: 13.5px; }

/* ---- Abhak-Seite (Kampfrichter-Handy, für 1000 Teilnehmer) ---- */
.abhak-kopf {
  position: sticky; top: 0; z-index: 5;
  background: linear-gradient(180deg, var(--bg) 82%, transparent);
  padding: 10px 0 12px; margin-bottom: 6px;
}
.abhak-titel h1 { font-size: clamp(22px, 4vw, 32px); line-height: 1.05; }
.abhak-zaehler { display: flex; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
.abhak-z {
  flex: 1 1 90px; background: var(--panel); border: var(--rand); padding: 8px 12px;
  display: flex; flex-direction: column;
}
.abhak-z.gross { flex: 2 1 140px; border-color: rgba(53,208,127,.35); }
.abhak-z-w { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 6vw, 40px); line-height: 1; }
.abhak-z-k { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.abhak-modus { display: flex; gap: 8px; margin-bottom: 10px; }
.abhak-modus .knopf { flex: 1; }
.abhak-filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.abhak-filter #suche { flex: 2 1 200px; min-height: 48px; }
.abhak-block { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; flex: 1 1 180px; }
.abhak-block input { width: 5em; min-height: 48px; text-align: center; }
.abhak-hinweis { color: var(--muted); font-size: 12.5px; margin-top: 8px; min-height: 1.2em; }

.abhak-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.abhak-label {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  background: var(--panel); border: var(--rand); border-left: 3px solid var(--line-hell);
  padding: 12px 14px; min-height: 56px; user-select: none;
}
.abhak-label:hover { background: var(--panel-2); }
.abhak-box { position: absolute; opacity: 0; width: 1px; height: 1px; }
.abhak-haken {
  flex: 0 0 auto; width: 30px; height: 30px; border: 2px solid var(--line-hell);
  border-radius: 3px; display: grid; place-items: center; background: var(--bg-2);
  transition: background .1s, border-color .1s;
}
.abhak-haken::after {
  content: "✓"; font-size: 20px; font-weight: 800; line-height: 1;
  color: #08130d; opacity: 0; transform: scale(.5); transition: opacity .1s, transform .1s;
}
/* Markiert-Zustand — Farbe nach Modus: raus = rot, bleibt = grün */
.abhak[data-modus="raus"]  .abhak-box:checked ~ .abhak-haken { background: var(--rot);   border-color: var(--rot); }
.abhak[data-modus="bleibt"] .abhak-box:checked ~ .abhak-haken { background: var(--gruen); border-color: var(--gruen); }
.abhak-box:checked ~ .abhak-haken::after { opacity: 1; transform: scale(1); }
.abhak[data-modus="raus"]  .ist-markiert .abhak-label,
.abhak[data-modus="raus"]  .abhak-label:has(.abhak-box:checked) { border-left-color: var(--rot); }
.abhak[data-modus="bleibt"] .ist-markiert .abhak-label,
.abhak[data-modus="bleibt"] .abhak-label:has(.abhak-box:checked) { border-left-color: var(--gruen); }
.abhak-box:focus-visible ~ .abhak-haken { outline: 2px solid var(--amber); outline-offset: 2px; }
.abhak-nr { flex: 0 0 auto; min-width: 2.6em; text-align: center; color: var(--amber); font-family: var(--display); font-weight: 700; }
.abhak-name { flex: 1; overflow-wrap: anywhere; font-size: 16px; }
.abhak-abschluss { margin-top: 18px; }

/* ---- Darts: Übersicht ---- */
.dm-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dm-listz a {
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text);
  background: var(--panel); border: var(--rand); border-left: 3px solid var(--line-hell);
  padding: 12px 14px; min-height: 52px;
}
.dm-listz a:hover { background: var(--panel-2); border-left-color: var(--amber); }
.dm-listz.fertig a { border-left-color: var(--gruen); }
.dm-listz-typ { font-family: var(--display); font-weight: 700; color: var(--amber); min-width: 3.5em; }
.dm-listz-spieler { flex: 1; overflow-wrap: anywhere; }
.dm-listz-sieger { font-weight: 700; }
.wk-darts-form { margin-top: 6px; }

/* ---- Darts: Scoring ---- */
.dm-spieler { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 12px; }
.dm-karte {
  background: var(--panel); border: var(--rand); border-top: 3px solid var(--line-hell);
  padding: 12px 14px; text-align: center;
}
.dm-karte.aktiv { border-top-color: var(--amber); background: linear-gradient(180deg, rgba(255,176,32,.10), transparent); }
.dm-karte.sieger { border-top-color: var(--gruen); }
.dm-k-name { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.dm-pfeil { color: var(--amber); }
.dm-k-rest { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 12vw, 72px); line-height: 1; margin: 4px 0; }
.dm-karte.aktiv .dm-k-rest { color: var(--amber); }
.dm-k-fuss { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12.5px; }
.dm-checkout { text-align: center; color: var(--gruen); font-size: 15px; margin-bottom: 12px; }
.dm-checkout b { color: var(--text); }

.dm-sieger { text-align: center; padding: 24px; background: var(--panel); border: var(--rand); border-top: 3px solid var(--gruen); margin-bottom: 12px; }
.dm-sieger-krone { display: block; font-size: 44px; }
.dm-sieger #dm-sieger-name, .dm-sieger span[id] { font-family: var(--display); font-weight: 700; font-size: 28px; }
.dm-sieger-sub { display: block; color: var(--muted); font-size: 14px; }

/* Nummernpad — große Tasten für den Daumen im Halbdunkel */
.dm-pad { max-width: 420px; margin: 0 auto; }
.dm-anzeige {
  font-family: var(--display); font-weight: 700; font-size: 44px; text-align: center;
  background: var(--bg-2); border: var(--rand); padding: 10px; margin-bottom: 10px;
  min-height: 64px; letter-spacing: .04em;
}
.dm-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.dm-q { min-height: 46px; padding: 8px; }
.dm-ziffern { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dm-ziff {
  min-height: 60px; font-family: var(--display); font-weight: 700; font-size: 24px;
  background: var(--panel-2); color: var(--text); border: var(--rand); border-radius: 2px; cursor: pointer;
}
.dm-ziff:hover { background: var(--panel); border-color: var(--line-hell); }
.dm-ziff:active { background: var(--amber); color: #14100a; }
.dm-ok { background: var(--amber); color: #14100a; border-color: var(--amber); }
.dm-c { color: var(--rot); }
.dm-aktionen { display: flex; gap: 8px; margin-top: 10px; }
.dm-aktionen .knopf { flex: 1; }

/* ---- Darts: Beamer ---- */
.db-buehne { min-height: 100vh; display: flex; flex-direction: column; padding: 2vh 3vw; }
.db-mitte { flex: 1; display: flex; align-items: center; justify-content: center; }
.db-spieler { display: grid; gap: 3vw; grid-template-columns: repeat(auto-fit, minmax(30%, 1fr)); width: 100%; }
.db-karte { text-align: center; padding: 3vh 2vw; border: 1px solid var(--line); background: var(--panel); }
.db-karte.aktiv { border-color: var(--amber); background: linear-gradient(180deg, rgba(255,176,32,.12), transparent); }
.db-karte.sieger { border-color: var(--gruen); }
.db-name { font-size: clamp(20px, 3vw, 40px); font-weight: 600; margin-bottom: 1vh; }
.db-karte.aktiv .db-name { color: var(--amber); }
.db-rest { font-family: var(--display); font-weight: 700; font-size: clamp(70px, 18vw, 200px); line-height: .9; }
.db-fuss { display: flex; justify-content: space-around; gap: 2vw; color: var(--muted); font-size: clamp(13px, 1.8vw, 24px); margin-top: 1.5vh; }
.db-checkout { text-align: center; color: var(--gruen); font-size: clamp(16px, 2.4vw, 32px); padding: 2vh 0; min-height: 1.4em; }
.db-checkout b { color: var(--text); }

/* Gastseite */
.wk-gast-elim { text-align: center; padding: 4vh 0; }
.wk-gast-elim .wk-elim-gross { font-size: clamp(72px, 34vw, 200px); }
.wk-gast-gruppe, .wk-gast-naechste { margin-bottom: 20px; }
.wk-gast-gruppe h2, .wk-gast-naechste h2 { font-size: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); margin-bottom: 8px; }

/* ==================================================================== Branding
   Eine Schicht für alle Ansichten: Gast, Beamer, Druck. Das Admin bleibt
   bewusst unberührt — Regiepult im dunklen Saal.

   Die beiden Ebenen liegen FIXIERT hinter dem Inhalt (z-index negativ, damit
   sie über der Canvas-Fläche, aber unter allem Sichtbaren liegen). Bewusst als
   echte Elemente statt `background-attachment: fixed` — das ignoriert
   iOS-Safari, und Gastseiten werden fast nur auf dem Handy geöffnet. */
.brand-bild, .brand-schleier {
  position: fixed; inset: 0; pointer-events: none;
}
.brand-bild {
  z-index: -2;
  background-image: var(--brand-quer);
  background-size: cover; background-position: center;
  /* transform beim Weichzeichnen im Element selbst: sonst zeigt der Rand
     durchsichtige Kanten, wenn der Blur über die Fläche hinausrechnet */
  transform-origin: center;
}
@media (orientation: portrait) {
  .brand-bild { background-image: var(--brand-hoch, var(--brand-quer)); }
}
/* „Ganz zeigen": nichts wird abgeschnitten. Der freie Rand bekommt die aus dem
   Bild gezogene Randfarbe — schwarze Balken sehen nach Fehler aus, die eigene
   Randfarbe des Bildes sieht nach Absicht aus. */
.brand-bild.ganz { background-size: contain; background-repeat: no-repeat; }
/* Hochkant sitzt das Plakat oben statt in der Mitte: die Inhaltskarten laufen
   dann über die Füllfarbe und nicht über das Motiv. */
@media (orientation: portrait) {
  .brand-bild.ganz { background-position: center top; }
}
.brand-schleier { z-index: -1; }

/* Kopf der Gastseite wird durchscheinend, sobald ein Bild dahinterliegt —
   sonst deckt der volle Panel-Ton genau das Key Visual ab. */
.gast-kopf.gebrandet {
  background: rgba(16, 18, 22, .74);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.brand-logo-gast {
  display: block; margin: 0 auto 10px; max-height: 72px; max-width: 70%;
  object-fit: contain;
}
.brand-logo-beamer {
  position: fixed; top: 2.4vh; right: 2.4vw; z-index: 5;
  max-height: 9vh; max-width: 22vw; object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.55));
}

/* -------------------------------------------------------- Sponsorenleiste */
.brand-sponsoren {
  display: flex; align-items: center; justify-content: center;
  gap: 10px 18px; flex-wrap: wrap;
  margin-top: 26px; padding: 12px 14px;
  border-top: var(--rand);
  background: rgba(10, 11, 14, .55);
}
.brand-sponsoren .bs-titel {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  /* auf hellen Fotos muss auch die Beischrift noch lesbar sein */
  color: #b9c0c9;
}
.brand-sponsoren .bs-eintrag { display: inline-flex; align-items: center; }
.brand-sponsoren img { max-height: 34px; max-width: 148px; object-fit: contain; display: block; }
.brand-sponsoren .haupt img { max-height: 52px; max-width: 210px; }
.brand-sponsoren .haupt { font-family: var(--display); font-weight: 700; font-size: 18px; }

/* Auf dem Beamer klebt die Leiste am unteren Bildrand. Der Platz dafür wird
   am <body> reserviert (Klasse `mit-sponsoren`) statt zu hoffen, dass nichts
   überlappt — die Bühnen der Module sind unterschiedlich hoch. */
.brand-sponsoren.fest {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  margin: 0; border-top: none;
  background: linear-gradient(180deg, transparent, rgba(6, 7, 10, .82) 45%);
  padding: 26px 3vw 2.2vh;
}
.brand-sponsoren.fest img { max-height: 5.2vh; max-width: 16vw; }
.brand-sponsoren.fest .haupt img { max-height: 7.4vh; max-width: 22vw; }
.mit-sponsoren main { padding-bottom: calc(3vh + 96px); }
.mit-brandlogo .beamer-buehne .oben-links,
.mit-brandlogo .tb-kopf, .mit-brandlogo .vb-kopf { padding-right: 24vw; }

@media print {
  /* Papier trägt kein Foto — Tinte und Lesbarkeit. Logo und Sponsoren bleiben. */
  .brand-bild, .brand-schleier { display: none !important; }
  .brand-sponsoren { background: none; border-top: 1px solid #ccc; }
  .brand-sponsoren .bs-titel { color: #555; }
}

/* ------------------------------------------------------- Branding-Verwaltung */
.brand-vorschau {
  position: relative; overflow: hidden; border: var(--rand);
  min-height: 260px; display: grid; background: var(--bg-2);
}
.brand-vorschau .bv-bild {
  position: absolute; inset: -8px; background-size: cover; background-position: center;
}
.brand-vorschau .bv-schleier { position: absolute; inset: 0; }
.brand-vorschau .bv-inhalt {
  position: relative; z-index: 1; padding: 26px 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.bv-logo { max-height: 56px; max-width: 60%; object-fit: contain; margin-bottom: 6px; }
.bv-oben { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #c4cad2; }
.bv-titel { font-family: var(--display); font-size: 30px; }
.bv-text { color: #c4cad2; font-size: 14px; }
.bv-sponsoren {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  justify-content: center; margin-top: 14px;
}
.bv-sponsoren img { max-height: 30px; max-width: 120px; object-fit: contain; }
.bv-sponsoren span { font-size: 13px; color: #d3d8de; }
.bv-leer {
  position: absolute; inset: auto 0 0 0; margin: 0; padding: 8px;
  text-align: center; font-size: 13px; color: var(--muted);
}

.brand-felder { display: grid; gap: 14px; grid-template-columns: 1fr; }
.brand-feld { border: var(--rand); background: var(--bg-2); padding: 14px; }
.brand-feld h3 { font-size: 15px; margin-bottom: 10px; }
.bf-bild {
  position: relative; aspect-ratio: 16 / 9; background: #0c0e12;
  display: grid; place-items: center; margin-bottom: 12px; overflow: hidden;
}
.bf-bild img { width: 100%; height: 100%; object-fit: contain; }
.bf-bild img.ist-geerbt { opacity: .55; }
.bf-marke {
  position: absolute; bottom: 6px; right: 6px; font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  background: rgba(10,11,14,.8); padding: 3px 7px;
}
.bf-leer { color: var(--muted); font-size: 13px; }
.brand-feld .feld { margin-bottom: 0; }

#optik.gedimmt { opacity: .45; }
/* 44 px, nicht kleiner: die Regler werden auch am Handy bedient */
.feld input[type="range"] { width: 100%; accent-color: var(--amber); height: 44px; }
.feld span b { color: var(--amber); font-variant-numeric: tabular-nums; }

.sponsor-liste { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 22px; }
.sponsor-karte {
  display: flex; align-items: center; gap: 14px;
  border: var(--rand); background: var(--bg-2); padding: 12px 14px;
}
.sp-bild {
  width: 110px; height: 56px; flex: none; background: #0c0e12;
  display: grid; place-items: center; overflow: hidden;
}
.sp-bild img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sp-text { flex: 1; min-width: 0; }
.sp-text h3 { font-size: 16px; overflow-wrap: anywhere; }
.sponsor-form { border-top: var(--rand); padding-top: 18px; }

/* Auswahl aus der Vorlage: Schalter direkt an der Karte, damit man beim
   Anhaken das Logo sieht und nicht nur einen Namen. Tippfläche mindestens
   44 px hoch — das wird am Handy im Saal bedient. */
.sp-schalter {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; margin-right: 16px; font-size: 14px; cursor: pointer;
}
.sp-schalter input { width: 18px; height: 18px; accent-color: var(--amber); }
/* Abgewählt bleibt sichtbar, nur zurückgenommen — ausgeblendet würde man beim
   Suchen daran vorbeiscrollen und ihn für gelöscht halten. */
.sponsor-karte.abgewaehlt { opacity: .5; }
/* Fieldset trägt hier nur die Gruppierung für Vorleser, keine Optik. */
.sp-gruppe { border: 0; padding: 0; margin: 0; min-width: 0; }
.sp-gruppe-titel {
  padding: 0; margin-bottom: 10px; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.sp-keiner { margin: 4px 0 14px; color: var(--muted); }

@media (min-width: 760px) {
  .brand-felder { grid-template-columns: repeat(3, 1fr); }
  .sponsor-liste { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------- Branding: Anzeigeart + Doppelvorschau
   Beide Formate nebeneinander, weil ein Bild im einen Format passen und im
   anderen abgeschnitten sein kann. Ein quadratisches Plakat verliert füllend
   auf 16:9 rund 44 % der Höhe — genau das muss man sehen, bevor es der Saal sieht. */
.vorschau-paar { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
.bv-rahmen { margin: 0; }
.bv-rahmen figcaption {
  margin-top: 8px; font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.bv-rahmen.quer .brand-vorschau { aspect-ratio: 16 / 9; min-height: 0; }
.bv-rahmen.hoch .brand-vorschau { aspect-ratio: 9 / 16; min-height: 0; max-height: 420px; margin: 0 auto; }
.bv-bild.ganz { inset: 0; background-size: contain; background-repeat: no-repeat; }
.bv-rahmen.hoch .bv-titel { font-size: 22px; }

.modus-wahl { display: grid; gap: 10px; grid-template-columns: 1fr; margin-bottom: 16px; }
.modus {
  display: grid; gap: 4px; padding: 14px; cursor: pointer;
  border: var(--rand); background: var(--bg-2);
  border-left: 3px solid transparent;
}
.modus:hover { background: var(--panel-2); }
.modus.an { border-left-color: var(--amber); background: var(--panel); }
.modus input { position: absolute; opacity: 0; pointer-events: none; }
.modus:focus-within { outline: 2px solid var(--amber); outline-offset: 2px; }
.modus .m-name { font-family: var(--display); font-weight: 700; font-size: 15px; }
.modus.an .m-name { color: var(--amber); }
.modus .m-text { color: var(--muted); font-size: 13.5px; }

@media (min-width: 760px) {
  .vorschau-paar { grid-template-columns: 2fr 1fr; }
  .modus-wahl { grid-template-columns: repeat(2, 1fr); }
}

/* ------------------------------------------- Branding-Bild am Event sichtbar
   Zweck: auf einen Blick sehen, ob zu einem Event ein Bild hochgeladen wurde.
   Deshalb wird ein GEERBTES Bild blass und beschriftet gezeigt — sonst sagt
   die Kachel das Gegenteil dessen, wofür sie da ist. */
.karte-titel { display: flex; align-items: flex-start; gap: 12px; }
.karte-titel h2 { flex: 1; min-width: 0; }
.event-bild {
  flex: none; width: 74px; height: 42px; overflow: hidden;
  border: var(--rand); background: #0c0e12;
}
.event-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-bild.geerbt img { opacity: .38; filter: grayscale(.5); }

.cockpit-kopf .kopf-zeile {
  display: flex; align-items: flex-start; gap: 16px; margin-bottom: 10px;
}
.cockpit-kopf .kopf-zeile h1 { flex: 1; min-width: 0; margin-bottom: 0; }
.kopf-bild {
  flex: none; position: relative; display: block; text-decoration: none;
  width: clamp(96px, 22vw, 168px); aspect-ratio: 16 / 9;
  border: var(--rand); background: #0c0e12; overflow: hidden;
}
.kopf-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kopf-bild:hover { border-color: var(--line-hell); }
.kopf-bild:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.kopf-bild.geerbt img { opacity: .4; filter: grayscale(.5); }
.kopf-bild .kb-marke {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 5px;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  text-align: center; color: var(--muted); background: rgba(10,11,14,.86);
}

/* ------------------------------------------ Übersicht aller Branding-Vorlagen */
.galerie-vorlagen { display: grid; gap: 14px; grid-template-columns: 1fr; }
.vorlage-kachel { margin: 0; border: var(--rand); background: var(--bg-2); }
.vlk-bild { aspect-ratio: 16 / 9; background: #0c0e12; display: grid; place-items: center; }
/* contain, nicht cover: hier soll man das MOTIV sehen, nicht einen Ausschnitt davon */
.vlk-bild img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.vorlage-kachel figcaption { padding: 10px 12px 12px; }
.vlk-masse {
  display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.vlk-verwendung { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.vlk-verwendung li { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.vlk-verwendung strong, .vlk-verwendung a { color: var(--text); }

@media (min-width: 620px) {
  .galerie-vorlagen { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .galerie-vorlagen { grid-template-columns: repeat(3, 1fr); }
}
.seiten-kopf h1 .zahl { color: var(--amber); font-size: .6em; }
.sammlung-suche { max-width: 420px; margin: 0 0 14px; }
/* Auswahl aus der Sammlung: Dialog mit Bild-Kacheln als Knöpfe */
.sammlung-picker { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .sammlung-picker { grid-template-columns: repeat(3, 1fr); } }
.sp-kachel {
  padding: 0; border: var(--rand); background: var(--bg-2); cursor: pointer;
  display: flex; flex-direction: column; text-align: left; color: inherit;
}
.sp-kachel:hover, .sp-kachel:focus-visible { border-color: var(--amber); }
.sp-kachel img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.sp-kachel span { padding: 8px 10px; font-size: 13px; color: var(--muted); }
.sammlung-dialog {
  max-width: 960px; width: 92vw; max-height: 88vh; overflow: auto;
  border: var(--rand); background: var(--panel); color: var(--text); padding: 22px;
  /* Ohne das scrollt am Ende der Kachelliste die SEITE dahinter weiter —
     auf dem Handy verliert man dabei die Stelle, an der man war. */
  overscroll-behavior: contain;
}
.sammlung-dialog::backdrop { background: rgba(0,0,0,.6); }

/* ------------------------------------------------------------ Event löschen
   Die Löschzone sitzt bewusst UNTER dem Duplizieren und trägt ein Eingabefeld
   statt nur eines Knopfes: ein Klick auf „wirklich?" passiert im Betrieb aus
   Versehen, ein abgetippter Eventname nicht. */
.gefahrenzone.loeschzone { align-items: flex-start; }
.loeschzone .txt p + p { margin-top: 8px; }
.loesch-form { flex: 1 1 280px; }
.loesch-form .feld { margin-bottom: 6px; }
.loesch-form input[type="text"] {
  width: 100%; border: 1px solid #5d2a2a; background: #150f11; color: var(--text);
  padding: 12px 13px; min-height: 48px; font-family: var(--body); font-size: 16px;
}
.loesch-form input[type="text"]:focus { border-color: var(--rot); outline: none; }
.loesch-form .melder { margin: 8px 0; }
.loesch-form button { margin-top: 8px; }

/* ==================================================== Quiz Night (Stufe 7)
   Regiepult wie überall — die Druckstücke sind hell und bringen ihr eigenes
   CSS mit (Papier ist kein Regiepult). Hier steht nur das Admin. */

/* ---- Schritt 1: Modus ---- */
.qz-modi { border: var(--rand); padding: 14px 16px; margin-bottom: 18px; }
.qz-modi legend {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber); padding: 0 8px;
}
.qz-legende { color: var(--muted); font-size: 13.5px; margin: 0 0 12px; max-width: 62ch; }
.qz-modus {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px; border: 1px solid transparent; cursor: pointer;
  min-height: 48px;
}
.qz-modus:hover { border-color: #3a3f49; background: var(--panel-2); }
.qz-modus:focus-within { border-color: var(--amber); }
.qz-modus input { margin-top: 4px; width: 20px; height: 20px; accent-color: var(--amber); }
.qz-modus-txt { display: grid; gap: 3px; }
.qz-modus-txt b { font-size: 15px; }
.qz-modus-txt em { font-style: normal; color: var(--muted); font-size: 13.5px; }
.qz-modus.gesperrt { opacity: .5; cursor: not-allowed; }

/* ---- Taktplan: gerechnet, nicht geschätzt ---- */
.qz-plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.qz-plan li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 9px 12px; background: var(--panel); border-left: 3px solid #2a2f38;
}
.qz-plan-zeit {
  font-variant-numeric: tabular-nums; color: var(--amber);
  min-width: 62px; font-size: 13px; letter-spacing: .06em;
}
.qz-plan-titel { overflow-wrap: anywhere; }
.qz-plan-pause { border-left-color: var(--gruen); }
.qz-plan-pause .qz-plan-zeit { color: var(--gruen); }
.qz-plan-runde { border-left-color: var(--amber); }

/* ---- Rundenliste ---- */
.qz-runden { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.qz-rundenz a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; background: var(--panel); border: var(--rand);
  text-decoration: none; color: inherit; min-height: 62px;
}
.qz-rundenz a:hover { background: var(--panel-2); border-color: var(--amber); }
.qz-rundenz-nr {
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 22px;
  color: var(--amber); min-width: 28px; font-variant-numeric: tabular-nums;
}
.qz-rundenz-mitte { display: grid; gap: 3px; flex: 1; min-width: 0; }
.qz-rundenz-mitte b { font-size: 16px; overflow-wrap: anywhere; }
.qz-rundenz-mitte em { font-style: normal; color: var(--muted); font-size: 13px; }
.qz-rundenz-zahl {
  font-variant-numeric: tabular-nums; font-size: 14px;
  padding: 5px 10px; border: 1px solid #3a3f49; white-space: nowrap;
}
.qz-rundenz-zahl.voll { color: var(--gruen); border-color: rgba(53,208,127,.45); }
.qz-rundenz-zahl.offen { color: var(--amber); border-color: rgba(255,176,32,.4); }

/* ---- Druckstücke ---- */
.qz-druck { display: grid; gap: 10px; grid-template-columns: 1fr; }
.qz-druckstueck {
  display: grid; gap: 4px; padding: 16px; min-height: 62px;
  background: var(--panel); border: var(--rand); border-left: 3px solid var(--amber);
  text-decoration: none; color: inherit;
}
.qz-druckstueck:hover { background: var(--panel-2); }
.qz-druckstueck b { font-size: 16px; }
.qz-druckstueck em { font-style: normal; color: var(--muted); font-size: 13.5px; }

/* ---- Fragen einer Runde ---- */
.qz-fragen { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: qz; }
.qz-fragez {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; background: var(--panel); border: var(--rand);
}
.qz-fragez-nr {
  font-family: "Space Grotesk", sans-serif; font-weight: 700; color: var(--amber);
  min-width: 22px; font-variant-numeric: tabular-nums;
}
.qz-fragez-mitte { display: grid; gap: 5px; flex: 1; min-width: 0; }
.qz-fragez-mitte b { font-size: 15px; overflow-wrap: anywhere; }
.qz-fragez-mitte em { font-style: normal; color: var(--muted); font-size: 13px; }
.qz-opt { display: inline-block; margin-right: 14px; white-space: normal; }
.qz-opt.richtig { color: var(--gruen); font-weight: 600; }
.qz-loesung { color: var(--gruen) !important; }
.qz-medien { color: var(--amber) !important; }

/* ---- Fragenpool ---- */
.qz-pool {
  list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px;
  max-height: 62vh; overflow-y: auto;
}
.qz-poolz { background: var(--panel); border: var(--rand); }
.qz-poolz > label {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; cursor: pointer; min-height: 48px;
}
.qz-poolz > label:hover { background: var(--panel-2); }
.qz-poolz input[type="checkbox"] {
  width: 22px; height: 22px; margin-top: 2px; accent-color: var(--amber); flex: none;
}
.qz-poolz-txt { display: grid; gap: 4px; min-width: 0; }
.qz-poolz-txt b { font-size: 15px; overflow-wrap: anywhere; }
.qz-poolz-txt em { font-style: normal; color: var(--muted); font-size: 13px; }
.qz-poolz.gestellt { border-left: 3px solid var(--rot); }
.qz-poolz.gesperrt { opacity: .55; }
.qz-poolz > .qz-poolz-txt { padding: 12px 14px; }
.qz-poolz-aktionen { display: flex; gap: 8px; padding: 0 14px 12px; flex-wrap: wrap; }

/* ---- Bestand nach Kategorie ---- */
.qz-stat { display: flex; flex-wrap: wrap; gap: 8px; }
.qz-statz {
  display: grid; gap: 2px; padding: 10px 14px; min-height: 48px;
  background: var(--panel); border: var(--rand); text-decoration: none; color: inherit;
}
.qz-statz:hover { border-color: var(--amber); }
.qz-statz.aktiv { border-color: var(--amber); background: var(--panel-2); }
.qz-statz b { font-family: "Space Grotesk", sans-serif; font-size: 19px; color: var(--amber); }
.qz-statz em { font-style: normal; font-size: 12.5px; color: var(--muted); }

.qz-meldung {
  border: 1px solid rgba(255,176,32,.4); background: rgba(255,176,32,.07);
  color: var(--amber); padding: 12px 14px; margin-bottom: 18px; font-size: 14px;
}

.qz-schalterzeile {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0 18px; cursor: pointer;
}
.qz-schalterzeile input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--amber); }
.qz-schalterzeile span { font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 68ch; }
.qz-schalterzeile b { color: var(--text); }

@media (min-width: 700px) {
  .qz-druck { grid-template-columns: repeat(3, 1fr); }
}

/* ===================================================== Beamer-Regie (Ablauf) */

/* ---- Sponsorenschleife auf der Leinwand
   Ein Sponsor formatfüllend, die übrigen liegen unsichtbar übereinander und
   werden nur ein- und ausgeblendet — kein Nachladen beim Wechsel, also auch
   kein kurzes Loch, wenn das Netz im Saal hakt. */
/* ⚠️ Diese Ansicht läuft auf einem 65-Zoll-Fernseher (Christian, 22.07.2026).
   Das Logo bekommt die ganze Fläche: schmale Ränder, kein Deckel auf der Höhe.
   Vorher stand das Bild bei `max-height: 44vh` in einem auf 62vh gedeckelten
   Band — auf der Leinwand blieb über die Hälfte leer. */
.sp-buehne {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  /* Safe Areas: dieselbe Adresse wird auch mal am Handy geöffnet, um zu sehen,
     was gerade läuft — quer liegend schöbe die Notch sonst über das Logo. */
  padding: max(2.4vh, env(safe-area-inset-top)) max(2.4vw, env(safe-area-inset-right))
           max(2.4vh, env(safe-area-inset-bottom)) max(2.4vw, env(safe-area-inset-left));
  text-align: center; gap: 1.4vh;
}
.sp-titel {
  font-size: clamp(12px, 1.6vw, 20px); letter-spacing: .3em;
  text-transform: uppercase; color: var(--muted); margin: 0;
}
/* `min-height: 0` ist hier Pflicht: ein Flex-Kind schrumpft sonst nicht unter
   seine Inhaltshöhe, und das Band nähme sich mehr als die Bühne hergibt. */
.sp-band { position: relative; width: 100%; flex: 1; min-height: 0; }
.sp-karte {
  position: absolute; inset: 0; margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.6vh; opacity: 0; visibility: hidden;
  transform: scale(.97);
  transition: opacity 620ms ease, transform 620ms ease, visibility 0s linear 620ms;
}
.sp-karte.da {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 620ms ease, transform 620ms ease, visibility 0s;
}
/* Kein fester Deckel mehr — das Bild füllt, was das Band ihm lässt. */
.sp-karte img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; flex: 0 1 auto; min-height: 0;
}
.sp-karte figcaption {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(24px, 4.6vw, 62px); line-height: 1.05;
}
/* Liegt ein Logo vor, trägt es den Namen selbst — eine Zeile darunter wäre
   dieselbe Information ein zweites Mal und nähme dem Bild die Höhe. Für
   Vorleser bleibt sie erhalten, nur unsichtbar. */
.sp-karte figcaption.im-bild {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sp-karte figcaption.nur-text { font-size: clamp(34px, 8vw, 116px); }
.sp-karte.haupt figcaption { font-size: clamp(28px, 5.4vw, 76px); }
.sp-rang {
  font-size: clamp(11px, 1.3vw, 16px); letter-spacing: .26em;
  text-transform: uppercase; color: var(--amber);
}
.sp-punkte { display: flex; gap: 12px; margin: 0; }
.sp-punkte span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.22); transition: background 400ms ease, transform 400ms ease;
}
.sp-punkte span.an { background: var(--amber); transform: scale(1.35); }
.sp-leer { color: var(--muted); font-size: clamp(16px, 2.4vw, 26px); }

/* ---- Ablaufrahmen: zwei Vollbild-iframes, die überblendet werden */
.lauf-body { margin: 0; overflow: hidden; background: var(--bg); }
.lauf-rahmen { position: fixed; inset: 0; }
.lauf-bild {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; opacity: 0; transition: opacity 520ms ease; pointer-events: none;
}
.lauf-bild.da { opacity: 1; }
.lauf-fuss {
  position: fixed; bottom: 2vh; left: 50%; transform: translateX(-50%);
  z-index: 8; display: flex; align-items: center; gap: 12px;
  background: rgba(10,11,14,.82); border: var(--rand); padding: 8px 14px;
  font-size: 13px; color: var(--muted); transition: opacity 400ms ease;
}
/* Auf der Leinwand hat die Bedienung nichts zu suchen — sie verschwindet von
   selbst und kommt bei der kleinsten Bewegung zurück. */
.lauf-fuss.weg { opacity: 0; pointer-events: none; }
/* ⚠️ Ausgeblendet bleibt der Knopf per Tastatur erreichbar — ohne diese Regel
   wanderte der Fokus auf etwas Unsichtbares. */
.lauf-fuss.weg:focus-within { opacity: 1; pointer-events: auto; }
.lf-punkt {
  width: 9px; height: 9px; border-radius: 50%; background: var(--line-hell);
}
.lf-punkt.an { background: var(--gruen); box-shadow: 0 0 0 4px rgba(53,208,127,.15); }

/* ---- Regiepult (Admin, bleibt anthrazit) */
.rg-plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rg-zeile {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border: var(--rand); border-left: 3px solid var(--line-hell);
  background: var(--panel); padding: 12px 14px;
}
.rg-zeile.jetzt { border-left-color: var(--amber); background: var(--panel-2); }
.rg-zeile.aus { opacity: .55; border-left-style: dashed; }
.rg-nr {
  font-family: var(--display); font-weight: 700; font-size: 18px;
  color: var(--muted); min-width: 24px;
}
.rg-quelle { flex: 1 1 220px; display: flex; flex-direction: column; gap: 3px; }
.rg-quelle strong { font-size: 16px; }
.rg-marke {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--amber);
}
.rg-warnung { font-size: 12.5px; color: var(--rot); }
.rg-zeit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rg-zeit input {
  width: 92px; margin: 0;
  background: var(--bg-2); color: var(--text); border: var(--rand);
  border-radius: 2px; padding: 8px 10px; font: inherit; font-size: 15px;
  min-height: 44px;
  /* Sekunden stehen untereinander — mit gleichen Ziffernbreiten lesbar. */
  font-variant-numeric: tabular-nums;
}
.rg-zeit input:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.rg-einheit { color: var(--muted); font-size: 13px; }
.rg-versteckt {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.rg-akt { display: flex; gap: 6px; }
.rg-akt form { margin: 0; }
.rg-fuss {
  margin-top: 16px; display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  border: var(--rand); background: var(--panel); padding: 14px;
}
.rg-fuss .rg-zeit { flex: 1 1 320px; align-items: flex-end; }
.rg-fuss label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.rg-sponsoren { display: flex; gap: 12px; flex-wrap: wrap; }
.rgs {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border: var(--rand); background: var(--panel); padding: 10px 14px;
}
.rgs.haupt { border-color: var(--amber-tief); }
.rgs img { max-height: 32px; max-width: 120px; object-fit: contain; }
.rgs-name { font-size: 14.5px; }

/* Touch-Ziele bleiben auch am Handy groß genug — das Pult wird im Saal bedient. */
@media (max-width: 640px) {
  .rg-akt .knopf { min-height: 44px; padding: 8px 14px; }
  .rg-zeit input { width: 100%; min-height: 44px; }
  .rg-zeit { flex: 1 1 100%; }
}

/* ============================== Utilities (ersetzen Inline-Styles, 22.07.) */
.gedaempft { color: var(--muted); }
.inline-form { display: inline; }
.seiten-kopf.dicht { margin-bottom: 8px; }
.aktionen.links { margin-left: 0; }
.fakt .w.wert-klein { font-size: 15px; }
.modul .wenn-aus { color: var(--muted); font-size: 13px; }

/* Suchfeld der Event-Übersicht — filtert im Browser, ohne Neuladen */
.suchfeld {
  min-height: 48px; padding: 10px 14px; min-width: 220px;
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 2px;
  font-family: var(--body); font-size: 15px;
}
.suchfeld:focus { border-color: var(--amber); outline: none; }
.karte.such-versteckt { display: none; }
.such-leer { margin-top: 14px; }
.such-leer[hidden] { display: none; }

/* Rechtliches: Fußzeile der Gastseiten + Textseiten */
.rechts-fuss {
  margin-top: 34px; padding-top: 14px; border-top: var(--rand);
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
  font-size: 12.5px;
}
.rechts-fuss a { color: var(--muted); text-decoration: none; }
.rechts-fuss a:hover { color: var(--text); text-decoration: underline; }
.textseite { max-width: 720px; margin: 0 auto; }
.textseite h2 { font-size: 18px; margin: 26px 0 8px; }
.textseite p, .textseite li { color: var(--text); font-size: 15px; line-height: 1.65; }
.textseite .nachtrag { color: var(--amber); background: rgba(255,176,32,.08); padding: 1px 6px; }

/* ==================== Gast-Anmeldung: Bühne + Dialog (22.07., Christians Idee)
   Das Plakat ist der Star und bleibt frei sichtbar — auf der Seite steht nur
   EIN großer Knopf. Das Formular wohnt in einem nativen <dialog>: eigene,
   immer lesbare Fläche, innen scrollbar (erwartbare Bedienung), auf dem Handy
   fast bildschirmfüllend. Gleiches Muster später fürs Kiosk-Terminal. */
.anmelde-buehne {
  /* Ohne Seitenkopf trägt das Plakat die Bühne allein — der Knopf steht im
     unteren Drittel, das Motiv bleibt frei. */
  min-height: 66dvh;
  display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; gap: 12px; padding: 24px 0 8px;
}
.anmelde-cta {
  width: min(360px, 100%); min-height: 68px;
  font-size: 19px; letter-spacing: .14em;
  animation: cta-puls 2.8s ease-in-out infinite;
}
@keyframes cta-puls {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,176,32,.25), 0 8px 30px -14px rgba(255,176,32,.9); }
  50%      { box-shadow: 0 0 0 1px rgba(255,176,32,.5),  0 10px 48px -10px rgba(255,176,32,1); }
}
/* Der Zähler steht direkt auf dem Plakat — ohne eigene Fläche wäre er auf
   hellen Stellen unlesbar (genau der Fehler, den der Dialog behebt). */
.anmelde-buehne .gast-zaehler {
  margin: 0; padding: 8px 14px;
  background: rgba(10, 11, 14, .72); border: var(--rand); border-radius: 2px;
  color: var(--text);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.ad-inhalt .hinweis-zeile { margin-top: 12px; }

.anmelde-dialog {
  border: 1px solid var(--line-hell); border-top: 3px solid var(--amber);
  border-radius: 2px; background: var(--panel); color: var(--text);
  padding: 0; width: min(560px, 94vw);
  max-height: min(86dvh, 860px);
  display: flex; flex-direction: column;
}
.anmelde-dialog:not([open]) { display: none; }
.anmelde-dialog::backdrop {
  background: rgba(6, 7, 10, .72);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.anmelde-dialog[open] { animation: dialog-rein 240ms cubic-bezier(.2, .7, .3, 1); }
@keyframes dialog-rein { from { opacity: 0; transform: translateY(14px); } }

.ad-kopf {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 16px 20px 14px; border-bottom: var(--rand); flex: none;
}
.ad-kopf-text { min-width: 0; }
.ad-kopf-text .beischrift { margin-bottom: 2px; }
.ad-logo { display: block; max-height: 44px; max-width: 180px; object-fit: contain; margin-bottom: 8px; }
.ad-titel { font-family: var(--display); font-weight: 700; font-size: 20px; margin: 0; overflow-wrap: anywhere; }
/* Beschreibungstext des Events — Zeilenumbrüche aus der Eingabe bleiben erhalten. */
.ad-text {
  margin: 0 0 16px; color: var(--muted); font-size: 14.5px; line-height: 1.6;
  white-space: pre-line;
}
.ad-zu {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line-hell); border-radius: 2px;
  color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer;
  transition: color var(--tempo), border-color var(--tempo);
}
.ad-zu:hover { color: var(--text); border-color: var(--text); }
.ad-inhalt { padding: 18px 20px 22px; overflow-y: auto; }

/* Handy: fast bildschirmfüllendes Blatt von unten — innen scrollen ist dann
   die normale, erwartbare Geste. */
@media (max-width: 640px) {
  .anmelde-dialog {
    width: 100vw; max-width: none;
    margin: auto 0 0; max-height: 96dvh;
    border-left: none; border-right: none; border-bottom: none;
  }
}

/* Ohne JavaScript kann kein Dialog öffnen — dann steht das Formular offen
   auf der Seite (siehe <noscript> in der Vorlage) und der Knopf verschwindet. */
.ohne-js .anmelde-dialog {
  display: flex; position: static; width: auto; max-height: none; margin-top: 10px;
}
.ohne-js .anmelde-cta, .ohne-js .ad-zu { display: none; }
.ohne-js .anmelde-buehne { min-height: 0; }

/* =============================================== Anmeldung & Mandanten (22.07.) */
.anmelde-karte { max-width: 420px; margin: 10vh auto 0; }
.anmelde-karte .knopf { width: 100%; margin-top: 6px; }
.abmelde-form { display: inline-flex; margin: 0; }
.mandant-akt { color: var(--gruen); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.nutzer-zeile-aus { opacity: .5; }
.abo-form { display: flex; gap: 6px; align-items: center; }
.abo-form select { min-height: 38px; }

/* ===================================================================
   EVENTSEITE — die öffentliche Vordertür (Punkt 41)

   Die einzige Gast-Ansicht, die wie Marketing aussehen darf und nicht wie
   ein Werkzeug. Regiepult-Anthrazit bleibt dem Admin vorbehalten.

   ⭐ Jedes Event wirkt anders, ohne dass hier etwas geändert wird:
      --ev       = Akzentfarbe des Events (steht in der Datenbank)
      --ev-rand  = Randfarbe des Key Visuals (beim Upload ausgelesen)
   =================================================================== */
.es {
  --es-luft: clamp(28px, 6vw, 72px);
  margin: calc(var(--es-luft) * -0.5) auto 0;
  max-width: 980px;
}

/* ------------------------------------------------------- Fläche der Seite
   Der „Gesamtrahmen": alles um die Inhaltsspalte herum. Die FARBE sitzt am
   <body> (trägt dann auch den Bereich hinter der Handy-Adressleiste), das
   optionale BILD liegt als zwei fixierte Ebenen dahinter — Muster und Grund
   wie beim Branding-Key-Visual: `background-attachment: fixed` ignoriert
   iOS-Safari. */
.es-flaeche-bild, .es-flaeche-schleier {
  position: fixed; inset: 0; pointer-events: none;
}
.es-flaeche-bild {
  z-index: -2;
  background-size: cover; background-repeat: no-repeat;
}
.es-flaeche-schleier { z-index: -1; }

/* ------------------------------------------------------------ Leiste oben
   Wie auf pd-events.de: oben transparent über Kopfbild/Video, ab dem ersten
   Scrollen dunkel mit Blur. Die Punkte kommen aus den Blöcken der Seite. */
.es-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; gap: clamp(10px, 2vw, 26px);
  padding: 14px clamp(14px, 4vw, 34px);
  padding-top: max(14px, env(safe-area-inset-top));
  transition: background var(--tempo), padding var(--tempo), box-shadow var(--tempo);
}
.es-nav.fest {
  background: color-mix(in srgb, var(--es-flaeche, #0a0b0e) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding-top: 8px; padding-bottom: 8px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, .5), 0 1px 0 var(--line);
}
.es-nav-marke {
  display: flex; align-items: center; margin-right: auto;
  color: var(--text); text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 16px;
  /* Über einem hellen Kopfbild wäre die Marke sonst nicht zu lesen. */
  text-shadow: 0 1px 12px rgba(0, 0, 0, .6);
}
.es-nav-marke img { height: 34px; width: auto; display: block; }
.es-nav-home {
  display: flex; align-items: center; gap: 6px;
  color: var(--muted); text-decoration: none; font-size: 13px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .6);
}
.es-nav-home:hover, .es-nav-home:focus-visible { color: var(--text); }
@media (max-width: 560px) {
  .es-nav-home span { display: none; } /* nur das Haus-Symbol, Platz ist knapp */
}
.es-nav-links { display: flex; align-items: center; gap: clamp(10px, 2vw, 22px); }
.es-nav-links a {
  color: var(--text); text-decoration: none; font-size: 14px;
  letter-spacing: .04em; padding: 8px 2px;
  border-bottom: 2px solid transparent;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .6);
}
.es-nav-links a:hover, .es-nav-links a:focus-visible {
  border-bottom-color: var(--ev);
}
.es-nav-cta {
  flex: none;
  padding: 10px 18px; min-height: 44px;
  border: 1px solid var(--ev); border-radius: 2px;
  background: var(--ev); color: #0a0b0e;
  font-family: var(--display); font-weight: 700; font-size: 14px;
  cursor: pointer;
}
.es-nav-cta:hover { filter: brightness(1.1); }
/* Der Burger erscheint erst, wenn die Punkte nicht mehr nebeneinander passen. */
.es-nav-burger { display: none; }

/* ⚠️ Ohne JS gäbe es keinen Weg, das Klappmenü zu öffnen — deshalb greift die
   Handy-Fassung erst, wenn das Skript die Leiste als bedienbar markiert hat
   (Fortschrittsprinzip, wie beim Editor-Zuklappen). */
@media (max-width: 760px) {
  .es-nav.js .es-nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px;
    background: none; border: 0; cursor: pointer; order: 2;
  }
  .es-nav-burger span {
    display: block; height: 2px; background: var(--text);
    box-shadow: 0 0 8px rgba(0, 0, 0, .6);
  }
  .es-nav-links {
    order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch;
    gap: 0;
  }
  .es-nav.js .es-nav-links { display: none; }
  .es-nav.offen { background: var(--es-flaeche, #0a0b0e); }
  .es-nav.offen .es-nav-links { display: flex; }
  .es-nav-links a {
    padding: 14px 4px; border-bottom: 1px solid var(--line);
  }
  .es-nav-cta { order: 3; padding: 10px 14px; }
}

/* Sprungziele dürfen nicht unter der Leiste landen. */
.es-sek, .es-hero { scroll-margin-top: 78px; }
/* Ohne Kopfbild (und in der Vorschau mit ihrem Hinweisstreifen) fehlt die
   Fläche, unter die sich die Leiste legen kann — dann Platz schaffen. */
.es-ohne-kopf, .es-in-vorschau { padding-top: 62px; }

.es-vorschau {
  margin: 0 0 20px; padding: 12px 16px;
  border: 1px dashed var(--line-hell); border-left: 3px solid var(--amber);
  background: var(--panel); color: var(--muted); font-size: 14px;
}

/* ---------------------------------------------------------------- Kopf */
.es-hero {
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 50% 0%,
      color-mix(in srgb, var(--ev) 18%, transparent), transparent 70%),
    var(--panel);
}

.es-hero-bild {
  height: clamp(220px, 50vh, 600px);
  background-color: var(--ev-rand);
  background-position: center;
  background-repeat: no-repeat;
}

/* Header-Video: nimmt den Platz des Bildbands ein, formatfüllend */
.es-hero-video {
  display: block; width: 100%;
  height: clamp(220px, 50vh, 600px);
  object-fit: cover;
  background-color: var(--ev-rand);
}

.es-hero-inhalt { padding: var(--es-luft); text-align: center; }

.es-logo {
  height: 62px; width: auto; margin: 0 auto 18px; display: block;
}

.es-label {
  display: inline-block; margin-bottom: 14px;
  padding: 5px 12px; border: 1px solid color-mix(in srgb, var(--ev) 55%, transparent);
  color: var(--ev);
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
}

.es-titel {
  margin: 0; font-family: var(--display);
  font-size: clamp(38px, 9vw, 84px); line-height: .96;
  letter-spacing: -.03em; text-wrap: balance;
}

.es-lead {
  margin: 18px auto 0; max-width: 62ch;
  font-size: clamp(16px, 2.1vw, 19px); line-height: 1.62; color: var(--text);
  white-space: pre-line;
}

.es-eckdaten {
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center;
  margin: 26px 0 0; padding: 0;
  font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.es-eckdaten span { white-space: nowrap; }

/* Countdown-Tafel: der Blickfang. Zahlen mit fester Ziffernbreite, damit
   nichts springt, wenn aus 9 eine 10 wird. */
.es-count {
  display: flex; gap: clamp(10px, 3vw, 28px); justify-content: center;
  margin-top: 30px;
}
.es-count-z {
  min-width: 88px; padding: 14px 10px;
  border: 1px solid var(--line-hell);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
}
.es-count-z b {
  display: block; font-family: var(--display);
  font-size: clamp(30px, 6.5vw, 52px); line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--ev);
}
.es-count-z span {
  display: block; margin-top: 6px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}
.es-count-vorbei, .es-count-null { color: var(--muted); margin-top: 24px; }

/* ------------------------------------------------------------ Abschnitte */
.es-sek {
  position: relative;
  margin-top: 18px; padding: var(--es-luft);
  border: 1px solid var(--line); background: var(--panel);
}
.es-sek > h2 {
  margin: 0 0 18px; font-family: var(--display);
  font-size: clamp(22px, 3.6vw, 34px); letter-spacing: -.015em;
}
.es-text {
  margin: 0; max-width: 68ch;
  font-size: 17px; line-height: 1.68; white-space: pre-line;
}
.es-sek .es-text + .es-link { margin-top: 20px; }

/* Abschnitt mit eigenem Bild: das Bild trägt, der Schleier hält den Text
   lesbar. Ohne den Schleier ist auf hellen Motiven kein Wort zu erkennen.
   Farbe + Stärke kommen als CSS-Variablen vom <body> — dieselbe Einstellung
   wie „Fläche der Seite" (Christian, 27.07.2026: eine gemeinsame Stelle statt
   einer zweiten je Block). Die Vorgabewerte (#0a0b0e / 78%) greifen nur, falls
   die Variablen ausnahmsweise fehlen. */
.es-mit-bild {
  background-image: linear-gradient(
      color-mix(in srgb, var(--es-schleier-farbe, #0a0b0e) var(--es-schleier-staerke, 62%), transparent),
      color-mix(in srgb, var(--es-schleier-farbe, #0a0b0e) var(--es-schleier-staerke, 62%), transparent)
    ), var(--es-bg);
  background-size: cover; background-position: var(--es-pos, center);
}

.es-link {
  display: inline-block; min-height: 44px; padding: 11px 20px;
  border: 1px solid var(--ev); color: var(--ev);
  text-decoration: none; font-weight: 600;
  transition: background var(--tempo), color var(--tempo);
}
.es-link:hover, .es-link:focus-visible { background: var(--ev); color: #10120f; }

/* ---------------------------------------------------------- Mitmach-Knöpfe */
.es-knoepfe {
  display: grid; gap: 12px; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .es-knoepfe { grid-template-columns: 1fr 1fr; } }

/* Große Flächen mit Absicht: dieselbe Seite wird später am Kiosk-Terminal
   mit dem Finger bedient (siehe project_veranstaltungsterminal). */
.es-knopf {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  min-height: 88px; padding: 18px 22px;
  border: 1px solid var(--line-hell); background: var(--bg-2);
  color: var(--text); text-decoration: none;
  transition: border-color var(--tempo), background var(--tempo);
}
.es-knopf:hover, .es-knopf:focus-visible {
  border-color: var(--ev);
  background: color-mix(in srgb, var(--ev) 12%, var(--bg-2));
}
.es-knopf-t {
  font-family: var(--display); font-size: 20px; letter-spacing: -.01em;
}
.es-knopf-u { font-size: 14px; color: var(--muted); }

/* ------------------------------------------------------------ Preistreppe */
.es-treppe { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.es-stufe {
  display: grid; gap: 4px 18px; align-items: baseline;
  grid-template-columns: 1fr auto;
  padding: 16px 20px; border: 1px solid var(--line); background: var(--bg-2);
}
.es-stufe-n { font-family: var(--display); font-size: 19px; }
.es-stufe-p {
  font-family: var(--display); font-size: 26px;
  font-variant-numeric: tabular-nums; grid-row: span 2;
}
.es-stufe-h {
  grid-column: 1; font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}

/* Die geltende Stufe leuchtet — sie ist der Grund, warum jemand jetzt kauft
   und nicht nächste Woche. */
.es-jetzt {
  border-color: var(--ev);
  background: color-mix(in srgb, var(--ev) 14%, var(--bg-2));
}
.es-jetzt .es-stufe-p, .es-jetzt .es-stufe-h { color: var(--ev); }

/* Vergangene Stufen bleiben stehen und werden durchgestrichen: „das hättest
   du günstiger haben können" wirkt stärker als eine Stufe, die verschwindet. */
.es-vorbei { opacity: .45; }
.es-vorbei .es-stufe-n, .es-vorbei .es-stufe-p { text-decoration: line-through; }

/* ----------------------------------------------------------------- Ablauf */
.es-ablauf { margin: 0; display: grid; gap: 2px; }
.es-ablauf > div {
  display: grid; gap: 4px 20px; grid-template-columns: 92px 1fr;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.es-ablauf dt {
  font-family: var(--display); font-variant-numeric: tabular-nums;
  color: var(--ev);
}
.es-ablauf dd { margin: 0; }

/* -------------------------------------------------------------------- FAQ */
.es-faq { border-bottom: 1px solid var(--line); }
.es-faq summary {
  min-height: 52px; display: flex; align-items: center; gap: 12px;
  padding: 12px 0; cursor: pointer; font-weight: 600;
  list-style-position: inside;
}
.es-faq summary:focus-visible { outline: 2px solid var(--ev); outline-offset: 3px; }
.es-faq p { margin: 0 0 16px; color: var(--muted); line-height: 1.62; }

/* ---------------------------------------------------------------- Line-Up */
.es-lineup { text-align: center; }
.es-lineup .es-text { margin-inline: auto; }

/* ---------------------------------------------------------- Bild im Block
   Drei Wirkungen, eine pro Block wählbar (siehe seite.BILD_ARTEN):
   „hintergrund" ist die Klasse .es-mit-bild weiter oben, „oben" und „logo"
   sind echte <img> — das Motiv wird dabei NIE beschnitten. */
.es-bild-oben {
  display: block; width: 100%; height: auto;
  margin: 0 0 24px; border: 1px solid var(--line);
}
.es-bild-logo {
  display: block; margin: 0 auto 22px;
  max-width: min(340px, 78%); height: auto;
}

/* -------------------------------------------------------------- Anfahrt */
.es-adresse {
  margin: 0 0 14px; font-family: var(--display);
  font-size: clamp(18px, 3vw, 24px); white-space: pre-line;
}

/* ----------------------------------------------------------------- Fuß */
.es-fuss {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  align-items: center; justify-content: space-between;
  margin-top: 18px; padding: 22px var(--es-luft);
  border: 1px solid var(--line); background: var(--bg-2);
  font-size: 14px; color: var(--muted);
}
.es-fuss p { margin: 0; }
.es-fuss nav { display: flex; gap: 20px; }
.es-fuss a, .es-fuss nav button {
  color: var(--muted); background: none; border: none; padding: 0;
  font: inherit; cursor: pointer;
}
.es-fuss a:hover, .es-fuss a:focus-visible,
.es-fuss nav button:hover, .es-fuss nav button:focus-visible { color: var(--ev); }

/* In der Vorschau sichtbar, auf der echten Seite gar nicht erst gerendert. */
.es-block-aus { opacity: .38; outline: 1px dashed var(--line-hell); }

@media (prefers-reduced-motion: reduce) {
  .es-knopf, .es-link { transition: none; }
}

/* ===================================================================
   Eventseite — Verwaltung (Bausatz)
   =================================================================== */
.sb-status {
  display: flex; flex-wrap: wrap; gap: 18px;
  align-items: center; justify-content: space-between;
}
.sb-adresse {
  margin: 6px 0 4px; font-family: var(--display); font-size: 18px;
  word-break: break-all;
}

.sb-block { margin-top: 16px; }
.sb-aus { opacity: .6; }
.sb-kopf {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: flex-start;
}
.sb-kopf-text { flex: 1 1 auto; }
.sb-kopf h2 { margin: 2px 0 0; font-size: 22px; }
.sb-akt { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.sb-akt form { margin: 0; }

/* Einklappen der Blöcke im Editor */
.sb-klapp {
  flex: 0 0 auto; width: 34px; height: 34px; padding: 0; cursor: pointer;
  border: var(--rand); background: var(--bg-2); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center;
}
.sb-klapp:hover, .sb-klapp:focus-visible { border-color: var(--amber); }
.sb-klapp-pfeil { transition: transform .15s ease; font-size: 14px; }
.sb-klapp[aria-expanded="false"] .sb-klapp-pfeil { transform: rotate(-90deg); }
.sb-alle { display: flex; gap: 8px; margin: 4px 0 2px; }

/* Sponsoren-Logos im Editor */
.sb-logos { margin-top: 16px; border-top: var(--rand); padding-top: 14px; }
.sb-logos-titel { font-size: 15px; margin: 0 0 10px; }
.sb-logos-liste { display: flex; flex-wrap: wrap; gap: 14px; }
.sb-logo { margin: 0; display: grid; gap: 8px; justify-items: center; }
.sb-logo img {
  max-height: 70px; max-width: 150px; object-fit: contain;
  border: var(--rand); background: var(--bg-2); padding: 8px;
}
.sb-logos-sammlung { margin-top: 14px; }
.sb-logos-sammlung > summary { cursor: pointer; padding: 8px 0; color: var(--muted); }
.sb-logos-sammlung > summary:hover { color: var(--text); }

/* Mehrfach-Auswahl aus der Sammlung (Checkbox-Kacheln) */
.sammlung-picker.mehrfach { margin-top: 12px; }
.sp-kachel.wahl { position: relative; cursor: pointer; }
.sp-kachel.wahl input {
  position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; z-index: 1; margin: 0;
}
.sp-kachel.wahl:has(input:checked) { border-color: var(--amber); outline: 2px solid var(--amber); }

/* Vollbild-Knopf auf jeder Beamer-Leinwand */
.beamer-vollbild {
  position: fixed; top: 14px; right: 14px; z-index: 9999;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.35); border-radius: 8px;
  background: rgba(20,16,26,.55); color: #fff; font: inherit; font-size: 14px;
  font-weight: 600; cursor: pointer; opacity: .7;
  transition: opacity .4s ease; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.beamer-vollbild:hover, .beamer-vollbild:focus-visible { opacity: 1; }
.beamer-vollbild.ist-weg { opacity: 0; pointer-events: none; }
.beamer-vollbild .bv-icon { font-size: 17px; line-height: 1; }
@media print { .beamer-vollbild { display: none; } }

/* Rubbellos-Modul: Kennzahlen + Kategorie-Editor */
.rl-kennzahlen { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin: 6px 0 18px; }
@media (min-width: 720px) { .rl-kennzahlen { grid-template-columns: repeat(4, 1fr); } }
.rl-kennzahl { border: var(--rand); background: var(--bg-2); padding: 14px 16px; display: grid; gap: 4px; }
.rl-kennzahl.rl-betont { border-color: var(--amber); }
.rl-wert { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 4vw, 32px);
  font-variant-numeric: tabular-nums; }
.rl-betont .rl-wert { color: var(--amber); }
.rl-label { font-size: 13px; color: var(--muted); }
.rl-kat-titel { font-size: 16px; margin: 18px 0 4px; }
.rl-kat-kopf, .rl-kat-zeile { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 10px; align-items: center; }
.rl-kat-kopf { font-size: 12px; color: var(--muted); margin: 8px 0 4px; }
.rl-kat-zeile { margin-bottom: 8px; }

/* Hintergrund-Wahl */
.rl-bg-reihe { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.rl-bg-aktuell { margin: 0; }
.rl-bg-aktuell img { width: 210px; max-width: 60vw; border: var(--rand); display: block; }
.rl-bg-aktuell figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; text-align: center; }
.rl-bg-wahl { flex: 1 1 260px; display: grid; gap: 14px; }
.rl-bg-standards { display: flex; flex-wrap: wrap; gap: 8px; }
.rl-bg-kachel { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; line-height: 0; }
.rl-bg-kachel img { width: 84px; height: 46px; object-fit: cover; display: block; border: var(--rand); }
.rl-bg-kachel.aktiv { border-color: var(--amber); }
.rl-bg-kachel:hover img, .rl-bg-kachel:focus-visible img { outline: 2px solid var(--amber); }
.rl-bg-upload { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }

/* Symbole je Gewinn */
.rl-symbole { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .rl-symbole { grid-template-columns: repeat(2, 1fr); } }
.rl-symbol { display: flex; gap: 14px; align-items: center; border: var(--rand);
  background: var(--bg-2); padding: 12px; }
.rl-symbol-bild { flex: 0 0 72px; height: 72px; display: flex; align-items: center; justify-content: center;
  background: repeating-conic-gradient(#0000 0 25%, #ffffff10 0 50%) 0/16px 16px; border: var(--rand); }
.rl-symbol-bild img { max-width: 68px; max-height: 68px; object-fit: contain; }
.rl-symbol-leer { font-size: 11px; color: var(--muted); }
.rl-symbol-text { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rl-symbol-text strong { flex-basis: 100%; }
.rl-symbol-text form { margin: 0; }

/* Gast-Eventseite: eigene Sponsoren-Logos des Blocks */
.es-sponsor-logos {
  display: flex; flex-wrap: wrap; gap: 26px; align-items: center;
  justify-content: center; margin-top: 8px;
}
/* Feste Box je Logo → alle Sponsoren gleich groß, unabhängig vom Seitenverhältnis */
.es-sponsor-logo {
  height: 64px; width: 170px;
  display: flex; align-items: center; justify-content: center;
}
.es-sponsor-logo img { max-height: 100%; max-width: 100%; object-fit: contain; display: block; }

.sb-zeilen { display: grid; gap: 8px; margin-bottom: 14px; }
.sb-zeile { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.sb-preise .sb-zeile { grid-template-columns: 1fr; }
@media (min-width: 860px) {
  .sb-preise .sb-zeile {
    grid-template-columns: 1.4fr .8fr 1.3fr 1.4fr 5rem;
    align-items: center;
  }
}
.sb-zeile-kopf {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
/* Auf schmalen Geräten stapeln die Felder — dann wäre eine Kopfzeile mit
   fünf Wörtern übereinander nur verwirrend. */
@media (max-width: 859px) { .sb-preise .sb-zeile-kopf { display: none; } }
.sb-zeile input[type="text"], .sb-zeile input[type="datetime-local"] {
  min-height: 44px; padding: 9px 11px; width: 100%;
  background: var(--bg-2); color: var(--text);
  border: var(--rand); border-radius: 2px; font: inherit; font-size: 15px;
}
.sb-haken {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; border: var(--rand); background: var(--bg-2);
}
.sb-haken input { width: 22px; height: 22px; }
.sb-haken-text {
  justify-content: flex-start; gap: 10px; padding: 0 12px;
  margin: 4px 0 10px; cursor: pointer;
}
.sb-haken-text input { flex: 0 0 auto; }

.sb-bild { margin-top: 16px; display: flex; gap: 14px; align-items: flex-end; }
.sb-bild img {
  max-height: 130px; width: auto; border: 1px solid var(--line);
}
.sb-bild video {
  max-height: 160px; max-width: 100%; border: 1px solid var(--line);
}

/* Fokuspunkt-Positionierer im Editor */
.poswid { margin-top: 12px; }
.poswid-titel {
  display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px;
}
.poswid-rahmen {
  position: relative; aspect-ratio: 16 / 9; max-width: 320px;
  overflow: hidden; border: var(--rand); cursor: crosshair; touch-action: none;
}
.poswid-rahmen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poswid-punkt {
  position: absolute; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #fff; background: rgba(0, 0, 0, .35);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .7); transform: translate(-50%, -50%);
  pointer-events: none;
}
.poswid-regler { display: grid; gap: 6px; margin-top: 10px; max-width: 320px; }
.poswid-regler label {
  display: grid; gap: 3px; font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.poswid-regler input[type="range"] { width: 100%; accent-color: var(--ev); }

/* Farb-Controls der Gästeseiten-Optik */
.go-farben {
  margin: 16px 0; padding: 14px; border: var(--rand); border-radius: 2px;
  display: grid; gap: 12px;
}
.go-farben legend { padding: 0 6px; font-size: 13px; color: var(--muted); }
.go-farben input[type="color"] {
  width: 100%; min-height: 44px; padding: 4px; background: var(--bg-2);
  border: var(--rand); border-radius: 2px; cursor: pointer;
}
.go-farben input[type="range"] { width: 100%; accent-color: var(--ev); }

/* Aufklappbare Teilnahmebedingungen (Anmeldeseite + Popup) */
.teilnahme-bed { margin: 2px 0 14px; }
.teilnahme-bed summary {
  cursor: pointer; color: var(--ev); font-size: 14px;
  min-height: 32px; display: inline-flex; align-items: center;
}
.teilnahme-bed-text {
  margin-top: 8px; max-height: 40vh; overflow-y: auto;
  padding: 12px 14px; border: var(--rand); border-radius: 2px;
  background: var(--bg-2); font-size: 13px; line-height: 1.6;
  white-space: pre-line;
}

/* Selfie-Aufnahme neben dem Foto-Upload */
.selfie { margin: 6px 0 4px; display: grid; gap: 8px; justify-items: start; }
.selfie-cam { display: grid; gap: 8px; width: 100%; }
.selfie-cam video {
  width: 100%; max-width: 320px; border: var(--rand); border-radius: 2px;
  background: #000; transform: scaleX(-1); /* Spiegel-Vorschau wie gewohnt */
}
.selfie-akt { display: flex; gap: 8px; flex-wrap: wrap; }
.selfie-vorschau { margin: 0; display: grid; gap: 6px; justify-items: start; }
.selfie-vorschau img {
  max-height: 160px; border: var(--rand); border-radius: 2px; display: block;
}
.selfie-fehler { color: #ff8a8a; }

/* Rubbellos-Karten-Designer: Felder auf der Kartenvorschau ziehen.
   ⚠️ Eigener Präfix rd-* (NICHT kd-*!) — kd-feld kollidierte sonst mit den
   Formularzeilen der Kauf-/Anmelde-Dialoge (.kd-feld) und positionierte sie
   absolut → Überlagerung (Lehre 25.07.). */
.rd-design { margin: 14px 0; display: grid; gap: 10px; justify-items: start; }
.rd-buehne {
  position: relative; width: 100%; max-width: 360px;
  background-size: cover; background-position: center; background-color: #111;
  border: var(--rand); border-radius: 2px; touch-action: none;
  user-select: none;
}
.rd-feld {
  position: absolute; box-sizing: border-box;
  border: 2px solid var(--ev, #ff7518); background: rgba(255, 117, 24, .20);
  color: #fff; font-size: 12px; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: move; touch-action: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .8);
}

.sb-neu { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .sb-neu { grid-template-columns: 1fr 1fr; } }
.sb-neu form { margin: 0; }
.sb-neu-knopf {
  display: flex; flex-direction: column; gap: 4px; text-align: left;
  width: 100%; min-height: 68px; padding: 14px 16px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--text);
  cursor: pointer; font: inherit;
  transition: border-color var(--tempo), background var(--tempo);
}
.sb-neu-knopf:hover, .sb-neu-knopf:focus-visible {
  border-color: var(--amber); background: var(--panel-2);
}
.sb-neu-knopf .titel-z { font-family: var(--display); font-size: 17px; }
.sb-neu-knopf .unter { font-size: 13px; color: var(--muted); }
/* Blockart mit Vorlagen-Auswahl: Dropdown + Hinzufügen statt eines Knopfs. */
.sb-neu-vorlage { gap: 8px; cursor: default; }
.sb-neu-vorlage:hover, .sb-neu-vorlage:focus-within { border-color: var(--amber); }
.sb-neu-vorlage select {
  width: 100%; min-height: 40px; padding: 8px 10px;
  background: var(--bg); color: var(--text); border: 1px solid var(--line-hell);
  border-radius: 2px; font: inherit;
}
.sb-neu-vorlage .knopf { align-self: flex-start; }

/* Nur für Vorleser: sichtbar für Screenreader, unsichtbar am Bildschirm.
   Das Muster stand bisher zweimal inline (.rg-versteckt, figcaption.im-bild) —
   ab hier gibt es eine Klasse dafür. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Nach dem Speichern springt die Verwaltung an den Anker des Blocks —
   ohne diesen Abstand klebt er am oberen Fensterrand. */
.sb-block { scroll-margin-top: 24px; }

/* Zwei Bildebenen je Block: Foto als Fläche, Motiv darüber.
   Beim Kopf liegt das Foto hinter der Bühne — der Inhaltsbereich bekommt dann
   einen eigenen Schleier, sonst steht die Schrift auf dem Motiv. */
.es-hero.es-mit-bild, .es-hero[style*="--es-bg"] {
  background-image: linear-gradient(
      color-mix(in srgb, var(--es-schleier-farbe, #0a0b0e) var(--es-schleier-staerke, 62%), transparent),
      color-mix(in srgb, var(--es-schleier-farbe, #0a0b0e) var(--es-schleier-staerke, 62%), transparent)
    ), var(--es-bg);
  background-size: cover; background-position: var(--es-pos, center);
}
.es-hero-auf-foto { background: rgba(10, 11, 14, .55); }

/* Verwaltung: Motiv und Hintergrund nebeneinander mit Beschriftung. */
.sb-bild { flex-wrap: wrap; align-items: flex-start; }
.sb-bild figure { margin: 0; display: grid; gap: 8px; justify-items: start; }
.sb-bild figcaption {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}

/* Sponsoren auf der EVENTSEITE: hier ist es ein eigener Abschnitt, keine
   Fußleiste. Die geerbten 34 px sind für eine Leiste am Seitenende gedacht —
   in einem Abschnitt mit voller Breite wirken sie verloren.
   ⚠️ Bewusst nur im .es-sponsoren-Kontext: die Gastseiten der Module behalten
   ihre schlanke Leiste, sonst frisst sie dort den halben Bildschirm. */
.es-sponsoren .brand-sponsoren {
  margin-top: 0; padding: 0; border-top: none; background: none;
  gap: clamp(20px, 5vw, 52px);
}
.es-sponsoren .brand-sponsoren .bs-titel {
  flex-basis: 100%; text-align: center;
  font-size: 13px; letter-spacing: .24em; color: var(--muted);
  margin-bottom: 6px;
}
/* Rund viermal so groß wie in der Leiste; nach oben gedeckelt, damit ein
   breites Logo auf dem Handy nicht die ganze Höhe einnimmt. */
.es-sponsoren .brand-sponsoren img {
  max-height: clamp(76px, 15vw, 144px);
  max-width: min(72vw, 430px);
}
.es-sponsoren .brand-sponsoren .haupt img {
  max-height: clamp(104px, 21vw, 200px);
  max-width: min(86vw, 570px);
}
.es-sponsoren .brand-sponsoren .haupt { font-size: 26px; }

/* Handlungsknopf unter einem Abschnitt. Kräftiger als der Textlink daneben —
   er ist der Grund, warum der Abschnitt überhaupt dasteht. */
.es-sek-cta { margin: 26px 0 0; }
.es-lineup .es-sek-cta, .es-mitmachen .es-sek-cta { text-align: center; }
.es-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 15px 34px;
  background: var(--ev); color: #10120f;
  font-family: var(--display); font-size: 19px; letter-spacing: -.01em;
  text-decoration: none; border: 1px solid var(--ev);
  transition: filter var(--tempo);
}
.es-cta:hover, .es-cta:focus-visible { filter: brightness(1.12); }

/* Mehrere Knöpfe an einem Abschnitt: der erste ist die Haupthandlung und
   gefüllt, weitere stehen als Umriss daneben. Ohne diese Abstufung
   konkurrieren zwei gleich laute Knöpfe miteinander. */
.es-sek-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.es-hero .es-sek-cta { justify-content: center; }
.es-cta-zweit { background: none; color: var(--ev); }
.es-cta-zweit:hover, .es-cta-zweit:focus-visible {
  background: color-mix(in srgb, var(--ev) 16%, transparent); filter: none;
}
.sb-knopf { border: var(--rand); padding: 14px 16px; margin: 0 0 14px; }
.sb-knopf legend { padding: 0 8px; font-size: 13px; color: var(--muted); }
.sb-knopf-zeile { grid-template-columns: 1fr; }
@media (min-width: 860px) {
  .sb-knopf-zeile { grid-template-columns: 1.2fr 1fr 1.4fr; align-items: center; }
}
.sb-knopf-zeile select {
  min-height: 44px; padding: 9px 11px; width: 100%;
  background: var(--bg-2); color: var(--text);
  border: var(--rand); border-radius: 2px; font: inherit; font-size: 15px;
}

/* Ticket prüfen: am Einlass muss die Antwort aus zwei Metern erkennbar sein. */
.tp { text-align: center; padding: clamp(28px, 7vw, 64px) 20px; border: var(--rand); }
.tp-gut { background: rgba(53, 208, 127, .14); border-color: var(--gruen); }
.tp-schon { background: rgba(255, 82, 82, .14); border-color: var(--rot); }
.tp-zeichen { font-size: clamp(64px, 18vw, 128px); line-height: 1; margin: 0 0 8px; }
.tp-gut .tp-zeichen { color: var(--gruen); }
.tp-schon .tp-zeichen { color: var(--rot); }
.tp h1 { margin: 0 0 6px; font-size: clamp(26px, 5vw, 40px); }
.tp-nr {
  margin: 0 0 22px; font-family: var(--display); font-size: 22px;
  letter-spacing: .08em; color: var(--muted);
}
.tp-daten { display: grid; gap: 8px; justify-content: center; margin: 0 0 18px; }
.tp-daten > div { display: flex; gap: 12px; justify-content: center; }
.tp-daten dt { color: var(--muted); min-width: 96px; text-align: right; }
.tp-daten dd { margin: 0; font-weight: 600; }
.tp-hinweis { margin: 0; color: var(--muted); max-width: 46ch; margin-inline: auto; }

/* Rücksprung von SumUp/PayPal — selbes Muster wie .tp */
.zr { text-align: center; padding: clamp(28px, 7vw, 64px) 20px; border: var(--rand); }
.zr-bezahlt { background: rgba(53, 208, 127, .14); border-color: var(--gruen); }
.zr-unbekannt { background: rgba(255, 82, 82, .14); border-color: var(--rot); }
.zr-zeichen { font-size: clamp(48px, 14vw, 96px); line-height: 1; margin: 0 0 8px; }
.zr-bezahlt .zr-zeichen { color: var(--gruen); }
.zr-unbekannt .zr-zeichen { color: var(--rot); }
.zr h1 { margin: 0 0 14px; font-size: clamp(22px, 4.5vw, 34px); }
.zr-liste { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.zr-liste a { font-family: var(--display); letter-spacing: .06em; }
.zr-hinweis { margin: 0 0 16px; color: var(--muted); max-width: 46ch; margin-inline: auto; }
.zr-zurueck { margin-top: 18px; }

/* Ticketing-Verwaltung */
/* Angehaltener Verkauf: muss sofort ins Auge fallen, ohne wie ein Fehler der
   Software auszusehen — es ist eine bewusste Sperre mit klarer Anleitung. */
.tk-warnung {
  border: 1px solid var(--rot); border-left-width: 4px;
  background: color-mix(in srgb, var(--rot) 10%, var(--panel));
  padding: 20px 22px; margin: 0 0 20px;
}
.tk-warnung h2 { margin: 0 0 8px; font-size: 19px; }
.tk-warnung p { margin: 0 0 10px; color: var(--text); }
.tk-warnung ul { margin: 0 0 10px; padding-left: 20px; color: var(--muted); }
.tk-warnung li { margin-bottom: 4px; }
.tk-warnung .klein { margin: 0; color: var(--muted); }
.tk-zahlen { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.tk-zahl { border: var(--rand); background: var(--bg-2); padding: 16px 18px; }
.tk-zahl b { display: block; font-family: var(--display); font-size: 30px; }
.tk-zahl span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tk-testmail { margin-top: 16px; display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.tk-testmail .feld { margin: 0; min-width: 220px; }
.tk-karte-vorschau { position: relative; border: var(--rand); container-type: inline-size; }
.tk-karte-vorschau > img { display: block; width: 100%; height: auto; }
.tk-rahmen { position: absolute; border: 2px dashed var(--amber); pointer-events: none; }
.tk-rahmen.info { border-color: var(--blau); }
.tk-rahmen span {
  position: absolute; top: -22px; left: 0; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--amber);
  background: var(--bg); padding: 1px 5px;
}
.tk-rahmen.info span { color: var(--blau); }

/* WYSIWYG-Vorschau: QR + Ticketnummer sind zwei ziehbare Felder, Info-Box 1:1 */
.tk-qr {
  position: absolute; background: #fff; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  padding: .2cqw; cursor: move; touch-action: none;
  box-shadow: 0 0 0 2px var(--amber);
}
.tk-qr img { width: 100%; height: 100%; object-fit: contain; }
/* Eck-Griff zum Größe-Ziehen (nur Vorschau) */
.tk-griff {
  position: absolute; right: -6px; bottom: -6px; width: 16px; height: 16px;
  background: var(--amber); border: 2px solid #fff; border-radius: 3px;
  cursor: nwse-resize; touch-action: none;
}
.tk-nr {
  position: absolute; cursor: move; touch-action: none; white-space: nowrap;
  font-family: monospace; font-weight: 700; color: #111; line-height: 1;
  background: rgba(255, 255, 255, .92); padding: .3cqw .7cqw; border-radius: 4px;
  box-shadow: 0 0 0 2px var(--amber);
}
.tk-info {
  position: absolute; display: flex; flex-direction: column; justify-content: center;
  gap: 2px; padding: 4px 6px; overflow: hidden; pointer-events: none;
  background: rgba(10, 12, 16, .82); color: #fff; border-radius: 4px;
  box-shadow: 0 0 0 2px var(--blau);
}
.tk-info b { font-size: 11px; line-height: 1.1; }
.tk-info span { font-size: 9px; opacity: .85; line-height: 1.1; }

/* Kaufdialog auf der Eventseite — nativer <dialog>, dasselbe Muster wie die
   Gast-Anmeldung: dunkle Karte, auf dem Handy als Bottom-Sheet. */
.kd {
  width: min(520px, 94vw); max-height: 92dvh; overflow-y: auto;
  border: 1px solid var(--line-hell); border-top: 3px solid var(--ev);
  background: var(--panel); color: var(--text);
  padding: clamp(22px, 5vw, 34px); border-radius: 2px;
}
.kd::backdrop { background: rgba(4, 5, 8, .78); }
.kd h2 { margin: 0 0 6px; font-family: var(--display); font-size: 28px; }
.kd h3 { margin: 0 0 10px; font-size: 19px; }
.kd-zu { display: flex; justify-content: flex-end; margin: -8px -8px 0 0; }
.kd-x {
  min-width: 44px; min-height: 44px; background: none; border: none;
  color: var(--muted); font-size: 26px; cursor: pointer; line-height: 1;
}
.kd-x:hover, .kd-x:focus-visible { color: var(--text); }
.kd-stufe { margin: 0 0 20px; color: var(--muted); }
.kd-stufe strong { color: var(--ev); }
.kd-feld { display: grid; gap: 6px; margin-bottom: 16px; }
.kd-label { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kd input[type="text"], .kd input[type="email"], .kd input[type="tel"],
.kd input[type="date"] {
  min-height: 48px; padding: 11px 14px; width: 100%;
  background: var(--bg-2); color: var(--text);
  border: var(--rand); border-radius: 2px; font: inherit; font-size: 16px;
}
.kd input[type="file"] {
  width: 100%; font: inherit; font-size: 15px; color: var(--muted);
}
.kd input:focus-visible { border-color: var(--ev); outline: none; }
.kd-hinweis { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.kd-menge { display: flex; align-items: center; gap: 14px; }
.kd-schritt {
  min-width: 52px; min-height: 52px; font-size: 24px; line-height: 1;
  background: var(--bg-2); color: var(--text); border: 1px solid var(--line-hell);
  cursor: pointer;
}
.kd-schritt:hover, .kd-schritt:focus-visible { border-color: var(--ev); color: var(--ev); }
.kd-menge output {
  font-family: var(--display); font-size: 30px; min-width: 2ch; text-align: center;
  font-variant-numeric: tabular-nums;
}
.kd-summe {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 4px 0 22px; padding: 14px 0; border-top: var(--rand); border-bottom: var(--rand);
  font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.kd-summe b {
  font-family: var(--display); font-size: 30px; color: var(--ev);
  letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums;
}
.kd-ok { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; font-size: 14px; line-height: 1.55; }
.kd-ok input { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.kd-fehler {
  margin: 0 0 16px; padding: 12px 14px;
  border-left: 3px solid var(--rot); background: rgba(255, 82, 82, .12);
}
.kd-los { width: 100%; justify-content: center; }
.kd-zahlarten { display: grid; gap: 10px; margin-bottom: 6px; }
.kd-zahlarten .kd-los { margin: 0; }
.kd-los-paypal { background: #ffc439; color: #111; border-color: #ffc439; }
.kd-test { margin-top: 14px; }
.kd-fertig { margin-top: 22px; padding-top: 20px; border-top: var(--rand); }
.kd-fertig ul { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 8px; }
.kd-fertig a { color: var(--ev); font-family: var(--display); font-size: 18px; }
.kd-code { margin: 0 0 12px; font-size: 16px; }
.kd-code b { font-family: var(--display); font-size: 26px; color: var(--ev); letter-spacing: .04em; }
.kd-fertig-zu { margin-top: 16px; }
.kd-fertig-zu .es-cta { width: 100%; text-align: center; justify-content: center; }
@media (max-width: 560px) {
  .kd { width: 100vw; max-width: none; max-height: 96dvh; margin: auto 0 0; }
}

/* ---------------------------------------------------------------- Optik-Seite
   Eine Seite für alles Optische (27.07.2026). Bewusst sparsam: die Karten,
   Felder und Knöpfe sind die vorhandenen — neu sind nur die Kette, die die
   Vererbung sichtbar macht, und der Farbpunkt in den Verweisen. */
/* Alle Karten der Optik-Seite sind Sprungziele (#grund, #flaeche, #m-voting …).
   Ohne diesen Abstand klebt die angesprungene Karte am oberen Fensterrand und
   man sieht ihre Überschrift nicht mehr — dieselbe Regel wie bei .sb-block. */
.ok-kette, .ok-verweis, [id^="m-"].karte, #grund, #flaeche { scroll-margin-top: 24px; }

.ok-leiter {
  margin: 12px 0 0; padding: 0 0 0 20px;
  display: grid; gap: 8px; color: var(--muted);
}
.ok-leiter strong { color: var(--text); }
/* Jede Stufe rückt ein — die Einrückung IST die Aussage: was weiter unten
   steht, erbt von allem darüber. */
.ok-leiter li:nth-child(2) { margin-left: 14px; }
.ok-leiter li:nth-child(3) { margin-left: 28px; }
.ok-leiter li:nth-child(4) { margin-left: 42px; }

/* Farbpunkt: zeigt in einem Verweis den aktuellen Stand, damit der Klick auf
   „Zur Optik" nicht ins Ungewisse geht. */
.ok-punkt {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35); vertical-align: -1px;
}

/* Verweis-Karten (im Seiten-Editor und in den Modul-Admins) sind bewusst
   ruhiger als eine Karte, in der man etwas einstellt. */
.ok-verweis { border-left: 2px solid var(--ev, #d97706); }

.ok-bilder { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.ok-vorschau { margin: 0; display: grid; gap: 6px; justify-items: start; }
.ok-vorschau img {
  max-width: 260px; max-height: 150px; border-radius: 6px; object-fit: cover;
}
.ok-vorschau.ok-logo img { object-fit: contain; background: rgba(255, 255, 255, .06); }
.ok-vorschau figcaption {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}

/* ===================================================================
   Koffer — „Deal oder no Deal" (28.07.2026)
   Ein Regelsatz für zwei Größen: das Moderator-Pult am Handy und die
   Leinwand im Saal. Unterschied ist nur `.kf-wand-gross`.
   =================================================================== */
.kf-geheim {
  border-left: 3px solid var(--amber);
  background: var(--amber-tief);
  padding: 12px 16px; margin-bottom: 20px; color: var(--text);
}
.kf-lage { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.kf-zahl b { display: block; font-family: var(--display); font-size: 30px; }
.kf-zahl span {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.kf-ende { border-left: 3px solid var(--gruen); padding-left: 14px; }

.kf-wand {
  display: grid; gap: 10px; margin: 18px 0;
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 560px) { .kf-wand { grid-template-columns: repeat(3, 1fr); } }
.kf-form { display: contents; }

/* Ein Koffer. Im Pult ein <button>, auf der Leinwand ein <div> — beide
   sehen gleich aus, damit der Moderator nicht übersetzen muss. */
.kf-koffer {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px;
  min-height: 88px; padding: 12px 8px;
  border: var(--rand); background: var(--panel-2); color: var(--text);
  font: inherit; cursor: pointer; text-align: center;
  transition: border-color var(--tempo), background var(--tempo),
              transform var(--tempo);
}
.kf-koffer:hover:not(:disabled) { border-color: var(--line-hell); }
.kf-koffer:active:not(:disabled) { transform: scale(.97); }
.kf-koffer:disabled { cursor: default; }
.kf-nr { font-family: var(--display); font-size: 30px; font-weight: 700; }
.kf-inhalt { font-size: 13px; line-height: 1.25; color: var(--muted); }

/* Der eigene Koffer des Kandidaten — die ganze Runde läuft auf ihn zu. */
.kf-eigen {
  border-color: var(--amber); border-width: 2px;
  box-shadow: 0 0 24px rgba(255, 176, 32, .25);
}
.kf-eigen .kf-nr { color: var(--amber); }

/* Geöffnet: raus aus dem Spiel, also zurücktreten. */
.kf-offen { background: var(--bg-2); opacity: .72; }
.kf-offen .kf-nr { font-size: 20px; color: var(--muted); }
.kf-leer { text-decoration: line-through; }

.kf-trost { border-color: var(--blau); opacity: 1; }
.kf-trost .kf-inhalt { color: var(--blau); }
.kf-haupt {
  border-color: var(--amber); border-width: 2px; opacity: 1;
  background: var(--amber-tief);
}
.kf-haupt .kf-inhalt { color: var(--amber); font-weight: 700; }

.kf-start { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.kf-start .feld { margin: 0; min-width: 220px; flex: 1; }
.kf-angebot { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.kf-angebot .feld { margin: 0; flex: 1; min-width: 260px; }
.kf-trostzeile { margin-bottom: 4px; }

/* ------------------------------------------------------------ Leinwand */
.kf-buehne {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; padding: 4vh 4vw; position: relative;
}
.kf-kopf { text-align: center; margin-bottom: 2vh; }
.kf-kopf h1 {
  font-family: var(--display); font-size: clamp(28px, 5vw, 68px);
  line-height: 1.05; margin: 0;
}
.kf-kandidat {
  margin: .6vh 0 0; color: var(--ev);
  font-size: clamp(18px, 2.4vw, 34px); letter-spacing: .08em;
  text-transform: uppercase;
}
.kf-wand-gross { grid-template-columns: repeat(5, 1fr); gap: 1.4vw; }
.kf-wand-gross .kf-koffer {
  min-height: 18vh; border-width: 2px; cursor: default;
}
.kf-wand-gross .kf-nr { font-size: clamp(34px, 5vw, 84px); }
.kf-wand-gross .kf-inhalt { font-size: clamp(14px, 1.5vw, 26px); }
.kf-wand-gross .kf-offen .kf-nr { font-size: clamp(22px, 3vw, 48px); }
@media (max-width: 900px) { .kf-wand-gross { grid-template-columns: repeat(5, 1fr); } }
.kf-status {
  text-align: center; margin: 2vh 0 0; color: var(--muted);
  font-size: clamp(16px, 2vw, 30px); letter-spacing: .06em;
}

/* Das Bank-Angebot deckt die Wand zu — in diesem Moment liest der Saal
   nichts anderes. */
.kf-bank {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2vh;
  background: rgba(10, 11, 14, .93);
  backdrop-filter: blur(6px);
  text-align: center; padding: 4vh 6vw;
}
.kf-bank-marke {
  color: var(--muted); letter-spacing: .3em; text-transform: uppercase;
  font-size: clamp(12px, 1.4vw, 22px);
}
.kf-bank-text {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 6vw, 92px); line-height: 1.1; color: var(--amber);
}
.kf-bank-frage {
  margin: 0; font-size: clamp(18px, 2.6vw, 40px); color: var(--text);
  letter-spacing: .08em;
}

/* ===================================================================
   Glücksrad (Stufe 11) — Pult und Leinwand
   =================================================================== */
.rd-lage { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.rd-zahl b { display: block; font-family: var(--display); font-size: 30px; }
.rd-zahl span {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.rd-historie { display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-top: 16px; }
.rd-chip {
  border: var(--rand); border-radius: 999px; padding: 3px 12px;
  font-size: 13px; color: var(--muted);
}
.rd-tabelle input[type="color"] {
  width: 46px; height: 34px; padding: 2px; border: var(--rand);
  background: var(--panel-2);
}
.rd-tabelle .schmal { width: 5.5em; }
.rd-tabelle td.mitte { text-align: center; }

/* --- Leinwand ---------------------------------------------------- */
.rd-buehne {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2vh; padding: 3vh 2vw;
}
.rd-titel {
  margin: 0; font-family: var(--display); font-weight: 700; text-align: center;
  font-size: clamp(26px, 4.4vw, 68px); line-height: 1.05;
}
/* Der Platz hält Rad und Zeiger zusammen; die Größe folgt der kleineren
   Bildschirmseite, damit das Rad auf jedem Beamer ganz zu sehen ist. */
.rd-platz {
  position: relative; width: min(62vh, 88vw); aspect-ratio: 1;
}
.rd-rad { width: 100%; height: 100%; display: block; transform-origin: 50% 50%; }
.rd-feld { stroke: rgba(0, 0, 0, .35); stroke-width: 1.5; }
.rd-nabe { fill: var(--panel-2); stroke: var(--amber); stroke-width: 4; }
.rd-schrift {
  fill: #fff; font-family: var(--display); font-weight: 700;
  font-size: 15px; text-anchor: middle; dominant-baseline: middle;
  paint-order: stroke; stroke: rgba(0, 0, 0, .45); stroke-width: 3px;
}
/* Der Zeiger sitzt bei 12 Uhr — dieselbe Nullstellung, die rad.zielwinkel()
   annimmt. Wird er verschoben, zeigt das Rad daneben. */
.rd-zeiger {
  position: absolute; top: -1.4%; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; z-index: 2;
  border-left: 2.2vh solid transparent; border-right: 2.2vh solid transparent;
  border-top: 4.4vh solid var(--amber);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .55));
}
.rd-ergebnis {
  margin: 0; text-align: center; font-family: var(--display); font-weight: 700;
  font-size: clamp(28px, 6vw, 96px); line-height: 1.1;
  color: var(--treffer, var(--amber));
  paint-order: stroke; text-shadow: 0 2px 18px rgba(0, 0, 0, .6);
}
@media (prefers-reduced-motion: reduce) {
  .rd-rad { transition: none !important; }
}

/* ===================================================================
   Showquiz (Stufe 10) — Bühne, Leinwand, Handy
   =================================================================== */
.sq-lage-leiste { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.sq-zahl b { display: block; font-family: var(--display); font-size: 30px; }
.sq-zahl span {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.sq-frage-gross {
  font-family: var(--display); font-size: 22px; line-height: 1.3; margin: 8px 0 14px;
}
.sq-optionen { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.sq-optionen li {
  border: var(--rand); padding: 10px 14px; display: flex; gap: 10px; align-items: baseline;
}
.sq-optionen b { font-family: var(--display); color: var(--muted); }
.sq-richtig { border-color: var(--gruen); }
.sq-marke {
  margin-left: auto; font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gruen);
}
.sq-nur-hier { border-left: 3px solid var(--amber); background: var(--amber-tief);
  padding: 10px 14px; }
.sq-knoepfe { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.sq-leiter { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 4px; }
.sq-erreicht { color: var(--amber); font-weight: 700; }
.sq-namen { display: flex; flex-wrap: wrap; gap: 8px; }
.sq-leiter-pflege { display: grid; gap: 8px; margin-bottom: 10px; }
.sq-qr-vorschau, .sq-qr-paar { display: flex; gap: 24px; flex-wrap: wrap; }
.sq-qr-vorschau img { width: 150px; height: auto; background: #fff; padding: 8px; }
.sq-qr-vorschau figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* --- Handy im Saal ------------------------------------------------ */
.sq-kopf { text-align: center; margin-bottom: 18px; }
.sq-kopf h1 { margin: 0; font-size: clamp(22px, 6vw, 32px); }
.sq-lage, .sq-ich { text-align: center; color: var(--muted); margin: 4px 0 18px; }
.sq-warten { text-align: center; color: var(--muted); padding: 40px 0; }
.sq-frage {
  font-family: var(--display); font-size: clamp(19px, 5.4vw, 26px);
  line-height: 1.3; text-align: center; margin: 0 0 18px;
}
.sq-tasten { display: grid; gap: 12px; }
/* ⭐ Große Flächen: bedient wird im Dunkeln, einhändig, unter Zeitdruck.
   56 px sind das Minimum für ein Touch-Ziel, hier deutlich mehr. */
.sq-taste {
  display: flex; align-items: center; gap: 14px; text-align: left;
  min-height: 68px; padding: 14px 18px; width: 100%;
  border: var(--rand); background: var(--panel-2); color: var(--text);
  font: inherit; cursor: pointer;
  transition: border-color var(--tempo), background var(--tempo), transform var(--tempo);
}
.sq-taste b { font-family: var(--display); font-size: 26px; color: var(--amber); }
.sq-taste:active:not(:disabled) { transform: scale(.98); }
.sq-taste:disabled { opacity: .55; cursor: default; }
.sq-gewaehlt { border-color: var(--amber); border-width: 2px; opacity: 1; }
.sq-dank { text-align: center; margin-top: 18px; color: var(--muted); }
.sq-raus { text-align: center; padding: 34px 0; }
.sq-raus-gross {
  font-family: var(--display); font-size: clamp(26px, 8vw, 40px); margin: 0 0 8px;
}

/* --- Leinwand ---------------------------------------------------- */
.sq-buehne {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2vh; padding: 4vh 3vw;
  text-align: center;
}
.sq-warte h1 { margin: 0 0 2vh; font-size: clamp(30px, 5vw, 78px); }
.sq-warte-text { font-size: clamp(18px, 2.4vw, 34px); color: var(--muted); margin: 0 0 3vh; }
.sq-qr-paar { justify-content: center; gap: 5vw; }
.sq-qr-paar img { width: min(26vh, 34vw); height: auto; background: #fff; padding: 1.4vh; }
.sq-qr-paar figcaption { margin-top: 1.2vh; font-size: clamp(14px, 1.6vw, 24px); }
.sq-qr-paar b { color: var(--amber); }
.sq-warte-fuss { margin-top: 3vh; font-size: clamp(15px, 1.8vw, 26px); color: var(--muted); }
.sq-dabei { margin-top: 2vh; color: var(--muted); font-size: clamp(15px, 1.8vw, 26px); }
.sq-dabei b { font-family: var(--display); color: var(--amber); font-size: 1.6em; }

.sq-frage-bild { width: 100%; max-width: 1500px; }
.sq-uhr { margin-bottom: 1.4vh; }
.sq-uhr span {
  display: inline-block; min-width: 2.4em; font-family: var(--display);
  font-size: clamp(30px, 5vw, 80px); color: var(--amber); font-weight: 700;
}
.sq-frage-text {
  margin: 0 0 2.4vh; font-family: var(--display); font-weight: 700;
  font-size: clamp(26px, 3.6vw, 62px); line-height: 1.15;
}
.sq-bild { max-height: 34vh; max-width: 100%; margin: 0 auto 2vh; display: block; }
.sq-kacheln {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6vh 2vw;
  margin-bottom: 2vh;
}
@media (max-width: 700px) { .sq-kacheln { grid-template-columns: 1fr; } }
.sq-kachel {
  display: flex; align-items: center; gap: 1.4vw; text-align: left;
  border: 2px solid var(--line); padding: 1.6vh 1.8vw;
  font-size: clamp(17px, 2.2vw, 38px);
  transition: border-color var(--tempo), opacity var(--tempo);
}
.sq-kachel b { font-family: var(--display); color: var(--amber); }
.sq-treffer { border-color: var(--gruen); background: rgba(46, 160, 67, .16); }
.sq-blass { opacity: .38; }
.sq-zaehler { color: var(--muted); font-size: clamp(15px, 1.8vw, 28px); margin: 0; }
.sq-balken { display: grid; gap: 1.2vh; margin-top: 2vh; }
.sq-balken-zeile { display: flex; align-items: center; gap: 1.4vw; }
.sq-balken-zeile b {
  font-family: var(--display); color: var(--amber);
  font-size: clamp(18px, 2.2vw, 36px); min-width: 1.4em;
}
.sq-spur { flex: 1; height: clamp(16px, 2.4vh, 34px); background: var(--panel-2); }
.sq-spur i { display: block; height: 100%; background: var(--amber);
  transition: width var(--tempo); }
.sq-balken-zeile span { min-width: 3.4em; text-align: right;
  font-size: clamp(15px, 1.8vw, 28px); }
