/* KRAFTquiz – Gestaltung im Stil der Kursverwaltung Kraft Notfalltraining */
:root {
  --rot: #E30613; --rot-dunkel: #B4040F; --rot-hell: #FDECEE;
  --teal: #38A7BA; --teal-dunkel: #2A8A9C; --teal-hell: #E6F4F7;
  --tinte: #16171B; --text-2: #5E616E; --text-3: #8A8D99;
  --flaeche: #F6F6F8; --karte: #FFFFFF; --linie: #E7E7EC; --linie-2: #D7D8DF;
  --gruen: #18864B; --gruen-hell: #E5F5EC; --gelb: #B7791F; --gelb-hell: #FDF3E1; --blau: #029AC9;
  --a0: #E30613; --a1: #2A8A9C; --a2: #F2A900; --a3: #18864B; --a4: #6E4BB8; --a5: #16171B;
  --radius: 16px; --radius-s: 10px;
  --schatten: 0 1px 2px rgba(16,18,27,.05), 0 1px 1px rgba(16,18,27,.03);
  --schatten-hoch: 0 12px 32px rgba(16,18,27,.14), 0 2px 6px rgba(16,18,27,.06);
  --schrift: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --schrift-titel: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --nav-breite: 232px; --kopf-hoehe: 64px; --skala: 1;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--schrift); font-size: 15px; line-height: 1.5; color: var(--tinte); background: var(--flaeche); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--schrift-titel); letter-spacing: -.015em; margin: 0; }
