/* Gehirnjogging für wache Geister – Farben wie der Umschlag von Band 1 */
:root {
  --blau: #163b5b;
  --blau-tief: #0e2840;
  --blau-hell: #e8eef4;
  --orange: #df7b23;
  --orange-tief: #a8530f;   /* Orange als Schrift auf Hell (Kontrast > 4,5) */
  --gold: #f2b133;
  --creme: #fdf5e6;
  --papier: #fffcf7;
  --text: #1c2833;
  --text-leise: #4a5866;
  --linie: #d9cfbf;
  --gruen: #276b43;
  --gruen-hell: #e3f2e8;
  --rot: #a3261d;
  --rot-hell: #fbe7e5;
  --rund: 18px;
  --schatten: 0 10px 30px rgba(14, 40, 64, .12);
  --schrift: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
}

/* Schriftgröße-Schalter: alles hängt an rem */
html { font-size: 100%; }
html[data-schrift="gross"] { font-size: 115%; }
html[data-schrift="riesig"] { font-size: 132%; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--papier);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 1.25rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--blau); text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 800; }
h4 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; }
a { color: var(--blau); text-underline-offset: .18em; }
a:hover { color: var(--orange-tief); }
:focus-visible { outline: 4px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.breite { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.springen { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--blau-tief); padding: .6rem 1rem; z-index: 50; font-weight: 700; }
.springen:focus { left: 1rem; top: 1rem; }

.kicker { font-size: 1rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; }
.kicker.dunkel { color: var(--orange-tief); }
.einleitung { font-size: 1.35rem; }
.schmal { max-width: 46rem; }
.hinweis-klein { font-size: 1rem; color: #c9d6e2; margin-top: 1.2rem; }
.hinweis-klein.dunkel { color: var(--text-leise); }

/* Knöpfe: groß, gut zu treffen */
.knoepfe { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.knoepfe.mitte { justify-content: center; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.4rem; padding: .7rem 1.5rem;
  border-radius: 999px; border: 3px solid transparent;
  font: inherit; font-size: 1.2rem; font-weight: 800; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.knopf:hover { transform: translateY(-2px); }
.knopf.klein { min-height: 2.8rem; font-size: 1.05rem; padding: .4rem 1.1rem; }
.knopf-orange { background: var(--orange); color: var(--blau-tief); }
.knopf-orange:hover { background: #ea8c3a; color: var(--blau-tief); }
.knopf-hell { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.knopf-hell:hover { background: rgba(255,255,255,.12); color: #fff; }
.knopf-rand { background: #fff; color: var(--blau); border-color: var(--blau); }
.knopf-rand:hover { background: var(--blau-hell); color: var(--blau); }
.knopf-blau { background: var(--blau); color: #fff; }
.knopf-blau:hover { background: var(--blau-tief); color: #fff; }
.knopf.bald { cursor: default; opacity: .85; }
.knopf.bald:hover { transform: none; }
@media (prefers-reduced-motion: reduce) { .knopf:hover { transform: none; } }

/* Kopfleiste */
.kopf { position: sticky; top: 0; z-index: 20; background: rgba(255, 252, 247, .96); border-bottom: 1px solid var(--linie); backdrop-filter: blur(6px); }
.kopf-zeile { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.marke { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--blau); }
.marke-text { display: flex; flex-direction: column; line-height: 1.05; }
.marke-text b { font-size: 1.3rem; font-weight: 900; }
.marke-text span { font-size: 1rem; }
.menue { display: flex; gap: 1.4rem; margin-left: auto; }
.menue a { font-weight: 700; text-decoration: none; font-size: 1.1rem; padding: .3rem 0; border-bottom: 3px solid transparent; }
.menue a:hover { border-bottom-color: var(--orange); color: var(--blau); }
.schrift { display: flex; align-items: center; gap: .3rem; }
.schrift-wort { font-size: .95rem; color: var(--text-leise); margin-right: .2rem; }
.schrift button {
  width: 2.6rem; height: 2.6rem; border-radius: 10px; border: 2px solid var(--linie);
  background: #fff; color: var(--blau); font: inherit; font-weight: 800; cursor: pointer; line-height: 1;
}
.schrift button:nth-of-type(1) { font-size: 1rem; }
.schrift button:nth-of-type(2) { font-size: 1.25rem; }
.schrift button:nth-of-type(3) { font-size: 1.5rem; }
.schrift button[aria-pressed="true"] { background: var(--blau); border-color: var(--blau); color: #fff; }
/* Ton-Schalter */
.ton-knopf {
  display: inline-flex; align-items: center; gap: .4rem; flex: none;
  height: 2.6rem; padding: 0 .8rem 0 .6rem; border-radius: 10px; border: 2px solid var(--linie);
  background: #fff; color: var(--blau); font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer;
}
.ton-knopf svg { width: 1.4rem; height: 1.4rem; }
.ton-knopf .ton-wellen { display: none; }
.ton-knopf[aria-pressed="true"] { background: var(--blau); border-color: var(--blau); color: #fff; }
.ton-knopf[aria-pressed="true"] .ton-wellen { display: inline; }
.ton-knopf[aria-pressed="true"] .ton-kreuz { display: none; }
.ton-knopf[hidden] { display: none; }

/* Bühne */
.buehne {
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(242, 177, 51, .22), transparent 60%),
    radial-gradient(40rem 30rem at 0% 110%, rgba(223, 123, 35, .18), transparent 60%),
    var(--blau);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
  overflow-x: clip;
}
.buehne-raster { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.buehne-raster > * { min-width: 0; }
.buehne h1 { color: #fff; font-size: min(12vw, clamp(2.6rem, 1.4rem + 4.5vw, 4.6rem)); font-weight: 900; letter-spacing: -.01em; }
.buehne h1 span { display: block; font-weight: 400; font-size: .62em; margin-top: .15em; }
.buehne h1::after { content: ""; display: block; width: 7rem; height: 5px; background: var(--orange); border-radius: 3px; margin-top: 1.4rem; }
.buehne .einleitung { color: #eef3f8; max-width: 34rem; }

.studio { position: relative; }
.studio-licht {
  position: absolute; inset: -12% -6% auto; height: 70%;
  background: conic-gradient(from 200deg at 50% 0%, transparent 0 40deg, rgba(255,255,255,.10) 55deg, transparent 75deg, rgba(255,255,255,.08) 100deg, transparent 120deg);
  pointer-events: none; filter: blur(2px);
}
.karte-show {
  position: relative;
  background: var(--creme); color: var(--text);
  border-radius: 26px; padding: 1.6rem 1.6rem 1.4rem;
  box-shadow: 0 0 0 6px rgba(255,255,255,.08), 0 24px 60px rgba(0,0,0,.35);
}
.show-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 2px dashed var(--linie); padding-bottom: .6rem; margin-bottom: .8rem; }
.show-kopf h2 { font-size: 1.35rem; margin: 0; color: var(--orange-tief); text-transform: uppercase; letter-spacing: .05em; }
.show-datum { font-size: 1rem; color: var(--text-leise); }
.show-thema { font-size: 1rem; font-weight: 700; color: var(--text-leise); margin: 0 0 .3rem; }
.show-frage { font-size: 1.45rem; font-weight: 800; color: var(--blau); line-height: 1.3; }

/* Antwortknöpfe im Quizshow-Stil */
.antworten { display: grid; gap: .65rem; }
.antwort {
  display: flex; align-items: center; gap: .9rem; width: 100%;
  min-height: 3.5rem; padding: .55rem 1rem .55rem .55rem;
  background: #fff; color: var(--text); text-align: left;
  border: 3px solid var(--blau); border-radius: 999px;
  font: inherit; font-size: 1.2rem; font-weight: 600; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.antwort:hover:not(:disabled) { background: var(--blau-hell); transform: translateX(3px); }
.antwort .buchstabe {
  flex: none; display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--blau); color: #fff; font-weight: 900; font-size: 1.15rem;
}
.antwort .zeichen { margin-left: auto; font-weight: 900; font-size: 1.4rem; }
.antwort:disabled { cursor: default; }
.antwort.richtig { background: var(--gruen-hell); border-color: var(--gruen); }
.antwort.richtig .buchstabe { background: var(--gruen); }
.antwort.richtig .zeichen { color: var(--gruen); }
.antwort.falsch { background: var(--rot-hell); border-color: var(--rot); }
.antwort.falsch .buchstabe { background: var(--rot); }
.antwort.falsch .zeichen { color: var(--rot); }
.antwort.blass { opacity: .55; }
@media (prefers-reduced-motion: reduce) { .antwort:hover:not(:disabled) { transform: none; } }

.bedenkzeit { height: 10px; border-radius: 5px; background: #eadfcd; margin: 1rem 0 .2rem; overflow: hidden; }
.bedenkzeit span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold), var(--orange)); transform-origin: left; animation: bedenkzeit 20s linear forwards; }
.bedenkzeit.fertig span { animation: none; transform: scaleX(0); }
@keyframes bedenkzeit { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .bedenkzeit { display: none; } }

.aufloesung { margin: .8rem 0 0; font-size: 1.1rem; min-height: 1px; }
.aufloesung b { color: var(--blau); }
.aufloesung:empty { display: none; }

/* Abschnitte */
.abschnitt { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.abschnitt-schmal { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.abschnitt-creme { background: var(--creme); }
.abschnitt-blau { background: var(--blau); color: #eef3f8; }
.abschnitt-blau h2 { color: #fff; }

.etikett { display: inline-block; background: var(--orange); color: var(--blau-tief); font-weight: 800; font-size: 1rem; padding: .25rem .9rem; border-radius: 999px; }
.runden { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.runden li { background: rgba(255,255,255,.08); border-radius: 12px; padding: .55rem .9rem; display: flex; gap: .9rem; align-items: baseline; }
.runden b { color: var(--gold); font-size: 1rem; min-width: 4.8rem; }

/* ---------- Quizshow als Fernsehstudio ---------- */
.studio-abschnitt {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  color: #eef3f8;
  background:
    radial-gradient(55% 40% at 75% 92%, rgba(242, 177, 51, .14), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 2px, transparent 2px 90px),
    linear-gradient(180deg, #081a2b 0%, #0e2840 55%, #143756 100%);
}
.studio-abschnitt h2 { color: #fff; }
.scheinwerfer {
  position: absolute; top: -8%; width: 40%; height: 125%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 238, 200, .20), rgba(255, 238, 200, 0) 80%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  filter: blur(10px); transform-origin: top center;
}
.scheinwerfer-links { left: 18%; transform: rotate(-24deg); }
.scheinwerfer-rechts { right: -6%; transform: rotate(16deg); }
.studio-raster { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.studio-raster > * { min-width: 0; }

/* Schild mit Glühbirnen-Rahmen (Birnen setzt seite.js) */
.schild {
  position: relative; margin-top: 2rem; padding: 26px; border-radius: 18px;
  background: linear-gradient(180deg, #1d4a72, #163b5b);
  box-shadow: 0 22px 44px rgba(0,0,0,.4), inset 0 0 0 3px #b8862a;
}
.birnen { position: absolute; inset: 0; pointer-events: none; }
.birne {
  position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fffbe8, #ffd36b 55%, #e09a1f);
  box-shadow: 0 0 7px 2px rgba(255, 200, 90, .6);
  animation: birne 1.6s ease-in-out 7 both;
}
.birne:nth-child(even) { animation-delay: -.8s; }
@keyframes birne { 0%, 100% { opacity: 1; } 50% { opacity: .3; box-shadow: none; } }
.schild-innen { position: relative; background: rgba(6, 20, 34, .55); border-radius: 10px; padding: clamp(1rem, 2.5vw, 1.5rem); }
.schild h3 { color: #fff; font-size: clamp(1.45rem, 1.1rem + 1.2vw, 1.9rem); margin: .7rem 0 1rem; }
.schild-fuss { margin: 1rem 0 0; color: #c9d6e2; font-size: 1.05rem; }

/* Röhrenfernseher */
.fernseher-platz { margin: 0; position: relative; padding-top: 80px; }
.fernseher { position: relative; z-index: 1; max-width: 540px; margin-inline: auto; container-type: inline-size; }
.antenne { position: absolute; top: -80px; left: 50%; width: 0; height: 80px; }
.antenne::after { content: ""; position: absolute; bottom: -2px; left: -24px; width: 48px; height: 22px; border-radius: 24px 24px 0 0; background: linear-gradient(#4a4440, #2b2622); }
.antenne span { position: absolute; bottom: 12px; left: -1.5px; width: 3px; height: 92px; border-radius: 2px; background: linear-gradient(#e8e4dc, #8d877e); transform-origin: bottom center; }
.antenne span:first-child { transform: rotate(-34deg); }
.antenne span:last-child { transform: rotate(26deg); height: 80px; }
.antenne span::before { content: ""; position: absolute; top: -4px; left: -3px; width: 9px; height: 9px; border-radius: 50%; background: #e8e4dc; }
.gehaeuse {
  display: grid; grid-template-columns: 1fr 17%; gap: 4.5%; padding: 6% 5.5%;
  border-radius: 28px;
  background:
    repeating-linear-gradient(91deg, rgba(0,0,0,.06) 0 2px, transparent 2px 9px, rgba(255,255,255,.04) 9px 11px, transparent 11px 19px),
    linear-gradient(180deg, #a86f3f, #7a4825);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.22), inset 0 -7px 0 rgba(0,0,0,.28), 0 34px 60px rgba(0,0,0,.5);
}
/* .bildschirm = Glas und Rahmen (ausgeschaltet dunkel), .tv-signal = das Bild, das sich einschaltet */
.bildschirm {
  position: relative; aspect-ratio: 4 / 3; /* ohne overflow:hidden, damit der Schirm bei großer Schrift mitwächst */
  display: flex; border-radius: 15% / 19%;
  background: radial-gradient(ellipse at 50% 45%, #1a2a36 0%, #0b151d 70%, #05090d 100%);
  color: #fff;
  box-shadow: 0 0 0 10px #2b2622, 0 0 0 13px #14110f;
}
.tv-signal {
  flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2.2cqi;
  padding: 5% 8%; border-radius: inherit;
  background: radial-gradient(ellipse at 50% 45%, #25598a 0%, #12324f 62%, #071726 100%);
  box-shadow: inset 0 0 34px rgba(0,0,0,.75);
}
.bildschirm::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; background: linear-gradient(135deg, rgba(255,255,255,.16), transparent 38%); }
.bildschirm::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px); }
.tv-kopf { margin: 0; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; font-weight: 800; font-size: max(11px, 2.7cqi); }
.tv-frage { margin: 0; font-weight: 800; line-height: 1.2; font-size: max(15px, 4.2cqi); }
.tv-antworten { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.3cqi; }
.tv-antworten li {
  display: flex; align-items: center; gap: 2cqi;
  padding: .7cqi 2cqi .7cqi .7cqi; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.35);
  font-weight: 700; font-size: max(13px, 3.3cqi);
  transition: background-color .5s ease, border-color .5s ease, color .5s ease, opacity .5s ease, box-shadow .5s ease;
}
.tv-antworten span { flex: none; display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--orange); color: var(--blau-tief); font-weight: 900; }
.tv-zeit { height: max(6px, 1.3cqi); border-radius: 99px; background: rgba(255,255,255,.15); overflow: hidden; }
.tv-zeit span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--orange)); transform-origin: left; }
.bildschirm.laeuft .tv-zeit span { transition: transform 6s linear; transform: scaleX(0); }
.bildschirm.geloest .tv-zeit span { transform: scaleX(0); }
.bildschirm.geloest .tv-richtig { background: var(--gold); border-color: #fff3c4; color: var(--blau-tief); box-shadow: 0 0 20px rgba(242, 177, 51, .75); }
.bildschirm.geloest .tv-richtig span { background: var(--blau-tief); color: var(--gold); }
.bildschirm.geloest li:not(.tv-richtig) { opacity: .45; }
/* Einschalten wie ein alter Röhrenfernseher */
/* Einschalten wie eine alte Röhre: Leuchtpunkt, Strich, Bild, kurzes Nachflackern (2,6 s) */
.bildschirm.aus .tv-signal { opacity: 0; }
.bildschirm.an .tv-signal { animation: einschalten 2.6s ease-out both; }
@keyframes einschalten {
  0%   { clip-path: inset(49% 49% 49% 49%); filter: brightness(4); }
  14%  { clip-path: inset(49% 47% 49% 47%); filter: brightness(4); }
  32%  { clip-path: inset(49.2% 0 49.2% 0); filter: brightness(3.5); }
  58%  { clip-path: inset(0 0 0 0); filter: brightness(2.2); }
  72%  { clip-path: inset(0 0 0 0); filter: brightness(1.2); }
  80%  { clip-path: inset(0 0 0 0); filter: brightness(.8); }
  88%  { clip-path: inset(0 0 0 0); filter: brightness(1.15); }
  100% { clip-path: inset(0 0 0 0); filter: brightness(1); }
}
.tv-nochmal {
  position: relative; z-index: 1; display: flex; align-items: center; gap: .5rem;
  margin: 2.6rem auto 0; min-height: 2.9rem; padding: .4rem 1.2rem;
  border: 2px solid rgba(255,255,255,.6); border-radius: 999px; background: rgba(255,255,255,.06);
  color: #fff; font: inherit; font-size: 1.05rem; font-weight: 700; cursor: pointer;
}
.tv-nochmal[hidden] { display: none; }
.tv-nochmal:hover { background: rgba(255,255,255,.14); border-color: var(--gold); }
.tv-nochmal span { font-size: 1.3em; line-height: 1; }
.bedienfeld { display: flex; flex-direction: column; align-items: center; gap: 10%; padding-top: 8%; }
.knopf-dreh { position: relative; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f3ede4, #b9ae9f 60%, #857a6b); box-shadow: 0 3px 0 rgba(0,0,0,.35); }
.knopf-dreh::after { content: ""; position: absolute; top: 9%; left: 50%; width: 9%; height: 34%; border-radius: 2px; background: #5a4f43; transform: translateX(-50%); }
.knopf-dreh.klein { width: 56%; transform: rotate(55deg); }
.lautsprecher { width: 82%; flex: 1; min-height: 25%; margin-top: auto; border-radius: 8px; background: repeating-linear-gradient(180deg, #3d2a1a 0 3px, #96643a 3px 7px); }
.fuesse { display: flex; justify-content: space-between; padding: 0 15%; }
.fuesse span { width: 11%; height: 26px; background: #2b2622; clip-path: polygon(15% 0, 85% 0, 100% 100%, 60% 100%); }
.fuesse span:last-child { clip-path: polygon(15% 0, 85% 0, 40% 100%, 0 100%); }
.buehnenlicht { position: absolute; left: 50%; bottom: -26px; width: 115%; height: 90px; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(242, 177, 51, .32), transparent 68%); }
@media (prefers-reduced-motion: reduce) {
  .birne, .bildschirm.an .tv-signal { animation: none; }
  .bildschirm.laeuft .tv-zeit span, .tv-antworten li { transition: none; }
}

.schritte { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.schritte li { background: #fff; border: 2px solid var(--linie); border-radius: var(--rund); padding: 1.3rem; }
.schritte p { margin: 0; color: var(--text-leise); font-size: 1.1rem; }
.nr { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--orange); color: var(--blau-tief); font-weight: 900; font-size: 1.3rem; margin-bottom: .8rem; }

/* Mitrate-Quiz */
.quiz { position: relative; margin-top: 2rem; background: #fff; border-radius: 24px; box-shadow: var(--schatten); padding: clamp(1.2rem, 3vw, 2.2rem); }
.thema {
  display: flex; align-items: center; gap: .9rem; width: 100%;
  min-height: 3.6rem; padding: .6rem 1rem .6rem .6rem; text-align: left;
  background: var(--papier); border: 2px solid var(--linie); border-radius: 14px;
  font: inherit; font-size: 1.1rem; font-weight: 700; color: var(--blau); cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.thema:hover { border-color: var(--blau); background: var(--blau-hell); }
.thema-text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.thema-text span { font-weight: 400; font-size: 1rem; color: var(--text-leise); }
/* Symbol-Kachel, drei Farbtöne im Wechsel */
.thema-zeichen { flex: none; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 12px; background: #fde9d6; color: var(--orange-tief); transition: transform .2s ease; }
.thema-zeichen svg { width: 1.7rem; height: 1.7rem; }
.themen .thema:nth-child(3n+2) .thema-zeichen { background: #fdf0cf; color: #7a5200; }
.themen .thema:nth-child(3n) .thema-zeichen { background: var(--blau-hell); color: var(--blau); }
.thema:hover .thema-zeichen { transform: rotate(-8deg) scale(1.06); }
@media (prefers-reduced-motion: reduce) { .thema:hover .thema-zeichen { transform: none; } }
.thema-bunt { background: var(--blau); border-color: var(--blau); color: #fff; margin-bottom: 1rem; }
.thema-bunt b { font-size: 1.35rem; }
.thema-bunt .thema-text span { color: #d6e1eb; }
.thema-bunt .thema-zeichen { background: rgba(255,255,255,.14); color: var(--gold); width: 3.3rem; height: 3.3rem; }
.thema-bunt .thema-zeichen svg { width: 2rem; height: 2rem; }
.thema-bunt:hover { background: var(--blau-tief); border-color: var(--blau-tief); }
.themen { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .7rem; }
.themen-gruppe { margin: 1.6rem 0 .8rem; font-size: 1.15rem; color: var(--orange-tief); text-transform: uppercase; letter-spacing: .05em; }
.themen-gruppe:first-child { margin-top: .4rem; }

.quiz-leiste { display: flex; justify-content: space-between; gap: 1rem; font-weight: 700; color: var(--text-leise); font-size: 1.05rem; }
.fortschritt { height: 10px; background: var(--blau-hell); border-radius: 5px; margin: .5rem 0 1.4rem; overflow: hidden; }
.fortschritt span { display: block; height: 100%; width: 0; background: var(--orange); transition: width .3s ease; }
.quiz-frage { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); font-weight: 800; color: var(--blau); line-height: 1.3; outline: none; }
.antworten-gross .antwort { font-size: 1.3rem; min-height: 4rem; }
.quiz-unten { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.quiz-ende { text-align: center; padding: 1rem 0; }
/* Ergebnis: Sterne, Konfetti */
.sterne { margin: 0 0 .3rem; font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem); line-height: 1; letter-spacing: .15em; }
.stern { display: inline-block; color: #e5dccd; }
.stern.voll { color: var(--gold); text-shadow: 0 2px 0 #c98b12; animation: stern-auf .5s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes stern-auf { from { transform: scale(0) rotate(-40deg); opacity: 0; } to { transform: none; opacity: 1; } }
.konfetti { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.konfetti span { position: absolute; top: -20px; border-radius: 2px; animation-name: konfetti-fall; animation-timing-function: cubic-bezier(.25, .6, .45, 1); animation-fill-mode: both; }
@keyframes konfetti-fall {
  from { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  85% { opacity: 1; }
  to { transform: translate(var(--seite), var(--weg)) rotate(var(--dreh)); opacity: 0; }
}
/* richtige Antwort leuchtet kurz auf */
.antwort.jubel { animation: jubel .7s ease-out; }
@keyframes jubel {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(39, 107, 67, .55); }
  35% { transform: scale(1.03); }
  100% { transform: scale(1); box-shadow: 0 0 0 16px rgba(39, 107, 67, 0); }
}
@media (prefers-reduced-motion: reduce) { .stern.voll, .antwort.jubel { animation: none; } }
.ergebnis-zahl { font-variant-numeric: tabular-nums; font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); font-weight: 900; color: var(--blau); outline: none; margin-bottom: .3rem; }
.ergebnis-text { font-size: 1.3rem; max-width: 34rem; margin-inline: auto; }

/* Wissen */
.wissen { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; background: #fff; border: 3px solid var(--gold); border-radius: 24px; padding: clamp(1.3rem, 3vw, 2.2rem); }
.wissen-zeichen { width: 4rem; height: 4rem; border-radius: 50%; background: var(--gold); color: var(--blau-tief); display: grid; place-items: center; font-size: 2.4rem; font-weight: 900; }
.wissen h2 { font-size: 1.6rem; margin-bottom: .4rem; }
.wissen blockquote { margin: 0 0 .6rem; font-size: 1.3rem; }
.wissen figcaption { font-size: 1rem; margin-bottom: 1rem; }

/* Bögen */
.boegen-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; align-items: center; }
.bogen-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.bogen { display: flex; align-items: center; gap: 1rem; background: #fff; border: 2px solid var(--linie); border-radius: var(--rund); padding: 1rem 1.2rem; }
.bogen-nr { flex: none; width: 3rem; height: 3.6rem; border-radius: 6px; border: 2px solid var(--blau); display: grid; place-items: center; font-weight: 900; color: var(--blau); background: repeating-linear-gradient(180deg, #fff 0 .6rem, var(--blau-hell) .6rem calc(.6rem + 2px)); }
.bogen-titel { font-weight: 800; color: var(--blau); display: flex; flex-direction: column; }
.bogen-titel small { font-weight: 400; font-size: 1rem; color: var(--text-leise); }
.bogen-status { margin-left: auto; flex: none; font-size: .95rem; font-weight: 800; background: var(--creme); color: var(--orange-tief); border-radius: 999px; padding: .2rem .8rem; }

/* Heft */
.heft-raster { display: grid; grid-template-columns: minmax(14rem, 22rem) 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.heft-raster > *, .boegen-raster > * { min-width: 0; }
h1, h2, h3, h4 { overflow-wrap: break-word; hyphens: auto; }
.heft-bild { border-radius: 8px; box-shadow: 0 30px 60px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.08); transform: rotate(-2deg); }
@media (prefers-reduced-motion: reduce) { .heft-bild { transform: none; } }
.haken { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .55rem; }
.haken li { padding-left: 2.1rem; position: relative; }
.haken li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 900; }
.preis-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.preis { font-size: 2rem; font-weight: 900; color: #fff; }

.abschnitt-heft .preis { color: var(--blau); }
.abschnitt-heft .haken li::before { color: var(--orange-tief); }
.abschnitt-heft .heft-bild { box-shadow: 0 30px 60px rgba(14, 40, 64, .3); }
.abschnitt-heft .knopf.bald { opacity: 1; background: var(--creme); color: var(--orange-tief); border-color: var(--orange); }

/* Zwei Türen auf der Bühne */
.tueren { display: grid; gap: .8rem; margin-top: 1.6rem; max-width: 34rem; }
.tuer {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .9rem 1.1rem; border-radius: var(--rund);
  background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.35);
  color: #fff; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.tuer:hover { background: rgba(255,255,255,.15); border-color: var(--gold); color: #fff; transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .tuer:hover { transform: none; } }
.tuer-zeichen { flex: none; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 14px; background: var(--orange); color: var(--blau-tief); font-size: 1.7rem; font-weight: 900; }
.tuer:nth-child(2) .tuer-zeichen { background: var(--gold); }
.tuer-text { flex: 1 1 12rem; display: flex; flex-direction: column; line-height: 1.3; }
.tuer-text b { font-size: 1.35rem; }
.tuer-text span { color: #d6e1eb; font-size: 1.05rem; }
.tuer-etikett { flex: none; font-size: .95rem; font-weight: 800; color: var(--blau-tief); background: var(--creme); border-radius: 999px; padding: .2rem .8rem; }
.hinweis-klein a { color: #fff; font-weight: 700; }
.hinweis-klein a:hover { color: var(--gold); }

/* Probeblatt */
.probe-raster { display: grid; grid-template-columns: 1fr minmax(14rem, 24rem); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.probe-raster > * { min-width: 0; }
.probe-runden { list-style: none; padding: 0; margin: 0 0 .5rem; display: grid; gap: .5rem; }
.probe-runden li { display: flex; align-items: center; gap: .8rem; font-weight: 700; color: var(--blau); }
.probe-runden span { flex: none; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--orange); color: var(--blau-tief); font-weight: 900; font-size: 1.05rem; }
.probe-bild { display: block; background: #fff; padding: .6rem; border-radius: 8px; box-shadow: var(--schatten), 0 0 0 1px var(--linie); transform: rotate(1.5deg); transition: transform .2s ease; }
.probe-bild:hover { transform: rotate(0deg) scale(1.02); }
@media (prefers-reduced-motion: reduce) { .probe-bild, .probe-bild:hover { transform: none; } }

/* Rätselkarten im Heft-Abschnitt */
.karten-titel { margin: clamp(2.5rem, 6vw, 4rem) 0 1.2rem; text-align: center; font-weight: 800; color: var(--blau); font-size: 1.3rem; }
.karten-reihe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.2rem); max-width: 54rem; margin-inline: auto; }
.raetselkarte { margin: 0; text-align: center; }
.raetselkarte svg {
  display: block; width: 100%; height: auto; aspect-ratio: 1; padding: 10%;
  background: var(--creme); border-radius: 18px;
  box-shadow: 0 14px 28px rgba(14, 40, 64, .16), 0 0 0 1px var(--linie);
  font-family: var(--schrift);
}
.raetselkarte:nth-child(1) svg { transform: rotate(-3deg); }
.raetselkarte:nth-child(3) svg { transform: rotate(3deg); }
.raetselkarte figcaption { margin-top: 1rem; font-weight: 800; color: var(--blau); font-size: 1.1rem; }
.steine rect { fill: #fff; stroke: var(--blau); stroke-width: 1.4; }
.zahlen text { text-anchor: middle; font-size: 10px; font-weight: 800; fill: var(--blau); }
.zahlen .loesung-zahl { fill: var(--orange-tief); opacity: 0; }
.buchstaben tspan { text-anchor: middle; }
.buchstaben text { font-size: 11px; font-weight: 800; fill: var(--blau); }
.kreise rect { fill: none; stroke: var(--orange); stroke-width: 2; }
.waende { fill: none; stroke: var(--blau); stroke-width: 2.4; stroke-linecap: round; }
.weg { fill: none; stroke: var(--orange); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 0 5.5; }
.weg-zeichnen { fill: none; stroke: #fff; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
/* gezeichnet wird erst, wenn seite.js .los setzt */
.zeichnen { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.raetselkarte.los .zeichnen { stroke-dashoffset: 0; transition: stroke-dashoffset 1s ease-in-out; }
.raetselkarte.los .weg-zeichnen { transition-duration: 3.2s; transition-delay: .5s; }
.raetselkarte.los .loesung-zahl { animation: zahl-auf .45s ease-out both; }
@keyframes zahl-auf { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.loesung-zahl { transform-box: fill-box; }
@media (prefers-reduced-motion: reduce) {
  .raetselkarte.los .zeichnen { transition: none; }
  .raetselkarte.los .loesung-zahl { animation: none; opacity: 1; }
}

/* Sanftes Einblenden beim Scrollen (nur mit JS und ohne „weniger Bewegung“) */
.mit-einblenden .einblenden { opacity: 0; transform: translateY(26px); transition: opacity .7s ease-out, transform .7s ease-out; }
.mit-einblenden .einblenden.sichtbar { opacity: 1; transform: none; }

/* Gruppen */
.tipps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2rem; }
.tipp { background: var(--creme); border-radius: var(--rund); padding: 1.3rem; border-top: 6px solid var(--orange); }
.tipp p { margin: 0; font-size: 1.1rem; color: var(--text-leise); }
.kontakt-kasten { margin-top: 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; border: 3px solid var(--blau); border-radius: 24px; padding: clamp(1.3rem, 3vw, 2rem); }
.kontakt-kasten > div { flex: 1 1 26rem; }
.kontakt-kasten p { margin: 0; }

.themen-wolke { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.themen-wolke li { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 2px solid var(--linie); border-radius: 999px; padding: .35rem 1rem .35rem .7rem; font-size: 1.05rem; font-weight: 600; color: var(--blau); }
.themen-wolke svg { width: 1.3em; height: 1.3em; flex: none; color: var(--orange-tief); }

/* Fuß */
.fuss { background: var(--blau-tief); color: #c9d6e2; padding: 2.5rem 0; font-size: 1.05rem; }
.fuss-raster { display: flex; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.fuss p { margin: 0 0 .4rem; }
.fuss-marke { color: #fff; font-weight: 900; font-size: 1.3rem; }
.fuss-marke span { font-weight: 400; }
.fuss nav { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; align-items: center; }
.fuss a { color: #fff; }
.fuss a:hover { color: var(--gold); }

/* Textseiten (Impressum, Datenschutz) */
.text-seite { width: min(46rem, 100% - 2rem); margin: 0 auto; padding: 3rem 0 4rem; }
.text-seite h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.6rem); }
.text-seite h2 { font-size: 1.4rem; margin-top: 2rem; }
.text-seite .kurz { background: var(--creme); border-left: 6px solid var(--orange); padding: 1rem 1.2rem; border-radius: 0 12px 12px 0; }
.stand { color: var(--text-leise); font-size: 1rem; margin-top: 2rem; }

/* Tablet */
@media (max-width: 960px) {
  .menue { display: none; }
  .schrift { margin-left: auto; }
  .buehne-raster { grid-template-columns: 1fr; }
  .schritte, .tipps { grid-template-columns: repeat(2, 1fr); }
  .studio-raster { grid-template-columns: 1fr; }
  .fernseher { max-width: 480px; }
  .boegen-raster { grid-template-columns: 1fr; }
  .probe-raster { grid-template-columns: 1fr; }
  .probe-bild { max-width: 22rem; margin-inline: auto; }
}

/* Handy */
@media (max-width: 600px) {
  .karten-reihe { grid-template-columns: minmax(0, 15rem); justify-content: center; gap: 2rem; }
  .raetselkarte:nth-child(n) svg { transform: none; }
  body { font-size: 1.15rem; }
  .breite { width: calc(100% - 2rem); }
  /* Kopfzeile in festen Pixeln, damit sie bei großer Schrift nicht überläuft */
  .kopf-zeile { gap: 10px; min-height: 64px; }
  .marke { gap: 8px; min-width: 0; }
  .marke img { width: 34px; height: 34px; }
  .marke-text b { font-size: 18px; }
  .marke-text span { font-size: 14px; }
  .schrift-wort { display: none; }
  .schrift { gap: 4px; flex: none; }
  .schrift button { width: 40px; height: 40px; }
  .schrift button:nth-of-type(1) { font-size: 15px; }
  .schrift button:nth-of-type(2) { font-size: 19px; }
  .schrift button:nth-of-type(3) { font-size: 23px; }
  .ton-knopf { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .ton-knopf svg { width: 22px; height: 22px; }
  .ton-text { display: none; }
  .kicker { font-size: .9rem; letter-spacing: .04em; }
  .show-kopf { flex-wrap: wrap; }
  .einleitung { font-size: 1.2rem; }
  .knoepfe .knopf { flex: 1 1 100%; }
  .karte-show { padding: 1.2rem 1.1rem; }
  .show-frage { font-size: 1.3rem; }
  .schritte, .tipps { grid-template-columns: 1fr; }
  .wissen { grid-template-columns: 1fr; gap: .8rem; }
  .wissen-zeichen { width: 3rem; height: 3rem; font-size: 1.8rem; }
  .heft-raster { grid-template-columns: 1fr; }
  .heft-bild { max-width: min(13rem, 70%); margin-inline: auto; }
  .bogen { flex-wrap: wrap; }
  .bogen-titel { flex: 1 1 12rem; }
  .bogen-status { margin-left: 0; }
  .quiz-unten .knopf { flex: 1 1 100%; }
  .quiz-unten { flex-direction: column-reverse; }
}
