/* ==========================================================================
   SidewaysRP – Stylesheet
   Farben kommen aus config.js (werden per JS als CSS-Variablen gesetzt).
   Die Werte hier sind nur Fallbacks.
   ========================================================================== */

/* --- Schriften (lokal, kein Google-Fonts-Abruf) -------------------------- */
@font-face { font-family: "Kanit"; font-style: italic; font-weight: 600; font-display: swap; src: url("../fonts/kanit-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Kanit"; font-style: italic; font-weight: 800; font-display: swap; src: url("../fonts/kanit-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: "Kanit"; font-style: italic; font-weight: 900; font-display: swap; src: url("../fonts/kanit-latin-900-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2"); }

/* --- Variablen ------------------------------------------------------------ */
:root {
  --bg: #0f0819;
  --bg2: #1a0f2b;
  --primary: #ff2bd6;
  --secondary: #b78cff;
  --accent: #d7ff3a;
  --text: #f1eaff;
  --muted: #b3a6cc;
  --line: rgba(183, 140, 255, 0.18);
  --card: rgba(26, 15, 43, 0.72);
  --radius: 14px;
  --max: 1180px;
  --nav-h: 68px;
  --font-head: "Kanit", "Arial Black", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

/* --- Basis ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--secondary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--primary); color: #fff; }
h1, h2, h3 { font-family: var(--font-head); font-style: italic; font-weight: 800; line-height: 1.05; margin: 0; letter-spacing: 0.01em; }
p { margin: 0 0 1em; }
.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--accent); color: #111; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  --b: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  font-family: var(--font-head); font-style: italic; font-weight: 800; font-size: 17px;
  text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none;
  color: #fff; background: var(--b); border: 0; border-radius: 10px; cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
.btn:hover { color: #fff; transform: translateY(-2px) skewX(-4deg); filter: brightness(1.08); box-shadow: 0 10px 30px -8px var(--b); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--secondary); clip-path: none; }
.btn--ghost:hover { color: var(--text); background: rgba(183,140,255,.12); box-shadow: inset 0 0 0 2px var(--secondary); }
.btn--accent { --b: var(--accent); color: #140a20; }
.btn--accent:hover { color: #140a20; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 15px; }

/* --- Navigation ----------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: linear-gradient(180deg, rgba(15,8,25,.85), rgba(15,8,25,0));
  transition: background .25s ease, box-shadow .25s ease;
}
.nav.is-scrolled { background: rgba(15,8,25,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav__inner { display: flex; align-items: center; gap: 20px; width: min(100% - 32px, 1280px); margin-inline: auto; }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--font-head); font-style: italic; font-weight: 800; font-size: 20px; letter-spacing: .02em; margin-right: auto; }
.nav__brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px var(--primary), 0 0 18px -2px var(--primary); }
.nav__brand span b { color: var(--primary); font-weight: 800; }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a { display: block; padding: 8px 12px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; border-radius: 8px; transition: color .15s; }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--text); }
.nav__links a[aria-current] { box-shadow: inset 0 -2px 0 var(--primary); border-radius: 0; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0;
  background: rgba(183,140,255,.1); color: var(--text); border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.icon-btn:hover { background: rgba(183,140,255,.2); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.sound-btn .ico-on { display: none; }
.sound-btn[aria-pressed="true"] .ico-on { display: block; }
.sound-btn[aria-pressed="true"] .ico-off { display: none; }
.menu-btn { display: none; }

@media (max-width: 980px) {
  .menu-btn { display: inline-grid; }
  .nav__discord { display: none; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 20px; background: rgba(15,8,25,.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open .nav__links { transform: none; opacity: 1; visibility: visible; }
  .nav.is-open { background: rgba(15,8,25,.97); }
  .nav__links a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav__links a[aria-current] { box-shadow: none; color: var(--primary); }
  .nav__links .nav__mobile-cta { display: block; padding-top: 16px; }
  .nav__links .nav__mobile-cta a.btn { display: flex; width: 100%; padding: 0 26px; border: 0; color: #fff; font-size: 17px; letter-spacing: .04em; }
}
.nav__mobile-cta { display: none; }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: grid; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 72px;
  background: radial-gradient(120% 80% at 70% 30%, var(--bg2) 0%, var(--bg) 70%);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: .7; }
.hero::after {
  /* Abdunkelung für Lesbarkeit */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15,8,25,.94) 0%, rgba(15,8,25,.78) 35%, rgba(15,8,25,.25) 65%, rgba(15,8,25,.1) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(15,8,25,0) 28%),
    linear-gradient(180deg, rgba(15,8,25,.6) 0%, rgba(15,8,25,0) 18%);
}
.hero__content { position: relative; max-width: 760px; }
.hero__media { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero__img, .hero__fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__img { object-fit: cover; object-position: 62% 50%; filter: saturate(1.1); }
.js .hero__media { animation: kenburns 26s ease-in-out infinite alternate; transform-origin: 70% 60%; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.09) translateX(-1.2%); } }

