/* ==========================================================================
   Spreewald-Roleplay – öffentliches Design (Nordverband-inspiriert)
   Dunkel + Blau-Akzent, Hex-Hintergrund, zentrierter Hero.
   ========================================================================== */

:root {
    --bg:          #07090f;
    --surface:     #0f1219;
    --surface-2:   #151923;
    --surface-3:   #1c2230;
    --ink:         #ffffff;
    --ink-2:       rgba(255,255,255,.72);
    --ink-3:       rgba(255,255,255,.45);
    --line:        rgba(255,255,255,.08);
    --line-strong: rgba(255,255,255,.14);

    --accent:      #3b82f6;
    --accent-2:    #60a5fa;
    --accent-soft: rgba(59,130,246,.16);
    --red:         #3b82f6; /* Kompatibilität älterer Selektoren */
    --red-soft:    rgba(59,130,246,.14);
    --blue:        #3b82f6;
    --blue-soft:   rgba(59,130,246,.14);
    --online:      #22c55e;
    --warn:        #fbbf24;
    --warn-soft:   rgba(251,191,36,.12);

    --font-display: 'Outfit', system-ui, sans-serif;
    --font-body:    'Manrope', system-ui, sans-serif;

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --wrap: 1180px;
    --gutter: clamp(16px, 4vw, 40px);
    --header-h: 72px;

    --white: var(--ink);
    --white-70: var(--ink-2);
    --white-40: var(--ink-3);
    --white-10: var(--surface-2);
    --white-5: var(--surface);
    --border: var(--line);
    --accent-cyan: var(--accent);
    --navy-950: var(--bg);
}

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

html {
    scroll-padding-top: calc(var(--header-h) + 16px);
    background: var(--bg);
    width: 100%;
}
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    background: transparent;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    /* overflow-x:hidden erzwingt overflow-y:auto → Doppel-Scrollbar / Scroll-Falle */
    overflow-x: clip;
    overflow-y: visible;
    /* Stacking-Kontext, damit der fixed BG-Layer hinter dem Inhalt bleibt */
    isolation: isolate;
}

/* Hex-Muster + Glow: fixed Layer (.ls-bg im Header-Partial, body::before als Fallback)
   – bleibt beim Scrollen stehen, kein background-attachment:fixed (weniger Mobile-Jank) */
.ls-bg,
body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59,130,246,.16), transparent 55%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='rgba(255,255,255,0.035)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: auto, 56px 100px;
    background-repeat: no-repeat, repeat;
}
body::before { content: ''; }
body:has(.ls-bg)::before { display: none; content: none; }
/* Optional: CMS-Hero-Bild als site-weites Fixed-BG unter Hex/Glow */
.ls-bg.ls-bg--photo,
body.ls-has-page-bg::before {
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59,130,246,.16), transparent 55%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='rgba(255,255,255,0.035)' stroke-width='1'/%3E%3C/svg%3E"),
        linear-gradient(180deg, rgba(7,9,15,.58), rgba(7,9,15,.92)),
        var(--ls-page-bg);
    background-size: auto, 56px 100px, auto, cover;
    background-position: center, 0 0, center, center;
    background-repeat: no-repeat, repeat, no-repeat, no-repeat;
}

main, .ls-main { flex: 1; }

a { color: var(--accent-2); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
b, strong { font-weight: 600; color: var(--ink); }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -.02em; color: var(--ink); font-weight: 700; }

.ls-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.bg-scene { display: none !important; }

