/* ═══════════════════════════════════════════
   F1 Shortnews – Main Stylesheet
   motorsport-news.com Design Family
   ═══════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
    /* Dark palette (header, hero, footer) */
    --bg-dark: #0f1117;
    --bg-dark-secondary: #161921;
    --bg-dark-card: #1a1e28;
    --bg-dark-hover: #222733;
    --border-dark: #2a2f3d;
    --border-dark-subtle: #1f2330;

    /* Light palette (feed, cards) */
    --bg-light: #f0f1f5;
    --bg-card: #ffffff;
    --bg-card-hover: #fafbfc;
    --border-light: #e2e4ea;
    --text-dark: #111318;
    --text-body: #3a3e4a;
    --text-muted-light: #8a8e9a;

    /* Dark area text */
    --text-white: #e8eaf0;
    --text-white-secondary: #9a9eb0;
    --text-white-muted: #5a5e70;

    /* Brand neon green */
    --neon: #c8e620;
    --neon-dim: #a3bb1a;
    --neon-glow: rgba(200, 230, 32, 0.15);
    --neon-glow-strong: rgba(200, 230, 32, 0.25);

    /* Series accents (Defaults, überschreibbar via ACF rennserie_farbe_bg/fg) */
    --accent-f1-bg: #1e1e1e;
    --accent-f1-fg: #e10600;
    --accent-f2-bg: #00819e;
    --accent-f2-fg: #ffffff;
    --accent-f3-bg: #cd1421;
    --accent-f3-fg: #ffffff;
    --accent-academy-bg: #7b2ff7;
    --accent-academy-fg: #ffffff;

    /* Taxonomy colors */
    --tag-team: #0084b4;
    --tag-driver: #7b2ff7;
}

/* ── Reset & Base ── */
* { box-sizing: border-box; margin: 0; padding: 0; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 2px; }

a { text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ══════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════ */
.site-header {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 0 var(--neon-glow);
}

.header-inner {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ── Zeile 1: Logo + Nav + Burger ── */
.header-row-main {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-img {
    height: 28px;
    width: auto;
    display: block;
}

/* Header Navigation (Desktop) */
.header-nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.header-nav li { margin: 0; padding: 0; }

.header-nav a {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-white-secondary);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.15s ease;
    white-space: nowrap;
    display: block;
}

.header-nav a:hover {
    color: var(--text-white);
    background: var(--bg-dark-hover);
}

.header-nav .current-menu-item a,
.header-nav .current_page_item a {
    color: var(--neon);
}

/* Burger Button (Hidden Desktop) */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 32px;
    height: 32px;
    padding: 6px;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
}

.burger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-white-secondary);
    border-radius: 1px;
    transition: all 0.25s ease;
}

.burger.open .burger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.burger.open .burger-line:nth-child(2) {
    opacity: 0;
}

.burger.open .burger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ── Zeile 2: Suche ── */
.header-row-search {
    padding: 0 0 12px;
}

.header-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-dark-hover);
    border: 1px solid var(--border-dark);
    border-radius: 7px;
    padding: 7px 12px;
    transition: border-color 0.15s ease;
}

.header-search-form:focus-within {
    border-color: var(--neon-dim);
}

.header-search-form svg {
    color: var(--text-white-muted);
    flex-shrink: 0;
}

.header-search-form input {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    color: var(--text-white);
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
}

.header-search-form input::placeholder {
    color: var(--text-white-muted);
}

.search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    border: none;
    background: var(--neon);
    color: var(--bg-dark);
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.search-submit:hover {
    opacity: 0.85;
}


/* ══════════════════════════════════════════
   HERO SECTION (dark, homepage)
   ══════════════════════════════════════════ */
.hero-section {
    background: var(--bg-dark);
    padding-bottom: 28px;
}

.hero-inner {
    max-width: 700px;
    margin: 0 auto;
    padding: 16px 16px 0;
}

/* ── Countdown Widget ── */
.countdown-widget {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    border-top: 3px solid var(--neon);
    border-radius: 9px;
    padding: 20px 24px;
    margin-bottom: 24px;
    margin-top: 8px;
}

.countdown-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-white-muted);
    font-weight: 600;
}

.countdown-race {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
}

.countdown-circuit {
    color: var(--text-white-secondary);
    font-size: 0.82rem;
}