.status {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 26px; padding: 8px 14px 8px 12px;
  background: rgba(15,8,25,.6); border: 1px solid var(--line); border-radius: 999px;
  font-weight: 600; font-size: 15px; color: var(--text);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.status[hidden] { display: none; }
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: #4dff88; box-shadow: 0 0 0 0 rgba(77,255,136,.6); animation: pulse 2s infinite; flex: none; }
.status[data-state="restart"] .status__dot { background: #ffc93a; box-shadow: none; animation: none; }
.status[data-state="offline"] .status__dot { background: #ff4d6a; box-shadow: none; animation: none; }
.status__bar { width: 80px; height: 6px; border-radius: 99px; background: rgba(183,140,255,.2); overflow: hidden; }
.status__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--secondary), var(--primary)); border-radius: inherit; transition: width .8s ease; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(77,255,136,0); } 100% { box-shadow: 0 0 0 0 rgba(77,255,136,0); } }

.hero__title { font-size: clamp(52px, 12.5vw, 150px); font-weight: 900; text-transform: uppercase; line-height: .9; margin: 0 0 18px; letter-spacing: -.01em; white-space: nowrap; width: max-content; max-width: calc(100vw - 32px); }
.hero__word {
  display: inline-block; color: var(--text);
  background: linear-gradient(100deg, #fff 0%, #f6dcff 40%, var(--secondary) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px rgba(255,43,214,.45));
  padding-right: .08em;
}
.hero__suffix {
  display: inline-block; margin-left: .12em; color: var(--primary); -webkit-text-fill-color: var(--primary);
  font-size: .5em; vertical-align: .62em; text-shadow: 0 0 24px rgba(255,43,214,.8);
}
.hero__tagline { font-family: var(--font-head); font-style: italic; font-weight: 600; font-size: clamp(20px, 2.6vw, 28px); color: var(--accent); margin: 0 0 14px; text-transform: uppercase; letter-spacing: .03em; }
.hero__text { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 600px; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }

/* Drift-Animation des Schriftzugs */
.js .hero__word { animation: drift-in 1.25s cubic-bezier(.2,.75,.15,1) .15s both; }
.js .hero__suffix { animation: suffix-in .6s cubic-bezier(.3,1.6,.5,1) 1.05s both; }
.js .hero__tagline, .js .hero__text, .js .hero__cta, .js .connect-hint, .js .stats { animation: fade-up .7s ease both; }
.js .hero__tagline { animation-delay: .9s; } .js .hero__text { animation-delay: 1s; } .js .hero__cta { animation-delay: 1.1s; } .js .connect-hint { animation-delay: 1.2s; } .js .stats { animation-delay: 1.35s; }
@keyframes drift-in {
  0%   { transform: translateX(-115vw) skewX(28deg) rotate(-4deg); filter: blur(10px) drop-shadow(0 0 22px rgba(255,43,214,.45)); opacity: 0; }
  45%  { opacity: 1; }
  62%  { transform: translateX(4%) skewX(-14deg) rotate(1.5deg); filter: blur(1px) drop-shadow(-30px 0 18px rgba(255,43,214,.7)); }
  80%  { transform: translateX(-1.2%) skewX(6deg) rotate(-.5deg); filter: blur(0) drop-shadow(0 0 22px rgba(255,43,214,.45)); }
  100% { transform: none; filter: drop-shadow(0 0 22px rgba(255,43,214,.45)); opacity: 1; }
}
@keyframes suffix-in { from { transform: scale(2.2) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade-up { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Hinweis unter den Buttons */
.connect-hint { margin: 0; font-size: 15px; color: var(--muted); }
.f8-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.f8-alt code { font: 13px ui-monospace, "SFMono-Regular", Consolas, monospace; color: var(--text); padding: 2px 6px; border-radius: 5px; background: rgba(183,140,255,.1); }
.f8-copy { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.f8-copy:hover, .f8-copy.is-done { color: var(--accent); border-color: var(--accent); }
.f8-copy svg { width: 15px; height: 15px; }
kbd { font: 600 12px/1 var(--font-body); padding: 3px 6px; border-radius: 5px; border: 1px solid var(--line); background: rgba(183,140,255,.1); color: var(--text); }

/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 46px; max-width: 760px; border-top: 1px solid var(--line); }
.stat { padding: 16px 12px 0 0; }
.stat b { display: block; white-space: nowrap; font-family: var(--font-head); font-style: italic; font-weight: 900; font-size: clamp(26px, 3.4vw, 38px); line-height: 1; color: var(--text); }
.stat:nth-child(odd) b { color: var(--accent); }
.stat span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 8px; } }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 14px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--primary); animation: cue 1.6s infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (max-height: 720px), (max-width: 560px) { .scroll-cue { display: none; } }

/* --- Drift-Übergang (Auto + Rauch) ---------------------------------------- */
.drift-band { position: relative; height: 140px; margin: -70px 0 -70px; pointer-events: none; }
.drift-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 90; pointer-events: none; }