/* ─── Kopfleiste ─────────────────────────────────────────────── */
.ls-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(7,9,15,.92);
    border-bottom: 1px solid var(--line);
    /* blur nur Desktop – auf Mobil teuer beim Scrollen */
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    @media (hover: hover) and (min-width: 901px) {
        .ls-header {
            background: rgba(7,9,15,.78);
            backdrop-filter: saturate(140%) blur(10px);
            -webkit-backdrop-filter: saturate(140%) blur(10px);
        }
    }
}
.ls-header-inner {
    height: var(--header-h);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
}
.ls-brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: #fff;
    font-family: var(--font-display); font-weight: 700; font-size: 15px;
    letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.ls-brand:hover { color: #fff; }
.ls-brand-mark {
    width: 34px; height: 34px; border-radius: 9px;
    object-fit: cover; flex-shrink: 0;
    background: transparent;
}
.ls-brand span em { font-style: normal; color: var(--accent-2); }

.ls-nav {
    display: flex; align-items: center; justify-content: center;
    gap: 0; flex-wrap: nowrap; min-width: 0;
}
.ls-nav a:not(.ls-btn) {
    color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 14px;
    padding: 8px 11px; border-radius: var(--r-sm);
    transition: color .15s, background .15s;
    white-space: nowrap;
}
.ls-nav a:not(.ls-btn):hover { color: #fff; background: rgba(255,255,255,.04); }
.ls-nav a[aria-current="page"] { color: #fff; position: relative; }
.ls-nav a[aria-current="page"]::after {
    content: ''; position: absolute; left: 11px; right: 11px; bottom: 2px;
    height: 2px; background: var(--accent); border-radius: 2px;
}

.ls-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ls-header-actions .ls-nav-extra { display: flex; align-items: center; gap: 0; margin-right: 6px; }
.ls-header-actions .ls-nav-extra a {
    display: inline-flex; align-items: center; gap: 5px;
    color: var(--ink-3); text-decoration: none; font-size: 13px; font-weight: 500;
    padding: 8px 10px; border-radius: var(--r-sm); white-space: nowrap;
}
.ls-header-actions .ls-nav-extra a:hover { color: #fff; }
.ls-header-actions .ls-nav-extra a[aria-current="page"] { color: #fff; position: relative; }
.ls-header-actions .ls-nav-extra a[aria-current="page"]::after {
    content: ''; position: absolute; left: 10px; right: 10px; bottom: 2px;
    height: 2px; background: var(--accent); border-radius: 2px;
}
.ls-ext { opacity: .55; flex-shrink: 0; }
.ls-header-actions .ls-nav-extra a:hover .ls-ext { opacity: .9; }
.ls-header-actions .ls-nav-extra a[aria-current="page"] .ls-ext { opacity: .9; }

.ls-menu-toggle {
    display: none;
    background: var(--surface-2); border: 1px solid var(--line-strong);
    border-radius: var(--r-sm); padding: 8px 14px;
    font: 600 14px var(--font-body); color: var(--ink); cursor: pointer;
}

@media (max-width: 1100px) {
    .ls-header-inner { grid-template-columns: 1fr auto; height: auto; min-height: var(--header-h); padding: 12px 0; align-items: center; }
    .ls-menu-toggle { display: block; transition: background .15s, border-color .15s, color .15s; }
    .ls-nav, .ls-header-actions {
        display: flex; flex-direction: column; align-items: stretch;
        grid-column: 1 / -1;
        max-height: 0; opacity: 0; overflow: hidden; pointer-events: none;
        padding: 0; gap: 0;
        transition: max-height .28s cubic-bezier(.16,1,.3,1), opacity .2s ease, padding .2s ease;
    }
    .ls-nav.open, .ls-header-actions.open {
        max-height: 480px; opacity: 1; pointer-events: auto;
        padding: 8px 0 12px; gap: 4px;
    }
    .ls-header-actions.open { flex-direction: column; align-items: stretch; padding-top: 0; }
    .ls-header-actions .ls-nav-extra { flex-direction: column; align-items: stretch; margin: 0; }
    .ls-nav a[aria-current="page"]::after,
    .ls-header-actions .ls-nav-extra a[aria-current="page"]::after { display: none; }
    .ls-nav a[aria-current="page"],
    .ls-header-actions .ls-nav-extra a[aria-current="page"] { background: rgba(59,130,246,.14); }
    .ls-header-actions .ls-btn { justify-content: center; width: 100%; }
}

/* ─── Buttons ────────────────────────────────────────────────── */
.ls-btn, .btn-primary, .btn-ghost, .btn-apply, .btn-modal-primary, .btn-modal-close, .cookie-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font: 600 14px/1 var(--font-body);
    padding: 12px 20px; border-radius: 10px;
    text-decoration: none; cursor: pointer;
    border: 1px solid transparent;
    transition: background .15s, border-color .15s, color .15s, transform .1s;
    white-space: nowrap;
}
.ls-btn:active, .btn-primary:active, .btn-ghost:active, .btn-apply:active { transform: translateY(1px); }
.ls-btn svg, .btn-primary svg, .btn-apply svg, .btn-modal-primary svg { width: 16px; height: 16px; fill: currentColor !important; }

.ls-btn-primary, .btn-primary, .btn-apply, .btn-modal-primary {
    background: var(--accent); color: #fff;
}
.ls-btn-primary:hover, .btn-primary:hover, .btn-apply:hover, .btn-modal-primary:hover {
    background: #2563eb; color: #fff;
}
.ls-btn-light {
    background: rgba(255,255,255,.06); color: #fff; border-color: var(--line-strong);
}
.ls-btn-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.ls-btn-secondary, .btn-ghost, .btn-modal-close {
    background: transparent; color: var(--ink-2); border-color: transparent;
}
.ls-btn-secondary:hover, .btn-ghost:hover, .btn-modal-close:hover {
    color: #fff; background: rgba(255,255,255,.05);
}
.ls-btn-sm { padding: 9px 16px; font-size: 13px; }

/* ─── Seitenkopf (Unterseiten) ───────────────────────────────── */
.page-header {
    position: relative; width: 100%; max-width: var(--wrap);
    margin: 0 auto; padding: clamp(56px, 9vw, 96px) var(--gutter) 48px;
}
.page-header::before {
    content: ''; position: absolute; top: 0; left: 50%;
    width: 100vw; height: 100%; transform: translateX(-50%);
    background: radial-gradient(40% 90% at 50% 0%, rgba(59,130,246,.18), transparent 70%);
    pointer-events: none; z-index: -1;
}
.page-eyebrow { display: none; }
.page-title {
    font-size: clamp(36px, 6vw, 64px); font-weight: 800;
    letter-spacing: -.04em; line-height: 1; max-width: 18ch;
}
.page-subtitle {
    margin-top: 18px; font-size: clamp(16px, 2vw, 18px);
    color: var(--ink-2); max-width: 58ch;
}
.section-label {
    font-family: var(--font-display); font-size: 22px; font-weight: 700;
    color: var(--ink); margin-bottom: 24px;
}

/* ─── Cookie-Banner (mittig) ────────────────────────────────── */
.cookie-banner {
    position: fixed; right: 20px; bottom: 20px; left: auto; top: auto;
    z-index: 1100; width: min(420px, calc(100vw - 32px));
    display: block; padding: 0; margin: 0;
    background: transparent; border: none; border-radius: 0; box-shadow: none;
    color: var(--ink-2); font-size: 14.5px; pointer-events: none;
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner-card {
    pointer-events: auto;
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    padding: 20px 18px;
    box-shadow: 0 22px 56px -10px rgba(0,0,0,.72);
}
.cookie-banner-title {
    margin: 0 0 8px;
    font: 700 16px/1.3 var(--font-display);
    color: #fff;
    text-align: left;
}
.cookie-banner p { margin: 0 0 14px; line-height: 1.55; text-align: left; }
.cookie-link { color: var(--accent-2); }
.cookie-btn-group { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
.cookie-button {
    padding: 10px 14px; font-size: 13.5px; font-weight: 600;
    background: transparent; color: var(--ink);
    border: 1px solid var(--line-strong); border-radius: 8px; cursor: pointer;
}
.cookie-button:hover { border-color: var(--ink-2); }
.cookie-button-primary,
#ls-consent-accept,
#accept-cookies {
    background: var(--accent); color: #fff; border-color: var(--accent);
}
.cookie-button-primary:hover,
#ls-consent-accept:hover,
#accept-cookies:hover { background: #2563eb; }

.cookie-settings-modal {
    position: fixed; inset: 0; z-index: 1200;
    background: rgba(0,0,0,.65);
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.cookie-settings-modal[hidden] { display: none !important; }
.cookie-settings-content {
    background: var(--surface); border: 1px solid var(--line-strong);
    border-radius: var(--r-lg); padding: 28px; width: min(500px, 100%);
    max-height: min(90vh, 720px); overflow: auto;
}
.cookie-settings-content h2 { font-size: 20px; margin-bottom: 8px; color: #fff; }
.cookie-settings-content > p { color: var(--ink-2); margin-bottom: 16px; line-height: 1.55; }
.cookie-opt {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: rgba(255,255,255,.02);
}
.cookie-opt-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-bottom: 6px;
}
.cookie-opt-head strong { color: #fff; font-size: 14.5px; }
.cookie-opt-badge {
    font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: var(--ink-3); border: 1px solid var(--line); padding: 3px 8px; border-radius: 999px;
}
.cookie-opt-badge.is-opt { color: var(--accent-2); border-color: rgba(96,165,250,.35); }
.cookie-opt p { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.cookie-opt code { font-size: 12px; color: var(--accent-2); }
.cookie-opt-toggle {
    display: flex; align-items: center; gap: 12px;
    font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer;
    user-select: none;
}
.cookie-opt-toggle input {
    position: absolute;
    opacity: 0;
    width: 1px; height: 1px;
    margin: 0; padding: 0;
    pointer-events: none;
}
.cookie-opt-toggle .cookie-check {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 7px;
    border: 1.5px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.04);
    display: grid; place-items: center;
    transition: background .15s, border-color .15s, box-shadow .15s, transform .12s;
}
.cookie-opt-toggle .cookie-check svg {
    width: 12px; height: 12px;
    stroke: #fff; stroke-width: 2.6; fill: none;
    stroke-linecap: round; stroke-linejoin: round;
    opacity: 0; transform: scale(.6);
    transition: opacity .12s, transform .15s cubic-bezier(.2,.8,.2,1);
}
.cookie-opt-toggle:hover .cookie-check {
    border-color: rgba(96,165,250,.45);
    background: rgba(59,130,246,.08);
}
.cookie-opt-toggle input:checked + .cookie-check {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,.18);
}
.cookie-opt-toggle input:checked + .cookie-check svg {
    opacity: 1; transform: scale(1);
}
.cookie-opt-toggle input:focus-visible + .cookie-check {
    box-shadow: 0 0 0 3px rgba(59,130,246,.35);
}
.cookie-opt-toggle input:disabled + .cookie-check {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.12);
    box-shadow: none;
    cursor: not-allowed;
}
.cookie-opt-toggle input:disabled:checked + .cookie-check {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.18);
}
.cookie-opt-toggle input:disabled:checked + .cookie-check svg {
    opacity: .7;
}
.cookie-opt-toggle input:disabled ~ span,
.cookie-opt-toggle:has(input:disabled) {
    cursor: not-allowed;
    color: var(--ink-2);
}
.cookie-opt-toggle:active:not(:has(input:disabled)) .cookie-check {
    transform: scale(.94);
}
html.ls-consent-open { overflow: hidden; }
html.ls-ext-off body { font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }

@media (max-width: 560px) {
    .cookie-banner { right: 12px; bottom: 12px; left: 12px; width: auto; }
    .cookie-banner-card { padding: 18px 16px; }
    .cookie-btn-group .cookie-button { flex: 1 1 auto; }
}

/* ─── Fußzeile ──────────────────────────────────────────────── */
.ls-footer {
    margin-top: auto;
    border-top: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-2);
    font-size: 14px;
}
.ls-footer-bar {
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(59,130,246,.06), transparent);
}
.ls-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
    padding-top: 28px;
    padding-bottom: 28px;
    max-width: 1400px;
}
.ls-footer-intro { min-width: 0; flex: 1; }
.ls-footer-brand {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .03em;
    text-transform: uppercase;
    line-height: 1.1;
}
.ls-footer-brand em { font-style: normal; color: var(--accent-2); }
.ls-footer-claim {
    margin-top: 8px;
    max-width: 58ch;
    line-height: 1.55;
    font-size: 14.5px;
    color: var(--ink-2);
}
.ls-footer-discord {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.04);
    color: #fff;
    font: 650 13.5px/1 var(--font-body);
    text-decoration: none;
    transition: background .15s, border-color .15s;
}
.ls-footer-discord svg { width: 16px; height: 16px; fill: currentColor; }
.ls-footer-discord:hover {
    background: rgba(59,130,246,.2);
    border-color: rgba(96,165,250,.45);
    color: #fff;
}
.ls-footer-inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 28px;
    max-width: 1400px;
    padding-top: 28px;
    padding-bottom: 28px;
}
.ls-footer-col h4 {
    font: 700 11px/1 var(--font-body);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    margin-bottom: 12px;
}
.ls-footer-col a {
    display: block;
    color: rgba(255,255,255,.78);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 4px 0;
    transition: color .15s;
}
.ls-footer-col a:hover { color: #fff; }
.ls-footer-copy {
    border-top: 1px solid var(--line);
    background: var(--bg);
    padding: 16px 0;
    font-size: 12.5px;
    color: var(--ink-3);
    text-align: center;
}
.ls-footer-copy .ls-wrap { max-width: 1400px; }
.ls-footer-copy p + p { margin-top: 4px; }
@media (max-width: 900px) {
    .ls-footer-top { flex-direction: column; align-items: flex-start; padding-top: 24px; padding-bottom: 22px; }
    .ls-footer-inner { grid-template-columns: 1fr 1fr; gap: 24px 20px; padding-top: 22px; padding-bottom: 22px; }
}
@media (max-width: 560px) {
    .ls-footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Startseite – Hero
   ========================================================================== */
.nv-hero {
    position: relative; isolation: isolate;
    min-height: calc(100svh - var(--header-h));
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: clamp(48px, 8vh, 96px) var(--gutter) 56px;
    overflow: hidden;
}
.nv-hero[style*="--nv-hero-bg"] {
    background-image:
        linear-gradient(180deg, rgba(7,9,15,.55), rgba(7,9,15,.92)),
        var(--nv-hero-bg);
    background-size: cover;
    background-position: center;
}
.ls-cms-preview-bar {
    position: sticky; top: 0; z-index: 200;
    background: #1d4ed8; color: #fff;
    text-align: center; font-size: 13px; font-weight: 600;
    padding: 8px 12px;
}
.ls-cms-preview-bar a { color: #fff; text-decoration: underline; }
.nv-hero::before {
    content: ''; position: absolute; inset: -20% -10% auto;
    height: 70%; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(59,130,246,.22), transparent 65%);
}
.nv-hero-eyebrow {
    font-size: 13px; font-weight: 600; letter-spacing: .18em;
    text-transform: uppercase; color: var(--ink-2); margin-bottom: 18px;
}
.nv-hero-title {
    font-size: clamp(48px, 10vw, 96px); font-weight: 800;
    letter-spacing: -.04em; line-height: .95; text-transform: uppercase;
}
.nv-hero-title .is-accent {
    display: block; color: var(--accent);
    text-shadow: 0 0 32px rgba(59,130,246,.35);
}
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
    .nv-hero-title .is-accent { text-shadow: none; }
    .server-status-badge.online .status-dot { animation: none; }
}
.nv-hero-title .is-white { display: block; color: #fff; }
.nv-hero-lead {
    margin: 22px auto 0; max-width: 52ch;
    font-size: clamp(15px, 1.8vw, 17px); color: var(--ink-2); line-height: 1.65;
}
.nv-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.nv-hero-cta .btn-primary { padding: 14px 26px; font-size: 15px; border-radius: 10px; }
.nv-hero-cta .btn-ghost { padding: 14px 18px; font-size: 15px; }

.server-status-badge {
    display: inline-flex; align-items: center; gap: 10px;
    margin-top: 28px; padding: 8px 16px 8px 12px;
    background: rgba(15,18,25,.88); border: 1px solid var(--line-strong);
    border-radius: 999px; font-weight: 500; font-size: 13.5px; color: var(--ink);
}
.server-status-badge #statusText { transition: opacity .25s, transform .25s; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex-shrink: 0; }
.server-status-badge.online .status-dot {
    background: var(--online);
    box-shadow: 0 0 0 4px rgba(34,197,94,.18), 0 0 12px var(--online);
    animation: pulse 2s ease-in-out infinite;
}
.server-status-badge.offline .status-dot { background: #f87171; box-shadow: 0 0 0 4px rgba(248,113,113,.15); }
.server-status-badge.restarting .status-dot { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(34,197,94,0), 0 0 12px var(--online); } }

.nv-hero-scroll {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
    width: 22px; height: 34px; border: 1.5px solid rgba(255,255,255,.28);
    border-radius: 12px; opacity: .7;
}
.nv-hero-scroll::after {
    content: ''; position: absolute; top: 7px; left: 50%; width: 3px; height: 7px;
    margin-left: -1.5px; border-radius: 2px; background: rgba(255,255,255,.55);
    animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: .3; transform: translateY(8px); }
}

@media (prefers-reduced-motion: no-preference) {
    .nv-hero > *:not(.nv-hero-scroll) { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
    .nv-hero-eyebrow { animation-delay: .02s; }
    .nv-hero-title { animation-delay: .08s; }
    .nv-hero-lead { animation-delay: .14s; }
    .nv-hero-cta { animation-delay: .2s; }
    .server-status-badge { animation-delay: .26s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ─── Sektions-Kopf ─────────────────────────────────────────── */
.nv-sec {
    padding: clamp(48px, 7vw, 88px) 0;
}
.nv-sec-head { text-align: center; margin-bottom: clamp(22px, 3.2vw, 36px); }
.nv-sec-head h2 {
    font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.03em;
}
.nv-sec-head p {
    margin: 10px auto 0; max-width: 46ch; color: var(--ink-2); font-size: 15.5px; line-height: 1.55;
}

/* ─── Impressionen (Laufband) ───────────────────────────────── */
.nv-impressions-marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.nv-impressions-track {
    display: flex;
    width: max-content;
    animation: nvMarquee 55s linear infinite;
}
.nv-impressions-marquee:hover .nv-impressions-track {
    animation-play-state: paused;
}
.nv-impressions-group {
    display: flex;
    gap: 14px;
    padding-right: 14px;
}
.nv-impressions-group figure {
    flex: 0 0 min(220px, 58vw);
    border-radius: 14px; overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
    aspect-ratio: 3 / 4;
}
.nv-impressions-group img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.nv-impressions-group figure:hover img { transform: scale(1.04); }
@keyframes nvMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .nv-impressions-track { animation: none; }
    .nv-impressions-marquee { overflow-x: auto; }
}
.nv-impressions-note {
    text-align: center; margin-top: 22px;
    color: var(--ink-3); font-size: 14px;
}
.nv-impressions-note a { color: var(--accent-2); font-weight: 600; }
.nv-impressions-note a:hover { text-decoration: underline; }

/* ─── Zahlen ────────────────────────────────────────────────── */
.nv-stats {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    border-radius: 16px;
    background: rgba(18, 22, 32, .92);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.nv-stat {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 132px;
    padding: 28px 16px;
    text-align: center;
}
.nv-stat + .nv-stat { box-shadow: inset 1px 0 0 rgba(255,255,255,.06); }
.nv-stat-live {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(34,197,94,.12);
    color: #86efac;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.nv-stat-live i { font-size: 7px; color: var(--online); }
.nv-stat-value {
    font: 800 clamp(22px, 2.8vw, 34px)/1.1 var(--font-display);
    letter-spacing: -.03em; color: #fff;
}
.nv-stat-value.is-accent { color: var(--accent-2); }
.nv-stat-label { margin-top: 8px; font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 900px) {
    .nv-stats { grid-template-columns: 1fr 1fr; }
    .nv-stat { min-height: 120px; }
    .nv-stat:nth-child(n+3) { box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
    .nv-stat:nth-child(even) { box-shadow: inset 1px 0 0 rgba(255,255,255,.06); }
    .nv-stat:nth-child(n+3):nth-child(even) { box-shadow: inset 1px 1px 0 rgba(255,255,255,.06); }
}
@media (max-width: 900px) and (min-width: 561px) {
    .nv-stat:nth-child(5) { grid-column: 1 / -1; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
}

/* ─── Warum-Karten (NV-Stil, ohne betonte Box-Umrandung) ─────── */
#warum .ls-wrap { max-width: 1520px; }
.nv-why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.nv-why-card {
    --card-accent: #3b82f6;
    --card-ink: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 248px;
    padding: 0 0 28px;
    background: linear-gradient(180deg, rgba(22,28,40,.96), rgba(12,16,24,.96));
    border: none;
    border-radius: 12px;
    box-shadow: none;
    outline: none;
    color: inherit;
    overflow: hidden;
    transition: filter .35s ease, opacity .35s ease, transform .25s ease;
}
.nv-why-card:nth-child(1) { --card-accent: #2563eb; }
.nv-why-card:nth-child(2) { --card-accent: #38bdf8; }
.nv-why-card:nth-child(3) { --card-accent: #1e3a8a; }
.nv-why-card:nth-child(4) { --card-accent: #3b82f6; }
.nv-why-card:nth-child(5) { --card-accent: #7dd3fc; --card-ink: #0b1220; }
.nv-why-card:nth-child(6) { --card-accent: #e2e8f0; --card-ink: #0b1220; }

.nv-why-ribbon {
    align-self: flex-start;
    width: 86%;
    max-width: none;
    box-sizing: border-box;
    margin: 0;
    padding: 15px 40px 15px 20px;
    background: var(--card-accent);
    color: var(--card-ink);
    font: 700 16px/1.15 var(--font-display);
    letter-spacing: -.015em;
    clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 100%, 0 100%);
}
.nv-why-card p {
    margin: 0;
    padding: 2px 22px 0;
    color: rgba(226, 232, 240, .92);
    font-size: 15.5px;
    line-height: 1.7;
}
.nv-why-drop {
    float: left;
    margin: .04em .16em 0 0;
    font: 800 2.25em/.85 var(--font-display);
    color: var(--card-accent);
}

/* Hover: aktive Karte farbig, übrige schwarz-weiß */
.nv-why-grid:hover .nv-why-card {
    filter: grayscale(1);
    opacity: .72;
}
.nv-why-grid:hover .nv-why-card:hover {
    filter: none;
    opacity: 1;
    transform: translateY(-3px);
    z-index: 1;
}

@media (max-width: 900px) {
    .nv-why-grid { grid-template-columns: 1fr 1fr; }
    .nv-why-card { min-height: 0; }
    .nv-why-ribbon { width: 90%; font-size: 15px; padding: 13px 34px 13px 18px; }
}
@media (max-width: 560px) {
    .nv-why-grid { grid-template-columns: 1fr; }
    .nv-why-ribbon { width: 92%; }
}
@media (hover: none) {
    .nv-why-grid:hover .nv-why-card {
        filter: none;
        opacity: 1;
        transform: none;
    }
}

/* ─── Fraktionen (Startseite) ───────────────────────────────── */
.fraktionen-section { padding: clamp(48px, 7vw, 88px) 0; }
.fraktionen-head {
    display: flex; align-items: end; justify-content: space-between;
    gap: 16px; margin-bottom: 28px; flex-wrap: wrap;
}
.fraktionen-head h2 {
    font-size: clamp(28px, 4vw, 42px); letter-spacing: -.03em;
}
.fraktionen-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px;
}
.fraktion-card {
    position: relative; display: flex; flex-direction: column;
    background: rgba(15,18,25,.9); border: 1px solid var(--line);
    border-radius: 14px; overflow: hidden; color: inherit;
    transition: border-color .2s, transform .2s;
}
.fraktion-card:hover { border-color: rgba(59,130,246,.35); color: inherit; transform: translateY(-2px); }
.fraktion-img, .fraktion-img-placeholder {
    width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface-2);
}
.fraktion-img { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.fraktion-card:hover .fraktion-img { transform: scale(1.04); }
.fraktion-img-placeholder {
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--surface-3), var(--surface-2));
}
.fraktion-body { padding: 18px 20px 22px; }
.fraktion-tag {
    display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent-2);
    border: 1px solid rgba(59,130,246,.3); background: var(--accent-soft);
    padding: 2px 10px; border-radius: 999px; margin-bottom: 10px;
}
.fraktion-name { font: 700 16px/1.25 var(--font-display); letter-spacing: -.02em; color: #fff; }
.fraktion-desc { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; }

/* ─── Legacy Hero (falls noch referenziert) ─────────────────── */
.hero { display: none; }
.intro { display: none; }

/* ==========================================================================
   Fraktionsportale / Regelwerk / Legal / Bewerbung (Kompatibilität)
   ========================================================================== */
.fraktionen-section.portale {
    padding-top: 0; width: 100%; max-width: var(--wrap);
    margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter);
}
.fraktionen-section.portale .section-label { display: none; }
.portale .fraktionen-grid { grid-template-columns: 1fr; gap: 12px; max-width: 880px; }
.portale .fraktion-card { flex-direction: row; align-items: center; gap: 22px; padding: 20px 22px; border-radius: var(--r-md); }
.portale .fraktion-card:hover { border-color: var(--accent); }
.fraktion-logo-wrap {
    width: 72px; height: 72px; border-radius: 12px; background: var(--surface-2);
    display: grid; place-items: center; flex-shrink: 0; padding: 8px;
}
.fraktion-logo { max-height: 100%; object-fit: contain; }
.portale .fraktion-desc { margin: 0; flex: 1; }
.fraktion-arrow {
    width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2);
    display: grid; place-items: center; flex-shrink: 0; transition: background .15s;
}
.fraktion-arrow svg { width: 18px; height: 18px; fill: var(--ink); }
.portale .fraktion-card:hover .fraktion-arrow { background: var(--accent); }
@media (max-width: 640px) {
    .portale .fraktion-card { flex-wrap: wrap; }
    .portale .fraktion-desc { flex-basis: 100%; }
}

/* ─── Regelwerk (zentriert, TOC + Karten wie NV) ─────────────────────────── */
.rw-page {
    width: 100%;
    padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 100px);
}
.rw-wrap {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.rw-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 28px;
    margin-bottom: clamp(28px, 4vw, 40px);
    flex-wrap: wrap;
}
.rw-head-text h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 5.5vw, 56px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
    color: var(--ink);
}
.rw-head-text p {
    margin-top: 10px;
    font-size: 15px;
    color: var(--ink-3);
}
.rw-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: min(320px, 100%);
    flex: 1 1 240px;
    max-width: 360px;
    margin-left: auto;
    padding: 0 14px;
    height: 46px;
    border-radius: 12px;
    background: rgba(15, 18, 25, .92);
    border: 1px solid var(--line);
    color: var(--ink-3);
    transition: border-color .15s, box-shadow .15s;
}
.rw-search:focus-within {
    border-color: rgba(59, 130, 246, .55);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .18);
    color: var(--ink-2);
}
.rw-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: 500 14px/1.2 var(--font-body);
    outline: none;
}
.rw-search input::placeholder { color: var(--ink-3); }
.rw-search input::-webkit-search-cancel-button { filter: invert(1); opacity: .5; }

.rw-layout {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 36px);
    align-items: start;
}
.rw-toc {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    align-self: start;
    max-height: calc(100vh - var(--header-h) - 32px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, .3) transparent;
}
.rw-toc::-webkit-scrollbar { width: 4px; }
.rw-toc::-webkit-scrollbar-track { background: transparent; }
.rw-toc::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, .3);
    border-radius: 999px;
}
.rw-toc-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 8px;
    padding: 0 6px;
}
.rw-toc-group { margin-bottom: 0; }
.rw-toc-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 5px 6px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: 600 12.5px/1.25 var(--font-body);
    text-align: left;
    cursor: pointer;
    border-radius: 6px;
}
.rw-toc-toggle:hover { background: rgba(255,255,255,.04); }
.rw-toc-group.is-open > .rw-toc-toggle { color: var(--accent-2); }
.rw-toc-toggle svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    color: var(--ink-3);
    transition: transform .2s ease;
}
.rw-toc-group.is-open > .rw-toc-toggle svg { transform: rotate(180deg); color: var(--accent-2); }
.rw-toc-links {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0 0 4px 6px;
    border-left: 1px solid var(--line);
    margin: 0 0 2px 8px;
}
.rw-toc-group.is-open > .rw-toc-links { display: flex; }
.rw-toc-links a {
    padding: 3px 7px;
    border-radius: 4px;
    color: var(--ink-3);
    font-size: 11.5px;
    line-height: 1.3;
    text-decoration: none;
}
.rw-toc-links a:hover,
.rw-toc-links a.is-active { color: var(--accent-2); background: rgba(59,130,246,.08); }
.rw-toc-loading, .rw-toc-empty, .rw-loading, .rw-empty {
    color: var(--ink-3);
    font-size: 14px;
    padding: 20px 0;
}
.rw-empty.is-error { color: #f87171; }

.rw-content { min-width: 0; }
.rw-intro {
    margin-bottom: 28px;
    padding-bottom: 8px;
}
.rw-intro h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-2);
    margin-bottom: 14px;
    letter-spacing: -.02em;
}
.rw-intro p {
    color: var(--ink-2);
    font-size: 15.5px;
    line-height: 1.7;
    max-width: 72ch;
}
.rw-intro p + p { margin-top: 12px; }

