/* ==========================================================================
   mxmc.win – Stylesheet
   Look aus der Vorlage (nyuszo.com): warmes Papier, Moosgrün, dicke Schalen,
   Bricolage Grotesque + DM Sans.
   Aufbau: Schriften · Variablen · Farben (hell/dunkel) · Basis · Hintergrund ·
           Kopfzeile · Hero · Status · Bereiche · Server-Infos · Discord ·
           Event · Team · FAQ · Kontakt · Fußzeile · Rechtstexte · 404 ·
           Easter Egg · Interaktion · Bewegung · Reduzierte Bewegung
   ========================================================================== */

/* ---------- Schriften (lokal, variabel – nichts von Google) ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variablen ---------- */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --gutter: 16px;
  --content: 1120px;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-card: 32px;
  --radius-pill: 999px;
  --shell-width: 6px;

  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --dur-fast: 120ms;
  --dur: 240ms;
  --dur-enter: 560ms;
  --stagger: 70ms;

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --topbar-space: 84px;
}
@media (min-width: 600px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 40px; }
}

/* ---------- Farben ----------
   Modus: color-scheme steuert light-dark(). Ohne Auswahl folgt die Seite dem System,
   der Schalter setzt data-theme="light" oder "dark" (wird im Browser gemerkt).
   Grün = ein Farbton (--h) im OKLCH-Farbraum, alle Grüntöne werden daraus berechnet. */