/* --- Sektionen ------------------------------------------------------------ */
.section { position: relative; padding: 110px 0; }
.section--alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 18%, var(--bg2) 82%, var(--bg) 100%); }
.section-head { margin-bottom: 52px; max-width: 720px; }
.section-head__kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .16em; color: var(--primary); }
.section-head__kicker::before { content: ""; width: 34px; height: 3px; background: var(--primary); transform: skewX(-30deg); box-shadow: 0 0 12px var(--primary); }
.section-head h2 { font-size: clamp(38px, 6vw, 68px); text-transform: uppercase; }
.section-head h2 em { font-style: inherit; color: var(--secondary); }
.section-head p { margin: 16px 0 0; color: var(--muted); font-size: 18px; }
@media (max-width: 700px) { .section { padding: 80px 0; } .section-head { margin-bottom: 36px; } }

/* Einblenden beim Scrollen */
.js .reveal { opacity: 0; transform: translateY(28px) skewY(1.5deg); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* --- Karten (Features) ---------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid--3 { grid-template-columns: 1fr; } }
.card {
  position: relative; overflow: hidden; padding: 28px 26px 26px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255,43,214,.16), transparent 60%);
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,43,214,.5); box-shadow: 0 18px 40px -20px rgba(255,43,214,.55); }
.card:hover::before { opacity: 1; }
.card__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 12px; color: var(--accent); background: linear-gradient(135deg, rgba(255,43,214,.22), rgba(183,140,255,.12)); box-shadow: inset 0 0 0 1px rgba(255,43,214,.35); transform: skewX(-8deg); }
.card__icon svg { width: 30px; height: 30px; transform: skewX(8deg); }
.card__img { margin: -28px -26px 20px; aspect-ratio: 16 / 9; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-size: 26px; text-transform: uppercase; margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); }
.card__num { position: absolute; right: 18px; top: 10px; font-family: var(--font-head); font-style: italic; font-weight: 900; font-size: 64px; line-height: 1; color: rgba(183,140,255,.08); }

