/* =========================================================================
   Air-V Roleplay, Website Stylesheet
   Dunkles FiveM-RP-Theme auf der Air-V Markenpalette: Air-V Blau auf
   tiefem Schwarz, Schriftart Exo 2.
   ========================================================================= */

:root {
  /* ---- Air-V Brand Palette ---- */
  --clr-white:        #ffffff;
  --clr-text:         #8aa0b2;
  --clr-black:        #000000;

  --clr-airv:         #51cafc;
  --clr-airv-soft:    #7bd6fd;
  --clr-airv-deep:    #0a8fc9;
  --clr-airv-glow:    rgba(81, 202, 252, 0.45);
  --clr-airv-faint:   rgba(81, 202, 252, 0.08);

  --clr-bg-1:         #000000;
  --clr-bg-2:         #050a10;
  --clr-bg-3:         #0a1118;
  --clr-surface:      rgba(255, 255, 255, 0.03);
  --clr-surface-hover:rgba(81, 202, 252, 0.08);
  --clr-border:       rgba(81, 202, 252, 0.18);
  --clr-border-strong:rgba(81, 202, 252, 0.45);

  /* ---- Semantic tokens (used across the site) ---- */
  --bg:        var(--clr-bg-1);
  --bg-2:      var(--clr-bg-2);
  --bg-3:      var(--clr-bg-3);
  --card:      rgba(7, 13, 19, 0.62);
  --card-2:    rgba(12, 21, 30, 0.62);
  --line:      var(--clr-border);
  --line-2:    var(--clr-border-strong);

  --text:      var(--clr-white);
  --muted:     var(--clr-text);
  --faint:     #566876;

  --accent:    var(--clr-airv);
  --accent-2:  var(--clr-airv-deep);
  --green:     #38d39f;
  --red:       #ff5d6c;

  --grad:      linear-gradient(135deg, var(--clr-airv) 0%, var(--clr-airv-deep) 100%);

  --radius:    2.5vh;
  --radius-sm: 1.5vh;
  --shadow:    0 2.4vh 6vh rgba(0, 0, 0, 0.55);
  --glow:      0 0 4vh var(--clr-airv-glow);

  --maxw:      1180px;
  --font:      'Exo 2', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-head: 'Exo 2', 'Segoe UI', system-ui, sans-serif;
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Durchgehender Nachthimmel im Hintergrund (fix, immer sichtbar) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 620px at 82% -8%, rgba(10,143,201, 0.22), transparent 62%),
    radial-gradient(760px 600px at 6% 4%, rgba(81,202,252, 0.14), transparent 60%),
    radial-gradient(1200px 900px at 50% 120%, rgba(10,143,201, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Sterne & Wolken */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: url(../sky.svg) center center / cover no-repeat;
  opacity: 0.9;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.relative  { position: relative; z-index: 1; }

/* ------------------------------------------------------------------ utils */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gold-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(81,202,252, 0.06);
}
/* minimal line-icons used in icon chips (cards, philosophy, rule blocks) */
.icn { width: 1.5rem; height: 1.5rem; stroke: var(--accent); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; display: block; }

.section { padding: 96px 0; position: relative; z-index: 1; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 18px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 13px 26px;
  border-radius: 1.1vh;
  border: 1.5px solid var(--clr-airv);
  cursor: pointer;
  color: var(--clr-white);
  background: linear-gradient(135deg, rgba(81,202,252,0.10) 0%, rgba(81,202,252,0.02) 100%);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, letter-spacing 0.25s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
/* shimmer sweep */
.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover {
  background: linear-gradient(135deg, var(--clr-airv) 0%, var(--clr-airv-deep) 100%);
  color: var(--clr-black);
  box-shadow: 0 0 2.5vh var(--clr-airv-glow), 0 0.5vh 1.5vh rgba(0,0,0,0.4);
  letter-spacing: 0.22em;
  transform: translateY(-0.2vh);
}
.btn:hover::before { left: 100%; }
.btn:active { transform: translateY(0); }

/* primary = filled airv from the start; ghost = outline only */
.btn-primary {
  background: linear-gradient(135deg, var(--clr-airv) 0%, var(--clr-airv-deep) 100%);
  color: var(--clr-black);
  box-shadow: var(--glow);
}
.btn-ghost {
  background: var(--clr-surface);
  border-color: var(--line-2);
}
.btn-block { width: 100%; }

/* ================================================================== HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; }
.brand-logo {
  height: 46px; width: auto; display: block;
  border-radius: 10px;
  filter: drop-shadow(0 0 1.6vh var(--clr-airv-glow));
}
.site-footer .brand-logo { height: 40px; }
.brand .name { font-size: 1.18rem; }

/* solid (filled) icons like the Discord logo, recolored to the brand accent */
.icn-d { width: 1.5rem; height: 1.5rem; fill: var(--accent); display: block; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  border: 1px solid var(--line-2); background: var(--clr-surface);
  display: grid; place-items: center; color: var(--accent);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.icon-btn:hover { background: rgba(81,202,252,0.12); transform: translateY(-2px); box-shadow: var(--glow); }
.brand .name small { display: block; font-size: 0.62rem; font-weight: 500; letter-spacing: 0.22em; color: var(--faint); text-transform: uppercase; }
.site-header .brand .name small { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 0.94rem; font-weight: 500; color: var(--muted);
  padding: 9px 14px; border-radius: 9px; transition: color 0.15s, background 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* ================================================================== HERO */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
/* transparent, damit der globale Nachthimmel durchscheint; nur ein Glow oben */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(120% 80% at 50% -12%, rgba(10,143,201,0.28), transparent 60%);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.55), transparent),
    radial-gradient(2px 2px at 70% 60%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 40% 80%, rgba(81,202,252,0.7), transparent),
    radial-gradient(1.5px 1.5px at 85% 20%, rgba(255,255,255,0.45), transparent),
    radial-gradient(2px 2px at 55% 15%, rgba(10,143,201,0.6), transparent);
  opacity: 0.7;
}
/* zentrierter, symmetrischer Hero */
.hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; text-align: center; }