.countdown-date {
    font-size: 0.75rem;
    color: var(--neon);
    font-weight: 600;
    margin-top: 4px;
    font-family: 'JetBrains Mono', monospace;
}

.countdown-numbers {
    display: flex;
    align-items: flex-start;
    gap: 3px;
}

.countdown-unit {
    text-align: center;
}

.countdown-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-white);
    background: var(--bg-dark-hover);
    border-radius: 5px;
    padding: 6px 10px;
    line-height: 1;
    min-width: 48px;
}

.countdown-unit-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-white-muted);
    font-weight: 600;
    margin-top: 4px;
}

.countdown-separator {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    color: var(--text-white-muted);
    padding-top: 8px;
}

/* ── Support Series Pills ── */
.countdown-series {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border-dark);
}

.series-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px 4px 5px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.series-pill .series-pill-badge {
    width: 22px; height: 22px;
    border-radius: 3px;
    display: flex;
    align-items: center; justify-content: center;
    flex-shrink: 0;
}

.series-pill .series-pill-badge svg {
    width: 16px; height: 12px;
}

.series-pill.active {
    background: rgba(255,255,255,0.06);
    color: var(--text-white);
    border-color: rgba(255,255,255,0.08);
}

.series-pill.active .series-pill-badge.f1 { background: var(--accent-f1-bg); color: var(--accent-f1-fg); }
.series-pill.active .series-pill-badge.f2 { background: var(--accent-f2-bg); color: var(--accent-f2-fg); }
.series-pill.active .series-pill-badge.f3 { background: var(--accent-f3-bg); color: var(--accent-f3-fg); }
.series-pill.active .series-pill-badge.academy { background: var(--accent-academy-bg); color: var(--accent-academy-fg); }

.series-pill.active:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
}

.series-pill.inactive {
    opacity: 0.28;
    color: var(--text-white-muted);
}

.series-pill.inactive .series-pill-badge {
    background: var(--text-white-muted);
}

/* Kalender-Link im Countdown */
.countdown-calendar-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--neon);
    text-decoration: none;
    transition: gap 0.2s ease, opacity 0.15s ease;
    opacity: 0.8;
}

.countdown-calendar-link:hover {
    gap: 6px;
    opacity: 1;
}

/* ── Headlines List ── */
.headlines-section {
    margin-top: 4px;
}

.headlines-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-white-muted);
    font-weight: 600;
    margin-bottom: 10px;
    padding-left: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
}

.headlines-label::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--neon);
    box-shadow: 0 0 6px var(--neon-glow-strong);
}

.headline-list {
    list-style: none;
}

.headline-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.headline-item:hover {
    background: var(--bg-dark-hover);
}

.headline-item:hover .headline-title {
    color: var(--neon);
}

.headline-badge {
    width: 38px; height: 26px;
    border-radius: 4px;
    display: flex;
    align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.headline-badge.f1 { background: var(--accent-f1-bg); color: var(--accent-f1-fg); }
.headline-badge.f2 { background: var(--accent-f2-bg); color: var(--accent-f2-fg); }
.headline-badge.f3 { background: var(--accent-f3-bg); color: var(--accent-f3-fg); }
.headline-badge.academy { background: var(--accent-academy-bg); color: var(--accent-academy-fg); }

.headline-badge svg {
    width: 26px; height: 18px;
}

.headline-content {
    flex: 1; min-width: 0;
}

.headline-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-white);
    line-height: 1.35;
    transition: color 0.15s ease;
}

.headline-meta {
    font-size: 0.88rem;
    color: var(--text-white-muted);
    margin-top: 2px;
}

.headline-meta .cat-label {
    color: var(--text-white-secondary);
    font-weight: 500;
}

/* ══════════════════════════════════════════
   FEED SECTION (light background)
   ══════════════════════════════════════════ */
.feed-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 16px 16px 8px;
}

/* ── News Card ── */
.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 9px;
    padding: 18px 20px;
    margin-bottom: 10px;
    transition: box-shadow 0.15s ease;
    animation: fadeInUp 0.35s ease both;
}

.news-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.news-badge {
    width: 28px; height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center; justify-content: center;
}