/* --- Goldene Regeln ------------------------------------------------------- */
.rules-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0 0 36px; padding: 0; counter-reset: rule; }
.rules-list li {
  counter-increment: rule; position: relative; padding: 70px 20px 22px;
  background: linear-gradient(160deg, rgba(255,43,214,.1), rgba(26,15,43,.6) 50%); border: 1px solid var(--line); border-radius: var(--radius);
}
.rules-list li::before { content: counter(rule); position: absolute; left: 18px; top: 8px; font-family: var(--font-head); font-style: italic; font-weight: 900; font-size: 56px; line-height: 1; color: var(--primary); text-shadow: 0 0 18px rgba(255,43,214,.6); }
.rules-list h3 { font-size: 20px; text-transform: uppercase; margin-bottom: 8px; }
.rules-list li { display: flex; flex-direction: column; }
.rules-list p { margin: 0 0 14px; font-size: 15px; color: var(--muted); }
.rule-ref { margin-top: auto; font-weight: 700; font-size: 14px; color: var(--secondary); text-decoration: none; }
.rule-ref:hover { color: var(--accent); }
@media (max-width: 1080px) { .rules-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .rules-list { grid-template-columns: 1fr; } .rules-list li { padding: 18px 18px 18px 72px; } .rules-list li::before { top: 50%; transform: translateY(-50%); font-size: 44px; } }

/* --- Schritte ------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 4%; right: 4%; top: 34px; height: 2px; background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent)); opacity: .5; }
.step { position: relative; display: flex; flex-direction: column; }
.step__num {
  position: relative; display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 20px;
  font-family: var(--font-head); font-style: italic; font-weight: 900; font-size: 30px; color: #fff;
  background: var(--bg); border: 2px solid var(--primary); border-radius: 50%; box-shadow: 0 0 22px -4px var(--primary);
}
.step:last-child .step__num { border-color: var(--accent); box-shadow: 0 0 22px -4px var(--accent); color: var(--accent); }
.step h3 { font-size: 24px; text-transform: uppercase; margin-bottom: 10px; }
.step p { color: var(--muted); margin-bottom: 16px; }
.step .btn { align-self: flex-start; margin-top: auto; }
.step__join { margin-top: auto; }
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
}
@media (max-width: 620px) {
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step { padding: 0 0 34px 88px; min-height: 68px; }
  .step__num { position: absolute; left: 0; top: 0; margin: 0; }
  .step:not(:last-child)::after { content: ""; position: absolute; left: 33px; top: 72px; bottom: 4px; width: 2px; background: linear-gradient(var(--primary), var(--secondary)); opacity: .5; }
}

/* --- Team ----------------------------------------------------------------- */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .team { grid-template-columns: 1fr; } }
.member { text-align: center; padding: 34px 20px 28px; }
.member__avatar {
  position: relative; display: grid; place-items: center; width: 110px; height: 110px; margin: 0 auto 20px; border-radius: 50%;
  font-family: var(--font-head); font-style: italic; font-weight: 900; font-size: 40px; color: #fff;
  border: 4px solid transparent;
  background: radial-gradient(circle at 30% 25%, #3a1f5e, var(--bg) 75%) padding-box,
              conic-gradient(from 200deg, var(--primary), var(--secondary), var(--accent), var(--primary)) border-box;
  box-shadow: 0 0 28px -6px var(--primary);
  transition: transform .4s ease, box-shadow .3s ease;
}
.member:hover .member__avatar { transform: rotate(-6deg) scale(1.05); box-shadow: 0 0 36px -4px var(--primary); }
.member h3 { font-size: 22px; margin-bottom: 4px; word-break: break-word; }
.member p { margin: 0; color: var(--accent); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; }
.team-note { margin-top: 28px; color: var(--muted); text-align: center; }

/* --- FAQ ------------------------------------------------------------------ */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s; }
.faq details[open] { border-color: rgba(255,43,214,.5); }
.faq summary {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; margin-left: auto; width: 12px; height: 12px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }
.faq details > div p { margin: 0; }

