/* Aufnahmeassistent — Erscheinungsbild „Aurora“ mit Effekten aus „Pulse“.
   Dunkler Grund, Milchglas über bewegtem Polarlicht, Verläufe Cyan→Violett, Neon-Akzente. */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/static/schriften/space-grotesk-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/static/schriften/space-grotesk-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/static/schriften/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }

:root {
  --bg: #06070c; --bg-2: #0b0d17; --glass: rgba(17, 19, 31, .58); --glass-2: rgba(25, 28, 44, .62);
  --hair: rgba(255, 255, 255, .08); --hair-2: rgba(255, 255, 255, .05);
  --ink: #eef1f8; --ink-2: #b9c0d4; --ink-3: #7f879c; --ink-4: #596075;
  --cyan: #5de4ff; --violet: #a78bfa; --magenta: #ff2e97; --green: #54e6b3; --amber: #ffc56b; --red: #ff6b7a;
  --verlauf: linear-gradient(100deg, var(--cyan), var(--violet));
  --radius: 18px; --ease: cubic-bezier(.2, .8, .2, 1);
  --schrift: "Space Grotesk", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; font-family: var(--schrift); color: var(--ink); background: var(--bg); line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
[hidden] { display: none !important; }

/* ---------- Hintergrund: Aurora + Raster ---------- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora .blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.aurora .b1 { width: 60vw; height: 60vw; left: -18vw; top: -22vw;
  background: radial-gradient(circle, rgba(93, 228, 255, .55), transparent 65%); animation: drift1 22s ease-in-out infinite alternate; }
.aurora .b2 { width: 55vw; height: 55vw; right: -16vw; top: 6vh;
  background: radial-gradient(circle, rgba(167, 139, 250, .55), transparent 65%); animation: drift2 26s ease-in-out infinite alternate; }
.aurora .b3 { width: 48vw; height: 48vw; left: 22vw; bottom: -26vw;
  background: radial-gradient(circle, rgba(255, 46, 151, .35), transparent 65%); animation: drift3 30s ease-in-out infinite alternate; }
.raster { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(93, 228, 255, .05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(93, 228, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%); }
@keyframes drift1 { to { transform: translate3d(8vw, 6vh, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-7vw, 9vh, 0) scale(.92); } }
@keyframes drift3 { to { transform: translate3d(6vw, -7vh, 0) scale(1.15); opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .aurora .blob, .folie *, .frage-karte * { animation: none !important; transition: none !important; } }

/* ---------- Kopfleiste ---------- */
header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1.4rem; padding: .8rem 1.6rem;
  background: rgba(6, 7, 12, .55); backdrop-filter: blur(16px); border-bottom: 1px solid var(--hair); flex-wrap: wrap; }
.marke { display: flex; align-items: center; gap: .6rem; font-weight: 600; letter-spacing: .01em; }
.marke svg { width: 26px; height: 26px; color: var(--cyan); filter: drop-shadow(0 0 8px rgba(93, 228, 255, .6)); }
.hinweis-proto { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan); border: 1px solid rgba(93, 228, 255, .35); border-radius: 6px; padding: .1rem .45rem; }
nav { display: flex; gap: .3rem; flex: 1; flex-wrap: wrap; }
nav a { color: var(--ink-2); text-decoration: none; padding: .35rem .75rem; border-radius: 10px; font-size: .95rem;
  transition: background .2s, color .2s; }
nav a:hover, nav a.aktiv { color: var(--ink); background: rgba(255, 255, 255, .06); }
nav a.aktiv { box-shadow: inset 0 -2px 0 var(--cyan); }
nav .rechts { margin-left: auto; color: var(--ink-3); }

main { max-width: 52rem; margin: 2rem auto 4rem; padding: 0 1.2rem; }
main.breit { max-width: 84rem; }
h1 { font-size: 1.9rem; font-weight: 600; letter-spacing: -.01em; margin: .2rem 0 1rem; }
h2 { font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .9rem; }
h3 { font-size: 1.05rem; margin: 1.4rem 0 .6rem; }
a { color: var(--cyan); }
.klein { font-size: .86rem; color: var(--ink-3); }
.leer { color: var(--ink-3); }
.fehler { color: var(--red); }
code, .mono { font-family: var(--mono); font-size: .86em; }
code { background: rgba(255, 255, 255, .06); padding: .15rem .4rem; border-radius: 6px; word-break: break-all; }