/* Logo + Schriftzug als Einheit, gleiches Größenverhältnis wie im Header */
.hero-id { display: inline-block; margin: 0 auto; }
.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 16px;
}
.hero-logo {
  width: clamp(72px, 9vw, 96px);
  height: auto;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 0 4vh var(--clr-airv-glow));
}
.hero-brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.7rem, 4.2vw, 2.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-align: left;
}
.hero-brand-name small {
  display: block;
  font-size: 0.52em;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.12em;
}
@media (max-width: 520px) {
  .hero-brand { gap: 14px; }
  .hero-brand-name { font-size: 1.6rem; }
}
.status-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(56, 211, 159, 0.10);
  border: 1px solid rgba(56, 211, 159, 0.35);
  color: var(--green); font-size: 0.85rem; font-weight: 600;
  margin-bottom: 26px;
}
/* Panel etwa so breit wie die Logo+Text-Einheit */
.hero-id .status-pill { display: flex; width: 100%; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(56,211,159,0.6); animation: pulse 2s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(56,211,159,0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(56,211,159,0); }
  100% { box-shadow: 0 0 0 0 rgba(56,211,159,0); }
}
/* Server offline: rote Variante, kein Puls */
.status-pill[data-state="offline"] {
  background: rgba(248, 113, 113, 0.10);
  border-color: rgba(248, 113, 113, 0.35);
  color: #f87171;
}
.status-pill[data-state="offline"] .status-dot { background: #f87171; animation: none; box-shadow: none; }
/* Status wird geladen / unbekannt: neutrale graue Variante */
.status-pill[data-state="loading"] {
  background: rgba(148, 163, 184, 0.10);
  border-color: rgba(148, 163, 184, 0.30);
  color: var(--muted);
}
.status-pill[data-state="loading"] .status-dot { background: var(--muted); animation: none; box-shadow: none; }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 800; margin-bottom: 22px; }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 620px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 44px; }
.hero-connect {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 0.92rem; color: var(--muted);
  background: rgba(255,255,255,0.03); border: 1px dashed var(--line-2);
  padding: 10px 16px; border-radius: 12px;
}
.hero-connect code { color: var(--accent); font-weight: 600; }