/* --- Spenden -------------------------------------------------------------- */
.donate {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
  padding: 48px; border-radius: 22px;
  background: linear-gradient(115deg, rgba(255,43,214,.22), rgba(183,140,255,.12) 45%, rgba(15,8,25,.6)), var(--bg2);
  border: 1px solid rgba(255,43,214,.35);
}
.donate::before { content: ""; position: absolute; right: -10%; top: -60%; width: 60%; height: 220%; background: repeating-linear-gradient(110deg, transparent 0 22px, rgba(215,255,58,.06) 22px 26px); pointer-events: none; }
.donate h2 { font-size: clamp(32px, 4.6vw, 52px); text-transform: uppercase; margin-bottom: 12px; }
.donate p { margin: 0; color: var(--muted); max-width: 620px; font-size: 18px; }
.donate__badge { display: inline-block; margin-bottom: 16px; padding: 6px 12px; border-radius: 6px; background: var(--accent); color: #140a20; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; transform: skewX(-10deg); }
@media (max-width: 760px) { .donate { grid-template-columns: 1fr; padding: 32px 22px; } }

/* --- Footer --------------------------------------------------------------- */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--line); background: #0b0613; color: var(--muted); font-size: 15px; }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.footer__brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-family: var(--font-head); font-style: italic; font-weight: 800; font-size: 22px; }
.footer__brand img { width: 48px; height: 48px; border-radius: 50%; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.footer__links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer__links a:hover { color: var(--text); }
.footer__note { margin: 0; font-size: 13px; opacity: .8; }

/* --- Unterseiten (Regelwerk, Impressum, Datenschutz) ---------------------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--nav-h) + 70px) 0 50px; background: radial-gradient(100% 120% at 80% 0%, var(--bg2), var(--bg) 70%); }
.page-hero .hero__bg { opacity: .55; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg), rgba(15,8,25,.3)); }
.page-hero h1 { font-size: clamp(48px, 9vw, 104px); text-transform: uppercase; font-weight: 900; }
.page-hero h1 span { color: var(--primary); }
.page-hero p { margin: 16px 0 0; color: var(--muted); font-size: 18px; max-width: 640px; }
.page-body { padding: 30px 0 110px; }

.prose { max-width: 780px; }
.prose h2 { font-size: 30px; text-transform: uppercase; margin: 44px 0 14px; color: var(--text); }
.prose h3 { font-size: 21px; margin: 28px 0 10px; color: var(--secondary); }
.prose p, .prose li { color: #d5cae8; }
.prose ul { padding-left: 1.2em; }
.prose address { font-style: normal; }
.notice { padding: 18px 20px; margin-bottom: 30px; border-radius: 12px; border: 1px solid rgba(255,201,58,.5); background: rgba(255,201,58,.08); color: #ffe7a6; }
.notice strong { color: #ffc93a; }

/* Regelwerk */
.rules-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .rules-layout { grid-template-columns: 1fr; gap: 24px; } }
.rules-toc { position: sticky; top: calc(var(--nav-h) + 20px); max-height: calc(100vh - var(--nav-h) - 40px); overflow: auto; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.rules-toc h2 { font-size: 16px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-family: var(--font-body); font-style: normal; font-weight: 700; margin-bottom: 10px; }
.rules-toc ol { list-style: none; margin: 0; padding: 0; }
.rules-toc a { display: flex; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.35; }
.rules-toc .toc-num { color: var(--primary); font-weight: 700; min-width: 2.4em; flex: none; }
.rules-toc a:hover { background: rgba(183,140,255,.12); }
@media (max-width: 900px) { .rules-toc { position: static; max-height: none; } .rules-toc ol { columns: 2; column-gap: 16px; } }
@media (max-width: 500px) { .rules-toc ol { columns: 1; } }

.rules-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; }
.search { position: relative; flex: 1 1 280px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 52px; padding: 0 16px 0 46px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font: 500 17px var(--font-body);
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,43,214,.2); }
.rules-meta { font-size: 14px; color: var(--muted); margin: 0 0 24px; }
.rules-meta a { white-space: nowrap; }

