/* ---------------------------------------------------------------------------
   PLAXIA – Neo-Skin
   Legt das neue dunkle Design über alle öffentlichen Seiten. Wird NACH home.css
   und den seitenspezifischen Stylesheets geladen und überschreibt Farb- und
   Radius-Tokens sowie Kopf- und Fußbereich. Der Admin-Bereich lädt diese Datei
   bewusst nicht.
   Farben passen zu neo.css (Startseite): neutrales Anthrazit, ein Akzent.
   --------------------------------------------------------------------------- */
html:root,
html:root[data-theme],
html:root:not([data-theme]) {
  color-scheme: dark;

  --paper: #0f0f0f;
  --surface: #161616;
  --surface-soft: #1d1d1d;
  --surface-mute: #252525;
  --surface-glass: rgba(22, 22, 22, .9);
  --surface-veil: rgba(22, 22, 22, .72);
  --hover: rgba(255, 255, 255, .06);

  --ink: #f0f0f0;
  --muted: #9b9b9b;
  --muted-2: #8a8a8a;

  --line: rgba(255, 255, 255, .08);
  --line-soft: rgba(255, 255, 255, .05);
  --line-strong: rgba(255, 255, 255, .14);
  --shadow: 0 24px 70px rgba(0, 0, 0, .45);
  --shadow-md: 0 18px 44px rgba(0, 0, 0, .4);
  --shadow-sm: 0 12px 30px rgba(0, 0, 0, .3);

  --blue: #7182ff;
  --blue-dark: #5c6cf5;
  --blue-solid: #4655e8;
  --blue-soft: rgba(70, 85, 232, .16);
  --blue-ink: #b9c2ff;
  --purple: #a97bff;
  --purple-soft: rgba(169, 123, 255, .16);
  --purple-ink: #d6befb;
  --danger: #ff8080;
  --success: #5fd39a;

  --contrast: #f0f0f0;
  --contrast-ink: #151515;
  --dark: var(--contrast);

  --radius-xl: 23px;
  --radius-lg: 18px;
  --radius-md: 11px;
  --shell: 1240px;

  --tint-blue: linear-gradient(135deg, #1d1d1d, #191919);
  --tile-wiki-bg: #161616;
  --tile-wiki-line: var(--line);
  --edition-java: var(--surface-mute);
  --edition-bedrock: var(--surface-mute);
  --address-java: var(--surface-soft);
  --address-bedrock: var(--surface-soft);
  --body-glow: transparent;
  --brand-filter: none;
}

body { background: var(--paper); }

/* ---------- Kopfleiste: durchgezogen ---------- */
.topbar {
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 15, 15, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
}
.nav-shell {
  height: 72px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.brand { margin-left: 0; font-size: 15px; letter-spacing: .06em; }
.brand img { width: 26px; height: 31px; }

.nav { height: 100%; align-items: stretch; gap: 4px; }
.nav-item { display: flex; align-items: stretch; }
.nav .nav-link,
.nav .nav-link--button {
  position: relative;
  min-height: 0;
  padding: 0 16px;
  border-radius: 0;
  background: transparent !important;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.nav .nav-link::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.nav .nav-link:hover,
.nav-item.is-open > .nav-link--button { color: var(--ink); }
.nav .nav-link:hover::after,
.nav-item.is-open > .nav-link--button::after,
.nav .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav .nav-link[aria-current="page"] { color: var(--ink); }
.nav-item::after { height: 10px; }

.dropdown-menu {
  top: calc(100% + 6px);
  padding: 6px;
  gap: 2px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.dropdown-menu a { padding: 10px 14px; border-radius: 8px; font-weight: 500; }
.dropdown-menu a:hover { background: var(--hover); color: var(--ink); }

/* ---------- Buttons ---------- */
.button { min-height: 52px; font-weight: 600; }
.button--primary,
.nav-cta.button--dark { color: #fff; background: var(--blue-solid); box-shadow: none; }
.button--primary:hover,
.nav-cta.button--dark:hover { background: #5666f2; }
.button--dark { color: var(--contrast-ink); background: var(--contrast); box-shadow: none; }
.button--ghost { border-color: var(--line-strong); background: rgba(255, 255, 255, .03); }
.button--ghost:hover { background: rgba(255, 255, 255, .08); }
.nav-cta { min-height: 44px; min-width: 0; padding: 0 18px; font-size: 14px; }

/* ---------- Seitenköpfe und Karten ---------- */
.page-hero-card { background: var(--surface); box-shadow: none; }
.page-hero-panel--blue { background: var(--blue-solid); box-shadow: none; }
.content-card, .application-form, .rule-section-card, .feature-card { box-shadow: none; }
.page-hero-copy h1 { font-weight: 500; letter-spacing: -.045em; }
.section-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--blue); font-size: 12px; letter-spacing: .12em;
}
.section-kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }

/* ---------- Fuß ---------- */
.footer-main { border-bottom: 1px solid var(--line); }
.footer-links a { font-weight: 500; color: var(--muted); }
.footer-links a:hover { color: var(--blue); }

/* ---------- Schwebende Schalter: nur Sprache ---------- */
.switch-btn--theme { display: none; }

/* ---------- Mobil ---------- */
@media (max-width: 1000px) {
  .nav-shell { height: 64px; }
  .nav .nav-link,
  .nav .nav-link--button { padding: 0 6px; min-height: 48px; }
  .nav .nav-link::after { display: none; }
  .nav-item { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .nav .nav-link::after { transition: none; }
}

/* ---------- Blaue Flächen: einheitlich flach statt Verlauf ---------- */
.page-hero-panel--blue,
.team-overview,
.team-apply-card,
.reward-panel,
.partner-info-card--blue,
.partner-cta-card,
.wiki-help-card,
.legal-hero-side,
.system-card-art { background: var(--blue-solid); box-shadow: none; }

/* Seitenhintergründe ohne farbige Lichtflecken */
body.legal-page,
html.is-system-page body { background: var(--paper); }

/* Wartungs- und Systemseiten haben eigene Textfarben */
html:root {
  --maintenance-blue: #7182ff;
  --maintenance-ink: #f0f0f0;
  --maintenance-muted: #9b9b9b;
}

/* ---------- Regelwerk ---------- */
.rules-intro { max-width: 760px; margin: 0 0 14px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.rules-intro strong { color: var(--ink); font-weight: 600; }
.rules-document > .rules-category { scroll-margin-top: 100px; }
.rules-document > .rules-intro + .rules-category,
.rules-document > .rule-section-card + .rules-category { margin-top: 72px; }
.rules-document > .rules-intro:last-of-type { margin-bottom: 26px; }
.rule-section-card li strong { color: var(--ink); font-weight: 600; }
.rule-section-card li a { color: var(--blue); }
.rule-section-card li a:hover { text-decoration: underline; }
.rules-layout .sticky-index { max-height: calc(100vh - 128px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.rules-layout .sticky-index .index-label:not(:first-child) { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- Kompaktere Seitenköpfe (Hero-Karten) ---------- */
.page-hero-card,
.team-hero-card { min-height: 0; gap: 14px; padding: 14px; }
.page-hero-copy,
.team-hero-copy { padding: clamp(28px, 4vw, 52px); }
.page-hero-copy h1,
.team-hero-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 500;
}
.page-hero-copy .section-kicker { margin-bottom: 14px; }
.page-hero-copy > p:last-child,
.team-hero-copy > p { margin-top: 0; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.65; }
.page-hero-panel { min-height: 0; padding: 26px 28px; justify-content: flex-end; }
.page-hero-panel > strong { margin: 8px 0 12px; font-size: clamp(30px, 3vw, 44px); }

.team-hero-card { grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr); }
.team-overview { min-height: 0; padding: 26px 28px; gap: 28px; }
.team-overview-top strong { margin-top: 20px; font-size: clamp(64px, 6.4vw, 92px); }
.team-overview-top > span:last-child { margin-top: 12px; }
.team-intro h2 { font-size: clamp(34px, 4.2vw, 58px); }

.legal-hero { padding-top: 24px; }
.legal-hero-side { min-height: 0; }

@media (max-width: 900px) {
  .page-hero-card, .team-hero-card { grid-template-columns: 1fr; }
}
