/* =========================================================
   DarkV Roleplay - Stylesheet
   Dunkle Gaming-/FiveM-Ästhetik mit blau leuchtenden Akzenten
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
    --bg: #050a12;
    --bg-alt: #070d17;
    --bg-elevated: #0a1220;
    --card-bg: #09111d;
    --card-bg-hover: #0d1728;
    --primary: #0878ff;
    --primary-bright: #1687ff;
    --primary-dim: #0a5cc4;
    --primary-glow: rgba(22, 135, 255, 0.35);
    --cyan: #35d0ff;
    --text: #f5f7fa;
    --text-muted: #8b95a5;
    --text-faint: #5c6879;
    --border: rgba(90, 130, 180, 0.20);
    --border-strong: rgba(110, 160, 220, 0.38);
    --success: #2ecc71;
    --danger: #ff4d4f;
    --warning: #ffb020;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --shadow-glow: 0 8px 30px -6px rgba(8, 120, 255, 0.35);
    --shadow-card: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
    --font-heading: 'Rajdhani', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --header-h: 84px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 24px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary);
    color: #fff;
    padding: 12px 20px;
    z-index: 999;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text);
    line-height: 1.15;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--primary-bright);
}
.eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

.text-primary { color: var(--primary-bright); }
.text-muted { color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
    white-space: nowrap;
}
.btn-icon { width: 20px; height: 20px; flex-shrink: 0; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary-bright), var(--primary-dim));
    color: #fff;
    box-shadow: 0 4px 18px -4px rgba(8, 120, 255, 0.55);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px -6px rgba(22, 135, 255, 0.75);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
    background: rgba(9, 17, 29, 0.6);
    color: var(--text);
    border-color: var(--border-strong);
    backdrop-filter: blur(6px);
}
.btn-outline:hover {
    border-color: var(--primary-bright);
    color: var(--primary-bright);
    box-shadow: 0 0 0 1px var(--primary-bright), 0 8px 24px -8px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); }

.btn-lg { padding: 17px 38px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.8rem; }
.btn-block { width: 100%; }
.btn-danger { background: rgba(255, 77, 79, 0.12); color: #ff8385; border-color: rgba(255, 77, 79, 0.4); }
.btn-danger:hover { background: rgba(255, 77, 79, 0.2); }

/* ---------- Header / Navigation ---------- */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(5, 10, 18, 0.55);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), height 0.3s var(--ease);
}
.site-header.is-scrolled {
    background: rgba(5, 10, 18, 0.92);
    border-bottom-color: var(--border);
    box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.8);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(22, 135, 255, 0.25), rgba(8, 120, 255, 0.05));
    border: 1px solid var(--border-strong);
    box-shadow: 0 0 18px -2px var(--primary-glow);
}
.brand-icon { width: 22px; height: 22px; color: var(--primary-bright); }
.brand-logo-img { height: 38px; width: auto; border-radius: 8px; }
.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.03em;
    color: var(--text);
}
.brand-name::selection { background: var(--primary); }

.main-nav ul { display: flex; align-items: center; gap: 6px; }
.main-nav a {
    display: inline-block;
    padding: 10px 16px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    position: relative;
    transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.main-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.main-nav a.active { color: var(--primary-bright); }
.main-nav a.active::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 4px;
    height: 2px;
    background: var(--primary-bright);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--primary-bright);
}

.header-actions { display: flex; align-items: center; gap: 14px; }

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid var(--border);
}
.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    margin-inline: auto;
    background: var(--text);
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 9, 16, 0.98);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px 24px 40px;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), visibility 0.35s;
    z-index: 199;
    overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); opacity: 1; visibility: visible; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
    display: block;
    padding: 16px 8px;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}
.mobile-menu a.active, .mobile-menu a:hover { color: var(--primary-bright); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}
.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 65%;
    transform: scale(1.08) translateY(var(--parallax-y, 0px));
    will-change: transform;
}
.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 25% 20%, rgba(22, 135, 255, 0.22), transparent 60%),
        linear-gradient(180deg, rgba(5, 10, 18, 0.55) 0%, rgba(5, 10, 18, 0.75) 45%, var(--bg) 100%),
        linear-gradient(90deg, rgba(5, 10, 18, 0.9) 0%, rgba(5, 10, 18, 0.35) 45%, rgba(5, 10, 18, 0.55) 100%);
}

