/* ==========================================================================
   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, .ls-notice-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.25;
    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;
    max-width: 100%;
    box-sizing: border-box;
    vertical-align: middle;
}
.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; flex-shrink: 0; fill: currentColor !important;
}
/* Icon-Slot: feste Box, kein Overlap mit Text */
.ls-btn > i[class*="fa-"],
.btn-primary > i[class*="fa-"],
.btn-ghost > i[class*="fa-"],
.btn-apply > i[class*="fa-"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1em;
    height: 1.1em;
    font-size: 1.05em;
    line-height: 1;
    flex-shrink: 0;
}
/* Ohne Font-Awesome (Consent aus): leere <i> entfernen, sonst Gap/Overlap */
html.ls-ext-off .ls-btn > i[class*="fa-"],
html.ls-ext-off .btn-primary > i[class*="fa-"],
html.ls-ext-off .btn-ghost > i[class*="fa-"],
html.ls-ext-off .btn-apply > i[class*="fa-"] {
    display: none !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) ────────────────────────────────── */
.ls-notice {
    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;
}
.ls-notice[hidden] { display: none !important; }
.ls-notice-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);
}
.ls-notice-title {
    margin: 0 0 8px;
    font: 700 16px/1.3 var(--font-display);
    color: #fff;
    text-align: left;
}
.ls-notice p { margin: 0 0 14px; line-height: 1.55; text-align: left; }
.ls-notice-link { color: var(--accent-2); }
.ls-notice-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
}
.ls-notice-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.25;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    cursor: pointer;
    white-space: normal;
    text-align: center;
}
.ls-notice-btn:hover { border-color: var(--ink-2); }
.ls-notice-btn-primary,
#ls-prefs-accept,
#ls-accept-legacy {
    background: var(--accent); color: #fff; border-color: var(--accent);
}
.ls-notice-btn-primary:hover,
#ls-prefs-accept:hover,
#ls-accept-legacy:hover { background: #2563eb; }

.ls-prefs-modal {
    position: fixed; inset: 0; z-index: 1200;
    background: rgba(0,0,0,.65);
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.ls-prefs-modal[hidden] { display: none !important; }
.ls-prefs-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;
}
.ls-prefs-content h2 { font-size: 20px; margin-bottom: 8px; color: #fff; }
.ls-prefs-content > p { color: var(--ink-2); margin-bottom: 16px; line-height: 1.55; }
.ls-prefs-opt {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: rgba(255,255,255,.02);
}
.ls-prefs-opt-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-bottom: 6px;
}
.ls-prefs-opt-head strong { color: #fff; font-size: 14.5px; }
.ls-prefs-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;
}
.ls-prefs-badge.is-opt { color: var(--accent-2); border-color: rgba(96,165,250,.35); }
.ls-prefs-opt p { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.ls-prefs-opt code { font-size: 12px; color: var(--accent-2); }
.ls-prefs-toggle {
    display: flex; align-items: center; gap: 12px;
    font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer;
    user-select: none;
}
.ls-prefs-toggle input {
    position: absolute;
    opacity: 0;
    width: 1px; height: 1px;
    margin: 0; padding: 0;
    pointer-events: none;
}
.ls-prefs-toggle .ls-prefs-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;
}
.ls-prefs-toggle .ls-prefs-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);
}
.ls-prefs-toggle:hover .ls-prefs-check {
    border-color: rgba(96,165,250,.45);
    background: rgba(59,130,246,.08);
}
.ls-prefs-toggle input:checked + .ls-prefs-check {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,.18);
}
.ls-prefs-toggle input:checked + .ls-prefs-check svg {
    opacity: 1; transform: scale(1);
}
.ls-prefs-toggle input:focus-visible + .ls-prefs-check {
    box-shadow: 0 0 0 3px rgba(59,130,246,.35);
}
.ls-prefs-toggle input:disabled + .ls-prefs-check {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.12);
    box-shadow: none;
    cursor: not-allowed;
}
.ls-prefs-toggle input:disabled:checked + .ls-prefs-check {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.18);
}
.ls-prefs-toggle input:disabled:checked + .ls-prefs-check svg {
    opacity: .7;
}
.ls-prefs-toggle input:disabled ~ span,
.ls-prefs-toggle:has(input:disabled) {
    cursor: not-allowed;
    color: var(--ink-2);
}
.ls-prefs-toggle:active:not(:has(input:disabled)) .ls-prefs-check {
    transform: scale(.94);
}
html.ls-prefs-open { overflow: hidden; }
html.ls-ext-off body { font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }

