/* Quizplattform — eigenes CSS, keine externen Schriften. Kontraste nach WCAG 2.1 AA geprüft. */
:root {
  --text: #1a1a1a;
  --leise: #4a4a4a;         /* 8.9:1 auf weiß */
  --grund: #ffffff;
  --flaeche: #f3f5f7;
  --linie: #8a939c;         /* 3.3:1 für Bedienelemente */
  --akzent: #0b4f8a;        /* 8.1:1 auf weiß */
  --akzent-text: #ffffff;
  --richtig: #1b6b2f;       /* 6.6:1 auf weiß */
  --richtig-flaeche: #e6f4ea;
  --fehler: #a4161a;        /* 7.4:1 auf weiß */
  --fehler-flaeche: #fdecea;
  --fokus: #c75000;
  --balken: #0b4f8a;
  --balken-grund: #dde3ea;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #f0f0f0; --leise: #c4c4c4; --grund: #121417; --flaeche: #1e2227; --linie: #8a939c;
    --akzent: #7cb8f0; --akzent-text: #0b1520; --richtig: #7ad48f; --richtig-flaeche: #15301c;
    --fehler: #ff8a8a; --fehler-flaeche: #3a1414; --fokus: #ffb070; --balken: #7cb8f0; --balken-grund: #2f363e;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); background: var(--grund);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem; line-height: 1.55;
}
main { max-width: 52rem; margin: 0 auto; padding: 1rem 1rem 3rem; }
main:focus { outline: none; }
h1 { font-size: 1.6rem; line-height: 1.25; margin: 1rem 0 .75rem; }
h2 { font-size: 1.3rem; margin: 2rem 0 .75rem; }
h3 { font-size: 1.1rem; }
a { color: var(--akzent); text-underline-offset: .15em; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .95em; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }

