/* Öffentliche Seiten (Startseite, Konto, Rechtliches): hell, frisch, Abenteuer-Farben. Das Spiel selbst nutzt game.css. */
:root {
    --paper: #fffdf8;
    --sky: #eaf6fa;
    --sand: #fff4dc;
    --ink: #1f2b3a;
    --muted: #5b6878;
    --line: #e3e8ee;
    --teal: #0e7c80;      /* Text und Knöpfe auf Weiß: Kontrast 5,0:1 */
    --teal-soft: #d6f1f1;
    --sun: #ffc94a;
    --coral: #ff6b57;
    --coral-ink: #c23a26; /* Kontrast 5,1:1 */
    --radius: 18px;
    --shadow: 0 10px 30px rgba(31, 43, 58, .10);
    --font: "Avenir Next", "Nunito", "Segoe UI", ui-rounded, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 680px; }
.eyebrow { display: inline-block; font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-ink); margin-bottom: 10px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kopf */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255, 253, 248, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 20px; }
.brand img { height: 48px; width: auto; }
.badge { display: inline-block; background: var(--sun); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; }
.site-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-nav a:hover { color: var(--teal); }
.site-nav a.btn--primary, .site-nav a.btn--primary:hover { color: #fff; }
@media (max-width: 860px) { .site-nav .anchor { display: none; } }
@media (max-width: 520px) {
    .site-head .wrap { gap: 10px; }
    .brand img { height: 34px; }
    .brand .badge { display: none; }
    .site-nav { gap: 12px; font-size: 15px; }
    .btn--small { padding: 6px 12px; }
}

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 99px; border: 2px solid transparent;
    font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 6px 16px rgba(14, 124, 128, .3); }
