@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/static/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/static/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+A720-A7FF;
}

/* ------------------------------------------------------------ Farben */
:root {
  color-scheme: light;
  --bg: #f7f6f3;
  --flaeche: #ffffff;
  --sunk: #f0eeea;
  --fg: #18181b;
  --leise: #6b6a66;
  --rand: #e5e2dc;
  --akzent: #0f9f8f;
  --akzent-dunkel: #0b7f72;
  --akzent-soft: rgba(15, 159, 143, .1);
  --gefahr: #c0362c;
  --gefahr-soft: rgba(192, 54, 44, .08);
  --ok: #16a34a;
  --warn: #b45309;
  --warn-soft: #fff7e6;
  --buehne: #0c0d10;
  --buehne-2: #16181d;
  --buehne-rand: #262931;
  --buehne-fg: #e7e7ea;
  --buehne-leise: #9a9ca5;
  --radius: 14px;
  --schatten: 0 1px 2px rgba(20, 20, 20, .05), 0 8px 24px -8px rgba(20, 20, 20, .12);
  --schatten-gross: 0 1px 2px rgba(20, 20, 20, .05), 0 24px 60px -12px rgba(20, 20, 20, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--fg);
  font: 15px/1.5 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { font-weight: 650; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
h1 { font-size: 26px; } h2 { font-size: 18px; } h3 { font-size: 15px; }
p { margin: 0 0 .6em; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; width: 18px; height: 18px; flex: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--akzent-dunkel); }
.leise { color: var(--leise); font-size: 13.5px; }

/* ------------------------------------------------------------ Knöpfe + Felder */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  background: var(--akzent); color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background .15s, box-shadow .15s, transform .05s;
}
.knopf:hover { background: var(--akzent-dunkel); }
.knopf:active { transform: translateY(1px); }
.knopf:disabled { opacity: .45; cursor: default; transform: none; }
.knopf:focus-visible, .feld:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(15, 159, 143, .25); }
.knopf-zweit { background: var(--flaeche); color: var(--fg); border-color: var(--rand); }
.knopf-zweit:hover { background: var(--sunk); }
.knopf-zweit.aktiv { border-color: var(--akzent); color: var(--akzent-dunkel); background: var(--akzent-soft); }
.knopf-text { background: none; color: var(--leise); padding: 0 8px; }
.knopf-text:hover { background: var(--sunk); color: var(--fg); }
.knopf-gefahr { background: var(--gefahr); }
.knopf-gefahr:hover { background: #a02a21; }
.knopf-klein { min-height: 32px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }
.knopf-gross { min-height: 52px; font-size: 17px; border-radius: 12px; width: 100%; }
.knopf-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 0; background: none; color: var(--leise); }
.knopf-icon:hover { background: var(--sunk); color: var(--fg); }
.feld {
  width: 100%; min-height: 40px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--rand);
  background: var(--flaeche); transition: border-color .15s, box-shadow .15s;
}
.feld:focus { border-color: var(--akzent); }
textarea.feld { resize: vertical; min-height: 80px; line-height: 1.45; }
label.etikett { display: block; font-size: 12.5px; font-weight: 600; color: var(--leise); margin: 12px 0 5px; text-transform: uppercase; letter-spacing: .04em; }
.hinweis-warn { background: var(--warn-soft); color: var(--warn); border: 1px solid #f6dcae; border-radius: 10px; padding: 8px 12px; font-size: 13.5px; margin: 8px 0; }
.fehler-text { color: var(--gefahr); font-size: 14px; }

/* ------------------------------------------------------------ Modal + Meldungen */
.modal-huelle { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(15, 15, 20, .45); backdrop-filter: blur(3px); animation: einblenden .15s; }
.modal { width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--flaeche); border-radius: 18px; box-shadow: var(--schatten-gross); padding: 22px; }
.modal-breit { width: min(1100px, 100%); }
.modal > h2 { margin-bottom: 8px; }
.modal-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.modal-knoepfe { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
@keyframes einblenden { from { opacity: 0; } }
.meldungen { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; pointer-events: none; }
.meldung { background: #1f2024; color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: var(--schatten-gross); font-size: 14px; transition: opacity .3s, transform .3s; animation: einblenden .2s; }
.meldung-fehler { background: var(--gefahr); }
.meldung-ok { background: #127a5a; }
.meldung.weg { opacity: 0; transform: translateY(8px); }

/* ------------------------------------------------------------ Betrachter */
.betrachter { position: relative; overflow: hidden; background: #000; user-select: none; -webkit-user-select: none; touch-action: none; }
.betrachter canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.betrachter[data-werkzeug="verschieben"] canvas { cursor: grab; }
.betrachter[data-werkzeug="zoom"] canvas { cursor: zoom-in; }
.betrachter[data-werkzeug="blaettern"] canvas { cursor: ns-resize; }
.betrachter[data-werkzeug="fenster"] canvas { cursor: default; }
.bt-info { position: absolute; color: #e5e7eb; font: 500 12px/1.3 "Inter", sans-serif; text-shadow: 0 1px 2px #000, 0 0 4px #000; pointer-events: none; white-space: pre; font-variant-numeric: tabular-nums; }
.bt-oben { top: 10px; left: 12px; font-size: 13px; font-weight: 600; }
.bt-unten { bottom: 10px; left: 12px; }
.bt-rechts { bottom: 10px; right: 28px; }
.bt-laedt { position: absolute; top: 10px; right: 30px; color: #a1a1aa; font-size: 12px; }
.bt-leiste { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.bt-knopf {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 8px;
  border: 1px solid transparent; background: none; color: inherit; font-size: 13.5px; font-weight: 550;
}
.bt-knopf:hover { background: rgba(127, 127, 127, .14); }
.bt-knopf.aktiv { background: var(--akzent-soft); color: var(--akzent-dunkel); border-color: rgba(15, 159, 143, .35); }
.bt-trenner { width: 1px; height: 22px; background: var(--rand); margin: 0 4px; }
.bt-wahl { height: 34px; border-radius: 8px; border: 1px solid var(--rand); background: var(--flaeche); padding: 0 8px; font-size: 13.5px; }

/* Serienleiste */
.serien-leiste { display: flex; gap: 8px; overflow-x: auto; padding: 8px; scrollbar-width: thin; }
.serie-kachel { flex: none; width: 92px; padding: 4px; border-radius: 10px; border: 2px solid transparent; background: rgba(255, 255, 255, .06); color: inherit; display: grid; gap: 4px; text-align: left; }
.serie-kachel img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #000; border-radius: 6px; display: block; }
.serie-kachel span { font-size: 11.5px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.serie-kachel.aktiv { border-color: var(--akzent); }

/* ------------------------------------------------------------ Kopfleiste (hell) */
.kopf { display: flex; align-items: center; gap: 14px; padding: 12px 20px; background: var(--flaeche); border-bottom: 1px solid var(--rand); }
.marke { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; color: var(--fg); font-size: 16px; }
.marke-zeichen { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #14b8a6, #0e7490); display: grid; place-items: center; color: #fff; }
.marke-zeichen svg { width: 18px; height: 18px; stroke-width: 2; }
.kopf .abstand { flex: 1; }

/* ------------------------------------------------------------ Start + Login + Handy-Beitritt */
.mitte-seite { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(70vmax 60vmax at 0% 0%, #d9f3ef 0%, transparent 60%), radial-gradient(60vmax 60vmax at 100% 100%, #e6ecf8 0%, transparent 60%), var(--bg); }
.karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 20px; box-shadow: var(--schatten); padding: 28px; width: min(420px, 100%); }
.karte h1 { margin: 14px 0 6px; }
.code-feld { text-align: center; font-size: 28px; letter-spacing: .3em; font-weight: 700; text-transform: uppercase; min-height: 60px; }

/* ------------------------------------------------------------ Admin-Übersicht */
.inhalt { max-width: 1120px; margin: 0 auto; padding: 28px 20px 60px; }
.abschnitt { margin-bottom: 36px; }
.abschnitt-kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.abschnitt-kopf h2 { flex: 1; }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.praes-karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 6px; box-shadow: var(--schatten); text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.praes-karte:hover { border-color: var(--akzent); transform: translateY(-1px); }
.praes-karte .titel { font-weight: 650; font-size: 16px; }
.praes-karte .code { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; background: var(--sunk); border-radius: 6px; padding: 1px 7px; justify-self: start; }
.serien-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.serie-karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 12px; overflow: hidden; display: grid; position: relative; }
.serie-karte img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #000; display: block; }
.serie-karte .text { padding: 8px 10px; font-size: 13px; display: grid; gap: 2px; }
.serie-karte .text strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serie-karte .loeschen { position: absolute; top: 6px; right: 6px; background: rgba(255, 255, 255, .9); }
.serie-karte.waehlbar { cursor: pointer; }
.serie-karte.gewaehlt { outline: 3px solid var(--akzent); outline-offset: -3px; }
.leer { border: 1.5px dashed var(--rand); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--leise); }

/* ------------------------------------------------------------ Hochladen */
.ablage { border: 2px dashed #cfd8d6; border-radius: var(--radius); padding: 22px; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; background: var(--flaeche); transition: border-color .15s, background .15s; }
.ablage.ueber { border-color: var(--akzent); background: var(--akzent-soft); }
.ablage-symbol { width: 34px; height: 34px; color: var(--akzent); }
.ablage-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.hl-status { margin: 12px 2px; }
.hl-serien { display: grid; gap: 12px; margin-top: 12px; }
.hl-karte { display: grid; grid-template-columns: 260px 1fr; gap: 18px; background: var(--flaeche); border: 1px solid var(--rand); border-radius: var(--radius); padding: 14px; }
.hl-vorschau { position: relative; background: #000; border-radius: 10px; display: grid; place-items: center; min-height: 160px; overflow: hidden; }
.hl-vorschau canvas { max-width: 100%; display: block; }
.hl-vorschau canvas.zeichnen { cursor: crosshair; outline: 2px solid #f59e0b; }
.hl-schwarz-hinweis { position: absolute; left: 6px; right: 6px; bottom: 6px; background: rgba(245, 158, 11, .92); color: #111; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 6px; pointer-events: none; }
.hl-angaben { display: grid; gap: 8px; align-content: start; }
.hl-wahl { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.hl-wahl input { width: 18px; height: 18px; accent-color: var(--akzent); }
.hl-schieber { width: 100%; accent-color: var(--akzent); }
.hl-zeile { display: flex; gap: 8px; flex-wrap: wrap; }
.hl-fortschritt { height: 6px; border-radius: 3px; background: var(--sunk); overflow: hidden; }
.hl-fortschritt div { height: 100%; width: 0; background: var(--akzent); transition: width .2s; }
.hl-fuss { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
@media (max-width: 700px) { .hl-karte { grid-template-columns: 1fr; } .ablage { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ Editor */
.editor { display: grid; grid-template-rows: auto 1fr; height: 100vh; overflow: hidden; }
.editor-kopf { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--flaeche); border-bottom: 1px solid var(--rand); min-width: 0; }
.editor-kopf .titel-feld { max-width: 280px; min-height: 36px; font-weight: 600; border-color: transparent; background: transparent; }
.editor-kopf .titel-feld:hover { border-color: var(--rand); }
.editor-kopf .bt-leiste { flex: 1; min-width: 0; }
.editor-koerper { display: grid; grid-template-columns: 250px 1fr 340px; min-height: 0; }
.spalte { overflow-y: auto; min-height: 0; background: var(--flaeche); }
.spalte-links { border-right: 1px solid var(--rand); padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.spalte-rechts { border-left: 1px solid var(--rand); padding: 14px 16px 40px; }
.neu-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 6px; }
.folie-eintrag { display: grid; grid-template-columns: 16px 46px 1fr; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; background: var(--flaeche); }
.folie-eintrag:hover { background: var(--sunk); }
.folie-eintrag.aktiv { border-color: var(--akzent); background: var(--akzent-soft); }
.folie-eintrag.ziehen { opacity: .4; }
.folie-eintrag.ziel-oben { box-shadow: inset 0 3px 0 var(--akzent); }
.folie-eintrag.ziel-unten { box-shadow: inset 0 -3px 0 var(--akzent); }
.griff { color: #b8b4ad; cursor: grab; font-size: 14px; line-height: 1; letter-spacing: -2px; }
.folie-mini { width: 46px; height: 34px; border-radius: 6px; background: #111; overflow: hidden; display: grid; place-items: center; color: #aaa; font-size: 10px; }
.folie-mini img { width: 100%; height: 100%; object-fit: cover; }
.folie-mini.text { background: var(--sunk); color: var(--leise); }
.folie-name { font-size: 13.5px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folie-name small { display: block; font-weight: 400; color: var(--leise); font-size: 12px; }
.buehne { background: var(--buehne); color: var(--buehne-fg); display: grid; grid-template-rows: 1fr auto; min-height: 0; min-width: 0; }
.buehne .betrachter { min-height: 0; }
.buehne .serien-leiste { background: var(--buehne-2); border-top: 1px solid var(--buehne-rand); }
.buehne-leer { display: grid; place-items: center; text-align: center; color: var(--buehne-leise); padding: 30px; }
.text-folie { padding: 6vh 6vw; overflow: auto; }
.text-folie h1 { font-size: clamp(28px, 4vw, 52px); margin-bottom: 24px; }
.text-folie .text { font-size: clamp(17px, 1.8vw, 26px); line-height: 1.5; color: #d4d4d8; }
.text-folie ul { padding-left: 1.2em; } .text-folie li { margin: .3em 0; }
.aufgabe-karte { border: 1px solid var(--rand); border-radius: 12px; padding: 12px; margin-top: 12px; background: var(--flaeche); }
.aufgabe-karte.aktiv { border-color: var(--akzent); box-shadow: 0 0 0 3px var(--akzent-soft); }
.aufgabe-kopf { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.aufgabe-kopf .art { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--akzent-dunkel); flex: 1; }
.option-zeile { display: grid; grid-template-columns: auto 1fr auto; gap: 6px; align-items: center; margin-top: 6px; }
.option-zeile input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--ok); }
.loesung-status { display: flex; gap: 8px; align-items: center; font-size: 13.5px; margin: 8px 0; flex-wrap: wrap; }
.punkt { width: 9px; height: 9px; border-radius: 50%; background: #d4d4d8; flex: none; }
.punkt.ok { background: var(--ok); }
.serien-auswahl { display: grid; gap: 6px; }
.serien-auswahl .zeile { display: grid; grid-template-columns: 40px 1fr auto; gap: 8px; align-items: center; font-size: 13.5px; }
.serien-auswahl img { width: 40px; height: 40px; object-fit: contain; background: #000; border-radius: 6px; }
@media (max-width: 1100px) { .editor-koerper { grid-template-columns: 200px 1fr 300px; } .bt-knopf span { display: none; } }

/* ------------------------------------------------------------ Leinwand (dunkel, Beamer) */
body.leinwand-seite { background: var(--buehne); color: var(--buehne-fg); overflow: hidden; }
.leinwand { display: grid; grid-template-rows: 1fr auto; height: 100vh; }
.lw-haupt { display: grid; grid-template-columns: 1fr minmax(320px, 30vw); min-height: 0; }
.lw-haupt.ohne-seite { grid-template-columns: 1fr; }
.lw-bild { display: grid; grid-template-rows: 1fr auto; min-height: 0; min-width: 0; }
.lw-seite { background: var(--buehne-2); border-left: 1px solid var(--buehne-rand); padding: 28px 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.lw-seite h1 { font-size: clamp(22px, 2.2vw, 36px); }
.lw-frage { font-size: clamp(20px, 1.9vw, 32px); font-weight: 650; line-height: 1.25; }
.lw-text { color: #c4c4cc; font-size: clamp(15px, 1.2vw, 20px); }
.lw-zaehler { font-size: clamp(36px, 4vw, 64px); font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1; }
.lw-zaehler small { font-size: .4em; color: var(--buehne-leise); font-weight: 500; }
.lw-balken { height: 8px; border-radius: 4px; background: #2a2d35; overflow: hidden; }
.lw-balken div { height: 100%; background: var(--akzent); transition: width .4s; }
.lw-optionen { display: grid; gap: 10px; }
.lw-option { position: relative; border-radius: 12px; background: #20232a; padding: 14px 16px; font-size: clamp(16px, 1.3vw, 22px); font-weight: 600; overflow: hidden; display: flex; justify-content: space-between; gap: 12px; }
.lw-option .fuell { position: absolute; inset: 0 auto 0 0; background: rgba(148, 163, 184, .22); transition: width .6s; }
.lw-option.richtig { box-shadow: inset 0 0 0 2px #22c55e; }
.lw-option.richtig .fuell { background: rgba(34, 197, 94, .28); }
.lw-option > span { position: relative; }
.lw-ergebnis { font-size: clamp(18px, 1.5vw, 26px); font-weight: 650; }
.lw-ergebnis .gruen { color: #4ade80; }
.lw-legende { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: var(--buehne-leise); }
.lw-legende i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.lw-schalter { display: flex; gap: 6px; flex-wrap: wrap; }
.lw-schalter .knopf { background: #23262e; color: #ddd; border-color: #33363f; min-height: 32px; font-size: 13px; padding: 0 10px; }
.lw-schalter .knopf.aktiv { background: rgba(15, 159, 143, .25); border-color: var(--akzent); color: #fff; }
.lw-fuss { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: #08090b; border-top: 1px solid var(--buehne-rand); color: var(--buehne-leise); font-size: 13.5px; transition: opacity .3s; }
.lw-fuss .bt-leiste { color: #ddd; }
.lw-fuss .bt-knopf.aktiv { color: #5eead4; background: rgba(15, 159, 143, .2); }
.lw-fuss .bt-wahl { background: #1c1e24; border-color: #33363f; color: #ddd; }
.lw-fuss .bt-trenner { background: #33363f; }
.lw-fuss .abstand { flex: 1; }
.lw-fuss .knopf { min-height: 34px; padding: 0 14px; }
.lw-fuss .knopf-zweit { background: #1c1e24; border-color: #33363f; color: #ddd; }
.lw-fuss.versteckt { opacity: 0; }
.lw-fuss.versteckt:hover { opacity: 1; }
.lw-code { font-weight: 700; color: #fff; }
.lw-lobby { display: grid; grid-template-columns: auto 1fr; gap: 6vw; align-items: center; padding: 6vh 7vw; height: 100%; }
.lw-qr { background: #fff; border-radius: 24px; padding: 18px; width: min(42vh, 36vw); aspect-ratio: 1; }
.lw-qr img { width: 100%; height: 100%; display: block; }
.lw-lobby h1 { font-size: clamp(32px, 4.4vw, 72px); margin-bottom: 18px; }
.lw-url { font-size: clamp(20px, 2.4vw, 40px); color: #5eead4; font-weight: 650; }
.lw-namen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; max-height: 40vh; overflow: hidden; }
.lw-namen span { background: #20232a; border-radius: 999px; padding: 6px 14px; font-size: clamp(14px, 1.2vw, 19px); animation: einblenden .4s; }
.lw-qr-ecke { position: absolute; right: 16px; top: 16px; background: #fff; padding: 8px; border-radius: 12px; width: 130px; z-index: 5; text-align: center; color: #111; font-weight: 700; font-size: 13px; }
.lw-qr-ecke img { width: 100%; display: block; }
.lw-rang { display: grid; gap: 8px; max-width: 760px; width: 100%; }
.lw-rang div { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; background: #1b1e24; border-radius: 12px; padding: 12px 18px; font-size: clamp(16px, 1.5vw, 24px); }
.lw-rang div:nth-child(1) { background: linear-gradient(90deg, rgba(250, 204, 21, .25), #1b1e24); }
.lw-rang div:nth-child(2) { background: linear-gradient(90deg, rgba(203, 213, 225, .2), #1b1e24); }
.lw-rang div:nth-child(3) { background: linear-gradient(90deg, rgba(217, 119, 6, .22), #1b1e24); }
.lw-rang b { font-size: 1.2em; } .lw-rang em { font-style: normal; font-weight: 700; color: #5eead4; }
.lw-ende { display: grid; place-items: center; align-content: center; gap: 24px; padding: 5vh; height: 100%; }
.gliederung { position: fixed; left: 14px; bottom: 60px; width: 340px; max-height: 70vh; overflow: auto; background: #15171c; border: 1px solid var(--buehne-rand); border-radius: 14px; padding: 10px; z-index: 20; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.gliederung button { display: block; width: 100%; text-align: left; background: none; border: 0; color: #ddd; padding: 7px 10px; border-radius: 8px; font-size: 13.5px; }
.gliederung button:hover { background: #23262e; }
.gliederung button.aktiv { background: rgba(15, 159, 143, .25); color: #fff; }
.gliederung .eingerueckt { padding-left: 26px; color: #aaa; }

/* ------------------------------------------------------------ Handy (Teilnehmende) */
body.handy-seite { background: var(--buehne); color: var(--buehne-fg); overscroll-behavior: none; }
.handy { display: grid; grid-template-rows: auto 1fr auto; height: 100vh; height: 100dvh; }
.handy-kopf { display: flex; align-items: center; gap: 10px; padding: max(10px, env(safe-area-inset-top)) 14px 10px; background: var(--buehne-2); border-bottom: 1px solid var(--buehne-rand); font-size: 14px; }
.handy-kopf .name { margin-left: auto; color: var(--buehne-leise); max-width: 45vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.handy-mitte { display: flex; flex-direction: column; min-height: 0; }
.handy-bild { flex: 1; min-height: 0; display: grid; }
.handy-mitte > .handy-optionen:only-of-type { flex: 1; }
.handy-frage { padding: 12px 16px; font-weight: 650; font-size: 17px; line-height: 1.3; background: var(--buehne-2); }
.handy-frage small { display: block; font-weight: 400; font-size: 13px; color: var(--buehne-leise); margin-top: 3px; }
.handy .serien-leiste { background: var(--buehne-2); padding: 6px 8px; }
.handy .serie-kachel { width: 74px; }
.handy .betrachter { min-height: 0; }
.handy-leiste { display: flex; justify-content: center; gap: 2px; padding: 6px; background: #0f1014; border-top: 1px solid var(--buehne-rand); color: #ddd; overflow-x: auto; }
.handy-leiste .bt-knopf { flex-direction: column; height: auto; padding: 6px 8px; gap: 2px; font-size: 11px; }
.handy-leiste .bt-knopf svg { width: 20px; height: 20px; }
.handy-leiste .bt-knopf.aktiv { color: #5eead4; background: rgba(15, 159, 143, .18); }
.handy-leiste .bt-wahl { background: #1c1e24; border-color: #33363f; color: #ddd; height: 44px; align-self: center; }
.handy-leiste .bt-trenner { background: #33363f; height: 32px; }
.handy-unten { padding: 10px 14px max(12px, env(safe-area-inset-bottom)); background: var(--buehne-2); border-top: 1px solid var(--buehne-rand); display: grid; gap: 8px; }
.handy-hinweis { text-align: center; font-size: 14px; color: var(--buehne-leise); }
.handy-hinweis.ok { color: #4ade80; font-weight: 600; }
.handy-hinweis.falsch { color: #fca5a5; font-weight: 600; }
.handy-warten { display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; padding: 30px 24px; }
.handy-warten h1 { font-size: 26px; }
.handy-warten .gross { font-size: 54px; }
.handy-optionen { display: grid; gap: 10px; padding: 16px; align-content: start; overflow-y: auto; }
.handy-option { display: flex; justify-content: space-between; gap: 10px; text-align: left; min-height: 56px; padding: 14px 16px; border-radius: 14px; border: 2px solid #2c2f38; background: #1a1c22; color: #fff; font-size: 17px; font-weight: 600; position: relative; overflow: hidden; }
.handy-option.gewaehlt { border-color: var(--akzent); background: rgba(15, 159, 143, .18); }
.handy-option.richtig { border-color: #22c55e; }
.handy-option .fuell { position: absolute; inset: 0 auto 0 0; background: rgba(148, 163, 184, .18); }
.handy-option.richtig .fuell { background: rgba(34, 197, 94, .25); }
.handy-option > span { position: relative; }
.handy-text-folie { padding: 24px 20px; overflow-y: auto; }
.handy-text-folie h1 { font-size: 24px; margin-bottom: 14px; }
.handy-text-folie .text { color: #d4d4d8; font-size: 17px; }
.handy-beitritt { min-height: 100dvh; display: grid; place-items: center; padding: 20px 16px; }
.handy-beitritt .karte { background: #17191f; border-color: var(--buehne-rand); color: var(--buehne-fg); }
.handy-beitritt .feld { background: #0f1014; border-color: #33363f; color: #fff; font-size: 18px; min-height: 52px; }
.handy-beitritt .leise { color: var(--buehne-leise); }
.handy-rang { font-size: 64px; font-weight: 800; color: #5eead4; line-height: 1; }

/* ------------------------------------------------------------ Feinschliff */
.editor-kopf .bt-leiste { flex-wrap: nowrap; overflow: hidden; }
.editor-kopf .bt-wahl { width: 118px; }
@media (max-width: 1640px) { .editor-kopf .bt-knopf span { display: none; } }
.handy-leiste { flex-wrap: nowrap; justify-content: flex-start; }
.handy-leiste .bt-wahl { width: 92px; flex: none; }
.handy-leiste .bt-knopf { flex: none; }
.handy .serie-kachel { width: 64px; }
.handy .serie-kachel span { font-size: 10.5px; }
.lw-rang div:nth-child(n) { background: #1b1e24; }
.lw-rang div.r1 { background: linear-gradient(90deg, rgba(250, 204, 21, .25), #1b1e24); }
.lw-rang div.r2 { background: linear-gradient(90deg, rgba(203, 213, 225, .2), #1b1e24); }
.lw-rang div.r3 { background: linear-gradient(90deg, rgba(217, 119, 6, .22), #1b1e24); }

/* ------------------------------------------------------------ Editor: Blöcke wie Karten */
.spalte-rechts { background: var(--bg); }
.block { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.block-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.block-kopf h3 { font-size: 15px; }
.block-kopf h3 .leise { font-weight: 400; }
.knopf-dunkel { background: #1f2229; color: #fff; border-color: #1f2229; }
.knopf-dunkel:hover { background: #2c3039; }
.knopf-dunkel.aktiv { background: #fb923c; border-color: #fb923c; color: #111; }
.knopf-voll { width: 100%; margin: 4px 0 10px; }
.eintrag-zeile { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.eintrag-zeile > svg { color: var(--leise); }
.eintrag-text { flex: 1; font-size: 14px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feld-klein { min-height: 34px; padding: 5px 10px; flex: 1; }
.farbpunkt { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.klein { font-size: 12px; }
.knopf-rund { border-radius: 50%; background: var(--sunk); }
.aufgaben-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 20px 0 4px; flex-wrap: wrap; }
.aufgaben-kopf h2 { font-size: 16px; }
.aufgabe-neu { display: flex; gap: 6px; }
.aufgabe-karte { background: var(--flaeche); padding: 14px; }
.aufgabe-kopf .griff { font-size: 15px; }
.aufgabe-karte.ziehen, .option.ziehen { opacity: .45; }
.unterzeile { margin: 12px 0 4px; font-weight: 600; font-size: 14px; }
.toleranz { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 6px; }
.toleranz .feld { width: 64px; min-height: 32px; padding: 4px 8px; }
.option { border-radius: 10px; }
.option .option-zeile { display: grid; grid-template-columns: 14px 16px 26px 1fr 22px 30px; gap: 6px; align-items: center; margin-top: 6px; }
.option .buchstabe { font-weight: 700; color: var(--leise); text-align: center; border-right: 1.5px solid var(--rand); }
.option .pfeil { width: 26px; height: 26px; }
.option .pfeil svg { transition: transform .15s; width: 16px; height: 16px; }
.option.offen .pfeil svg { transform: rotate(90deg); }
.option .option-text { min-height: 36px; padding: 6px 10px; font-weight: 600; }
.option input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--akzent); }
.option-details { display: none; padding: 6px 0 6px 64px; }
.option.offen .option-details { display: grid; gap: 6px; }
.detail-zeile { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; }
.detail-zeile svg { color: var(--leise); margin-top: 9px; }
.detail-zeile .feld { min-height: 36px; padding: 6px 10px; font-size: 14px; }
.detail-zeile textarea.feld { min-height: 56px; }

/* Leinwand: Erklärungen */
.lw-erklaerungen { display: grid; gap: 10px; }
.lw-erklaerung { background: #1b1e24; border-radius: 12px; padding: 12px 16px; font-size: clamp(14px, 1.05vw, 18px); color: #d4d4d8; border-left: 4px solid #3f434d; }
.lw-erklaerung.richtig { border-left-color: #22c55e; }
.lw-erklaerung b { display: block; color: #fff; margin-bottom: 4px; }
.lw-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lw-links span { background: #262a33; border-radius: 6px; padding: 2px 8px; font-size: .85em; color: #5eead4; }
.handy-erklaerung { margin: -4px 2px 4px; padding: 10px 12px; border-radius: 10px; background: #15171c; color: #d4d4d8; font-size: 14.5px; border-left: 3px solid #3f434d; display: grid; gap: 6px; }
.handy-erklaerung.richtig { border-left-color: #22c55e; }
.handy-erklaerung a { color: #5eead4; word-break: break-all; }
#lw-markierungen.aktiv { background: #fb923c; color: #111; border-color: #fb923c; }

/* Moderation */
.moderation { max-width: 620px; margin: 0 auto; padding: 16px; display: grid; gap: 12px; }
.mod-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mod-karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 14px; padding: 16px; display: grid; gap: 6px; }
.mod-karte h2 { font-size: 20px; }
.mod-frage { font-size: 17px; font-weight: 600; margin: 0; }
.mod-balken { height: 8px; border-radius: 4px; background: var(--sunk); overflow: hidden; margin: 6px 0 4px; }
.mod-balken div { height: 100%; background: var(--akzent); transition: width .4s; }
.mod-ergebnis { font-weight: 650; color: var(--ok); margin: 0; }
.mod-notizen { font-size: 16px; line-height: 1.55; white-space: normal; }
.mod-naechster div { font-weight: 600; }
.mod-fuss { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.mod-fuss .knopf { min-height: 56px; font-size: 18px; }
#m-markieren.aktiv { background: #fb923c; color: #111; border-color: #fb923c; }
.griff { display: inline-grid; place-items: center; cursor: grab; color: #a8a49d; }
.griff svg { width: 10px; height: 16px; fill: currentColor; stroke: none; }
.knopf-voll { white-space: normal; line-height: 1.25; padding: 8px 14px; font-size: 14px; text-align: center; }
.editor-koerper { grid-template-columns: 250px 1fr 390px; }
@media (max-width: 1300px) { .editor-koerper { grid-template-columns: 200px 1fr 340px; } }
.knopf-google { background: #fff; color: #1f1f1f; border-color: #dadce0; width: 100%; }
.knopf-google:hover { background: #f6f8fb; }
.g-logo { width: 20px; height: 20px; }
