/* Weitblick & Wirbelwind – warmes, gut lesbares Design (auch für ältere Augen) */
:root {
  --papier: #f7f0e1;
  --papier-2: #fffaf0;
  --tinte: #1d2742;
  --tinte-2: #4a5470;
  --blau: #1f5fbf;
  --blau-dunkel: #164a96;
  --orange: #f08a24;
  --gruen: #2f9a55;
  --rot: #d4413d;
  --gold: #e0b04a;
  --rand: #d9ccb2;
  --schatten: 0 6px 20px rgba(40, 30, 10, 0.16);
  --rund: 16px;
  --display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px;
}
html.gross { font-size: 22px; }
html.kontrast { --tinte: #000; --tinte-2: #1a1a1a; --rand: #6b5b3b; --papier: #fffdf6; --blau: #003c9e; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--papier); color: var(--tinte); font-family: var(--text); line-height: 1.45;
  -webkit-tap-highlight-color: transparent; min-height: 100vh;
}
body.playing { overflow: hidden; overscroll-behavior: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; }
img.ico { display: inline-block; vertical-align: middle; flex: none; }
.noscript { padding: 40px; text-align: center; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
  min-height: 48px; padding: 0.55em 1.1em; border-radius: 14px; border: 2px solid var(--rand);
  background: #fff; color: var(--tinte); font-weight: 600; cursor: pointer; text-decoration: none;
  box-shadow: 0 2px 0 rgba(0,0,0,0.08); transition: transform .08s, box-shadow .08s, background .15s;
}
.knopf:hover { background: #fff8e8; }
.knopf:active { transform: translateY(2px); box-shadow: none; }
.knopf:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.knopf.primaer { background: var(--blau); border-color: var(--blau-dunkel); color: #fff; }
.knopf.primaer:hover { background: var(--blau-dunkel); }
.knopf.gross { min-height: 58px; font-size: 1.12rem; padding: 0.6em 1.4em; }
.knopf.leise { background: transparent; border-color: transparent; box-shadow: none; color: var(--tinte-2); text-decoration: underline; text-underline-offset: 3px; }
.knopf.klein { min-height: 40px; padding: 0.3em 0.9em; font-size: 0.95rem; }
.knopf:disabled { opacity: 0.5; cursor: default; }
.knopf.whatsapp { background: #25d366; border-color: #1da851; color: #fff; }

/* ---------- Menüs ---------- */
.menu { max-width: 1000px; margin: 0 auto; padding: 70px 18px 90px; }
.menu h2 { font-size: 1.8rem; margin: 0.4em 0 0.5em; }
.menu-unten { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 28px; }
.klein { font-size: 0.92rem; color: var(--tinte-2); }
.fehler { color: var(--rot); font-weight: 600; }
.warte { font-size: 1.15rem; color: var(--tinte-2); }
.punkte::before { content: ''; display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); vertical-align: middle; animation: puls 1s infinite ease-in-out; }
@keyframes puls { 0%, 100% { transform: scale(0.6); opacity: .5; } 50% { transform: scale(1.1); opacity: 1; } }

.start { padding-top: 56px; }
.titel-bild { height: min(36vh, 300px); border-radius: 22px; overflow: hidden; box-shadow: var(--schatten); }
.titel-cv { width: 100%; height: 100%; display: block; }
.titel-text { text-align: center; margin: 18px 0 8px; }
.titel-text h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); margin: 0.1em 0; letter-spacing: -0.02em; }
.wb { color: var(--blau); } .ww { color: var(--orange); } .und { color: var(--gold); }
.unterzeile { font-size: 1.25rem; font-weight: 700; margin: 0.2em 0; }
.einleitung { max-width: 680px; margin: 0.6em auto; color: var(--tinte-2); }
.start-wahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 22px 0; }
.wahl {
  text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: var(--rund);
  border: 2px solid var(--rand); background: #fff; cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,0.07); min-height: 110px;
}
.wahl b { font-size: 1.22rem; font-family: var(--display); }
.wahl span { color: var(--tinte-2); }
.wahl:hover { border-color: var(--blau); }
.wahl-lokal b { color: var(--blau); } .wahl-netz b { color: #b8560f; } .wahl-code b { color: var(--gruen); } .wahl-ueben b { color: #7a4fc4; }
.start-stand { text-align: center; font-weight: 600; }
.start-klein { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }

.rollen-wahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.rolle {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 22px; border-radius: 20px;
  border: 3px solid var(--rand); background: #fff; cursor: pointer;
}
.rolle b { font-size: 1.6rem; font-family: var(--display); }
.rolle em { color: var(--tinte-2); font-style: normal; font-weight: 600; }
.rolle span { color: var(--tinte-2); }
.rolle-w:hover { border-color: var(--blau); } .rolle-k:hover { border-color: var(--orange); }
.rolle-w b { color: var(--blau); } .rolle-k b { color: #c4621a; }

.spieler-bloecke { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.spieler-block { background: #fff; border: 2px solid var(--rand); border-radius: 18px; padding: 16px 18px; }
.spieler-block h3 { margin: 0 0 10px; font-size: 1.35rem; }
.spieler-block h3 small { font-weight: 500; color: var(--tinte-2); font-size: 0.8rem; font-family: var(--text); }
.sb-W h3 { color: var(--blau); } .sb-K h3 { color: #c4621a; }
.spieler-block label { display: block; font-weight: 600; }
.name-ein, .code-ein {
  display: block; width: 100%; margin-top: 6px; font-size: 1.3rem; padding: 0.5em 0.7em; border-radius: 12px;
  border: 2px solid var(--rand); background: var(--papier-2); color: var(--tinte);
}
.lbl { margin: 12px 0 6px; font-weight: 600; }
.figuren { display: flex; gap: 10px; flex-wrap: wrap; }
.figur { padding: 4px; border-radius: 50%; border: 3px solid transparent; background: transparent; cursor: pointer; }
.figur.an { border-color: var(--orange); background: #fff1dc; }
.einladung-text { font-size: 1.2rem; background: #fff; border-left: 6px solid var(--orange); padding: 12px 16px; border-radius: 10px; }

.code-gross { display: flex; gap: 10px; justify-content: center; margin: 18px 0; }
.code-gross span {
  width: 64px; height: 78px; display: grid; place-items: center; font: 700 2.6rem var(--display); background: #fff;
  border: 3px solid var(--blau); border-radius: 14px; color: var(--blau);
}
.einladen-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.kopiert { color: var(--gruen); font-weight: 700; }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 18px 0; }
.qr { width: 180px; height: 180px; background: #fff; padding: 6px; border-radius: 10px; }
.qr svg { width: 100%; height: 100%; }
.code-ein { max-width: 260px; text-align: center; letter-spacing: 0.35em; font: 700 2.2rem var(--display); text-transform: uppercase; }

/* ---------- Zeitstrahl ---------- */
.zs-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 10px 14px; border: 2px solid var(--rand); }
.zs-paar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.zs-paar div { display: flex; flex-direction: column; line-height: 1.1; }
.zs-paar small { color: var(--tinte-2); }
.zs-und { font: 700 1.5rem var(--display); color: var(--gold); }
.verbindung { font-size: 0.92rem; font-weight: 600; }
.verbindung.ok { color: var(--gruen); } .verbindung.weg { color: #b8560f; }
.zs-stand { font-weight: 600; }
.zs-strahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.zs-era {
  border-radius: 18px; padding: 14px; color: #fff; background: linear-gradient(160deg, var(--h0), var(--h1)); box-shadow: var(--schatten);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.zs-era-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.zs-era-kopf b { font: 700 1.3rem var(--display); }
.zs-era-text { margin: 6px 0 10px; font-size: 0.95rem; }
.zs-level { display: grid; gap: 8px; }
.lv {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 2px 10px; text-align: left;
  background: rgba(255,255,255,0.93); color: var(--tinte); border: 0; border-radius: 12px; padding: 10px 12px; cursor: pointer; text-shadow: none; position: relative; min-height: 56px;
}
.lv:hover { background: #fff; }
.lv-nr { grid-row: span 2; font: 700 1.2rem var(--display); color: var(--blau); background: #e9f0ff; border-radius: 10px; padding: 6px 8px; }
.lv-name { font-weight: 700; }
.lv-sterne { display: flex; gap: 2px; }
.lv-rad { grid-row: span 2; grid-column: 3; }
.lv.zu { opacity: 0.55; cursor: default; }
.lv.zu .lv-name::after { content: ' 🔒'; }

/* ---------- Dialoge ---------- */
.dialog { position: fixed; inset: 0; background: rgba(20, 16, 8, 0.55); display: flex; align-items: center; justify-content: center; z-index: 9000; padding: 14px; }
.dialog-box { background: var(--papier-2); border-radius: 20px; max-width: 720px; width: 100%; max-height: 92vh; overflow: auto; padding: 16px 20px 22px; box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
.dlg-kopf { display: flex; justify-content: space-between; align-items: center; position: sticky; top: -16px; background: var(--papier-2); padding-top: 4px; z-index: 1; }
.dlg-kopf h2 { margin: 0.2em 0; }
.dlg-zu { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--rand); background: #fff; font-size: 1.3rem; cursor: pointer; }
.einst .regler { display: grid; grid-template-columns: 140px 1fr; align-items: center; gap: 10px; margin: 10px 0; font-weight: 600; }
.einst input[type=range] { width: 100%; height: 32px; }
.schalter-zeile { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #eadfca; cursor: pointer; }
.schalter-zeile input { width: 28px; height: 28px; margin-top: 2px; flex: none; }
.schalter-zeile span { display: flex; flex-direction: column; }
.schalter-zeile small { color: var(--tinte-2); }
.hilfe li { margin: 6px 0; }
.album-schaetze { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.album .schatz { display: flex; gap: 10px; background: #fff; border-radius: 12px; padding: 10px; border: 1px solid #eadfca; }
.album .schatz p { margin: 4px 0; font-size: 0.95rem; }
.album .schatz.fehlt { opacity: 0.55; }
.frage { font-style: italic; color: #8a4a12; }
.album-eintrag { background: #fff; border-radius: 12px; padding: 8px 12px; margin: 8px 0; border-left: 5px solid var(--orange); }
.album-eintrag p { margin: 2px 0; font-size: 1.05rem; }
.album-eintrag small { color: var(--tinte-2); }
.geschichte { text-align: center; }
.gs-cv { width: 100%; max-width: 600px; aspect-ratio: 2 / 1; border-radius: 14px; background: #ddd; }
.geschichte p { font-size: 1.2rem; }

/* ---------- Spiel ---------- */
.spiel { position: fixed; inset: 0; display: flex; background: #10131c; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: none; }
.k-bereich { position: relative; flex: 1 1 60%; min-width: 0; min-height: 0; overflow: hidden; }
.k-cv, .w-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.w-bereich { position: relative; flex: 1 1 40%; min-width: 0; min-height: 0; display: grid; background: var(--papier); color: var(--tinte); }
.w-karte { position: relative; min-height: 0; overflow: hidden; background: #8fb7d6; }
.lay-k .w-bereich { display: none; }
.lay-w .k-bereich { display: none; }

/* Weitblick allein: Karte oben (breit), Schaltpult darunter */
.lay-w .w-bereich { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1.1fr) minmax(0, 1fr); }
.lay-w .w-pult { overflow: auto; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.lay-w .pk-gruppe h3 { margin-top: 0; }
@media (orientation: portrait), (max-width: 760px) {
  .lay-w .w-bereich { grid-template-rows: auto minmax(180px, 40%) minmax(0, 1fr); }
  .lay-w .w-pult { display: block; }
}
/* Beide an einem Gerät */
.lay-lokal .w-bereich { grid-template-columns: 1fr; grid-template-rows: auto minmax(120px, 34%) minmax(0, 1fr); border-left: 4px solid #2a2f3d; max-width: 46%; }
.lay-lokal .w-pult { overflow: auto; }
@media (orientation: portrait) {
  .lay-lokal { flex-direction: column; }
  .lay-lokal .k-bereich { flex: 1 1 52%; }
  .lay-lokal .w-bereich { max-width: none; border-left: 0; border-top: 4px solid #2a2f3d; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); flex: 1 1 48%; }
  .lay-lokal .w-kopf { grid-column: 1 / -1; }
}

/* Wirbelwind-Anzeige */
.k-hud { position: absolute; left: 0; right: 0; top: 0; padding: 8px 10px; pointer-events: none; z-index: 3; }
.h-oben { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.h-links, .h-rechts { display: flex; align-items: center; gap: 8px; pointer-events: auto; }
.h-links { flex-direction: column; align-items: flex-start; gap: 4px; }
.h-herzen { display: flex; gap: 2px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)); }
.h-sterne { display: flex; align-items: center; gap: 4px; background: rgba(0,0,0,0.45); color: #fff; font-weight: 700; border-radius: 20px; padding: 2px 10px 2px 4px; }
.h-level { color: #fff; background: rgba(0,0,0,0.4); border-radius: 12px; padding: 3px 10px; font-weight: 600; font-size: 0.85rem; text-align: center; }
.h-w { display: flex; flex-direction: column; align-items: center; color: #fff; font-size: 0.75rem; text-shadow: 0 1px 2px #000; }
.h-w .ico { border-radius: 50%; border: 3px solid #fff; background: #fff3d6; }
.h-knoepfe { display: flex; gap: 6px; }
.h-knopf {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; min-width: 44px; padding: 4px 10px; border-radius: 12px; border: 2px solid rgba(255,255,255,0.7);
  background: rgba(20,24,40,0.65); color: #fff; font-weight: 700; cursor: pointer; justify-content: center;
}
.w-kopf .h-knopf { background: #fff; color: var(--tinte); border-color: var(--rand); }
.h-zeichen { background: rgba(31,95,191,0.85); }
.h-ruf { position: absolute; right: 10px; top: 70px; display: flex; flex-direction: column; gap: 6px; pointer-events: auto; }
.sig {
  display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 12px; border-radius: 14px; border: 0; color: #fff; font-weight: 700; cursor: pointer;
  box-shadow: 0 3px 0 rgba(0,0,0,0.25); text-align: left;
}
.sig:active { transform: translateY(2px); box-shadow: none; }
.k-steuer { position: absolute; left: 0; right: 0; bottom: 0; display: none; justify-content: space-between; align-items: flex-end; padding: 0 12px calc(12px + env(safe-area-inset-bottom)); pointer-events: none; z-index: 3; }
html.touch .k-steuer { display: flex; }
.tk-links, .tk-rechts, .tk-leiter { display: flex; gap: 12px; pointer-events: auto; }
.tk-leiter { flex-direction: column; visibility: hidden; margin-right: auto; margin-left: 10px; }
.tk-leiter.sichtbar { visibility: visible; }
.tk {
  width: 76px; height: 76px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.75); background: rgba(20,24,40,0.45); color: #fff;
  font-size: 1.7rem; font-weight: 800; display: grid; place-items: center; touch-action: none;
}
.tk.an { background: rgba(240,138,36,0.75); }
.tk-sprung { width: 96px; height: 96px; font-size: 1.15rem; background: rgba(47,154,85,0.55); }
.tk-hoch, .tk-runter { width: 60px; height: 60px; font-size: 1.3rem; }
.k-zuschauer { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.55); color: #fff; padding: 6px 12px; border-radius: 12px; font-size: 0.9rem; z-index: 3; }
.zp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fffaf0; color: var(--tinte); border-radius: 18px; padding: 14px; z-index: 6; box-shadow: 0 10px 40px rgba(0,0,0,0.5); text-align: center; width: min(420px, 94%); }
.zp p { margin: 0 0 8px; font-weight: 600; }
.zp-anzeige { display: flex; justify-content: center; gap: 8px; min-height: 48px; margin-bottom: 8px; }
.zp-leer { width: 40px; height: 40px; display: grid; place-items: center; border: 2px dashed var(--rand); border-radius: 8px; color: var(--tinte-2); font-weight: 700; }
.zp-raster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.zp-sym { background: #fff; border: 2px solid var(--rand); border-radius: 12px; padding: 6px; cursor: pointer; }

/* Weitblick-Kopf */
.w-kopf { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: #fff; border-bottom: 2px solid var(--rand); min-width: 0; }
.wk-kind { display: flex; align-items: center; gap: 8px; }
.wk-kind .ico { border-radius: 50%; border: 2px solid var(--orange); }
.wk-herzen { display: flex; gap: 1px; }
.wk-mitte { flex: 1; min-width: 0; }
.wk-titel { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-werte { display: flex; align-items: center; gap: 4px; font-size: 0.92rem; color: var(--tinte-2); flex-wrap: wrap; }
.kk-leiste { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; gap: 6px; align-items: center; pointer-events: none; }
.kk { pointer-events: auto; min-height: 40px; padding: 4px 12px; border-radius: 12px; border: 2px solid var(--rand); background: rgba(255,255,255,0.92); font-weight: 700; cursor: pointer; }
.lay-lokal .k-tipp { display: none; }
.k-tipp { pointer-events: none; font-size: 0.78rem; color: #fff; text-shadow: 0 1px 2px #000; line-height: 1.2; }

/* Schaltpult */
.w-pult { padding: 10px; min-height: 0; }
.pk-stationen { display: grid; gap: 10px; margin-bottom: 10px; }
.pk-leer { color: var(--tinte-2); background: #fff; border-radius: 12px; padding: 10px; margin: 0; }
.pk-karte { background: #fff; border: 2px solid var(--rand); border-radius: 16px; padding: 10px 12px; }
.pk-karte.gebraucht { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(240,138,36,0.25); animation: gebraucht 1.2s infinite; }
html.ruhig .pk-karte.gebraucht { animation: none; }
@keyframes gebraucht { 50% { box-shadow: 0 0 0 7px rgba(240,138,36,0.35); } }
.pk-kopf { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-bottom: 6px; }
.pk-kopf b { font-size: 1.15rem; }
.pk-jetzt { background: var(--orange); color: #fff; font-weight: 700; border-radius: 10px; padding: 2px 8px; font-size: 0.85rem; }
.pk-karte p { margin: 4px 0 8px; }
.pk-karte .knopf { width: 100%; }
.pk-reihe { display: flex; gap: 8px; }
.pk-reihe .knopf { flex: 1; }
.pk-zustand { margin-top: 6px; font-weight: 600; color: var(--tinte-2); text-align: center; }
.pk-gut { color: var(--gruen); font-weight: 700; }
.pk-raeder { display: flex; justify-content: center; gap: 10px; }
.rad { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rad-k { width: 64px; min-height: 40px; border-radius: 10px; border: 2px solid var(--rand); background: #f4ecdb; font-size: 1.1rem; cursor: pointer; }
.rad-sym { width: 76px; padding: 6px 2px; border-radius: 14px; border: 3px solid var(--blau); background: #fff; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.rad-sym small { font-size: 0.75rem; font-weight: 600; }
.pk-zeichen { margin-top: 8px; display: flex; align-items: center; gap: 6px; background: #eef5ff; border-radius: 10px; padding: 6px 8px; font-weight: 600; }
.pk-folge { display: flex; gap: 8px; justify-content: center; margin-bottom: 8px; }
.folge { display: flex; flex-direction: column; align-items: center; background: #f6efe0; border-radius: 12px; padding: 6px 8px; border: 2px solid var(--rand); }
.folge.erledigt { background: #ddf5e4; border-color: var(--gruen); }
.folge small { font-weight: 600; font-size: 0.78rem; }
.pk-gruppe h3 { margin: 6px 2px; font-size: 1rem; color: var(--tinte-2); }
.pk-helfer { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.helfer {
  position: relative; display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 6px 10px; border-radius: 14px; border: 2px solid var(--rand); background: #fff; font-weight: 700; cursor: pointer; overflow: hidden;
}
.helfer::after { content: ''; position: absolute; left: 0; bottom: 0; height: 5px; width: var(--cd, 0%); background: var(--orange); }
.helfer:disabled { opacity: 0.55; cursor: default; }
.helfer .cd { position: absolute; right: 8px; top: 4px; font-style: normal; font-size: 0.75rem; color: var(--tinte-2); }
.pk-signale { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pk-signale .sig { flex-direction: column; gap: 2px; justify-content: center; text-align: center; font-size: 0.88rem; min-height: 64px; }
.lay-lokal .pk-signale { grid-template-columns: repeat(6, 1fr); }
.lay-lokal .pk-signale .sig span { display: none; }
.lay-lokal .pk-helfer { grid-template-columns: repeat(4, 1fr); }
.lay-lokal .helfer span { display: none; }
.lay-lokal .helfer { justify-content: center; }

/* Zeichen-Blase */
.blase {
  position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 10px;
  background: #fffaf0; color: var(--tinte); border-radius: 22px; padding: 8px 16px 8px 8px; box-shadow: 0 8px 30px rgba(0,0,0,0.45); border: 3px solid var(--orange); max-width: 94vw;
}
.blase[hidden] { display: none; }
.blase .ico { border-radius: 50%; }
.blase.neu { animation: blase 0.45s cubic-bezier(.2,1.6,.4,1); }
html.ruhig .blase.neu { animation: none; }
@keyframes blase { from { transform: translateX(-50%) scale(0.5); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
.bl-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; }
.bl-inhalt { display: flex; flex-direction: column; line-height: 1.15; }
.bl-inhalt b { font-size: 1.3rem; }
.bl-syms { display: flex; gap: 6px; margin-top: 4px; }
.quittung { position: absolute; left: 50%; top: 40%; transform: translateX(-50%); background: rgba(0,0,0,0.75); color: #fff; padding: 8px 14px; border-radius: 12px; z-index: 20; font-weight: 600; }

/* Einblendungen */
.ov-ebene { position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; pointer-events: none; padding: 10px; }
.ov-ebene:empty { display: none; }
.ov-ebene::before { content: ''; position: absolute; inset: 0; background: rgba(12, 14, 26, 0.55); }
.ov-box {
  position: relative; pointer-events: auto; background: var(--papier-2); color: var(--tinte); border-radius: 22px; padding: 18px 22px; max-width: 680px; width: 100%;
  max-height: 96%; overflow: auto; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.ov-box h2 { margin: 0.2em 0; font-size: 1.7rem; }
.ov-era { font-weight: 700; color: #b8560f; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem; }
.ov-text { font-size: 1.1rem; }
.ov-tipps { display: grid; gap: 8px; text-align: left; margin: 10px 0 14px; }
.tipp { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 12px; padding: 8px 10px; border: 1px solid #eadfca; }
.tipp .ico { border-radius: 50%; }
.tipp-w { border-left: 5px solid var(--blau); } .tipp-k { border-left: 5px solid var(--orange); }
.ov-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }
.ov-klein { font-size: 0.88rem; color: var(--tinte-2); margin-bottom: 0; }
.feuer-kopf { font-weight: 700; color: var(--tinte-2); margin: 8px 0 0; }
.feuer-frage { font: 700 1.55rem/1.3 var(--display); margin: 6px 0 12px; }
.ov-feuer { background: linear-gradient(180deg, #fff3dc, #fffaf0); border: 4px solid #f0a040; }
.zwei { display: inline-flex; gap: 6px; }
.vorlesen { margin-top: 10px; border: 0; background: transparent; color: var(--blau); font-weight: 700; cursor: pointer; text-decoration: underline; min-height: 40px; }
.truhe-wer { font-weight: 700; color: var(--blau); margin: 4px 0; }
.truhe-frage { font: 700 1.4rem/1.3 var(--display); margin: 6px 0 12px; }
.antworten { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .antworten { grid-template-columns: 1fr; } }
.antwort {
  display: flex; align-items: center; gap: 10px; text-align: left; min-height: 64px; padding: 8px 12px; border-radius: 14px; border: 3px solid var(--rand); background: #fff; font-size: 1.08rem; font-weight: 600; cursor: pointer;
}
.antwort b { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #e9f0ff; color: var(--blau); }
.antwort:disabled { cursor: default; }
.antwort.falsch { opacity: 0.45; border-color: var(--rot); text-decoration: line-through; }
.antwort.richtig { border-color: var(--gruen); background: #ddf5e4; opacity: 1; }
.truhe-hinweis { color: var(--rot); font-weight: 700; }
.truhe-erklaerung { font-size: 1.1rem; background: #fff; border-radius: 12px; padding: 10px 12px; border-left: 5px solid var(--gruen); text-align: left; }
.sterne3 { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.st { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fff; border-radius: 12px; padding: 8px 10px; border: 2px solid var(--rand); min-width: 120px; opacity: 0.6; }
.st.an { opacity: 1; border-color: var(--gold); }
.st span { font-size: 0.85rem; font-weight: 600; }
.schatz-info { display: flex; gap: 12px; text-align: left; background: #fff; border-radius: 14px; padding: 10px 12px; border-left: 5px solid #2fbf8a; margin: 10px 0; }
.schatz-info p { margin: 4px 0; }
.ico.dreh { animation: dreh 6s linear infinite; }
html.ruhig .ico.dreh { animation: none; }
@keyframes dreh { to { transform: rotate(360deg); } }

.netz-banner { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); background: #b8560f; color: #fff; padding: 10px 16px; border-radius: 14px; z-index: 9500; font-weight: 700; max-width: 94vw; text-align: center; box-shadow: var(--schatten); }
.ende { text-align: center; }
.urkunde { width: 100%; max-width: 900px; height: auto; border-radius: 10px; box-shadow: var(--schatten); }

@media (max-width: 640px) {
  :root { font-size: 17px; }
  html.gross { font-size: 20px; }
  .menu { padding-top: 62px; }
  .code-gross span { width: 54px; height: 66px; font-size: 2.2rem; }
  .tk { width: 66px; height: 66px; }
  .tk-sprung { width: 84px; height: 84px; }
}
@media (max-height: 460px) {
  .tk { width: 62px; height: 62px; }
  .tk-sprung { width: 80px; height: 80px; }
  .h-w .ico { width: 36px; height: 36px; }
  .ov-box { padding: 10px 16px; }
  .ov-box h2 { font-size: 1.35rem; }
  .feuer-frage { font-size: 1.25rem; }
}