.news-badge.f1 { background: var(--accent-f1-bg); color: var(--accent-f1-fg); }
.news-badge.f2 { background: var(--accent-f2-bg); color: var(--accent-f2-fg); }
.news-badge.f3 { background: var(--accent-f3-bg); color: var(--accent-f3-fg); }
.news-badge.academy { background: var(--accent-academy-bg); color: var(--accent-academy-fg); }

.news-badge svg {
    width: 20px; height: 14px;
}

.news-cat-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-body);
}

.news-time {
    font-size: 0.78rem;
    color: var(--text-muted-light);
}

.news-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 10px 0;
    letter-spacing: -0.2px;
    color: var(--text-dark);
}

.news-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.news-title a:hover {
    color: var(--neon-dim);
}

/* Side-by-side layout: image left, text right */
.news-body {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.news-body.no-image {
    display: block;
}

.news-image {
    width: 48%;
    flex-shrink: 0;
    border-radius: 7px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    display: block;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.news-body-text {
    flex: 1;
    min-width: 0;
}

.news-excerpt {
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.55;
    margin-bottom: 10px;
}

.news-readmore {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--neon-dim);
    text-decoration: none;
    padding: 5px 0;
    transition: gap 0.2s ease, color 0.15s ease;
}

.news-readmore:hover {
    gap: 8px;
    color: var(--neon);
}

.news-readmore svg {
    width: 14px; height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Tags ── */
.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.news-tag {
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-muted-light);
    transition: color 0.15s ease;
}

.news-tag:hover {
    color: var(--neon-dim);
}

/* ── Taxonomy Chips ── */
.news-taxonomy {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.tax-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px 4px 4px;
    border-radius: 13px;
    background: var(--bg-light);
    text-decoration: none;
    transition: all 0.15s ease;
    border: 1px solid var(--border-light);
}

.tax-chip:hover {
    border-color: #ccc;
    background: #e8e9ee;
}

.tax-chip-img {
    width: 24px; height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--border-light);
}

.tax-chip.team .tax-chip-img {
    border-radius: 4px;
}

.tax-chip-initials {
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center; justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.tax-chip.team .tax-chip-initials {
    border-radius: 4px;
    background: var(--tag-team);
}

.tax-chip.driver .tax-chip-initials {
    background: var(--tag-driver);
}

.tax-chip-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-body);
    white-space: nowrap;
}

.tax-chip-count {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-muted-light);
    white-space: nowrap;
}

/* ── Pagination ── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 20px 0 32px;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 5px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-body);
    text-decoration: none;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    transition: all 0.15s ease;
}

.page-numbers:hover:not(.current):not(.dots) {
    border-color: var(--neon-dim);
    background: #f5f5f8;
    color: var(--text-dark);
}

.page-numbers.current {
    background: var(--neon);
    border-color: var(--neon);
    color: var(--bg-dark);
    font-weight: 700;
}

.page-numbers.dots {
    border: none;
    background: none;
    color: var(--text-muted-light);
}

.page-numbers.prev svg,
.page-numbers.next svg {
    width: 16px; height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ══════════════════════════════════════════
   SINGLE ARTICLE
   ══════════════════════════════════════════ */
.article-hero {
    background: var(--bg-dark);
    padding: 24px 16px 28px;
}

.article-hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
    color: var(--text-white-muted);
    margin-bottom: 16px;
}

.article-breadcrumb a {
    color: var(--text-white-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.article-breadcrumb a:hover { color: var(--neon); }
.article-breadcrumb .sep { opacity: 0.4; }

.article-hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.article-hero-badge {
    width: 34px; height: 34px;
    border-radius: 5px;
    display: flex;
    align-items: center; justify-content: center;
}

.article-hero-badge.f1 { background: var(--accent-f1-bg); color: var(--accent-f1-fg); }
.article-hero-badge.f2 { background: var(--accent-f2-bg); color: var(--accent-f2-fg); }
.article-hero-badge.f3 { background: var(--accent-f3-bg); color: var(--accent-f3-fg); }
.article-hero-badge.academy { background: var(--accent-academy-bg); color: var(--accent-academy-fg); }

.article-hero-badge svg { width: 22px; height: 16px; }

.article-hero-cat {
    font-size: 1.0rem;
    font-weight: 600;
    color: var(--text-white-secondary);
}

.article-hero-date {
    font-size: 1.0rem;
    color: var(--text-white-muted);
}

.article-hero h1 {
    font-size: 2.0rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.3;
    letter-spacing: -0.4px;
    margin-bottom: 12px;
}

.article-hero-excerpt {
    font-size: 1.2rem;
    color: var(--text-white-secondary);
    line-height: 1.55;
}

.article-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 16px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 9px;
    padding: 28px 28px 24px;
    margin-top: -12px;
    position: relative;
    z-index: 2;
}

.article-featured-image {
    border-radius: 7px;
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 16/9;
    background: var(--bg-light);
}

.article-featured-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.article-featured-caption {
    font-size: 0.72rem;
    color: var(--text-muted-light);
    margin-top: 6px;
    text-align: right;
}

.article-text {
    font-size: 1.18rem;
    color: var(--text-body);
    line-height: 1.75;
}

.article-text p {
    margin-bottom: 16px;
}

.article-text p:last-child {
    margin-bottom: 0;
}

.article-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.article-tag {
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-muted-light);
    transition: color 0.15s ease;
}

