@font-face {
  font-family: "Pixel";
  src: url("fonts/press_start_2p.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat_bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #131427;
  --bg-2: #181a33;
  --panel: #1f2240;
  --panel-2: #262a4d;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef0ff;
  --muted: #a7acd3;
  --gold: #f7b928;
  --gold-hi: #ffd864;
  --gold-lo: #b9760f;
  --green: #6cc24a;
  --green-lo: #3f8a2c;
  --sky: #3fc1f0;
  --orange: #e8833a;
  --red: #e5534b;
  --radius: 4px;
  --max: 1120px;
  --pixel: "Pixel", ui-monospace, monospace;
  --head: "Montserrat", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-hi); }
a:hover { color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.pixel { font-family: var(--pixel); letter-spacing: 0.02em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Kopfzeile ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(19, 20, 39, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand span { font: 12px var(--pixel); color: var(--gold-hi); white-space: nowrap; }
.nav ul { display: flex; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav ul a {
  display: block; padding: 8px 12px; border-radius: var(--radius);
  color: var(--muted); text-decoration: none; font: 700 14px var(--head);
}
.nav ul a:hover { color: var(--text); background: var(--line); }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border: 0; border-radius: var(--radius); cursor: pointer;
  font: 700 15px var(--head); text-decoration: none;
  color: #2a1a00; background: var(--gold);
  box-shadow: inset 0 -4px 0 var(--gold-lo), inset 0 2px 0 var(--gold-hi);
  transition: transform 0.08s, filter 0.15s;
}
.btn:hover { filter: brightness(1.08); color: #2a1a00; }
.btn:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 var(--gold-lo); }
.btn.ghost {
  color: var(--text); background: var(--panel-2);
  box-shadow: inset 0 -4px 0 #15172e, inset 0 2px 0 #343964;
}
.btn.ghost:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("img/spawn-abend.jpg") center 40% / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(19, 20, 39, 0.55), rgba(19, 20, 39, 0.25) 75%),
    linear-gradient(to bottom, rgba(19, 20, 39, 0.15) 40%, var(--bg) 98%);
}
.hero .wrap { padding-top: 64px; padding-bottom: 88px; text-align: center; }
.hero .logo {
  width: min(220px, 52vw); margin: 0 auto 24px;
  filter: drop-shadow(0 0 28px rgba(247, 185, 40, 0.45));
  animation: bob 4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-10px); } }