@media (max-width: 560px) {
    .ls-notice { right: 12px; bottom: 12px; left: 12px; width: auto; }
    .ls-notice-card { padding: 18px 16px; }
    .ls-notice-actions .ls-notice-btn { 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;
    will-change: transform;
}
@media (hover: hover) {
    .nv-impressions-marquee:hover .nv-impressions-track {
        animation-play-state: paused;
    }
}
.nv-impressions-track.is-paused { animation-play-state: paused; }
.nv-impressions-marquee { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.nv-impressions-group img { -webkit-user-drag: none; }
.nv-impressions-group {
    flex: 0 0 auto;
    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: translate3d(0, 0, 0); }
    to   { transform: translate3d(calc(-1 * var(--imp-w, 50%)), 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .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, Akzent #4169ff) ─────────────────── */
.rw-page {
    --rw-accent: #4169ff;
    --rw-accent-2: #6b8cff;
    --rw-accent-soft: rgba(65, 105, 255, .16);
    --rw-accent-glow: rgba(65, 105, 255, .22);
    --accent: var(--rw-accent);
    --accent-2: var(--rw-accent-2);
    --accent-soft: var(--rw-accent-soft);
    width: 100%;
    padding: clamp(36px, 5.5vw, 68px) 0 clamp(64px, 8vw, 100px);
    background:
        radial-gradient(ellipse 80% 50% at 50% -8%, rgba(65, 105, 255, .14), transparent 55%),
        radial-gradient(ellipse 40% 30% at 100% 20%, rgba(65, 105, 255, .05), transparent 50%);
}
.rw-wrap {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.rw-hero {
    margin-bottom: clamp(28px, 4vw, 44px);
    padding-bottom: clamp(22px, 3vw, 32px);
    border-bottom: 1px solid var(--line);
    position: relative;
}
.rw-hero::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: min(180px, 40%);
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--rw-accent), transparent);
}
.rw-hero-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5.5vw, 56px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.05;
    color: var(--ink);
    margin: 0 0 14px;
}
.rw-hero-stand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--ink-2);
    background: rgba(65, 105, 255, .1);
    border: 1px solid rgba(65, 105, 255, .28);
}
.rw-hero-lead {
    max-width: 58ch;
    margin: 0 0 20px;
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--ink-2);
}
.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: 420px;
    margin: 0;
    padding: 0 14px;
    height: 48px;
    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, background-color .15s;
}
.rw-search:focus-within {
    border-color: rgba(65, 105, 255, .6);
    box-shadow: 0 0 0 3px var(--rw-accent-glow);
    color: var(--ink-2);
    background: rgba(15, 18, 25, .98);
}
.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(220px, 290px) 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: 6px;
    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: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 10px;
    padding: 0 8px;
}
.rw-toc-group { margin-bottom: 0; }
.rw-toc-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: 600 13.5px/1.35 var(--font-body);
    text-align: left;
    cursor: pointer;
    border-radius: 6px;
}
.rw-toc-toggle > span {
    min-width: 0;
    overflow-wrap: anywhere;
}
.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: 14px;
    height: 14px;
    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: 1px;
    padding: 2px 0 6px 8px;
    border-left: 1px solid var(--line);
    margin: 0 0 4px 10px;
}
.rw-toc-group.is-open > .rw-toc-links { display: flex; }
.rw-toc-links a {
    padding: 5px 9px;
    border-radius: 4px;
    color: var(--ink-3);
    font-size: 13px;
    line-height: 1.35;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.rw-toc-links a:hover,
.rw-toc-links a.is-active {
    color: var(--rw-accent-2);
    background: var(--rw-accent-soft);
    box-shadow: inset 2px 0 0 var(--rw-accent);
}
.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;
    scroll-margin-top: calc(var(--header-h) + 16px);
    transition: box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}