/* ---------- Karten, Formulare, Knöpfe ---------- */
.karte { position: relative; background: var(--glass); backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--hair); border-radius: var(--radius); padding: 1.3rem 1.4rem; margin-bottom: 1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .04); }
.karte.schmal { max-width: 26rem; margin: 6vh auto; }
.karte.gefahr { border-color: rgba(255, 107, 122, .25); }
.karte.erfolg { border-color: rgba(84, 230, 179, .35); box-shadow: 0 0 0 1px rgba(84, 230, 179, .1), 0 20px 50px rgba(0, 0, 0, .35); }
label { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .9rem; }
label.zeile { display: flex; gap: .55rem; align-items: flex-start; text-transform: none; letter-spacing: 0; font-size: .92rem; color: var(--ink-2); }
input, select, textarea { display: block; width: 100%; margin-top: .35rem; padding: .65rem .8rem; font: inherit; font-size: .95rem;
  letter-spacing: 0; text-transform: none; color: var(--ink); background: rgba(8, 9, 16, .7); border: 1px solid var(--hair);
  border-radius: 11px; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(93, 228, 255, .5); box-shadow: 0 0 0 3px rgba(93, 228, 255, .12); }
select option { background: var(--bg-2); }
input[type=checkbox] { width: auto; margin-top: .25rem; accent-color: var(--cyan); }
textarea.code { font-family: var(--mono); font-size: .85rem; line-height: 1.55; min-height: 60vh; tab-size: 2; white-space: pre; }
button, .knopf { font: inherit; font-weight: 600; border: 0; border-radius: 12px; padding: .62rem 1.1rem; cursor: pointer;
  color: #071018; background: var(--verlauf); text-decoration: none; display: inline-flex; align-items: center; gap: .5rem;
  box-shadow: 0 8px 26px rgba(93, 228, 255, .22); transition: transform .2s var(--ease), box-shadow .2s, filter .2s; }
button:hover, .knopf:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(167, 139, 250, .3); }
button:disabled { opacity: .45; cursor: default; transform: none; }
button.zweitrangig, .knopf.zweitrangig { color: var(--cyan); background: rgba(93, 228, 255, .08); box-shadow: inset 0 0 0 1px rgba(93, 228, 255, .25); }
button.link { background: none; box-shadow: none; color: var(--cyan); padding: 0; font-weight: 500; }
button.gefahr { color: #fff; background: linear-gradient(100deg, #ff4d6d, var(--magenta)); box-shadow: 0 8px 26px rgba(255, 46, 151, .25); }
form.inline { display: inline; }
.zeile-form { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; }
.zeile-form label { flex: 1; min-width: 12rem; margin: 0; }
.knoepfe { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: .9rem; }

/* ---------- Listen ---------- */
.tabelle { overflow-x: auto; }
table.liste { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--glass); backdrop-filter: blur(18px);
  border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; }