:root { color-scheme: light dark; --h: 125; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* Ersatz für ältere Browser ohne light-dark()/OKLCH: festes Hell */
:root {
  --bg: #f5f3ea;
  --surface: #fffdf7;
  --surface-glass: rgb(255 253 247 / 0.78);
  --panel-bg: rgb(255 253 247 / 0.6);
  --field: #f5f3ea;
  --ink: #1f231b;
  --ink-2: #474d3e;
  --ink-3: #5f6551;
  --line: #e3e1d1;
  --line-strong: #cfccb8;
  --accent: #4b681f;
  --accent-muted: #7c9c3c;
  --accent-soft: #e4eecb;
  --accent-softer: #f1f6e2;
  --accent-edge: #bcd77a;
  --accent-fill: #d4e79a;
  --accent-fill-hover: #bcd77a;
  --accent-on: #243414;
  --done-fill: #4b681f;
  --done-on: #fbfaf4;
  --brand: #d4e79a;
  --brand-2: #bcd77a;
  --brand-hi: #eef6d2;
  --brand-deep: #243414;
  --marker: rgb(212 231 154 / 0.95);
  --halo: rgb(212 231 154 / 0.75);
  --ring-track: rgb(75 104 31 / 0.16);
  --emblem-a: #e4eecb;
  --emblem-b: #d4e79a;
  --emblem-gloss: rgb(255 255 255 / 0.6);
  --feature-a: #42601f;
  --feature-b: #36501a;
  --feature-c: #243414;
  --blob-1: rgb(212 231 154 / 0.85);
  --blob-2: rgb(242 220 205 / 0.95);
  --blob-3: rgb(217 238 223 / 0.9);
  --dots: rgb(75 104 31 / 0.2);
  --tint-twitch: #ece5f8;    --tint-twitch-ink: #6a4bbd;
  --tint-tiktok: #e3f0ef;    --tint-tiktok-ink: #1f231b;
  --tint-instagram: #f8e3dc; --tint-instagram-ink: #b23f63;
  --tint-discord: #e6e8fa;   --tint-discord-ink: #4f5bd5;
  --tint-youtube: #fbe3e1;   --tint-youtube-ink: #b8281f;
  --hint-bg: #fbefd9;
  --hint-ink: #5b4413;
  --danger: #a3271f;
  --danger-bg: #fbe4df;
  --online: #2f8a2a;
  --offline: #c2352b;
  --idle: #c98a12;
  --toast-bg: #1f231b;
  --toast-ink: #fbfaf4;
  --shell: rgb(255 255 255 / 0.5);
  --ring: rgb(31 35 27 / 0.08);
  --core-hi: rgb(255 255 255 / 0.9);
  --spot: rgb(212 231 154 / 0.5);
  --blocks-opacity: 0.42;
  --shadow-sm: 0 1px 2px rgb(36 52 20 / 0.06), 0 2px 10px -2px rgb(36 52 20 / 0.05);
  --shadow-md: 0 2px 4px rgb(36 52 20 / 0.05), 0 14px 30px -10px rgb(36 52 20 / 0.2);
  --shadow-lg: 0 4px 8px rgb(36 52 20 / 0.06), 0 24px 48px -14px rgb(36 52 20 / 0.28);
}

@supports (color: light-dark(#000, #fff)) and (color: oklch(0.5 0.1 120)) {
  :root {
    --bg: light-dark(#f5f3ea, oklch(0.19 0.013 var(--h)));
    --surface: light-dark(#fffdf7, oklch(0.232 0.017 var(--h)));
    --surface-glass: light-dark(rgb(255 253 247 / 0.82), oklch(0.25 0.018 var(--h) / 0.85));
    --panel-bg: light-dark(rgb(255 253 247 / 0.6), oklch(0.232 0.017 var(--h) / 0.62));
    --field: light-dark(#f5f3ea, oklch(0.202 0.014 var(--h)));
    --ink: light-dark(#1f231b, oklch(0.95 0.014 var(--h)));
    --ink-2: light-dark(#474d3e, oklch(0.84 0.024 var(--h)));
    --ink-3: light-dark(#5f6551, oklch(0.73 0.03 var(--h)));
    --line: light-dark(#e3e1d1, oklch(0.303 0.022 var(--h)));
    --line-strong: light-dark(#cfccb8, oklch(0.374 0.028 var(--h)));

    --accent: light-dark(oklch(0.478 0.105 var(--h)), oklch(0.838 0.123 var(--h)));
    --accent-muted: light-dark(oklch(0.648 0.129 var(--h)), oklch(0.7 0.12 var(--h)));
    --accent-soft: light-dark(oklch(0.932 0.047 var(--h)), oklch(0.296 0.043 var(--h)));
    --accent-softer: light-dark(oklch(0.964 0.027 var(--h)), oklch(0.262 0.036 var(--h)));
    --accent-edge: light-dark(oklch(0.838 0.123 var(--h)), oklch(0.549 0.114 var(--h)));
    --accent-fill: light-dark(oklch(0.896 0.101 var(--h)), oklch(0.869 0.112 var(--h)));
    --accent-fill-hover: light-dark(oklch(0.838 0.123 var(--h)), oklch(0.91 0.09 var(--h)));
    --accent-on: light-dark(oklch(0.302 0.057 var(--h)), oklch(0.247 0.046 var(--h)));
    --done-fill: var(--accent);
    --done-on: light-dark(#fbfaf4, oklch(0.247 0.046 var(--h)));

    --brand: oklch(0.896 0.101 var(--h));
    --brand-2: oklch(0.838 0.123 var(--h));
    --brand-hi: oklch(0.958 0.048 var(--h));
    --brand-deep: oklch(0.302 0.057 var(--h));

    --marker: light-dark(oklch(0.896 0.101 var(--h) / 0.95), oklch(0.648 0.129 var(--h) / 0.5));
    --halo: light-dark(oklch(0.896 0.101 var(--h) / 0.75), oklch(0.7 0.12 var(--h) / 0.22));
    --ring-track: light-dark(oklch(0.478 0.105 var(--h) / 0.16), oklch(0.838 0.123 var(--h) / 0.18));
    --emblem-a: light-dark(oklch(0.932 0.047 var(--h)), oklch(0.3 0.045 var(--h)));
    --emblem-b: light-dark(oklch(0.896 0.101 var(--h)), oklch(0.36 0.06 var(--h)));
    --emblem-gloss: light-dark(rgb(255 255 255 / 0.6), rgb(255 255 255 / 0.06));
    --feature-a: light-dark(oklch(0.45 0.099 var(--h)), oklch(0.48 0.105 var(--h)));
    --feature-b: light-dark(oklch(0.397 0.086 var(--h)), oklch(0.397 0.086 var(--h)));
    --feature-c: light-dark(oklch(0.302 0.057 var(--h)), oklch(0.28 0.055 var(--h)));

    --blob-1: light-dark(oklch(0.91 0.09 var(--h) / 0.85), oklch(0.6 0.12 var(--h) / 0.26));
    --blob-2: light-dark(rgb(242 220 205 / 0.95), rgb(150 100 70 / 0.2));
    --blob-3: light-dark(oklch(0.93 0.04 calc(var(--h) + 40) / 0.9), oklch(0.55 0.09 calc(var(--h) + 40) / 0.2));
    --dots: light-dark(oklch(0.478 0.105 var(--h) / 0.2), oklch(0.838 0.123 var(--h) / 0.13));

    --tint-twitch: light-dark(#ece5f8, #2a2440);    --tint-twitch-ink: light-dark(#6a4bbd, #bba8f7);
    --tint-tiktok: light-dark(#e3f0ef, #1e2c2b);    --tint-tiktok-ink: light-dark(#1f231b, #eaf2f1);
    --tint-instagram: light-dark(#f8e3dc, #3a2229); --tint-instagram-ink: light-dark(#b23f63, #f39ab7);
    --tint-discord: light-dark(#e6e8fa, #242948);   --tint-discord-ink: light-dark(#4f5bd5, #a9b0ff);
    --tint-youtube: light-dark(#fbe3e1, #3a1f1d);   --tint-youtube-ink: light-dark(#b8281f, #ff9b93);

    --hint-bg: light-dark(#fbefd9, #3a2f17);
    --hint-ink: light-dark(#5b4413, #f3dfb0);
    --danger: light-dark(#a3271f, #ffb3a7);
    --danger-bg: light-dark(#fbe4df, #3d1d19);
    --online: light-dark(#2f8a2a, #78d861);
    --offline: light-dark(#c2352b, #ff8a7c);
    --idle: light-dark(#c98a12, #f2c14e);
    --toast-bg: light-dark(#1f231b, oklch(0.3 0.02 var(--h)));
    --toast-ink: light-dark(#fbfaf4, oklch(0.95 0.014 var(--h)));
    --shell: light-dark(rgb(255 255 255 / 0.5), rgb(255 255 255 / 0.04));
    --ring: light-dark(oklch(0.3 0.03 var(--h) / 0.09), rgb(255 255 255 / 0.08));
    --core-hi: light-dark(rgb(255 255 255 / 0.9), rgb(255 255 255 / 0.06));
    --spot: light-dark(oklch(0.896 0.101 var(--h) / 0.55), oklch(0.7 0.12 var(--h) / 0.16));
    --blocks-opacity: 0.42;

    --shadow-sm: 0 1px 2px light-dark(oklch(0.3 0.05 var(--h) / 0.06), rgb(0 0 0 / 0.3)), 0 2px 10px -2px light-dark(oklch(0.3 0.05 var(--h) / 0.05), rgb(0 0 0 / 0.25));
    --shadow-md: 0 2px 4px light-dark(oklch(0.3 0.05 var(--h) / 0.05), rgb(0 0 0 / 0.25)), 0 14px 30px -10px light-dark(oklch(0.3 0.05 var(--h) / 0.2), rgb(0 0 0 / 0.55));
    --shadow-lg: 0 4px 8px light-dark(oklch(0.3 0.05 var(--h) / 0.06), rgb(0 0 0 / 0.3)), 0 24px 48px -14px light-dark(oklch(0.3 0.05 var(--h) / 0.28), rgb(0 0 0 / 0.65));
  }
}

/* Ohne light-dark() bleibt die Seite hell – dann den Schalter ausblenden */
@supports not ((color: light-dark(#000, #fff)) and (color: oklch(0.5 0.1 120))) {
  :root { color-scheme: light; }
  .theme-toggle { display: none !important; }
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  scroll-padding-top: var(--topbar-space);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font: 400 1rem/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ul[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }
img { max-width: 100%; }
code { font-family: var(--font-mono); }
main { flex: 1; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

::selection { background: var(--accent-fill); color: var(--accent-on); }

.skip-link {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 40;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--content));
  margin-inline: auto;
}

/* Platzhalter aus CONFIG: sichtbar markiert, bis echte Werte eingetragen sind */
.is-placeholder {
  padding: 0 0.3em;
  border-radius: 6px;
  background: var(--hint-bg);
  color: var(--hint-ink);
  outline: 1px dashed currentColor;
  outline-offset: -1px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* Wechselnde Beschriftung ohne Layoutsprung: alle Zustände liegen übereinander */
.swap { display: inline-grid; }
.swap > * {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  transition: opacity var(--dur-fast) ease, transform var(--dur) var(--ease-spring);
}
.swap--start > * { justify-content: start; }
.swap__b,
.swap__busy { opacity: 0; visibility: hidden; transform: scale(0.85); }
.is-done .swap__a,
.is-busy .swap__a { opacity: 0; visibility: hidden; transform: scale(0.85); }
.is-done .swap__b,
.is-busy .swap__busy { opacity: 1; visibility: visible; transform: none; }

.clipboard-helper { position: fixed; top: 0; left: -9999px; opacity: 0; }

/* ---------- Hintergrund ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}
.glow {
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(circle 36vmax at 12vmax 4vmax, var(--blob-1), transparent),
    radial-gradient(circle 36vmax at calc(100% - 4vmax) calc(100% + 2vmax), var(--blob-2), transparent),
    radial-gradient(circle 27vmax at calc(100% + 2vmax) calc(18% + 27vmax), var(--blob-3), transparent);
}
/* Feines Papierkorn, statisch */
.grain {
  position: absolute;
  inset: 0;
  opacity: var(--grain-opacity, 0.4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0 0 0 -0.24'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] .grain { filter: invert(1); --grain-opacity: 0.3; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .grain { filter: invert(1); --grain-opacity: 0.3; }
}
.dots {
  position: absolute;
  top: 0;
  right: 0;
  width: min(460px, 70vw);
  height: 460px;
  background-image: radial-gradient(var(--dots) 1.2px, transparent 1.6px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(circle at 100% 0, #000, transparent 70%);
  mask-image: radial-gradient(circle at 100% 0, #000, transparent 70%);
}
/* Schwebende Blöcke (Canvas, js/main.js) – im Dunkeln etwas leiser */
:root[data-theme="dark"] { --blocks-opacity: 0.3; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --blocks-opacity: 0.3; }
}
.blocks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: var(--blocks-opacity);
}

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky;
  top: max(10px, env(safe-area-inset-top));
  z-index: 20;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: min(100% - 2 * var(--gutter), var(--content));
  margin: max(12px, env(safe-area-inset-top)) auto 0;
  padding: 5px 5px 5px 8px;
  border-radius: var(--radius-pill);
  background: var(--topbar-bg, var(--surface-glass));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px var(--ring), inset 0 1px 0 var(--core-hi), var(--shadow-sm);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding-right: var(--space-2);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand__mark {
  width: 34px;
  height: 34px;
  padding: 5px;
  border-radius: 10px;
  background: var(--brand);
  box-shadow: inset 0 0 0 1px rgb(75 104 31 / 0.15);
}
.nav {
  display: none;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
@media (min-width: 760px) {
  .nav { display: flex; }
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
@media (min-width: 760px) {
  .nav + .icon-btn { margin-left: 0; }
}
.icon-btn .icon { width: 20px; height: 20px; }

/* Schalter zeigt, wohin es geht: im Hellen der Mond, im Dunkeln die Sonne */
.theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: block; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle__moon { display: none; }
}

/* Kopfzeile wird beim Scrollen fester (rein über CSS) */
.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .topbar::before {
    animation: topbar-scrolled linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 120px;
  }
}
@keyframes topbar-scrolled { to { opacity: 1; } }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  gap: var(--space-6);
  padding-block: var(--space-6) var(--space-7);
}
.hero__intro {
  display: grid;
  justify-items: start;
}
.emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  aspect-ratio: 1;
  margin-bottom: var(--space-5);
  border-radius: 26px;
  background:
    linear-gradient(var(--emblem-gloss), transparent) top / 100% 50% no-repeat,
    linear-gradient(145deg, var(--emblem-a), var(--emblem-b));
  box-shadow: inset 0 0 0 1px var(--ring-track), var(--shadow-md);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.emblem::before {
  content: "";
  position: absolute;
  inset: -22%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--halo), transparent);
}
.emblem__cube {
  width: 66%;
  height: 66%;
  filter: drop-shadow(0 6px 8px rgb(20 30 10 / 0.25));
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-bottom: var(--space-4);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-softer);
  box-shadow: inset 0 0 0 1px var(--accent-soft);
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero__intro { container-type: inline-size; }
.title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 1.6rem + 7vw, 6.25rem);
  /* Der Name passt immer in eine Zeile: Größe richtet sich nach der Spaltenbreite */
  font-size: clamp(2.5rem, 19cqi, 6.5rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}
/* Textmarker unter dem Namen – das Erkennungszeichen der Vorlage */
.marker {
  padding-inline: 0.06em;
  background: linear-gradient(transparent 64%, var(--marker) 64%, var(--marker) 90%, transparent 90%) no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.lead {
  max-width: 34ch;
  margin-top: var(--space-4);
  color: var(--ink-2);
  font-size: 1.125rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.lead.is-placeholder { max-width: 34ch; }

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: clamp(48px, 6vw, 96px);
    min-height: min(760px, calc(100dvh - 96px));
    padding-block: var(--space-7) var(--space-8);
  }
  .emblem { width: 128px; border-radius: 36px; margin-bottom: var(--space-6); }
  .lead { font-size: 1.25rem; }
}

/* Die große Karte zum Kopieren der Server-IP */
.hero__join { display: grid; gap: var(--space-3); }
.slab {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  min-height: 116px;
  padding: var(--space-4);
  border: var(--shell-width) solid var(--shell);
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, var(--feature-a) 0%, var(--feature-b) 45%, var(--feature-c) 100%) padding-box;
  color: #fbfaf4;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 0 0 1px var(--ring), inset 0 1px 0 rgb(255 255 255 / 0.14), var(--shadow-md);
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}
/* Pixelraster als leiser Minecraft-Gruß */
.slab::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px) 0 0 / 14px 14px,
    linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px) 0 0 / 14px 14px;
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 100%);
  mask-image: linear-gradient(100deg, transparent 30%, #000 100%);
}
.slab::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / 0.13), transparent 70%);
  opacity: 0;
  transition: opacity 400ms var(--ease-out);
  pointer-events: none;
}
.slab:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.slab:disabled { cursor: not-allowed; }
.slab__emblem {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgb(255 255 255 / 0.08);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
}
.slab__emblem svg { width: 42px; height: 42px; transition: transform var(--dur) var(--ease-spring); }
.slab__text { display: grid; gap: 4px; min-width: 0; }
.slab__label {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.slab__address {
  color: rgb(251 250 244 / 0.82);
  font-size: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.slab__address.is-placeholder { justify-self: start; color: var(--hint-ink); }
/* Ohne Adresse: Karte bleibt sichtbar, wirkt aber deutlich ausgeschaltet */
.slab:disabled .slab__go { opacity: 0.4; }
.slab:disabled .slab__label { opacity: 0.75; }
.slab__go {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-deep);
  transition: transform var(--dur) var(--ease-spring), background-color var(--dur) var(--ease-out);
}
.slab__go .icon { width: 22px; height: 22px; }
.slab.is-done .slab__go { background: #fbfaf4; }
/* Am Handy steht der Grasblock schon darüber – Platz für eine einzeilige Beschriftung */
@media (max-width: 519px) {
  .slab { grid-template-columns: minmax(0, 1fr) auto; padding-left: var(--space-5); }
  .slab__emblem { display: none; }
}
@media (max-width: 359px) {
  .slab { gap: var(--space-3); padding-inline: var(--space-4) var(--space-3); }
  .slab__go { width: 44px; height: 44px; }
}

/* Lichtring läuft beim Überfahren um die Karte (aus der Vorlage) */
@property --ring-alpha { syntax: "<number>"; inherits: false; initial-value: 0; }
@property --ring-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@supports (color: oklch(0.5 0.1 120)) {
  .slab {
    border-color: transparent;
    background:
      linear-gradient(135deg, var(--feature-a) 0%, var(--feature-b) 45%, var(--feature-c) 100%) padding-box,
      conic-gradient(from var(--ring-angle), oklch(0.92 0.11 var(--h) / var(--ring-alpha)) 0deg, transparent 80deg, transparent 180deg, oklch(0.92 0.11 var(--h) / var(--ring-alpha)) 250deg, transparent 330deg) border-box,
      var(--shell) border-box;
    transition:
      transform var(--dur) var(--ease-out),
      box-shadow var(--dur) var(--ease-out),
      --ring-alpha 480ms var(--ease-out);
  }
}

.copy-hint {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--hint-bg);
  color: var(--hint-ink);
  font-size: 0.875rem;
  font-weight: 600;
}

/* ---------- Live-Status ---------- */
.status {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: 24px;
  background: var(--panel-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px var(--ring), inset 0 1px 0 var(--core-hi);
}
.status__head { display: flex; align-items: center; gap: var(--space-3); }
.status__icon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 8px;
  image-rendering: pixelated;
  box-shadow: 0 0 0 1px var(--ring);
}
.status__line {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 1.0625rem;
  font-weight: 700;
}
.status__text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 var(--space-3);
  min-width: 0;
}
.status__dot {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 50%;
  background: var(--ink-3);
}
.status__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  opacity: 0;
}
[data-state="online"] .status__dot,
.event__live .status__dot { background: var(--online); }
[data-state="offline"] .status__dot { background: var(--offline); }
[data-state="error"] .status__dot,
[data-state="missing"] .status__dot { background: transparent; box-shadow: inset 0 0 0 2px var(--ink-3); }
.status__players {
  color: var(--ink-2);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.status__motd {
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.45;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.status__who { display: grid; gap: var(--space-2); }
.status__label { color: var(--ink-3); font-size: 0.8125rem; font-weight: 600; }
.status__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
  color: var(--ink-3);
  font-size: 0.8125rem;
}

.heads { display: flex; flex-wrap: wrap; gap: 6px; }
.heads__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--ring);
  font-size: 0.8125rem;
  font-weight: 600;
}
.heads--compact .heads__item { padding: 4px; }
.heads__img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  image-rendering: pixelated;
}
.heads__more {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  min-height: 32px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-softer);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
}

/* ---------- Bereiche ---------- */
.section {
  padding-block: var(--space-7);
  scroll-margin-top: var(--topbar-space);
}
@media (min-width: 1024px) {
  .section { padding-block: var(--space-8) var(--space-7); }
}
.section__head {
  display: grid;
  gap: var(--space-2);
  max-width: 44rem;
  margin-bottom: var(--space-5);
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.section__lead {
  max-width: 52ch;
  color: var(--ink-2);
  font-size: 1.0625rem;
  text-wrap: pretty;
}

/* Fläche mit dicker Schale (Vorlage: .server, .form-card) */
.sheet {
  padding: var(--space-4);
  border: var(--shell-width) solid var(--shell);
  border-radius: var(--radius-card);
  background: var(--surface) padding-box;
  box-shadow: 0 0 0 1px var(--ring), inset 0 1px 0 var(--core-hi), var(--shadow-sm);
}
@media (min-width: 400px) {
  .sheet { padding: var(--space-5); }
}
.sheet__title {
  margin-bottom: var(--space-4);
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

/* ---------- Server-Infos ---------- */
.server-grid {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 900px) {
  .server-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.facts { display: grid; }
.fact {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-top: 1px solid var(--line);
}
.fact:first-child { padding-top: 0; border-top: 0; }
.fact:last-child { padding-bottom: 0; }
.fact dt { color: var(--ink-3); font-size: 0.875rem; font-weight: 600; }
.fact dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  min-width: 0;
  font-weight: 600;
}
.fact__extra { color: var(--ink-2); font-size: 0.9375rem; }
@media (max-width: 379px) {
  .fact { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
.addr {
  font-size: 0.9375rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 var(--space-4);
  border: 1px solid var(--accent-edge);
  border-radius: var(--radius-pill);
  background: var(--accent-fill);
  color: var(--accent-on);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease-out),
    background-color var(--dur) var(--ease-out);
}
.copy .icon { width: 1.05em; height: 1.05em; }
.copy.is-done { background: var(--done-fill); border-color: var(--done-fill); color: var(--done-on); }
.copy:disabled { opacity: 0.5; cursor: not-allowed; }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--field);
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 600;
}
.chip.is-placeholder { border-radius: var(--radius-pill); padding: 0 14px; }

/* Java/Bedrock-Umschalter: reine CSS-Lösung mit Optionsfeldern */
.segmented {
  display: inline-flex;
  gap: 2px;
  margin-bottom: var(--space-4);
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--field);
  box-shadow: inset 0 0 0 1px var(--line);
}
.segmented label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 40px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.segmented .icon { width: 18px; height: 18px; }
#ed-java:checked ~ .segmented [for="ed-java"],
#ed-bedrock:checked ~ .segmented [for="ed-bedrock"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--ring), var(--shadow-sm);
}
#ed-java:focus-visible ~ .segmented [for="ed-java"],
#ed-bedrock:focus-visible ~ .segmented [for="ed-bedrock"] { outline: 3px solid var(--accent); outline-offset: 2px; }
#ed-java:checked ~ .steps--bedrock,
#ed-bedrock:checked ~ .steps--java { display: none; }

.steps {
  display: grid;
  gap: var(--space-3);
  padding: 0;
  list-style: none;
  counter-reset: step;
  color: var(--ink-2);
}
.steps li {
  position: relative;
  padding-left: 40px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.05em;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-softer);
  box-shadow: inset 0 0 0 1px var(--accent-soft);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 800;
}
.steps strong { color: var(--ink); font-weight: 650; }
.steps code { font-size: 0.9em; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }

.rules {
  display: grid;
  gap: var(--space-3);
  color: var(--ink-2);
}
.rules li {
  position: relative;
  padding-left: 26px;
}
/* Pixel als Aufzählungszeichen */
.rules li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.52em;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--accent-fill);
  box-shadow: inset 0 0 0 1px var(--accent-edge);
}
.rules__more { margin-top: var(--space-4); }

/* ---------- Discord ---------- */
.community {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3) var(--space-4);
  padding: var(--space-4);
  border: var(--shell-width) solid var(--shell);
  border-radius: var(--radius-card);
  background: radial-gradient(120% 140% at 0% 0%, var(--accent-soft), var(--surface) 70%) padding-box;
  box-shadow: 0 0 0 1px var(--ring), inset 0 1px 0 var(--core-hi), var(--shadow-sm);
}
@media (min-width: 400px) {
  .community { padding: var(--space-5); }
}
.community__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--tint-discord);
  color: var(--tint-discord-ink);
}
.community__icon svg { width: 26px; height: 26px; }
.community__title {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.community__text p { color: var(--ink-2); font-size: 0.9375rem; }
.community__live,
.community__note { grid-column: 1 / -1; }
.community__live { display: grid; gap: var(--space-2); }
.community__count {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
}
.community__note { color: var(--ink-3); font-size: 0.875rem; }

.members { display: flex; flex-wrap: wrap; gap: 6px; }
.members__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px 0 8px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--ring);
  font-size: 0.8125rem;
  font-weight: 600;
}
.members__dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--online);
}
.members__dot--idle { background: var(--idle); }
.members__dot--dnd { background: var(--offline); }

.button {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 52px;
  padding: 6px 6px 6px var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--accent-fill);
  color: var(--accent-on);
  font-weight: 700;
  text-decoration: none;
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out);
}
.button__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: rgb(36 52 20 / 0.12);
  transition: transform var(--dur) var(--ease-spring);
}
.button__icon .icon { width: 18px; height: 18px; }
@media (min-width: 600px) {
  .button { justify-self: start; }
}

/* ---------- Event ---------- */
.event {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-5);
  border: var(--shell-width) solid var(--shell);
  border-radius: var(--radius-card);
  background: radial-gradient(120% 160% at 100% 0%, var(--accent-soft), var(--surface) 65%) padding-box;
  box-shadow: 0 0 0 1px var(--ring), inset 0 1px 0 var(--core-hi), var(--shadow-sm);
}
@media (min-width: 900px) {
  .event {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: var(--space-6) var(--space-7);
  }
}
.event__text { display: grid; gap: var(--space-2); }
.event__kicker { color: var(--accent); font-size: 0.875rem; font-weight: 700; }
.event__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.event__when { color: var(--ink-2); font-weight: 600; }
.event__desc { color: var(--ink-2); max-width: 52ch; }
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
}
@media (min-width: 900px) {
  .countdown { grid-template-columns: repeat(4, 5.5rem); }
}
.countdown__unit {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: var(--space-3) var(--space-1);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--ring), var(--shadow-sm);
}
.countdown__num {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.countdown__label { color: var(--ink-3); font-size: 0.8125rem; font-weight: 600; }
.event__live {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 1.125rem;
  font-weight: 700;
}

/* ---------- Team ---------- */
.team {
  display: grid;
  gap: var(--space-4);
}
.team > li { display: grid; }
@media (min-width: 760px) {
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.member {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: var(--shell-width) solid var(--shell);
  border-radius: var(--radius-card);
  background: var(--surface) padding-box;
  box-shadow: 0 0 0 1px var(--ring), inset 0 1px 0 var(--core-hi), var(--shadow-sm);
  transition:
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}
/* Bühne für Kopf und 3D-Skin */
.member__stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 196px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: calc(var(--radius-card) - var(--shell-width)) calc(var(--radius-card) - var(--shell-width)) 0 0;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 0.18) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(rgb(255 255 255 / 0.18) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(145deg, var(--emblem-a), var(--emblem-b));
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.member__stage:disabled { cursor: default; }
.member__stage:focus-visible { outline: 3px solid var(--accent); outline-offset: -5px; }
.member__head {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  image-rendering: pixelated;
  box-shadow: 0 12px 20px -8px rgb(20 30 10 / 0.45), 0 0 0 1px rgb(0 0 0 / 0.06);
  transition: opacity var(--dur) var(--ease-out), transform 420ms var(--ease-spring);
}
.member__body {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: auto;
  height: 176px;
  max-width: none;
  opacity: 0;
  transform: translate(-50%, 24px) scale(0.92);
  transform-origin: 50% 100%;
  filter: drop-shadow(0 10px 12px rgb(20 30 10 / 0.3));
  transition: opacity var(--dur) var(--ease-out), transform 480ms var(--ease-spring);
  pointer-events: none;
}
.member:not(.has-skin) .member__body { visibility: hidden; }
.member__flip {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 28px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 0.6);
  color: #243414;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: background-color var(--dur) var(--ease-out);
}
.member.no-skin .member__flip { display: none; }
.member.is-skin .member__flip { background: #243414; color: #fbfaf4; }
/* Skin zeigen: per Knopf (Handy, Tastatur) oder beim Überfahren (Maus) */
.member.is-skin.has-skin .member__head { opacity: 0; transform: scale(0.7); }
.member.is-skin.has-skin .member__body { opacity: 1; transform: translate(-50%, 0) scale(1); }

.member__info {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  padding: var(--space-5);
}
.member__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
}
.member__name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}
.member__role {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-softer);
  box-shadow: inset 0 0 0 1px var(--accent-soft);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
}
.member__role.is-placeholder { padding: 4px 12px; border-radius: var(--radius-pill); box-shadow: none; }
.member__bio { color: var(--ink-2); text-wrap: pretty; }
.member__mc { color: var(--ink-3); font-size: 0.875rem; }
.member__mc span { color: var(--ink-2); font-family: var(--font-mono); font-weight: 600; }
.member__links { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-1); }
.social {
  --tint: var(--accent-soft);
  --tint-ink: var(--accent);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--tint);
  color: var(--tint-ink);
  transition: transform var(--dur) var(--ease-spring), background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.social__icon { width: 20px; height: 20px; }