.rule-section { margin-bottom: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.rule-section[open] { border-color: rgba(255,43,214,.4); }
.rule-section > summary { display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; list-style: none; }
.rule-section > summary::-webkit-details-marker { display: none; }
.rule-section > summary h2 { font-size: 24px; text-transform: uppercase; }
.rule-section > summary .sec-num { font-family: var(--font-head); font-style: italic; font-weight: 900; font-size: 24px; color: var(--primary); min-width: 2.2em; }
.rule-section > summary::after { content: ""; flex: none; margin-left: auto; width: 12px; height: 12px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg); transition: transform .2s; }
.rule-section[open] > summary::after { transform: rotate(-135deg); }
.rule-section__body { padding: 0 20px 14px; }
.rule-sub { margin: 18px 0 8px; font-size: 18px; color: var(--secondary); text-transform: uppercase; }
.rule { position: relative; display: grid; grid-template-columns: 4.2em minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 10px 8px; border-top: 1px solid rgba(183,140,255,.1); border-radius: 8px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.rule:target, .rule.is-target { background: rgba(215,255,58,.08); box-shadow: inset 3px 0 0 var(--accent); }
.rule__num { font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rule__text { color: #ddd2ef; overflow-wrap: anywhere; }
.rule__more { margin: 6px 0 0; color: var(--muted); }
.rule__term { color: var(--secondary); }
.rule--plain .rule__num { color: var(--secondary); text-align: center; }
.rules-intro { margin-bottom: 26px; padding: 18px 20px; border-left: 3px solid var(--primary); background: rgba(255,43,214,.06); border-radius: 0 12px 12px 0; }
.rules-intro p { margin: 0 0 10px; color: #d5cae8; }
.rules-intro p:last-child { margin: 0; }
.rule__link { opacity: 0; display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; transition: opacity .15s, color .15s, background .15s; }
.rule:hover .rule__link, .rule__link:focus-visible, .rule__link.is-done { opacity: 1; }
.rule__link:hover { color: var(--accent); background: rgba(183,140,255,.12); }
.rule__link.is-done { color: var(--accent); }
.rule__link svg { width: 18px; height: 18px; }
@media (hover: none) { .rule__link { opacity: .6; } }
@media (max-width: 520px) { .rule { grid-template-columns: 3.4em minmax(0, 1fr) auto; } .rule-section > summary h2 { font-size: 20px; } }
mark { background: rgba(215,255,58,.3); color: #fff; border-radius: 3px; padding: 0 2px; }
.rules-empty, .rules-error { padding: 30px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }
.rules-error .btn { margin-top: 16px; }
.skeleton { height: 64px; margin-bottom: 14px; border-radius: var(--radius); background: linear-gradient(90deg, var(--card) 0%, rgba(183,140,255,.12) 50%, var(--card) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: 10px; background: var(--accent); color: #140a20; font-weight: 700; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* --- Seitenwechsel (View Transitions, Chrome/Edge/Safari) ----------------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .38s cubic-bezier(.5,0,.75,0) both; }
::view-transition-new(root) { animation: vt-in .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes vt-out { to { transform: translateX(-18%) skewX(12deg); opacity: 0; filter: blur(8px); } }
@keyframes vt-in { from { transform: translateX(22%) skewX(-14deg); opacity: 0; filter: blur(10px); } }
.nav { view-transition-name: nav; }
::view-transition-old(nav), ::view-transition-new(nav) { animation: none; }

/* --- Reduzierte Bewegung -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .drift-band { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