.article-tag:hover { color: var(--neon-dim); }

/* ── Below-content containers ── */
.below-content {
    max-width: 700px;
    margin: 16px auto 0;
    padding: 0 16px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 9px;
    padding: 20px 24px;
}

.info-card-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted-light);
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-card-label::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--neon);
}

/* ── Related News ── */
.related-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    text-decoration: none;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.1s ease;
}

.related-item:last-child { border-bottom: none; }

.related-item:hover .related-title {
    color: var(--neon-dim);
}

.related-badge {
    width: 24px; height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.related-badge.f1 { background: var(--accent-f1-bg); color: var(--accent-f1-fg); }
.related-badge.f2 { background: var(--accent-f2-bg); color: var(--accent-f2-fg); }
.related-badge.f3 { background: var(--accent-f3-bg); color: var(--accent-f3-fg); }
.related-badge.academy { background: var(--accent-academy-bg); color: var(--accent-academy-fg); }

.related-badge svg { width: 16px; height: 11px; }

.related-content { flex: 1; min-width: 0; }

.related-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.35;
    transition: color 0.15s ease;
}

.related-meta {
    font-size: 0.72rem;
    color: var(--text-muted-light);
    margin-top: 2px;
}

.related-thumb {
    width: 80px; height: 52px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-light);
}

.related-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Archive Links ── */
.archive-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.archive-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 7px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    text-decoration: none;
    transition: all 0.15s ease;
}

.archive-link:hover {
    border-color: var(--neon-dim);
    background: #e8e9ee;
}

.archive-link-icon {
    width: 28px; height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.archive-link-icon.team { background: var(--tag-team); }
.archive-link-icon.driver { background: var(--tag-driver); border-radius: 50%; }

.archive-link-icon img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.archive-link-initials {
    font-size: 0.65rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.archive-link-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-body);
}

.archive-link-count {
    font-size: 0.7rem;
    color: var(--text-muted-light);
    font-family: 'JetBrains Mono', monospace;
}

/* ── Compact Countdown (inline, ≤5 days) ── */
.countdown-inline {
    border-top: 2px solid var(--neon);
}

.countdown-inline-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.countdown-inline-race {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.countdown-inline-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-dark);
}

.countdown-inline-date {
    font-size: 0.78rem;
    color: var(--text-muted-light);
    font-weight: 500;
}

.countdown-inline-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.countdown-inline-unit { text-align: center; }

.countdown-inline-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-dark);
    background: var(--bg-light);
    border-radius: 5px;
    padding: 4px 10px;
    line-height: 1;
    display: block;
}

.countdown-inline-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted-light);
    font-weight: 600;
    margin-top: 2px;
    display: block;
}

.countdown-inline-sep {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: var(--text-muted-light);
    padding-bottom: 12px;
}

.countdown-inline-series {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.series-pill-sm {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-body);
}

.series-pill-sm.inactive { opacity: 0.25; }

.sp-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--text-muted-light);
}

/* ── Post Navigation ── */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 7px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    text-decoration: none;
    transition: all 0.15s ease;
}

.post-nav-link:hover {
    border-color: var(--neon-dim);
}

.post-nav-link.next { text-align: right; }

.post-nav-dir {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted-light);
    font-weight: 600;
}

