/* Mensch oder Maschine? — Neurawork-Look (Website: Navy #293052, Cyan #15b5e0, Pink #f584d3, Inter) */
:root {
  --navy: #293052;
  --navy-deep: #101618;
  --navy-soft: #343c66;
  --cyan: #15b5e0;
  --cyan-light: #5fd5ff;
  --pink: #f584d3;
  --pink-strong: #f956f9;
  --white: #ffffff;
  --grey: #c9c9c9;
  --ok: #3ddc97;
  --warn: #ffb02e;
  --bg: var(--navy-deep);
  --panel: #1a2140;
  --text: #f4f6fb;
  --muted: #a9b1cc;
  --radius: 18px;
  --font: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Roboto Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-text-size-adjust: 100%; }
body { min-height: 100dvh; display: flex; flex-direction: column; }
a { color: var(--cyan-light); }
button { font-family: inherit; font-size: 1rem; cursor: pointer; border: 0; border-radius: var(--radius); }
button:disabled { opacity: .45; cursor: default; }
input, textarea, select { font-family: inherit; font-size: 1rem; color: var(--text); background: var(--panel); border: 1px solid var(--navy-soft); border-radius: 12px; padding: .8rem 1rem; width: 100%; }
textarea { min-height: 6rem; resize: vertical; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.pill { display: inline-block; padding: .2rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--navy-soft); color: var(--text); }
.pill.cyan { background: var(--cyan); color: var(--navy-deep); }
.pill.pink { background: var(--pink); color: var(--navy-deep); }
.pill.ok { background: var(--ok); color: var(--navy-deep); }

/* ---------- Kopf/Fuß ---------- */
header.top { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1rem; background: linear-gradient(90deg, var(--navy) 0%, var(--navy-deep) 100%); border-bottom: 1px solid var(--navy-soft); }
header.top .brand { font-weight: 800; letter-spacing: .02em; }
header.top .brand span { color: var(--cyan-light); }
footer.bottom { margin-top: auto; padding: .8rem 1rem; display: flex; align-items: center; gap: .6rem; justify-content: center; font-size: .78rem; color: var(--muted); border-top: 1px solid var(--navy-soft); }
footer.bottom img { height: 18px; }