.rw-section {
    margin-bottom: 12px;
    scroll-margin-top: calc(var(--header-h) + 16px);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 18, 25, .72);
    overflow: hidden;
}
.rw-section.is-open { border-color: rgba(59, 130, 246, .28); }
.rw-section-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
    font: inherit;
}
.rw-section-h:hover { background: rgba(255,255,255,.03); }
.rw-section-h h2 {
    font-family: var(--font-display);
    font-size: clamp(17px, 2.4vw, 22px);
    font-weight: 750;
    letter-spacing: -.03em;
    color: var(--ink);
    margin: 0;
}
.rw-section.is-open > .rw-section-h h2 { color: var(--accent-2); }
.rw-section-chevron {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--ink-3);
    transition: transform .2s ease, color .15s ease;
}
.rw-section.is-open > .rw-section-h .rw-section-chevron {
    transform: rotate(180deg);
    color: var(--accent-2);
}
.rw-cards {
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0 12px 14px;
}
.rw-section.is-open > .rw-cards { display: grid; }
.rw-card {
    background: rgba(15, 18, 25, .92);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 16px;
    scroll-margin-top: calc(var(--header-h) + 16px);
}
.rw-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-2);
    letter-spacing: -.01em;
    margin-bottom: 6px;
    line-height: 1.35;
}
.rw-card-sep { color: rgba(96, 165, 250, .55); font-weight: 600; margin: 0 2px; }
.rw-card-body {
    color: var(--ink-2);
    font-size: 14.5px;
    line-height: 1.65;
}
.rw-card-body p + p { margin-top: 10px; }
.rw-card-body ul, .rw-card-body ol { margin: 8px 0 0 1.2em; }
.rw-card-body li + li { margin-top: 4px; }
.rw-card-body a { color: var(--accent-2); }

