/* REVELATIO – Spieloberfläche Akte 001 (Look aus Storyboard 3.1) */
@font-face { font-family: 'Cormorant'; src: url(fonts/cormorantgaramond.ttf); font-weight: 300 700; }
@font-face { font-family: 'Inter'; src: url(fonts/inter.ttf); font-weight: 100 900; }
@font-face { font-family: 'Hand'; src: url(fonts/caveat.ttf); }
:root {
  --bg: #0e1116; --bg2: #151a21; --panel: #1b2129; --line: #2a313b; --ink: #e9e4da; --mute: #9aa1ab;
  --gold: #c9a35a; --gold2: #e2c07d; --paper: #f1ebdf; --paper-ink: #2a2520; --red: #8e1b12; --ok: #6f9c6a;
  --serif: 'Cormorant', Georgia, serif; --sans: 'Inter', system-ui, sans-serif; --hand: 'Hand', cursive;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); }
button { font: inherit; color: inherit; cursor: pointer; }
.btn { border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 10px 16px; }
.btn:hover { border-color: var(--gold); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #17130b; font-weight: 600; }
.btn.gold:hover { background: var(--gold2); }
.btn.ghost { background: rgba(0,0,0,.35); border-color: rgba(255,255,255,.35); }
.serif { font-family: var(--serif); }
.screen { position: fixed; inset: 0; }

/* ---------- Startseite ---------- */
#start { overflow: hidden; background: #000; }
#start .bg { position: absolute; inset: -4%; background: url(media/img/IMG_KEYART_001.webp) center/cover; animation: drift 40s ease-in-out infinite alternate; }
#start .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,6,8,.92) 0%, rgba(5,6,8,.7) 38%, rgba(5,6,8,0) 75%); }
#start .copy { position: absolute; left: 6vw; top: 50%; transform: translateY(-50%); max-width: 560px; padding-right: 16px; }
.series { color: var(--gold); letter-spacing: .28em; font-size: 12px; font-weight: 600; }
#start h1 { font: 600 clamp(44px, 6vw, 76px)/1 var(--serif); margin: 14px 0 6px; }
.akte { letter-spacing: .2em; font-size: 13px; color: var(--mute); }
#start .teaser { font-size: 16px; color: #d6d0c4; margin: 22px 0 26px; }
#start .row { display: flex; gap: 12px; flex-wrap: wrap; }
#start .meta { margin-top: 22px; font-size: 13px; color: var(--mute); }
@keyframes drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.08) translate(-1.5%, -1%); } }

/* ---------- Einleitung ---------- */
#intro { background: #000; display: grid; place-items: center; }
#intro video { width: 100%; height: 100%; object-fit: contain; }
#intro .skip { position: absolute; right: 24px; bottom: 24px; }

/* ---------- Spiel ---------- */
#game { display: grid; grid-template-rows: 56px 1fr; background: radial-gradient(ellipse at 70% 0%, #1a2029 0%, var(--bg) 60%); }
.top { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgba(10,12,16,.85); backdrop-filter: blur(6px); z-index: 5; }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; }
.icon-btn svg { width: 20px; height: 20px; stroke: var(--ink); fill: none; stroke-width: 1.6; }
.icon-btn .badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--gold); color: #000; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.icon-btn.ring { animation: ring 1s infinite; border-color: var(--gold); }
.icon-btn.spot { box-shadow: 0 0 0 3px var(--gold), 0 0 30px rgba(201,163,90,.6); }
@keyframes ring { 0%,100% { transform: rotate(0); } 10%,30% { transform: rotate(-12deg); } 20%,40% { transform: rotate(12deg); } 50% { transform: rotate(0); } }
.brand { color: var(--gold); font-weight: 700; letter-spacing: .3em; font-size: 13px; margin-left: 6px; }
.chapter { color: var(--mute); font-size: 13px; }
.spacer { flex: 1; }
.clock { color: var(--mute); font-size: 13px; font-variant-numeric: tabular-nums; }
.top .btn { padding: 7px 12px; font-size: 13px; }