/* ---------- Teilnehmer ---------- */
main.phone { padding: 1rem; max-width: 560px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.card { background: var(--panel); border-radius: var(--radius); padding: 1.1rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.card h1 { margin: 0 0 .5rem; font-size: 1.5rem; }
.card h2 { margin: 0 0 .5rem; font-size: 1.1rem; }
.big { font-size: 1.35rem; font-weight: 700; line-height: 1.25; }
.choices { display: grid; gap: .8rem; }
.choices.two { grid-template-columns: 1fr 1fr; }
.choice { padding: 1.4rem .6rem; font-size: 1.25rem; font-weight: 800; color: var(--navy-deep); min-height: 96px; display: flex; align-items: center; justify-content: center; text-align: center; transition: transform .06s; }
.choice:active { transform: scale(.97); }
.choice.echt { background: var(--cyan-light); }
.choice.ki { background: var(--pink); }
.choice.a { background: var(--cyan-light); }
.choice.b { background: var(--pink); }
.choice.opt { background: var(--white); }
.choice.chosen { outline: 4px solid var(--white); }
.countdown { font-family: var(--mono); font-size: 1rem; color: var(--muted); }
.bar { height: 6px; background: var(--navy-soft); border-radius: 3px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--cyan); transition: width .25s linear; }
.status { font-size: .95rem; color: var(--muted); }
.score { display: flex; justify-content: space-between; align-items: baseline; }
.score b { font-size: 1.4rem; }
.stimulus-thumb { width: 100%; border-radius: 12px; }
.pair-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.pair-thumbs img { width: 100%; border-radius: 10px; aspect-ratio: 1; object-fit: cover; }
.textblock { white-space: pre-wrap; line-height: 1.45; background: var(--navy-deep); padding: .9rem; border-radius: 12px; font-size: 1.02rem; }
.result-ok { color: var(--ok); font-weight: 800; }
.result-bad { color: var(--pink-strong); font-weight: 800; }
.answers-ab { display: grid; gap: .7rem; }
.answer-box { background: var(--navy-deep); border-radius: 12px; padding: .9rem; border: 2px solid transparent; }
.answer-box .lbl { font-weight: 900; color: var(--cyan-light); margin-bottom: .3rem; }
.answer-box.b .lbl { color: var(--pink); }
.primary { background: var(--cyan); color: var(--navy-deep); font-weight: 800; padding: .95rem 1.2rem; width: 100%; }
.ghost { background: var(--navy-soft); color: var(--text); padding: .7rem 1rem; }

/* ---------- Beamer ---------- */
body.screen { overflow: hidden; }
main.stage { flex: 1; display: grid; grid-template-rows: auto 1fr auto; padding: 1.2rem 2rem; gap: .8rem; }
.stage-head { display: flex; justify-content: space-between; align-items: center; font-size: 1.4rem; }
.stage-head .title { font-weight: 800; }
.stage-body { display: grid; place-items: center; min-height: 0; }
.stage-foot { display: flex; justify-content: space-between; align-items: center; font-size: 1.2rem; color: var(--muted); }
.stimulus-img { max-height: 70vh; max-width: 90vw; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; width: 100%; }
.pair figure { margin: 0; text-align: center; }
.pair img { max-height: 62vh; max-width: 100%; border-radius: 16px; }
.pair figcaption { font-size: 2.2rem; font-weight: 900; margin-top: .4rem; }
.pair .cap-a { color: var(--cyan-light); } .pair .cap-b { color: var(--pink); }
.stage-text { font-size: 2rem; line-height: 1.4; max-width: 1400px; white-space: pre-wrap; background: var(--panel); padding: 2rem 2.5rem; border-radius: 20px; }
.stage-video { max-height: 70vh; max-width: 90vw; border-radius: 16px; }
.lobby { text-align: center; display: grid; gap: 1rem; }
.lobby h1 { font-size: 4rem; margin: 0; }
.lobby .url { font-family: var(--mono); font-size: 2.2rem; color: var(--cyan-light); }
.lobby img.qr { width: 34vh; height: 34vh; background: #fff; padding: 12px; border-radius: 16px; }
.names { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; max-width: 80vw; }
.names span { background: var(--navy-soft); padding: .3rem .8rem; border-radius: 999px; font-size: 1.2rem; }
.names span.off { opacity: .4; }
.bigcount { font-family: var(--mono); font-size: 3rem; font-weight: 800; color: var(--cyan-light); }
.reveal { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; width: 100%; align-items: start; }
.reveal .verdict { font-size: 4.5rem; font-weight: 900; line-height: 1; }
.reveal .verdict.echt { color: var(--cyan-light); } .reveal .verdict.ki { color: var(--pink); }
.bars { display: grid; gap: .8rem; font-size: 1.5rem; }
.bars .row { display: grid; grid-template-columns: 8rem 1fr 6rem; gap: 1rem; align-items: center; }
.bars .track { height: 28px; background: var(--navy-soft); border-radius: 14px; overflow: hidden; }
.bars .track > i { display: block; height: 100%; background: var(--cyan); }
.bars .row.ki .track > i { background: var(--pink); }
.cues { font-size: 1.4rem; line-height: 1.5; }
.cues li { margin-bottom: .3rem; }
.study { font-size: 1.3rem; color: var(--muted); margin-top: .8rem; }
.duel-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; width: 100%; }
.duel-answers .box, .stage-text, .answer-box, .textblock, .duel-q { overflow-wrap: anywhere; }
.duel-answers .box { background: var(--panel); border-radius: 20px; padding: 2rem; font-size: 2rem; line-height: 1.4; min-height: 30vh; border: 4px solid transparent; }
.duel-answers .box .lbl { font-size: 3rem; font-weight: 900; margin-bottom: .6rem; }
.duel-answers .box.a .lbl { color: var(--cyan-light); } .duel-answers .box.b .lbl { color: var(--pink); }
.duel-answers .box.human { border-color: var(--ok); } .duel-answers .box.ai { border-color: var(--pink-strong); }
.duel-q { font-size: 2.4rem; font-weight: 800; text-align: center; max-width: 1400px; }
.leader { display: grid; gap: .6rem; width: min(900px, 90vw); font-size: 2rem; }
.leader .row { display: grid; grid-template-columns: 4rem 1fr 8rem; align-items: center; background: var(--panel); padding: .6rem 1.2rem; border-radius: 14px; }
.leader .row:first-child { background: linear-gradient(90deg, var(--cyan) 0%, var(--navy) 60%); }
.leader .row b { text-align: right; font-family: var(--mono); }
.ai-row { grid-template-columns: 4rem 1fr 8rem; background: linear-gradient(90deg, var(--pink) 0%, var(--navy) 60%) !important; }

/* ---------- Host ---------- */
main.host { padding: 1rem; display: grid; grid-template-columns: 1.1fr 1fr; gap: 1rem; max-width: 1400px; margin: 0 auto; width: 100%; align-items: start; }
main.host .col { display: grid; gap: 1rem; align-content: start; min-width: 0; }
@media (max-width: 900px) { main.host { grid-template-columns: 1fr; } }
/* Leiste oben: bleibt stehen, feste Höhe je Zeile (Ellipse statt Umbruch), damit darunter nichts springt. */
.hostbar { position: sticky; top: 0; z-index: 20; display: grid; gap: .3rem; padding: .6rem 1rem; background: var(--navy-deep); border-bottom: 1px solid var(--navy-soft); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.hostbar .now { font-weight: 800; font-size: 1.05rem; }
.hostbar .meta { font-size: .85rem; color: var(--muted); }
.hostbar .now, .hostbar .meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hostbar .controls { flex-wrap: nowrap; }
.hostbar .controls button.go { flex: 1; font-size: 1.1rem; padding: .85rem 1rem; }
.hostbar .controls button.off { background: var(--warn); color: var(--navy-deep); }
.host .notes { line-height: 1.45; font-size: .98rem; }
.host .small { font-size: .82rem; margin-bottom: .4rem; }
.host a.linkbtn { padding: .65rem .9rem; border-radius: 10px; text-decoration: none; }
.host .card { padding: 1rem; }
.host h2 { margin: .2rem 0 .6rem; font-size: 1.05rem; color: var(--cyan-light); }
.rounds { position: relative; display: grid; gap: .35rem; height: 50vh; overflow: auto; overscroll-behavior: contain; }
.rounds button { text-align: left; background: var(--navy-deep); color: var(--text); padding: .55rem .8rem; border-radius: 10px; display: grid; grid-template-columns: 2.2rem 1fr auto; gap: .6rem; align-items: center; }
.rounds button.active { outline: 2px solid var(--cyan); }
.rounds button.done { opacity: .6; }
.rounds small { color: var(--muted); }
.controls { display: flex; flex-wrap: wrap; gap: .5rem; }
.controls button { padding: .65rem .9rem; background: var(--navy-soft); color: var(--text); font-weight: 600; border-radius: 10px; }
.controls button.primary { background: var(--cyan); color: var(--navy-deep); width: auto; }
.controls button.danger { background: var(--pink-strong); color: var(--navy-deep); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
label.f { display: grid; gap: .25rem; font-size: .85rem; color: var(--muted); }
.players { display: grid; gap: .3rem; height: 30vh; overflow: auto; overscroll-behavior: contain; align-content: start; font-size: .92rem; }
.players .row { display: grid; grid-template-columns: 1fr auto auto; gap: .5rem; align-items: center; background: var(--navy-deep); padding: .4rem .7rem; border-radius: 8px; }
.players .row.off { opacity: .5; }
.players .row button { padding: .25rem .5rem; font-size: .8rem; background: var(--navy-soft); color: var(--text); border-radius: 6px; }
pre.log { background: var(--navy-deep); padding: .7rem; border-radius: 10px; height: 32vh; overflow: auto; overscroll-behavior: contain; font-size: .78rem; white-space: pre-wrap; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; font-size: .9rem; }
.kv b { color: var(--muted); font-weight: 500; }
.toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); background: var(--pink-strong); color: var(--navy-deep); padding: .7rem 1.1rem; border-radius: 12px; font-weight: 700; z-index: 50; }
.lobby .join-row { display: flex; gap: 2rem; justify-content: center; align-items: center; }
.lobby video.intro { height: 34vh; max-width: 55vw; border-radius: 16px; background: #000; }

/* ---------- Folien am Beamer ---------- */
.slide-title { font-size: clamp(1.8rem, 3vw, 3.2rem); font-weight: 800; line-height: 1.15; max-width: 1600px; }
.slide { width: min(1600px, 94vw); display: grid; gap: 1.1rem; font-size: clamp(1.05rem, 1.55vw, 1.9rem); line-height: 1.35; align-self: start; }
.slide strong { color: var(--cyan-light); }
.s-kicker { text-transform: uppercase; letter-spacing: .08em; color: var(--pink); font-weight: 700; font-size: .8em; }
.s-lead { font-size: 1.35em; font-weight: 600; }
.s-text { color: var(--text); }
.s-box { background: var(--panel); border-left: 6px solid var(--cyan); padding: .8em 1.1em; border-radius: 12px; }
.s-source { font-size: .62em; color: var(--muted); }
.s-source strong { color: var(--muted); }
.s-byline { color: var(--muted); font-size: .8em; }
.s-cards { display: grid; gap: 1rem; }
.s-cards.cols-1 { grid-template-columns: 1fr; } .s-cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.s-cards.cols-3 { grid-template-columns: repeat(3, 1fr); } .s-cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
.s-card { background: var(--panel); border-radius: 16px; padding: .9em 1.1em; border-top: 6px solid var(--cyan); display: grid; gap: .4em; align-content: start; }
.s-card.c-pink { border-top-color: var(--pink); } .s-card.c-green { border-top-color: var(--ok); }
.s-card-head { font-weight: 800; font-size: 1.05em; }
.s-big { font-family: var(--mono); font-size: 2.2em; font-weight: 800; color: var(--cyan-light); line-height: 1; }
.s-card.c-pink .s-big { color: var(--pink); }
.s-src { font-size: .62em; color: var(--muted); }
.s-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.s-nr { font-family: var(--mono); font-size: 2em; font-weight: 800; color: var(--cyan-light); line-height: 1; }
.s-card.c-pink .s-nr { color: var(--pink); } .s-card.c-green .s-nr { color: var(--ok); }
.s-table { width: 100%; border-collapse: separate; border-spacing: 0 .35em; font-size: .92em; }
.s-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 0 .8em; font-size: .8em; }
.s-table td { background: var(--panel); padding: .55em .8em; vertical-align: top; }
.s-table td:first-child { border-radius: 12px 0 0 12px; white-space: nowrap; } .s-table td:last-child { border-radius: 0 12px 12px 0; }
.s-takeaways { display: grid; gap: 1rem; }
.s-takeaway { display: grid; grid-template-columns: 3.2em 1fr; gap: 1em; align-items: center; background: var(--panel); border-radius: 16px; padding: .8em 1.1em; font-size: 1.15em; }
.s-takeaway .nr { font-family: var(--mono); font-size: 1.8em; font-weight: 800; color: var(--pink); }
.s-takeaway p { margin: 0; }
.poll-options { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.poll-options span { background: var(--navy-soft); padding: .5rem 1.4rem; border-radius: 999px; font-size: 1.6rem; font-weight: 700; }
.next-in { font-family: var(--mono); color: var(--cyan-light); }

/* ---------- Selbsttest (Handy/Rechner) ---------- */
.progress { display: grid; gap: .3rem; font-size: .85rem; color: var(--muted); }
.legend { font-size: .9rem; color: var(--muted); background: var(--navy-deep); padding: .7rem .9rem; border-radius: 12px; margin: .6rem 0 .9rem; }
.ghost.wide { width: 100%; margin-top: .5rem; border-radius: var(--radius); }
.choices4 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .9rem; }
.choice4 { padding: 1rem .5rem; font-size: 1.05rem; font-weight: 800; min-height: 64px; color: var(--navy-deep); }
.choice4.left.sure { background: var(--cyan-light); } .choice4.left.maybe { background: color-mix(in srgb, var(--cyan-light) 45%, var(--panel)); color: var(--text); }
.choice4.right.sure { background: var(--pink); } .choice4.right.maybe { background: color-mix(in srgb, var(--pink) 45%, var(--panel)); color: var(--text); }
.choice4.chosen { outline: 4px solid var(--white); }
.stimulus-thumb.small { max-height: 30vh; object-fit: contain; }
.textblock.small { font-size: .92rem; }
.zoomable { cursor: zoom-in; }
.zoom { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: grid; place-items: center; z-index: 60; cursor: zoom-out; }
.zoom img { max-width: 100vw; max-height: 100dvh; }
.pair-thumbs figure { margin: 0; text-align: center; }
.pair-thumbs figcaption { font-weight: 900; font-size: .85rem; margin-top: .2rem; }
.pair-thumbs figure:first-child figcaption { color: var(--cyan-light); } .pair-thumbs figure:last-child figcaption { color: var(--pink); }
.cues-phone { margin: .3rem 0; padding-left: 1.2rem; line-height: 1.45; }
.score-big { font-size: 2.6rem; font-weight: 900; font-family: var(--mono); color: var(--cyan-light); }
.type-badge { display: inline-block; margin: .6rem 0 .2rem; padding: .35rem .9rem; border-radius: 999px; background: var(--pink); color: var(--navy-deep); font-weight: 800; }
.hbars { display: grid; gap: .45rem; }
.hbar { display: grid; grid-template-columns: 8.5rem 1fr 3.2rem; gap: .5rem; align-items: center; font-size: .9rem; }
.hbar .track { height: 14px; background: var(--navy-soft); border-radius: 7px; overflow: hidden; }
.hbar .track > i { display: block; height: 100%; background: var(--muted); }
.hbar.you .track > i { background: var(--cyan); }
.hbar b { text-align: right; font-family: var(--mono); font-weight: 600; }
.tips { margin: 0; padding-left: 1.2rem; line-height: 1.45; display: grid; gap: .4rem; }
.items { display: grid; gap: .3rem; font-size: .9rem; }
.items .row { display: grid; grid-template-columns: 1.4rem 1fr auto; gap: .5rem; align-items: center; background: var(--navy-deep); padding: .45rem .7rem; border-radius: 8px; }
.items .row.ok > span:first-child { color: var(--ok); } .items .row.bad > span:first-child { color: var(--pink-strong); }
.items small { color: var(--muted); }
.phone .small, .selftest .small { font-size: .82rem; }

/* ---------- Selbsttest-QR auf einer Folie ---------- */
.s-selbsttest { display: grid; grid-template-columns: auto 1fr; gap: 1.5em; align-items: center; background: var(--panel); border-radius: 16px; padding: .8em 1.1em; }
.s-selbsttest img.qr { width: 22vh; height: 22vh; background: #fff; padding: 10px; border-radius: 12px; }
.s-selbsttest .url { font-family: var(--mono); color: var(--cyan-light); font-size: .85em; margin-top: .4em; overflow-wrap: anywhere; }

/* ---------- Host: Selbsttests ---------- */
.testbox { background: var(--navy-deep); border-radius: 10px; padding: .7rem; display: grid; gap: .4rem; }
.testbox .small { font-size: .78rem; overflow-wrap: anywhere; color: var(--muted); }
table.mini { width: 100%; border-collapse: collapse; font-size: .85rem; }
table.mini th { text-align: left; color: var(--muted); font-weight: 500; }
table.mini td, table.mini th { padding: .2rem .4rem; border-bottom: 1px solid var(--navy-soft); }
table.mini tr.mine td { color: var(--cyan-light); }

/* ---------- Selbsttest: Bestenliste ---------- */
.lb h2 { font-size: 1rem; }
.lb-rows { display: grid; gap: .3rem; }
.lb-row { display: grid; grid-template-columns: 2.2rem 1fr auto 4.2rem; gap: .5rem; align-items: center; background: var(--navy-deep); padding: .45rem .7rem; border-radius: 8px; font-size: .95rem; }
.lb-row:first-child { background: linear-gradient(90deg, color-mix(in srgb, var(--cyan) 45%, var(--navy-deep)) 0%, var(--navy-deep) 70%); }
.lb-row.you { outline: 2px solid var(--pink); }
.lb-row b { font-family: var(--mono); }
.lb-row small { color: var(--muted); text-align: right; }
.lb-gap { text-align: center; color: var(--muted); line-height: .8; }
