:root {
  --bg: #0b1324;
  --bg-2: #111c33;
  --panel: rgba(20, 34, 62, 0.78);
  --line: rgba(159, 211, 255, 0.16);
  --text: #e8f1ff;
  --muted: #93a6c6;
  --ice: #9fd3ff;
  --ice-strong: #6fb8f5;
  --accent: #ffd36e;
  --ok: #5fd38a;
  --bad: #ff6b6b;
  --radius: 6px;
  --max: 1080px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; background-color: var(--bg-2); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(111, 184, 245, 0.22), transparent 60%),
    radial-gradient(900px 500px at 10% 10%, rgba(140, 110, 255, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-color: var(--bg-2);
  background-repeat: no-repeat;
  min-height: 100vh;
}

#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
header, main, footer { position: relative; z-index: 1; }

a { color: var(--ice); }
a:hover { color: #fff; }
code { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
[hidden] { display: none !important; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .8rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(11, 19, 36, 0.82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: .04em; text-decoration: none; color: var(--text); font-size: 1.1rem; }
.brand-block { width: 22px; height: 22px; background: linear-gradient(180deg, #fff 0 35%, var(--ice-strong) 35% 100%); box-shadow: inset -3px -3px 0 rgba(0,0,0,.25); }
.nav nav { display: flex; gap: 1.4rem; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav nav a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); font-size: 1.2rem; padding: .2rem .6rem; border-radius: var(--radius); cursor: pointer; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav nav.open { display: flex; }
  .nav nav a { padding: .9rem clamp(1rem, 4vw, 2.5rem); border-top: 1px solid var(--line); }
}

/* ---------- Hero ---------- */
.hero { text-align: center; padding: clamp(4rem, 12vh, 8rem) 1.25rem 3rem; max-width: var(--max); margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .3em; color: var(--ice); font-weight: 700; font-size: .85rem; margin: 0 0 .5rem; }
.hero h1 {
  margin: 0; font-size: clamp(3rem, 11vw, 6.5rem); line-height: 1; font-weight: 900; letter-spacing: .02em;
  color: #fff; text-shadow: 0 4px 0 #3c6fa3, 0 8px 0 #24456a, 0 14px 30px rgba(0,0,0,.45);
}
.tagline { color: var(--muted); font-size: 1.15rem; margin: 1.4rem 0 2.2rem; }

.countdown { display: inline-flex; gap: clamp(.5rem, 2vw, 1rem); }
.cd-cell {
  min-width: clamp(70px, 18vw, 110px); padding: 1rem .5rem .7rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.25);
}
.cd-cell span { display: block; font-family: var(--mono); font-size: clamp(2rem, 7vw, 3.2rem); font-weight: 700; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.cd-cell small { display: block; margin-top: .4rem; color: var(--muted); text-transform: uppercase; letter-spacing: .15em; font-size: .72rem; }
.cd-label { color: var(--ice); margin: 1rem 0 2rem; font-weight: 600; }
.countdown.live .cd-cell { display: none; }
.live-banner { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 800; color: var(--accent); }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .75rem 1.4rem; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; cursor: pointer; border: 0; font: inherit; font-weight: 700;
  transition: transform .08s ease, filter .15s ease;
}
.btn:active { transform: translateY(2px); }
.btn-primary { background: var(--ice); color: #08213b; box-shadow: inset 0 -4px 0 rgba(0,0,0,.22); }
.btn-primary:hover { filter: brightness(1.1); color: #08213b; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ice); color: #fff; }
.btn-big { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-small { padding: .45rem .9rem; font-size: .9rem; }
.btn-discord { margin-top: 1rem; background: #5865f2; color: #fff; }
.btn-discord:hover { color: #fff; filter: brightness(1.1); }
.btn.disabled { opacity: .45; pointer-events: none; }

/* ---------- Status ---------- */
.status-bar {
  max-width: var(--max); margin: 0 auto 1rem; padding: .9rem 1.25rem;
  display: flex; flex-wrap: wrap; gap: .8rem 2rem; align-items: center; justify-content: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
@media (max-width: 1120px) { .status-bar { margin-left: 1.25rem; margin-right: 1.25rem; } }
.status-item { display: flex; align-items: center; gap: .5rem; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--muted); }
.dot.on { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.dot.off { background: var(--bad); }
.status-item code { background: rgba(0,0,0,.3); padding: .15rem .5rem; border-radius: 4px; }
.copy { background: none; border: 1px solid var(--line); color: var(--ice); border-radius: 4px; padding: .15rem .6rem; cursor: pointer; font: inherit; font-size: .85rem; }
.copy:hover { border-color: var(--ice); }

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 4rem 1.25rem 1rem; }
.section h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 1.5rem; }
.section h2::before { content: ""; display: inline-block; width: 14px; height: 14px; background: var(--ice); margin-right: .7rem; vertical-align: middle; transform: translateY(-2px); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 1.5rem; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.panel h3 { margin-top: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Download ---------- */
.download-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem;
}
.dl-icon svg { width: 72px; height: 72px; display: block; }
.dl-body h3 { margin: 0 0 .8rem; font-size: 1.35rem; }
.badge { font-size: .8rem; background: rgba(159,211,255,.15); color: var(--ice); padding: .15rem .55rem; border-radius: 4px; vertical-align: middle; font-family: var(--mono); }
.dl-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.8rem; margin: 0; }
.dl-meta dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.dl-meta dd { margin: 0; font-weight: 600; }
.dl-action { text-align: center; }
.dl-action p { margin: .5rem 0 0; }
@media (max-width: 820px) {
  .download-card { grid-template-columns: 1fr; text-align: center; }
  .dl-icon { justify-self: center; }
  .dl-meta { justify-content: center; }
}

/* ---------- Anleitung ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps li {
  counter-increment: step; position: relative; padding: 1.2rem 1.4rem 1.2rem 4.4rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.steps li::before {
  content: counter(step); position: absolute; left: 1.2rem; top: 1.15rem;
  width: 2.2rem; height: 2.2rem; display: grid; place-items: center;
  background: var(--ice); color: #08213b; font-weight: 900; font-family: var(--mono);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.25);
}
.steps h3 { margin: 0 0 .25rem; font-size: 1.1rem; }
.steps p { margin: 0; color: #cdd9ee; }
.inline-address { background: rgba(0,0,0,.3); padding: .1rem .45rem; border-radius: 4px; }
.hint { margin-top: 1.25rem; color: var(--muted); }

/* ---------- Map ---------- */
.map-frame {
  position: relative; height: min(75vh, 680px); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(0deg, rgba(159,211,255,.05) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(159,211,255,.05) 0 1px, transparent 1px 32px),
    #0a1222;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: .6rem; padding: 1.5rem; max-width: 520px; margin: 0 auto; }
.map-placeholder p { margin: 0; }

/* ---------- Regeln & Infos ---------- */
.rules { padding-left: 1.3rem; margin: 0; }
.rules li { margin-bottom: .55rem; }
.rules li::marker { color: var(--ice); font-weight: 700; }
.info-list { margin: 0; }
.info-list dt { font-weight: 700; color: var(--ice); }
.info-list dd { margin: 0 0 .9rem; }

/* ---------- Footer ---------- */
.footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 4rem 1.25rem 2.5rem; }
.footer p { margin: .3rem 0; }
.legal { display: flex; gap: 1.2rem; justify-content: center; }
.legal a { color: var(--muted); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ice); color: #08213b; font-weight: 700; padding: .6rem 1.1rem; border-radius: var(--radius);
  opacity: 0; transition: opacity .2s, transform .2s; z-index: 20; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Unterseiten (Impressum/Datenschutz) ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 3rem 1.25rem; }
.page h1 { font-size: 2rem; }
.page .back { display: inline-block; margin-bottom: 1.5rem; }