.hero-inner { position: relative; z-index: 1; padding-block: 120px 80px; width: 100%; }
.hero-content { max-width: 720px; }
.hero-kicker {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 14px;
    display: inline-block;
    animation: fadeInUp 0.8s var(--ease) both;
}
.hero-title {
    font-size: clamp(2.6rem, 6.5vw, 5rem);
    text-transform: uppercase;
    line-height: 1.02;
    margin-bottom: 26px;
    animation: fadeInUp 0.8s var(--ease) 0.1s both;
}
.hero-title .highlight {
    color: var(--primary-bright);
    text-shadow: 0 0 40px var(--primary-glow);
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s var(--ease) 0.2s both;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    animation: fadeInUp 0.8s var(--ease) 0.3s both;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    max-width: 560px;
    animation: fadeInUp 0.8s var(--ease) 0.4s both;
}
.hero-stat .value {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text);
}
.hero-stat .label {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 8px;
    background: var(--text-faint);
    box-shadow: 0 0 0 rgba(0,0,0,0);
}
.status-dot.online { background: var(--success); box-shadow: 0 0 10px var(--success); animation: pulse 2s infinite; }
.status-dot.offline { background: var(--danger); }
.status-dot.unknown { background: var(--warning); }

.player-count {
    margin-top: 8px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}
.player-count-value { color: var(--primary-bright); }
.player-count-suffix { color: var(--text-muted); font-weight: 500; font-size: 0.85rem; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.scroll-cue {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-faint);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: fadeInUp 1s var(--ease) 0.6s both;
}
.scroll-cue .line { width: 1px; height: 30px; background: linear-gradient(180deg, var(--primary-bright), transparent); animation: scrollLine 1.8s ease-in-out infinite; }
@keyframes scrollLine { 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; } }

/* ---------- Sections ---------- */
.section { padding-block: 100px; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(8, 16, 28, 0.55), transparent); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); text-transform: uppercase; margin-top: 14px; }
.section-head p { color: var(--text-muted); margin-top: 16px; font-size: 1.05rem; }
.section-head.align-left { margin-inline: 0; text-align: left; }

/* ---------- Feature Cards ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-card {
    background: linear-gradient(180deg, var(--card-bg), rgba(9, 17, 29, 0.4));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 34px 26px;
    text-align: left;
    transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120px 120px at 20% 0%, var(--primary-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}
.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-glow), var(--shadow-card);
    background: linear-gradient(180deg, var(--card-bg-hover), rgba(9, 17, 29, 0.5));
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(8, 120, 255, 0.1);
    border: 1px solid var(--border-strong);
    margin-bottom: 22px;
    transition: box-shadow 0.35s var(--ease), background 0.35s var(--ease);
    position: relative;
    z-index: 1;
}
.feature-icon svg { width: 26px; height: 26px; color: var(--primary-bright); }
.feature-card:hover .feature-icon {
    box-shadow: 0 0 24px -2px var(--primary-glow);
    background: rgba(8, 120, 255, 0.18);
}
.feature-card h3 {
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}
.feature-card p { color: var(--text-muted); font-size: 0.95rem; position: relative; z-index: 1; }

/* ---------- Why DarkV + News split ---------- */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.why-panel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 44px;
    height: 100%;
}
.why-list { display: grid; gap: 18px; margin-top: 30px; }
.why-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1.02rem;
    color: var(--text);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border);
    transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}
.why-list li:hover { border-color: var(--border-strong); transform: translateX(4px); background: rgba(8, 120, 255, 0.05); }
.why-list .check {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 120, 255, 0.15);
    color: var(--primary-bright);
}
.why-list .check svg { width: 14px; height: 14px; }

.news-panel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 44px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.news-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.news-panel-head h2 { font-size: 1.5rem; text-transform: uppercase; }

.news-list-compact { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.news-list-compact a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 12px;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid var(--border);
    transition: background 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.news-list-compact a:last-child { border-bottom: none; }
.news-list-compact a:hover { background: rgba(8, 120, 255, 0.06); padding-left: 18px; }
.news-list-compact .news-item-title { font-weight: 600; color: var(--text); }
.news-list-compact .news-item-date {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    color: var(--text-faint);
    white-space: nowrap;
    letter-spacing: 0.03em;
}
.news-empty { color: var(--text-muted); padding: 24px 0; text-align: center; }

/* ---------- Rules CTA card (homepage) ---------- */
.rules-cta {
    margin-top: 40px;
    background: linear-gradient(120deg, rgba(8, 120, 255, 0.14), rgba(9, 17, 29, 0.6));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.rules-cta::before {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, var(--primary-glow), transparent 70%);
}
.rules-cta-icon {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-md);
    background: rgba(8, 120, 255, 0.15);
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.rules-cta-icon svg { width: 32px; height: 32px; color: var(--primary-bright); }
.rules-cta-text { flex: 1; min-width: 260px; position: relative; z-index: 1; }
.rules-cta-text h2 { font-size: 1.7rem; text-transform: uppercase; margin-bottom: 10px; }
.rules-cta-text p { color: var(--text-muted); max-width: 560px; }
.rules-cta-action { position: relative; z-index: 1; }

/* ---------- Discord band ---------- */
.discord-band {
    padding-block: 90px;
    text-align: center;
    position: relative;
    background:
        radial-gradient(ellipse 50% 80% at 50% 0%, rgba(8, 120, 255, 0.16), transparent 70%),
        var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.discord-band-inner { max-width: 600px; margin: 0 auto; }
.discord-band-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(8, 120, 255, 0.15);
    border: 1px solid var(--border-strong);
    box-shadow: 0 0 30px -4px var(--primary-glow);
}
.discord-band-icon svg { width: 36px; height: 36px; color: var(--primary-bright); }
.discord-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); text-transform: uppercase; margin-bottom: 14px; }
.discord-band p { color: var(--text-muted); margin-bottom: 32px; font-size: 1.05rem; }

