/* =====================================================================
   808 City · Website v3 (Cinematic)
   Farben/Schriften oben als Variablen. Rot = 808-Rot (#ff2d4d) wie ingame.
   ===================================================================== */

@font-face { font-family: 'Arame'; font-weight: 400; src: url(../fonts/Arame-Regular.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: 'Arame'; font-weight: 700; src: url(../fonts/Arame-Bold.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: 'Univers'; font-weight: 400; src: url(../fonts/UniversLTStd-Regular.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Gilroy'; font-weight: 400; src: url(../fonts/Gilroy-Regular.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Gilroy'; font-weight: 500; src: url(../fonts/Gilroy-Medium.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Gilroy'; font-weight: 600; src: url(../fonts/Gilroy-Semibold.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Gilroy'; font-weight: 700; src: url(../fonts/Gilroy-Bold.woff2) format('woff2'); font-display: swap; }

:root {
    --bg: #060608;
    --bg-2: #0b0b0f;
    --panel: #101015;
    --panel-2: #16161c;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.15);
    --text: #f3f3f5;
    --muted: rgba(243, 243, 245, 0.64);
    --dim: rgba(243, 243, 245, 0.42);
    --red: #ff2d4d;
    --red-deep: #991b2e;
    --red-store: #c41f3a;
    --red-soft: rgba(255, 45, 77, 0.14);
    --red-glow: rgba(255, 45, 77, 0.38);
    --gold: #ffb21a;
    --silver: #c9d1db;
    --ok: #3ddc84;

    --f-display: 'Arame', 'Arial Narrow', Impact, sans-serif;
    --f-body: 'Gilroy', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --f-btn: 'Univers', Arial, Helvetica, sans-serif;
    --f-mono: ui-monospace, 'SFMono-Regular', Consolas, 'Courier New', monospace;

    --wrap: 78rem;
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --r: 14px;
    --r-sm: 8px;
    --nav-h: 4.5rem;
    --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
/* Filmkorn über allem, sehr dezent */
body::after {
    content: '';
    position: fixed; inset: 0; z-index: 200; pointer-events: none;
    background-image: url(../img/grain.png);
    opacity: 0.05;
    mix-blend-mode: overlay;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.pad { padding: clamp(5rem, 11vw, 9rem) 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 300; padding: .7rem 1rem; background: var(--red); color: #fff; font-weight: 700; border-radius: var(--r-sm); }
.skip:focus { top: 1rem; }

/* ---------- Typo ---------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.02; letter-spacing: 0.01em; text-transform: uppercase; }
h2 { font-size: clamp(2.2rem, 5.4vw, 4.2rem); }
h3 { font-size: 1.35rem; }
h4 { font-weight: 700; }
b, strong { font-weight: 700; color: var(--text); }
code { white-space: nowrap; font-family: var(--f-mono); font-size: .9em; padding: .1em .45em; background: var(--red-soft); color: #fff; border-radius: 5px; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .75rem;
    font-size: .78rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
    color: var(--red);
}
.eyebrow::before { content: ''; width: 2rem; height: 2px; background: currentColor; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 40rem; }
.sec-head { display: grid; gap: 1.1rem; max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.sec-head h2 em { font-style: normal; color: var(--red); }
.show-grid h2, .facts-grid h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }

/* ---------- Buttons (wie im Store: store.808city.eu) ----------
   .btn      = rot mit weißer Icon-Box (Discord)
   .btn.rev  = weiß mit roter Icon-Box (z. B. Regelwerk) */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: fit-content; height: 45px; padding: 0 6px;
    border-radius: 4px;
    background: linear-gradient(to bottom, var(--red), var(--red-deep));
    color: #fff;
    font-family: var(--f-btn); font-weight: 400; font-size: 15px; line-height: 1; letter-spacing: -0.75px;
    white-space: nowrap;
    transition: transform .3s cubic-bezier(0.22, 1, 0.36, 1), opacity .3s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn:hover { opacity: .9; }
.btn:active { transform: scale(.98); }
.btn .ico { display: flex; align-items: center; justify-content: center; flex: none; width: 35px; height: 35px; border-radius: 3px; background: #fff; color: var(--red-store); }
.btn .ico svg { width: 23px; height: 23px; }
.btn .lbl { display: inline-flex; align-items: center; transform: translateY(2px); }
.btn.rev { background: #fff; color: #0a0a0a; }
.btn.rev .ico { background: linear-gradient(to bottom, var(--red), var(--red-deep)); color: color-mix(in srgb, var(--red) 14%, white); }
.btn.rev .ico svg { width: 17px; height: 17px; }

/* ---------- Live-Status ---------- */
.live {
    display: inline-flex; align-items: center; gap: .55rem;
    font-size: .82rem; font-weight: 600; color: var(--muted);
    white-space: nowrap;
}
.live .dot { position: relative; width: .55rem; height: .55rem; border-radius: 50%; background: var(--dim); flex: none; }
.live[data-state="online"] .dot { background: var(--ok); box-shadow: 0 0 0 0 rgba(61,220,132,.55); animation: pulse 2.2s infinite; }
.live[data-state="offline"] .dot { background: var(--red); }
.live b { font-variant-numeric: tabular-nums; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.55); } 70% { box-shadow: 0 0 0 .6rem rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }

/* =====================================================================
   NAVIGATION
   ===================================================================== */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    height: var(--nav-h);
    transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.nav::before { /* weicher Verlauf, damit die Links auf hellen Bildern lesbar bleiben */
    content: ''; position: absolute; inset: 0 0 -2rem 0; z-index: -1; pointer-events: none;
    background: linear-gradient(rgba(6,6,8,.75), rgba(6,6,8,0));
    transition: opacity .35s;
}
.nav.solid { background: rgba(8,8,11,.82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 var(--line); }
.nav.solid::before { opacity: 0; }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 2rem; }

.brand { display: flex; align-items: center; gap: .8rem; flex: none; }
.brand img { width: 2.4rem; height: 2.4rem; border-radius: 10px; box-shadow: 0 0 0 1px var(--line-2), 0 6px 20px -6px var(--red-glow); }
.brand span { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; letter-spacing: .06em; text-transform: uppercase; }
.brand span b { color: var(--red); font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: .3rem; margin-left: auto; }
.nav-links a {
    position: relative; padding: .55rem .9rem;
    font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: rgba(255,255,255,.72);
    transition: color .2s;
}
.nav-links a::after { content: ''; position: absolute; left: .9rem; right: .9rem; bottom: .15rem; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover, .nav-links a.on { color: #fff; }
.nav-links a.on::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 1.2rem; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 5px; align-items: center; justify-content: center; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: color .2s, transform .2s; }
.menu-btn:hover { color: var(--red); }
.menu-btn:active { transform: scale(.95); }
.menu-btn svg { width: 1.3rem; height: 1.3rem; }
.menu-btn .x { display: none; }
.nav.open .menu-btn .x { display: block; }
.nav.open .menu-btn .bars { display: none; }

/* =====================================================================
   VIEWS (Start / Regelwerk / Fraktionsregeln)
   ===================================================================== */
.view { display: none; }
.view.show { display: block; }
html:not(.js) .view { display: block; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
    position: relative; isolation: isolate;
    min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; justify-content: flex-end;
    overflow: hidden;
}
.hero-media, .hero-art, .hero-shade { position: absolute; inset: 0; }
.hero-media { z-index: -3; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; animation: kenburns 24s var(--ease) both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }

/* Ersatz-Bild aus CSS, solange kein Ingame-Bild/Video gesetzt ist */
.hero-art {
    z-index: -4;
    background:
        radial-gradient(60% 55% at 78% 72%, rgba(255,45,77,.30), transparent 70%),
        radial-gradient(45% 40% at 92% 30%, rgba(255,45,77,.12), transparent 70%),
        radial-gradient(70% 60% at 15% 0%, rgba(70,80,130,.28), transparent 70%),
        linear-gradient(180deg, #08080f 0%, #0a0810 55%, #060608 100%);
}
.hero-art .big {
    position: absolute; right: -4vw; bottom: 6vh;
    font-family: var(--f-display); font-weight: 700; line-height: .8;
    font-size: clamp(14rem, 42vw, 46rem);
    color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.07);
    user-select: none;
}
.hero-art .skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46%; color: #07070b; }
.hero-art .streak {
    position: absolute; height: 2px; width: 22vw; border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,45,77,.9), #fff);
    filter: blur(.5px); opacity: 0;
    animation: streak 7s linear infinite;
}
.hero-art .streak.w { background: linear-gradient(90deg, transparent, rgba(255,230,200,.7), #fff); }
.hero-art .streak:nth-child(3) { bottom: 13%; animation-delay: 0s; }
.hero-art .streak:nth-child(4) { bottom: 10%; animation-delay: 2.4s; animation-duration: 9s; }
.hero-art .streak:nth-child(5) { bottom: 16%; animation-delay: 4.6s; animation-duration: 6s; }
.hero-art .streak:nth-child(6) { bottom: 8%;  animation-delay: 1.2s; animation-duration: 11s; }
@keyframes streak { 0% { transform: translateX(-30vw); opacity: 0; } 8% { opacity: .9; } 85% { opacity: .9; } 100% { transform: translateX(120vw); opacity: 0; } }
.hero.has-media .hero-art { display: none; }

.hero-shade {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(6,6,8,.92) 0%, rgba(6,6,8,.62) 38%, rgba(6,6,8,.12) 75%),
        linear-gradient(180deg, rgba(6,6,8,0) 50%, var(--bg) 100%);
}
.hero-content { position: relative; padding-top: calc(var(--nav-h) + 4rem); padding-bottom: clamp(3rem, 8vh, 6rem); }
.hero-title { margin-top: 1.4rem; line-height: .86; }
.hero-title .t1 { display: block; font-size: clamp(5.4rem, 17vw, 13.5rem); letter-spacing: .02em; text-shadow: 0 10px 60px rgba(0,0,0,.5); }
.hero-title .t2 {
    display: block; margin-top: .2em;
    font-size: clamp(1.9rem, 5.6vw, 4.4rem); letter-spacing: .42em;
    color: var(--red); text-shadow: 0 0 40px var(--red-glow);
}
.hero-tag { margin-top: 1.8rem; font-size: clamp(1.4rem, 2.8vw, 2.1rem); font-weight: 700; line-height: 1.2; }
.hero-tag em { font-style: normal; color: var(--red); }
.hero-text { margin-top: 1rem; max-width: 34rem; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 2.2rem; }
.hero-status {
    display: inline-flex; align-items: center; gap: 1rem;
    margin-top: 2rem; padding: .7rem 1.1rem .7rem 1rem;
    border-radius: 999px; background: rgba(10,10,14,.55);
    box-shadow: inset 0 0 0 1px var(--line-2);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero-status .live { color: #fff; font-size: .9rem; }
.hero-status .sep { width: 1px; height: 1.1rem; background: var(--line-2); }
.hero-status small { font-size: .8rem; color: var(--muted); }

.hero-bar { position: relative; border-top: 1px solid var(--line); background: rgba(6,6,8,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-bar ul { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.15rem 0; overflow-x: auto; scrollbar-width: none; }
.hero-bar ul::-webkit-scrollbar { display: none; }
.hero-bar li { display: flex; align-items: center; gap: .6rem; flex: none; font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.hero-bar li::before { content: ''; width: .4rem; height: .4rem; background: var(--red); transform: rotate(45deg); }

.scroll-cue { position: absolute; right: var(--gutter); bottom: 5.5rem; display: grid; justify-items: center; gap: .8rem; font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--dim); writing-mode: vertical-rl; }
.scroll-cue::after { content: ''; width: 1px; height: 3.5rem; background: linear-gradient(var(--red), transparent); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* =====================================================================
   FEATURES (Bento-Karten)
   ===================================================================== */
.features { position: relative; }
.feats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.feat {
    position: relative; isolation: isolate; overflow: hidden;
    grid-column: span 2; min-height: 22rem;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1.8rem;
    border-radius: var(--r);
    background: var(--panel);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.feat.xl { grid-column: span 4; min-height: 26rem; }
.feat.l { grid-column: span 2; min-height: 26rem; }
.feat:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(255,45,77,.45), 0 30px 60px -30px var(--red-glow); }
.feat-media { position: absolute; inset: 0; z-index: -2; }
.feat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.feat:hover .feat-media img { transform: scale(1.05); }
.feat::before { /* Lesbarkeit über Bildern */
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(6,6,8,0) 25%, rgba(6,6,8,.9) 100%);
}
/* Ersatzgrafik ohne Foto: Verlauf + großes Linien-Icon */
.feat-art { position: absolute; inset: 0; z-index: -2; background: radial-gradient(80% 70% at 85% 10%, var(--feat-glow, rgba(255,45,77,.22)), transparent 70%), linear-gradient(160deg, #15151b, #0c0c10); }
.feat-art svg { position: absolute; right: -1.5rem; top: -1rem; width: 15rem; height: 15rem; color: rgba(255,255,255,.07); stroke-width: .9; }
.feat.xl .feat-art svg { width: 22rem; height: 22rem; right: 0; top: -2rem; }
.feat.has-media .feat-art { display: none; }
.feat-no { font-family: var(--f-mono); font-size: .78rem; color: var(--red); letter-spacing: .1em; }
.feat h3 { margin-top: .6rem; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.feat.xl h3 { font-size: clamp(2rem, 3.6vw, 3rem); }
.feat p { margin-top: .6rem; max-width: 30rem; color: var(--muted); font-size: 1rem; }
.feat .tag { position: absolute; top: 1.4rem; left: 1.6rem; padding: .35rem .7rem; border-radius: 999px; background: var(--red-soft); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,45,77,.4); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* =====================================================================
   SHOWCASE (Eigenbau-Scripts mit Screenshots)
   ===================================================================== */
.showcase { position: relative; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 30%, var(--bg-2) 70%, var(--bg) 100%); overflow: hidden; }
.showcase::before { content: ''; position: absolute; left: 50%; top: 45%; width: 80rem; height: 40rem; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255,45,77,.16), transparent); pointer-events: none; }
.show-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.show-tabs { display: grid; gap: .6rem; margin-top: 2rem; }
.show-tab {
    display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; align-items: baseline;
    padding: 1.1rem 1.2rem; text-align: left;
    border-radius: 5px; background: transparent;
    box-shadow: inset 0 0 0 1px var(--line);
    transition: background .25s, box-shadow .25s;
}
.show-tab .n { grid-row: span 2; font-family: var(--f-mono); font-size: .8rem; color: var(--dim); }
.show-tab b { font-family: var(--f-display); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; }
.show-tab span:last-child { grid-column: 2; font-size: .92rem; color: var(--muted); }
.show-tab:hover { background: rgba(255,255,255,.03); }
.show-tab[aria-selected="true"] { background: var(--red-soft); box-shadow: inset 0 0 0 1px rgba(255,45,77,.5), inset 3px 0 0 var(--red); }
.show-tab[aria-selected="true"] .n { color: var(--red); }
.screen {
    position: relative; border-radius: var(--r); overflow: hidden;
    background: #000; aspect-ratio: 1100 / 618;
    box-shadow: 0 0 0 1px var(--line-2), 0 50px 120px -40px rgba(0,0,0,.9), 0 30px 80px -50px var(--red-glow);
}
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.screen img.on { opacity: 1; transform: scale(var(--z, 1)); }
.screen::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 80px rgba(0,0,0,.45); }
.screen-cap { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; padding: .4rem .75rem; border-radius: 999px; background: rgba(6,6,8,.7); backdrop-filter: blur(6px); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

/* =====================================================================
   ECKDATEN
   ===================================================================== */
.facts-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.fact { padding: 1.5rem 1.2rem 1.5rem 0; border-bottom: 1px solid var(--line); }
.fact:nth-child(odd) { border-right: 1px solid var(--line); }
.fact:nth-child(even) { padding-left: 1.6rem; }
.fact dt { font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.fact dd { margin-top: .4rem; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2rem); text-transform: uppercase; line-height: 1.1; }
.fact dd em { font-style: normal; color: var(--red); }
.fact.big { grid-column: span 2; border-right: 0; padding-left: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.fact.big dd { font-size: clamp(2.6rem, 6vw, 4.6rem); color: var(--red); text-shadow: 0 0 40px var(--red-glow); }

/* =====================================================================
   SO KOMMST DU REIN
   ===================================================================== */
.steps { position: relative; border-top: 1px solid var(--line); }
.step-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: s; }
.step {
    position: relative; padding: 2rem 1.8rem 2rem;
    border-radius: var(--r); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
}
.step .num { font-family: var(--f-display); font-weight: 700; font-size: 4.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,45,77,.75); }
.step h3 { margin-top: 1.2rem; font-size: 1.5rem; }
.step p { margin-top: .6rem; color: var(--muted); font-size: 1rem; }
.step p a:not(.btn) { color: #fff; border-bottom: 1px solid var(--red); }
.step .btn { margin-top: 1.4rem; }
.step::after { content: ''; position: absolute; top: 3.6rem; right: -1rem; width: 1rem; height: 1px; background: var(--line-2); }
.step:last-child::after { display: none; }

/* =====================================================================
   TEAM
   ===================================================================== */
.team { border-top: 1px solid var(--line); }
.crew { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1rem; }
.member {
    --c: var(--red);
    position: relative; overflow: hidden; isolation: isolate;
    padding: 2rem 1.6rem 1.6rem;
    border-radius: var(--r); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.member[data-kind="pl"] { --c: var(--gold); }
.member[data-kind="mgmt"] { --c: var(--silver); }
.member::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 9rem; z-index: -1; background: radial-gradient(80% 100% at 50% 0%, color-mix(in srgb, var(--c) 28%, transparent), transparent 75%); }
.member:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent); }
.member .pic { width: 5.5rem; height: 5.5rem; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: #0a0a0e; box-shadow: 0 0 0 2px var(--c), 0 0 0 6px rgba(255,255,255,.04); color: rgba(255,255,255,.18); }
.member .pic svg { width: 70%; height: 70%; margin-top: 18%; }
.member .pic img { width: 100%; height: 100%; object-fit: cover; }
.member .role { margin-top: 1.4rem; font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--c); }
.member .nm { margin-top: .25rem; font-family: var(--f-display); font-weight: 700; font-size: 1.8rem; text-transform: uppercase; line-height: 1.1; }
.member .meta { margin-top: .6rem; font-size: .88rem; color: var(--dim); }
.team-note { margin-top: 2rem; color: var(--muted); font-size: .95rem; }
.team-note a { color: #fff; border-bottom: 1px solid var(--red); }

/* =====================================================================
   CTA + FOOTER
   ===================================================================== */
.cta {
    position: relative; isolation: isolate; overflow: hidden;
    text-align: center;
}
.cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 50% 100%, rgba(255,45,77,.28), transparent 70%); }
.cta h2 { font-size: clamp(2.8rem, 8vw, 6.5rem); }
.cta h2 em { font-style: normal; color: var(--red); }
.cta p { margin: 1.2rem auto 0; max-width: 34rem; color: var(--muted); }
.cta .hero-cta { justify-content: center; }
.cta .live { margin-top: 1.6rem; }

.foot { border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; font-size: .9rem; color: var(--dim); }
.foot .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem 3rem; align-items: center; }
.foot .brand img { width: 2rem; height: 2rem; }
.foot .brand span { font-size: 1.05rem; color: #fff; }
.foot nav { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; justify-content: flex-end; }
.foot nav a { color: var(--muted); font-weight: 600; transition: color .2s; }
.foot nav a:hover { color: #fff; }
.foot .legal { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .82rem; }

/* =====================================================================
   REGELWERK / FRAKTIONSREGELN (Markup aus v2 übernommen)
   ===================================================================== */
.rules-head {
    position: relative; isolation: isolate; overflow: hidden;
    padding: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(2.5rem, 5vw, 4rem);
    border-bottom: 1px solid var(--line);
}
.rules-head::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 90% at 85% 0%, rgba(255,45,77,.2), transparent 70%), radial-gradient(50% 80% at 0% 0%, rgba(70,80,130,.18), transparent 70%); }
.rules-head::after { content: '§'; position: absolute; right: 4vw; bottom: -6rem; z-index: -1; font-family: var(--f-display); font-weight: 700; font-size: 26rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.06); }
.rules-head h1 { margin-top: 1.1rem; font-size: clamp(3rem, 9vw, 7rem); }
.rules-head .sub { margin-top: 1rem; max-width: 40rem; color: var(--muted); font-size: 1.08rem; }
.rule-tabs { display: inline-flex; flex-wrap: wrap; gap: .3rem; margin-top: 2rem; padding: .3rem; border-radius: 6px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line); }
.rule-tabs a { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.6rem; padding: 0 1.15rem; border-radius: 4px; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: background .2s, color .2s; }
.rule-tabs a:hover { color: #fff; }
.rule-tabs a[aria-current] { background: linear-gradient(to bottom, var(--red), var(--red-deep)); color: #fff; }
.rule-tabs em { font-style: normal; font-family: var(--f-mono); font-size: .74rem; opacity: .75; }

.rules-layout { display: grid; grid-template-columns: 18rem minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); padding-top: 3rem; padding-bottom: 6rem; }
.toc { position: sticky; top: calc(var(--nav-h) + 1.5rem); align-self: start; max-height: calc(100vh - var(--nav-h) - 3rem); overflow: auto; scrollbar-width: thin; }
.rsearch { display: block; }
.rsearch span { display: block; margin-bottom: .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.rsearch input {
    width: 100%; min-height: 3rem; padding: 0 1rem 0 2.6rem;
    border: 0; border-radius: 999px; background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='.45' stroke-width='2.2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat .95rem center / 1.05rem;
    box-shadow: inset 0 0 0 1px var(--line-2); color: #fff;
}
.rsearch input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--red); }
.rcount { min-height: 1.4rem; margin-top: .5rem; font-size: .8rem; font-weight: 600; color: var(--red); }
.toc nav { display: grid; gap: .2rem; margin-top: .6rem; }
.toc nav a { display: grid; grid-template-columns: 2.4rem 1fr auto; align-items: baseline; gap: .3rem; padding: .7rem .85rem; border-radius: var(--r-sm); font-weight: 600; font-size: .95rem; line-height: 1.35; color: var(--muted); transition: background .2s, color .2s; }
.toc nav a span { font-family: var(--f-mono); font-size: .8rem; color: var(--red); }
.toc nav a em { font-style: normal; font-family: var(--f-mono); font-size: .72rem; color: var(--dim); }
.toc nav a:hover { background: rgba(255,255,255,.04); color: #fff; }
.toc nav a.on { background: var(--red-soft); color: #fff; box-shadow: inset 2px 0 0 var(--red); }
.toc nav a.dim { opacity: .35; }

.rules-body { min-width: 0; }
.rules-intro { padding: clamp(1.4rem, 3vw, 2.2rem); margin-bottom: 3rem; border-radius: var(--r); background: linear-gradient(160deg, rgba(255,45,77,.08), rgba(255,255,255,.02) 50%); box-shadow: inset 0 0 0 1px var(--line); }
.rules-intro h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.rules-intro p, .rules-intro li { color: var(--muted); }
.rules-intro p + p { margin-top: .7rem; }
.rules-intro h4, .para-body h4 { margin-top: 1.3rem; margin-bottom: .4rem; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.rules-intro ul, .para-body ul, .para-body ol { margin: .5rem 0 0 1.2rem; }
.rules-intro li::marker, .para-body li::marker { color: var(--red); }

.chapter { margin-bottom: 3.5rem; }
.chapter > h2 { display: flex; align-items: baseline; gap: 1rem; padding-bottom: 1.2rem; margin-bottom: .5rem; border-bottom: 1px solid var(--line-2); font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.chapter > h2 span { font-family: var(--f-mono); font-size: .5em; color: var(--red); letter-spacing: 0; }
.chapter-intro { margin: 1.2rem 0 .5rem; padding: 1.2rem 1.4rem; border-radius: var(--r-sm); background: rgba(255,255,255,.025); box-shadow: inset 0 0 0 1px var(--line); }
.chapter-intro h4:first-child { margin-top: 0; }

.para { display: grid; grid-template-columns: 4.8rem minmax(0, 1fr); gap: 1rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 1.5rem); }
.para:target { position: relative; }
.para:target::before { content: ''; position: absolute; inset: .4rem -1rem; z-index: -1; border-radius: var(--r-sm); background: var(--red-soft); box-shadow: inset 0 0 0 1px rgba(255,45,77,.35); }
.pnum { align-self: start; display: inline-flex; justify-content: center; padding: .3rem .4rem; border-radius: 6px; background: rgba(255,45,77,.1); color: var(--red); font-family: var(--f-mono); font-size: .8rem; font-weight: 700; transition: background .2s, color .2s; }
.pnum:hover { background: var(--red); color: #fff; }
.para h3 { font-family: var(--f-body); font-size: 1.22rem; font-weight: 700; text-transform: none; letter-spacing: 0; line-height: 1.35; }
.para-body { margin-top: .5rem; color: var(--muted); }
.para-body p + p { margin-top: .6rem; }
.para-body b { color: #fff; }
.para-body .hint { margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--r-sm); background: rgba(255,178,26,.07); box-shadow: inset 3px 0 0 var(--gold); color: rgba(255,255,255,.8); }
.para.sub { margin-left: 2rem; grid-template-columns: 5.6rem minmax(0, 1fr); }
.para-body:empty { display: none; }
mark { background: rgba(255,45,77,.35); color: #fff; border-radius: 3px; padding: 0 .1em; }
.rules-empty { padding: 3rem 0; color: var(--muted); }

/* =====================================================================
   Einblenden beim Scrollen (nur mit JS, ohne Bewegung bei reduced-motion)
   ===================================================================== */
/* "reveal-on" setzt erst site.js – lädt das Script nicht, bleibt alles sichtbar */
html.reveal-on .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
html.reveal-on .reveal.in { opacity: 1; transform: none; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
    .nav-links a { padding: .55rem .6rem; letter-spacing: .1em; }
    .nav .live { display: none; }
}
@media (max-width: 960px) {
    :root { --nav-h: 4rem; }
    .menu-btn { display: inline-flex; }
    .nav-links {
        position: fixed; inset: var(--nav-h) 0 auto 0; z-index: -1;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 1rem var(--gutter) 2rem;
        background: rgba(8,8,11,.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line);
        transform: translateY(-110%); visibility: hidden;
        transition: transform .4s var(--ease), visibility .4s;
    }
    .nav.open .nav-links { transform: none; visibility: visible; }
    .nav.open { background: rgba(8,8,11,.97); }
    .nav-links a { padding: 1rem 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
    .nav-links a::after { display: none; }
    .nav-links a.on { color: var(--red); }
    .nav-cta .btn { display: none; }
    .nav-cta { margin-left: auto; }

    .feats { grid-template-columns: 1fr 1fr; }
    .feat, .feat.l { grid-column: span 1; min-height: 19rem; }
    .feat.xl { grid-column: span 2; min-height: 22rem; }
    .show-grid, .facts-grid { grid-template-columns: 1fr; }
    .show-tabs { grid-template-columns: repeat(3, 1fr); }
    .show-tab { grid-template-columns: 1fr; }
    .show-tab .n { grid-row: auto; }
    .show-tab span:last-child { grid-column: 1; display: none; }
    .step-row { grid-template-columns: 1fr; }
    .step::after { display: none; }
    .scroll-cue { display: none; }

    .rules-layout { grid-template-columns: 1fr; padding-top: 2rem; }
    .toc { position: static; max-height: none; overflow: visible; }
    .toc nav { grid-template-columns: 1fr 1fr; }
    .foot .wrap { grid-template-columns: 1fr; }
    .foot nav { justify-content: flex-start; }
}
@media (max-width: 640px) {
    body { font-size: 1rem; }
    .hero-title .t2 { letter-spacing: .3em; }
    .hero-cta .btn { width: 100%; }
    .hero-status { flex-wrap: wrap; border-radius: var(--r); }
    .hero-status .sep { display: none; }
    .feats { grid-template-columns: 1fr; }
    .feat, .feat.l, .feat.xl { grid-column: span 1; min-height: 17rem; padding: 1.4rem; }
    .facts { grid-template-columns: 1fr; }
    .fact, .fact:nth-child(even) { padding: 1.2rem 0; border-right: 0; }
    .fact:nth-child(odd) { border-right: 0; }
    .fact.big { grid-column: auto; flex-direction: column; gap: .2rem; }
    .toc nav { grid-template-columns: 1fr; }
    .para, .para.sub { grid-template-columns: 1fr; gap: .6rem; }
    .para.sub { margin-left: .8rem; padding-left: .9rem; border-left: 2px solid var(--line-2); }
    .pnum { justify-self: start; }
    .rule-tabs { display: flex; border-radius: var(--r); }
    .rule-tabs a { flex: 1 1 100%; justify-content: space-between; }
    .brand span { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .hero-art .streak { display: none; }
    html.reveal-on .reveal { opacity: 1; transform: none; }
}

@media print {
    body::after, .nav, .hero-bar, .toc, .foot, .rule-tabs, .skip, .cta { display: none !important; }
    body { background: #fff; color: #000; }
    .view { display: block !important; }
    #view-start { display: none !important; }
    .para-body, .rules-intro p, .rules-intro li { color: #000; }
}