@media (max-width: 900px) {
    .rw-layout { grid-template-columns: 1fr; }
    .rw-toc {
        position: static;
        max-height: min(42vh, 360px);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 10px 12px;
        margin-bottom: 8px;
        border-radius: 12px;
        background: rgba(15, 18, 25, .7);
        border: 1px solid var(--line);
    }
    .rw-search { max-width: none; margin-left: 0; }
}
@media (max-width: 560px) {
    .rw-card { padding: 14px; }
    .rw-head { align-items: stretch; }
    .rw-section-h { padding: 12px 14px; }
}

/* Legacy Accordion (falls noch referenziert) */
.accordion-section { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.accordion-section .section-label { display: none; }
#accordion-container { display: grid; gap: 8px; max-width: 900px; margin: 0 auto; }
.accordion-item {
    background: rgba(15,18,25,.9); border: 1px solid var(--line);
    border-radius: var(--r-md); overflow: hidden; transition: border-color .2s;
}
.accordion-item.open { border-color: var(--line-strong); background: var(--surface-2); }
.accordion-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 18px 22px; cursor: pointer; user-select: none;
}
.accordion-header:hover .accordion-title { color: #fff; }
.accordion-header-left { display: flex; align-items: baseline; gap: 18px; min-width: 0; }
.accordion-number { font: 700 14px var(--font-display); color: var(--accent-2); min-width: 3.2ch; flex-shrink: 0; }
.accordion-title { font: 600 17px/1.35 var(--font-body); color: var(--ink); }
.accordion-chevron { width: 20px; height: 20px; color: var(--ink-3); flex-shrink: 0; transition: transform .25s; }
.accordion-item.open .accordion-chevron { transform: rotate(180deg); color: var(--ink); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.accordion-content {
    padding: 0 22px 22px calc(22px + 3.2ch + 18px);
    color: var(--ink-2); font-size: 16px; line-height: 1.7; max-width: 80ch;
}
.accordion-content > br { display: none; }
.accordion-content p + p { margin-top: 12px; }
@media (max-width: 640px) { .accordion-content { padding-left: 22px; } }

.impressum-section, .ds-section, .toc-wrapper {
    width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
}
.impressum-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.imp-card, .ds-card {
    background: rgba(15,18,25,.9); border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 26px 28px;
}
.imp-card-label, .ds-card-label {
    font: 700 17px/1.3 var(--font-display); letter-spacing: -.02em;
    color: var(--ink); margin-bottom: 14px;
}
.imp-card-label-dot, .ds-card-label-dot, .toc-title-dot { display: none; }
.imp-name { font-weight: 600; font-size: 17px; margin-bottom: 10px; }
.imp-row {
    display: grid; grid-template-columns: 90px 1fr; gap: 12px;
    padding: 9px 0; border-top: 1px solid var(--line); font-size: 16px;
}
.imp-name + .imp-row, .imp-card-label + .imp-row { border-top: 0; }
.imp-label { color: var(--ink-3); font-size: 15px; }
.imp-value { color: var(--ink); user-select: text; }
.imp-text { color: var(--ink-2); font-size: 16px; }
.imp-text + .imp-text { margin-top: 10px; }
@media (max-width: 760px) { .impressum-section { grid-template-columns: 1fr; } }

.toc-wrapper { margin-bottom: 20px; }
.toc-card {
    max-width: 900px; background: rgba(15,18,25,.9);
    border: 1px solid var(--line); border-left: 3px solid var(--accent);
    border-radius: var(--r-md); padding: 22px 26px;
}
.toc-title { font: 700 16px var(--font-display); margin-bottom: 12px; }
.toc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 20px; }
.toc-item { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; padding: 4px 0; }
.toc-item:hover { color: var(--ink); }

.ds-section { display: grid; gap: 12px; }
.ds-section > *, .impressum-section > *, #accordion-container > * { min-width: 0; }
.ds-card { max-width: 900px; }
.ds-text { color: var(--ink-2); font-size: 16px; line-height: 1.7; user-select: text; max-width: 75ch; }
.ds-text + .ds-text { margin-top: 10px; }
.ds-highlight { background: var(--surface-2); border-radius: var(--r-sm); padding: 16px 18px; }
.ds-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ds-tag {
    font-size: 13px; font-weight: 500; padding: 4px 12px; border-radius: 999px;
    background: var(--surface-2); color: var(--ink-2);
}
.ds-tag.cyan { background: var(--blue-soft); color: #A9C0FF; }
.ds-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; display: block; overflow-x: auto; }
.ds-table th {
    text-align: left; font-weight: 600; color: var(--ink);
    padding: 10px 14px; border-bottom: 1px solid var(--line-strong); white-space: nowrap;
}
.ds-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }

