@font-face { font-family: 'Press Start 2P'; src: url('fonts/press-start-2p.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Pixelify Sans'; src: url('fonts/pixelify-sans-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Pixelify Sans'; src: url('fonts/pixelify-sans-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #0b1626; --panel: rgba(11, 22, 38, 0.88); --line: #2b4566; --text: #eaf2fb; --muted: #9fb3c8; --soft: #cfdbe8;
  --accent: #ffb238; --lake-h: clamp(520px, 78vh, 760px);
  --pixel: 'Press Start 2P', monospace; --body: 'Pixelify Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); }
a { color: var(--accent); } a:hover { color: #ffd27a; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
input:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page { max-width: 1100px; margin: 0 auto; padding: 14px 12px 32px; display: flex; flex-direction: column; gap: 14px; }
header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.brand h1 { margin: 0; font-family: var(--pixel); font-size: 20px; letter-spacing: 2px; color: var(--accent); }
.brand h1 a { color: inherit; text-decoration: none; }
.brand p { margin: 0; font-size: 15px; color: var(--muted); }
.meta { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); }
.meta strong { font-family: var(--pixel); font-size: 11px; color: var(--text); }
.btn-ghost { display: flex; align-items: center; gap: 8px; font-family: var(--pixel); font-size: 10px; background: transparent; border: 3px solid var(--line); padding: 9px 12px; min-height: 44px; }
.btn-main { font-family: var(--pixel); background: var(--accent); color: var(--bg); border: 0; }

/* See */
.lake { position: relative; width: 100%; height: var(--lake-h); overflow: hidden; border: 4px solid var(--line); box-shadow: 8px 8px 0 #050c16; background: #061626; }
.scene { position: absolute; left: 50%; top: 0; width: max(100%, var(--lake-h)); transform: translate(-50%, 0); transition: transform 1.8s steps(18); }
.scene > img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.marks { position: absolute; left: 3%; top: 0; bottom: 0; width: 20%; font-family: var(--pixel); font-size: 9px; color: #cfe6f5; pointer-events: none; }
.marks div { position: absolute; left: 0; display: flex; align-items: center; gap: 4px; opacity: 0.6; }
.marks span.tick { display: block; width: 6px; height: 2px; background: #cfe6f5; }
.tire { position: absolute; left: 45%; width: 10%; transition: top 1.8s steps(18); }
.tire img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.hud-depth { position: absolute; right: 12px; top: 12px; font-family: var(--pixel); font-size: 12px; color: var(--accent); background: rgba(5, 12, 22, 0.72); padding: 7px 9px; }
.gauge { position: absolute; right: 16px; top: 50px; bottom: 16px; width: 8px; background: rgba(5, 12, 22, 0.55); box-shadow: 0 0 0 2px rgba(207, 230, 245, 0.22); }
.gauge span { position: absolute; left: 0; right: 0; transform-origin: top; animation: grow 1.8s steps(18) both; }
.bubbles { position: absolute; left: 30%; bottom: 100%; width: 40%; height: 48px; display: none; }
.bubbles span { position: absolute; border: 2px solid #cfeefc; animation: rise 1.8s steps(9) infinite; }
.pop { position: absolute; left: 115%; top: 10%; white-space: nowrap; font-family: var(--pixel); font-size: 10px; color: var(--bg); padding: 6px 7px; box-shadow: 3px 3px 0 #050c16; display: none; }
.sinking .bubbles, .sinking .pop { display: block; }
.sinking .pop { animation: pop 2.6s steps(13) both; }
.sinking .wheel { animation: spin 1.8s steps(12) 1; }
.bob .wheel { animation: bob 1.6s steps(4) infinite; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes rise { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(-60px); opacity: 0; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pop { 0% { opacity: 0; transform: translateY(6px) scale(.8); } 15% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }

/* Ebenen über dem See */
.layer { position: absolute; box-sizing: border-box; }
.center-bottom { left: 50%; bottom: 20px; transform: translateX(-50%); width: min(560px, calc(100% - 72px)); }
.card { background: var(--panel); border: 3px solid var(--line); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.menu { bottom: 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.menu .info { font-family: var(--pixel); font-size: 10px; color: #cfe6f5; text-shadow: 2px 2px 0 #050c16; }
.menu .go { font-size: 13px; padding: 16px 26px; min-height: 52px; box-shadow: 4px 4px 0 #050c16; }
.packs { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; background: rgba(5, 12, 22, 0.6); padding: 6px 8px; }
.packs > span { font-size: 14px; color: var(--muted); padding: 0 6px; }
.packs button { display: flex; align-items: center; gap: 6px; font-family: var(--body); font-size: 15px; background: transparent; border: 0; padding: 10px 8px; min-height: 44px; }
.dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 8px; }
.linkish { font-family: var(--body); font-size: 14px; background: transparent; color: var(--muted); border: 0; padding: 8px; min-height: 40px; text-decoration: underline; }
.help { background: rgba(5, 12, 22, 0.82); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; text-align: left; font-size: 15px; line-height: 1.45; color: var(--soft); }
.help .tiers { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; }
.help .tiers span { display: flex; align-items: center; gap: 5px; }

.question { left: 16px; right: 48px; top: 16px; max-width: 640px; }
.qhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.qhead .lbl { font-family: var(--pixel); font-size: 10px; color: var(--muted); }
.qhead .t { font-family: var(--pixel); font-size: 13px; }
.timebar { height: 6px; background: var(--bg); }
.timebar div { height: 100%; }
.cat { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.question h2 { margin: 0; font-size: 24px; line-height: 1.3; font-weight: 700; }

.answerbar { display: flex; align-items: center; gap: 6px; background: rgba(5, 12, 22, 0.72); border: 2px solid rgba(207, 230, 245, 0.28); padding: 6px 6px 6px 14px; }
.answerbar input { flex: 1 1 auto; min-width: 0; font-family: var(--body); font-size: 19px; padding: 10px 4px; background: transparent; color: var(--text); border: 0; min-height: 44px; }
.answerbar input::placeholder { color: #8aa0b8; }
.answerbar button { flex: 0 0 auto; font-size: 10px; padding: 12px 14px; min-height: 44px; }
.suggest { bottom: 84px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: rgba(11, 22, 38, 0.92); border: 3px dashed var(--accent); padding: 12px 14px; font-size: 17px; }
.suggest strong { color: var(--accent); }
.suggest .b { display: flex; gap: 8px; }
.suggest button { font-family: var(--pixel); font-size: 10px; padding: 12px; min-height: 44px; }
.suggest .no { background: transparent; border: 3px solid var(--line); }

.result { max-height: 60%; overflow-y: auto; }
.rowx { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.badge { font-family: var(--pixel); font-size: 10px; color: var(--bg); padding: 6px 8px; }
.ans { font-size: 22px; font-weight: 700; }
.pts { font-family: var(--pixel); font-size: 11px; color: #7fc3ea; }
.note { font-size: 15px; color: var(--soft); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chips > span:first-child { font-size: 13px; color: var(--muted); }
.chip { display: flex; align-items: center; gap: 5px; background: #0f1d31; padding: 4px 8px; font-size: 14px; }
.result .btn-main, .end .btn-main { font-size: 11px; padding: 13px 16px; min-height: 46px; }

.end { left: 50%; top: 16px; bottom: 16px; transform: translateX(-50%); width: min(560px, calc(100% - 72px)); overflow-y: auto; padding: 20px; gap: 14px; }
.end .big { font-family: var(--pixel); font-size: 28px; color: var(--accent); }
.end .line { font-size: 17px; color: var(--soft); }
.sum { display: flex; flex-direction: column; gap: 6px; }
.sum div { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #0f1d31; padding: 7px 12px; font-size: 16px; }
.sum div span:first-child { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sum .p { font-family: var(--pixel); font-size: 10px; color: var(--soft); white-space: nowrap; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btns button { flex: 1 1 140px; font-family: var(--pixel); font-size: 11px; padding: 12px; min-height: 48px; }
.btns .ghost { background: transparent; border: 3px solid var(--line); }
.toast { font-size: 14px; color: #7fd1a8; min-height: 18px; }

footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 15px; color: #8aa0b8; text-align: center; }

/* Textseiten */
.doc { max-width: 720px; margin: 0 auto; padding: 32px 16px 56px; display: flex; flex-direction: column; gap: 24px; }
.doc .back { font-family: var(--pixel); font-size: 12px; text-decoration: none; }
.doc section { background: #13233a; border: 4px solid var(--line); box-shadow: 8px 8px 0 #050c16; padding: 28px; display: flex; flex-direction: column; gap: 16px; font-size: 18px; line-height: 1.55; }
.doc h1 { margin: 0; font-family: var(--pixel); font-size: 20px; line-height: 1.5; }
.doc h2 { margin: 0; font-size: 20px; }
.doc p { margin: 0; }
.doc .muted { color: var(--muted); }

@media (max-width: 560px) {
  .question { top: auto; bottom: 84px; left: 12px; right: 36px; }
  .suggest { z-index: 2; }
  .question h2 { font-size: 20px; }
  .brand p { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scene, .tire { transition: none; }
  .bob .wheel, .sinking .wheel, .bubbles span { animation: none; }
}

/* Datenschutzerklärung */
.legal { font-size: 16px !important; line-height: 1.6 !important; gap: 12px !important; overflow-wrap: anywhere; }
.legal h2 { margin-top: 12px; font-size: 20px; }
.legal h3 { margin: 6px 0 0; font-size: 17px; }
.legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal .index { padding-left: 0; list-style: none; }
.legal .seal { font-size: 13px; color: var(--muted); }
.legal, .legal h2, .legal h3 { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; }
.legal h1 { font-size: 15px !important; overflow-wrap: normal; hyphens: auto; }
.legal { padding: 22px !important; }

/* Vollbild-See: kaum Rand drumherum */
:root { --bg: #07090d; --lake-h: max(480px, calc(100dvh - 96px)); }
html, body { background: var(--bg); }
.page { max-width: none; padding: 8px 0 10px; gap: 8px; }
header { padding: 0 14px; }
.lake { border: 0; border-top: 3px solid #1a2638; border-bottom: 3px solid #1a2638; box-shadow: none; }
footer { font-size: 13px; padding: 0 14px; }