.sprung { position: absolute; left: -999rem; top: 0; background: var(--akzent); color: var(--akzent-text); padding: .5rem 1rem; z-index: 10; }
.sprung:focus { left: 1rem; }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.kopf { background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.kopf-innen { max-width: 52rem; margin: 0 auto; padding: .6rem 1rem; display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.marke { font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.15rem; }
.marke-zusatz { font-weight: 400; color: var(--leise); font-size: .9rem; margin-left: .35rem; }
.fuss { max-width: 52rem; margin: 0 auto; padding: 1rem; color: var(--leise); font-size: .9rem; border-top: 1px solid var(--linie); }

.leise { color: var(--leise); }
.hinweis { padding: .75rem 1rem; border-left: 4px solid var(--akzent); background: var(--flaeche); }
.hinweis.fehler { border-color: var(--fehler); background: var(--fehler-flaeche); }
.hinweis.erfolg { border-color: var(--richtig); background: var(--richtig-flaeche); }
.meldung:empty { display: none; }
.meldung { font-weight: 600; }

.formular { display: grid; gap: 1rem; margin: 1rem 0 2rem; }
.formular.raster { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); align-items: end; }
.feld { display: grid; gap: .3rem; }
label { font-weight: 600; }
input, select, button { font: inherit; }
input[type=text], input:not([type]), input[inputmode], input[type=time], select {
  padding: .6rem .7rem; border: 2px solid var(--linie); border-radius: 6px; background: var(--grund); color: var(--text); min-height: 2.75rem;
}
.inline { display: inline; margin: 0; }

.knopf {
  display: inline-block; padding: .6rem 1rem; min-height: 2.75rem; border-radius: 6px; cursor: pointer;
  border: 2px solid var(--akzent); background: var(--grund); color: var(--akzent); font-weight: 600; text-decoration: none;
}
.knopf.haupt { background: var(--akzent); color: var(--akzent-text); }
.knopf.leicht { border-color: var(--linie); color: var(--text); }
.knopf.gefahr { border-color: var(--fehler); color: var(--fehler); }
.knopf.klein { padding: .3rem .7rem; min-height: 2.25rem; }
.knopf:hover { text-decoration: underline; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0; }

.datenschutz-kurz { margin-top: 2.5rem; padding: 1rem; background: var(--flaeche); border-radius: 8px; font-size: .95rem; }
.datenschutz-kurz h2 { margin-top: 0; font-size: 1.1rem; }

.quiztitel { border-bottom: 2px solid var(--akzent); padding-bottom: .25rem; }
.frage { border: 1px solid var(--linie); border-radius: 8px; padding: 1rem; margin: 1rem 0; }
.frage fieldset { border: 0; margin: 0; padding: 0; }
.frage legend { font-weight: 600; font-size: 1.1rem; margin-bottom: .5rem; padding: 0; }
.option { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem .5rem; border-radius: 6px; }
.option:hover { background: var(--flaeche); }
.option input { width: 1.35rem; height: 1.35rem; margin-top: .2rem; flex: none; accent-color: var(--akzent); }
.option label { font-weight: 400; cursor: pointer; }
.buchstabe { display: inline-block; min-width: 1.6rem; font-weight: 700; }
.gespeichert { margin: .5rem 0 0; }
.js .ohne-js { display: none; }

.status-etikett { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: .1rem .45rem; border-radius: 4px; border: 1px solid currentColor; vertical-align: middle; }
.status-etikett.offen { color: var(--akzent); }
.status-etikett.geschlossen { color: var(--richtig); }
.status-etikett.verborgen { color: var(--leise); }

.optionen-ergebnis { list-style: none; padding: 0; margin: .5rem 0; }
.optionen-ergebnis li { padding: .45rem .5rem; border-radius: 6px; margin: .2rem 0; }
.optionen-ergebnis li.richtig, .verteilung li.richtig { background: var(--richtig-flaeche); border-left: 4px solid var(--richtig); }
.optionen-ergebnis li.meine { outline: 2px dashed var(--linie); }
.marke-richtig { color: var(--richtig); margin-left: .4rem; }
.marke-meine { color: var(--leise); margin-left: .4rem; }
.begruendung { background: var(--flaeche); padding: .75rem 1rem; border-radius: 6px; margin-top: .75rem; }
.begruendung p { margin: .3rem 0; }

.tabelle { width: 100%; border-collapse: collapse; margin: .5rem 0 1.5rem; font-size: .95rem; }
.tabelle th, .tabelle td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle th { background: var(--flaeche); }

.daten { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; }
.daten dt { font-weight: 600; }
.daten dd { margin: 0; word-break: break-word; }
.vorlagen { list-style: none; padding: 0; }
.vorlagen li { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin: .4rem 0; }

.zaehler { font-size: 1.2rem; }
.verteilung { list-style: none; padding: 0; margin: 1rem 0; }
.verteilung li { padding: .5rem .6rem; margin: .4rem 0; border-radius: 6px; }
.vt-balken { display: flex; gap: .75rem; align-items: center; margin-top: .3rem; }
progress { flex: 1; height: 1.25rem; appearance: none; -webkit-appearance: none; border: 1px solid var(--linie); border-radius: 4px; background: var(--balken-grund); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--balken-grund); }
progress::-webkit-progress-value { background: var(--balken); }
progress::-moz-progress-bar { background: var(--balken); }
.vt-wert { min-width: 6.5rem; font-variant-numeric: tabular-nums; font-weight: 600; }

/* Beamer: große Schrift, keine Pseudonyme */
.beamer main { max-width: 80rem; }
.beamer { font-size: 1.5rem; }
.beamer h1, .beamer .stamm { font-size: 2.2rem; }
.beamer progress { height: 2rem; }
.beitritt-folie { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; }
.qr { background: #fff; padding: 12px; border-radius: 8px; max-width: 100%; height: auto; }
.gross dt { font-size: 1.2rem; color: var(--leise); }
.gross dd { font-size: 2.4rem; font-weight: 700; margin: 0 0 1rem; }
.pin { letter-spacing: .1em; font-size: 3.2rem; }
.text h2 { font-size: 1.15rem; }

@media (max-width: 30rem) {
  h1 { font-size: 1.35rem; }
  .vt-wert { min-width: 5rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