.content-section { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.apply-card {
    max-width: 760px; background: rgba(15,18,25,.9);
    border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: clamp(24px, 4vw, 40px);
}
.apply-card-icon { display: none; }
.apply-card-title { font-size: clamp(20px, 2.6vw, 28px); letter-spacing: -.03em; margin-bottom: 14px; }
.apply-card-text { color: var(--ink-2); font-size: 17px; }
.requirements { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 30px; }
.req-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--line-strong);
    color: var(--ink); font-weight: 500; font-size: 14px;
}
.req-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--online); }

/* ─── Bewerbungsportal ──────────────────────────────────────── */
.bw-hero {
    position: relative; isolation: isolate;
    padding: clamp(56px, 10vw, 110px) 0 clamp(40px, 6vw, 64px);
    text-align: center;
}
.bw-hero::before {
    content: ''; position: absolute; inset: -8% 0 auto; height: 70%;
    z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(59,130,246,.22), transparent 65%);
}
.bw-kicker {
    display: inline-block; margin-bottom: 14px;
    font-size: 13px; font-weight: 600; letter-spacing: .08em;
    text-transform: uppercase; color: var(--accent-2);
}
.bw-hero h1 {
    font-size: clamp(36px, 7vw, 64px); font-weight: 800;
    letter-spacing: -.04em; line-height: .98; text-transform: uppercase;
}
.bw-hero h1 em {
    font-style: normal; color: var(--accent);
    text-shadow: 0 0 40px rgba(59,130,246,.4);
}
.bw-lead {
    margin: 18px auto 0; max-width: 48ch;
    color: var(--ink-2); font-size: clamp(15px, 1.8vw, 17px); line-height: 1.65;
}
.bw-hero-actions {
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px;
}
.bw-reqs {
    display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center;
    margin-top: 26px; color: var(--ink-3); font-size: 13.5px; font-weight: 500;
}
.bw-reqs i { color: var(--online); margin-right: 7px; font-size: 11px; }

