@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap");

:root {
    color-scheme: dark;
    --ink: #eef6ff;
    --muted: #aebed3;
    --blue-950: #030a14;
    --blue-900: #061225;
    --blue-800: #0b1c36;
    --blue-700: #12345a;
    --line: rgba(117, 178, 226, .34);
    --gold: #ffc84d;
    --gold-light: #ffe6a0;
    --cyan: #67c7ff;
    --shadow: 0 24px 70px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--blue-950);
    color: var(--ink);
    font-family: "Inter", "Segoe UI", sans-serif;
    line-height: 1.6;
}
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .brand-main { font-family: "Cinzel", Georgia, serif; }

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 10px;
    left: 10px;
    padding: 10px 14px;
    background: #fff;
    color: #000;
    transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.site-header {
    position: fixed;
    z-index: 50;
    top: 0;
    width: 100%;
    border-bottom: 1px solid transparent;
    transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.site-header.scrolled {
    border-color: var(--line);
    background: rgba(3, 10, 20, .88);
    backdrop-filter: blur(16px);
}
.nav-shell {
    width: min(1180px, calc(100% - 40px));
    min-height: 84px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand { display: inline-grid; text-decoration: none; line-height: 1; }
.brand-main { color: var(--gold); font-size: 23px; font-weight: 800; letter-spacing: .04em; }
.brand-sub { margin-top: 5px; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .5em; }
nav { display: flex; align-items: center; gap: 30px; }
nav a { color: #dce9f8; font-size: 14px; font-weight: 600; text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--gold); }
.nav-download { padding: 10px 18px; border: 1px solid rgba(255, 200, 77, .62); border-radius: 3px; }
.menu-toggle { display: none; }

.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #000 url("/assets/funfiesta-characters.png") center bottom / cover no-repeat;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 68% 44%, transparent 0 16%, rgba(3, 10, 20, .08) 45%, rgba(3, 10, 20, .82) 100%);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,.94) 0, rgba(2,8,18,.82) 30%, rgba(2,8,18,.34) 58%, rgba(0,0,0,.12) 100%),
        linear-gradient(0deg, #030a14 0, rgba(3,10,20,.2) 32%, rgba(0,0,0,.08) 72%, rgba(0,0,0,.55) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 40px));
    padding: 120px 0 100px;
}
.hero-content::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 70px auto 48px -70px;
    width: min(720px, 65vw);
    border-left: 1px solid rgba(255, 200, 77, .28);
    background: linear-gradient(90deg, rgba(0,0,0,.3), transparent);
    pointer-events: none;
}
.eyebrow { margin-bottom: 12px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin-bottom: 18px; font-size: clamp(58px, 9vw, 116px); line-height: .9; letter-spacing: -.045em; text-shadow: 0 8px 34px rgba(0,0,0,.58); }
.hero h1 span { color: var(--gold); }
.hero-lead { max-width: 670px; color: #e1ebf7; font-size: clamp(18px, 2vw, 23px); }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.button {
    display: inline-flex;
    min-height: 52px;
    padding: 0 26px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 3px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .05em;
    transition: transform .2s ease, filter .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.button-primary { background: linear-gradient(135deg, #ffd15b, #e89a20); color: #07101d; box-shadow: 0 10px 30px rgba(232,154,32,.25); }
.button-secondary { border-color: rgba(221,238,255,.52); background: rgba(7,22,45,.55); color: #fff; backdrop-filter: blur(8px); }
.hero-note { margin-top: 17px; color: #9fb5cd; font-size: 12px; }
.scroll-cue { position: absolute; z-index: 2; bottom: 28px; left: 50%; display: grid; place-items: center; color: #ccdaea; font-size: 11px; text-decoration: none; transform: translateX(-50%); }
.scroll-arrow { color: var(--gold); font-size: 21px; }

.section { width: min(1180px, calc(100% - 40px)); margin: auto; padding: 110px 0; }
.section-heading { max-width: 730px; margin-bottom: 42px; }
.section-heading h2, .world-panel > h2, .download-callout h2 { margin-bottom: 16px; font-size: clamp(34px, 5vw, 54px); line-height: 1.08; }
.section-heading > p:last-child, .world-panel > p { color: var(--muted); font-size: 17px; }
.news-section { background: radial-gradient(circle at top right, rgba(30,83,132,.15), transparent 35%); }
.news-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; }
.news-card {
    min-height: 300px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(15,38,69,.85), rgba(5,17,33,.94));
    box-shadow: 0 18px 45px rgba(0,0,0,.2);
}
.news-card-featured { position: relative; overflow: hidden; border-color: rgba(255,200,77,.42); }
.news-card-featured::after { content: ""; position: absolute; right: -55px; bottom: -75px; width: 220px; height: 220px; border: 1px solid rgba(255,200,77,.17); border-radius: 50%; box-shadow: 0 0 0 30px rgba(255,200,77,.035), 0 0 0 60px rgba(255,200,77,.025); }
.news-badge { display: inline-block; margin-bottom: 52px; padding: 6px 10px; border: 1px solid rgba(255,200,77,.36); color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.news-date { color: var(--cyan); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.news-card h3 { font-size: 22px; }
.news-card p:last-child { color: var(--muted); }
.news-icon { width: 44px; height: 44px; margin-bottom: 54px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold); font-size: 20px; transform: rotate(45deg); }
.news-icon::first-letter { transform: rotate(-45deg); }

.world-section { padding: 120px 20px; background: linear-gradient(rgba(3,10,20,.72), rgba(3,10,20,.94)), url("/assets/funfiesta-characters.png") center 42% / cover fixed; }
.world-panel { width: min(1180px, 100%); margin: auto; padding: 58px; border: 1px solid rgba(105,183,235,.38); border-radius: 10px; background: rgba(4,14,28,.82); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.world-panel > h2, .world-panel > p { max-width: 760px; }
.feature-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-grid article { padding: 24px 0 0; border-top: 1px solid var(--line); }
.feature-number { color: var(--gold); font-family: "Cinzel", serif; font-size: 13px; }
.feature-grid h3 { margin: 14px 0 8px; font-size: 19px; }
.feature-grid p { margin-bottom: 0; color: var(--muted); font-size: 14px; }

.steps-section { padding-bottom: 80px; }
.steps { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; counter-reset: step; }
.steps li { position: relative; display: flex; gap: 18px; padding: 25px 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps li + li { border-left: 1px solid var(--line); }
.steps li > span { flex: 0 0 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,200,77,.48); border-radius: 50%; color: var(--gold); font-family: "Cinzel", serif; }
.steps h3 { margin-bottom: 6px; font-size: 17px; }
.steps p { margin: 0; color: var(--muted); font-size: 13px; }
.download-callout { margin-top: 85px; padding: 38px 42px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid rgba(255,200,77,.38); background: linear-gradient(110deg, rgba(22,57,96,.75), rgba(7,21,40,.88)); }
.download-callout h2 { margin: 0; font-size: clamp(25px, 4vw, 38px); }
.download-callout .eyebrow { margin-bottom: 8px; }

footer { padding: 48px 20px 26px; border-top: 1px solid var(--line); background: #02070e; }
.footer-inner { width: min(1180px, 100%); margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.footer-inner p { margin: 9px 0 0; color: #71879f; font-size: 12px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: #adc0d5; font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.legal { width: min(1180px, 100%); margin: 36px auto 0; padding-top: 20px; border-top: 1px solid rgba(110,155,195,.16); color: #5f748b; font-size: 11px; }

@media (max-width: 900px) {
    .menu-toggle { width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border: 1px solid var(--line); background: rgba(3,10,20,.65); }
    .menu-toggle span:not(.sr-only) { width: 20px; height: 2px; display: block; background: #fff; }
    nav { position: absolute; top: 76px; right: 20px; left: 20px; padding: 20px; display: none; align-items: stretch; flex-direction: column; gap: 0; border: 1px solid var(--line); background: rgba(3,10,20,.97); box-shadow: var(--shadow); }
    nav.open { display: flex; }
    nav a { padding: 13px 10px; }
    .nav-download { margin-top: 8px; text-align: center; }
    .news-grid { grid-template-columns: 1fr; }
    .news-card { min-height: 240px; }
    .feature-grid, .steps { grid-template-columns: 1fr; }
    .steps li + li { border-left: 0; border-top: 0; }
    .download-callout { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 600px) {
    .nav-shell, .hero-content, .section { width: min(100% - 28px, 1180px); }
    .nav-shell { min-height: 72px; }
    .brand-main { font-size: 19px; }
    .brand-sub { font-size: 8px; }
    .hero { min-height: 820px; background-position: 61% center; }
    .hero::before { background: rgba(3,10,20,.32); }
    .hero-overlay { background: linear-gradient(0deg, #030a14 0, rgba(3,10,20,.65) 53%, rgba(3,10,20,.4)); }
    .hero-content { padding-top: 170px; align-self: start; }
    .hero-content::before { inset: 120px -14px 25px -14px; width: auto; border-left: 0; background: rgba(0,0,0,.18); }
    .hero h1 { font-size: clamp(55px, 18vw, 78px); }
    .hero-lead { font-size: 17px; }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .section { padding: 80px 0; }
    .world-section { padding: 80px 14px; background-attachment: scroll; }
    .world-panel { padding: 30px 22px; }
    .steps li { padding: 22px 10px; }
    .download-callout { margin-top: 60px; padding: 28px 22px; }
    .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Registrierung */
.registration-page {
    min-height: 100vh;
    background: linear-gradient(90deg, rgba(0,0,0,.9), rgba(3,10,20,.55), rgba(0,0,0,.78)), #030a14 url("/assets/funfiesta-characters.png") center bottom / cover fixed no-repeat;
}
.registration-main { min-height: 100vh; padding: 130px 20px 60px; display: grid; place-items: center; }
.registration-card { width: min(720px, 100%); padding: clamp(26px, 5vw, 48px); border: 1px solid rgba(117,178,226,.48); border-radius: 10px; background: rgba(4,14,28,.94); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.registration-intro h1 { margin-bottom: 12px; font-size: clamp(34px, 6vw, 52px); line-height: 1.08; }
.registration-intro > p:last-child { color: var(--muted); }
.registration-form { margin-top: 30px; display: grid; gap: 20px; }
.registration-form label { display: grid; gap: 7px; }
.registration-form label > span { color: #eaf4ff; font-size: 14px; font-weight: 700; }
.registration-form small, .privacy-note { color: #8fa6bf; font-size: 12px; }
.registration-form input:not([type="checkbox"]) { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid rgba(117,178,226,.4); border-radius: 4px; outline: none; background: #071426; color: #fff; font: inherit; }
.registration-form input:not([type="checkbox"]):focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,200,77,.12); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox-field { grid-template-columns: auto 1fr; align-items: start; }
.checkbox-field input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #e9a329; }
.checkbox-field span { font-weight: 500 !important; }
.register-button { width: 100%; border: 0; cursor: pointer; font: inherit; }
.privacy-note { margin: -6px 0 0; text-align: center; }
.form-message { margin-top: 24px; padding: 16px 18px; display: grid; gap: 6px; border-radius: 5px; }
.form-message span { color: #dbe8f5; }
.form-message ul { margin: 5px 0 0; padding-left: 20px; }
.success-message { border: 1px solid rgba(93,215,139,.55); background: rgba(31,113,64,.3); }
.success-message strong { color: #82eda9; }
.error-message { border: 1px solid rgba(255,105,105,.55); background: rgba(125,35,35,.28); }
.error-message strong { color: #ff9d9d; }

@media (max-width: 600px) {
    .registration-page { background-attachment: scroll; }
    .registration-main { padding: 105px 14px 30px; }
    .registration-page .site-header nav { position: static; padding: 0; display: flex; flex-direction: row; border: 0; background: none; box-shadow: none; }
    .registration-page .site-header nav a { padding: 8px; }
    .form-grid { grid-template-columns: 1fr; }
}