/* Launch-Countdown-Banner (Gründerphase bis Season-1-Start) */
.launch-banner {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin: 26px auto 0; padding: 16px 28px; max-width: 460px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
.launch-banner .launch-label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
}
.launch-banner strong { font-family: var(--font-head); font-size: 1.15rem; }
.launch-banner .launch-countdown {
  font-family: var(--font-head); font-size: 0.95rem; color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.hero-stats .stat strong { font-family: var(--font-head); font-size: 2rem; display: block; }
.hero-stats .stat span { color: var(--faint); font-size: 0.85rem; letter-spacing: 0.05em; }

/* ================================================================== FEATURES */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: linear-gradient(180deg, var(--card-2) 0%, var(--card) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: var(--grad); opacity: 0; transition: opacity 0.22s;
  mix-blend-mode: overlay;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card:hover::before { opacity: 0.06; }
.card .ic {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.5rem;
  background: rgba(81,202,252,0.12); border: 1px solid var(--line-2);
  margin-bottom: 20px;
}
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* Glas-Optik: leicht durchscheinende Oberflächen, der Nachthimmel bleibt sichtbar */
.card, .step, .member, .phase, .philo, .rule-item, .partner, .cta-band, .legal-placeholder, .callout {
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

/* ================================================================== STEPS */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px; position: relative;
}
.step .num {
  font-family: var(--font-head); font-weight: 800; font-size: 2.4rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; line-height: 1; margin-bottom: 14px;
}
.step h4 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }
.step .connect-code { margin-top: 12px; font-size: 0.85rem; color: var(--accent); font-weight: 600; }

/* ================================================================== GALLERY */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; }
.tile {
  border-radius: var(--radius-sm); overflow: hidden; position: relative;
  border: 1px solid var(--line);
  display: flex; align-items: flex-end; padding: 18px;
  transition: transform 0.22s ease;
}
.tile:hover { transform: scale(1.02); }
.tile span { position: relative; z-index: 2; font-family: var(--font-head); font-weight: 600; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.6) 100%); z-index: 1; }
.tile.wide { grid-column: span 2; }
.tile.tall { grid-row: span 2; }
.g1 { background: linear-gradient(135deg, #102a4d, #1d4a7a); }
.g2 { background: linear-gradient(135deg, #2a1d4d, #5a2b7a); }
.g3 { background: linear-gradient(135deg, #0d3a3a, #1d7a6a); }
.g4 { background: linear-gradient(135deg, #4d2a10, #7a4a1d); }
.g5 { background: linear-gradient(135deg, #1a1d4d, #2b3b7a); }
.g6 { background: linear-gradient(135deg, #4d1020, #7a1d3a); }
.g7 { background: linear-gradient(135deg, #11324d, #1d6a7a); }

/* ================================================================== COMMUNITY / CTA */
.cta-band {
  background:
    linear-gradient(135deg, rgba(10,143,201,0.16), rgba(81,202,252,0.05)),
    rgba(5,10,16,0.45);
  border: 1px solid var(--line-2);
  border-radius: 28px;
  padding: 60px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 300px at 50% 0%, rgba(81,202,252,0.18), transparent 70%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 32px; }
.cta-stats { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; margin-bottom: 36px; }
.cta-stats .stat strong { font-family: var(--font-head); font-size: 2.4rem; display: block; }
.cta-stats .stat span { color: var(--faint); font-size: 0.85rem; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ================================================================== PARTNERS */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.partner {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 20px 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.partner:hover { border-color: var(--line-2); transform: translateY(-3px); }
.partner .pic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; background: rgba(255,255,255,0.05); }
.partner h4 { font-size: 1rem; }
.partner small { color: var(--faint); }

/* ================================================================== PAGE HEADER (inner pages) */
.page-hero {
  padding: 140px 0 70px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10,143,201,0.08), transparent);
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 18px 0 14px; }
.page-hero p { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 1.08rem; }
.page-hero .rules-stand {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--clr-airv-faint);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ================================================================== RULES */
.rules-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
.rules-nav { position: sticky; top: 92px; }
.rules-nav a {
  display: block; padding: 10px 14px; border-radius: 10px; color: var(--muted);
  font-size: 0.94rem; border-left: 2px solid transparent; transition: all 0.15s;
}
.rules-nav a:hover, .rules-nav a.active { color: var(--text); background: rgba(255,255,255,0.04); border-left-color: var(--accent); }
.rule-block { margin-bottom: 44px; scroll-margin-top: 92px; }
.rule-block > h2 { font-size: 1.6rem; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.rule-block > h2 .rb-ic { width: auto; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 1vh; background: rgba(81,202,252,0.10); border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; color: var(--accent); white-space: nowrap; flex-shrink: 0; }
.rule-block > p.intro { color: var(--muted); margin-bottom: 18px; }
.rule-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 18px 20px; margin-bottom: 12px;
  display: flex; gap: 16px;
}
.rule-item .rn { font-family: var(--font-head); font-weight: 700; color: var(--accent); flex-shrink: 0; min-width: 2.6rem; }
.rule-item h4 { font-size: 1.02rem; margin-bottom: 4px; }
.rule-item p { color: var(--muted); font-size: 0.94rem; }
.rule-item ul.sub { margin-top: 8px; display: grid; gap: 5px; }
.rule-item ul.sub li { color: var(--muted); font-size: 0.92rem; padding-left: 16px; position: relative; }
.rule-item ul.sub li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.rule-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 0.9rem; }
.rule-table th, .rule-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.rule-table th { font-family: var(--font-head); color: var(--accent); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
.rule-table td { color: var(--muted); }
.rule-table tr:last-child td { border-bottom: 0; }
.callout {
  border-radius: var(--radius-sm); padding: 18px 22px; margin: 22px 0;
  border: 1px solid; display: flex; gap: 14px;
}
.callout.warn { background: rgba(255,93,108,0.07); border-color: rgba(255,93,108,0.3); }
.callout.info { background: rgba(81,202,252,0.07); border-color: var(--line-2); }
.callout .ci { font-size: 1.3rem; flex-shrink: 0; }
.callout .ci .icn { width: 1.7rem; height: 1.7rem; }
.callout.warn .ci .icn { stroke: var(--red); }
.callout strong { display: block; margin-bottom: 3px; }
.callout p { color: var(--muted); font-size: 0.92rem; }

/* ================================================================== TIMELINE (history) */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent); }
.tl-item { position: relative; margin-bottom: 40px; }
.tl-item::before { content: ""; position: absolute; left: -30px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); box-shadow: var(--glow); }
.tl-item .tl-date { font-family: var(--font-head); font-weight: 700; color: var(--accent); font-size: 0.95rem; margin-bottom: 6px; }
.tl-item h3 { font-size: 1.3rem; margin-bottom: 8px; }
.tl-item p { color: var(--muted); }

/* ================================================================== ROADMAP */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.phase {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; position: relative;
}
.phase.done { border-color: rgba(56,211,159,0.35); }
.phase.active { border-color: var(--line-2); box-shadow: var(--glow); }
.phase .ph-tag {
  display: inline-flex; align-items: center; gap: 7px; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.phase.done .ph-tag { background: rgba(56,211,159,0.12); color: var(--green); }
.phase.active .ph-tag { background: rgba(81,202,252,0.12); color: var(--accent); }
.phase.soon .ph-tag { background: rgba(255,255,255,0.06); color: var(--faint); }
.phase h3 { font-size: 1.35rem; margin-bottom: 16px; }
.phase ul li { display: flex; gap: 10px; padding: 8px 0; color: var(--muted); font-size: 0.95rem; border-bottom: 1px solid var(--line); }
.phase ul li:last-child { border-bottom: 0; }
.phase ul li .chk { color: var(--accent); flex-shrink: 0; }
.phase.done ul li .chk { color: var(--green); }

/* ================================================================== PHILOSOPHY */
.philo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.philo {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px; display: flex; gap: 22px;
}
.philo .pic { width: 60px; height: 60px; border-radius: 16px; flex-shrink: 0; display: grid; place-items: center; font-size: 1.7rem; background: rgba(81,202,252,0.10); border: 1px solid var(--line-2); }
.philo h3 { font-size: 1.4rem; margin-bottom: 10px; }
.philo p { color: var(--muted); }

/* ================================================================== TEAM / HIGHTEAM */
.team-group { margin-bottom: 64px; }
.team-group-head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.team-group-head .tg-line { flex: 1; height: 1px; background: var(--line); }
.team-group-head h2 { font-size: 1.5rem; white-space: nowrap; display: flex; align-items: center; gap: 14px; }
.team-group-head .tg-dot { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; box-shadow: 0 0 1.4vh var(--clr-airv-glow); }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.member {
  background: linear-gradient(180deg, var(--card-2) 0%, var(--card) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px; text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative; overflow: hidden;
}
.member:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--shadow); }
.member .rank-bar { position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.member .avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 6px auto 16px;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.8rem;
  color: #fff; position: relative;
  background: rgba(255,255,255,0.05);
}
/* Ring = Discord-Rollenfarbe (per --ring inline gesetzt), Fallback currentColor. */
.member .avatar::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--ring, currentColor); opacity: 0.6;
}
.member .avatar .avatar-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover; display: block;
}
.member .mname { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.member .mrole { font-size: 0.85rem; font-weight: 600; margin-bottom: 12px; }
.member .mtags { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.member .mtag { font-size: 0.7rem; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,0.05); color: var(--muted); border: 1px solid var(--line); }

.team-legend { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-bottom: 50px; }
.team-legend .lg { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); }
.team-legend .lg .sw { width: 14px; height: 14px; border-radius: 4px; }

/* rank color tokens, an on-brand cyan/blue ramp instead of rainbow hues */
.c-lead   { color: #d6f2ff; } .bg-lead   { background: linear-gradient(135deg,#d6f2ff,#7bd6fd); }
.c-dev    { color: #7bd6fd; } .bg-dev    { background: linear-gradient(135deg,#7bd6fd,#51cafc); }
.c-admin  { color: #51cafc; } .bg-admin  { background: linear-gradient(135deg,#51cafc,#0a8fc9); }
.c-frak   { color: #38b6e8; } .bg-frak   { background: linear-gradient(135deg,#38b6e8,#0a6f9c); }
.c-mod    { color: #51cafc; } .bg-mod    { background: linear-gradient(135deg,#51cafc,#0a8fc9); }
.c-supp   { color: #6fd1d6; } .bg-supp   { background: linear-gradient(135deg,#6fd1d6,#1f8fa0); }
.c-comm   { color: #9ee2ff; } .bg-comm   { background: linear-gradient(135deg,#9ee2ff,#51cafc); }

/* ================================================================== LEGAL (placeholder pages) */
.legal-doc { max-width: 760px; margin: 0 auto; }
.legal-placeholder {
  color: var(--muted); font-size: 1.05rem; line-height: 1.7;
  background: var(--clr-surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 32px;
}
.legal-placeholder a { color: var(--accent); }

/* ================================================================== FOOTER */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 30px; background: linear-gradient(180deg, transparent 0%, rgba(3,7,12,0.6) 100%); position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { color: var(--muted); margin: 16px 0 20px; max-width: 320px; font-size: 0.95rem; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); display: grid; place-items: center; transition: all 0.15s; }
.footer-social a:hover { background: rgba(81,202,252,0.12); border-color: var(--line-2); }
.footer-col h5 { font-family: var(--font-head); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); padding: 6px 0; font-size: 0.94rem; transition: color 0.15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.85rem; flex-wrap: wrap; gap: 12px; }

/* ================================================================== BACK TO TOP */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 95;
  width: 48px; height: 48px; border-radius: 14px;
  border: 1px solid var(--line-2); background: rgba(5,10,16,0.6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--accent); cursor: pointer;
  display: grid; place-items: center;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: rgba(81,202,252,0.16); box-shadow: var(--glow); transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 520px) { .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; } }

/* ================================================================== REVEAL ANIM */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.99);
  filter: blur(3px);
  transition: opacity 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
              filter 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ================================================================== RESPONSIVE */
@media (max-width: 980px) {
  .cards, .partners, .roadmap { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .philo-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rules-layout { grid-template-columns: minmax(0, 1fr); }
  .rules-nav { position: static; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
  .rules-nav a { border-left: 0; border: 1px solid var(--line); border-radius: 999px; }
  .rules-nav a:hover, .rules-nav a.active { border-color: var(--accent); }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 12px 22px; gap: 0;
  }
  .site-header.open .nav-links a { padding: 14px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .site-header .brand .name { display: none; }
  .cards, .partners, .roadmap, .gallery { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: 160px; }
  .tile.wide, .tile.tall { grid-column: auto; grid-row: auto; }
  .hero-stats { gap: 26px; }
  .cta-band { padding: 40px 24px; }
}
@media (max-width: 460px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* große Monitore: mehr Breite nutzen, Inhalt mitskalieren, Ränder symmetrisch */
@media (min-width: 1600px) {
  :root { --maxw: 1360px; }
  html { font-size: 17.5px; }
}
@media (min-width: 2000px) {
  :root { --maxw: 1560px; }
  html { font-size: 19px; }
  .cards { gap: 28px; }
}
@media (min-width: 2560px) {
  :root { --maxw: 1840px; }
  html { font-size: 21px; }
}

/* ====================================================== ROADMAP (Timeline) */
:root { --rm-orange: #f5a524; --rm-idea: #a78bfa; }

.rm-hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 40px; margin-top: 30px; }
.rm-hero-stats .rm-stat { display: flex; align-items: baseline; gap: 9px; }
.rm-hero-stats .rm-stat strong { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; line-height: 1; }
.rm-hero-stats .rm-stat span { color: var(--muted); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.rm-stat.s-total strong { color: var(--text); }
.rm-stat.s-done strong { color: var(--green); }
.rm-stat.s-active strong { color: var(--rm-orange); }
.rm-stat.s-soon strong { color: var(--accent); }

/* --- Filterleiste: klebt beim Scrollen, damit Suche/Filter immer greifbar
   bleiben (dieselbe Mechanik wie die Regeln-Toolbar). --- */
.rm-filter {
  position: sticky; top: 84px; z-index: 6;
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 30px; padding: 14px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.rm-search-wrap { position: relative; display: flex; align-items: center; }
.rm-search-wrap .rm-sic { position: absolute; left: 15px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.rm-search-wrap .rm-sic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.rm-search-input {
  width: 100%; padding: 11px 110px 11px 44px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  color: var(--text); font-family: var(--font); font-size: 0.95rem;
}
.rm-search-input:focus { outline: none; border-color: var(--line-2); }
.rm-search-input::placeholder { color: var(--faint); }
.rm-search-input::-webkit-search-cancel-button { filter: invert(0.6); }
.rm-search-count { position: absolute; right: 18px; color: var(--accent); font-size: 0.78rem; font-weight: 600; white-space: nowrap; pointer-events: none; }

.rm-pillrow { display: flex; flex-wrap: wrap; gap: 8px; }
.rm-pillrow.rm-catrow { padding-top: 11px; border-top: 1px solid var(--line); }
.rm-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em;
  color: var(--muted); cursor: pointer;
  background: var(--clr-surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 15px; transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.rm-pill:hover { color: var(--text); border-color: var(--line-2); }
.rm-pill.active { color: #03121b; background: var(--grad); border-color: transparent; }
.rm-pill > i {
  font-style: normal; font-size: 0.72rem; font-weight: 700; line-height: 1;
  padding: 2px 6px; border-radius: 999px; background: rgba(255,255,255,0.07); color: inherit;
}
.rm-pill.active > i { background: rgba(0,0,0,0.16); }
.rm-pillrow[data-group="status"] .rm-pill { text-transform: uppercase; }

/* Timeline */
.rm-timeline { position: relative; margin-top: 14px; }
.rm-phase { position: relative; padding-left: 58px; padding-bottom: 40px; }
.rm-phase::before { content: ""; position: absolute; left: 18px; top: 6px; bottom: -6px; width: 2px; background: linear-gradient(var(--line-2), var(--line)); }
.rm-phase:last-child::before { bottom: auto; height: 40px; }
.rm-node {
  position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800;
  color: var(--accent); background: var(--bg-3); border: 2px solid var(--line-2);
  box-shadow: 0 0 0 5px rgba(81,202,252,0.06); z-index: 1;
}
.rm-node-check { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--green) 8%, transparent); }
.rm-node-check svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rm-phase.rm-archive .rm-phase-title { font-size: 1.3rem; color: var(--muted); }

.rm-phase-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.rm-quarter { display: block; width: 100%; font-family: var(--font-head); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.rm-quarter.rm-q-archive { color: var(--green); }
.rm-phase-title { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; margin: 0; }
.rm-phase-prog { display: flex; align-items: center; gap: 10px; margin-left: auto; color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.rm-phase-prog .rm-mini { width: 90px; height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; }
.rm-phase-prog .rm-mini > i { display: block; height: 100%; background: var(--grad); border-radius: 999px; }

/* Auf-/Zuklappen einer Phase */
.rm-toggle {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-family: var(--font-head); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.03em;
  color: var(--muted); background: var(--clr-surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.rm-toggle:hover { color: var(--text); border-color: var(--line-2); }
.rm-chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s ease; }
.rm-phase.rm-collapsed .rm-chev { transform: rotate(-90deg); }
.rm-phase.rm-collapsed .rm-phase-body { display: none; }
.rm-phase:not(.rm-collapsed) .rm-summary { display: none; }

/* Kategorie-Kurzfassung, solange die Phase zu ist */
.rm-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.rm-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.78rem; font-weight: 600; color: var(--muted);
  background: var(--clr-surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px;
}
.rm-chip > i { font-style: normal; font-size: 0.72rem; font-weight: 700; color: var(--accent); }

/* Kategorie-Gruppen innerhalb einer Phase */
.rm-phase-body { margin-top: 20px; }
.rm-group + .rm-group { margin-top: 26px; }
.rm-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.rm-group-name {
  font-family: var(--font-head); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--text); margin: 0;
}
.rm-group-n {
  font-size: 0.72rem; font-weight: 700; color: var(--muted);
  background: var(--clr-surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 9px; line-height: 1.5;
}
.rm-group-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.rm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.rm-card {
  --c: var(--accent);
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.rm-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.rm-card.s-done { --c: var(--green); }
.rm-card.s-active { --c: var(--rm-orange); }
.rm-card.s-soon { --c: var(--accent); }
.rm-card.s-idea { --c: var(--rm-idea); }
.rm-card-top { display: flex; align-items: center; justify-content: flex-start; gap: 10px; margin-bottom: 10px; }
.rm-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.rm-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.rm-card-title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin: 0 0 6px; }
.rm-card-desc { color: var(--muted); font-size: 0.88rem; line-height: 1.55; margin: 0; }

/* Abgeschlossene Einträge brauchen keinen 100%-Balken und dürfen dichter
   stehen — sonst füllen die ~130 fertigen Features die halbe Seite. */
.rm-card.rm-slim { padding: 15px 17px; }
.rm-card.rm-slim .rm-card-title { font-size: 0.98rem; margin-bottom: 4px; }
.rm-card.rm-slim .rm-card-desc { font-size: 0.84rem; }
.rm-prog { margin-top: 16px; }
.rm-prog-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; font-weight: 600; margin-bottom: 7px; }
.rm-prog-top .rm-prog-label { color: var(--muted); letter-spacing: 0.03em; }
.rm-prog-top .rm-prog-pct { color: var(--c); font-family: var(--font-head); }
.rm-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.rm-bar > i { display: block; height: 100%; background: var(--c); border-radius: 999px; transition: width 0.6s ease; }

.rm-card.rm-hidden { display: none; }
.rm-phase.rm-hidden { display: none; }
.rm-group.rm-hidden { display: none; }
.rm-empty { color: var(--muted); padding: 20px 0; }

@media (max-width: 720px) {
  .rm-cards { grid-template-columns: 1fr; }
  .rm-phase { padding-left: 46px; }
  .rm-phase-prog { width: 100%; margin-left: 0; }
  .rm-filter { top: 70px; padding: 12px; }
  /* Auf schmalen Schirmen sind 11 Kategorie-Pills zwei Reihen zu viel —
     horizontal scrollen statt die halbe Seite mit Filtern zu füllen. */
  .rm-catrow { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .rm-catrow::-webkit-scrollbar { display: none; }
  .rm-catrow .rm-pill { flex: 0 0 auto; }
  .rm-toggle { margin-left: auto; }
}
/* ============================================== /ROADMAP (Timeline) */

/* ================================ REGELN: Stats, Suche & Accordion */
.rules-stats { display: flex; justify-content: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.rules-stats .rl-stat { display: flex; align-items: baseline; gap: 8px; background: var(--clr-surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 20px; }
.rules-stats .rl-stat strong { font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; color: var(--accent); line-height: 1; }
.rules-stats .rl-stat span { color: var(--muted); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; }

.rules-toolbar { position: sticky; top: 84px; z-index: 6; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 26px; padding: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.rules-search-wrap { position: relative; flex: 1 1 240px; display: flex; align-items: center; }
.rules-search-wrap .rl-sic { position: absolute; left: 15px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.rules-search-wrap .rl-sic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.rules-search-input { width: 100%; padding: 11px 96px 11px 44px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-family: var(--font); font-size: 0.95rem; }
.rules-search-input:focus { outline: none; border-color: var(--line-2); }
.rules-search-input::placeholder { color: var(--faint); }
.rules-search-count { position: absolute; right: 16px; color: var(--accent); font-size: 0.78rem; font-weight: 600; white-space: nowrap; pointer-events: none; }
.rules-tools { display: flex; gap: 8px; }
.rl-tool { font-family: var(--font-head); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em; color: var(--muted); cursor: pointer; background: var(--clr-surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; transition: all 0.16s ease; }
.rl-tool:hover { color: var(--text); border-color: var(--line-2); }

.rule-block > h2.rb-toggle { cursor: pointer; user-select: none; }
.rb-count { margin-left: auto; font-family: var(--font-head); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; color: var(--accent); background: var(--clr-airv-faint); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; }
.rb-chev { width: 22px; height: 22px; display: grid; place-items: center; color: var(--muted); transition: transform 0.2s ease; flex-shrink: 0; }
.rb-chev svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rule-block.collapsed .rb-chev { transform: rotate(-90deg); }
.rule-block > h2.rb-toggle:hover .rb-chev { color: var(--accent); }
.rule-block.collapsed > :not(h2) { display: none; }

.rule-item.rl-hide, .callout.rl-hide { display: none !important; }
.rule-block.rl-nomatch { display: none; }
.rules-content.searching > .callout { display: none; }

.rules-changelog { display: flex; gap: 16px; align-items: flex-start; margin-top: 36px; padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); }
.rules-changelog .rc-ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--clr-airv-faint); color: var(--accent); }
.rules-changelog .rc-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rules-changelog strong { font-family: var(--font-head); font-size: 1.05rem; }
.rules-changelog p { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }
.rules-changelog time { color: var(--accent); font-weight: 600; }

@media (max-width: 980px) {
  .rules-toolbar { position: static; top: auto; }
}
/* Tabs (Regelwerk / Fraktionsregeln) */
.rules-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 34px; flex-wrap: wrap; }
.rules-tab { font-family: var(--font-head); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.03em; color: var(--muted); cursor: pointer; background: var(--clr-surface); border: 1px solid var(--line); border-radius: 999px; padding: 11px 24px; transition: all 0.18s ease; }
.rules-tab:hover { color: var(--text); border-color: var(--line-2); }
.rules-tab.active { color: #03121b; background: var(--grad); border-color: transparent; }
.rules-panel[hidden] { display: none; }

.coming-soon { text-align: center; padding: 80px 24px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--card); }
.coming-soon .cs-ic { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: var(--clr-airv-faint); color: var(--accent); }
.coming-soon .cs-ic svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.coming-soon h2 { font-size: 1.8rem; margin-bottom: 12px; }
.coming-soon p { color: var(--muted); max-width: 520px; margin: 0 auto; text-wrap: balance; }
.coming-soon .cs-badge { display: inline-block; margin-top: 22px; padding: 7px 18px; border-radius: 999px; background: var(--clr-airv-faint); border: 1px solid var(--line); color: var(--accent); font-family: var(--font-head); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

/* Gesetze: Strafmaß-Hervorhebung + Paragraph-Breite */
.law-pen { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 6px 13px; border-radius: 8px; background: rgba(255,93,108,0.08); border: 1px solid rgba(255,93,108,0.28); color: #ff9aa4; font-family: var(--font-head); font-size: 0.85rem; font-weight: 600; }
.law-pen::before { content: "Strafmaß"; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: none; font-weight: 700; color: var(--red); opacity: 0.85; }
.rule-item p + p { margin-top: 8px; }
.law-sub { font-family: var(--font-head); font-size: 1.05rem; color: var(--accent); margin: 26px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); letter-spacing: 0.02em; }
.law-sub:first-of-type { margin-top: 6px; }
.law-intro { color: var(--muted); font-size: 0.94rem; margin-bottom: 14px; font-style: italic; }
/* ============================================== /REGELN (Stats/Suche/Accordion) */

/* ============================================================ AIRV-OWNER-CARD
   Owner-Spotlight: eigene Hero-Sektion GANZ OBEN in der Team-Liste, klar
   abgehoben vom Rest. Großer Avatar mit Gold-Ring + rotierender Aura + Krone,
   Gold-Gradient-Name, OWNER-Label, Inhaber-Badge, Tagline, Licht-Sweep. */
.team-owner { margin: 0 0 48px; }
.team-owner .tos-inner {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 34px;
  padding: 32px 36px; border-radius: var(--radius);
  border: 1px solid #ffcf5a;
  background:
    radial-gradient(85% 140% at 10% 0%, rgba(255,209,102,0.20), rgba(255,209,102,0) 55%),
    linear-gradient(180deg, #17161e 0%, #0e131c 100%);
  box-shadow: 0 0 0 1px rgba(255,209,102,0.40), 0 0 44px rgba(255,176,32,0.22), 0 26px 64px rgba(0,0,0,0.5);
}
/* Licht-Sweep über die Karte. */
.team-owner .tos-inner::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 45%; left: -70%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.10), transparent);
  transform: skewX(-18deg); pointer-events: none;
  animation: tosShine 6.5s ease-in-out infinite;
}
@keyframes tosShine { 0% { left: -70%; } 55%, 100% { left: 150%; } }

.tos-avatar-wrap { position: relative; flex-shrink: 0; }
/* rotierende Gold/Cyan-Aura hinter dem runden Avatar (dekorativ, unkritisch). */
.tos-avatar-wrap::before {
  content: ""; position: absolute; inset: -9px; border-radius: 50%; z-index: 0;
  background: conic-gradient(#ffd76a, #ffb020, #51cafc, #ffe9a8, #ffd76a);
  filter: blur(9px); opacity: 0.6; animation: tosSpin 9s linear infinite;
}
@keyframes tosSpin { to { transform: rotate(360deg); } }
.tos-avatar {
  position: relative; z-index: 1; width: 128px; height: 128px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden; background: #12161f;
  font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: #fff;
  box-shadow: 0 0 0 3px #ffcf5a, 0 0 34px rgba(255,176,32,0.45);
}
.tos-avatar .tos-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team-owner .owner-crown { top: -22px; width: 50px; height: 40px; z-index: 2; }

.tos-body { position: relative; z-index: 1; min-width: 0; }
.tos-eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 3px;
  font-size: 0.78rem; font-weight: 800; color: #ffcf5a; margin-bottom: 2px;
}
.tos-name {
  font-family: var(--font-head); font-weight: 800; line-height: 1.05;
  font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin: 2px 0 12px;
  background: linear-gradient(92deg, #fff3cf, #ffd76a 45%, #ffb020);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(255,176,32,0.28));
}
.tos-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tos-role { color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.tos-desc { color: var(--muted); margin: 14px 0 0; max-width: 620px; line-height: 1.55; }
@media (prefers-reduced-motion: reduce) {
  .team-owner .tos-inner::after, .tos-avatar-wrap::before { animation: none; }
}

/* Krone (Basis). */
.owner-crown {
  position: absolute; left: 50%; transform: translateX(-50%);
  color: #ffd76a; filter: drop-shadow(0 3px 8px rgba(255,176,32,0.55));
}
.owner-crown svg { width: 100%; height: 100%; display: block; }
/* "Inhaber"-Badge (Gold). */
.owner-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 13px; border-radius: 999px; font-weight: 800; font-size: 0.74rem;
  letter-spacing: 0.6px; text-transform: uppercase; color: #1c1305;
  background: linear-gradient(90deg, #ffe9a8, #ffc24d);
  box-shadow: 0 3px 12px rgba(255,176,32,0.4);
}
.owner-tag svg { width: 14px; height: 14px; display: block; }

/* Mobil: gestapelt + zentriert. */
@media (max-width: 640px) {
  .team-owner .tos-inner { flex-direction: column; text-align: center; gap: 20px; padding: 34px 22px 28px; }
  .tos-body { display: flex; flex-direction: column; align-items: center; }
  .tos-meta { justify-content: center; }
  .tos-avatar { width: 108px; height: 108px; font-size: 2.2rem; }
  .team-owner .owner-crown { top: -20px; width: 44px; height: 36px; }
}
/* =========================================================== /AIRV-OWNER-CARD */

/* utility classes (moved from inline styles for strict CSP) */
.u-mt-30{margin-top:30px}
.u-mt-36{margin-top:36px}
.u-mt-40{margin-top:40px}
.u-mt-50{margin-top:50px}
.u-mt-60{margin-top:60px}
.u-faint{color:var(--faint)}
.u-narrow{max-width:760px;margin-left:auto;margin-right:auto}
.u-jc-center{justify-content:center}

/* Team: Gruppen-Beschreibung (ehem. Inline-Style — CSP-konform als Klasse) */
.tg-desc { color: var(--muted); margin: -12px 0 24px; text-wrap: balance; }

/* Archiv-Banner (archive.airv.life) */
.archive-banner{position:sticky;top:0;z-index:1000;background:rgba(7,13,19,.92);backdrop-filter:blur(8px);border-bottom:1px solid rgba(81,202,252,.35);color:#8aa0b2;font-size:13px;text-align:center;padding:8px 14px;line-height:1.45}
.archive-banner b{color:#51cafc;font-weight:600}
.archive-banner a{color:#51cafc;text-decoration:none}
.archive-banner a:hover{text-decoration:underline}