.bw-roles {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.bw-role {
    padding: 24px 22px 22px;
    background: linear-gradient(180deg, rgba(22,28,40,.96), rgba(12,16,24,.96));
    border-radius: 14px;
    transition: transform .25s ease, box-shadow .25s ease;
}
.bw-role:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.bw-role-ic {
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-soft); color: var(--accent-2); font-size: 17px;
    margin-bottom: 16px;
}
.bw-role h3 {
    font-size: 20px; letter-spacing: -.02em; margin-bottom: 8px;
}
.bw-role > p {
    color: var(--ink-2); font-size: 14.5px; line-height: 1.6; margin-bottom: 16px;
}
.bw-role ul { list-style: none; display: grid; gap: 8px; }
.bw-role li {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 13.5px; color: var(--ink-3); line-height: 1.4;
}
.bw-role li i { color: var(--accent-2); margin-top: 3px; font-size: 12px; }

.bw-process-sec { padding-top: 8px; }
.bw-steps {
    list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.bw-steps li {
    display: flex; gap: 14px; align-items: flex-start; text-align: left;
    padding: 20px 18px; border-radius: 14px;
    background: rgba(15,18,25,.8);
}
.bw-step-n {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent); color: #fff;
    font: 800 14px/1 var(--font-display);
}
.bw-steps strong {
    display: block; font-size: 16px; letter-spacing: -.01em; margin-bottom: 6px;
}
.bw-steps p { margin: 0; color: var(--ink-3); font-size: 14px; line-height: 1.55; }