.social--twitch { --tint: var(--tint-twitch); --tint-ink: var(--tint-twitch-ink); }
.social--tiktok { --tint: var(--tint-tiktok); --tint-ink: var(--tint-tiktok-ink); }
.social--instagram { --tint: var(--tint-instagram); --tint-ink: var(--tint-instagram-ink); }
.social--youtube { --tint: var(--tint-youtube); --tint-ink: var(--tint-youtube-ink); }
.social--discord { --tint: var(--tint-discord); --tint-ink: var(--tint-discord-ink); }

/* ---------- FAQ ---------- */
.faq { padding-block: var(--space-1); }
@media (min-width: 400px) {
  .faq { padding-block: var(--space-2); }
}
.faq__item + .faq__item { border-top: 1px solid var(--line); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 64px;
  padding-block: var(--space-3);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:focus-visible { outline-offset: 2px; border-radius: 10px; }
.faq__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-softer);
  box-shadow: inset 0 0 0 1px var(--accent-soft);
  color: var(--accent);
  transition: transform 420ms var(--ease-spring), background-color var(--dur) var(--ease-out);
}
.faq__icon .icon { width: 16px; height: 16px; }
.faq__item[open] .faq__icon { transform: rotate(180deg); background: var(--accent-fill); color: var(--accent-on); }
.faq__a {
  display: grid;
  gap: var(--space-2);
  max-width: 62ch;
  padding: 0 52px var(--space-4) 0;
  color: var(--ink-2);
}
.faq__a code { font-size: 0.9375em; font-weight: 600; color: var(--ink); }