h1 { font-size: 28px; font-weight: 650; line-height: 1.2; }
h2 { font-size: 19px; font-weight: 620; }
h3 { font-size: 15px; font-weight: 620; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon.s { width: 16px; height: 16px; } .icon.l { width: 28px; height: 28px; } .icon.xl { width: 44px; height: 44px; }
.form { width: 1em; height: 1em; fill: currentColor; flex: 0 0 auto; }
.leise { color: var(--text-2); } .sehr-leise { color: var(--text-3); font-size: 13px; }
[hidden], .versteckt { display: none !important; }
.mono { font-family: "Cascadia Mono", "SF Mono", Consolas, monospace; letter-spacing: .03em; }

/* ---------------- Rahmen der Verwaltung ---------------- */
.kopfleiste { position: sticky; top: 0; z-index: 20; height: var(--kopf-hoehe); background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 22px 0 16px; box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 4px 14px rgba(42,138,156,.18); }
.kl-marke { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.kl-k { width: auto; min-width: 40px; max-width: 170px; height: 40px; padding: 0 2px; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.15); background: #fff; object-fit: contain; }
.kl-titel { font-family: var(--schrift-titel); font-weight: 600; font-size: 17px; letter-spacing: .01em; }
/* Kopfleiste mit 3D-Effekt: Verlauf von hell nach dunkel, Glanzkante oben, Schattenkante unten */
.kopfleiste, .tn-kopf {
  background:
    linear-gradient(180deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,.08) 48%, rgba(0,0,0,0) 52%, rgba(0,0,0,.14) 100%),
    linear-gradient(180deg, var(--teal) 0%, var(--teal-dunkel, #2a7f8e) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(0,0,0,.18), 0 6px 18px -4px rgba(20,80,92,.45), 0 2px 4px rgba(0,0,0,.12);
  border-bottom: 1px solid rgba(0,0,0,.12);
}
.kopfleiste .kl-titel, .tn-kopf .wer { text-shadow: 0 1px 1px rgba(0,0,0,.28); }
.kopfleiste .kl-k { box-shadow: 0 3px 8px rgba(0,0,0,.28), inset 0 -2px 0 rgba(0,0,0,.08); transform: translateY(-1px); }
.kopfleiste .kl-ich { box-shadow: 0 3px 8px rgba(0,0,0,.25), inset 0 -2px 0 rgba(0,0,0,.1); background: linear-gradient(180deg, #fff, #e9f4f6); }
.kopfleiste .kl-link:hover { background: rgba(255,255,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 2px rgba(0,0,0,.15); }
.tn-kopf .pkt { box-shadow: inset 0 2px 3px rgba(0,0,0,.25), 0 1px 0 rgba(255,255,255,.25); }
.kl-titel span { font-weight: 450; opacity: .85; margin-left: 6px; }
.kl-rechts { display: flex; align-items: center; gap: 8px; }
.kl-link { display: inline-flex; align-items: center; gap: 7px; color: #fff; text-decoration: none; font-weight: 560; padding: 8px 12px; border-radius: 10px; border: 0; background: transparent; cursor: pointer; }
.kl-link:hover { background: rgba(255,255,255,.14); }
.kl-ich { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--teal-dunkel); font-weight: 700; display: grid; place-items: center; border: 0; cursor: pointer; }
.rahmen { display: grid; grid-template-columns: var(--nav-breite) 1fr; min-height: calc(100vh - var(--kopf-hoehe)); }
.seitenleiste { position: sticky; top: var(--kopf-hoehe); height: calc(100vh - var(--kopf-hoehe)); background: #fff; border-right: 1px solid var(--linie); display: flex; flex-direction: column; padding: 18px 14px; }
.seitenleiste .marke { padding: 2px 8px 16px; border-bottom: 1px solid var(--linie); margin-bottom: 14px; }
.seitenleiste .marke img { width: 100%; max-width: 205px; display: block; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text-2); font-weight: 520; }
.nav a:hover { background: var(--flaeche); color: var(--tinte); }
.nav a.aktiv { background: var(--teal-hell); color: var(--teal-dunkel); }
.seitenleiste .unten { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.hinweis-box { font-size: 12.5px; color: var(--text-2); background: var(--flaeche); border-radius: 10px; padding: 10px 12px; line-height: 1.45; }
.hinweis-box b { color: var(--tinte); }
.inhalt { min-width: 0; padding: 32px 40px 64px; max-width: 1280px; width: 100%; }
.kopfzeile { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.kopfzeile .unterzeile { color: var(--text-2); margin-top: 6px; }
.kopfzeile .aktionen { display: flex; gap: 10px; flex-wrap: wrap; }
.zurueck { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); text-decoration: none; font-size: 14px; margin-bottom: 10px; }
.mobil-nav { display: none; }

/* ---------------- Bausteine ---------------- */
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); }
.karte.pad { padding: 22px 24px; }
.karte-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--linie); }
.karte-kopf p { margin: 2px 0 0; color: var(--text-2); font-size: 14px; }
.karte-inhalt { padding: 20px 24px; }
.raster { display: grid; gap: 20px; }
.raster.zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.raster.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.raster.vier { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.abstand { height: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--radius-s); border: 1px solid var(--linie-2); background: #fff; color: var(--tinte); font-weight: 560; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s, box-shadow .12s, transform .08s; }
.btn:hover { background: var(--flaeche); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(227,6,19,.22); }
.btn.primaer { background: var(--rot); border-color: var(--rot); color: #fff; }
.btn.primaer:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); }
.btn.teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.teal:hover { background: var(--teal-dunkel); }
.btn.dunkel { background: var(--tinte); border-color: var(--tinte); color: #fff; }
.btn.leicht { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.leicht:hover { background: var(--flaeche); color: var(--tinte); }
.btn.gefahr { color: var(--rot-dunkel); }
.btn.gefahr-voll { background: var(--rot-dunkel); border-color: var(--rot-dunkel); color: #fff; }
.btn.klein { height: 32px; padding: 0 11px; font-size: 13.5px; border-radius: 8px; }
.btn.gross { height: 52px; padding: 0 24px; font-size: 16.5px; border-radius: 12px; }
.btn.icon-btn { width: 40px; padding: 0; }
.btn.klein.icon-btn { width: 32px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 580; background: var(--flaeche); color: var(--text-2); white-space: nowrap; }
.chip.gruen { background: var(--gruen-hell); color: var(--gruen); }
.chip.gelb { background: var(--gelb-hell); color: var(--gelb); }
.chip.rot { background: var(--rot-hell); color: var(--rot-dunkel); }
.chip.teal { background: var(--teal-hell); color: var(--teal-dunkel); }
.chip.dunkel { background: var(--tinte); color: #fff; }
.chip .punkt { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.feld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feld > span { font-size: 13.5px; font-weight: 580; }
.feld > span em { font-style: normal; color: var(--text-3); font-weight: 450; }
.feld small { color: var(--text-3); font-size: 12.5px; }
input[type=text], input[type=email], input[type=date], input[type=number], input[type=password], input[type=url], input[type=search], select, textarea { width: 100%; height: 44px; padding: 0 13px; border: 1px solid var(--linie-2); border-radius: var(--radius-s); background: #fff; transition: border-color .12s, box-shadow .12s; min-width: 0; }
textarea { height: auto; min-height: 88px; padding: 11px 13px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rot); box-shadow: 0 0 0 3px rgba(227,6,19,.14); }
input[type=color] { width: 44px; height: 44px; border: 1px solid var(--linie-2); border-radius: 10px; padding: 3px; background: #fff; cursor: pointer; }
input[type=range] { accent-color: var(--rot); width: 100%; }
.formular { display: grid; gap: 16px; }
.zeile { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.abschnitt-titel { font-size: 12.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin: 6px 0 -4px; }
.schalter { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.schalter input { appearance: none; width: 40px; height: 24px; border-radius: 999px; background: var(--linie-2); position: relative; cursor: pointer; transition: background .15s; flex: 0 0 auto; margin: 0; }
.schalter input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.schalter input:checked { background: var(--gruen); }
.schalter input:checked::after { transform: translateX(16px); }
.schalter-zeile { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.schalter-zeile:last-child { border-bottom: 0; }
.schalter-zeile b { display: block; font-weight: 600; } .schalter-zeile small { color: var(--text-2); font-size: 13px; }
.wahl { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.wahl label { position: relative; display: block; cursor: pointer; }
.wahl input { position: absolute; opacity: 0; pointer-events: none; }
.wahl .wahl-karte { border: 1.5px solid var(--linie-2); border-radius: 14px; padding: 13px 15px; background: #fff; height: 100%; transition: border-color .12s, box-shadow .12s; }
.wahl .wahl-karte b { display: flex; align-items: center; gap: 8px; font-weight: 620; }
.wahl .wahl-karte small { display: block; color: var(--text-2); margin-top: 4px; font-size: 13px; line-height: 1.4; }
.wahl input:checked + .wahl-karte { border-color: var(--rot); box-shadow: 0 0 0 3px rgba(227,6,19,.12); background: #fffafa; }
.wahl .wahl-karte .icon { stroke: var(--rot); }
.tabelle { width: 100%; border-collapse: separate; border-spacing: 0; }
.tabelle th { text-align: left; font-size: 12px; font-weight: 640; color: var(--text-3); letter-spacing: .04em; text-transform: uppercase; padding: 11px 14px; border-bottom: 1px solid var(--linie); background: #fcfcfd; white-space: nowrap; }
.tabelle td { padding: 12px 14px; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabelle tr.klickbar { cursor: pointer; } .tabelle tr.klickbar:hover td { background: #fafafb; }
.tabelle-huelle { overflow-x: auto; }
.leer { text-align: center; padding: 44px 20px; color: var(--text-2); }
.leer .icon { width: 40px; height: 40px; stroke: var(--text-3); margin-bottom: 8px; }
.kennzahl { padding: 20px 22px; }
.kennzahl .wert { font-family: var(--schrift-titel); font-size: 32px; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kennzahl .bez { color: var(--text-2); font-size: 13.5px; font-weight: 540; display: flex; align-items: center; gap: 8px; }
.kennzahl .bez .icon { stroke: var(--rot); }
.hinweis { display: flex; gap: 12px; padding: 13px 16px; border-radius: 12px; background: var(--teal-hell); color: #14535e; font-size: 14px; align-items: flex-start; }
.hinweis.gelb { background: var(--gelb-hell); color: #6b4810; }
.hinweis .icon { margin-top: 1px; }
.pw-feld { position: relative; display: block; }
.feld > .pw-feld { font-size: inherit; font-weight: inherit; color: inherit; }
.pw-feld > input { width: 100%; padding-right: 48px; }
.pw-feld > input::-ms-reveal { display: none; }
.pw-auge { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; padding: 0; border: 0; background: transparent; border-radius: 8px; cursor: pointer; display: grid; place-items: center; color: var(--text-2); touch-action: manipulation; }
.pw-auge:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
.pw-auge:hover { background: var(--flaeche); }
.knopfzeile { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Dialoge, Hinweise */
.dlg { border: 0; border-radius: 20px; padding: 0; width: min(560px, calc(100vw - 24px)); box-shadow: var(--schatten-hoch); color: var(--tinte); }
.dlg.breit { width: min(880px, calc(100vw - 24px)); }
.dlg::backdrop { background: rgba(16,18,27,.45); backdrop-filter: blur(2px); }
.dlg-kopf { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 8px; }
.dlg-inhalt { padding: 6px 22px 16px; max-height: 70vh; overflow: auto; }
.dlg-fuss { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 18px; border-top: 1px solid var(--linie); background: #fcfcfd; }
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { display: flex; gap: 10px; align-items: center; background: var(--tinte); color: #fff; padding: 11px 18px; border-radius: 12px; box-shadow: var(--schatten-hoch); animation: rein .2s ease-out; transition: opacity .3s, transform .3s; font-weight: 540; }
.toast.fehler { background: var(--rot-dunkel); }
.toast.weg { opacity: 0; transform: translateY(8px); }
@keyframes rein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.konfetti { position: fixed; inset: 0; pointer-events: none; z-index: 200; }

/* ---------------- Anmeldung ---------------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(900px 500px at 50% -10%, var(--teal-hell), var(--flaeche) 70%); }
.login-karte { width: min(410px, 100%); background: #fff; border-radius: 22px; box-shadow: var(--schatten-hoch); padding: 32px 30px 28px; display: flex; flex-direction: column; gap: 14px; }
.login-karte h1 { text-align: center; font-size: 25px; }
.login-karte > .leise { text-align: center; margin: -8px 0 6px; }
.login-marke { display: block; width: min(300px, 100%); height: auto; margin: 2px auto 6px; }
.login-marke.wortmarke { width: min(340px, 100%); margin-bottom: 0; }
.fehlertext { color: var(--rot-dunkel); font-size: 14px; min-height: 20px; text-align: center; }

/* ---------------- Einstellungen als Kacheln (wie Kursverwaltung) ---------------- */
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; align-items: start; }
.kachel { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); scroll-margin-top: 84px; }
.kachel > summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; border-radius: var(--radius); }
.kachel > summary::-webkit-details-marker { display: none; }
.kachel > summary:hover { background: #fafafb; }
.kachel-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--teal-hell); display: grid; place-items: center; flex: 0 0 auto; }
.kachel-ic .icon { stroke: var(--teal-dunkel); }
.kachel-txt { flex: 1; min-width: 0; }
.kachel-txt b { display: block; font-weight: 620; }
.kachel-txt small { display: block; color: var(--text-2); font-size: 13px; line-height: 1.35; margin-top: 2px; }
.kachel-pfeil { color: var(--text-3); transition: transform .15s; }
.kachel[open] { grid-column: 1 / -1; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(56,167,186,.14), var(--schatten); }
.kachel[open] > summary { border-bottom: 1px solid var(--linie); border-radius: var(--radius) var(--radius) 0 0; }
.kachel[open] > summary .kachel-pfeil { transform: rotate(90deg); }
.kachel-inhalt { padding: 18px 22px 22px; }
.kachel.zieht { opacity: .45; outline: 2px dashed var(--teal); }
.kachel:not([open]) > summary { cursor: grab; }
.kachel-info { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--text-2); font-size: 13px; margin-bottom: 12px; }
.unter-kacheln { display: flex; flex-direction: column; gap: 10px; }
.kachel.unter { box-shadow: none; border: 1px solid var(--teal); border-radius: 12px; overflow: hidden; }
.kachel.unter > summary { padding: 9px 16px; gap: 12px; background: var(--teal); color: #fff; border-radius: 0; }
.kachel.unter > summary:hover { background: var(--teal-dunkel); }
.kachel.unter .kachel-ic { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.18); }
.kachel.unter .kachel-ic .icon, .kachel.unter .kachel-pfeil .icon { stroke: #fff; }
.kachel.unter .kachel-txt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.kachel.unter .kachel-txt small { color: rgba(255,255,255,.88); margin: 0; }
/* Ziehbare Bausteinliste (Ansicht anpassen) */
.bausteine { display: flex; flex-direction: column; gap: 8px; }
.baustein { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--linie-2); border-radius: 12px; background: #fff; }
.baustein.zieht { opacity: .5; outline: 2px dashed var(--teal); }
.baustein [data-griff] { cursor: grab; color: var(--text-3); display: grid; place-items: center; touch-action: none; padding: 4px; border-radius: 6px; }
.baustein [data-griff]:hover { background: var(--flaeche); color: var(--tinte); }
.baustein .bs-txt { flex: 1; } .baustein .bs-txt small { display: block; color: var(--text-2); font-size: 12.5px; }
.baustein.aus { opacity: .55; background: var(--flaeche); }
.farbreihe { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.farbfeld { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border: 1px solid var(--linie); border-radius: 12px; background: #fff; }
.farbfeld .form { font-size: 22px; }
.vorschau-mini { border-radius: 14px; overflow: hidden; border: 1px solid var(--linie); }

/* ---------------- Übersicht / Bibliothek ---------------- */
.widgets { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.widget { grid-column: span 6; }
.widget.breit { grid-column: span 12; }
.widget.schmal { grid-column: span 4; }
.schnellstart { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.start-kachel { border: 1px solid var(--linie); border-radius: 14px; padding: 16px; text-align: left; background: #fff; cursor: pointer; display: flex; flex-direction: column; gap: 8px; transition: border-color .12s, box-shadow .12s, transform .12s; font: inherit; color: inherit; text-decoration: none; }
.start-kachel:hover { border-color: var(--teal); box-shadow: 0 6px 18px rgba(42,138,156,.14); transform: translateY(-1px); }
.start-kachel .si { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.start-kachel b { font-weight: 620; } .start-kachel small { color: var(--text-2); font-size: 12.5px; line-height: 1.35; }
.set-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.set-karte { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--schatten); transition: box-shadow .15s, transform .15s; }
.set-karte:hover { box-shadow: var(--schatten-hoch); transform: translateY(-2px); }
.set-bild { height: 128px; background: linear-gradient(135deg, var(--fb, var(--rot)), color-mix(in srgb, var(--fb, var(--rot)) 60%, #000)); position: relative; display: grid; place-items: center; color: #fff; cursor: pointer; }
.set-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.set-bild .icon { width: 46px; height: 46px; opacity: .9; }
.set-bild .chip { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.95); }
.set-bild .anzahl { position: absolute; right: 12px; bottom: 10px; background: rgba(0,0,0,.45); color: #fff; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.set-text { padding: 14px 16px 6px; flex: 1; }
.set-text b { font-weight: 640; font-size: 16px; display: block; }
.set-text p { margin: 4px 0 0; color: var(--text-2); font-size: 13.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.set-fuss { display: flex; gap: 6px; padding: 10px 12px 12px; align-items: center; }
.set-fuss .btn.primaer { flex: 1; }
.filterleiste { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.filterleiste input[type=search] { max-width: 300px; }
.segment { display: inline-flex; border: 1px solid var(--linie-2); border-radius: var(--radius-s); overflow: hidden; background: #fff; }
.segment button { border: 0; background: transparent; padding: 0 14px; height: 38px; cursor: pointer; color: var(--text-2); font-weight: 540; }
.segment button + button { border-left: 1px solid var(--linie); }
.segment button.an { background: var(--tinte); color: #fff; }
.laufend-zeile { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--linie); }
.laufend-zeile:last-child { border-bottom: 0; }
.pin-gross { font-family: var(--schrift-titel); font-weight: 700; font-size: 20px; letter-spacing: .08em; color: var(--rot); }
.live-punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--rot); box-shadow: 0 0 0 0 rgba(227,6,19,.6); animation: puls 1.6s infinite; flex: 0 0 auto; }
@keyframes puls { 70% { box-shadow: 0 0 0 10px rgba(227,6,19,0); } 100% { box-shadow: 0 0 0 0 rgba(227,6,19,0); } }
.zugang-karte { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.zugang-karte .qr { width: 120px; height: 120px; border-radius: 8px; border: 1px solid var(--linie); }
.tagespw { font-family: var(--schrift-titel); font-size: 30px; font-weight: 700; color: var(--teal-dunkel); letter-spacing: .02em; }

/* ---------------- Editor ---------------- */
.editor { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 20px; align-items: start; }
.fragenliste { position: sticky; top: calc(var(--kopf-hoehe) + 16px); max-height: calc(100vh - var(--kopf-hoehe) - 32px); display: flex; flex-direction: column; }
.fragenliste .fl-liste { overflow: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.fl-eintrag { display: grid; grid-template-columns: 22px 28px minmax(0, 1fr); gap: 6px; align-items: center; padding: 8px 10px 8px 4px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; background: #fff; }
.fl-eintrag:hover { background: var(--flaeche); }
.fl-eintrag.aktiv { border-color: var(--teal); background: var(--teal-hell); }
.fl-eintrag.zieht { opacity: .5; outline: 2px dashed var(--teal); }
.fl-eintrag [data-griff] { color: var(--text-3); cursor: grab; touch-action: none; display: grid; place-items: center; }
.fl-nr { width: 28px; height: 28px; border-radius: 8px; background: var(--flaeche); display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.fl-eintrag.aktiv .fl-nr { background: var(--teal); color: #fff; }
.fl-text { min-width: 0; }
.fl-text b { display: block; font-size: 13.5px; font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-text small { display: flex; gap: 6px; align-items: center; color: var(--text-3); font-size: 12px; }
.fl-text small .icon { width: 13px; height: 13px; }
.fl-fehler { color: var(--rot) !important; }
.typwahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; }
.typ-knopf { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--linie); background: #fff; border-radius: 12px; padding: 10px 12px; cursor: pointer; text-align: left; font: inherit; }
.typ-knopf:hover { border-color: var(--teal); }
.typ-knopf.an { border-color: var(--rot); box-shadow: 0 0 0 3px rgba(227,6,19,.12); }
.typ-knopf .icon { stroke: var(--teal-dunkel); margin-top: 2px; }
.typ-knopf b { display: block; font-size: 13.5px; font-weight: 620; } .typ-knopf small { display: block; font-size: 12px; color: var(--text-2); line-height: 1.3; }
.typ-gruppe { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin: 12px 0 6px; }
.frage-text { font-size: 20px !important; font-weight: 600; min-height: 74px !important; }
.antwort-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ae { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 0; border-radius: 12px; overflow: hidden; border: 1.5px solid var(--linie-2); background: #fff; }
.ae .ae-form { height: 100%; min-height: 52px; display: grid; place-items: center; color: #fff; font-size: 22px; }
.ae input[type=text] { border: 0; border-radius: 0; height: 52px; box-shadow: none !important; }
.ae .ae-knoepfe { display: flex; gap: 2px; padding-right: 6px; align-items: center; }
.ae.richtig { border-color: var(--gruen); box-shadow: 0 0 0 3px var(--gruen-hell); }
.ae-haken { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--linie-2); background: #fff; cursor: pointer; display: grid; place-items: center; color: transparent; }
.ae.richtig .ae-haken { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.ae-bild { grid-column: 1 / -1; padding: 6px 10px 10px 54px; }
.ae-bild img { max-height: 90px; border-radius: 8px; }
.listen-editor { display: flex; flex-direction: column; gap: 8px; }
.le-zeile { display: grid; grid-template-columns: 26px 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.le-zeile.paar { grid-template-columns: 26px minmax(0, 1fr) 24px minmax(0, 1fr) auto; }
.le-zeile [data-griff] { color: var(--text-3); cursor: grab; touch-action: none; display: grid; place-items: center; }
.le-zeile.zieht { opacity: .5; }
.le-nr { width: 30px; height: 30px; border-radius: 8px; background: var(--teal-hell); color: var(--teal-dunkel); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.medien-feld { border: 2px dashed var(--linie-2); border-radius: 14px; padding: 16px; text-align: center; color: var(--text-2); background: #fcfcfd; transition: border-color .12s, background .12s; }
.medien-feld.drueber { border-color: var(--teal); background: var(--teal-hell); }
.medien-feld .medium { max-width: 520px; margin: 0 auto 10px; }
.medium img, .medium video { max-width: 100%; max-height: 100%; border-radius: 12px; display: block; margin: 0 auto; object-fit: contain; }
.medium.yt { position: relative; aspect-ratio: 16 / 9; width: 100%; }
.medium.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }
.medium.yt { margin-bottom: 22px; }
.yt-link { position: absolute; top: calc(100% + 3px); right: 4px; font-size: 12px; color: var(--fg2, #666); }
.medium img.aufdecken { animation: aufdecken var(--dauer, 20s) linear forwards; }
@keyframes aufdecken { from { filter: blur(38px) grayscale(1); } to { filter: none; } }
.balken-fortschritt { height: 6px; background: var(--linie); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.balken-fortschritt i { display: block; height: 100%; background: var(--teal); width: 0; transition: width .2s; }
.hotspot-editor { position: relative; display: inline-block; max-width: 100%; cursor: crosshair; user-select: none; }
.hotspot-editor img { max-width: 100%; max-height: 420px; display: block; border-radius: 12px; }
.hotspot-kreis { position: absolute; border: 3px solid var(--gruen); background: rgba(24,134,75,.25); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; box-shadow: 0 0 0 2px #fff; }
.editor-leiste { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.editor-leiste .feld { min-width: 130px; }
.vorschau-rahmen { background: #1b1d24; border-radius: 16px; padding: 14px; }
.speicher-status { font-size: 13px; color: var(--text-3); display: inline-flex; gap: 6px; align-items: center; }

/* ---------------- Leinwand (Beamer) ---------------- */
.lw { --hg: #111318; --hg2: #1b1e26; --fg: #fff; --fg2: rgba(255,255,255,.72); --rand: rgba(255,255,255,.12);
  min-height: 100vh; height: 100vh; overflow: hidden; background: var(--hg); color: var(--fg); display: flex; flex-direction: column; font-size: calc(16px * var(--skala)); position: relative; }
.lw.hell { --hg: #F6F6F8; --hg2: #fff; --fg: #16171B; --fg2: #5E616E; --rand: #E7E7EC; }
.lw.marke { --hg: var(--teal-dunkel); --hg2: rgba(0,0,0,.18); --fg: #fff; --fg2: rgba(255,255,255,.82); --rand: rgba(255,255,255,.22); }
.lw > * { position: relative; z-index: 1; }
/* Hintergrundbild: muss NACH „.lw > *“ stehen, sonst wird es relativ und hat keine Höhe */
.lw > .lw-hg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; opacity: var(--hg-deckkraft, .35); pointer-events: none; }
/* Lobby rechts: Logo als Wasserzeichen bzw. groß, solange noch niemand da ist */
.lobby-spieler { position: relative; }
.lobby-spieler::after { content: ''; position: absolute; inset: 64px 0 0; background: var(--lobby-logo) center 70% / min(80%, 620px) auto no-repeat; opacity: .10; pointer-events: none; z-index: 0; }
.lobby-spieler > * { position: relative; z-index: 1; }
.lobby-leer { margin: auto; display: grid; justify-items: center; gap: 22px; text-align: center; }
.lobby-leer img { width: min(90%, 620px); height: auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,.35)); animation: logo-atmen 3.2s ease-in-out infinite; }
.lobby-spieler:has(.lobby-leer)::after { display: none; }
@keyframes logo-atmen { 50% { transform: scale(1.03); } }
.lw-kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 26px; min-height: 66px; }
.lw-marke { display: flex; align-items: center; gap: 12px; font-weight: 650; font-family: var(--schrift-titel); font-size: 1.1em; }
.lw-marke img { height: 38px; width: auto; min-width: 38px; max-width: 220px; border-radius: 9px; background: #fff; object-fit: contain; padding: 0 2px; }
.lw-info { display: flex; gap: 10px; align-items: center; color: var(--fg2); font-weight: 560; }
.lw-pille { background: var(--hg2); border: 1px solid var(--rand); padding: 6px 14px; border-radius: 999px; display: inline-flex; gap: 8px; align-items: center; font-weight: 620; color: var(--fg); }
.lw-haupt { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 4px 34px 18px; gap: 18px; }
.lw-fuss { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 18px; background: var(--hg2); border-top: 1px solid var(--rand); }
.lw-fuss .gruppe { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lw .btn { background: rgba(255,255,255,.08); border-color: var(--rand); color: var(--fg); }
.lw .btn:hover { background: rgba(255,255,255,.16); }
.lw.hell .btn { background: #fff; } .lw.hell .btn:hover { background: var(--flaeche); }
.lw .btn.primaer { background: var(--rot); border-color: var(--rot); color: #fff; }
.lw .btn.teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.lw-fuss .btn.primaer { min-width: 150px; }
/* Lobby */
.lobby { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 34px; flex: 1; min-height: 0; align-items: stretch; }
.lobby-zugang { background: var(--hg2); border: 1px solid var(--rand); border-radius: 26px; padding: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; }
.lobby-zugang .qr { width: min(36vh, 330px); height: auto; border-radius: 14px; background: #fff; padding: 6px; }
.lobby-url { font-size: 1.5em; font-weight: 650; word-break: break-all; }
.lobby-codes { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.code-box { background: var(--hg); border: 1px solid var(--rand); border-radius: 16px; padding: 10px 22px; }
.code-box small { display: block; color: var(--fg2); font-size: .8em; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.code-box b { font-family: var(--schrift-titel); font-size: 2.6em; letter-spacing: .08em; line-height: 1.1; }
.code-box.pin b { color: #fff; } .lw.hell .code-box.pin b { color: var(--rot); }
.lobby-spieler { display: flex; flex-direction: column; min-height: 0; }
.lobby-spieler h2 { font-size: 1.6em; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.zaehler { background: var(--rot); color: #fff; border-radius: 999px; padding: 2px 16px; font-size: .9em; }
.spieler-wolke { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; overflow: auto; }
.sp-chip { background: var(--hg2); border: 1px solid var(--rand); border-radius: 999px; padding: 8px 16px 8px 10px; font-weight: 620; font-size: 1.1em; display: inline-flex; align-items: center; gap: 8px; animation: plopp .35s cubic-bezier(.3,1.6,.5,1); cursor: default; }
.sp-chip .av { font-size: 1.3em; }
.sp-chip.offline { opacity: .45; }
.sp-chip .weg { display: none; border: 0; background: transparent; color: var(--fg2); cursor: pointer; padding: 0; }
.sp-chip:hover .weg { display: inline-grid; }
@keyframes plopp { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.warte-text { color: var(--fg2); font-size: 1.3em; margin: auto; text-align: center; }
/* Frage */
.lw-frage { font-family: var(--schrift-titel); font-weight: 680; font-size: calc(2.4em); line-height: 1.2; text-align: center; background: var(--hg2); border: 1px solid var(--rand); border-radius: 22px; padding: 22px 30px; letter-spacing: -.01em; }
.lw-frage.lang { font-size: 1.8em; }
.lw-mitte { flex: 1; min-height: 0; display: grid; grid-template-columns: 140px minmax(0, 1fr) 140px; align-items: center; gap: 20px; }
.lw-mitte .medium { height: 100%; max-height: 46vh; display: grid; place-items: center; }
.lw-mitte .medium img, .lw-mitte .medium video { max-height: 46vh; }
.lw-mitte .medium.yt { height: auto; max-height: none; width: min(100%, 76vh); justify-self: center; }
.timer { width: 120px; height: 120px; position: relative; justify-self: center; }
.timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer circle { fill: none; stroke-width: 9; }
.timer .spur { stroke: var(--rand); } .timer .lauf { stroke: var(--teal); stroke-linecap: round; transition: stroke-dashoffset .25s linear, stroke .3s; }
.timer.knapp .lauf { stroke: var(--rot); }
.timer b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6em; font-weight: 750; font-family: var(--schrift-titel); }
.antw-zahl { text-align: center; justify-self: center; }
.antw-zahl b { display: block; font-size: 3em; font-weight: 750; font-family: var(--schrift-titel); line-height: 1; }
.antw-zahl small { color: var(--fg2); font-weight: 600; }
.lw-antworten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lw-antworten.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lw-ant { --f: var(--a0); background: var(--f); color: #fff; border-radius: 16px; padding: 16px 22px; display: flex; align-items: center; gap: 16px; font-size: 1.55em; font-weight: 650; min-height: 82px; box-shadow: inset 0 -5px 0 rgba(0,0,0,.18); transition: opacity .3s, transform .3s; position: relative; }
.lw-ant .form { font-size: 1.4em; filter: drop-shadow(0 2px 0 rgba(0,0,0,.2)); }
.lw-ant img { max-height: 90px; border-radius: 8px; }
.lw-ant .lw-ant-text { flex: 1; }
.lw-ant .lw-ant-zahl { font-size: .9em; background: rgba(0,0,0,.22); padding: 2px 14px; border-radius: 999px; }
.lw-ant.blass { opacity: .28; }
.lw-ant.richtig::after { content: "✓"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4em; background: #fff; color: var(--gruen); width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; }
.lw-ant.richtig .lw-ant-zahl { margin-right: 56px; }
.lese-balken { height: 8px; background: var(--rand); border-radius: 4px; overflow: hidden; }
.lese-balken i { display: block; height: 100%; background: var(--teal); animation: lesen linear forwards; }
@keyframes lesen { from { width: 0; } to { width: 100%; } }
/* Ergebnis-Diagramme */
.diagramm { display: flex; align-items: flex-end; justify-content: center; gap: 22px; height: 100%; min-height: 220px; padding: 0 20px; }
.saeule { flex: 1; max-width: 180px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 8px; }
.saeule .wert { font-weight: 750; font-size: 1.6em; display: flex; gap: 8px; align-items: center; }
.saeule .s { width: 100%; background: var(--f); border-radius: 12px 12px 4px 4px; min-height: 8px; transition: height .7s cubic-bezier(.2,.9,.3,1); position: relative; }
.saeule .lbl { font-size: 1em; font-weight: 600; text-align: center; color: var(--fg2); min-height: 2.6em; display: flex; align-items: center; gap: 6px; }
.saeule.blass .s { opacity: .3; }
.saeule.richtig .wert::after { content: "✓"; color: #fff; background: var(--gruen); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: .8em; }
.hbalken { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 1100px; margin: 0 auto; }
.hb-zeile { display: grid; grid-template-columns: minmax(120px, 30%) 1fr 70px; gap: 14px; align-items: center; font-size: 1.2em; }
.hb-zeile .bahn { height: 38px; background: var(--hg2); border-radius: 10px; overflow: hidden; border: 1px solid var(--rand); position: relative; }
.hb-zeile .bahn i { display: block; height: 100%; background: var(--f, var(--teal)); border-radius: 10px; transition: width .7s cubic-bezier(.2,.9,.3,1); }
.hb-zeile b { text-align: right; font-weight: 750; }
.skala-bahn { position: relative; height: 18px; background: linear-gradient(90deg, var(--rot), var(--a2), var(--gruen)); border-radius: 9px; }
.skala-bahn .marker { position: absolute; top: 50%; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 4px solid var(--tinte); transform: translate(-50%, -50%); transition: left .7s; }
.skala-bahn .punkt { position: absolute; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.7); transform: translate(-50%, -50%); }
.wortwolke { flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; align-content: center; gap: 6px 22px; padding: 10px 30px; overflow: hidden; }
.wortwolke span { font-family: var(--schrift-titel); font-weight: 700; line-height: 1.05; animation: plopp .5s; transition: font-size .5s; }
.pinnwand { columns: 4 240px; column-gap: 14px; overflow: auto; flex: 1; padding: 4px; }
.notiz { break-inside: avoid; background: #FFF7D6; color: #2b2410; border-radius: 6px 6px 14px 6px; padding: 14px 16px; margin-bottom: 14px; font-size: 1.15em; font-weight: 560; box-shadow: 0 3px 8px rgba(0,0,0,.18); animation: plopp .4s; transform: rotate(var(--r, 0deg)); }
.notiz small { display: block; margin-top: 6px; color: #7a6b3c; font-size: .75em; }
.notiz:nth-child(4n+2) { background: #E3F4FA; } .notiz:nth-child(4n+3) { background: #FDECEE; } .notiz:nth-child(4n) { background: #E5F5EC; }
.qa-liste { display: flex; flex-direction: column; gap: 10px; overflow: auto; flex: 1; max-width: 1100px; width: 100%; margin: 0 auto; }
.qa-eintrag { display: flex; gap: 16px; align-items: center; background: var(--hg2); border: 1px solid var(--rand); border-radius: 14px; padding: 14px 18px; font-size: 1.25em; }
.qa-eintrag .stimmen { min-width: 64px; text-align: center; font-weight: 750; font-size: 1.2em; color: var(--teal); }
.qa-eintrag.erledigt { opacity: .45; }
.qa-eintrag .txt { flex: 1; } .qa-eintrag .txt small { display: block; color: var(--fg2); font-size: .7em; }
.loesung-box { background: var(--gruen); color: #fff; border-radius: 18px; padding: 16px 26px; font-size: 1.5em; font-weight: 650; text-align: center; }
.loesung-box small { display: block; font-size: .65em; font-weight: 600; opacity: .85; text-transform: uppercase; letter-spacing: .08em; }
.erklaerung { background: var(--hg2); border: 1px solid var(--rand); border-left: 6px solid var(--teal); border-radius: 14px; padding: 12px 20px; font-size: 1.15em; color: var(--fg); }
.hotspot-anzeige { position: relative; display: inline-block; height: 100%; }
.hotspot-anzeige img { max-height: 52vh; display: block; border-radius: 14px; }
.hotspot-anzeige .klick { position: absolute; width: 16px; height: 16px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--a2); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.hotspot-anzeige .klick.ok { background: var(--gruen); }
.hotspot-anzeige .kreis { position: absolute; border: 4px solid #fff; background: rgba(24,134,75,.35); border-radius: 50%; transform: translate(-50%, -50%); }
.reihen-loesung { display: flex; flex-direction: column; gap: 10px; max-width: 900px; width: 100%; margin: 0 auto; }
.reihen-loesung div { background: var(--hg2); border: 1px solid var(--rand); border-radius: 14px; padding: 12px 18px; font-size: 1.35em; font-weight: 620; display: flex; gap: 14px; align-items: center; }
.reihen-loesung div b { background: var(--teal); color: #fff; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; }
.quote { font-size: 1.4em; text-align: center; color: var(--fg2); font-weight: 600; }
.quote b { color: var(--fg); font-size: 1.3em; }
/* Rangliste & Podium */
.rangliste { display: flex; flex-direction: column; gap: 10px; max-width: 980px; width: 100%; margin: 0 auto; }
.rl-zeile { display: grid; grid-template-columns: 62px 46px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--hg2); border: 1px solid var(--rand); border-radius: 16px; padding: 12px 22px; font-size: 1.45em; font-weight: 650; animation: rein .4s both; }
.rl-zeile .rang { font-family: var(--schrift-titel); font-weight: 800; color: var(--fg2); }
.rl-zeile:nth-child(1) { background: linear-gradient(90deg, #F2A900, #f6c544); color: #2a1d00; border: 0; }
.rl-zeile:nth-child(1) .rang { color: #2a1d00; }
.rl-zeile .pk { font-variant-numeric: tabular-nums; }
.rl-zeile .serie { font-size: .7em; margin-left: 8px; color: var(--a2); }
.rl-zeile:nth-child(1) .serie { color: #7a3d00; }
.podium { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 22px; padding-top: 10px; }
.podest { width: min(26vw, 300px); display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0; animation: hoch .9s cubic-bezier(.2,.9,.3,1.2) forwards; }
.podest .av { font-size: 3.2em; }
.podest .nm { font-size: 1.7em; font-weight: 750; text-align: center; word-break: break-word; }
.podest .pk { color: var(--fg2); font-weight: 650; font-size: 1.2em; }
.podest .block { width: 100%; border-radius: 18px 18px 0 0; display: grid; place-items: start center; padding-top: 18px; font-family: var(--schrift-titel); font-size: 4em; font-weight: 800; color: rgba(255,255,255,.9); box-shadow: inset 0 -8px 0 rgba(0,0,0,.15); }
.podest.p1 .block { height: 38vh; background: linear-gradient(#F2A900, #d08e00); animation-delay: 1.6s; }
.podest.p2 .block { height: 27vh; background: linear-gradient(#a9b0bd, #868d99); }
.podest.p3 .block { height: 19vh; background: linear-gradient(#cd7f45, #a8622f); }
.podest.p1 { animation-delay: 1.8s; } .podest.p2 { animation-delay: 1s; } .podest.p3 { animation-delay: .3s; }
@keyframes hoch { from { opacity: 0; transform: translateY(80px); } to { opacity: 1; transform: none; } }
.team-wertung { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.team-wertung div { background: var(--hg2); border: 1px solid var(--rand); padding: 10px 20px; border-radius: 14px; font-weight: 650; font-size: 1.2em; }
/* Rennbahn */
.rennbahn { display: flex; flex-direction: column; gap: 8px; overflow: auto; flex: 1; }
.bahn-zeile { display: grid; grid-template-columns: 220px 1fr 110px; gap: 14px; align-items: center; font-size: 1.1em; font-weight: 620; }
.bahn-zeile .bahnname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bahn { height: 40px; background: repeating-linear-gradient(90deg, var(--hg2) 0 calc(var(--seg) - 2px), var(--rand) calc(var(--seg) - 2px) var(--seg)); border-radius: 10px; position: relative; border: 1px solid var(--rand); }
.bahn .laeufer { position: absolute; top: 50%; transform: translate(-50%, -50%); font-size: 1.8em; transition: left .8s cubic-bezier(.2,.9,.3,1); }
.bahn .ziel { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.3em; }
.reaktionen { position: absolute; right: 30px; bottom: 80px; width: 120px; height: 60vh; pointer-events: none; z-index: 5; }
.reaktion { position: absolute; bottom: 0; font-size: 40px; animation: aufsteigen 3s ease-out forwards; }
@keyframes aufsteigen { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; transform: translateY(-40px) scale(1.1); } 100% { transform: translateY(-55vh) scale(1); opacity: 0; } }
.werkzeug-menue { position: absolute; bottom: 70px; left: 18px; background: var(--hg2); border: 1px solid var(--rand); border-radius: 14px; padding: 6px; display: flex; flex-direction: column; min-width: 240px; z-index: 30; box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.werkzeug-menue button { display: flex; gap: 10px; align-items: center; background: transparent; border: 0; color: var(--fg); padding: 10px 12px; border-radius: 10px; cursor: pointer; text-align: left; }
.werkzeug-menue button:hover { background: rgba(255,255,255,.1); }
.overlay { position: absolute; inset: 0; z-index: 40; background: rgba(0,0,0,.72); display: grid; place-items: center; animation: rein .2s; }
.overlay-karte { background: var(--hg2); border: 1px solid var(--rand); border-radius: 26px; padding: 34px 46px; text-align: center; min-width: 360px; color: var(--fg); }
.overlay-karte .gross { font-size: 4.5em; font-weight: 800; font-family: var(--schrift-titel); }
.wuerfel { font-size: 7em; display: inline-block; }
.wuerfel.rollt { animation: rollen .6s ease-out; }
@keyframes rollen { from { transform: rotate(-360deg) scale(.3); } to { transform: none; } }
.ppt-kopf { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.ppt-qr { display: flex; gap: 14px; align-items: center; background: var(--hg2); border: 1px solid var(--rand); border-radius: 16px; padding: 10px 16px; }
.ppt-qr .qr { width: 110px; height: 110px; border-radius: 8px; }
.ppt-qr b { font-size: 1.2em; }

/* ---------------- Teilnehmende (Handy) ---------------- */
.tn { min-height: 100dvh; display: flex; flex-direction: column; background: var(--flaeche); }
.tn-kopf { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; color: #fff; gap: 10px; min-height: 56px; }
.tn-kopf .wer { display: flex; align-items: center; gap: 8px; font-weight: 650; min-width: 0; }
.tn-kopf .wer span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn-kopf .pkt { background: rgba(0,0,0,.2); border-radius: 999px; padding: 4px 12px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tn-inhalt { flex: 1; display: flex; flex-direction: column; padding: 14px; gap: 12px; min-height: 0; }
.tn-zentrum { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 20px; }
.tn-zentrum h1 { font-size: 26px; }
.tn-zentrum .riesig { font-size: 80px; line-height: 1; }
.tn-frage { background: #fff; border-radius: 16px; padding: 14px 16px; font-weight: 650; font-size: 18px; box-shadow: var(--schatten); text-align: center; }
.tn-frage .medium img, .tn-frage .medium video { max-height: 28vh; margin-top: 10px; }
.tn-meta { display: flex; justify-content: space-between; align-items: center; color: var(--text-2); font-weight: 600; font-size: 14px; }
.tn-zeit { display: inline-flex; align-items: center; gap: 6px; background: var(--tinte); color: #fff; border-radius: 999px; padding: 3px 12px; font-variant-numeric: tabular-nums; }
.tn-zeit.knapp { background: var(--rot); }
.tn-antworten { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-height: 0; }
.tn-antworten.einspaltig { grid-template-columns: 1fr; }
.tn-ant { --f: var(--a0); background: var(--f); color: #fff; border: 0; border-radius: 16px; padding: 12px; font-size: 17px; font-weight: 650; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; box-shadow: inset 0 -5px 0 rgba(0,0,0,.2); min-height: 90px; text-align: center; transition: transform .08s, opacity .2s, outline .1s; word-break: break-word; }
.tn-ant .form { font-size: 34px; filter: drop-shadow(0 2px 0 rgba(0,0,0,.2)); }
.tn-antworten.nur-symbole .tn-ant .form { font-size: 64px; }
.tn-ant img { max-height: 80px; max-width: 100%; border-radius: 8px; }
.tn-ant:active { transform: scale(.97); }
.tn-ant.gewaehlt { outline: 5px solid var(--tinte); outline-offset: 2px; }
.tn-ant.nicht { opacity: .45; }
.tn-senden { position: sticky; bottom: 0; }
.tn-eingabe { font-size: 20px !important; height: 58px !important; text-align: center; }
.tn-luecke { display: inline-block; width: 8em; height: 40px !important; margin: 4px; text-align: center; font-size: 17px !important; vertical-align: middle; }
.tn-lueckentext { background: #fff; border-radius: 16px; padding: 16px; font-size: 19px; line-height: 2.1; box-shadow: var(--schatten); }
.tn-sortliste { display: flex; flex-direction: column; gap: 8px; }
.tn-sort { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--linie-2); border-radius: 14px; padding: 12px 12px; font-weight: 600; font-size: 16px; user-select: none; box-shadow: var(--schatten); }
.tn-sort [data-griff] { touch-action: none; cursor: grab; color: var(--text-3); padding: 6px; display: grid; place-items: center; }
.tn-sort .nr { width: 30px; height: 30px; border-radius: 8px; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; flex: 0 0 auto; }
.tn-sort.zieht { opacity: .6; border-color: var(--teal); }
.tn-sort .pfeile { margin-left: auto; display: flex; gap: 4px; }
.tn-sort .pfeile button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--linie-2); background: #fff; cursor: pointer; display: grid; place-items: center; }
.tn-paar { background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: var(--schatten); display: grid; gap: 8px; }
.tn-paar b { font-size: 15px; }
.tn-regler { background: #fff; border-radius: 16px; padding: 22px 18px; text-align: center; box-shadow: var(--schatten); }
.tn-regler output { display: block; font-size: 46px; font-weight: 800; font-family: var(--schrift-titel); color: var(--rot); margin-bottom: 8px; }
.tn-regler input[type=range] { height: 40px; }
.tn-hotspot { position: relative; display: inline-block; max-width: 100%; touch-action: manipulation; }
.tn-hotspot img { max-width: 100%; max-height: 55vh; display: block; border-radius: 14px; }
.tn-hotspot .marke { position: absolute; width: 30px; height: 30px; border: 4px solid #fff; background: var(--rot); border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
/* Bildauswahl in den Einstellungen */
.bild-wahl { display: flex; flex-wrap: wrap; gap: 10px; }
.bw-kachel { position: relative; display: block; border-radius: 12px; border: 2px solid var(--linie); background: #fff; overflow: hidden; cursor: pointer; }
.bw-kachel.an { border-color: var(--rot); box-shadow: 0 0 0 3px var(--rot-hell, #fde7e8); }
.bw-kachel > button:first-child, .bw-neu { display: grid; place-items: center; gap: 4px; border: 0; background: none; padding: 0; cursor: pointer; color: var(--fg2, #5e616e); font-size: 12px; }
.logos .bw-kachel > button:first-child, .logos .bw-neu { width: 120px; height: 64px; }
.logos .bw-kachel img { max-width: 108px; max-height: 52px; object-fit: contain; }
.hintergruende .bw-kachel > button:first-child, .hintergruende .bw-neu { width: 160px; height: 90px; }
.hintergruende .bw-kachel img { width: 100%; height: 100%; object-fit: cover; }
.bw-leer img { max-height: 34px !important; }
.bw-inhalt { display: grid; place-items: center; color: var(--fg2, #5e616e); font-size: 12px; text-align: center; }
.logos .bw-inhalt { width: 120px; height: 64px; }
.hintergruende .bw-inhalt { width: 160px; height: 90px; }
.bw-neu { border-style: dashed; }
.bw-weg { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.3); padding: 0; }
.bw-weg .icon { width: 12px; height: 12px; }
/* Avatare als Bild */
.av-bild { width: 1.25em; height: 1.25em; border-radius: 50%; object-fit: cover; vertical-align: middle; background: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.8); }
.riesig .av-bild { width: 1em; height: 1em; }
.avatar-wahl button .av-bild { width: 34px; height: 34px; }
.avatar-eigene { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.av-kachel { position: relative; }
.av-kachel img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--linie); display: block; background: #fff; }
.av-kachel button { position: absolute; top: -6px; right: -8px; width: 24px; height: 24px; min-height: 0; padding: 0; border-radius: 50%; background: #fff; box-shadow: var(--schatten); }
/* Antworten ausgeblendet */
.warte-text.verborgen { display: grid; justify-items: center; gap: 12px; opacity: .8; }
.warte-text.verborgen .icon { width: 54px; height: 54px; }
/* Buzzer */
.buzzer-knopf { width: min(72vw, 300px); aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer; margin: 8px auto; display: grid; place-items: center; color: #fff; font: 800 30px/1.1 var(--schrift-titel, sans-serif); letter-spacing: .04em; text-shadow: 0 2px 2px rgba(0,0,0,.35);
  background: radial-gradient(circle at 35% 30%, #ff6b74 0%, var(--rot) 45%, var(--rot-dunkel, #a1040e) 100%);
  box-shadow: 0 14px 0 var(--rot-dunkel, #a1040e), 0 22px 30px rgba(0,0,0,.35), inset 0 -8px 18px rgba(0,0,0,.25), inset 0 8px 14px rgba(255,255,255,.35);
  transition: transform .06s, box-shadow .06s; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; }
.buzzer-knopf:active, .buzzer-knopf.gedrueckt { transform: translateY(12px); box-shadow: 0 2px 0 var(--rot-dunkel, #a1040e), 0 6px 12px rgba(0,0,0,.3), inset 0 -6px 14px rgba(0,0,0,.25), inset 0 6px 12px rgba(255,255,255,.3); }
.buzzer-knopf:disabled { filter: grayscale(1) brightness(1.1); opacity: .55; cursor: default; transform: translateY(12px); box-shadow: 0 2px 0 #888; }
.buzzer-ton { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }
.ton-wahl-titel { margin-top: 14px; text-align: center; }
.ton-wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; width: 100%; margin-top: 8px; }
.ton-wahl button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; border: 2px solid var(--linie, #ddd); background: #fff; font-size: 12.5px; font-weight: 600; cursor: pointer; color: inherit; }
.ton-wahl button span { font-size: 26px; line-height: 1.1; }
.ton-wahl button.an { border-color: var(--rot); background: var(--rot-hell, #fde7e8); box-shadow: 0 0 0 2px var(--rot) inset; }
.ton-wahl button.vorschlag { border-color: var(--teal); background: var(--teal-hell, #e6f5f7); box-shadow: 0 0 0 2px var(--teal) inset; }
.ton-wahl button small { font-size: 10.5px; font-weight: 700; color: var(--rot); }
.ton-wahl button:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; filter: grayscale(1); }
.ton-dialog { width: min(760px, 94vw); max-height: 90vh; overflow: auto; text-align: left; }
.ton-dialog .ton-wahl button { color: #16171b; }
.sp-chip.klickbar, .team-wertung .klickbar { cursor: pointer; }
.sp-chip.klickbar:hover, .team-wertung .klickbar:hover { outline: 2px solid var(--teal); outline-offset: 2px; }
.ton-mini { border: 0; background: rgba(255,255,255,.15); border-radius: 999px; padding: 1px 7px; margin-left: 6px; cursor: pointer; font-size: .95em; }
.buzz-overlay { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); animation: einblenden .2s ease-out; }
.buzz-karte { background: #fff; color: #16171b; border-radius: 28px; padding: 34px 48px; text-align: center; min-width: min(620px, 90vw); box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: buzz-wackeln .5s ease-out; }
.buzz-karte .wer { font-size: 3.2em; font-weight: 800; line-height: 1.1; margin: 6px 0; }
.buzz-karte .wer small { display: block; font-size: .42em; font-weight: 600; opacity: .6; }
.buzz-karte .ton { font-size: 1.3em; opacity: .7; }
.buzz-karte .uhr { font-size: 4.2em; font-weight: 800; color: var(--rot); font-variant-numeric: tabular-nums; }
.buzz-karte .uhr.um { animation: blinken .6s infinite; }
.buzz-karte .knopfzeile { justify-content: center; gap: 14px; margin-top: 14px; }
.buzz-karte .btn { font-size: 1.3em; padding: 14px 26px; }
.buzz-gesperrt { text-align: center; opacity: .8; margin-top: 6px; }
.buzz-ergebnis { text-align: center; font-size: 1.8em; font-weight: 700; margin: 6px auto 4px; padding: 10px 24px; border-radius: 16px; background: rgba(24,134,75,.18); }
.buzz-ergebnis.nein { background: rgba(255,255,255,.08); }
.buzz-ergebnis small { font-weight: 500; opacity: .75; }
@keyframes buzz-wackeln { 0% { transform: scale(.6) rotate(-4deg); } 50% { transform: scale(1.06) rotate(2deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes blinken { 50% { opacity: .3; } }
@keyframes einblenden { from { opacity: 0; } }
/* Bild beschriften */
.bs-feld { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bs-bild { position: relative; display: inline-block; max-width: 100%; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.bs-bild > img { max-width: 100%; max-height: var(--bs-h, 55vh); display: block; border-radius: 14px; -webkit-user-drag: none; }
.bs-bild.waehlt { cursor: crosshair; outline: 3px dashed var(--teal); outline-offset: 3px; border-radius: 14px; }
.bs-punkt { position: absolute; width: 26px; height: 26px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--teal); color: #fff; border: 3px solid #fff; display: grid; place-items: center; font: 800 12px/1 var(--schrift-titel, sans-serif); box-shadow: 0 1px 4px rgba(0,0,0,.45); pointer-events: none; }
.bs-punkt.belegt { background: var(--fg2, #777); }
.bs-etikett, .bs-geist { position: absolute; transform: translate(-50%, calc(-100% - 9px)); padding: 0; border: 0; background: none; touch-action: none; cursor: grab; z-index: 2; }
.bs-etikett > span, .bs-geist > span { display: block; white-space: nowrap; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; background: var(--rot); color: #fff; font-weight: 700; font-size: 14px; padding: 5px 10px; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.bs-etikett::after, .bs-geist::after { content: ''; position: absolute; left: 50%; bottom: -9px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--rot); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.bs-geist { position: fixed; pointer-events: none; z-index: 1000; cursor: grabbing; opacity: .92; }
.bs-etikett.fest { cursor: default; pointer-events: none; }
.bs-etikett.fest > span, .bs-etikett.fest::after { background: var(--teal-dunkel, #2a7f8e); }
.bs-etikett.gut > span, .bs-etikett.gut::after { background: var(--gruen, #18864b); }
.bs-etikett.mittel > span, .bs-etikett.mittel::after { background: #d98a00; }
.bs-etikett.schlecht > span, .bs-etikett.schlecht::after { background: var(--rot); }
.bs-klick { position: absolute; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--rot); opacity: .55; border: 1px solid #fff; }
.bs-klick.ok { background: var(--gruen, #18864b); }
.bs-namen { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 100%; }
.bs-name { touch-action: none; cursor: grab; border: 2px solid var(--rot); background: #fff; color: var(--rot); font-weight: 700; font-size: 15px; padding: 9px 14px; border-radius: 999px; box-shadow: var(--schatten); }
.bs-name.an { background: var(--rot); color: #fff; }
.bs-name.zieht, .bs-etikett.zieht { opacity: .35; }
.bs-tipp { margin: 0; text-align: center; }
.lw-mitte .bs-bild { --bs-h: 58vh; }
.lw-mitte .bs-etikett > span { font-size: 1.1em; }
/* Editor */
.bs-editor .bs-bild { cursor: crosshair; --bs-h: 460px; }
.bs-editor .bs-punkt { pointer-events: auto; cursor: move; width: 30px; height: 30px; font-size: 13px; touch-action: none; }
.bs-editor .bs-punkt.aktiv { background: var(--rot); }
.tn-skala { background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: var(--schatten); }
.tn-skala b { display: block; margin-bottom: 8px; }
.tn-skala .stufen { display: flex; gap: 6px; }
.tn-skala .stufen button { flex: 1; height: 46px; border-radius: 10px; border: 1.5px solid var(--linie-2); background: #fff; font-weight: 700; cursor: pointer; font-size: 16px; }
.tn-skala .stufen button.an { background: var(--teal); color: #fff; border-color: var(--teal); }
.tn-skala .enden { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); margin-top: 4px; }
.tn-ergebnis { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; color: #fff; margin: -14px; padding: 24px; }
.tn-ergebnis.richtig { background: var(--gruen); } .tn-ergebnis.falsch { background: var(--rot); } .tn-ergebnis.neutral { background: var(--teal); }
.tn-ergebnis .riesig { font-size: 76px; line-height: 1; }
.tn-ergebnis h1 { font-size: 30px; }
.tn-ergebnis .plus { background: rgba(0,0,0,.2); border-radius: 999px; padding: 6px 20px; font-size: 22px; font-weight: 750; }
.tn-ergebnis .loesung { background: rgba(255,255,255,.95); color: var(--tinte); border-radius: 14px; padding: 12px 16px; font-weight: 600; max-width: 520px; }
.tn-reaktionen { display: flex; justify-content: center; gap: 4px; padding: 8px; background: #fff; border-top: 1px solid var(--linie); }
.tn-reaktionen button { font-size: 26px; background: transparent; border: 0; border-radius: 12px; width: 48px; height: 48px; cursor: pointer; transition: transform .1s; }
.tn-reaktionen button:active { transform: scale(1.3); }
.avatar-wahl { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.avatar-wahl button { font-size: 26px; height: 48px; border-radius: 12px; border: 1.5px solid var(--linie-2); background: #fff; cursor: pointer; }
.avatar-wahl button.an { border-color: var(--rot); box-shadow: 0 0 0 3px rgba(227,6,19,.15); background: #fffafa; }
.spiel-wahl { display: flex; flex-direction: column; gap: 8px; }
.spiel-wahl label { display: flex; gap: 10px; align-items: center; border: 1.5px solid var(--linie-2); border-radius: 12px; padding: 12px; cursor: pointer; background: #fff; }
.spiel-wahl input { accent-color: var(--rot); width: 18px; height: 18px; }
.qa-tn { display: flex; flex-direction: column; gap: 8px; }
.qa-tn .qa-z { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: var(--schatten); }
.qa-tn .qa-z.erledigt { opacity: .5; }
.qa-tn .hoch { border: 1.5px solid var(--linie-2); background: #fff; border-radius: 10px; padding: 6px 10px; font-weight: 700; cursor: pointer; display: flex; flex-direction: column; align-items: center; min-width: 48px; }
.qa-tn .hoch.an { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ---------------- Lernspiele ---------------- */
.lern-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; background: var(--teal); color: #fff; }
.lern-inhalt { max-width: 1100px; margin: 0 auto; padding: 20px 16px 60px; }
.karteikarte { perspective: 1400px; width: min(640px, 100%); height: min(380px, 56vh); margin: 0 auto; cursor: pointer; }
.karteikarte .innen { position: relative; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.3,.9,.4,1); transform-style: preserve-3d; }
.karteikarte.umgedreht .innen { transform: rotateY(180deg); }
.karteikarte .seite { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; text-align: center; font-size: 24px; font-weight: 650; box-shadow: var(--schatten-hoch); gap: 12px; overflow: auto; }
.karteikarte .vorne { background: #fff; border-top: 8px solid var(--rot); }
.karteikarte .hinten { background: var(--teal); color: #fff; transform: rotateY(180deg); }
.karteikarte .seite small { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.karteikarte img { max-height: 150px; border-radius: 10px; }
.leitner { display: flex; gap: 8px; justify-content: center; margin: 18px 0; flex-wrap: wrap; }
.leitner div { background: #fff; border: 1px solid var(--linie); border-radius: 12px; padding: 8px 14px; text-align: center; min-width: 80px; }
.leitner b { display: block; font-size: 22px; } .leitner small { color: var(--text-2); font-size: 12px; }
.memory { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.mem-karte { aspect-ratio: 4 / 3; perspective: 900px; cursor: pointer; border: 0; padding: 0; background: transparent; }
.mem-karte .innen { position: relative; width: 100%; height: 100%; transition: transform .45s; transform-style: preserve-3d; }
.mem-karte.offen .innen, .mem-karte.weg .innen { transform: rotateY(180deg); }
.mem-karte .seite { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 14px; display: grid; place-items: center; padding: 10px; font-weight: 650; text-align: center; font-size: 15px; overflow: hidden; }
.mem-karte .ruecken { background: linear-gradient(135deg, var(--rot), var(--rot-dunkel)); color: #fff; font-size: 40px; box-shadow: var(--schatten-hoch); }
.mem-karte .front { background: #fff; transform: rotateY(180deg); border: 2px solid var(--teal); box-shadow: var(--schatten); }
.mem-karte .front img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mem-karte.weg .front { background: var(--gruen-hell); border-color: var(--gruen); opacity: .75; }
.mem-karte.falsch .front { border-color: var(--rot); animation: wackeln .4s; }
@keyframes wackeln { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.brett { display: grid; gap: 10px; }
.brett-kat { background: var(--teal); color: #fff; border-radius: 12px; padding: 14px 10px; font-weight: 750; text-align: center; font-size: 17px; display: grid; place-items: center; }
.brett-feld { background: linear-gradient(135deg, var(--rot), var(--rot-dunkel)); color: #fff; border: 0; border-radius: 12px; font-family: var(--schrift-titel); font-size: 34px; font-weight: 800; min-height: 84px; cursor: pointer; box-shadow: inset 0 -5px 0 rgba(0,0,0,.2); transition: transform .1s; }
.brett-feld:hover { transform: scale(1.03); }
.brett-feld.gespielt { background: var(--linie); color: var(--text-3); box-shadow: none; cursor: default; transform: none; }
.teams-leiste { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 16px 0; }
.team-box { background: #fff; border: 2px solid var(--linie); border-radius: 14px; padding: 8px 14px; text-align: center; min-width: 130px; }
.team-box.dran { border-color: var(--rot); box-shadow: 0 0 0 4px rgba(227,6,19,.12); }
.team-box b { display: block; } .team-box .pk { font-size: 26px; font-weight: 800; font-family: var(--schrift-titel); }
.team-box .knopf-reihe { display: flex; gap: 4px; justify-content: center; margin-top: 4px; }
.brett-frage { position: fixed; inset: 0; background: rgba(16,18,27,.92); z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; gap: 20px; color: #fff; text-align: center; }
.brett-frage .wert { font-size: 26px; font-weight: 800; color: var(--a2); }
.brett-frage .txt { font-size: clamp(26px, 4vw, 52px); font-weight: 700; max-width: 1100px; font-family: var(--schrift-titel); }
.brett-frage .antwort { font-size: clamp(22px, 3vw, 38px); background: var(--gruen); padding: 14px 30px; border-radius: 16px; font-weight: 700; }
.uebung-karte { background: #fff; border-radius: 20px; padding: 22px; box-shadow: var(--schatten-hoch); max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.fortschritt-balken { height: 10px; background: var(--linie); border-radius: 5px; overflow: hidden; }
.fortschritt-balken i { display: block; height: 100%; background: var(--teal); transition: width .3s; }

/* ---------------- Mobil ---------------- */
@media (max-width: 960px) {
  .rahmen { grid-template-columns: 1fr; }
  .seitenleiste { display: none; }
  .inhalt { padding: 20px 14px 96px; }
  .mobil-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: #fff; border-top: 1px solid var(--linie); justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .mobil-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; text-decoration: none; color: var(--text-2); padding: 4px 8px; border-radius: 10px; }
  .mobil-nav a.aktiv { color: var(--teal-dunkel); background: var(--teal-hell); }
  .kl-titel span, .kl-link span { display: none; }
  .editor { grid-template-columns: 1fr; }
  .fragenliste { position: static; max-height: 260px; }
  .widget, .widget.schmal { grid-column: span 12; }
  .raster.drei, .raster.vier { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .raster.zwei { grid-template-columns: 1fr; }
  .antwort-editor { grid-template-columns: 1fr; }
  h1 { font-size: 23px; }
  .lobby { grid-template-columns: 1fr; }
  .lw-mitte { grid-template-columns: 90px minmax(0, 1fr) 90px; }
  .timer { width: 84px; height: 84px; }
  .lw-frage { font-size: 1.5em; }
  .lw-antworten { grid-template-columns: 1fr; }
}
@media (max-width: 700px) { .nur-gross { display: none; } .lern-kopf { flex-direction: column; } }
@media (max-width: 420px) { .tn-ant { min-height: 74px; font-size: 15.5px; } }
