/* =========================================================
   DarkSMP – Stylesheet
   Schlichter, flacher Stil: echte Screenshots, klare Linien,
   Buttons im Minecraft-Stil, keine Leuchteffekte.
   ========================================================= */

/* ---------- Schriften (selbst gehostet, DSGVO-freundlich) ---------- */
@font-face { font-family: "Chakra Petch"; src: url("../fonts/chakra-petch-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("../fonts/chakra-petch-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* ---------- Farben & Maße ---------- */
:root {
  --bg:        #0f0c15;
  --bg-2:      #15111c;
  --surface:   #1a1523;
  --line:      #2c2539;
  --fg:        #ebe8f0;
  --text:      #c9c3d4;
  --muted:     #9b94a8;
  --accent:    #6f42c9;
  --accent-2:  #7f53d6;
  --accent-dk: #4a2a8c;
  --link:      #b89cf0;
  --ok:        #5bc77d;
  --soon:      #e0a943;
  --heart:     #d8343e;

  --f-display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --f-body:    "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, Consolas, monospace;

  --radius: 4px;
  --nav-h: 68px;
  --wrap: 1160px;

  color-scheme: dark;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.15; color: var(--fg); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
strong { color: var(--fg); font-weight: 600; }
code { font-family: var(--f-mono); font-size: .9em; color: var(--fg); background: var(--bg); border: 1px solid var(--line); padding: 1px 6px; border-radius: 3px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 48px);
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.section { padding-block: clamp(56px, 8vw, 96px); }
.section.tinted { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: grid; gap: 8px; margin-bottom: 36px; max-width: 680px; }
.section-head p { color: var(--muted); }

/* ---------- Buttons (Minecraft-Optik) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--f-body); font-weight: 600; font-size: 1rem;
  padding: .7em 1.25em .8em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .3);
  transition: background-color .15s;
}
.btn:hover { text-decoration: none; color: #fff; }
.btn:active { box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .3); transform: translateY(2px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--accent); border-color: var(--accent-dk); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--fg); }
.btn-ghost:hover { background: #241e30; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .2s, border-color .2s;
}
.nav.is-solid, .nav.is-open { background: var(--bg); border-color: var(--line); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; }
.brand:hover { text-decoration: none; color: #fff; }
.brand img { width: 40px; height: 40px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; padding: 0; margin: 0; }
.nav-links a { display: block; padding: 8px 12px; color: var(--text); font-weight: 500; border-radius: var(--radius); }
.nav-links a:hover { color: #fff; text-decoration: none; background: var(--surface); }
.nav-links a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--accent-2); border-radius: 0; }
.nav .btn { padding: .55em 1em .65em; font-size: .95rem; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--fg); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav.is-open .nav-toggle span { background: transparent; }
.nav.is-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 120px)); padding-bottom: clamp(72px, 10vw, 140px); overflow: hidden; background: var(--bg) url("../img/hero-poster.jpg") center / cover no-repeat; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(12, 9, 18, .68); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1; background: linear-gradient(transparent, var(--bg)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; }
.hero-copy { display: grid; gap: 20px; justify-items: start; min-width: 0; max-width: 620px; }
.hero h1 { font-size: clamp(3rem, 1.8rem + 5vw, 5.2rem); line-height: 1; color: #fff; }
.hero-lead { font-size: 1.2rem; color: #e2dde9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-logo { width: clamp(220px, 26vw, 340px); }

/* IP-Feld + Status */
.ip-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.ip-box { display: inline-flex; align-items: center; gap: 12px; padding: 5px 5px 5px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.ip-box .ip-label { white-space: nowrap; font-size: .85rem; color: var(--muted); }
.ip-box code { background: none; border: 0; padding: 0; font-size: 1.05rem; color: #fff; user-select: all; }
.ip-copy { white-space: nowrap; font-family: var(--f-body); font-weight: 600; font-size: .85rem; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 7px 12px; cursor: pointer; }
.ip-copy:hover { background: #241e30; }
.ip-copy.is-done { background: var(--accent); border-color: var(--accent-dk); color: #fff; }
.status { display: inline-flex; align-items: center; gap: 9px; padding: 0 14px; min-height: 46px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); font-size: .92rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.status.is-online .dot { background: var(--ok); }
.status.is-offline .dot { background: #d9534f; }

/* Treppen-Kante in Block-Optik */
.steps-edge { position: absolute; left: 0; right: 0; bottom: -1px; height: 24px; z-index: 1; pointer-events: none;
  background:
    linear-gradient(var(--bg), var(--bg)) bottom / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, var(--bg) 0 48px, transparent 48px 96px) bottom / 100% 16px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 16px, var(--bg) 16px 32px, transparent 32px 96px) bottom / 100% 24px no-repeat;
}

/* ---------- Über DarkSMP ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.about-text { display: grid; gap: 16px; }
.about-text .lead { font-size: 1.15rem; color: var(--fg); }
.checklist { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 26px; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 10px; background: var(--accent-2); }
.shot { margin: 0; display: grid; gap: 8px; min-width: 0; }
.shot .frame { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 16 / 10; max-width: 100%; }
.shot .frame img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { font-size: .85rem; color: var(--muted); }

/* ---------- Spielmodi-Karten (Startseite) ---------- */
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mode { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.mode > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.mode-body { padding: 20px; display: grid; gap: 10px; grid-template-rows: auto auto 1fr auto; }
.mode-body p { font-size: .98rem; }
.state { font-size: .85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.state.live { color: var(--ok); }
.state.soon { color: var(--soon); }
.mode-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .92rem; }
.mode-foot .players { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.feature { position: relative; padding: 18px 0; display: grid; gap: 4px; }
.feature::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); transform-origin: left center; }
.feature h3 { font-family: var(--f-body); font-size: 1.08rem; font-weight: 600; }
.feature p { color: var(--muted); font-size: .98rem; }

/* ---------- So joinst du ---------- */
.join-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.join-steps { list-style: none; padding: 0; margin: 0; display: grid; counter-reset: step; }
.join-steps li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.join-steps li:last-child { border-bottom: 1px solid var(--line); }
.join-steps li::before { content: counter(step); font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; line-height: 1.2; color: var(--link); }
.join-steps h3 { font-family: var(--f-body); font-size: 1.08rem; font-weight: 600; margin-bottom: 2px; }
.join-side { display: grid; gap: 16px; justify-items: start; }
.join-side p { color: var(--muted); }

/* ---------- Community-Band ---------- */
.band { position: relative; isolation: isolate; overflow: hidden; background: var(--bg-2) center / cover no-repeat; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(12, 9, 18, .78); }
.community { display: grid; gap: 16px; justify-items: start; max-width: 640px; }
.community p { color: #e2dde9; font-size: 1.1rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; color: var(--fg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); font-size: 1.3rem; color: var(--muted); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: #fff; }
.faq .answer { padding: 0 0 18px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: #0b0910; padding-block: 44px 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.footer .brand { margin-bottom: 12px; }
.footer p { color: var(--muted); font-size: .95rem; max-width: 30em; }
.footer h4 { font-family: var(--f-body); font-size: .9rem; font-weight: 600; color: var(--fg); margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer ul a { color: var(--muted); font-size: .95rem; }
.footer ul a:hover { color: var(--fg); }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); background: var(--surface); }
.socials a:hover { color: #fff; background: #241e30; }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .82rem; color: var(--muted); }

/* ---------- Unterseiten ---------- */
.page-head { position: relative; isolation: isolate; overflow: hidden; padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 88px)); padding-bottom: clamp(40px, 5vw, 64px); background: var(--bg-2) center 45% / cover no-repeat; border-bottom: 1px solid var(--line); }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(12, 9, 18, .74); }
.page-head h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.4rem); color: #fff; }
.page-head p { color: #e2dde9; margin-top: 10px; max-width: 40em; font-size: 1.1rem; }
.doc { max-width: 820px; display: grid; gap: 16px; }
.doc h2 { font-size: 1.45rem; margin-top: 20px; }
.doc h2 .para { font-family: var(--f-mono); font-weight: 500; font-size: .8em; color: var(--muted); margin-right: 8px; }
.doc ul, .doc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.doc .note { padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); color: var(--muted); }
.doc .placeholder { color: var(--soon); }
.rule-card { padding: 20px 0 8px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.rule-card h2 { margin-top: 0; }
.penalty { display: inline-block; font-size: .78rem; font-weight: 600; padding: 1px 7px; border-radius: 3px; margin-left: 6px; vertical-align: 1px; }
.penalty.warn { color: #1a1300; background: var(--soon); }
.penalty.mute { color: #fff; background: var(--accent); }
.penalty.ban  { color: #fff; background: #b8323a; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-bottom: 8px; }
.toc a { font-size: .95rem; }

/* ---------- Spielmodi-Seite ---------- */
.mode-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.mode-tabs a { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--fg); font-weight: 600; }
.mode-tabs a:hover { text-decoration: none; background: var(--surface); }
.mode-tabs .state { font-weight: 500; font-size: .8rem; }

.mode-section + .mode-section { border-top: 1px solid var(--line); }
.mode-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.mode-row.flip .mode-media { order: 2; }
.mode-media { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 4 / 3; max-width: 100%; }
.mode-media img { width: 100%; height: 100%; object-fit: cover; }
.mode-copy { display: grid; gap: 16px; justify-items: start; min-width: 0; }
.mode-copy .lead { font-size: 1.15rem; color: var(--fg); }

.specs { width: 100%; margin: 4px 0 0; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: .95rem; }
.specs dd { margin: 0; color: var(--fg); font-size: .98rem; }

.lives { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.life-step { display: grid; gap: 4px; justify-items: center; }
.life-step > span { font-size: .8rem; color: var(--muted); }
.hearts { display: flex; gap: 3px; }
.heart { width: 27px; height: 24px; color: var(--heart); }
.heart.is-lost { color: #3a3346; }
.life-arrow { font-size: .9rem; color: var(--muted); }

/* ---------- Team-Seite (zentriert) ---------- */
.page-head-center { text-align: center; }
.page-head-center p { margin-inline: auto; }
.community-center { justify-items: center; text-align: center; margin-inline: auto; }
.team { display: grid; justify-items: center; text-align: center; }
.team-hinweis { padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); color: var(--soon); margin-bottom: 24px; }
.team-cat { width: 100%; display: grid; justify-items: center; gap: 20px; padding-block: 36px; border-top: 1px solid var(--line); }
.team-cat:first-of-type { border-top: 0; padding-top: 0; }
.team-cat-head { display: grid; gap: 2px; justify-items: center; }
.team-cat-head h2 { font-size: 1.6rem; }
.team-count { font-size: .9rem; color: var(--muted); }
.team-grid { width: 100%; list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 900px; }
.member { width: 170px; display: grid; justify-items: center; gap: 4px; padding: 20px 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: center; min-width: 0; }
.member img { width: 88px; height: 88px; margin-bottom: 8px; transition: transform .3s var(--ease-out, ease); }
.member:hover img { transform: translateY(-4px) rotate(-3deg); }
.member-prefix { font-family: "Segoe UI", system-ui, -apple-system, sans-serif; font-size: .95rem; letter-spacing: .02em; color: #aaaaaa; text-shadow: 1px 1px 0 rgba(0, 0, 0, .55); line-height: 1.3; }
.member-name { font-weight: 600; color: var(--fg); font-size: 1rem; overflow-wrap: anywhere; }

@media (max-width: 420px) {
  .member { width: calc(50% - 6px); }
}

/* ---------- Stats-Seite ---------- */
.stats-hinweis { max-width: 1000px; margin-inline: auto; text-align: center; }
.stats-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; }
.stats-tab { font-family: var(--f-body); font-weight: 600; font-size: 1rem; padding: .6em 1.6em .7em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); cursor: pointer; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .3); transition: background-color .15s; }
.stats-tab:hover { background: #241e30; color: #fff; }
.stats-tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent-dk); color: #fff; }
.stats-panel + .stats-panel { margin-top: 48px; }
.stats-panel-title { text-align: center; font-size: 1.6rem; margin-bottom: 20px; }
html.tabs-an .stats-panel-title { display: none; }
html.tabs-an .stats-panel + .stats-panel { margin-top: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1000px; margin-inline: auto; }
.board { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 18px 20px 8px; min-width: 0; }
.board h3 { font-size: 1.25rem; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.board-leer { color: var(--muted); padding: 16px 0 12px; }
.board-list { list-style: none; padding: 0; margin: 0; }
.board-row { display: grid; grid-template-columns: 26px 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; }
.board-row + .board-row { border-top: 1px solid var(--line); }
.rank { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.r1 .rank { color: #e0a943; }
.r2 .rank { color: #c3c3cf; }
.r3 .rank { color: #c4814f; }
.board-row img { width: 36px; height: 36px; image-rendering: pixelated; border-radius: 3px; }
.board-who { display: grid; min-width: 0; line-height: 1.3; }
.board-name { font-weight: 600; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-extra { font-size: .85rem; color: var(--muted); }
.board-value { font-weight: 600; color: var(--fg); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stats-stand { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 28px; }

@media (max-width: 760px) {
  .stats-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .board { padding-inline: 14px; }
  .board-row { gap: 10px; grid-template-columns: 22px 32px minmax(0, 1fr) auto; }
  .board-row img { width: 32px; height: 32px; }
  .board-min { display: none; }
}

/* ---------- Stats: LifeSteal ---------- */
.ls-box { max-width: 1000px; margin-inline: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 18px 20px 8px; }
.ls-welten { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.ls-welt { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--text); font-size: .95rem; }
.ls-welt strong { font-weight: 600; }
.ls-welt.offen .dot { background: var(--ok); }
.ls-welt.offen strong { color: var(--ok); }
.ls-welt.zu .dot { background: #d9534f; }
.ls-welt.zu strong { color: #e0716d; }
.ls-leer { text-align: center; }
.ls-scroll { overflow-x: auto; }
.ls-tabelle { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ls-tabelle th { text-align: left; font-weight: 600; font-size: .85rem; color: var(--muted); padding: 14px 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ls-tabelle td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ls-tabelle tbody tr:last-child td { border-bottom: 0; }
.ls-tabelle tbody tr:hover td { background: rgba(255, 255, 255, .02); }
.ls-nr { width: 40px; text-align: center !important; color: var(--muted); font-family: var(--f-display); font-weight: 700; }
.ls-zahl { width: 80px; text-align: right !important; font-weight: 600; color: var(--fg); }
.ls-spieler { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ls-spieler img { width: 32px; height: 32px; image-rendering: pixelated; border-radius: 3px; flex: none; }
.ls-name { font-weight: 600; color: var(--fg); overflow-wrap: anywhere; }
.ls-raus { font-size: .75rem; font-weight: 600; color: #e0716d; border: 1px solid rgba(224, 113, 109, .45); border-radius: 3px; padding: 1px 6px; white-space: nowrap; }
.ls-tabelle .hearts { display: inline-flex; gap: 3px; vertical-align: middle; }
.ls-tabelle .heart { width: 22px; height: 20px; }
.ls-tabelle .heart.is-lost { color: #6b6676; }
.ls-tabelle tr.is-raus .ls-name, .ls-tabelle tr.is-raus .ls-zahl { color: var(--muted); }
.ls-tabelle tr.is-raus img { filter: grayscale(1); opacity: .6; }

@media (max-width: 560px) {
  .ls-box { padding-inline: 10px; }
  .ls-tabelle th, .ls-tabelle td { padding-inline: 6px; }
  .ls-nr { width: 26px; }
  .ls-zahl { width: 40px; }
  .ls-spieler { gap: 6px; flex-wrap: wrap; }
  .ls-spieler img { display: none; }
  .ls-name { font-size: .95rem; }
  .ls-welten { gap: 6px; }
  .ls-welt { padding: 6px 10px; font-size: .85rem; gap: 7px; }
  .ls-tabelle .heart { width: 16px; height: 14px; }
  .ls-tabelle .hearts { gap: 2px; }
  .ls-raus { font-size: .7rem; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 12px; padding: 12px max(24px, env(safe-area-inset-right, 0px)) 20px max(24px, env(safe-area-inset-left, 0px)); background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.is-open .nav-menu { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-links a { padding: 11px 12px; }
  .nav-links a[aria-current="page"] { box-shadow: inset 2px 0 0 var(--accent-2); }
  .nav-menu .btn { justify-content: center; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-logo { order: -1; width: 150px; }
  .about-grid, .join-grid, .mode-row { grid-template-columns: minmax(0, 1fr); }
  .mode-row.flip .mode-media { order: 0; }
  .modes { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (min-width: 961px) {
  .nav-menu { display: flex; align-items: center; gap: 16px; margin-left: auto; }
}
@media (max-width: 640px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .ip-box { width: 100%; justify-content: space-between; gap: 10px; }
  .status { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .specs > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* =========================================================
   Scroll-Animationen
   Ausgangszustand nur mit aktivem JavaScript (html.js).
   Ohne JS, bei "anim-off" oder reduzierter Bewegung ist
   alles sofort sichtbar.
   ========================================================= */
:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io:  cubic-bezier(.77, 0, .18, 1);
}

/* Parallax-Ebene für Bild-Bänder und Seitenköpfe */
.par-bg { position: absolute; left: 0; right: 0; top: -70px; bottom: -70px; z-index: -2; background: center / cover no-repeat; will-change: transform; }

/* Bilder in Rahmen: leicht vergrößert, damit Parallax keine Kanten zeigt */
.frame img, .mode-media img { scale: 1.12; will-change: transform; }

/* Hero: Inhalte beim Laden nacheinander einblenden */
.hero-copy > *, .hero-logo { animation: hero-in 1s var(--ease-out) both; }
.hero-copy > :nth-child(1) { animation-delay: .05s; }
.hero-copy > :nth-child(2) { animation-delay: .15s; }
.hero-copy > :nth-child(3) { animation-delay: .25s; }
.hero-copy > :nth-child(4) { animation-delay: .35s; }
.hero-logo { animation-name: logo-in; animation-duration: 1.2s; animation-delay: .2s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes logo-in { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }
.hero-video { will-change: transform; }

/* --- Einzelne Blöcke: von unten einblenden --- */
html.js :is(.section-head, .about-text, .join-side, .community, .page-head h1, .page-head p, .mode-tabs, .team-cat-head, .team-leer, .ls-box) {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
html.js :is(.section-head, .about-text, .join-side, .community, .page-head h1, .page-head p, .mode-tabs, .team-cat-head, .team-leer, .ls-box).is-in { opacity: 1; transform: none; }
html.js .page-head p { transition-delay: .1s; }
html.js .mode-tabs { transition-delay: .2s; }

/* --- Gruppen: Kinder nacheinander (Index --i kommt aus main.js) --- */
html.js :is(.modes, .features, .join-steps, .faq, .specs, .mode-copy, .team-grid, .stats-grid) > * {
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
html.js :is(.modes, .features, .join-steps, .faq, .specs, .mode-copy, .team-grid, .stats-grid).is-in > * { opacity: 1; transform: none; }

/* Feature-Linien zeichnen sich von links nach rechts */
html.js .features > .feature::before { transform: scaleX(0); transition: transform 1.1s var(--ease-io); transition-delay: calc(var(--i, 0) * 70ms); }
html.js .features.is-in > .feature::before { transform: scaleX(1); }

/* Spielmodi-Karten: Bild setzt sich beim Einblenden */
.mode > img { transition: scale 1.4s var(--ease-out); }
html.js .modes > .mode > img { scale: 1.18; }
html.js .modes.is-in > .mode > img { scale: 1; }
.mode:hover > img, html.js .modes.is-in > .mode:hover > img { scale: 1.04; transition-duration: .6s; }

/* --- Bilder: von unten aufdecken, Bild zoomt dabei zurück --- */
html.js :is(.frame, .mode-media) {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.2s var(--ease-io);
}
html.js :is(.frame, .mode-media) img { scale: 1.3; transition: scale 1.8s var(--ease-out); }
html.js :is(.frame, .mode-media).is-in { clip-path: inset(0 0 0 0); }
html.js :is(.frame, .mode-media).is-in img { scale: 1.12; }
html.js .shot figcaption { opacity: 0; transition: opacity .8s .6s; }
html.js .shot .frame.is-in + figcaption { opacity: 1; }

/* Notbremse: alles sichtbar */
html.anim-off :is(.section-head, .about-text, .join-side, .community, .page-head h1, .page-head p, .mode-tabs, .team-cat-head, .team-leer, .ls-box, .frame, .mode-media, .shot figcaption),
html.anim-off :is(.modes, .features, .join-steps, .faq, .specs, .mode-copy, .team-grid, .stats-grid) > * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
html.anim-off .features > .feature::before { transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active { transform: none; }
  .hero-copy > *, .hero-logo { animation: none; }
  html.js :is(.section-head, .about-text, .join-side, .community, .page-head h1, .page-head p, .mode-tabs, .team-cat-head, .team-leer, .ls-box, .frame, .mode-media, .shot figcaption),
  html.js :is(.modes, .features, .join-steps, .faq, .specs, .mode-copy, .team-grid, .stats-grid) > * { opacity: 1; transform: none; clip-path: none; transition: none; }
  html.js .features > .feature::before { transform: none; transition: none; }
  .frame img, .mode-media img, .mode > img { scale: 1 !important; transition: none !important; }
}