.rw-intro h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-2);
    margin: 0;
    letter-spacing: -.02em;
}
.rw-intro .rw-card-head { margin-bottom: 14px; }
.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-intro.is-target {
    border-radius: 12px;
    background: rgba(65, 105, 255, .08);
    box-shadow: 0 0 0 1px rgba(65, 105, 255, .38);
    padding: 14px 16px;
}

.rw-section {
    margin-bottom: 12px;
    scroll-margin-top: calc(var(--header-h) + 16px);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(18, 22, 32, .88) 0%, rgba(12, 15, 22, .78) 100%);
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.rw-section.is-open {
    border-color: rgba(65, 105, 255, .32);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}
.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); }
/* Eine klare Trennlinie unter dem Kategorie-Titel – verhindert optischen Doppelrand zur ersten Karte */
.rw-section.is-open > .rw-section-h {
    border-bottom: 1px solid var(--line);
}
.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;
    /* Abstand Kategorie-Titel → Karten; Trennlinie sitzt am section-h */
    padding: 12px 12px 14px;
}
.rw-section.is-open > .rw-cards { display: grid; }
.rw-card {
    background: rgba(12, 15, 22, .94);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px;
    scroll-margin-top: calc(var(--header-h) + 16px);
    transition: box-shadow .25s ease, border-color .25s ease, background-color .25s ease, transform .2s ease;
}
.rw-card:hover {
    border-color: rgba(65, 105, 255, .22);
}
.rw-card.is-target {
    border-color: rgba(65, 105, 255, .55);
    box-shadow: 0 0 0 3px rgba(65, 105, 255, .16);
    background: rgba(22, 28, 44, .96);
}
.rw-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}
.rw-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-2);
    letter-spacing: -.01em;
    margin: 0;
    line-height: 1.35;
    flex: 1;
    min-width: 0;
}
.rw-card-link {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: -2px 0 0;
    padding: 0;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    color: var(--ink-2);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.rw-card-link:hover {
    color: var(--rw-accent-2);
    border-color: rgba(65, 105, 255, .5);
    background: rgba(65, 105, 255, .12);
}
.rw-card-link:focus-visible {
    outline: 2px solid rgba(65, 105, 255, .55);
    outline-offset: 2px;
}
.rw-card-link.is-copied {
    color: #4ade80;
    border-color: rgba(74, 222, 128, .45);
    background: rgba(74, 222, 128, .1);
}
.rw-card-sep { color: rgba(107, 140, 255, .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(--rw-accent-2); }
.rw-card-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .9em;
    padding: 1px 6px;
    border-radius: 5px;
    background: rgba(65, 105, 255, .12);
    border: 1px solid rgba(65, 105, 255, .22);
    color: var(--rw-accent-2);
}

/* Sanktionsblock „Was drohen kann“ – Stufen-Karten (3–4), horizontal Desktop */
.rw-sanktion > p { margin: 0; }
.rw-sanktion > ul {
    margin: 10px 0 0 1.2em;
}
.rw-sanktion > ul li + li { margin-top: 4px; }
.rw-sanktion-block {
    margin-top: 14px;
    padding: 0;
    border: 0;
    background: transparent;
}
.rw-sanktion-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--rw-accent-2);
    margin: 0 0 8px;
}
.rw-sanktion-cons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 8px;
}
.rw-cons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 12px 13px;
    border-radius: 10px;
    background: rgba(15, 18, 25, .72);
    border: 1px solid var(--line);
    border-top-width: 2px;
    border-top-style: solid;
    font-size: 13.5px;
    line-height: 1.45;
    min-width: 0;
}
.rw-cons-head {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}
.rw-cons-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.rw-cons-label {
    font-weight: 700;
    font-size: 12.5px;
    line-height: 1.3;
    min-width: 0;
}
.rw-cons-text {
    color: var(--ink);
    font-weight: 600;
    font-size: 13.5px;
    line-height: 1.4;
}
/* Stufe 1–4: grün → gelb → orange → rot */
.rw-cons--1 { border-top-color: #22c55e; }
.rw-cons--1 .rw-cons-dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .14); }
.rw-cons--1 .rw-cons-label { color: #4ade80; }
.rw-cons--2 { border-top-color: #eab308; }
.rw-cons--2 .rw-cons-dot { background: #eab308; box-shadow: 0 0 0 3px rgba(234, 179, 8, .14); }
.rw-cons--2 .rw-cons-label { color: #facc15; }
.rw-cons--3 { border-top-color: #f59e0b; }
.rw-cons--3 .rw-cons-dot { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .14); }
.rw-cons--3 .rw-cons-label { color: #fbbf24; }
.rw-cons--4 { border-top-color: #ef4444; }
.rw-cons--4 .rw-cons-dot { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .14); }
.rw-cons--4 .rw-cons-label { color: #f87171; }
.rw-sanktion-meta {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 12.5px;
    color: var(--ink-3);
    line-height: 1.45;
}
.rw-meta-sev {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.rw-meta-sev strong,
.rw-meta-intent strong {
    color: var(--ink-2);
    font-weight: 650;
}
.rw-meta-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f59e0b;
    flex-shrink: 0;
}
.rw-meta-sev--niedrig .rw-meta-dot { background: #22c55e; }
.rw-meta-sev--mittel .rw-meta-dot { background: #f59e0b; }
.rw-meta-sev--hoch .rw-meta-dot { background: #ef4444; }
@media (max-width: 700px) {
    .rw-sanktion-cons { grid-template-columns: 1fr; }
}

/* Kopierschutz: nur öffentliche Regelwerk-Ansicht, nicht Admin-Editor */
.rw-page .rw-content,
.rw-page .rw-toc,
.rw-page .rw-intro,
.rw-page .rw-card,
.rw-page .rw-card-body,
.rw-page .rw-section-h,
.rw-page .rw-head-text,
.rw-page .rw-hero {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
.rw-page .rw-card-link {
    -webkit-user-select: none;
    user-select: none;
}
.rw-page .rw-search input {
    -webkit-user-select: text;
    user-select: text;
}
.rw-page.is-devtools-locked .rw-layout,
.rw-page.is-devtools-locked .rw-head-text h1,
.rw-page.is-devtools-locked .rw-head-text p,
.rw-page.is-devtools-locked .rw-hero {
    filter: blur(6px);
    opacity: .35;
    pointer-events: none;
}
.rw-empty.is-locked {
    color: #fca5a5;
    border-color: rgba(239, 68, 68, .35);
}

/* DevTools-/Analyse-Warnung – echtes Fullscreen-Overlay (scrollbar, kein Abschneiden) */
.rw-devtools-guard {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    inset: 0 !important;
    width: 100vw !important;
    width: 100dvw !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    max-height: none !important;
    margin: 0 !important;
    z-index: 2147483646 !important;
    display: none;
    box-sizing: border-box;
    /* Am <html> gemountet → erbt nicht body-Font; explizit Site-Sans erzwingen */
    font-family: var(--font-body) !important;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    padding: max(16px, env(safe-area-inset-top, 0px))
             max(16px, env(safe-area-inset-right, 0px))
             max(16px, env(safe-area-inset-bottom, 0px))
             max(16px, env(safe-area-inset-left, 0px));
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background:
        radial-gradient(ellipse at 50% 12%, rgba(127, 29, 29, .55), transparent 55%),
        rgba(6, 8, 12, .96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* flex-start + margin:auto am Panel → kein Abschneiden oben bei kleiner Viewport-Höhe (DevTools) */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    pointer-events: auto !important;
    transform: none !important;
    filter: none !important;
    contain: none;
}
.rw-devtools-guard.is-on {
    display: flex !important;
}
.rw-devtools-guard[hidden] {
    display: none !important;
}
.rw-devtools-guard-panel {
    box-sizing: border-box;
    width: min(640px, 100%);
    max-width: 100%;
    /* Kein max-height-Clip: gesamter Text scrollt im Fullscreen-Overlay */
    max-height: none;
    margin: auto; /* zentriert wenn Platz; bei wenig Höhe scrollt das Overlay von oben */
    flex: 0 0 auto;
    overflow: visible;
    padding: clamp(18px, 4vw, 28px);
    border-radius: 16px;
    border: 1px solid rgba(248, 113, 113, .45);
    background: linear-gradient(180deg, #1a1012 0%, #120e12 100%);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
    color: #f3f4f6;
    font-family: var(--font-body) !important;
}
.rw-devtools-guard-panel,
.rw-devtools-guard-panel p,
.rw-devtools-guard-panel li,
.rw-devtools-guard-panel strong,
.rw-devtools-guard-panel button,
.rw-devtools-guard-lead,
.rw-devtools-guard-body,
.rw-devtools-guard-meta,
.rw-devtools-guard-status,
.rw-devtools-guard-hint,
.rw-devtools-guard-btn {
    font-family: var(--font-body) !important;
}
.rw-devtools-guard-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    font-size: 22px;
    background: rgba(239, 68, 68, .18);
    border: 1px solid rgba(248, 113, 113, .4);
    color: #fecaca;
}
.rw-devtools-guard-panel h2 {
    margin: 0 0 10px;
    font-family: var(--font-display) !important;
    font-size: clamp(1.2rem, 2.4vw, 1.75rem);
    font-weight: 700;
    line-height: 1.25;
    color: #fecaca;
    letter-spacing: -.01em;
    overflow-wrap: anywhere;
}
.rw-devtools-guard-lead {
    margin: 0 0 16px;
    color: #e5e7eb;
    font-size: clamp(.95rem, 2.2vw, 1.02rem);
    line-height: 1.55;
}
.rw-devtools-guard-body {
    font-size: clamp(.88rem, 2vw, .95rem);
    line-height: 1.55;
    color: #d1d5db;
}
.rw-devtools-guard-body p { margin: 0 0 10px; }
.rw-devtools-guard-body ul {
    margin: 0 0 14px;
    padding-left: 1.2em;
}
.rw-devtools-guard-body li + li { margin-top: 8px; }
.rw-devtools-guard-meta {
    margin-top: 12px !important;
    font-size: .82rem;
    color: #9ca3af;
}
.rw-devtools-guard-status {
    margin: 18px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(239, 68, 68, .14);
    border: 1px solid rgba(248, 113, 113, .35);
    color: #fecaca;
    font-family: var(--font-body) !important;
    font-weight: 600;
    font-size: .92rem;
}
.rw-devtools-guard-hint {
    margin: 10px 0 0;
    font-size: .85rem;
    color: #fbbf24;
    line-height: 1.45;
}
.rw-devtools-guard-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}
.rw-devtools-guard-btn {
    appearance: none;
    border: 1px solid rgba(248, 113, 113, .55);
    background: rgba(239, 68, 68, .22);
    color: #fecaca;
    font-family: var(--font-body) !important;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.2;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}
.rw-devtools-guard-btn:hover:not(:disabled) {
    background: rgba(239, 68, 68, .34);
    border-color: rgba(252, 165, 165, .7);
}
.rw-devtools-guard-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}
.rw-devtools-guard-btn:focus-visible {
    outline: 2px solid #fca5a5;
    outline-offset: 2px;
}
/* Seite sperren, Overlay selbst bleibt scrollbar */
html.rw-devtools-locked,
body.rw-devtools-locked {
    overflow: hidden !important;
    overscroll-behavior: none;
}
html.rw-devtools-locked .rw-page,
body.rw-devtools-locked .rw-page,
.rw-page.is-devtools-locked {
    overflow: visible !important;
    filter: none; /* Blur nur auf innere Teile, nicht auf Stacking-Context fürs Overlay */
}
@media (max-width: 560px) {
    .rw-devtools-guard {
        padding: max(12px, env(safe-area-inset-top, 0px))
                 max(12px, env(safe-area-inset-right, 0px))
                 max(12px, env(safe-area-inset-bottom, 0px))
                 max(12px, env(safe-area-inset-left, 0px));
    }
    .rw-devtools-guard-panel {
        border-radius: 12px;
        padding: 16px 14px 14px;
    }
}

@media print {
    .rw-page .rw-content,
    .rw-page .rw-toc,
    .rw-page .rw-layout {
        display: none !important;
    }
    body::after {
        content: "Druck/Export des Regelwerks ist nicht gestattet. Unbefugtes Kopieren kann zivil- und urheberrechtliche Folgen haben.";
        display: block;
        padding: 2rem;
        font-size: 14pt;
        color: #111;
    }
    .rw-devtools-guard { display: none !important; }
}

@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; }
}
@media (max-width: 560px) {
    .rw-card { padding: 14px; }
    .rw-head { align-items: stretch; }
    .rw-section-h { padding: 12px 14px; }
    .rw-hero-title { font-size: clamp(32px, 9vw, 44px); }
    .rw-hero-lead { font-size: 14.5px; }
}

/* 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(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.bw-roles[data-count="1"] { max-width: 420px; }
.bw-roles[data-count="2"] { max-width: 860px; }
.bw-empty {
    text-align: center;
    padding: clamp(32px, 5vw, 48px) 24px;
    border-radius: 14px;
    background: rgba(15,18,25,.8);
    border: 1px dashed var(--line-strong);
}
.bw-empty-ic {
    width: 48px; height: 48px; margin: 0 auto 14px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-soft); color: var(--accent-2); font-size: 20px;
}
.bw-empty h3 {
    font-size: 20px; letter-spacing: -.02em; margin-bottom: 8px;
}
.bw-empty p {
    margin: 0 auto; max-width: 46ch;
    color: var(--ink-2); font-size: 15px; line-height: 1.6;
}
.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 (Startseite #partner) ─────────────────────────────────────── */
.pt-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line);
    max-width: 720px;
    margin: 0 auto;
}
.pt-list--home {
    max-width: 720px;
}
.pt-item {
    border-bottom: 1px solid var(--line);
}
.pt-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding: 14px 4px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
    font: inherit;
    transition: background .15s ease;
}
.pt-toggle:hover { background: rgba(255,255,255,.02); }
.pt-avatar {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 11px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, rgba(59,130,246,.28), rgba(15,18,25,.55));
    border: 1px solid var(--line-strong);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .04em;
    color: rgba(255,255,255,.55);
}
.pt-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pt-avatar.is-fallback {
    background: rgba(59,130,246,.12);
}
.pt-name {
    flex: 1;
    min-width: 0;
    font-family: var(--font-display);
    font-size: clamp(16px, 2.1vw, 19px);
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ink);
    transition: color .15s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pt-toggle:hover .pt-name,
.pt-item.is-open .pt-name { color: var(--accent-2); }
.pt-chevron {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--ink-3);
    transition: transform .25s ease, color .15s ease, background .15s ease;
}
.pt-chevron svg { display: block; }
.pt-item.is-open .pt-chevron {
    transform: rotate(180deg);
    color: var(--accent-2);
    background: rgba(59,130,246,.12);
}
.pt-panel[hidden] { display: none; }
.pt-panel-inner {
    padding: 4px 4px 22px 62px;
}
.pt-body {
    color: var(--ink-2);
    font-size: 15px;
    line-height: 1.7;
    max-width: 62ch;
}
.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(59, 130, 246, .2);
    color: #93c5fd !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(59, 130, 246, .35);
    color: #bfdbfe !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: 18px;
}
.pt-empty {
    padding: 36px 16px;
    text-align: center;
    color: var(--ink-3);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

@media (prefers-reduced-motion: no-preference) {
    /* Nur mit JS-Klasse ausblenden – sonst bleiben Items ohne Script unsichtbar */
    #partner.is-motion .pt-reveal:not(.is-in) {
        opacity: 0;
        transform: translateY(12px);
    }
    .pt-reveal {
        transition: opacity .55s cubic-bezier(.2,.8,.2,1), transform .55s cubic-bezier(.2,.8,.2,1);
        transition-delay: var(--pt-delay, 0s);
    }
    .pt-reveal.is-in {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 640px) {
    .pt-toggle {
        gap: 12px;
        min-height: 64px;
        padding: 12px 0;
    }
    .pt-avatar { width: 40px; height: 40px; border-radius: 10px; }
    .pt-panel-inner { padding: 2px 0 20px 0; }
    .pt-actions .ls-btn {
        flex: 1 1 auto;
        justify-content: center;
        min-width: min(100%, 140px);
    }
}

/* ==========================================================================
   Link-Preview / Embed-Card (Discord-Style)
   Dunkle Card · weißer Titel · muted Beschreibung · quadratisches Thumbnail
   ========================================================================== */
.ls-embed,
.ls-link-card {
    --ls-embed-accent: #fff;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 18px 22px;
    width: 100%;
    max-width: 520px;
    padding: 16px 16px 16px 18px;
    text-decoration: none;
    color: inherit;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    border-left: 4px solid var(--ls-embed-accent);
    box-shadow: 0 10px 28px -18px rgba(0, 0, 0, .55);
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease, box-shadow .2s ease;
}
a.ls-embed:hover,
a.ls-link-card:hover {
    background: var(--surface-3);
    border-color: rgba(255, 255, 255, .22);
    color: inherit;
    box-shadow: 0 14px 36px -16px rgba(0, 0, 0, .45);
}
@media (hover: hover) {
    a.ls-embed:hover,
    a.ls-link-card:hover { transform: translateY(-1px); }
}
.ls-embed--plain,
.ls-link-card--plain {
    border-left-width: 1px;
    border-left-color: var(--line);
    padding-left: 16px;
}
.ls-embed--wide,
.ls-link-card--wide { max-width: none; }
.ls-embed__body,
.ls-link-card__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 2px 0;
}
.ls-embed__title,
.ls-link-card__title {
    font-family: var(--font-display);
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.01em;
    color: #fff;
}
a.ls-embed:hover .ls-embed__title,
a.ls-link-card:hover .ls-link-card__title { color: #fff; }
.ls-embed__desc,
.ls-link-card__desc {
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--ink-3);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ls-embed__thumb,
.ls-link-card__thumb {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    border-radius: var(--r-sm);
    overflow: hidden;
    background: var(--surface-3);
    border: 1px solid var(--line);
    align-self: center;
}
.ls-embed__thumb img,
.ls-link-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ls-embed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    margin-top: 8px;
}
.ls-embed-grid .ls-embed,
.ls-embed-grid .ls-link-card { max-width: none; }
@media (max-width: 520px) {
    .ls-embed,
    .ls-link-card {
        padding: 14px;
        gap: 14px;
    }
    .ls-embed--plain,
    .ls-link-card--plain { padding-left: 14px; }
    .ls-embed__thumb,
    .ls-link-card__thumb {
        width: 68px;
        height: 68px;
    }
    .ls-embed__title,
    .ls-link-card__title { font-size: 14.5px; }
    .ls-embed__desc,
    .ls-link-card__desc {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
}

/* 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;
}

/* ─── Jugendschutz ───────────────────────────────────────────── */
.js-page {
    width: 100%;
    flex: 1;
}
.js-hero {
    position: relative;
    isolation: isolate;
    padding: clamp(72px, 12vw, 120px) var(--gutter) clamp(40px, 6vw, 64px);
    text-align: center;
    overflow: clip;
}
.js-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(55% 70% at 50% 0%, rgba(59,130,246,.22), transparent 68%),
        radial-gradient(40% 50% at 80% 40%, rgba(59,130,246,.08), transparent 60%),
        linear-gradient(180deg, rgba(7,9,15,.2), rgba(7,9,15,.92));
    pointer-events: none;
}
.js-hero::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(420px, 70vw);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(96,165,250,.55), transparent);
}
.js-hero-inner {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}
.js-brand {
    font-family: var(--font-display);
    font-size: clamp(36px, 6.2vw, 64px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: .98;
    color: #fff;
    margin-bottom: 14px;
}
.js-brand em,
.js-brand span {
    font-style: normal;
    color: var(--accent-2);
}
.js-title {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.15;
    max-width: none;
    color: var(--ink-2);
}
.js-lead {
    margin: 18px auto 0;
    max-width: 46ch;
    font-size: clamp(15px, 1.8vw, 17px);
    color: var(--ink-3);
    line-height: 1.65;
}
.js-meta {
    margin-top: 18px;
    font-size: 13px;
    color: var(--ink-3);
    letter-spacing: .02em;
}
.js-section {
    padding: clamp(36px, 6vw, 64px) 0;
}
.js-section + .js-section {
    border-top: 1px solid var(--line);
}
.js-wrap {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.js-h2 {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    letter-spacing: -.03em;
    margin-bottom: 14px;
}
.js-copy {
    color: var(--ink-2);
    font-size: 16.5px;
    line-height: 1.7;
    max-width: 62ch;
}
.js-copy--lead {
    margin-bottom: 28px;
}
.js-copy--muted {
    margin-top: 18px;
    font-size: 15px;
    color: var(--ink-3);
}
.js-scope .js-wrap {
    position: relative;
    padding-left: calc(var(--gutter) + 14px);
}
.js-scope .js-wrap::before {
    content: '';
    position: absolute;
    left: var(--gutter);
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--accent), rgba(59,130,246,.15));
}