.hero h1 {
  margin: 0 0 18px; font: clamp(24px, 6vw, 50px)/1.25 var(--pixel);
  color: #fff; text-shadow: 4px 4px 0 #000a;
}
.hero h1 em { font-style: normal; color: var(--gold-hi); }
.hero .lead { max-width: 620px; margin: 0 auto 32px; font-size: clamp(16px, 2.3vw, 19px); color: #dde0fb; }

.join {
  display: inline-flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 10px;
  padding: 10px; border-radius: 8px;
  background: rgba(19, 20, 39, 0.75); border: 1px solid var(--line);
}
.join .ip {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 6px 14px; min-width: 0;
}
.join .ip small { font: 700 11px var(--head); color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.join .ip code { font: clamp(13px, 3.4vw, 17px) var(--pixel); color: var(--gold-hi); margin-top: 6px; }

.status {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
  margin-top: 22px; color: var(--muted); font: 700 14px var(--head);
}
.status .dot {
  display: inline-block; width: 10px; height: 10px; margin-right: 6px;
  background: #777b9c; box-shadow: 0 0 0 3px #777b9c33;
}
.status[data-state="on"] .dot { background: var(--green); box-shadow: 0 0 0 3px #6cc24a40; animation: pulse 2s infinite; }
.status[data-state="off"] .dot { background: var(--red); box-shadow: 0 0 0 3px #e5534b40; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px #6cc24a10; } }
.status b { color: var(--text); }
.names { margin-top: 10px; color: var(--muted); font-size: 14px; min-height: 1em; }

/* ---------- Abschnitte ---------- */
section { padding: 72px 0; }
section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.kicker { font: 11px var(--pixel); color: var(--gold); margin: 0 0 14px; }
h2 { margin: 0 0 12px; font: 700 clamp(26px, 4vw, 36px)/1.2 var(--head); }
.intro { max-width: 640px; color: var(--muted); margin: 0 0 40px; }

/* Modi */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.mode {
  position: relative; display: flex; flex-direction: column;
  padding: 28px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line);
  overflow: hidden;
}
.mode::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--accent);
}
.mode.skyfarm { --accent: var(--green); }
.mode.smp { --accent: var(--orange); }
.mode header { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.mode header img { width: 96px; height: 96px; flex: none; }
.mode h3 { margin: 0; font: 18px/1.3 var(--pixel); color: #fff; }
.mode .tag { margin: 8px 0 0; font: 700 14px var(--head); color: var(--accent); }
.mode ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.mode li { position: relative; padding-left: 22px; color: #d6d9f5; }
.mode li::before {
  content: ""; position: absolute; left: 2px; top: 0.6em; width: 8px; height: 8px; background: var(--accent);
}
.mode li b { color: #fff; }

/* Galerie */
.shots { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-top: 8px; }
.shots figure { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.shots img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.shots figcaption { padding: 10px 14px; color: var(--muted); font-size: 14px; }
.shots .stack { display: grid; gap: 16px; }
.shots .stack img { aspect-ratio: 16 / 10; }
.shots .lobby { display: grid; place-items: center; padding: 24px; background: #000; aspect-ratio: 16 / 10; }
.shots .lobby .pair { display: flex; gap: 14px; }
.shots .lobby .pair div { display: grid; justify-items: center; gap: 8px; padding: 12px; border-radius: 6px; }
.shots .lobby .pair img { width: 84px; height: 84px; aspect-ratio: 1; }
.shots .lobby .pair span { font: 9px var(--pixel); color: #fff; }
.shots .lobby .g { background: #2f6b3a; }
.shots .lobby .o { background: #8a4a26; }
.shots .lobby p { margin: 14px 0 0; font: 10px var(--pixel); color: #bbb; }

/* Schritte */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: s; padding: 0; margin: 0; list-style: none; }
.steps li {
  counter-increment: s; position: relative;
  padding: 24px 20px 20px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line);
}
.steps li::before {
  content: counter(s); display: grid; place-items: center;
  width: 34px; height: 34px; margin-bottom: 14px;
  font: 13px var(--pixel); color: #2a1a00; background: var(--gold);
  box-shadow: inset 0 -3px 0 var(--gold-lo);
}
.steps h3 { margin: 0 0 6px; font: 700 17px var(--head); }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.steps code { font: 11px var(--pixel); color: var(--gold-hi); }
.note {
  margin-top: 24px; padding: 16px 18px; border-radius: 8px;
  background: rgba(63, 193, 240, 0.08); border: 1px solid rgba(63, 193, 240, 0.3); color: #cfefff;
}

/* Regeln */
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; padding: 0; margin: 0; list-style: none; }
.rules li { display: flex; gap: 14px; padding: 18px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.rules .ico { flex: none; width: 36px; height: 36px; display: grid; place-items: center; font-size: 20px; background: var(--panel-2); border-radius: 6px; }
.rules h3 { margin: 0 0 4px; font: 700 16px var(--head); }
.rules p { margin: 0; color: var(--muted); font-size: 15px; }

/* Team */
.team { display: flex; flex-wrap: wrap; gap: 16px; }
.member {
  display: flex; align-items: center; gap: 14px; min-width: 240px;
  padding: 16px 20px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line);
}
.member .av {
  width: 48px; height: 48px; display: grid; place-items: center;
  font: 16px var(--pixel); color: #fff; background: var(--c); box-shadow: inset 0 -4px 0 #0004;
}
.member b { display: block; font: 700 17px var(--head); }
.member span { font: 10px var(--pixel); color: var(--c); }

/* Abschluss */
.cta { text-align: center; }
.cta h2 { font: clamp(18px, 3.4vw, 28px)/1.4 var(--pixel); color: var(--gold-hi); }
.cta p { color: var(--muted); margin: 0 auto 26px; max-width: 520px; }

/* Fuß */
footer { padding: 36px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--muted); }
footer .legal { flex-basis: 100%; font-size: 12px; opacity: 0.75; }

/* Rechtstexte */
.doc { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.doc h1 { font: clamp(18px, 4vw, 26px)/1.4 var(--pixel); color: var(--gold-hi); margin: 0 0 28px; }
.doc h2 { font-size: 20px; margin: 32px 0 8px; }
.doc p, .doc li { color: #d6d9f5; }
.todo { background: rgba(229, 83, 75, 0.18); color: #ffc9c5; padding: 0 4px; border-radius: 3px; }

/* Kopier-Hinweis */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 6px; background: var(--green); color: #0e2208;
  font: 700 15px var(--head); box-shadow: inset 0 -3px 0 var(--green-lo);
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Handy */
@media (max-width: 760px) {
  .nav ul { display: none; }
  .nav .btn { margin-left: auto; padding: 8px 14px; font-size: 14px; }
  .hero .wrap { padding-top: 40px; padding-bottom: 64px; }
  section { padding: 56px 0; }
  .shots { grid-template-columns: 1fr; }
  .mode { padding: 22px; }
  .mode header img { width: 76px; height: 76px; }
  .mode h3 { font-size: 15px; }
  .join { width: 100%; }
  .join .ip { align-items: center; flex-basis: 100%; }
  .join .btn { flex: 1; padding: 12px 10px; white-space: nowrap; }
}
@media (min-width: 761px) { .nav .btn { display: none; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
