/* Schoko-Quiz – Farben im Stil von „Schokobrot“ (Profilbild + Twitch-Banner):
   Schokolade #3b2214 / #6b3a1f, Brotkruste #c8915f, Brot #f4e9d8, Krone #f2b630, Umhang #d8392f, Banner-Lila #7d3c98 */
:root {
  --bg: #f4e9d8; --flaeche: #fffaf1; --flaeche2: #f8efe1; --text: #2b1a10; --leise: #6e5543; --rand: #e2d0b6;
  --akzent: #8a4b24; --akzent-text: #ffffff; --akzent2: #7d3c98; --gold: #f2b630; --rot: #d8392f;
  --kopf-bg: #3b2214; --kopf-text: #f8ecd9; --kopf-leise: #e0c9a8;
  --gut: #1e7b3a; --gut-bg: #e3f3e7; --schlecht: #b3261e; --schlecht-bg: #fbe5e3; --warn: #8a5a00; --warn-bg: #fff1cf;
  --info-bg: #efe4f5; --info: #5a2a70;
  --opt0: #d8392f; --opt1: #1f6fb8; --opt2: #c98a00; --opt3: #2e8540; --opt4: #7d3c98; --opt5: #6b3a1f;
  --schatten: 0 1px 3px rgba(59,34,20,.10);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c120b; --flaeche: #2a1b11; --flaeche2: #33231a; --text: #f3e6d2; --leise: #c4ad94; --rand: #4a3526;
    --akzent: #f2b630; --akzent-text: #2a1708; --akzent2: #c08ad8; --kopf-bg: #140c07;
    --gut: #7fd99a; --gut-bg: #183222; --schlecht: #ff8f85; --schlecht-bg: #3a1c1a; --warn: #f0cd60; --warn-bg: #3a2e12;
    --info-bg: #2f2038; --info: #d9b5ea; --schatten: none;
  }
}
:root[data-theme="dark"] {
  --bg: #1c120b; --flaeche: #2a1b11; --flaeche2: #33231a; --text: #f3e6d2; --leise: #c4ad94; --rand: #4a3526;
  --akzent: #f2b630; --akzent-text: #2a1708; --akzent2: #c08ad8; --kopf-bg: #140c07;
  --gut: #7fd99a; --gut-bg: #183222; --schlecht: #ff8f85; --schlecht-bg: #3a1c1a; --warn: #f0cd60; --warn-bg: #3a2e12;
  --info-bg: #2f2038; --info: #d9b5ea; --schatten: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; margin-top: 1.2em; }
[hidden] { display: none !important; }
img { max-width: 100%; }

/* ---------- Kopf ---------- */
.kopf {
  color: var(--kopf-text); border-bottom: 4px solid var(--gold);
  background: linear-gradient(90deg, rgba(40,22,12,.96) 0%, rgba(40,22,12,.90) 50%, rgba(40,22,12,.62) 100%),
    url("assets/brand/banner.jpg") 70% center / cover no-repeat, var(--kopf-bg);
}
.kopf-inner { max-width: 1400px; margin: 0 auto; padding: 16px 16px 8px; }
.kopf-zeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.kopf-schalter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.untertitel { margin: 0; color: var(--kopf-leise); }
.marke { display: flex; align-items: center; gap: 14px; min-width: 0; }
.avatar { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--gold); box-shadow: 0 2px 8px rgba(0,0,0,.4); flex: 0 0 auto; background: #7d3c98; object-fit: cover; }
.marke h1 { margin: 0; color: #fff; }
.marke-name { display: block; font-size: .95rem; font-weight: 700; color: var(--gold); letter-spacing: .02em; }
.tabs { max-width: 1400px; margin: 0 auto; padding: 0 16px; display: flex; gap: 4px; overflow-x: auto; }
.tab { border: 0; background: none; color: var(--kopf-leise); font: inherit; font-weight: 600; padding: 10px 14px; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; min-height: 44px; }
.tab:hover { color: var(--kopf-text); }
.tab.aktiv { color: #fff; border-bottom-color: var(--gold); }
.tab-code { font-family: ui-monospace, Consolas, monospace; color: var(--gold); }
.sprache { display: inline-flex; border: 1px solid var(--rand); border-radius: 8px; overflow: hidden; }
.sprach-knopf { font: inherit; font-weight: 700; border: 0; background: var(--flaeche2); color: var(--leise); padding: 6px 12px; cursor: pointer; min-width: 44px; min-height: 40px; }
.sprach-knopf.aktiv { background: var(--akzent); color: var(--akzent-text); }
.kopf .sprache { border-color: rgba(255,255,255,.25); }
.kopf .sprach-knopf { background: rgba(255,255,255,.08); color: var(--kopf-text); }
.kopf .sprach-knopf.aktiv { background: var(--gold); color: #2a1708; }
.ton-knopf { border-radius: 8px; border: 1px solid rgba(255,255,255,.25); }
.kopf-kompakt .kopf-inner { padding: 10px 16px 6px; }
.kopf-kompakt .avatar { width: 44px; height: 44px; border-width: 2px; }
.kopf-kompakt .marke h1 { font-size: 1.15rem; }
.kopf-kompakt .marke-name { font-size: .8rem; }
.kopf-kompakt .kopf-zeile { margin-bottom: 0; }
@media (max-width: 480px) {
  .avatar { width: 52px; height: 52px; }
  .marke { gap: 10px; }
  .marke h1 { font-size: 1.2rem; }
  .marke-name { font-size: .82rem; }
}

/* ---------- Grundbausteine ---------- */
main { max-width: 1400px; margin: 0 auto; padding: 16px; }
.tabseite { display: none; }
.tabseite.aktiv { display: block; }
.karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 10px; padding: 16px; margin-bottom: 16px; box-shadow: var(--schatten); min-width: 0; }
.karte.text { max-width: 860px; }
.kachel { background: var(--flaeche2); border: 1px solid var(--rand); border-radius: 8px; padding: 12px; min-width: 0; }
.kachel h3 { margin-top: 0; }
.spalte-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ohne-abstand { margin: 0 !important; }
.feld { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin-bottom: 10px; }
.feld.breit { flex: 1 1 260px; }
.feld > label, .feld-label, legend { font-size: .85rem; font-weight: 600; color: var(--leise); }
.einstellungen { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.einstellungen-stapel { display: flex; flex-direction: column; gap: 8px; }
.zeile-label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .9rem; }
.haken { display: flex; align-items: flex-start; gap: 8px; font-size: .9rem; cursor: pointer; }
.haken input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; }
.eingabe, select, input[type="text"], input[type="url"], input[type="number"], textarea {
  font: inherit; color: var(--text); background: var(--flaeche2); border: 1px solid var(--rand); border-radius: 6px; padding: 8px 10px; max-width: 100%; min-height: 40px;
}
textarea { width: 100%; resize: vertical; }
.eingabe:focus, select:focus, input:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.gross-eingabe { font-size: 1.15rem; padding: 10px 12px; min-height: 48px; width: 100%; }
.code-eingabe { text-transform: uppercase; letter-spacing: .2em; font-family: ui-monospace, Consolas, monospace; font-weight: 700; }
input[type="number"].zahl-eingabe { width: 5em; padding: 6px 8px; }
.knopf { font: inherit; font-weight: 600; border: 1px solid var(--akzent); background: var(--akzent); color: var(--akzent-text); border-radius: 8px; padding: 8px 14px; cursor: pointer; min-height: 44px; }
.knopf:hover:not(:disabled) { filter: brightness(1.08); }
.knopf:disabled { opacity: .45; cursor: default; }
.knopf.leise { background: transparent; color: var(--akzent); }
.knopf.gefahr { background: var(--schlecht); border-color: var(--schlecht); color: #fff; }
.gefahr-leise { color: var(--schlecht) !important; }
.gross-knopf { font-size: 1.1rem; padding: 10px 20px; min-height: 52px; }
.voll { width: 100%; }
.gut-knopf { background: #1e7b3a; border-color: #1e7b3a; color: #fff; }
.schlecht-knopf { background: #b3261e; border-color: #b3261e; color: #fff; }
.mini-knopf { font: inherit; font-weight: 700; min-width: 40px; min-height: 40px; border: 1px solid var(--rand); background: var(--flaeche2); color: var(--text); border-radius: 6px; cursor: pointer; padding: 0 8px; }
.mini-knopf:disabled { opacity: .35; cursor: default; }
.link-knopf { font: inherit; border: 0; background: none; color: var(--akzent); text-decoration: underline; cursor: pointer; padding: 6px 2px; min-height: 36px; display: inline-block; }
.knopf-reihe { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.link-zeile { display: flex; gap: 6px; }
.link-zeile input { flex: 1 1 auto; min-width: 0; }
.klein { font-size: .82rem; color: var(--leise); font-weight: 400; }
.hinweis { font-size: .82rem; color: var(--leise); margin: 10px 0 0; }
.hinweis.warn, .warnung { color: var(--warn); font-weight: 600; }
.warnung { font-size: .85rem; margin: 4px 0; min-height: 1em; }
.gut { color: var(--gut); font-weight: 700; } .schlecht { color: var(--schlecht); font-weight: 700; }
.leer-text { color: var(--leise); font-style: italic; }
.mitte { text-align: center; }
.abstand { flex: 1 1 auto; }
.meldung { border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; background: var(--info-bg); color: var(--info); font-weight: 600; }
.meldung.ok { background: var(--gut-bg); color: var(--gut); }
.meldung.warn { background: var(--warn-bg); color: var(--warn); }
.meldung.fehler { background: var(--schlecht-bg); color: var(--schlecht); }
.meldung ul { margin: 6px 0 0; padding-left: 20px; font-weight: 400; }
.abzeichen { font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--flaeche2); border: 1px solid var(--rand); color: var(--leise); }
.abzeichen.gut { background: var(--gut-bg); color: var(--gut); border-color: transparent; }
.abzeichen.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.abzeichen.mc { background: var(--info-bg); color: var(--info); border-color: transparent; }
.fuss { max-width: 1400px; margin: 0 auto; padding: 8px 16px 30px; color: var(--leise); font-size: .8rem; }
.schritte li { margin-bottom: 6px; }
.option-buchstabe { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 6px; color: #fff; font-weight: 800; flex: 0 0 auto; }
.b0 .option-buchstabe, .option-buchstabe.b0 { background: var(--opt0); } .option-buchstabe.b1 { background: var(--opt1); } .option-buchstabe.b2 { background: var(--opt2); }
.option-buchstabe.b3 { background: var(--opt3); } .option-buchstabe.b4 { background: var(--opt4); } .option-buchstabe.b5 { background: var(--opt5); }
.uhr { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--akzent); }
.qr svg { width: 100%; height: auto; display: block; background: #fff; border-radius: 8px; }

/* ---------- Quiz-Liste ---------- */
.quiz-liste { display: flex; flex-direction: column; gap: 8px; }
.quiz-zeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--flaeche2); border: 1px solid var(--rand); border-radius: 8px; padding: 10px 12px; }
.quiz-zeile-text { min-width: 0; flex: 1 1 220px; }
.quiz-titel { font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.import-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .import-raster { grid-template-columns: 1fr; } }

/* ---------- Editor ---------- */
.frage-edit { border-left: 4px solid var(--akzent); }
.frage-edit.ist-mc { border-left-color: var(--akzent2); }
.frage-edit-kopf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.frage-edit-koerper .feld { margin-bottom: 10px; }
.optionen-edit { display: flex; flex-direction: column; gap: 6px; }
.option-edit { display: flex; align-items: center; gap: 8px; }
.option-edit input[type="text"] { flex: 1 1 auto; min-width: 0; }
.option-richtig { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.option-richtig input { width: 20px; height: 20px; }
.bild-feld { margin-top: 10px; }
.bild-vorschau img { max-height: 160px; border-radius: 6px; border: 1px solid var(--rand); margin-top: 6px; display: block; }

/* ---------- Raum (Host) ---------- */
.raum-raster { display: grid; grid-template-columns: 300px minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
@media (max-width: 1180px) { .raum-raster { grid-template-columns: 280px minmax(0, 1fr); } .raum-punkte { grid-column: 1 / -1; } }
@media (max-width: 760px) { .raum-raster { grid-template-columns: 1fr; } .raum-mitte { order: -1; } }
.raum-code { font: 800 2.6rem/1.1 ui-monospace, Consolas, monospace; letter-spacing: .12em; color: var(--akzent); margin: 2px 0 10px; }
.raum-info .qr { max-width: 220px; margin-bottom: 12px; }
.frage-karte { border-top: 4px solid var(--gold); }
.frage-text { font-size: 1.35rem; font-weight: 700; margin: 4px 0 10px; overflow-wrap: anywhere; white-space: pre-wrap; }
.gross-text { font-size: 1.2rem; font-weight: 600; }
.frage-bild { max-height: 320px; border-radius: 8px; border: 1px solid var(--rand); display: block; margin: 6px 0 10px; object-fit: contain; }
.antwort-box { background: var(--gut-bg); color: var(--text); border-radius: 8px; padding: 10px 12px; margin-bottom: 6px; font-size: 1.1rem; }
.antwort-box.verdeckt strong { filter: blur(7px); transition: filter .15s; }
.antwort-box.verdeckt:hover strong, .antwort-box.verdeckt:focus strong { filter: none; }
.aufgeloest-hinweis { color: var(--gut); font-weight: 700; margin: 8px 0 0; }
.mc-host { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.mc-host-opt { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px; background: var(--flaeche2); border: 1px solid var(--rand); }
.mc-host-opt.richtig { border: 2px solid var(--gut); background: var(--gut-bg); }
.mc-host-text { flex: 1 1 auto; font-weight: 600; }
.haken-icon { color: var(--gut); font-weight: 800; }
.mc-zahl { font-weight: 700; font-variant-numeric: tabular-nums; }
.buzz-erster { background: linear-gradient(135deg, var(--gold), #ffd76a); color: #2a1708; border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }
.buzz-erster .klein { color: #5a3a10; }
.buzz-name { font-size: 2rem; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.urteil-knoepfe .knopf { flex: 1 1 140px; }
.buzz-folge { margin: 4px 0 0; padding-left: 24px; }
.buzz-folge li { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.ms { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--akzent); }
.urteil { border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; font-weight: 700; }
.urteil.gut { background: var(--gut-bg); } .urteil.schlecht { background: var(--schlecht-bg); }
.warte-text { font-size: 1.1rem; color: var(--leise); }
.antwort-liste { list-style: none; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 4px 12px; }
.antwort-liste li { display: flex; justify-content: space-between; gap: 6px; border-bottom: 1px dashed var(--rand); padding: 2px 0; }
.antwort-liste li.offen { color: var(--leise); }
.steuerung .knopf-reihe .gross-knopf { margin-left: auto; }
.punkte-liste { display: flex; flex-direction: column; gap: 4px; }
.punkte-zeile { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 8px; }
.punkte-zeile:nth-child(odd) { background: var(--flaeche2); }
.punkte-zeile.dran { outline: 2px solid var(--gold); }
.punkte-zeile.offline .spieler-name { opacity: .55; }
.rang { width: 2em; text-align: right; color: var(--leise); font-weight: 700; flex: 0 0 auto; }
.spieler-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.punkte-eingabe { width: 4.2em !important; text-align: center; }
.punkt-status { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.punkt-status.on { background: #2fb35a; } .punkt-status.off { background: #9a8a7a; }
.podium { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.podium li { display: flex; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 8px; background: var(--flaeche2); font-size: 1.1rem; }
.podium .platz1 { background: linear-gradient(135deg, var(--gold), #ffd76a); color: #2a1708; font-size: 1.4rem; font-weight: 800; }
.podium .platz2 { background: #d9d4cc; color: #2a1708; } .podium .platz3 { background: #d9a36a; color: #2a1708; }
.platz-name { flex: 1 1 auto; font-weight: 700; overflow-wrap: anywhere; }
.platz-punkte { font-variant-numeric: tabular-nums; font-weight: 700; }

/* ---------- Spieler ---------- */
.spieler-main { max-width: 640px; padding: 12px 16px 24px; }
.beitreten-karte { margin-top: 8px; }
.spieler-leiste { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; font-weight: 700; }
.ich-name { font-size: 1.1rem; overflow-wrap: anywhere; }
.ich-punkte { color: var(--akzent); }
.verbindung { margin-left: auto; font-size: .8rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; color: var(--leise); }
.verbindung::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #9a8a7a; }
.verbindung.on::before { background: #2fb35a; }
.spieler-frage .frage-text { font-size: 1.2rem; margin-bottom: 4px; }
.spieler-frage .frage-bild { max-height: 40vh; margin-inline: auto; }
.buzzer-bereich { display: flex; flex-direction: column; align-items: center; margin: 8px 0 16px; }
.buzzer {
  width: min(78vw, 46vh, 360px); height: min(78vw, 46vh, 360px); min-width: 200px; min-height: 200px; border-radius: 50%;
  border: 10px solid var(--gold); background: radial-gradient(circle at 35% 30%, #ff7a6e, var(--rot) 55%, #8f1d16);
  color: #fff; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px;
  box-shadow: 0 10px 0 #7a1a12, 0 14px 30px rgba(0,0,0,.35); touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform .06s, box-shadow .06s;
}
.buzzer:active:not(:disabled) { transform: translateY(8px); box-shadow: 0 2px 0 #7a1a12, 0 4px 12px rgba(0,0,0,.35); }
.buzzer-text { font-size: clamp(1.6rem, 9vw, 3rem); font-weight: 900; letter-spacing: .03em; line-height: 1.05; text-align: center; text-shadow: 0 2px 0 rgba(0,0,0,.25); overflow-wrap: anywhere; }
.buzzer-unter { font-size: .95rem; font-weight: 600; text-align: center; opacity: .95; }
.buzzer:disabled { cursor: default; }
.buzzer.aus, .buzzer.gesperrt { background: radial-gradient(circle at 35% 30%, #9b8b7d, #6e5d50 60%, #4a3c31); border-color: #8a7b6c; box-shadow: 0 6px 0 #3a2e25; }
.buzzer.gedrueckt { background: radial-gradient(circle at 35% 30%, #ffb36b, #e07b1f 60%, #9a4f0c); transform: translateY(6px); box-shadow: 0 4px 0 #6a3606; }
.buzzer.erster { background: radial-gradient(circle at 35% 30%, #fff1b8, var(--gold) 55%, #b07d0c); color: #2a1708; border-color: #fff; box-shadow: 0 0 0 8px rgba(242,182,48,.45), 0 10px 30px rgba(0,0,0,.35); animation: puls 1s ease-in-out infinite; }
.buzzer.erster .buzzer-text { text-shadow: none; }
.buzzer.spaet { background: radial-gradient(circle at 35% 30%, #a99ab8, #6d5a82 60%, #463758); border-color: #c9b6dc; box-shadow: 0 6px 0 #2e2340; }
.buzzer.andere { background: radial-gradient(circle at 35% 30%, #ff9c92, #b9473e 60%, #7a2a24); }
@keyframes puls { 50% { box-shadow: 0 0 0 18px rgba(242,182,48,.15), 0 10px 30px rgba(0,0,0,.35); } }
@media (prefers-reduced-motion: reduce) { .buzzer.erster { animation: none; } }
.nur-desktop { display: none; }
@media (hover: hover) and (pointer: fine) { .nur-desktop { display: block; } }
.mc-bereich { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 16px; }
@media (min-width: 520px) { .mc-bereich { grid-template-columns: 1fr 1fr; } }
.mc-knopf { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px; border-radius: 12px; border: 3px solid transparent; font: inherit; font-size: 1.1rem; font-weight: 700; text-align: left; color: #fff; cursor: pointer; }
.mc-knopf .option-buchstabe { background: rgba(0,0,0,.25); }
.mc-knopf.b0 { background: var(--opt0); } .mc-knopf.b1 { background: var(--opt1); } .mc-knopf.b2 { background: var(--opt2); }
.mc-knopf.b3 { background: var(--opt3); } .mc-knopf.b4 { background: var(--opt4); } .mc-knopf.b5 { background: var(--opt5); }
.mc-knopf:disabled { opacity: .45; cursor: default; }
.mc-knopf.gewaehlt { opacity: 1; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold); }
.mc-knopf.richtig { opacity: 1; border-color: #fff; box-shadow: 0 0 0 4px #2fb35a; }
.mc-knopf.falsch { opacity: .8; text-decoration: line-through; }
.mc-text { flex: 1 1 auto; overflow-wrap: anywhere; }
.rueckmeldung { text-align: center; font-size: 1.2rem; font-weight: 800; padding: 12px; border-radius: 10px; margin-bottom: 16px; background: var(--flaeche); border: 1px solid var(--rand); }
.rueckmeldung.gut { background: var(--gut-bg); color: var(--gut); border-color: transparent; }
.rueckmeldung.schlecht { background: var(--schlecht-bg); color: var(--schlecht); border-color: transparent; }
.rang-kurz { margin: 8px 0 0; padding-left: 28px; }
.rang-kurz li { padding: 2px 0; }
.rang-kurz li > * { display: inline; }
.rang-kurz .rang-name { font-weight: 600; margin-right: 8px; }
.rang-kurz .rang-punkte { float: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.rang-kurz li.ich { color: var(--akzent); font-weight: 800; }
.rang-kurz li.offline { opacity: .55; }

/* ---------- Anzeige (Stream) ---------- */
.anzeige-seite { font-size: 18px; }
.einrichten-karte { max-width: 560px; margin: 40px auto; }
.einrichten-karte .marke h1 { color: var(--text); font-size: 1.3rem; }
.einrichten-karte .haken { margin-bottom: 8px; }
.buehne { padding: 24px; min-height: 100vh; display: flex; flex-direction: column; gap: 18px; --panel: rgba(40,22,12,.92); --panel-text: #f8ecd9; }
.anz-panel { background: var(--panel); color: var(--panel-text); border-radius: 16px; padding: 20px 24px; border: 2px solid rgba(242,182,48,.55); box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.anz-kopf { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--panel); color: var(--panel-text); border-radius: 16px; padding: 10px 18px; border-bottom: 4px solid var(--gold); }
.anz-kopf .avatar { width: 56px; height: 56px; }
.anz-titel { font-size: 1.2rem; font-weight: 700; }
.anz-kopf-rechts { text-align: right; }
.anz-nr { font-size: 1.4rem; font-weight: 800; color: var(--gold); }
.anz-mitmachen { font-size: 1rem; opacity: .9; }
.anz-raster { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
@media (max-width: 900px) { .anz-raster { grid-template-columns: 1fr; } }
.anz-haupt { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.anz-status { font-size: 1.3rem; font-weight: 700; }
.anz-frage-text { font-size: 2.3rem; font-weight: 800; line-height: 1.2; margin: 0 0 12px; overflow-wrap: anywhere; white-space: pre-wrap; }
.anz-bild { max-height: 42vh; border-radius: 10px; display: block; margin: 0 auto 12px; object-fit: contain; }
.anz-optionen { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.anz-option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; font-size: 1.5rem; font-weight: 700; color: #fff; border: 3px solid transparent; }
.anz-option .option-buchstabe { width: 44px; height: 44px; font-size: 1.4rem; background: rgba(0,0,0,.25); }
.anz-option.b0 { background: var(--opt0); } .anz-option.b1 { background: var(--opt1); } .anz-option.b2 { background: var(--opt2); }
.anz-option.b3 { background: var(--opt3); } .anz-option.b4 { background: var(--opt4); } .anz-option.b5 { background: var(--opt5); }
.anz-option.richtig { border-color: #fff; box-shadow: 0 0 0 5px #2fb35a; }
.anz-option.daneben { opacity: .4; }
.anz-option-text { flex: 1 1 auto; overflow-wrap: anywhere; }
.anz-option-zahl { font-variant-numeric: tabular-nums; }
.anz-abgegeben { grid-column: 1 / -1; font-size: 1.1rem; opacity: .85; }
.anz-uhr { font-size: 2.6rem; color: var(--gold); text-align: right; }
.anz-loesung { margin-top: 14px; font-size: 1.8rem; font-weight: 800; color: #9df0b5; }
.anz-buzz { border-color: var(--gold); }
.anz-buzz-erster { display: flex; align-items: center; gap: 16px; font-size: 3.2rem; font-weight: 900; color: var(--gold); line-height: 1.1; overflow-wrap: anywhere; animation: rein .25s ease-out; }
.anz-glocke { font-size: 2.6rem; }
.anz-buzz-folge { margin: 10px 0 0; padding-left: 36px; font-size: 1.3rem; }
.anz-buzz-folge li span + span { margin-left: 12px; }
.anz-buzz-folge .ms { color: var(--gold); }
.anz-buzz-offen { font-size: 2rem; font-weight: 800; color: #9df0b5; }
.anz-urteil { font-size: 2.4rem; font-weight: 900; margin-bottom: 6px; animation: rein .25s ease-out; }
.anz-urteil.gut { color: #9df0b5; } .anz-urteil.schlecht { color: #ff9c92; }
@keyframes rein { from { transform: scale(.8); } to { transform: none; } }
.anz-punkte h2 { color: var(--gold); font-size: 1.4rem; }
.anz-rang { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.anz-rang li { display: flex; gap: 10px; align-items: center; font-size: 1.3rem; padding: 4px 8px; border-radius: 8px; }
.anz-rang li.dran { background: rgba(242,182,48,.25); outline: 2px solid var(--gold); }
.anz-rang li.offline { opacity: .5; }
.rang-nr { width: 2em; text-align: right; opacity: .8; }
.anz-rang .rang-name { flex: 1 1 auto; font-weight: 700; overflow-wrap: anywhere; }
.anz-rang .rang-punkte { font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.anz-lobby-inhalt { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.anz-qr { width: 260px; flex: 0 0 auto; }
.anz-gross { font-size: 2.4rem; font-weight: 900; color: var(--gold); }
.anz-code { font: 900 4rem/1.1 ui-monospace, Consolas, monospace; letter-spacing: .15em; }
.anz-url { font-size: 1.1rem; opacity: .85; overflow-wrap: anywhere; }
.anz-spieler { margin-top: 12px; font-size: 1.3rem; font-weight: 600; }
.anz-podium li { font-size: 1.6rem; color: #2a1708; }
.anz-podium li:not(.platz1):not(.platz2):not(.platz3) { background: rgba(255,255,255,.12); color: var(--panel-text); }
html.transparent, html.transparent body { background: transparent !important; }
html.transparent .buehne { min-height: 0; }
.punkte-zeile { flex-wrap: wrap; }
.spieler-name { flex: 1 1 8em; }
.spieler-name > .klein { display: block; }
.punkte-steuerung { display: flex; gap: 4px; align-items: center; margin-left: auto; }
.punkte-steuerung .mini-knopf { min-width: 36px; min-height: 36px; }