.post-nav-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-nav-link:hover .post-nav-title {
    color: var(--neon-dim);
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.site-footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-dark);
    padding: 32px 16px;
}

.footer-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* Footer Navigation */
.footer-nav {
    margin-bottom: 14px;
}

.footer-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin: 0;
    padding: 0;
}

.footer-menu li { margin: 0; padding: 0; }

.footer-menu a {
    color: var(--text-white-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.footer-menu a:hover { color: var(--neon); }

.footer-menu .current-menu-item a,
.footer-menu .current_page_item a {
    color: var(--text-white-secondary);
}

.footer-copy {
    color: var(--text-white-muted);
    font-size: 0.72rem;
}

.footer-family {
    margin-top: 10px;
    font-size: 0.72rem;
    color: var(--text-white-muted);
}

.footer-family a {
    color: var(--text-white-secondary);
    text-decoration: none;
}

.footer-family a:hover { color: var(--neon); }

/* Disclaimer / Freitext */
.footer-disclaimer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-dark);
    font-size: 0.65rem;
    line-height: 1.6;
    color: var(--text-white-muted);
    opacity: 0.6;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Legal Pages ── */
.legal-text {
    font-size: 0.95rem;
    line-height: 1.7;
}

.legal-text h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 24px 0 8px;
    color: var(--text-dark);
}

.legal-text h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 18px 0 6px;
    color: var(--text-dark);
}

.legal-text p {
    margin-bottom: 12px;
}

.legal-text ul,
.legal-text ol {
    margin-bottom: 12px;
    padding-left: 24px;
}

.legal-text a {
    color: var(--neon-dim);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-text a:hover {
    color: var(--text-dark);
}

.legal-meta {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    font-size: 0.72rem;
    color: var(--text-muted-light);
}

/* ══════════════════════════════════════════
   CALENDAR PAGE
   ══════════════════════════════════════════ */

/* Stats Bar */
.calendar-stats-bar {
    max-width: 700px;
    margin: -14px auto 0;
    padding: 0 16px;
    position: relative;
    z-index: 2;
}

.calendar-stats-inner {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 9px;
    padding: 14px 20px;
    display: flex;
    justify-content: space-around;
    gap: 12px;
}

.calendar-stat { text-align: center; }

.calendar-stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1;
}

.calendar-stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted-light);
    font-weight: 600;
    margin-top: 2px;
}

/* Toggle */
.calendar-toggle {
    max-width: 700px;
    margin: 16px auto 0;
    padding: 0 16px;
}

.calendar-toggle-bar {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 9px;
    overflow: hidden;
}

.calendar-toggle-btn {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted-light);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.calendar-toggle-btn.active {
    color: var(--text-dark);
}

.calendar-toggle-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--neon);
    border-radius: 1px;
}

.calendar-toggle-btn:hover:not(.active) {
    color: var(--text-body);
}

.calendar-toggle-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    background: var(--bg-light);
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
    color: var(--text-muted-light);
}

.calendar-toggle-btn.active .calendar-toggle-count {
    background: var(--neon-glow);
    color: var(--neon-dim);
}

/* Calendar sections */
.calendar-section {
    max-width: 700px;
    margin: 12px auto 0;
    padding: 0 16px 32px;
}

.calendar-empty {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 9px;
    padding: 24px;
    text-align: center;
    color: var(--text-muted-light);
    font-size: 0.88rem;
}

/* Race Cards */
.race-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 9px;
    padding: 16px 20px;
    margin-bottom: 8px;
    transition: box-shadow 0.15s ease;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.race-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border-color: #d0d2d8;
}

.race-card.next-race {
    border-left: 3px solid var(--neon);
    background: linear-gradient(90deg, rgba(200,230,32,0.04), var(--bg-card) 30%);
}

.race-card.past { opacity: 0.7; }
.race-card.past:hover { opacity: 1; }

/* Round number */
.race-round {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted-light);
    min-width: 28px;
    text-align: center;
    padding-top: 2px;
}

.race-round-num {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1;
}

.race-card.past .race-round-num { color: var(--text-muted-light); }
.race-card.next-race .race-round-num { color: var(--neon-dim); }

/* Race info */
.race-info { flex: 1; min-width: 0; }

.race-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.race-flag { font-size: 1.4rem; line-height: 1; }