.btn--primary:hover { background: #0b6a6d; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--small { padding: 7px 16px; font-size: 15px; }
.btn:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

/* Startbereich */
.hero { background: linear-gradient(180deg, var(--sky) 0%, var(--paper) 100%); padding: 56px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.5vw, 76px); font-weight: 900; letter-spacing: -.03em; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 16px; }
.seats { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px 6px 8px; font-weight: 600; font-size: 15px; }
.seats .dot { width: 10px; height: 10px; border-radius: 50%; background: #3cb371; box-shadow: 0 0 0 4px rgba(60, 179, 113, .2); }
.seats--full .dot { background: var(--coral); box-shadow: 0 0 0 4px rgba(255, 107, 87, .2); }
.stage { position: relative; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: #cfe9f1; border: 6px solid #fff; }
.stage__bg { position: absolute; inset: 0; background-size: auto 100%; background-repeat: no-repeat; image-rendering: pixelated; animation: pan 38s ease-in-out infinite alternate; }
@keyframes pan { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.stage canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.stage__label { position: absolute; left: 14px; bottom: 12px; background: rgba(255, 255, 255, .92); border-radius: 12px; padding: 6px 12px; font-size: 14px; font-weight: 600; }
.stage__label span { color: var(--muted); font-weight: 500; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .stage__bg { animation: none; background-position: 30% 50%; } }

/* Abschnitte */
.section { padding: 84px 0; }
.section--sky { background: var(--sky); }
.section--sand { background: var(--sand); }
.section__head { max-width: 760px; margin-bottom: 40px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--teal-soft); color: var(--teal); font-weight: 900; font-size: 20px; margin-bottom: 16px; }
.step:nth-child(2)::before { background: #fff1c9; color: #8a5d00; }
.step:nth-child(3)::before { background: #ffe1dc; color: var(--coral-ink); }
.step p { color: var(--muted); margin: 0; }
.example { display: inline-block; background: var(--sky); border-radius: 8px; padding: 1px 8px; font-weight: 600; color: var(--ink); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Figuren */
.cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.figure { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 18px; text-align: center; }
.figure canvas { width: 120px; height: 150px; margin: 0 auto 10px; display: block; }
.figure h3 { font-size: 17px; margin-bottom: 4px; }
.figure p { font-size: 15px; line-height: 1.45; color: var(--muted); margin: 0 0 8px; }
.figure small { display: block; font-size: 13px; line-height: 1.35; color: var(--teal); font-weight: 600; }

/* Welten */
.worlds { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.world { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.world img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; image-rendering: pixelated; }
.world div { padding: 16px 18px 18px; }
.world .eyebrow { font-size: 12px; margin-bottom: 4px; }
.world h3 { font-size: 18px; margin-bottom: 4px; }
.world p { font-size: 15px; color: var(--muted); margin: 0; }
.bridges { display: grid; gap: 14px; margin-top: 44px; }
.bridge { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; background: #fff; border-radius: var(--radius); padding: 14px; border: 1px solid var(--line); }
.bridge figure { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; }
.bridge figure:last-child { grid-template-columns: 1fr 110px; text-align: right; }
.bridge figure:last-child img { order: 2; }
.bridge img { width: 110px; height: 62px; object-fit: cover; border-radius: 10px; image-rendering: pixelated; }
.bridge strong { display: block; font-size: 15px; }
.bridge span { font-size: 13px; color: var(--muted); }
.bridge .via { text-align: center; font-size: 13px; color: var(--teal); font-weight: 700; max-width: 180px; }
.bridge .via::before { content: "⟷"; display: block; font-size: 26px; line-height: 1; color: var(--coral); }
@media (max-width: 720px) { .bridge { grid-template-columns: 1fr; } .bridge figure:last-child { grid-template-columns: 110px 1fr; text-align: left; } .bridge figure:last-child img { order: 0; } }

/* Gegenstände */
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.item { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; aspect-ratio: 1; display: grid; place-items: center; cursor: help; }
.item img { width: 64%; image-rendering: pixelated; transition: transform .15s; }
.item:hover img, .item:focus img { transform: scale(1.12) rotate(-3deg); }
.item .tip { position: absolute; z-index: 5; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: 240px; background: var(--ink); color: #fff;
    border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.45; pointer-events: none; display: none; max-width: 70vw; }
.item .tip strong { display: block; color: var(--sun); }
.item:hover .tip, .item:focus .tip { display: block; }
#dinge { overflow-x: clip; }

/* Zahlen */
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.number { background: #fff; border-radius: var(--radius); padding: 22px; text-align: center; border: 1px solid var(--line); }
.number b { display: block; font-size: 40px; font-weight: 900; color: var(--teal); line-height: 1.1; }
.number span { color: var(--muted); font-size: 15px; }
@media (max-width: 720px) { .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { padding-left: 32px; position: relative; margin-bottom: 10px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--teal-soft); color: var(--teal);
    display: grid; place-items: center; font-weight: 900; font-size: 13px; }

/* Häufige Fragen */
.faq { max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

.cta { text-align: center; background: linear-gradient(135deg, var(--teal) 0%, #18a3a0 100%); color: #fff; border-radius: 28px; padding: 56px 24px; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .9); max-width: 620px; margin: 0 auto 24px; }

/* Fuß */
.site-foot { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--muted); font-size: 15px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; }
.site-foot a { color: var(--muted); }
.site-foot .spacer { margin-left: auto; }

/* Formulare (Konto) */
.page { padding: 56px 0 80px; background: linear-gradient(180deg, var(--sky) 0, var(--paper) 360px); min-height: calc(100vh - 68px); }
.form-card { max-width: 480px; margin: 0 auto; background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: 34px 32px; }
.form-card h1 { font-size: 30px; font-weight: 900; }
.form-card .lead { font-size: 17px; }
.form-card form { display: grid; gap: 16px; margin-top: 18px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field textarea { font: inherit; font-weight: 400; padding: 11px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--teal); outline: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.consent input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--teal); }
.form-card .btn { width: 100%; }
.alert { border-radius: 12px; padding: 12px 14px; font-size: 15px; margin: 12px 0 0; }
.alert--error { background: #ffe9e5; color: #8f2414; }
.alert--ok { background: var(--teal-soft); color: #075255; }
.alert ul { margin: 0; padding-left: 18px; }
.form-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 18px; font-size: 15px; }
.trap { position: absolute; left: -9999px; }
.mail-art { font-size: 54px; line-height: 1; margin-bottom: 10px; }

/* Rechtstexte */
.prose { max-width: 760px; margin: 0 auto; background: #fff; border-radius: 24px; padding: 40px; box-shadow: var(--shadow); }
.prose h1 { font-size: 34px; font-weight: 900; }
.prose h2 { font-size: 22px; margin-top: 1.6em; }
.prose .todo { background: #fff1c9; border-left: 4px solid var(--sun); padding: 10px 14px; border-radius: 8px; }