.desk { overflow: auto; padding: 20px clamp(16px, 3vw, 40px) 60px; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 0; color: var(--mute); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-color: var(--gold); }
.tabs button .n { color: var(--gold); font-size: 12px; margin-left: 4px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.card { position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); text-align: left; padding: 0; aspect-ratio: 4/3; }
.card img, .card .thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .thumb { display: grid; place-items: center; font: 600 22px var(--serif); background: linear-gradient(135deg, #2a2f37, #1b1f26); color: #cfc7b8; padding: 12px; text-align: center; }
.card .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,.85)); font-size: 13px; }
.card .new { position: absolute; top: 8px; left: 8px; background: var(--gold); color: #000; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; letter-spacing: .08em; }
.card:hover { border-color: var(--gold); }
.card.done { opacity: .75; }
.empty { color: var(--mute); padding: 30px 0; }
.task { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--panel); margin-bottom: 10px; width: 100%; text-align: left; }
.task .t { font: 600 20px var(--serif); }
.task .s { color: var(--mute); font-size: 13px; }
.task.done .t::before { content: '✓ '; color: var(--ok); }
.q { padding: 10px 0; border-bottom: 1px solid var(--line); }
.q.done { color: var(--mute); text-decoration: line-through; }

/* ---------- Handy ---------- */
#phone { position: fixed; left: 16px; top: 66px; width: 360px; height: min(740px, calc(100vh - 80px)); border-radius: 42px; background: #050608; padding: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 0 1px #333 inset; z-index: 20; animation: up .35s ease; }
#phone .scr { position: relative; height: 100%; border-radius: 33px; overflow: hidden; background: #0b0d10; display: flex; flex-direction: column; }
@keyframes up { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.sbar { display: flex; justify-content: space-between; padding: 10px 22px 4px; font-size: 12px; font-weight: 600; }
.notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; border-radius: 14px; background: #000; }
.phead { display: flex; align-items: center; gap: 10px; padding: 8px 14px 10px; border-bottom: 1px solid #1d2229; }
.phead .back { background: none; border: 0; color: var(--gold); font-size: 22px; padding: 0 6px 0 0; }
.ava { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #333; flex: none; }
.phead .name { font-weight: 600; }
.phead .sub { font-size: 11px; color: var(--mute); }
.pbody { flex: 1; overflow-y: auto; padding: 12px; }
.pnav { display: flex; border-top: 1px solid #1d2229; }
.pnav button { flex: 1; background: none; border: 0; padding: 10px 0 14px; font-size: 11px; color: var(--mute); }
.pnav button.on { color: var(--gold); }
.pclose { position: absolute; right: -14px; top: -14px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); z-index: 2; }
.thread { display: flex; gap: 10px; align-items: center; padding: 10px 4px; border-bottom: 1px solid #1a1e24; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.thread .last { font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.bub { max-width: 84%; background: #1f252d; border-radius: 16px 16px 16px 4px; padding: 8px 12px; margin: 0 0 8px; font-size: 14px; animation: pop .25s ease; }
.bub.me { margin-left: auto; background: #6b5626; border-radius: 16px 16px 4px 16px; }
.bub .tm { display: block; font-size: 10px; color: var(--mute); margin-top: 3px; text-align: right; }
.bub.fwd { border-left: 3px solid var(--gold); }
.bub .fw { font-size: 11px; color: var(--gold); }
.bub img { width: 100%; border-radius: 10px; margin-top: 4px; display: block; }
.bub .att { display: block; margin-top: 6px; background: #12161b; border: 1px solid #2a313b; border-radius: 10px; padding: 8px 10px; font-size: 13px; text-align: left; width: 100%; }
.bub .att:hover { border-color: var(--gold); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.typing { display: inline-flex; gap: 4px; background: #1f252d; border-radius: 16px; padding: 10px 12px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8a919b; animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%,60%,100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.replies { padding: 8px 10px 10px; border-top: 1px solid #1d2229; display: grid; gap: 6px; }
.replies .lbl { font-size: 11px; color: var(--mute); }
.chip { background: #12161b; border: 1px solid var(--gold); color: var(--ink); border-radius: 14px; padding: 8px 12px; font-size: 13px; text-align: left; }
.chip:hover { background: #2a2416; }
.callrow { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid #1a1e24; }
.callrow .grow { flex: 1; }
.callrow .btn { padding: 6px 10px; font-size: 12px; }
.contact { padding: 10px 4px; border-bottom: 1px solid #1a1e24; font-size: 13px; }
.contact b { display: block; font-size: 14px; }
.contact span { color: var(--mute); }

/* Anruf */
.call { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; padding: 60px 20px 24px; text-align: center; background: radial-gradient(circle at 50% 25%, #2a2f37, #07080a 70%); }
.call .big { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.call h3 { font: 600 26px var(--serif); margin: 14px 0 2px; }
.call .sub { font-size: 12px; color: var(--mute); }
.call .wave { display: flex; gap: 4px; height: 36px; align-items: center; margin: 18px 0; }
.call .wave i { width: 4px; border-radius: 2px; background: var(--gold); height: 8px; }
.call.talking .wave i { animation: wv .9s ease-in-out infinite; }
.call .wave i:nth-child(2n) { animation-delay: .2s; } .call .wave i:nth-child(3n) { animation-delay: .35s; }
@keyframes wv { 0%,100% { height: 6px; } 50% { height: 30px; } }
.call .line { min-height: 96px; background: rgba(0,0,0,.45); border-radius: 12px; padding: 10px 12px; font-size: 14px; width: 100%; text-align: left; }
.call .line b { color: var(--gold); }
.call .acts { margin-top: auto; display: flex; gap: 40px; }
.round { width: 64px; height: 64px; border-radius: 50%; border: 0; font-size: 24px; }
.round.acc { background: #2f8f4e; } .round.dec { background: #b3362b; }
.call .choices { width: 100%; display: grid; gap: 6px; margin-top: 10px; }
.call.ringing .big { animation: pulse 1.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(201,163,90,.6); } 100% { box-shadow: 0 0 0 26px rgba(201,163,90,0); } }

/* ---------- Postfach ---------- */
#mail { position: fixed; left: 50%; top: 70px; transform: translateX(-50%); width: min(1000px, calc(100vw - 24px)); height: min(680px, calc(100vh - 90px)); background: #f4f2ee; color: #23262b; border-radius: 12px; overflow: hidden; display: grid; grid-template-columns: 300px 1fr; grid-template-rows: 46px 1fr; z-index: 20; box-shadow: 0 30px 80px rgba(0,0,0,.7); animation: up .3s ease; }
#mail .mbar { grid-column: 1/3; display: flex; align-items: center; gap: 12px; padding: 0 14px; background: #e6e3dd; border-bottom: 1px solid #d5d1c9; font-size: 13px; }
#mail .mbar b { font-weight: 600; }
#mail .mbar .x { margin-left: auto; background: none; border: 0; font-size: 18px; }
#mail .list { overflow-y: auto; border-right: 1px solid #d9d5ce; }
#mail .item { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid #e3e0da; padding: 12px 14px; }
#mail .item.on { background: #e9e2d2; }
#mail .item.unread b::before { content: '● '; color: #b08a3e; }
#mail .item .d { float: right; font-size: 11px; color: #7a7f87; }
#mail .item .s { font-size: 13px; color: #555; }
#mail .read { overflow-y: auto; padding: 26px 34px; font: 16px/1.6 Georgia, serif; }
#mail .read h2 { font: 600 22px var(--sans); margin: 0 0 6px; }
#mail .read .hd { font: 13px var(--sans); color: #666; border-bottom: 1px solid #ddd; padding-bottom: 12px; margin-bottom: 18px; }
#mail .att { display: inline-block; margin: 14px 8px 0 0; background: #fff; border: 1px solid #ccc; border-radius: 8px; padding: 8px 12px; font: 13px var(--sans); }
@media (max-width: 760px) { #mail { grid-template-columns: 1fr; } #mail .list { display: none; } #mail.showlist .list { display: block; } #mail.showlist .read { display: none; } }

/* ---------- Dokumentansicht ---------- */
#viewer { position: fixed; inset: 0; background: rgba(4,5,7,.94); z-index: 30; display: grid; grid-template-rows: 52px 1fr; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
#viewer .vbar { display: flex; align-items: center; gap: 10px; padding: 0 16px; }
#viewer .vclose { position: fixed; top: 10px; right: 12px; z-index: 35; display: flex; align-items: center; gap: 6px; background: var(--gold); color: #17130b; border: 0; border-radius: 22px; padding: 9px 16px; font-weight: 700; box-shadow: 0 6px 20px rgba(0,0,0,.6); }
#viewer .vbar { padding-right: 150px !important; }
#viewer .vbar .t { font: 600 20px var(--serif); }
#viewer .vbody { overflow: auto; display: grid; place-items: start center; padding: 10px 16px 40px; }
.docimg { position: relative; max-width: min(1100px, 100%); width: 100%; }
.docimg img, .docimg canvas { width: 100%; display: block; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.over { position: absolute; color: #18224f; text-shadow: 0 0 1px rgba(24,34,79,.35); font-family: var(--hand); white-space: pre-wrap; line-height: 1.25; }
.paper { background: var(--paper); color: var(--paper-ink); max-width: 760px; width: 100%; padding: 46px 54px; border-radius: 3px; box-shadow: 0 20px 60px rgba(0,0,0,.6); font: 16px/1.6 Georgia, serif; }
.paper h1, .paper h2, .paper h3 { font-family: var(--serif); }
.astext { background: #fff; color: #222; max-width: 720px; padding: 30px 36px; border-radius: 6px; font: 16px/1.6 Georgia, serif; }
.transcript p { margin: 0 0 8px; } .transcript b { color: #8a6a2a; }
/* Folien */
.slides { width: min(1000px, 100%); }
.slide { aspect-ratio: 16/9; background: #fff; color: #1d1d1d; padding: 5% 7%; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.6); font: clamp(12px, 1.7vw, 19px)/1.5 Georgia, serif; overflow: hidden; }
.slide h2 { font: 600 clamp(22px, 3.2vw, 38px)/1.15 var(--serif); margin: 0 0 4%; color: #1f3346; }
.slide ul { margin: 0; padding-left: 1.2em; } .slide li { margin-bottom: .5em; }
.slide table { border-collapse: collapse; width: 100%; } .slide td, .slide th { border-bottom: 1px solid #ccc; padding: .45em .6em; text-align: left; }
.slide .logo { position: absolute; right: 4%; bottom: 4%; font: 600 11px var(--sans); color: #7b8794; letter-spacing: .12em; text-transform: uppercase; }
.slide .num { position: absolute; left: 4%; bottom: 4%; font: 11px var(--sans); color: #999; }
.slide.title { display: grid; place-content: center; text-align: center; background: linear-gradient(#fff, #f3f1ec); }
.slide.title h2 { font-size: clamp(30px, 5vw, 60px); }
.slide .mapwrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4%; align-items: center; height: 82%; }
.slide .mapwrap canvas { width: 100%; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.slidenav { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 14px; color: var(--mute); }
/* Browser */
.browser { width: min(1100px, 100%); background: #fff; color: #222; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.browser .url { display: flex; gap: 8px; align-items: center; background: #ececec; padding: 8px 12px; font: 13px var(--sans); color: #555; }
.browser .url i { width: 11px; height: 11px; border-radius: 50%; background: #d55; display: inline-block; } .browser .url i:nth-child(2) { background: #db3; } .browser .url i:nth-child(3) { background: #5b5; }
.browser .url span { background: #fff; border-radius: 6px; padding: 4px 12px; flex: 1; margin-left: 8px; }
.site .hero { height: 300px; background: center/cover; position: relative; }
.site .hero div { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 36px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; }
.site .hero h1 { font: 600 44px var(--serif); margin: 0; } .site .hero p { margin: 4px 0 0; font: 18px var(--serif); }
.site .in { padding: 24px 36px 36px; font: 15px/1.65 var(--sans); }
.site .gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.site .gal figure { margin: 0; font-size: 12px; color: #666; } .site .gal img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 4px; }
.site .nav { display: flex; gap: 22px; padding: 14px 36px; font: 600 13px var(--sans); letter-spacing: .08em; border-bottom: 1px solid #eee; }
.site .nav b { margin-right: auto; font: 700 16px var(--serif); letter-spacing: .02em; }
/* Register */
.reg { background: #fff; color: #111; max-width: 820px; width: 100%; padding: 40px 50px; font: 14px/1.6 'Courier New', monospace; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.reg h3 { font: 700 15px var(--sans); border-bottom: 2px solid #111; padding-bottom: 6px; }
.reg table { width: 100%; border-collapse: collapse; } .reg td { border: 1px solid #999; padding: 8px 10px; vertical-align: top; } .reg td:first-child { width: 40px; text-align: center; }
/* Screenshot-Nachricht */
.shot { width: 360px; background: #0b0d10; border-radius: 30px; padding: 20px 14px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }

/* ---------- Rätsel & Abschluss ---------- */
.puz { width: min(1100px, 100%); }
.puz .stage { position: relative; overflow: hidden; border-radius: 4px; }
.puz .tracing { position: absolute; inset: 0; background: rgba(250,246,235,.38); box-shadow: -12px 0 30px rgba(0,0,0,.35); border-left: 1px solid rgba(255,255,255,.5); transform: translateX(102%); pointer-events: none; }
.puz .tracing canvas { width: 100%; height: 100%; display: block; }
.puz .stage canvas { width: 100%; display: block; border-radius: 4px; }
.puz .stage canvas.layer { position: absolute; inset: 0; cursor: pointer; }
.puz .ctrl { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 14px 0; color: var(--mute); }
.puz input[type=range] { width: 260px; accent-color: var(--gold); }
.say { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); color: var(--paper-ink); border-radius: 12px; padding: 12px 16px; margin-top: 12px; max-width: 640px; }
.say img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.say.ok { border-left: 4px solid var(--ok); }
.form { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 26px 30px; max-width: 820px; width: 100%; }
.form h2 { font: 600 30px var(--serif); margin: 0 0 6px; }
.form .sent { font: 22px/1.9 var(--serif); }
.form select { font: inherit; font-size: 18px; background: #0f1318; color: var(--gold2); border: 0; border-bottom: 1px solid var(--gold); padding: 2px 6px; }
.form .pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 10px 0 18px; }
.form .pick label { border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-size: 13px; cursor: pointer; }
.form .pick input { accent-color: var(--gold); }
.form .pick label:has(input:checked) { border-color: var(--gold); background: #231e12; }

/* ---------- Einführung (Coach) ---------- */
#coach { position: fixed; z-index: 40; max-width: 380px; background: var(--paper); color: var(--paper-ink); border-radius: 12px; padding: 16px 18px; box-shadow: 0 20px 60px rgba(0,0,0,.6); animation: up .3s; }
#coach .who { display: flex; gap: 8px; align-items: center; font-size: 13px; color: #6b6458; }
#coach h4 { font: 600 22px var(--serif); margin: 8px 0 4px; }
#coach p { margin: 0 0 12px; }
#coach .btn { background: var(--paper-ink); color: var(--paper); border: 0; }
#dim { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 15; }

/* ---------- Kapitelende ---------- */
#chend { position: fixed; inset: 0; z-index: 50; background: radial-gradient(circle, #1b1f26, #050607); display: grid; place-content: center; text-align: center; animation: fade .6s; padding: 16px; }
.stamp { display: inline-block; border: 4px solid var(--red); color: var(--red); font: 700 clamp(26px, 5vw, 44px)/1.1 var(--serif); letter-spacing: .08em; padding: 14px 26px; transform: rotate(-6deg); animation: stamp .5s cubic-bezier(.2,1.6,.4,1) .3s both; background: rgba(142,27,18,.06); }
@keyframes stamp { from { transform: rotate(-6deg) scale(2.4); opacity: 0; } to { transform: rotate(-6deg) scale(1); opacity: 1; } }
#chend .next { margin-top: 30px; color: var(--mute); }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--paper); color: var(--paper-ink); border-radius: 10px; padding: 10px 18px; z-index: 60; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: up .3s; }
.mapbox canvas { width: 100%; border-radius: 6px; display: block; }
@media (max-width: 600px) {
  #phone { left: 0; top: 56px; width: 100vw; height: calc(100vh - 56px); border-radius: 0; padding: 0; }
  #phone .scr { border-radius: 0; } .pclose { right: 10px; top: 10px; } .notch { display: none; }
  .brand, .chapter { display: none; }
  .paper, .reg { padding: 26px 22px; }
}
/* Handy: Dokumente zum Lesen breiter, seitlich verschiebbar */
@media (max-width: 600px) { #viewer .vbody { place-items: start; } .docimg { min-width: 760px; } #viewer .vclose span { display: none; } #viewer .vbar { padding-right: 70px !important; } }
/* Kapitel 02: Dokumente */
.doc2 { position: relative; background: #fbfaf6; color: #1e1e1e; max-width: 820px; width: 100%; padding: 40px 50px 50px; font: 15px/1.6 var(--sans); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.doc2 .lh { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #1f3346; padding-bottom: 8px; margin-bottom: 22px; }
.doc2 .lh b { font: 700 16px var(--serif); letter-spacing: .14em; color: #1f3346; } .doc2 .lh span { font-size: 12px; color: #666; }
.doc2 table { width: 100%; border-collapse: collapse; margin: 10px 0; } .doc2 td, .doc2 th { border-bottom: 1px solid #ddd; padding: 8px 10px; text-align: left; vertical-align: top; } .doc2 th { background: #eef0f2; font-size: 13px; }
.doc2.report { font-family: Georgia, serif; } .doc2.letter { font-family: Georgia, serif; }
.doc2 .sig { font: 34px var(--hand); color: #1b2a6b; margin-right: 10px; display: inline-block; transform: rotate(-4deg); }
.doc2 .foot { font-size: 12px; color: #777; border-top: 1px solid #ddd; padding-top: 8px; margin-top: 26px; }
.stamp2 { position: absolute; right: 50px; bottom: 70px; border: 3px solid rgba(40,90,60,.75); color: rgba(40,90,60,.75); font: 700 20px var(--sans); letter-spacing: .12em; padding: 6px 14px; transform: rotate(-8deg); }
.clip { background: #ece7da url() ; color: #1b1b1b; max-width: 760px; width: 100%; padding: 28px 34px; box-shadow: 0 20px 60px rgba(0,0,0,.6); font: 15px/1.55 Georgia, serif; clip-path: polygon(0 1%, 4% 0, 9% 1%, 15% 0, 22% 1%, 30% 0, 39% 1%, 48% 0, 57% 1%, 66% 0, 75% 1%, 84% 0, 92% 1%, 100% 0, 99% 50%, 100% 100%, 90% 99%, 78% 100%, 64% 99%, 50% 100%, 36% 99%, 22% 100%, 10% 99%, 0 100%, 1% 50%); filter: sepia(.15); }
.clip .mast { font: 900 28px var(--serif); letter-spacing: .06em; border-bottom: 3px double #333; padding-bottom: 6px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.clip .mast span { font: 12px var(--sans); letter-spacing: 0; color: #555; }
.clip .cols { column-count: 2; column-gap: 26px; } .clip .cols p:first-child { column-span: all; font-size: 1.5em; line-height: 1.2; }
@media (max-width: 600px) { .clip .cols { column-count: 1; } }
.press { padding: 30px 40px; font: 15px/1.6 var(--sans); } .press .ph { font: 700 12px var(--sans); letter-spacing: .12em; color: #24486b; margin-bottom: 14px; } .press .pf { font-size: 12px; color: #888; margin-top: 24px; }
.thumb.doc { background: linear-gradient(135deg, #f4f1ea, #dcd6c8); color: #2a2520; font-size: 18px; }
/* Videoaufnahme */
.video { position: fixed; inset: 0; background: #000; overflow: hidden; }
.video .feed .shot2 { position: absolute; inset: -3%; background: center/cover; opacity: 0; transition: opacity .6s; animation: drift 18s ease-in-out infinite alternate; filter: contrast(1.05) saturate(.9); }
.video .feed .shot2.on { opacity: 1; }
.video::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.45), transparent 20%, transparent 60%, rgba(0,0,0,.8)); pointer-events: none; }
.vhud { position: absolute; top: 14px; left: 16px; right: 150px; display: flex; gap: 18px; font: 600 13px var(--sans); z-index: 2; text-shadow: 0 1px 4px #000; }
.vhud .rec { color: #ff4a3d; animation: blink 1.2s infinite; } @keyframes blink { 50% { opacity: .3; } }
.vsub { position: absolute; left: 50%; bottom: 90px; transform: translateX(-50%); width: min(900px, 92vw); text-align: center; font: 22px/1.4 var(--serif); z-index: 2; text-shadow: 0 2px 6px #000; }
.vsub b { color: var(--gold2); }
.vchoices { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; width: min(900px, 94vw); z-index: 2; }
.vchoices .chip { background: rgba(10,12,16,.85); }
/* Kartenfahrt */
#maptr { position: fixed; inset: 0; z-index: 45; background: #1a120a; display: grid; place-items: center; overflow: hidden; animation: fade .4s; }
#maptr canvas { width: 100vw; height: 100vh; object-fit: cover; transform: scale(1); transition: transform 3s cubic-bezier(.45,0,.2,1); }
#maptr.go canvas { transform: scale(2.6); }
#maptr .mlbl { position: absolute; bottom: 12vh; left: 50%; transform: translateX(-50%); font: 600 34px var(--hand); color: #7a1408; background: rgba(240,228,200,.88); padding: 6px 22px; border-radius: 4px; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
#maptr.out { opacity: 0; transition: opacity .5s; }
/* Pinnwand */
.hintline { color: var(--mute); margin-top: 0; }
.cork { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 26px 18px; padding: 26px; border-radius: 10px; background: #8a6a45 radial-gradient(rgba(0,0,0,.18) 1px, transparent 1.5px) 0 0/7px 7px; box-shadow: inset 0 0 40px rgba(0,0,0,.5); }
.cork svg { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.cork .str { fill: none; stroke: #b3141c; stroke-width: 2.5; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.pin { position: relative; background: #f4efe4; border: 0; padding: 6px 6px 8px; transform: rotate(var(--r)); box-shadow: 0 6px 14px rgba(0,0,0,.45); color: #222; font-size: 12px; text-align: left; }
.pin img, .pin .thumb { position: static; width: 100%; aspect-ratio: 4/3; object-fit: cover; display: grid; font-size: 14px; }
.pin span { display: block; margin-top: 5px; line-height: 1.25; }
.pin::before { content: ''; position: absolute; top: -6px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff6b5e, #a4120b); box-shadow: 0 2px 3px rgba(0,0,0,.5); z-index: 3; }
.pin.sel { outline: 3px solid var(--gold); transform: rotate(0) scale(1.05); }
/* Auswahlkarten */
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.opt { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; font: 17px/1.4 var(--serif); }
.opt input { accent-color: var(--gold); margin-right: 8px; }
.opt:has(input:checked) { border-color: var(--gold); background: #231e12; }
/* Kapitelkarte */
#chcard { position: fixed; inset: 0; z-index: 55; background: #050607; display: grid; place-content: center; text-align: center; animation: fade .8s; }
#chcard h1 { font-size: clamp(40px, 7vw, 72px); margin: 12px 0; } #chcard p { color: var(--mute); }
#chcard.out { opacity: 0; transition: opacity .7s; }
/* Kapitel 03–Epilog */
@font-face { font-family: 'Pinyon'; src: url(fonts/pinyon.ttf); }
.docimg.ovl { margin-bottom: 18px; }
.ov { position: absolute; overflow: hidden; line-height: 1.32; }
.ov p { margin: 0 0 .45em; } .ov table { width: 100%; border-collapse: collapse; font-size: .8em; } .ov td, .ov th { border: 1px solid rgba(0,0,0,.25); padding: .15em .3em; text-align: left; }
.ov.hist { font-family: 'Pinyon', var(--serif); color: rgba(58,34,14,.92); }
.ov.hist del { text-decoration-thickness: .08em; }
.ov .addn { font-family: var(--hand); color: #1d2c7a; margin-top: .6em; font-size: .85em; }
.ov.hand { font-family: var(--hand); color: #1b2a6b; } .ov.hand.caps { text-transform: uppercase; letter-spacing: .03em; }
.ov.typed { font-family: 'Courier New', monospace; color: #222; line-height: 1.25; }
.gal2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; width: min(1100px, 100%); margin-bottom: 18px; }
.gal2 figure { margin: 0; background: #11151a; border-radius: 6px; overflow: hidden; } .gal2 img { width: 100%; display: block; } .gal2 figcaption { font-size: 12px; color: var(--mute); padding: 6px 8px; }
.app { width: min(1000px, 100%); background: #fff; color: #222; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.6); font: 14px/1.5 var(--sans); }
.app .abar { background: #24486b; color: #fff; padding: 10px 16px; font-weight: 600; display: flex; justify-content: space-between; }
.app .ain { padding: 18px 22px; overflow-x: auto; } .app table { width: 100%; border-collapse: collapse; } .app td, .app th { border-bottom: 1px solid #e3e3e3; padding: 7px 8px; text-align: left; } .app th { background: #f2f4f6; font-size: 12px; }
.vnote { position: fixed; right: 16px; bottom: 16px; z-index: 48; width: min(380px, calc(100vw - 32px)); background: var(--paper); color: var(--paper-ink); border-radius: 14px; padding: 12px 14px; box-shadow: 0 20px 50px rgba(0,0,0,.6); display: flex; gap: 10px; animation: up .3s; }
.vnote img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; } .vnote .who { font-size: 12px; color: #6b6458; }
.hot { position: absolute; transform: translate(-50%, -50%); background: rgba(10,12,16,.75); border: 2px solid var(--gold); color: #fff; border-radius: 20px; padding: 6px 12px; font: 600 13px var(--sans); }
.hot.done { opacity: .5; border-color: #777; }
.letterhelp { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; background: #f1ebdf; color: #3a220e; padding: 12px; border-radius: 8px; margin: 10px 0; }
.letterhelp div { text-align: center; font: 13px var(--sans); } .letterhelp b { display: block; font: 30px 'Pinyon', serif; }
#final { position: fixed; inset: 0; z-index: 60; background: radial-gradient(circle, #1b1f26, #050607); overflow: auto; padding: 40px 16px; text-align: center; animation: fade .8s; }
#final .stats { color: var(--mute); margin: 20px 0; }
textarea.note { width: 100%; min-height: 110px; background: #0f1318; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 12px; font: 15px var(--sans); }
#viewer .vbody { grid-template-columns: minmax(0, 1fr); justify-items: center; }
#viewer .vbody > * { max-width: 100%; }
.gal2 { width: min(1100px, 100%); }
.gal2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gal2 img { max-height: 70vh; object-fit: contain; background: #0b0d10; }