table.liste th, table.liste td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--hair-2); vertical-align: top; }
table.liste th { font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); background: rgba(255, 255, 255, .02); }
table.liste tbody tr { cursor: pointer; transition: background .2s; }
table.liste tbody tr:hover { background: rgba(93, 228, 255, .05); }
table.liste tr.inaktiv { color: var(--ink-4); }
td.zahl { text-align: right; font-family: var(--mono); }
.filterleiste { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.filter { padding: .35rem .85rem; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: .88rem;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--hair); }
.filter.aktiv { color: #071018; background: var(--verlauf); border-color: transparent; }
.status { font-family: var(--mono); font-size: .74rem; padding: .18rem .6rem; border-radius: 999px; white-space: nowrap; border: 1px solid; }
.s-neu { color: var(--cyan); border-color: rgba(93, 228, 255, .35); background: rgba(93, 228, 255, .07); }
.s-in_pruefung { color: var(--amber); border-color: rgba(255, 197, 107, .35); background: rgba(255, 197, 107, .07); }
.s-rueckfragen { color: var(--magenta); border-color: rgba(255, 46, 151, .35); background: rgba(255, 46, 151, .07); }
.s-erledigt { color: var(--green); border-color: rgba(84, 230, 179, .35); background: rgba(84, 230, 179, .07); }
.kopfzeile { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .8rem; margin-bottom: 1.2rem; }
.kennzahl { padding: 1rem 1.2rem; margin: 0; }
.kennzahl .wert { font-size: 1.9rem; font-weight: 600; }
.kennzahl .wert.cyan { color: var(--cyan); text-shadow: 0 0 18px rgba(93, 228, 255, .4); }

/* ---------- Detail ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 23rem; gap: 1.1rem; align-items: start; }
.detail iframe { width: 100%; height: calc(100vh - 10rem); border: 1px solid var(--hair); border-radius: var(--radius); background: #fff; }
.kommentare { list-style: none; padding: 0; margin: 0 0 .9rem; }
.kommentare li { border-bottom: 1px solid var(--hair-2); padding: .6rem 0; }
.kommentare .kopf { font-family: var(--mono); font-size: .74rem; color: var(--ink-3); display: flex; justify-content: space-between; }
.kommentare .text { white-space: pre-wrap; color: var(--ink-2); }
audio { width: 100%; height: 34px; margin-top: .4rem; filter: invert(.9) hue-rotate(180deg); }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } .detail iframe { height: 72vh; } }

/* ---------- Katalog ---------- */
.baum { list-style: none; margin: 0; padding-left: 1.1rem; border-left: 1px dashed var(--hair); }
.baum li { margin: .35rem 0; }
.baum .typ { font-family: var(--mono); font-size: .72rem; color: var(--violet); margin-left: .4rem; }
.baum .wenn { font-family: var(--mono); font-size: .72rem; color: var(--amber); margin-left: .4rem; }
.baum .id { font-family: var(--mono); font-size: .75rem; color: var(--ink-4); margin-right: .4rem; }
.meldung { padding: .8rem 1rem; border-radius: 12px; white-space: pre-wrap; font-family: var(--mono); font-size: .82rem; }
.meldung.gut { background: rgba(84, 230, 179, .08); color: var(--green); border: 1px solid rgba(84, 230, 179, .3); }
.meldung.schlecht { background: rgba(255, 107, 122, .08); color: var(--red); border: 1px solid rgba(255, 107, 122, .3); }

/* ================= Gesprächsbühne (Interessent) ================= */
body.buehne-seite main { max-width: 78rem; margin: 1.2rem auto 2rem; }
.buehne { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto;
  gap: 1.2rem; min-height: calc(100vh - 8rem); }
.schiene { grid-column: 1 / -1; display: flex; gap: .4rem; align-items: center; }
.schiene .seg { flex: 1; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .07); position: relative; overflow: hidden; }
.schiene .seg.fertig { background: linear-gradient(90deg, rgba(93, 228, 255, .55), rgba(167, 139, 250, .55)); }
.schiene .seg.aktuell { background: rgba(255, 255, 255, .1); box-shadow: 0 0 14px rgba(93, 228, 255, .35); }
.schiene .seg.aktuell::after { content: ""; position: absolute; inset: 0; width: var(--anteil, 30%);
  background: var(--verlauf); border-radius: inherit; transition: width .6s var(--ease); }
.schiene .zaehler { font-family: var(--mono); font-size: .78rem; color: var(--ink-3); margin-left: .6rem; white-space: nowrap; }