.race-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.race-card.past .race-name { color: var(--text-body); }

.race-circuit {
    font-size: 0.78rem;
    color: var(--text-muted-light);
    margin-bottom: 6px;
}

.race-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.race-bottom-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.race-date {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-body);
    font-family: 'JetBrains Mono', monospace;
}

.race-card.next-race .race-date { color: var(--neon-dim); }

/* Series pills */
.race-series {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

.race-series-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px 2px 3px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    border: 1px solid var(--border-light);
    color: var(--text-body);
}

.race-series-pill .rsp-badge {
    width: 18px;
    height: 14px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.race-series-pill .rsp-badge svg { width: 14px; height: 10px; }

.race-series-pill.active .rsp-badge.f1 { background: var(--accent-f1-bg); color: var(--accent-f1-fg); }
.race-series-pill.active .rsp-badge.f2 { background: var(--accent-f2-bg); color: var(--accent-f2-fg); }
.race-series-pill.active .rsp-badge.f3 { background: var(--accent-f3-bg); color: var(--accent-f3-fg); }
.race-series-pill.active .rsp-badge.academy { background: var(--accent-academy-bg); color: var(--accent-academy-fg); }

.race-series-pill.inactive {
    opacity: 0.25;
    border-color: transparent;
}

.race-series-pill.inactive .rsp-badge { background: var(--text-muted-light); }

/* Sprint badge */
.race-sprint-badge {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent-f1-fg);
    background: rgba(225,6,0,0.08);
    padding: 2px 7px;
    border-radius: 3px;
}

/* Countdown badge */
.race-countdown-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    background: var(--neon-glow);
    color: var(--neon-dim);
    font-family: 'JetBrains Mono', monospace;
}

.race-countdown-badge .pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Podium */
.race-podium {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}

.podium-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.podium-pos {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.podium-pos.p1 { background: #f5d000; color: #5a4500; }
.podium-pos.p2 { background: #c0c4cc; color: #3a3e4a; }
.podium-pos.p3 { background: #cd8c52; color: #fff; }

.podium-driver {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-body);
    flex: 1;
    min-width: 0;
}

.podium-driver .podium-flag {
    font-size: 0.8rem;
    margin-right: 4px;
}

/* Sprint podium */
.sprint-podium {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed var(--border-light);
}

.sprint-podium-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent-f1-fg);
    margin-bottom: 2px;
}

.sprint-podium-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
}

.sprint-podium-row .podium-pos {
    width: 16px;
    height: 16px;
    font-size: 0.58rem;
    border-radius: 3px;
}

.sprint-podium-row .podium-driver {
    font-size: 0.72rem;
}

/* ══════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.news-card:nth-child(1) { animation-delay: 0.0s; }
.news-card:nth-child(2) { animation-delay: 0.04s; }
.news-card:nth-child(3) { animation-delay: 0.08s; }
.news-card:nth-child(4) { animation-delay: 0.12s; }
.news-card:nth-child(5) { animation-delay: 0.16s; }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Burger visible, Nav collapsed */
    .burger { display: flex; }

    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        border-top: 1px solid var(--border-dark);
        border-bottom: 1px solid var(--border-dark);
        padding: 8px 16px;
        z-index: 100;
    }

    .header-nav.open { display: block; }

    .header-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .header-nav a {
        padding: 10px 8px;
        font-size: 0.88rem;
        border-radius: 6px;
    }

    .header-row-main { position: relative; }
}

@media (max-width: 576px) {
    .countdown-widget { border-radius: 7px; }
    .countdown-value { font-size: 1.2rem; }
    .headline-item { padding: 8px 10px; }
    .news-body { flex-direction: column; }
    .news-image { width: 100%; }
    .article-hero h1 { font-size: 1.5rem; }
    .article-card { padding: 20px 18px 18px; }
    .post-nav { grid-template-columns: 1fr; }
    .related-thumb { width: 60px; height: 40px; }
    /* Calendar */
    .race-card { padding: 14px 14px; gap: 10px; }
    .race-round { min-width: 22px; }
    .calendar-stats-inner { padding: 12px 14px; }
    .race-bottom { flex-direction: column; align-items: flex-start; gap: 4px; }
    .race-bottom-right { flex-wrap: wrap; }
}