/* ---------- Kontakt ---------- */
.form-card { max-width: 46rem; }
.contact { display: grid; gap: var(--space-4); }
.contact__row { display: grid; gap: var(--space-4); }
@media (min-width: 640px) {
  .contact__row { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
.field { display: grid; gap: 6px; }
.field__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.field__label { font-size: 0.9375rem; font-weight: 700; }
.field__counter { color: var(--ink-3); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.field__counter.is-near { color: var(--danger); }
.field__input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--field);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.field__input--area { min-height: 168px; resize: vertical; line-height: 1.5; }
.field__input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.field__input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.field__hint { color: var(--ink-3); font-size: 0.8125rem; }
.field__error { color: var(--danger); font-size: 0.875rem; font-weight: 600; }
.select { position: relative; }
.select__input {
  padding-right: 48px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.select__caret {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 16px;
  height: 16px;
  color: var(--ink-3);
  transform: translateY(-50%);
  pointer-events: none;
}
/* Honigtopf: aus dem Blickfeld, aber nicht display:none (manche Bots prüfen das) */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { color: var(--ink-3); font-size: 0.8125rem; line-height: 1.5; }
.form-privacy a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }

.form-alert,
.notice {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
}
.form-alert { background: var(--danger-bg); color: var(--danger); }
.notice { margin-bottom: var(--space-4); background: var(--hint-bg); color: var(--hint-ink); }
.notice--ok { background: var(--accent-softer); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-soft); }
/* Rückmeldung ohne JavaScript: nur sichtbar, wenn die Adresse auf #kontakt-gesendet / #kontakt-fehler endet */
.target-note { display: none; }
.target-note:target { display: block; }

.submit {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 54px;
  padding: 6px 6px 6px var(--space-5);
  border: 1px solid var(--accent-edge);
  border-radius: var(--radius-pill);
  background: var(--accent-fill);
  color: var(--accent-on);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.submit[aria-disabled="true"] { cursor: progress; }
.submit:disabled { opacity: 0.55; cursor: not-allowed; }
@media (min-width: 600px) {
  .submit { justify-self: start; }
}
.spinner {
  width: 1.1em;
  height: 1.1em;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-success { display: grid; justify-items: start; gap: var(--space-3); }
.form-success__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
.form-success__ring {
  position: absolute;
  inset: -7px;
  width: auto;
  height: auto;
  overflow: visible;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 100 100;
  transform: rotate(-90deg);
}
.form-success__icon .icon { width: 26px; height: 26px; }
.form-success__title { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; }
.form-success__title:focus { outline: none; }
.form-success p { color: var(--ink-2); }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface-glass);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

/* ---------- Hinweis zum manuellen Kopieren ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(var(--space-4), env(safe-area-inset-bottom));
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-2) var(--space-3);
  width: min(100% - 2 * var(--gutter), 420px);
  padding: var(--space-4);
  border-radius: var(--radius);
  background: var(--toast-bg);
  color: var(--toast-ink);
  box-shadow: var(--shadow-lg);
  transform: translateX(-50%);
}
.toast__text { grid-column: 1; font-size: 0.9375rem; line-height: 1.45; }
.toast__field {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 44px;
  padding: 0 var(--space-3);
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 0.08);
  color: var(--toast-ink);
  font: 600 0.9375rem var(--font-mono);
}
.toast__field:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.toast__close {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -10px -10px 0 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--toast-ink);
  cursor: pointer;
}
.toast__close:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }

/* Pixel-Funken beim Kopieren */
.burst {
  position: fixed;
  z-index: 40;
  width: 0;
  height: 0;
  pointer-events: none;
}
.burst > span {
  position: absolute;
  left: -3px;
  top: -3px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent-fill);
  box-shadow: inset 0 0 0 1px var(--accent-edge);
}
.burst > .burst__px--dark { background: var(--accent); box-shadow: none; }

/* ---------- Fußzeile ---------- */
.footer {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  padding-block: var(--space-6) max(var(--space-6), env(safe-area-inset-bottom));
  text-align: center;
}
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-1) var(--space-2); }
.footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--space-4);
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.footer__link[aria-current="page"] { color: var(--accent); background: var(--accent-softer); }
.footer__note {
  max-width: 46ch;
  color: var(--ink-3);
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* ---------- Impressum und Datenschutz ---------- */
.doc {
  width: min(100% - 2 * var(--gutter), 48rem);
  margin: var(--space-6) auto var(--space-5);
  padding: var(--space-5) var(--space-4);
  border: var(--shell-width) solid var(--shell);
  border-radius: var(--radius-card);
  background: var(--surface) padding-box;
  box-shadow: 0 0 0 1px var(--ring), inset 0 1px 0 var(--core-hi), var(--shadow-sm);
}
@media (min-width: 600px) {
  .doc { padding: var(--space-7); }
}
.doc__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.doc__lead {
  max-width: 62ch;
  margin-top: var(--space-4);
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.6;
}
.doc__meta { margin-top: var(--space-2); color: var(--ink-3); font-size: 0.875rem; }
.doc .notice { margin: var(--space-5) 0 0; font-weight: 500; line-height: 1.5; }
.doc .notice strong { font-weight: 800; }
.doc__section { margin-top: var(--space-7); max-width: 62ch; }
.doc__section h2 {
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.doc__section p,
.doc__section li { color: var(--ink-2); line-height: 1.7; overflow-wrap: anywhere; }
.doc__section p + p,
.doc__section p + ul,
.doc__section ul + p { margin-top: var(--space-3); }
.doc__section ul { padding-left: 1.25em; }
.doc a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc code { font-size: 0.9em; font-weight: 600; color: var(--ink); }

/* ---------- 404: Du bist ins Void gefallen ---------- */
.page-void .backdrop {
  background:
    radial-gradient(120% 80% at 50% 0%, oklch(0.25 0.03 290 / 0.6), transparent 60%),
    linear-gradient(#141220, #07060c 75%);
}
.page-void .glow,
.page-void .dots { display: none; }
.page-void .blocks { opacity: 0.6; }
.void {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - 180px);
  padding-block: var(--space-7);
}
.void__card {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
  width: min(100% - 2 * var(--gutter), 34rem);
  padding: var(--space-7) var(--space-5);
  border-radius: var(--radius-card);
  /* Rotschleier wie auf dem Todesbildschirm von Minecraft */
  background: linear-gradient(rgb(150 20 20 / 0.32), rgb(70 0 0 / 0.5));
  box-shadow: 0 0 0 1px rgb(255 120 120 / 0.18), 0 30px 80px -20px rgb(0 0 0 / 0.8);
  color: #fbfaf4;
  text-align: center;
}
.void__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.5rem + 3.6vw, 3.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
  text-shadow: 0 3px 0 rgb(0 0 0 / 0.35);
}
.void__score { font-size: 1.125rem; font-weight: 600; color: rgb(251 250 244 / 0.85); }
.void__score strong { color: #ffd84d; font-weight: 800; }
.void__text { max-width: 36ch; color: rgb(251 250 244 / 0.8); }
.void__actions {
  display: grid;
  gap: var(--space-2);
  width: min(100%, 22rem);
  margin-top: var(--space-4);
}
.void__actions .pill,
.void__actions .button { justify-content: center; width: 100%; }
.void__actions .pill { background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.25); color: #fbfaf4; }

/* ---------- Easter Egg: Creeper ---------- */
.creeper {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--space-5);
  background: rgb(18 34 12 / 0.55);
  pointer-events: none;
  animation: creeper-in 300ms ease-out both;
}
.creeper__face {
  width: min(52vmin, 300px);
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 30px 80px -10px rgb(0 0 0 / 0.6);
  animation: creeper-swell 1.5s ease-in both;
}
.creeper__face svg { width: 100%; height: 100%; }
.creeper__text {
  color: #fbfaf4;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  opacity: 0;
  text-shadow: 0 2px 12px rgb(0 0 0 / 0.5);
}
.creeper.is-boom { background: rgb(255 255 255 / 0.92); animation: creeper-flash 600ms ease-out both; }
.creeper.is-boom .creeper__face { animation: creeper-pop 300ms ease-in both; }
.creeper.is-boom .creeper__text { color: var(--feature-c); text-shadow: none; animation: creeper-text 400ms ease-out 200ms both; }
.creeper.is-out { animation: creeper-out 500ms ease-in both; }
.creeper--calm .creeper__face { animation: none; }
.creeper--calm.is-boom { animation: none; background: rgb(18 34 12 / 0.75); }
.creeper--calm.is-boom .creeper__face { animation: none; opacity: 0.3; }
.creeper--calm.is-boom .creeper__text { color: #fbfaf4; opacity: 1; animation: none; }

@keyframes creeper-in { from { opacity: 0; } }
@keyframes creeper-out { to { opacity: 0; } }
@keyframes creeper-swell {
  0% { transform: scale(0.6); filter: brightness(1); }
  40% { transform: scale(0.85); filter: brightness(1); }
  55% { filter: brightness(1.8); }
  70% { transform: scale(0.95); filter: brightness(1); }
  85% { filter: brightness(2); }
  100% { transform: scale(1.12); filter: brightness(2.4); }
}
@keyframes creeper-pop { to { transform: scale(1.6); opacity: 0; } }
@keyframes creeper-flash { from { background: rgb(255 255 255 / 1); } to { background: rgb(240 246 226 / 0.94); } }
@keyframes creeper-text { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.is-shaking :is(.topbar, main, .footer) { animation: shake 600ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }
@keyframes shake {
  10%, 90% { transform: translate3d(-2px, 1px, 0); }
  20%, 80% { transform: translate3d(4px, -2px, 0); }
  30%, 50%, 70% { transform: translate3d(-8px, 3px, 0); }
  40%, 60% { transform: translate3d(8px, -3px, 0); }
}

/* ==========================================================================
   Interaktion: Hover nur auf Geräten mit echtem Hover
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { color: var(--accent); background: var(--accent-softer); }
  .icon-btn:hover { background: var(--accent-softer); }
  .slab:hover { box-shadow: 0 0 0 1px var(--ring), inset 0 1px 0 rgb(255 255 255 / 0.14), var(--shadow-lg); }
  .slab:hover::after { opacity: 1; }
  .copy:hover:not(:disabled),
  .submit:hover:not(:disabled) { background: var(--accent-fill-hover); }
  .copy.is-done:hover { background: var(--done-fill); }
  .button:hover { background: var(--accent-fill-hover); box-shadow: var(--shadow-md); }
  .pill:hover { background: var(--surface); border-color: var(--accent-edge); }
  .footer__link:hover { color: var(--accent); background: var(--accent-softer); }
  .segmented label:hover { color: var(--ink); }
  .faq__q:hover .faq__icon { background: var(--accent-soft); }
  .member:hover { box-shadow: 0 0 0 1px var(--accent-edge), inset 0 1px 0 var(--core-hi), var(--shadow-lg); }
  .member.has-skin:hover .member__head { opacity: 0; transform: scale(0.7); }
  .member.has-skin:hover .member__body { opacity: 1; transform: translate(-50%, 0) scale(1); }
  .member:hover .member__flip { background: rgb(255 255 255 / 0.85); }
  .social:hover { background: var(--tint-ink); color: var(--surface); }
  .void__actions .pill:hover { background: rgb(255 255 255 / 0.16); }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .slab:hover { transform: translateY(-3px); --ring-alpha: 0.9; animation: ring-spin 2.8s linear infinite; }
  .slab:hover::before { animation: grid-drift 2.2s linear infinite; }
  .slab:hover .slab__emblem svg { transform: translateY(-2px) rotate(-4deg); }
  .slab:hover .slab__go { transform: scale(1.08); }
  .member:hover { transform: translateY(-4px); }
  .social:hover { transform: translateY(-2px) rotate(-6deg); }
  .button:hover { transform: translateY(-2px); }
  .button:hover .button__icon { transform: translate(2px, -1px) scale(1.06); }
  .copy:hover:not(:disabled),
  .submit:hover:not(:disabled),
  .pill:hover { transform: translateY(-1px); }
}
@keyframes ring-spin { to { --ring-angle: 360deg; } }
@keyframes grid-drift { to { background-position: 14px 14px, 14px 14px; } }

/* ==========================================================================
   Bewegung (nur, wenn erwünscht)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Druckreaktion */
  .copy:active:not(:disabled),
  .submit:active:not(:disabled),
  .pill:active,
  .icon-btn:active { transform: scale(0.96); transition-duration: var(--dur-fast); }
  .slab:active:not(:disabled) { transform: scale(0.98); transition-duration: var(--dur-fast); }

  .is-done .swap__b .icon { animation: pop 360ms var(--ease-spring); }

  /* Einstieg: ein orchestrierter Moment beim ersten Laden */
  .enter { animation: rise var(--dur-enter) var(--ease-out) both; animation-delay: calc(var(--i, 0) * var(--stagger)); }
  .d1 { --i: 1; } .d2 { --i: 2; } .d3 { --i: 3; } .d4 { --i: 4; } .d5 { --i: 5; }
  .emblem.enter { animation-name: block-drop; animation-duration: 820ms; animation-timing-function: var(--ease-spring); }
  .marker { animation: marker-wipe 700ms var(--ease-out) 420ms both; }
  .emblem.is-tapped .emblem__cube { animation: block-hop 420ms var(--ease-spring); }

  /* Status-Punkt pulsiert (grün online, rot offline) */
  [data-state="online"] .status__dot::after,
  [data-state="offline"] .status__dot::after,
  .event__live .status__dot::after { animation: pulse 2s var(--ease-out) infinite; }
  [data-state="loading"] .status__dot { animation: blink 1s ease-in-out infinite alternate; }

  .form-success:not([hidden]) .form-success__ring { animation: ring-draw 900ms var(--ease-out) 120ms both; }
  .form-success:not([hidden]) .form-success__icon .icon { animation: pop 560ms var(--ease-spring) 420ms both; }
  .faq__item[open] .faq__a { animation: rise 320ms var(--ease-out); }

  /* Beim Scrollen einblenden: nur Inhalte unterhalb des sichtbaren Bereichs, nur mit JavaScript */
  .js [data-reveal].is-pending { opacity: 0; transform: translateY(24px); }
  .js [data-reveal].is-revealed { transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
}

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes block-drop {
  0% { opacity: 0; transform: translateY(-36px) rotate(-8deg) scale(0.9); }
  60% { opacity: 1; transform: translateY(3px) rotate(1deg); }
  100% { transform: none; }
}
@keyframes block-hop {
  0%, 100% { transform: none; }
  40% { transform: translateY(-8px) rotate(-6deg); }
}
@keyframes marker-wipe {
  from { background-size: 0% 100%; }
  to { background-size: 100% 100%; }
}
@keyframes pop { from { transform: scale(0.4); } to { transform: scale(1); } }
@keyframes pulse {
  0% { opacity: 0.55; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.6); }
}
@keyframes blink { from { opacity: 0.35; } to { opacity: 1; } }
@keyframes ring-draw { from { stroke-dasharray: 0 100; } to { stroke-dasharray: 100 100; } }

/* Designwechsel: neues Design breitet sich kreisförmig vom Schalter aus */
.theme-switching::view-transition-old(root),
.theme-switching::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.theme-switching::view-transition-new(root) { animation: theme-reveal 560ms var(--ease-out) both; }
@keyframes theme-reveal {
  from { clip-path: circle(0 at var(--rx, 100%) var(--ry, 0)); }
  to { clip-path: circle(var(--rr, 150vmax) at var(--rx, 100%) var(--ry, 0)); }
}

/* ==========================================================================
   Reduzierte Bewegung: keine Hintergrund- oder Raumbewegung
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
  .spinner { animation: spin 1.6s linear infinite !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .topbar { --topbar-bg: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .status { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
