/* ==========================================================================
   Landkreis Kernstadt – Theme im Stil des cc_core-Pausenmenüs (Rot)
   ========================================================================== */

@font-face { font-family: "Arame Mono"; src: url("fonts/ArameMono.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Arame Mono"; src: url("fonts/ArameMono-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("fonts/Gilroy-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("fonts/Gilroy-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("fonts/Gilroy-SemiBold.ttf") format("truetype"); font-weight: 600 800; font-display: swap; }

:root {
  --accent: #ff2e3b;
  --accent-dark: #991d24;
  --accent-2: #ff6b74;
  --accent-soft: rgba(255, 46, 59, .14);
  --glow: 0 0 2.2vh rgba(255, 46, 59, .9);
  --box-bg: rgba(140, 140, 140, .05);
  --box-border: rgba(255, 255, 255, .18);
  --font: "Gilroy", "Segoe UI", system-ui, sans-serif;
  --font-display: "Arame Mono", ui-monospace, monospace;
  --radius: 4px;
  --radius-lg: 6px;
  --hex: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
}

body {
  background:
    radial-gradient(ellipse 60% 45% at 50% -10%, rgba(255,255,255,.07), transparent 70%),
    #050506;
}

/* ---------- Typografie: Arame Mono, Großbuchstaben ---------- */
h1, h2, h3, h4, .kicker, .stat-num, .para-num, .step-num, .doc-tag, .doc-big,
.btn, .nav-links a, .toc-title, .faction-tab, .pill, .eyebrow, .table-title,
.tier-table th, .data-table th, .breadcrumb, .footer h4, .mobile-menu a, .arrow-link, .faq-q {
  font-family: var(--font-display);
  letter-spacing: .04em;
}
h1, h2, h3, .kicker, .btn, .nav-links a, .toc-title, .faction-tab, .table-title, .doc-tag, .footer h4, .mobile-menu a, .arrow-link {
  text-transform: uppercase;
}
.section-head h2, .h2, .page-hero h1, .cta h2 { font-weight: 400; letter-spacing: .02em; }
.section-head h2 { font-size: clamp(28px, 3.8vw, 46px); line-height: 1.12; }
.page-hero h1 { font-size: clamp(36px, 5.6vw, 68px); letter-spacing: .03em; }
.page-hero h1, .section-head h2 { text-shadow: 0 0 40px rgba(255,46,59,.18); }
.card h3, .step h3 { font-size: 17px; letter-spacing: .05em; font-weight: 400; }
.para-head h2 { font-size: clamp(20px, 2.4vw, 28px); font-weight: 400; letter-spacing: .04em; }
.faq-q { font-size: 15px; font-weight: 400; }
.stat-num { font-weight: 700; letter-spacing: 0; }
.kicker { letter-spacing: .25em; font-size: 12px; }

/* ---------- Glühende Header-Linien (wie Pausenmenü) ---------- */
.glow-line {
  position: relative; height: 1px; flex: 1;
  background: radial-gradient(102% 88% at 92% 60%, rgba(255,255,255,.21), rgba(153,29,36,0));
}
.glow-line::after {
  content: ""; position: absolute; top: -2px; left: 0; width: min(270px, 60%); height: 5px; border-radius: 11px;
  background: radial-gradient(142% 88% at 92% 60%, var(--accent), rgba(153,29,36,0));
  box-shadow: var(--glow);
}
.glow-line.rev { transform: rotate(180deg); }

.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; opacity: 0; transition: opacity .3s;
  background: linear-gradient(90deg, transparent, rgba(255,46,59,.9) 20%, rgba(255,255,255,.15) 50%, rgba(255,46,59,.9) 80%, transparent);
  box-shadow: 0 0 12px rgba(255,46,59,.6);
}
.nav.scrolled::after { opacity: 1; }
.nav.scrolled { background: rgba(5,5,6,.85); }

/* ---------- Brand: LANDKREIS (rot) / KERNSTADT (weiß, gesperrt) ---------- */
.brand-text small { font-family: var(--font-display); font-size: 12px; letter-spacing: .32em; color: var(--accent); text-shadow: 0 0 12px rgba(255,46,59,.6); }
.brand-text span { font-family: var(--font-display); font-size: 14px; letter-spacing: .42em; text-transform: uppercase; }

/* ---------- Navigation ---------- */
.nav-links a { font-size: 13px; color: var(--text-2); border-radius: var(--radius); }
.nav-links a.active { color: #fff; text-shadow: 0 0 14px rgba(255,46,59,.6); }
.nav-links a.active::after { height: 3px; bottom: 0; background: var(--accent); box-shadow: var(--glow); border-radius: 3px; }

/* ---------- Hero ---------- */
.hero h1 { font-family: var(--font-display); font-weight: 400; letter-spacing: .02em; line-height: 1; }
.hero h1 .line:first-child > span {
  color: var(--accent); font-size: clamp(46px, 8vw, 108px);
  text-shadow: 0 0 30px rgba(255,46,59,.55), 0 0 80px rgba(255,46,59,.25);
}
.hero h1 .line:nth-child(2) > span {
  font-size: clamp(22px, 3.6vw, 48px); letter-spacing: .62em; color: #fff;
  background: none; -webkit-text-fill-color: #fff; animation: rise 1.1s var(--ease) .12s forwards;
  padding-left: .1em;
}
.hero-lines { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; max-width: 520px; }
.eyebrow {
  font-family: var(--font); text-transform: none; letter-spacing: 0;
  background: rgba(87,165,27,.24); border: 0; color: #88ff2c; padding: 6px 14px 6px 6px; font-weight: 500;
}
.eyebrow .dot { width: 22px; height: 22px; display: grid; place-items: center; background: rgba(0,0,0,.24); box-shadow: none; animation: none; position: relative; }
.eyebrow .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #88ff2c; animation: ping 2s infinite; }
.hero-meta { font-family: var(--font-display); text-transform: uppercase; font-size: 12px; letter-spacing: .1em; }

/* ---------- Buttons (corleone-v5) ---------- */
.btn {
  border-radius: var(--radius); font-size: 13px; font-weight: 400; padding: 14px 22px;
  background: var(--box-bg); border: 1px solid rgba(255,255,255,.25);
}
.btn:hover { border-color: rgba(255,255,255,.5); background: rgba(140,140,140,.1); }
.btn-primary {
  color: #fff; border: 1px solid var(--accent);
  background: linear-gradient(180deg, rgba(255,46,59,.42), rgba(255,46,59,.10));
  box-shadow: inset 0 0 18px rgba(255,46,59,.3);
}
.btn-primary:hover {
  border-color: #ff5560;
  background: linear-gradient(180deg, rgba(255,46,59,.65), rgba(255,46,59,.18));
  box-shadow: inset 0 0 26px rgba(255,46,59,.5);
}
.btn-discord { border: 1px solid #5865f2; background: linear-gradient(180deg, rgba(88,101,242,.45), rgba(88,101,242,.12)); }
.btn-discord:hover { background: linear-gradient(180deg, rgba(88,101,242,.7), rgba(88,101,242,.2)); border-color: #7983f5; }

/* ---------- Boxen (corleone-normal-box) ---------- */
.card, .faq-item, .chip, .stat, .legal-card, .toc-other, .faction-tabs, .search input, .callout {
  border-radius: var(--radius);
}
.card {
  background: var(--box-bg); border: 1px solid var(--box-border);
  backdrop-filter: blur(6px);
}
.card::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255,46,59,.16), transparent 45%); }
.card:hover { border-color: rgba(255,46,59,.55); box-shadow: inset 0 0 40px rgba(255,46,59,.1); }
.card::after {
  content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 0; background: var(--accent); box-shadow: var(--glow);
  transition: height .5s var(--ease);
}
.card:hover::after { height: 100%; }

.stats { border-radius: var(--radius); border-color: var(--box-border); background: var(--box-border); }
.stat { background: #08080a; }
.stat-num .unit { text-shadow: 0 0 16px rgba(255,46,59,.7); }

/* ---------- Hexagon-Icons ---------- */
.card-icon, .step-num {
  position: relative; border: 0; border-radius: 0; isolation: isolate;
  clip-path: var(--hex);
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
}
.card-icon::before, .step-num::before {
  content: ""; position: absolute; inset: 2px; z-index: -1; clip-path: var(--hex);
  background: radial-gradient(77% 77% at 50% 50%, rgba(255,46,59,.28), rgba(255,46,59,0)), #0b0b0d;
}
.card-icon { width: 58px; height: 64px; color: var(--accent); }
.card:hover .card-icon { transform: scale(1.08); }
.step-num { width: 66px; height: 74px; border: 0; color: var(--accent); font-weight: 700; }
.step:hover .step-num { background: linear-gradient(180deg, #ff5560, var(--accent-dark)); color: #fff; box-shadow: none; }
.step:hover .step-num::before { background: radial-gradient(77% 77% at 50% 50%, rgba(255,46,59,.6), rgba(255,46,59,.15)), #160608; }
.steps::before { top: 36px; background: linear-gradient(90deg, transparent, rgba(255,46,59,.5) 10%, rgba(255,255,255,.12) 50%, rgba(255,46,59,.5) 90%, transparent); }

/* ---------- Tabs, Chips, Tabellen ---------- */
.faction-tabs { background: #000000f2; border-color: var(--box-border); }
.faction-tab { border-radius: 3px; font-size: 13px; }
.faction-tab.active { background: linear-gradient(180deg, rgba(255,46,59,.5), rgba(255,46,59,.15)); color: #fff; box-shadow: inset 0 0 0 1px var(--accent), inset 0 0 18px rgba(255,46,59,.35); }
.chip { background: var(--box-bg); border-color: var(--box-border); font-family: var(--font-display); text-transform: uppercase; font-size: 12.5px; font-weight: 400; letter-spacing: .05em; }
.chip-dot { clip-path: var(--hex); border-radius: 0; width: 11px; height: 12px; }
.tier-table, .data-table { border-radius: var(--radius); border-color: var(--box-border); }
.tier-table th, .data-table th { background: #000000e6; font-size: 11.5px; letter-spacing: .12em; }
.badge-num { border-radius: 3px; font-family: var(--font-display); background: linear-gradient(180deg, rgba(255,46,59,.35), rgba(255,46,59,.08)); border-color: var(--accent); color: #fff; }

/* ---------- Doc-Karten ---------- */
.doc-card .doc-big { font-family: var(--font-display); font-weight: 700; color: rgba(255,255,255,.035); }
.doc-card:hover .doc-big { color: rgba(255,46,59,.16); text-shadow: 0 0 30px rgba(255,46,59,.3); }
.doc-card h3 { font-size: 26px; }
.doc-card .doc-list li { border-radius: 3px; background: rgba(0,0,0,.4); border-color: var(--box-border); }

/* ---------- FAQ ---------- */
.faq-item { background: var(--box-bg); border-color: var(--box-border); }
.faq-item.open { border-color: rgba(255,46,59,.55); box-shadow: inset 0 0 30px rgba(255,46,59,.08); }

/* ---------- CTA ---------- */
.cta { border-radius: var(--radius-lg); border-color: rgba(255,46,59,.35); }
.cta::after { border-radius: 5px; background: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(255,46,59,.16), transparent 70%), #070708; }
.cta::before { background: conic-gradient(from 0deg, transparent, rgba(255,46,59,.35), transparent 30%); }

/* ---------- Unterseiten-Header ---------- */
.page-hero .page-lines { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; max-width: 420px; }
.pill { border-radius: 3px; text-transform: uppercase; font-size: 11.5px; letter-spacing: .1em; background: rgba(0,0,0,.45); border-color: var(--box-border); }

/* ---------- Regel-Sidebar wie Pausenmenü-Navigation ---------- */
.toc ol { border-left: 0; display: grid; gap: 6px; }
.toc li a {
  position: relative; overflow: hidden;
  background: #000000f2; border: 0; margin: 0;
  border-radius: 0 12px 12px 0; padding: 11px 14px 11px 16px;
  font-size: 14px; color: var(--text-2); transition: background .3s, color .3s, box-shadow .3s;
}
.toc li a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; transition: background .3s, box-shadow .3s; }
.toc li a:hover { background: #0f0f0ff2; color: #fff; }
.toc li a.active {
  background: #000000f2; color: #fff; border-left: 0;
  box-shadow: inset 0 0 26px rgba(255,46,59,.28);
}
.toc li a.active::before { background: var(--accent); box-shadow: var(--glow); }
.toc li a .n { font-family: var(--font-display); font-size: 13px; }
.toc-title { letter-spacing: .25em; }
.search input { background: #000000e6; border-color: var(--box-border); font-family: var(--font); }

/* ---------- Paragrafen ---------- */
.para-head {
  align-items: center; justify-content: space-between; gap: 18px;
  padding: 12px 16px; margin-bottom: 22px;
  background: var(--box-bg); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius);
  position: relative; overflow: hidden;
}
.para-head::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 40%;
  background: radial-gradient(142% 88% at 8% 40%, var(--accent), rgba(153,29,36,0)); box-shadow: 0 0 14px rgba(255,46,59,.7);
}
.para-head h2 { order: 1; }
.para-num { order: 2; border-radius: 3px; font-weight: 700; font-size: 15px; background: linear-gradient(180deg, rgba(255,46,59,.4), rgba(255,46,59,.08)); border-color: var(--accent); color: #fff; box-shadow: inset 0 0 12px rgba(255,46,59,.35); }
.rules > li { border-radius: var(--radius); }
.rules > li::before { font-family: var(--font-display); font-size: 14px; padding-top: 2px; }
.rules > li:hover { background: rgba(140,140,140,.06); }
.rules > li.target { box-shadow: inset 3px 0 0 var(--accent); }
.rule-link { border-radius: 3px; }
.callout { background: linear-gradient(135deg, rgba(255,46,59,.12), rgba(255,46,59,.02)); border-color: rgba(255,46,59,.35); }
.table-title::before { box-shadow: var(--glow); }

/* ---------- Footer & Sonstiges ---------- */
.footer { background: #030304; position: relative; }
.footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,46,59,.8) 25%, rgba(255,255,255,.12) 50%, rgba(255,46,59,.8) 75%, transparent);
  box-shadow: 0 0 12px rgba(255,46,59,.5);
}
.socials a { border-radius: 0; clip-path: var(--hex); width: 40px; height: 44px; background: rgba(255,255,255,.06); border: 0; }
.socials a:hover { background: rgba(255,46,59,.25); }
.to-top { border-radius: 0; clip-path: var(--hex); width: 50px; height: 56px; border: 0; background: linear-gradient(180deg, rgba(255,46,59,.55), rgba(153,29,36,.55)); }
.to-top:hover { background: linear-gradient(180deg, var(--accent), var(--accent-dark)); color: #fff; }
.preloader-bar span { box-shadow: var(--glow); }
.ticker-item { font-family: var(--font-display); font-weight: 400; font-size: 13px; letter-spacing: .14em; }
.ticker-item::before { clip-path: var(--hex); transform: none; width: 9px; height: 10px; box-shadow: none; }
.ticker { background: #000; }
.section-alt { background: #070708; }
.legal h2 { font-family: var(--font-display); font-weight: 400; font-size: 19px; letter-spacing: .05em; }
.legal-card { background: var(--box-bg); border-color: var(--box-border); }
.copy-toast { border-radius: var(--radius); font-family: var(--font-display); text-transform: uppercase; font-size: 12px; letter-spacing: .08em; border-color: var(--accent); box-shadow: inset 0 0 20px rgba(255,46,59,.25); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #050506; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--accent), var(--accent-dark)); border-radius: 4px; }

@media (max-width: 560px) {
  .hero h1 .line:nth-child(2) > span { letter-spacing: .42em; }
  .page-hero h1 { font-size: 30px; }
  .brand-text span { letter-spacing: .3em; }
}

/* ---------- Kein Anheben beim Hover ---------- */
.btn:hover, .card:hover, .chip:hover, .socials a:hover { transform: none; }

/* ---------- Navigation: gleich große Kästen, Icon über Text ---------- */
:root { --nav-h: 88px; }
.nav-links { gap: 8px; }
.nav-links a {
  width: 112px; height: 66px; padding: 7px 6px 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  font-size: 10.5px; letter-spacing: .08em; line-height: 1; white-space: nowrap;
  transition: border-color .25s, background .25s, color .25s, box-shadow .25s;
}
.nav-links a:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.28); }
.nav-links a.active {
  color: #fff; border-color: rgba(255,46,59,.75);
  background: linear-gradient(180deg, rgba(255,46,59,.22), rgba(255,46,59,.04));
  box-shadow: inset 0 0 18px rgba(255,46,59,.3);
}
.nav-links a.active::after { left: 22px; right: 22px; bottom: -1px; height: 2px; }
.nav-ico {
  width: 30px; height: 30px; object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.6));
  transition: filter .25s;
}
.nav-links a:not(.active) .nav-ico { filter: drop-shadow(0 4px 6px rgba(0,0,0,.6)) saturate(.35) brightness(.85); }
.nav-links a:hover .nav-ico { filter: drop-shadow(0 4px 8px rgba(255,46,59,.35)); }
.nav-links a.active .nav-ico { filter: drop-shadow(0 0 10px rgba(255,46,59,.55)); }
.nav-cta .btn-discord { height: 66px; }
.chips { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 560px) { .chips { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 3D-Icons (Figma) statt Linien-SVGs ---------- */
.ico3d { width: 20px; height: 20px; flex: none; object-fit: contain; filter: drop-shadow(0 0 5px rgba(255,46,59,.35)); user-select: none; -webkit-user-drag: none; }
.btn .ico3d { width: 22px; height: 22px; }
.btn-primary .ico3d { filter: brightness(1.9) contrast(1.1) drop-shadow(0 0 1px rgba(0,0,0,.9)) drop-shadow(0 1px 3px rgba(0,0,0,.7)); }
.hero-meta .ico3d { width: 22px; height: 22px; }
.card-icon .ico3d { width: 36px; height: 36px; }
.arrow-link .ico3d { width: 20px; height: 20px; transition: transform .35s var(--ease); }
.card:hover .arrow-link .ico3d, .arrow-link:hover .ico3d { transform: translateX(6px); }
.pill .ico3d { width: 18px; height: 18px; }
.search .ico3d { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; opacity: .85; }
.rule-link .ico3d { width: 16px; height: 16px; }
.callout .ico3d { width: 28px; height: 28px; margin-top: 0; }
.to-top .ico3d { width: 26px; height: 26px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.chip-ico { width: 24px; height: 24px; }

/* ======================================================================
   Intro-Loading-Screen (erster Besuch pro Sitzung: volles Intro,
   danach nur kurzer Übergang)
   ====================================================================== */
html.loading { overflow: hidden; }
html.loading .fade-up { animation-play-state: paused; }

.preloader { background: transparent; transition: none; overflow: hidden; }
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.pl-half {
  position: absolute; left: 0; right: 0; height: 50.5%; background: #050507;
  transition: transform 1s cubic-bezier(.77,0,.18,1);
}
.pl-top { top: 0; }
.pl-bottom { bottom: 0; }
.pl-top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, #fff 50%, var(--accent) 70%, transparent);
  box-shadow: 0 0 18px 2px rgba(255,46,59,.8); opacity: 0; transform: scaleX(0);
  transition: opacity .25s, transform .5s var(--ease);
}
.pl-grid {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 45%, rgba(255,46,59,.16), transparent 70%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 45%, #000 30%, transparent 75%);
          mask-image: radial-gradient(70% 70% at 50% 45%, #000 30%, transparent 75%);
  transition: opacity .5s;
}
.pl-grid::after { /* Scanline */
  content: ""; position: absolute; left: 0; right: 0; height: 120px; top: -120px;
  background: linear-gradient(180deg, transparent, rgba(255,46,59,.07), transparent);
  animation: plScan 2.6s linear infinite;
}
.preloader-inner { position: relative; z-index: 2; gap: 0; transition: opacity .45s, transform .6s var(--ease); }

.pl-emblem { position: relative; width: 190px; height: 190px; display: grid; place-items: center; }
.pl-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pl-hex { fill: none; stroke-linejoin: round; transform-origin: 100px 100px; }
.pl-hex-1 { stroke: rgba(255,46,59,.9); stroke-width: 2; stroke-dasharray: 60 22; filter: drop-shadow(0 0 6px rgba(255,46,59,.9)); animation: plSpin 6s linear infinite; }
.pl-hex-2 { stroke: rgba(255,255,255,.14); stroke-width: 1; stroke-dasharray: 4 7; animation: plSpin 9s linear infinite reverse; }
.pl-hex-3 { fill: rgba(255,46,59,.06); stroke: rgba(255,46,59,.35); stroke-width: 1; }
.preloader .logo-mark {
  position: relative; width: 86px; height: auto; animation: plCrest 1s var(--ease) both, plFloat 3s ease-in-out 1s infinite;
  filter: drop-shadow(0 0 22px rgba(255,46,59,.45)) drop-shadow(0 8px 18px rgba(0,0,0,.8));
}

.pl-title { display: grid; justify-items: center; margin-top: 26px; font-family: var(--font-display); text-transform: uppercase; }
.pl-title small { font-size: 12px; letter-spacing: .5em; color: var(--accent); text-shadow: 0 0 12px rgba(255,46,59,.7); margin-right: -.5em; animation: plIn .7s var(--ease) .25s both; }
.pl-title strong { font-weight: 400; font-size: clamp(26px, 5vw, 40px); letter-spacing: .32em; margin-right: -.32em; color: #fff; animation: plTrack 1.1s var(--ease) .35s both; }

.preloader .preloader-bar {
  position: relative; width: min(300px, 70vw); height: 3px; margin-top: 28px; border-radius: 0;
  background: rgba(255,255,255,.08); overflow: visible; animation: plIn .6s var(--ease) .5s both;
}
.preloader .preloader-bar span {
  position: absolute; left: 0; top: 0; bottom: 0; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--accent-dark), var(--accent) 70%, #fff); box-shadow: var(--glow);
  animation: none; transition: transform .2s linear;
}
.pl-status {
  display: flex; justify-content: space-between; gap: 24px; width: min(300px, 70vw); margin-top: 12px;
  font-family: var(--font-display); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3);
  animation: plIn .6s var(--ease) .6s both;
}
.pl-text::after { content: "_"; color: var(--accent); animation: plBlink .8s steps(1) infinite; }
.pl-pct { color: #fff; font-variant-numeric: tabular-nums; }
.pl-skip {
  position: absolute; z-index: 2; bottom: 28px; left: 0; right: 0; text-align: center;
  font-family: var(--font-display); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.28);
  animation: plIn .6s var(--ease) 1.2s both;
}

/* Ausgang: Inhalt weg, Naht leuchtet, Hälften fahren auseinander */
.preloader.exit .preloader-inner { opacity: 0; transform: scale(.94); }
.preloader.exit .pl-grid { opacity: 0; }
.preloader.exit .pl-skip { animation: none; visibility: hidden; }
.preloader.exit .pl-top::after { opacity: 1; transform: scaleX(1); }
.preloader.open .pl-top { transform: translateY(-101%); }
.preloader.open .pl-bottom { transform: translateY(101%); }
.preloader.open .pl-top::after { opacity: 0; transition-delay: .4s; }

/* Folgeseiten in derselben Sitzung: nur kurzer Übergang */
html.intro-seen .pl-title, html.intro-seen .pl-status, html.intro-seen .pl-skip,
html.intro-seen .preloader .preloader-bar, html.intro-seen .pl-ring { display: none; }
html.intro-seen .preloader .logo-mark { animation: pulse 1.2s var(--ease) infinite; width: 64px; }
html.intro-seen .pl-half { transition-duration: .7s; }

@keyframes plSpin { to { transform: rotate(360deg); } }
@keyframes plScan { to { top: 100%; } }
@keyframes plBlink { 50% { opacity: 0; } }
@keyframes plIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes plTrack { from { opacity: 0; letter-spacing: .9em; margin-right: -.9em; filter: blur(6px); } to { opacity: 1; filter: none; } }
@keyframes plCrest { from { opacity: 0; transform: scale(.6) translateY(10px); filter: blur(8px); } }
@keyframes plFloat { 50% { transform: translateY(-5px); } }

@media (prefers-reduced-motion: reduce) {
  .pl-hex-1, .pl-hex-2, .pl-grid::after, .preloader .logo-mark { animation: none; }
  .pl-half { transition-duration: .01s; }
}

/* ---------- Regel-Sidebar: passende Scrollbar + kompakter ---------- */
/* scrollbar-width schaltet in Chrome die ::-webkit-Styles ab -> Farben explizit setzen */
html { scrollbar-color: var(--accent) #050506; }
.toc {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,46,59,.55) transparent;
  padding-right: 10px; margin-right: -10px; /* Scrollbar sitzt neben, nicht auf den Boxen */
  overscroll-behavior: contain;
}
.toc:hover { scrollbar-color: var(--accent) rgba(255,255,255,.04); }
.toc::-webkit-scrollbar { width: 4px; }
.toc::-webkit-scrollbar-track { background: transparent; }
.toc::-webkit-scrollbar-thumb { background: rgba(255,46,59,.55); border-radius: 2px; }

.rules-layout { grid-template-columns: 300px minmax(0, 1fr); gap: 56px; }
.toc ol { gap: 4px; }
.toc li a { padding: 9px 12px 9px 14px; font-size: 13.5px; line-height: 1.3; }
.toc li a .n { min-width: 34px; }
.toc .search { margin-bottom: 18px; }

/* Niedrige Bildschirme (Laptops, 125 %-Skalierung): noch kompakter, damit alles ohne Scrollen passt */
@media (max-height: 940px) and (min-width: 1001px) {
  .toc li a { padding: 7px 12px 7px 14px; font-size: 13px; }
  .toc ol { gap: 3px; }
  .toc-title { margin-bottom: 10px; }
  .toc .search { margin-bottom: 14px; }
  .toc-other { margin-top: 18px; padding: 14px 16px; }
}

/* ---------- Schatten/Glow von Knöpfen & Boxen immer NACH INNEN ---------- */
.btn-primary { box-shadow: inset 0 0 18px rgba(255,46,59,.3); }
.btn-primary:hover { box-shadow: inset 0 0 26px rgba(255,46,59,.5); }
.btn-discord, .btn-discord:hover { box-shadow: inset 0 0 18px rgba(88,101,242,.35); }
.btn-discord:hover { box-shadow: inset 0 0 26px rgba(88,101,242,.55); }
.nav-links a.active { box-shadow: inset 0 0 18px rgba(255,46,59,.3); }
.faction-tab.active { box-shadow: inset 0 0 0 1px var(--accent), inset 0 0 18px rgba(255,46,59,.35); }
.toc li a.active { box-shadow: inset 0 0 26px rgba(255,46,59,.28); }
.para-num { box-shadow: inset 0 0 12px rgba(255,46,59,.35); }
.card:hover { box-shadow: inset 0 0 40px rgba(255,46,59,.1); }
.faq-item.open { box-shadow: inset 0 0 30px rgba(255,46,59,.08); }
.search input:focus { box-shadow: inset 0 0 16px rgba(255,46,59,.18); }
.step:hover .step-num { box-shadow: none; }
.copy-toast { box-shadow: inset 0 0 20px rgba(255,46,59,.25); }
/* Leuchtlinien in Knöpfen bleiben im Knopf */
.nav-links a { overflow: hidden; }
.nav-links a.active::after { bottom: 0; }