.bw-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    padding: clamp(28px, 4vw, 40px);
    border-radius: 16px;
    background:
        radial-gradient(ellipse 80% 120% at 0% 50%, rgba(59,130,246,.18), transparent 55%),
        rgba(15,18,25,.92);
}
.bw-cta h2 {
    font-size: clamp(24px, 3.5vw, 34px); letter-spacing: -.03em; margin-bottom: 8px;
}
.bw-cta p {
    margin: 0; max-width: 52ch; color: var(--ink-2); font-size: 15.5px; line-height: 1.6;
}
.bw-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 900px) {
    .bw-roles, .bw-steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .bw-cta { flex-direction: column; align-items: flex-start; }
}

/* ─── Wartungsseiten (öffentlich + Teampanel) ───────────────── */
.w-shell { min-height: 100vh; display: flex; flex-direction: column; }
.w-bar {
    position: sticky; top: 0; z-index: 100;
    padding: 14px var(--gutter) 0;
}
.w-bar-inner {
    width: 100%; max-width: var(--wrap); margin: 0 auto;
    height: 60px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 0 14px 0 14px;
    background: rgba(7,9,15,.92);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    box-shadow: 0 10px 40px -18px rgba(0,0,0,.55);
}
@media (hover: hover) and (min-width: 901px) {
    .w-bar-inner {
        background: rgba(7,9,15,.82);
        backdrop-filter: saturate(140%) blur(10px);
        -webkit-backdrop-filter: saturate(140%) blur(10px);
    }
}
.w-main {
    flex: 1; display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative; isolation: isolate;
    padding: clamp(48px, 8vh, 96px) var(--gutter) clamp(56px, 8vh, 100px);
    min-height: calc(100vh - var(--header-h, 64px) - 120px);
}
.w-main::before {
    content: ''; position: absolute; inset: -8% 0 auto; height: 52%;
    z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(59,130,246,.22), transparent 65%);
}
.w-inner { width: min(1080px, 100%); }
.w-badge {
    display: inline-flex; align-items: center; gap: 10px;
    margin-bottom: 22px; padding: 9px 18px 9px 14px;
    border-radius: 999px; background: rgba(15,18,25,.8);
    border: 1px solid var(--line-strong); font-size: 13.5px; font-weight: 500;
}
.w-badge .dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--warn);
    box-shadow: 0 0 0 4px var(--warn-soft);
    animation: wPulse 1.8s ease-in-out infinite;
}
@keyframes wPulse { 50% { box-shadow: 0 0 0 7px transparent; } }
.w-title {
    font-size: clamp(32px, 5.2vw, 56px); font-weight: 800;
    letter-spacing: -.04em; line-height: 1.05; text-transform: uppercase;
    white-space: nowrap;
}
.w-title em {
    font-style: normal; color: var(--accent);
    text-shadow: 0 0 40px rgba(59,130,246,.45);
}
@media (max-width: 560px) {
    .w-title { white-space: normal; font-size: clamp(28px, 8.5vw, 36px); }
}
.w-text {
    margin: 20px auto 0; max-width: 54ch;
    font-size: clamp(15.5px, 1.8vw, 17.5px); color: var(--ink-2); line-height: 1.65;
}
.w-details {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px; margin: 40px 0 0; text-align: left;
}
.w-details.is-2 { grid-template-columns: 1fr 1fr; max-width: 720px; margin-left: auto; margin-right: auto; }
.w-detail {
    padding: 28px 26px 26px;
    min-height: 200px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md, 14px);
    box-shadow: 0 16px 40px -20px rgba(0,0,0,.55);
    display: flex; flex-direction: column; gap: 0;
}
.w-detail .tag {
    display: inline-block; margin-bottom: 14px;
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--accent-2);
}
.w-detail strong {
    display: block; margin-bottom: 10px;
    font: 700 20px/1.25 var(--font-display); color: #fff; letter-spacing: -.02em;
}
.w-detail p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); flex: 1; }
@media (max-width: 900px) {
    .w-details, .w-details.is-2 { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
    .w-detail { min-height: 0; padding: 24px 22px; }
}
.w-chip {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 20px; padding: 8px 14px; border-radius: 999px;
    background: rgba(255,255,255,.04); border: 1px solid var(--line);
    font-size: 13px; color: var(--ink-2);
}
.w-chip img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.w-chip strong { color: #fff; font-weight: 600; }
.w-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.w-note {
    margin: 20px auto 0; max-width: 48ch;
    font-size: 13.5px; color: var(--ink-3); line-height: 1.5;
}
.w-foot {
    padding: 0 var(--gutter) 18px;
}
.w-foot-inner {
    width: 100%; max-width: var(--wrap); margin: 0 auto;
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 16px 4px 0;
    border-top: 1px solid var(--line);
    font-size: 13px; color: var(--ink-3);
}
.w-foot a { color: var(--ink-2); }
.w-foot a:hover { color: #fff; }

.apply-modal {
    display: none; position: fixed; inset: 0; z-index: 1200;
    background: rgba(0,0,0,.65); align-items: center; justify-content: center; padding: 16px;
}
.apply-modal.active { display: flex; }
.modal-card {
    background: var(--surface); border: 1px solid var(--line-strong);
    border-radius: var(--r-lg); padding: 32px; width: min(440px, 100%);
}
.modal-icon { display: none; }
.modal-title { font-size: 22px; margin-bottom: 8px; }
.modal-text { color: var(--ink-2); margin-bottom: 24px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ─── Partner (öffentlich, Accordion wie NV) ─────────────────────────────── */
.pt-page {
    width: 100%;
    padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 100px);
}
.pt-wrap {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.pt-head { margin-bottom: clamp(28px, 4vw, 40px); }
.pt-head h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 5.5vw, 52px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
    color: var(--ink);
}
.pt-head p {
    margin-top: 14px;
    max-width: 54ch;
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--ink-3);
}
.pt-list { display: grid; gap: 12px; }
.pt-card {
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(15, 18, 25, .92);
    transition: border-color .2s ease;
}
.pt-card:hover,
.pt-card.is-open { border-color: rgba(59, 130, 246, .4); }
.pt-toggle {
    width: 100%;
    display: flex;
    align-items: stretch;
    min-height: 100px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
}
.pt-banner {
    position: relative;
    width: min(42vw, 320px);
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(59,130,246,.28), rgba(15,18,25,.2));
}
.pt-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pt-banner.is-fallback {
    display: grid;
    place-items: center;
}
.pt-banner-fallback {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    letter-spacing: .04em;
    color: rgba(255,255,255,.55);
}
.pt-toggle-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    min-width: 0;
}
.pt-name {
    font-size: clamp(16px, 2.2vw, 19px);
    font-weight: 700;
    color: var(--ink);
    transition: color .15s ease;
}
.pt-toggle:hover .pt-name,
.pt-card.is-open .pt-name { color: var(--accent-2); }
.pt-chevron {
    flex-shrink: 0;
    font-size: 18px;
    color: var(--ink-3);
    transition: transform .25s ease, color .15s ease;
}
.pt-card.is-open .pt-chevron {
    transform: rotate(90deg);
    color: var(--accent-2);
}
.pt-panel[hidden] { display: none; }
.pt-panel-inner {
    border-top: 1px solid var(--line);
    padding: 22px 24px 26px;
}
.pt-body {
    color: var(--ink-2);
    font-size: 14.5px;
    line-height: 1.7;
}
.pt-body h3, .pt-body h4 {
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 18px 0 8px;
}
.pt-body h3 { font-size: 18px; }
.pt-body h4 { font-size: 15.5px; }
.pt-body h3:first-child, .pt-body h4:first-child, .pt-body p:first-child { margin-top: 0; }
.pt-body p + p { margin-top: 10px; }
.pt-body ul { margin: 8px 0 0 1.15em; }
.pt-body li + li { margin-top: 4px; }
.pt-body a { color: var(--accent-2); text-decoration: none; }
.pt-body a:hover { text-decoration: underline; }
.pt-mention {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 5px;
    background: rgba(88, 101, 242, .22);
    color: #a5b4fc !important;
    font-weight: 650;
    font-size: .95em;
    white-space: nowrap;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.pt-mention:hover {
    background: rgba(88, 101, 242, .38);
    color: #c7d2fe !important;
    text-decoration: none !important;
}
.pt-body strong { color: var(--ink); font-weight: 700; }
.pt-body code {
    font-size: .9em;
    padding: 1px 6px;
    border-radius: 5px;
    background: rgba(255,255,255,.06);
}
.pt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.pt-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--ink-3);
    border: 1px dashed var(--line);
    border-radius: 14px;
}
@media (max-width: 640px) {
    .pt-banner { width: 96px; }
    .pt-toggle { min-height: 84px; }
    .pt-toggle-main { padding: 14px 14px 14px 12px; }
    .pt-panel-inner { padding: 18px 16px 20px; }
}

/* Performance: schwere Sections nicht vorab rendern
   .rw-page absichtlich ausgelassen – content-visibility bricht dort den Seitenscroll */
.nv-sec, .bw-hero, .fraktionen-section, .impressum-section, .ds-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 720px;
}

/* Interaktionen: nur transform/opacity, kurze Dauer */
.ls-btn, .ls-nav a, .up-btn, .rw-card, .bw-role, .fraktion-card {
    transition: color .15s ease, background-color .15s ease, border-color .15s ease, opacity .15s ease, transform .15s ease, box-shadow .2s ease;
}
@media (hover: hover) {
    .ls-btn:active, .up-btn:active { transform: translateY(1px); }
    .fraktion-card:hover, .rw-card:hover, .bw-role:hover {
        transform: translateY(-2px);
        border-color: rgba(59,130,246,.35);
        box-shadow: 0 12px 32px -16px rgba(59,130,246,.35);
    }
}

/* Sofortige Klick-Reaktion ohne Layout-Thrashing */
.ls-nav a, .ls-btn, .ls-menu-toggle, .up-btn, .sidebar-link {
    touch-action: manipulation;
}