/* ---------- Connect panel (section on homepage) ---------- */
.connect-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    box-shadow: var(--shadow-card);
}
.connect-panel h2 { font-size: 1.7rem; text-transform: uppercase; margin-bottom: 12px; }
.connect-panel p { color: var(--text-muted); max-width: 520px; }
.connect-panel-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.connect-fallback {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-faint);
}
.connect-fallback button {
    color: var(--primary-bright);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.copy-toast {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--success);
    font-size: 0.82rem;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}
.copy-toast.show { opacity: 1; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding-block: 64px 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-brand p { color: var(--text-muted); margin: 14px 0 20px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
    color: var(--text-muted);
}
.social-btn svg { width: 18px; height: 18px; }
.social-btn:hover { border-color: var(--primary-bright); color: var(--primary-bright); transform: translateY(-3px); }

.footer-col h3 {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--text-muted); font-size: 0.95rem; transition: color 0.2s var(--ease); }
.footer-links a:hover { color: var(--primary-bright); }
.footer-contact li { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 0.92rem; }
.footer-contact svg { width: 16px; height: 16px; color: var(--primary-bright); flex-shrink: 0; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-faint);
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible .reveal-item { opacity: 1; transform: translateY(0); }
.reveal-item { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal-stagger.is-visible .reveal-item:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible .reveal-item:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-visible .reveal-item:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.is-visible .reveal-item:nth-child(4) { transition-delay: 0.26s; }

/* =========================================================
   Page: Rules (Regelwerk)
   ========================================================= */
.page-hero {
    padding-block: 150px 60px;
    text-align: center;
    background:
        radial-gradient(ellipse 60% 60% at 50% 0%, rgba(8, 120, 255, 0.18), transparent 65%),
        var(--bg);
    border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); text-transform: uppercase; margin-top: 14px; }
.page-hero p { color: var(--text-muted); max-width: 600px; margin: 18px auto 0; font-size: 1.05rem; }

.rules-search {
    max-width: 560px;
    margin: 36px auto 0;
    position: relative;
}
.rules-search input {
    width: 100%;
    padding: 16px 20px 16px 52px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--card-bg);
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.rules-search input:focus { outline: none; border-color: var(--primary-bright); box-shadow: 0 0 0 4px rgba(8, 120, 255, 0.15); }
.rules-search svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--text-faint); }
.rules-search-meta { text-align: center; margin-top: 12px; font-size: 0.85rem; color: var(--text-faint); min-height: 1.2em; }

.rules-wrap { max-width: 860px; margin: 0 auto; padding-block: 70px; display: flex; flex-direction: column; gap: 22px; }
.rule-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.3s var(--ease);
}
.rule-section.has-match { border-color: var(--border-strong); }
.rule-section-head {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    padding: 26px 30px;
    text-align: left;
}
.rule-section-num {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-bright);
    flex-shrink: 0;
    min-width: 40px;
}
.rule-section-head h2 {
    flex: 1;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.rule-section-count {
    font-size: 0.78rem;
    color: var(--text-faint);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 999px;
    flex-shrink: 0;
}
.rule-section-chevron { width: 22px; height: 22px; color: var(--text-muted); transition: transform 0.35s var(--ease); flex-shrink: 0; }
.rule-section.is-open .rule-section-chevron { transform: rotate(180deg); color: var(--primary-bright); }

.rule-section-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s var(--ease);
}
.rule-section.is-open .rule-section-body { grid-template-rows: 1fr; }
.rule-section-body-inner { overflow: hidden; }

