/* WichtelCraft – Website. Keine externen Schriften oder Dienste (datenschutzfreundlich). */
:root {
  --nacht: #08111f;
  --nacht-2: #0d1b2f;
  --karte: rgba(255, 255, 255, 0.045);
  --karte-rand: rgba(191, 232, 255, 0.12);
  --text: #eaf2fb;
  --text-2: #a9bbd0;
  --rot: #ff4d5e;
  --rot-dunkel: #c8102e;
  --gruen: #3ddc84;
  --gold: #ffd166;
  --eis: #bfe8ff;
  --radius: 18px;
  --schrift: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--schrift);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(61, 220, 132, 0.10), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(255, 77, 94, 0.10), transparent 60%),
    linear-gradient(180deg, #050b16 0%, var(--nacht) 40%, var(--nacht-2) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img.pixel, .logo img { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--eis); text-decoration: none; }
a:hover { color: #fff; }
code, kbd {
  font-family: var(--mono); font-size: .92em;
  background: rgba(191, 232, 255, 0.10); border: 1px solid rgba(191, 232, 255, 0.18);
  padding: .08em .45em; border-radius: 6px; color: #fff;
}

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

/* ---------------------------------------------------------- Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(8, 17, 31, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(191, 232, 255, 0.08);
}
.nav-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; letter-spacing: .2px; font-size: 1.15rem; }
.nav-logo img { image-rendering: pixelated; border-radius: 6px; }
.nav-logo b { color: var(--gruen); }
.nav-logo span { color: var(--rot); }
.nav-logo span b { color: var(--gruen); }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--text-2); font-weight: 600; font-size: .95rem; }
.nav nav a:hover { color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--rot), var(--rot-dunkel));
  box-shadow: 0 8px 24px rgba(255, 77, 94, 0.30), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(255, 77, 94, 0.42); color: #fff; }
.btn-klein { padding: 9px 18px; font-size: .92rem; }

/* ---------------------------------------------------------- Hero */
.hero {
  min-height: calc(100vh - 70px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 60px 16px 80px;
  position: relative;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; pointer-events: none;
  background:
    radial-gradient(60% 120% at 20% 100%, rgba(230, 243, 255, .10), transparent 70%),
    radial-gradient(50% 110% at 80% 100%, rgba(230, 243, 255, .08), transparent 70%);
}
.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .92rem;
  background: rgba(255,255,255,.06); border: 1px solid var(--karte-rand); color: var(--text-2);
  margin-bottom: 28px;
}
.status-pill .punkt { width: 10px; height: 10px; border-radius: 50%; background: #7d8796; box-shadow: 0 0 0 0 rgba(61,220,132,.6); }
.status-pill.online { color: #d8ffe9; }
.status-pill.online .punkt { background: var(--gruen); animation: puls 2s infinite; }
.status-pill.offline .punkt { background: var(--rot); }
.status-pill.wartung { color: #ffe0b8; border-color: rgba(240, 138, 36, .45); }
.status-pill.wartung .punkt { background: #f08a24; }
@keyframes puls { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.55); } 70% { box-shadow: 0 0 0 10px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }

.logo { margin: 0; line-height: 0; }
.logo img { width: min(880px, 92vw); height: auto; filter: drop-shadow(0 12px 30px rgba(0,0,0,.45)) drop-shadow(0 0 40px rgba(255, 77, 94, .18)); animation: schweben 6s ease-in-out infinite; }
@keyframes schweben { 50% { transform: translateY(-6px); } }
.untertitel { max-width: 720px; margin: 26px auto 34px; font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--text-2); }
.untertitel strong { color: #fff; }

.ip-karten { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 44px; }
.ip-karte {
  font: inherit; color: inherit; cursor: pointer; text-align: left;
  display: grid; gap: 2px; min-width: 290px; padding: 18px 22px;
  border-radius: var(--radius); border: 1px solid rgba(255, 77, 94, .35);
  background: linear-gradient(160deg, rgba(255, 77, 94, .16), rgba(255, 77, 94, .04));
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.ip-karte.bedrock { border-color: rgba(61, 220, 132, .35); background: linear-gradient(160deg, rgba(61, 220, 132, .16), rgba(61, 220, 132, .04)); }
.ip-karte:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.4); }
.ip-label { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.ip-label em { font-style: normal; color: var(--gold); }
.ip { font-family: var(--mono); font-size: 1.15rem; font-weight: 700; color: #fff; }
.ip small { font-size: .8rem; color: var(--gold); margin-left: 6px; }
.ip-aktion { font-size: .8rem; color: var(--text-2); }

.countdown-titel { margin: 0 0 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; color: var(--gold); }
.kacheln { display: flex; gap: 12px; justify-content: center; }
.kachel {
  width: 96px; padding: 14px 0 10px; border-radius: 16px;
  background: rgba(255,255,255,.05); border: 1px solid var(--karte-rand);
  display: grid; justify-items: center;
}
.kachel span { font-size: 2.3rem; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.1; color: #fff; text-shadow: 0 0 22px rgba(255, 209, 102, .35); }
.kachel small { color: var(--text-2); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------------------------------------------------------- Abschnitte */
.abschnitt { max-width: 1120px; margin: 0 auto; padding: 90px 20px 30px; }
.kicker { margin: 0; color: var(--rot); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; }
h2 { margin: 6px 0 14px; font-size: clamp(1.9rem, 4.2vw, 2.8rem); line-height: 1.15; letter-spacing: -.01em; }
h3 { margin: 12px 0 6px; font-size: 1.15rem; }
.einleitung { max-width: 720px; color: var(--text-2); font-size: 1.08rem; margin: 0 0 34px; }

.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.karte {
  padding: 26px; border-radius: var(--radius);
  background: var(--karte); border: 1px solid var(--karte-rand);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.karte:hover { transform: translateY(-3px); border-color: rgba(255, 209, 102, .35); background: rgba(255,255,255,.065); }
.karte p { margin: 0; color: var(--text-2); }
.karte img { filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }

.schritte { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; counter-reset: s; }
.schritte li { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--karte); border: 1px solid var(--karte-rand); }
.schritte h3 { margin-top: 2px; }
.schritte p { margin: 0; color: var(--text-2); }
.nr {
  flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 900; font-size: 1.2rem; color: #2a1a00; background: linear-gradient(135deg, #ffe08a, var(--gold));
  box-shadow: 0 6px 16px rgba(255, 209, 102, .25);
}
.hinweis { margin-top: 22px; padding: 16px 20px; border-radius: 14px; border-left: 4px solid var(--gruen); background: rgba(61, 220, 132, .08); color: var(--text-2); }
.hinweis strong { color: #fff; }

.live { padding-top: 70px; }
.live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.live-wert { text-align: center; padding: 26px 10px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(191,232,255,.08), rgba(191,232,255,.02)); border: 1px solid var(--karte-rand); }
.live-wert span { display: block; font-size: 2.4rem; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.live-wert small { color: var(--text-2); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.live-namen { text-align: center; color: var(--text-2); min-height: 1.6em; margin-top: 18px; }

.regeln { counter-reset: r; list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.regeln li {
  counter-increment: r; position: relative; padding: 16px 18px 16px 64px; border-radius: 14px;
  background: var(--karte); border: 1px solid var(--karte-rand); color: var(--text);
}
.regeln li::before {
  content: counter(r); position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--rot), var(--rot-dunkel));
}

.raenge { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 26px; }
.rang { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-radius: 14px; background: var(--karte); border: 1px solid var(--karte-rand); }
.rang img { flex: none; }
.rang p { margin: 0; color: var(--text-2); }

.faq { display: grid; gap: 10px; margin-top: 26px; }
.faq details { border-radius: 14px; background: var(--karte); border: 1px solid var(--karte-rand); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--text-2); }

/* ---------------------------------------------------------- Footer & Toast */
.fuss { margin-top: 100px; border-top: 1px solid rgba(191,232,255,.08); background: rgba(5, 11, 22, .6); }
.fuss-innen { max-width: 1120px; margin: 0 auto; padding: 34px 20px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.fuss-links { display: flex; flex-wrap: wrap; gap: 20px; }
.fuss-links a { color: var(--text-2); font-weight: 600; }
.klein { color: #6f8197; font-size: .85rem; margin: 8px 0 0; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0;
  padding: 12px 20px; border-radius: 999px; background: #0f2a1d; border: 1px solid rgba(61,220,132,.5);
  color: #d8ffe9; font-weight: 700; transition: all .25s ease; pointer-events: none; z-index: 20;
}
.toast.sichtbar { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------- Unterseiten */
.seite { max-width: 820px; margin: 0 auto; padding: 70px 20px; }
.seite h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin: 0 0 18px; }
.seite p, .seite li { color: var(--text-2); }
.seite .platzhalter { padding: 14px 18px; border-radius: 12px; background: rgba(255, 209, 102, .08); border: 1px dashed rgba(255, 209, 102, .4); color: var(--gold); }

@media (max-width: 760px) {
  .nav nav { display: none; }
  .nav .btn-klein { margin-left: auto; }
  .kachel { width: 74px; }
  .kachel span { font-size: 1.7rem; }
  .ip-karte { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo img, .status-pill.online .punkt { animation: none; }
}