/* Folie: Inhalte zum aktuellen Thema */
.folie { position: relative; padding: 2.4rem 2.4rem 2rem; overflow: hidden; display: flex; flex-direction: column; justify-content: center; min-height: 26rem; }
.folie::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(93, 228, 255, .45), transparent 35%, transparent 65%, rgba(255, 46, 151, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.folie .symbol { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 1.4rem;
  background: rgba(93, 228, 255, .08); border: 1px solid rgba(93, 228, 255, .3); color: var(--cyan);
  box-shadow: 0 0 34px rgba(93, 228, 255, .25); }
.folie .symbol svg { width: 32px; height: 32px; }
.folie .kicker { font-family: var(--mono); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); }
.folie h1 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.12; margin: .5rem 0 .7rem; letter-spacing: -.02em;
  background: linear-gradient(100deg, #fff 30%, #cfe9ff 60%, #d9ccff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.folie .unter { color: var(--ink-2); font-size: 1.08rem; max-width: 34rem; margin: 0 0 1.4rem; }
.folie .punkte { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.folie .punkte li { display: flex; gap: .8rem; align-items: flex-start; padding: .75rem .95rem; border-radius: 14px;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--hair-2); color: var(--ink-2); }
.folie .punkte li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .55rem; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.folie.wechsel > * { animation: ignite .7s var(--ease) both; }
.folie.wechsel > .symbol { animation: markIn .7s var(--ease) both; }
.folie.wechsel .punkte li { animation: rise .6s var(--ease) both; }
.folie.wechsel .punkte li:nth-child(1) { animation-delay: .25s; }
.folie.wechsel .punkte li:nth-child(2) { animation-delay: .38s; }
.folie.wechsel .punkte li:nth-child(3) { animation-delay: .51s; }
.folie.wechsel .punkte li:nth-child(4) { animation-delay: .64s; }
.folie .sweep { position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); transform: skewX(-18deg); }
.folie.wechsel .sweep { animation: sweep 1.4s var(--ease) .1s both; }
@keyframes ignite { from { opacity: 0; filter: blur(8px); transform: translateY(10px) scale(.98); } to { opacity: 1; filter: none; transform: none; } }
@keyframes markIn { from { opacity: 0; transform: scale(.75) rotate(-10deg); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sweep { 0% { left: -60%; opacity: 0; } 15% { opacity: 1; } 100% { left: 130%; opacity: 0; } }

/* Fragekarte */
.frage-karte { display: flex; flex-direction: column; padding: 1.8rem; margin: 0; }
.frage-karte .etikett { font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3);
  display: flex; align-items: center; gap: .6rem; }
.frage-karte h2.frage { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -.01em; text-transform: none; color: var(--ink);
  font-weight: 600; line-height: 1.3; margin: .8rem 0 1rem; }
.frage-karte h2.frage.neu { animation: rise .55s var(--ease) both; }
.optionen-chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.optionen-chips span, .optionen-chips .chip { padding: .45rem .95rem; border-radius: 999px; font-size: .95rem; font-weight: 500;
  color: var(--ink); background: rgba(167, 139, 250, .1); border: 1px solid rgba(167, 139, 250, .35); box-shadow: none;
  animation: rise .5s var(--ease) both; cursor: pointer; transition: background .2s, border-color .2s, transform .15s; }
.optionen-chips .chip:hover { background: rgba(167, 139, 250, .22); border-color: rgba(167, 139, 250, .7); transform: translateY(-1px); }
.optionen-chips .chip.gewaehlt { color: #071018; background: var(--verlauf); border-color: transparent; }
.optionen-chips .chip:disabled:not(.gewaehlt) { opacity: .4; }
.optionen-chips .chip.stimmt { color: #071018; background: linear-gradient(100deg, var(--green), var(--cyan)); border-color: transparent; }
.kontrolle { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 0 0 .6rem;
  padding: .9rem 1rem; border-radius: 14px; background: rgba(84, 230, 179, .06); border: 1px solid rgba(84, 230, 179, .25); }
.kontrolle dt { color: var(--ink-3); font-size: .9rem; } .kontrolle dd { margin: 0; font-weight: 600; }
.hilfe { margin-top: auto; padding: 1rem 1.1rem; border-radius: 14px; background: rgba(93, 228, 255, .06);
  border: 1px solid rgba(93, 228, 255, .22); color: var(--ink-2); animation: rise .5s var(--ease) both; }
.hilfe strong { display: flex; align-items: center; gap: .45rem; color: var(--cyan); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.hilfe p { margin: .4rem 0 0; }
.freiwillig { font-family: var(--mono); font-size: .74rem; color: var(--green); }
.zurueck { margin-left: auto; font: inherit; font-family: var(--schrift); font-size: .82rem; letter-spacing: 0; text-transform: none;
  font-weight: 500; padding: .3rem .75rem; border-radius: 999px; color: var(--ink-2); background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px var(--hair); }
.zurueck:hover { color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(93, 228, 255, .4); transform: none; }

/* Stimme: Pulslinie + Status */
.stimme { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem; align-items: center; padding: .9rem 1.2rem; margin: 0; }
.stimme canvas { width: 100%; height: 64px; display: block; }
.status-anzeige { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: var(--ink-2); min-width: 15rem; }
.punkt { width: 11px; height: 11px; border-radius: 50%; background: var(--ink-4); flex: none; }
.zustand-hoert .punkt { background: var(--magenta); animation: led 1.4s infinite; --led: 255, 46, 151; }
.zustand-spricht .punkt { background: var(--cyan); animation: led 1s infinite; --led: 93, 228, 255; }
.zustand-denkt .punkt { background: var(--amber); animation: blink 1s infinite; }
@keyframes led { 0% { box-shadow: 0 0 0 0 rgba(var(--led), .6), 0 0 10px rgba(var(--led), .9); }
  70% { box-shadow: 0 0 0 10px rgba(var(--led), 0), 0 0 10px rgba(var(--led), .9); } 100% { box-shadow: 0 0 0 0 rgba(var(--led), 0); } }
@keyframes blink { 50% { opacity: .35; } }

/* Start-Knopf als leuchtende Kugel */
.start-kugel { width: 64px; height: 64px; border-radius: 50%; padding: 0; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #b8f3ff, var(--cyan) 40%, var(--violet) 100%);
  box-shadow: 0 0 0 0 rgba(93, 228, 255, .5), 0 0 40px rgba(93, 228, 255, .45); animation: kugel 2.4s infinite; }
.start-kugel svg { width: 26px; height: 26px; color: #071018; }
.start-kugel.laeuft { background: rgba(255, 107, 122, .12); box-shadow: inset 0 0 0 1px rgba(255, 107, 122, .5); animation: none; }
.start-kugel.laeuft svg { color: var(--red); }
@keyframes kugel { 0% { box-shadow: 0 0 0 0 rgba(93, 228, 255, .45), 0 0 40px rgba(93, 228, 255, .45); }
  70% { box-shadow: 0 0 0 18px rgba(93, 228, 255, 0), 0 0 40px rgba(93, 228, 255, .45); } 100% { box-shadow: 0 0 0 0 rgba(93, 228, 255, 0), 0 0 40px rgba(93, 228, 255, .45); } }

.test-optionen { grid-column: 1 / -1; margin: 0; }
.test-optionen summary { cursor: pointer; color: var(--ink-3); font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.test-optionen .raster-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 1rem; margin-top: 1rem; }
.verlauf { grid-column: 1 / -1; margin: 0; }
.verlauf summary { cursor: pointer; color: var(--ink-3); font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.verlauf ol { list-style: none; padding: 0; margin: .8rem 0 0; max-height: 18rem; overflow: auto; }
.verlauf li { padding: .4rem 0; border-bottom: 1px solid var(--hair-2); font-size: .93rem; color: var(--ink-2); }
.verlauf .wer { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin-right: .5rem; }
.verlauf .wer.a { color: var(--cyan); } .verlauf .wer.n { color: var(--magenta); }
.datenschutz { grid-column: 1 / -1; text-align: center; }
@media (max-width: 900px) {
  .buehne { grid-template-columns: 1fr; min-height: 0; }
  .folie { min-height: 0; padding: 1.6rem; }
  .stimme { grid-template-columns: auto 1fr; } .stimme .status-anzeige { grid-column: 1 / -1; min-width: 0; }
}

/* ================= Handy: Wichtiges oben, Bedienung unten fest, kein Suchen ================= */
.folie-mehr, .hilfe-mehr { display: none; }
@media (max-width: 760px) {
  header { padding: .55rem .9rem; gap: .6rem; flex-wrap: nowrap; }
  .marke { font-size: .95rem; white-space: nowrap; }
  .hinweis-proto { display: none; }
  nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
  nav::-webkit-scrollbar { display: none; }
  nav a { white-space: nowrap; font-size: .88rem; padding: .3rem .55rem; }
  nav .rechts { margin-left: 0; }
  main, main.breit { margin: 1rem auto 2rem; padding: 0 .8rem; }
  h1 { font-size: 1.45rem; }
  .karte { padding: 1rem; border-radius: 15px; }
  .kennzahlen { grid-template-columns: repeat(2, 1fr); }
  .kennzahl .wert { font-size: 1.5rem; }
  table.liste th, table.liste td { padding: .6rem .7rem; font-size: .9rem; }

  /* Gesprächsbühne */
  body.buehne-seite main { margin: .6rem auto 0; padding: 0 .7rem calc(96px + env(safe-area-inset-bottom)); }
  .buehne { display: flex; flex-direction: column; gap: .7rem; min-height: 0; }
  .schiene { order: 0; gap: .25rem; }
  .schiene .seg { height: 4px; }
  .schiene .zaehler { font-size: .7rem; margin-left: .4rem; }

  .folie { order: 1; min-height: 0; padding: .8rem .9rem; display: grid; grid-template-columns: auto 1fr auto;
    column-gap: .75rem; align-items: center; }
  .folie .symbol { grid-row: 1 / span 2; width: 42px; height: 42px; border-radius: 12px; margin: 0; }
  .folie .symbol svg { width: 22px; height: 22px; }
  .folie .kicker { grid-column: 2; font-size: .62rem; letter-spacing: .16em; }
  .folie h1 { grid-column: 2 / -1; font-size: 1.12rem; margin: .1rem 0 0; line-height: 1.2; }
  .folie .unter { grid-column: 1 / -1; font-size: .88rem; margin: .55rem 0 0; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .folie .punkte { grid-column: 1 / -1; display: none; margin-top: .6rem; gap: .45rem; }
  .folie .punkte li { padding: .5rem .7rem; font-size: .88rem; }
  .folie.offen .punkte { display: grid; }
  .folie.offen .unter { -webkit-line-clamp: unset; }
  .folie-mehr { display: inline-flex; grid-column: 3; grid-row: 1; justify-self: end; font-size: .72rem; padding: .25rem .6rem;
    border-radius: 999px; color: var(--cyan); background: rgba(93, 228, 255, .08); box-shadow: inset 0 0 0 1px rgba(93, 228, 255, .3); }
  .folie-mehr:empty { display: none; }

  .frage-karte { order: 2; padding: 1rem 1rem 1.1rem; }
  .frage-karte h2.frage { font-size: 1.28rem; margin: .5rem 0 .8rem; }
  .optionen-chips span, .optionen-chips .chip { font-size: .98rem; padding: .55rem 1rem; }
  .kontrolle { grid-template-columns: 1fr; gap: .1rem; } .kontrolle dd { margin-bottom: .45rem; }
  .hilfe { padding: .75rem .85rem; font-size: .92rem; }
  .hilfe p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hilfe.offen p { -webkit-line-clamp: unset; }
  .hilfe-mehr { display: inline; background: none; box-shadow: none; padding: 0; margin-top: .35rem; font-size: .82rem;
    font-weight: 500; color: var(--cyan); }

  /* Bedienung immer erreichbar am unteren Rand */
  .stimme { order: 9; position: fixed; left: .6rem; right: .6rem; bottom: calc(.6rem + env(safe-area-inset-bottom));
    z-index: 20; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: .2rem .8rem; padding: .6rem .8rem;
    background: rgba(12, 14, 24, .82); backdrop-filter: blur(20px); box-shadow: 0 -10px 40px rgba(0, 0, 0, .45); }
  .stimme .start-kugel { grid-row: 1 / span 2; width: 56px; height: 56px; }
  .stimme canvas { height: 34px; }
  .stimme .status-anzeige { grid-column: 2; min-width: 0; font-size: .82rem; }
  .test-optionen, .verlauf, .datenschutz { order: 10; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .folie .unter { display: none; }
  .frage-karte h2.frage { font-size: 1.15rem; }
}