.rule-paragraph {
    padding: 22px 30px 26px 88px;
    border-top: 1px solid var(--border);
    position: relative;
}
.rule-paragraph-num {
    position: absolute;
    left: 30px;
    top: 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-bright);
    font-size: 0.95rem;
}
.rule-paragraph h3 { font-size: 1.02rem; margin-bottom: 8px; }
.rule-paragraph p { color: var(--text-muted); font-size: 0.98rem; white-space: pre-line; }
.rule-paragraph mark { background: rgba(8, 120, 255, 0.35); color: #fff; border-radius: 3px; padding: 0 2px; }

.rules-empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }

/* =========================================================
   Page: News
   ========================================================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding-block: 70px;
}
.news-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.news-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.news-card-image {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #0c1a2e, #081222);
    position: relative;
    overflow: hidden;
}
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.news-card:hover .news-card-image img { transform: scale(1.06); }
.news-card-image .placeholder-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.news-card-image .placeholder-icon svg { width: 42px; height: 42px; color: var(--border-strong); }
.news-card-body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.news-card-date {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-bright);
}
.news-card h3 { font-size: 1.15rem; line-height: 1.3; }
.news-card p { color: var(--text-muted); font-size: 0.95rem; flex: 1; }
.news-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 0.82rem; color: var(--text-faint); }
.news-card-readmore { display: inline-flex; align-items: center; gap: 6px; color: var(--primary-bright); font-weight: 600; font-size: 0.88rem; }
.news-card-readmore svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.news-card:hover .news-card-readmore svg { transform: translateX(4px); }

.news-empty-state { text-align: center; padding: 90px 20px; color: var(--text-muted); }

/* News detail */
.news-detail-hero {
    padding-block: 150px 50px;
    background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(8, 120, 255, 0.16), transparent 65%), var(--bg);
    border-bottom: 1px solid var(--border);
}
.news-detail-meta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; color: var(--text-faint); font-size: 0.9rem; margin: 18px 0 8px; }
.news-detail-meta span { display: inline-flex; align-items: center; gap: 6px; }
.news-detail-meta svg { width: 15px; height: 15px; color: var(--primary-bright); }
.news-detail-hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); max-width: 820px; }

.news-detail-image { max-width: 900px; margin: -30px auto 0; padding-inline: 24px; }
.news-detail-image img { border-radius: var(--radius-lg); border: 1px solid var(--border); width: 100%; aspect-ratio: 16/8; object-fit: cover; }

.news-detail-content {
    max-width: 760px;
    margin: 0 auto;
    padding-block: 60px 90px;
    font-size: 1.06rem;
    color: #d7dce4;
}
.news-detail-content p { margin-bottom: 20px; }
.news-detail-content ul, .news-detail-content ol { margin: 0 0 20px 24px; list-style: disc; color: #d7dce4; }
.news-detail-content h2, .news-detail-content h3 { margin: 34px 0 16px; }
.news-detail-content a { color: var(--primary-bright); text-decoration: underline; text-underline-offset: 3px; }
.news-detail-back { margin-top: 40px; }

/* =========================================================
   Utility / Misc
   ========================================================= */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.badge-published { background: rgba(46, 204, 113, 0.15); color: #5be08b; }
.badge-draft { background: rgba(255, 176, 32, 0.15); color: #ffc357; }

.empty-icon { width: 48px; height: 48px; color: var(--border-strong); margin: 0 auto 16px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .split-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .main-nav { display: none; }
    .hamburger { display: flex; }
    .header-actions .btn-connect span { display: none; }
    .header-actions .btn-connect { padding: 12px; }
    .connect-panel { grid-template-columns: 1fr; text-align: center; }
    .connect-panel-actions { align-items: center; }
    .rules-cta { flex-direction: column; text-align: center; }
    .rules-cta-text { text-align: center; }
}

@media (max-width: 720px) {
    :root { --header-h: 72px; }
    .section { padding-block: 64px; }
    .hero { min-height: 100vh; }
    .hero-inner { padding-block: 100px 60px; }
    .hero-stats { gap: 26px; flex-wrap: wrap; }
    .features-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; }
    .why-panel, .news-panel { padding: 30px 24px; }
    .rules-cta { padding: 34px 26px; }
    .rule-paragraph { padding-left: 30px; }
    .rule-paragraph-num { position: static; display: block; margin-bottom: 6px; }
    .page-hero { padding-block: 130px 44px; }
}

@media (max-width: 420px) {
    .container { padding-inline: 18px; }
    .btn-lg { padding: 15px 24px; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .hero-media img { transform: none !important; }
    .reveal, .reveal-item { opacity: 1; transform: none; }
}