.js-tip-list {
    list-style: none;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    border-left: 1px solid rgba(59,130,246,.28);
}
.js-tip {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 8px 16px;
    padding: 22px 0 22px 22px;
    position: relative;
}
.js-tip + .js-tip {
    border-top: 1px solid var(--line);
}
.js-tip-n {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .04em;
    color: var(--accent-2);
    padding-top: 4px;
}
.js-tip::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 28px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(59,130,246,.15);
}
.js-tip-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 6px;
}
.js-tip-body p {
    color: var(--ink-2);
    font-size: 15.5px;
    line-height: 1.65;
    max-width: 58ch;
}

.js-section.js-stance {
    padding: 0;
    border-top: none;
}
.js-section.js-stance + .js-section {
    border-top: none;
}
.js-stance-band {
    position: relative;
    isolation: isolate;
    padding: clamp(40px, 7vw, 72px) 0;
    border-block: 1px solid rgba(59,130,246,.28);
    background:
        linear-gradient(180deg, rgba(59,130,246,.12), rgba(59,130,246,.04) 45%, rgba(7,9,15,.55)),
        radial-gradient(70% 120% at 50% 0%, rgba(96,165,250,.16), transparent 62%);
}
.js-stance-band::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, transparent, rgba(59,130,246,.35), transparent);
    background-size: 100% 1px;
    background-position: center top;
    background-repeat: no-repeat;
    pointer-events: none;
}
.js-stance-inner {
    max-width: 680px;
    text-align: center;
}
.js-stance-label {
    display: inline-block;
    margin: 0 0 14px;
    padding: 5px 12px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-2);
    border: 1px solid rgba(96,165,250,.35);
    background: rgba(59,130,246,.1);
}
.js-stance .js-h2 {
    margin-bottom: 16px;
}
.js-stance .js-copy {
    margin: 0 auto;
    color: rgba(255,255,255,.78);
    max-width: 54ch;
}

.js-support {
    padding-bottom: clamp(56px, 8vw, 96px);
}

@media (prefers-reduced-motion: no-preference) {
    .js-hero-inner > * {
        animation: rise .7s cubic-bezier(.2,.8,.2,1) both;
    }
    .js-brand { animation-delay: .02s; }
    .js-title { animation-delay: .08s; }
    .js-lead { animation-delay: .14s; }
    .js-meta { animation-delay: .2s; }

    .js-reveal {
        opacity: 0;
        transform: translateY(14px);
        transition: opacity .55s cubic-bezier(.2,.8,.2,1), transform .55s cubic-bezier(.2,.8,.2,1);
        transition-delay: var(--js-delay, 0s);
    }
    .js-reveal.is-in {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 640px) {
    .js-tip {
        grid-template-columns: 40px minmax(0, 1fr);
        padding-left: 16px;
        gap: 6px 10px;
    }
    .js-scope .js-wrap {
        padding-left: calc(var(--gutter) + 12px);
    }
}
