:root {
            /* F1 Racing Color Palette */
            --color-primary: #e10600;
            --color-primary-dark: #b30500;
            --color-secondary: #1e1e1e;
            --color-accent: #00d2be;
            --color-accent-alt: #ff8700;
            
            /* Dark Theme Neutrals (Default now) */
            --color-bg: #0d0d0d;       /* Was #ffffff */
            --color-bg-alt: #1a1a1a;   /* Was #f5f5f5 */
            --color-bg-card: #1e1e1e;  /* Was #ffffff */
            --color-text: #f0f0f0;     /* Was #1a1a1a */
            --color-text-muted: #a0a0a0; /* Was #6b6b6b */
            --color-border: #333333;   /* Was #e0e0e0 */
            
            /* Dark Theme Shadows (Stronger for dark bg) */
            --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
            --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
            --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
            
            /* Typography */
            --font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;
            --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
            --line-height: 1.7;
            --letter-spacing: -0.02em;
            
            /* Spacing */
            --space-xs: 0.5rem;
            --space-sm: 1rem;
            --space-md: 1.5rem;
            --space-lg: 2.5rem;
            --space-xl: 4rem;
            
            /* Layout */
            --content-width: 72ch;
            --wide-width: 90rem;
            
            /* Transitions */
            --transition-fast: 150ms ease;
            --transition-base: 250ms ease;
            --transition-slow: 400ms ease;
        }

        *, *::before, *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            scroll-behavior: smooth;
            -webkit-text-size-adjust: 100%;
        }

        body {
            font-family: var(--font-body);
            font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
            line-height: var(--line-height);
            color: var(--color-text);
            background: var(--color-bg);
            min-height: 100vh;

            flex-direction: column;
        }

        /* Header */
        header {
            position: sticky;
            top: 0;
            z-index: 100;
            background: linear-gradient(135deg, var(--color-secondary) 0%, #2d2d2d 100%);
            border-bottom: 3px solid var(--color-primary);
            min-height: 60px;
        }

        /* Main Content */
        main {
            flex: 1;
            width: 100%;
            max-width: var(--content-width);
            margin: 0 auto;
            padding: var(--space-lg) var(--space-md);
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        /* Article Styles */
        article {
            width: 100%;
            max-width: var(--content-width);
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        article > * {
            width: 100%;
            max-width: var(--content-width);
        }

        /* Headings */
        h1, h2, h3, h4, h5, h6 {
            font-family: var(--font-heading);
            font-weight: 700;
            letter-spacing: var(--letter-spacing);
            line-height: 1.2;
            color: var(--color-text);
        }

        h1 {
            font-size: clamp(2rem, 1.5rem + 2.5vw, 3.25rem);
            margin-bottom: var(--space-md);
            background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-alt) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        h2 {
            font-size: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);
            margin-top: var(--space-xl);
            margin-bottom: var(--space-md);
            padding-bottom: var(--space-sm);
            border-bottom: 2px solid var(--color-primary);
            position: relative;
        }

        h2::before {
            content: '';
            position: absolute;
            left: 0;
            bottom: -2px;
            width: 60px;
            height: 2px;
            background: var(--color-accent);
        }

        h3 {
            font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.625rem);
            margin-top: var(--space-lg);
            margin-bottom: var(--space-sm);
            color: var(--color-text);
            display: flex;
            align-items: center;
            gap: var(--space-xs);
        }

        h3::before {
            content: '';
            width: 4px;
            height: 1.2em;
            background: var(--color-primary);
            border-radius: 2px;
            flex-shrink: 0;
        }

        /* Paragraphs */
        p {
            margin-bottom: var(--space-md);
            color: var(--color-text);
        }

        p:last-child {
            margin-bottom: 0;
        }

        /* Links */
        a {
            color: var(--color-primary);
            text-decoration: none;
            transition: color var(--transition-fast);
            position: relative;
        }

        a::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -2px;
            width: 100%;
            height: 1px;
            background: currentColor;
            transform: scaleX(0);
            transform-origin: right;
            transition: transform var(--transition-base);
        }

        a:hover {
            color: var(--color-accent);
        }

        a:hover::after {
            transform: scaleX(1);
            transform-origin: left;
        }

        a:focus {
            outline: 2px solid var(--color-accent);
            outline-offset: 3px;
            border-radius: 2px;
        }

        /* Strong and Emphasis */
        strong {
            font-weight: 700;
            color: var(--color-text);
        }

        em {
            font-style: italic;
        }

        /* Lists */
        ul, ol {
            margin-bottom: var(--space-md);
            padding-left: var(--space-md);
        }

        li {
            margin-bottom: var(--space-xs);
            padding-left: var(--space-xs);
        }

        ul li::marker {
            color: var(--color-primary);
        }

        ol li::marker {
            color: var(--color-primary);
            font-weight: 600;
        }

        /* Blockquote */
        blockquote {
            margin: var(--space-lg) 0;
            padding: var(--space-md) var(--space-lg);
            background: linear-gradient(135deg, var(--color-bg-alt) 0%, transparent 100%);
            border-left: 4px solid var(--color-primary);
            border-radius: 0 8px 8px 0;
            font-style: italic;
            position: relative;
        }

        blockquote::before {
            content: '"';
            position: absolute;
            top: -10px;
            left: 15px;
            font-size: 4rem;
            color: var(--color-primary);
            opacity: 0.2;
            font-family: Georgia, serif;
            line-height: 1;
        }

        blockquote p {
            margin: 0;
            font-size: 1.1em;
        }

        /* Tables */
        table {
            width: 100%;
            margin: var(--space-lg) 0;
            border-collapse: collapse;
            background: var(--color-bg-card);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: var(--shadow-md);
        }

        thead {
            background: linear-gradient(135deg, var(--color-secondary) 0%, #2d2d2d 100%);
            color: #ffffff;
        }

        th {
            padding: var(--space-sm) var(--space-md);
            text-align: left;
            font-weight: 600;
            font-size: 0.9em;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        td {
            padding: var(--space-sm) var(--space-md);
            border-bottom: 1px solid var(--color-border);
        }

        tbody tr {
            transition: background var(--transition-fast);
        }

        tbody tr:hover {
            background: var(--color-bg-alt);
        }

        tbody tr:last-child td {
            border-bottom: none;
        }

        /* Images */
        figure {
            margin: var(--space-lg) 0;
        }

        img {
            max-width: 100%;
            height: auto;
            display: block;
        }


        .article-image {
            width: 100%;
            border-radius: 8px;
            box-shadow: var(--shadow-md);
            transition: transform var(--transition-base), box-shadow var(--transition-base);
        }

        .article-image:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-lg);
        }

        figcaption {
            margin-top: var(--space-sm);
            font-size: 0.875em;
            color: var(--color-text-muted);
            text-align: center;
            font-style: italic;
        }

        /* Code */
        code {
            font-family: 'Consolas', 'Monaco', monospace;
            font-size: 0.9em;
            background: var(--color-bg-alt);
            padding: 0.15em 0.4em;
            border-radius: 4px;
            border: 1px solid var(--color-border);
        }

        pre {
            margin: var(--space-lg) 0;
            padding: var(--space-md);
            background: var(--color-secondary);
            color: #f0f0f0;
            border-radius: 8px;
            overflow-x: auto;
            box-shadow: var(--shadow-md);
        }

        pre code {
            background: none;
            border: none;
            padding: 0;
            color: inherit;
        }

        /* Horizontal Rule */
        hr {
            margin: var(--space-xl) 0;
            border: none;
            height: 2px;
            background: linear-gradient(90deg, 
                transparent 0%, 
                var(--color-primary) 20%, 
                var(--color-accent) 50%, 
                var(--color-primary) 80%, 
                transparent 100%
            );
        }

        /* Table of Contents */
        nav[aria-label="Inhaltsverzeichnis"] {
            margin: var(--space-lg) 0;
            padding: var(--space-md);
            background: var(--color-bg-alt);
            border-radius: 8px;
            border: 1px solid var(--color-border);
        }

        nav[aria-label="Inhaltsverzeichnis"] ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        nav[aria-label="Inhaltsverzeichnis"] li {
            padding: var(--space-xs) 0;
            border-bottom: 1px solid var(--color-border);
        }

        nav[aria-label="Inhaltsverzeichnis"] li:last-child {
            border-bottom: none;
        }

        nav[aria-label="Inhaltsverzeichnis"] a {
            display: flex;
            align-items: center;
            gap: var(--space-sm);
            padding: var(--space-xs);
            border-radius: 4px;
            transition: background var(--transition-fast), transform var(--transition-fast);
        }

        nav[aria-label="Inhaltsverzeichnis"] a::before {
            content: '';
            width: 8px;
            height: 8px;
            background: var(--color-primary);
            border-radius: 50%;
            flex-shrink: 0;
            transition: transform var(--transition-fast);
        }

        nav[aria-label="Inhaltsverzeichnis"] a:hover {
            background: var(--color-bg-card);
            transform: translateX(4px);
        }

        nav[aria-label="Inhaltsverzeichnis"] a:hover::before {
            transform: scale(1.3);
        }

        nav[aria-label="Inhaltsverzeichnis"] a::after {
            display: none;
        }

        /* FAQ Styles */
        details {
            margin-bottom: var(--space-sm);
            background: var(--color-bg-card);
            border-radius: 8px;
            border: 1px solid var(--color-border);
            overflow: hidden;
            transition: box-shadow var(--transition-base);
        }

        details:hover {
            box-shadow: var(--shadow-md);
        }

        details[open] {
            box-shadow: var(--shadow-md);
        }

        summary {
            padding: var(--space-md);
            cursor: pointer;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: var(--space-sm);
            transition: background var(--transition-fast);
            list-style: none;
        }

        summary::-webkit-details-marker {
            display: none;
        }

        summary::before {
            content: '+';
            display: flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
            background: var(--color-primary);
            color: white;
            border-radius: 50%;
            font-size: 1.2em;
            font-weight: 400;
            flex-shrink: 0;
            transition: transform var(--transition-base), background var(--transition-base);
        }

        details[open] summary::before {
            content: '-';
            transform: rotate(180deg);
            background: var(--color-accent);
        }

        summary:hover {
            background: var(--color-bg-alt);
        }

        summary:focus {
            outline: 2px solid var(--color-accent);
            outline-offset: -2px;
        }

        details > div {
            padding: 0 var(--space-md) var(--space-md);
        }

        /* Racing Stripe Accent */
        .racing-stripe {
            height: 4px;
            background: linear-gradient(90deg,
                var(--color-primary) 0%,
                var(--color-primary) 33%,
                var(--color-accent) 33%,
                var(--color-accent) 66%,
                var(--color-accent-alt) 66%,
                var(--color-accent-alt) 100%
            );
            margin: var(--space-lg) 0;
        }

        /* Footer */
        footer {
            background: linear-gradient(135deg, var(--color-secondary) 0%, #2d2d2d 100%);
            color: #ffffff;
            padding: var(--space-lg) var(--space-md);
            margin-top: auto;
            border-top: 3px solid var(--color-primary);
            min-height: 80px;
        }

        /* Utility Classes */
        .visually-hidden {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        /* Selection */
        ::selection {
            background: var(--color-primary);
            color: white;
        }

        /* Scrollbar */
        ::-webkit-scrollbar {
            width: 10px;
            height: 10px;
        }

        ::-webkit-scrollbar-track {
            background: var(--color-bg-alt);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--color-primary);
            border-radius: 5px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--color-primary-dark);
        }

        /* Print Styles */
        @media print {
            body {
                font-size: 12pt;
                color: black;
                background: white;
            }
            
            header, footer {
                display: none;
            }
            
            main {
                padding: 0;
            }
            
            h1, h2, h3 {
                break-after: avoid;
            }
            
            table, figure {
                break-inside: avoid;
            }
        }

        /* Responsive Adjustments */
        @media (max-width: 768px) {
            main {
                padding: var(--space-md) var(--space-sm);
            }

            h2::before {
                width: 40px;
            }

            table {
                font-size: 0.9em;
            }

            th, td {
                padding: var(--space-xs) var(--space-sm);
            }

            blockquote {
                padding: var(--space-sm) var(--space-md);
            }
        }

        @media (max-width: 480px) {
            :root {
                --space-lg: 2rem;
                --space-xl: 3rem;
            }

            h3::before {
                display: none;
            }

            table {
                display: block;
                overflow-x: auto;
                white-space: nowrap;
            }
        }

        /* Reduced Motion */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
            
            html {
                scroll-behavior: auto;
            }
        }

        .hero-image {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto 2rem;
}



.article-image {
    width: 100%;
    max-width: var(--content-width);
    margin: 2rem auto;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.footer-content {
    max-width: var(--content-width);
    margin: 0 auto;
    text-align: center;
}

.disclaimer {
    font-size: 0.875rem;
    color: #a0a0a0;
    line-height: 1.6;
}

.disclaimer a {
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .hero-image img,
    .article-image img {
        border-radius: 8px;
    }
}

/* =========================================
   F1 THEMED DESKTOP MENU - "THE AERO WING"
   ========================================= */

@media (min-width: 769px) {

    /* 1. Reset & Container Positioning */
    .site-nav--desktop {
        display: block; /* Ensure it's visible on desktop */
        width: 100%;
        margin-top: 10px; /* Spacing from logo/top */
    }

    .menu-desktop {
        display: flex;
        justify-content: center; /* Center the menu */
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 5px; /* Small gap between "plates" */
    }

    /* 2. The Menu Item "Plates" (Skewed) */
    .menu-desktop > li {
        position: relative;
        background: rgba(255, 255, 255, 0.05); /* Subtle glass effect */
        transform: skewX(-20deg); /* The "Speed" angle */
        transition: all 0.3s ease;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        overflow: hidden; /* Keeps the hover effect inside */
    }

    /* First and Last item aesthetic fixes */
    .menu-desktop > li:first-child {
        border-radius: 6px 0 0 6px;
        border-left: none;
    }
    .menu-desktop > li:last-child {
        border-radius: 0 6px 6px 0;
        border-right: none;
    }

    /* 3. The Links (Un-skewed text) */
    .menu-desktop > li > a {
        display: block;
        padding: 12px 30px;
        color: #e0e0e0; /* Light grey text */
        font-family: var(--font-heading); /* Use site font */
        font-weight: 700; /* Bold for impact */
        font-size: 0.95rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        text-decoration: none;
        
        /* Counter-skew the text so it stands straight */
        transform: skewX(20deg); 
        position: relative;
        z-index: 2; /* Keep text above the hover background */
        transition: color 0.2s ease;
    }

    /* 4. The "Overtake" Hover Effect */
    /* Create a pseudo-element that slides in */
    .menu-desktop > li::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--color-primary); /* Your Red color (#e10600) */
        
        /* Start position: hidden to the left and skewed */
        transform: translateX(-101%) skewX(0deg); 
        transition: transform 0.3s cubic-bezier(0.2, 1, 0.3, 1); /* Fast "race car" easing */
        z-index: 1;
    }

    /* Trigger animation on hover */
    .menu-desktop > li:hover::before,
    .menu-desktop > li.current-menu-item::before,
    .menu-desktop > li.current_page_item::before {
        transform: translateX(0); /* Slide in to fill */
    }

    /* Change text color on hover/active */
    .menu-desktop > li:hover > a,
    .menu-desktop > li.current-menu-item > a {
        color: #ffffff;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }

    /* 5. Special "Live" Indicator (Optional) */
    /* If you have a menu item specifically for 'Live' betting, this adds a pulse */
    .menu-desktop > li.menu-item-live > a::after {
        content: '';
        display: inline-block;
        width: 6px;
        height: 6px;
        background-color: #00d2be; /* Cyan/Teal accent */
        border-radius: 50%;
        margin-left: 8px;
        box-shadow: 0 0 8px #00d2be;
        animation: pulse-live 1.5s infinite;
        vertical-align: middle;
    }

    @keyframes pulse-live {
        0% { opacity: 1; transform: scale(1); }
        50% { opacity: 0.5; transform: scale(1.2); }
        100% { opacity: 1; transform: scale(1); }
    }
}

/* =========================================
   RESPONSIVE VISIBILITY & MOBILE LOGIC
   ========================================= */

/* DESKTOP RULES (Screens wider than 768px) */
@media (min-width: 769px) {
    /* Hide all mobile-specific elements on desktop */
    #mobile-menu,
    .mobile-menu-overlay,
    .mobile-controls {
        display: none !important;
    }
}

/* MOBILE RULES (Screens 768px and smaller) */
@media (max-width: 768px) {
    /* Hide the desktop menu on mobile */
    .site-nav--desktop {
        display: none;
    }

    /* 1. Default Mobile Menu State: Hidden & Full Screen */
    #mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh; /* Full viewport height */
        background-color: #1e1e1e; /* Match theme dark background */
        z-index: 2000; /* Ensure it overlays everything */
        padding-top: 60px; /* Space for close button */
        
        /* Hiding mechanism */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-20px);
        transition: all 0.3s ease-in-out;
    }

    /* 2. Active State: Visible (triggered by JS '.is-open') */
    #mobile-menu.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
    
    /* Mobile Menu Link Styling */
    .mobile-menu__inner ul {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: center;
    }

    .mobile-menu__inner li a {
        display: block;
        padding: 20px;
        font-family: var(--font-heading);
        font-size: 1.2rem;
        font-weight: 700;
        color: #ffffff;
        text-transform: uppercase;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-decoration: none;
    }

    /* Close button styling fix */
    .mobile-menu__close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        color: white;
        font-size: 2rem;
        cursor: pointer;
    }

    /* =========================================
       F1 "TELEMETRY" BURGER BUTTON
       ========================================= */

    /* 1. Header Layout Fix for Mobile */
    /* Ensures the button sits correctly on the right side */
    .top-navigation-bar {
        display: flex;
        justify-content: flex-end; /* Push content to right */
        align-items: center;
        width: 100%;
        height: 100%;
        padding-right: 15px; /* Safety padding */
    }

    /* 2. Container Styling */
    .mobile-controls {
        display: block !important; /* Force visible on mobile */
        z-index: 2005; /* Must be higher than the menu overlay (2000) */
        position: relative; /* Keep in flow */
    }

    /* 3. The Button Itself - "Click Area" */
    .burger {
        appearance: none;
        background: transparent;
        border: none;
        cursor: pointer;
        width: 50px; /* Big touch target */
        height: 50px;
        padding: 12px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end; /* Align lines to the RIGHT for speed look */
        gap: 6px; /* Spacing between lines */
        -webkit-tap-highlight-color: transparent; /* Remove blue highlight on tap */
        transition: transform 0.3s ease;
    }
    
    /* Optional: Add a subtle press effect */
    .burger:active {
        transform: scale(0.9);
    }

    /* 4. The Lines - Staggered "Aero" Design */
    .burger span {
        display: block;
        height: 3px; /* Thin, techy lines */
        border-radius: 4px;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Bouncy "mechanical" animation */
    }

    /* Top Line: Full width, White */
    .burger span:nth-child(1) {
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.3); /* Slight glow */
    }

    /* Middle Line: Shorter, Red Accent (Like a brake light) */
    .burger span:nth-child(2) {
        width: 60%; /* Staggered length */
        background-color: var(--color-primary); /* F1 Red */
    }

    /* Bottom Line: Medium, White */
    .burger span:nth-child(3) {
        width: 80%; /* Staggered length */
        background-color: #ffffff;
    }

    /* =========================================
       ACTIVE STATE (MENU OPEN)
       ========================================= */

    /* The "Pit Stop" Transformation */
    
    /* Top line rotates 45deg */
    .burger.is-active span:nth-child(1) {
        width: 100%; /* Reset width */
        transform: translateY(9px) rotate(45deg);
        background-color: #ffffff;
    }

    /* Middle line zooms away (DRS Open effect) */
    .burger.is-active span:nth-child(2) {
        width: 0;
        opacity: 0;
        transform: translateX(20px); /* Fly to the right */
    }

    /* Bottom line rotates -45deg and glows RED */
    .burger.is-active span:nth-child(3) {
        width: 100%; /* Reset width */
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--color-primary); /* Turn red */
        box-shadow: 0 0 10px var(--color-primary); /* Neon red glow */
    }
}

/* =========================================
   F1 PRO FOOTER DESIGN
   ========================================= */

/* 1. Footer Container */
.site-footer {
    background-color: #0f0f0f;
    color: #cccccc;
    padding: 40px 20px 20px; /* Reduced top padding from 60px to 40px */
    border-top: 4px solid var(--color-primary);
    margin-top: auto;
    font-size: 0.9rem;
}

/* 2. Grid Layout (4 Columns) */
.footer-container {
    max-width: 1200px; 
    width: 100%;
    margin: 0 auto;
    
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px; /* Reduced gap slightly */
    margin-bottom: 30px;
}

/* 3. Headings (Yellow/Accent) */
.footer-heading {
    color: var(--color-accent-alt); /* Using your Orange/Yellow accent */
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

/* 4. Lists & Links */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 12px;
    padding-left: 0;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

/* The Red Bullet Point */
.footer-list li::before {
    content: '•'; /* Simple bullet */
    color: var(--color-primary); /* Red */
    font-size: 1.2em;
    line-height: 1.2; /* Align with text */
}

/* Links inside footer */
.footer-list a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-list a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Special styling for BZgA link (Help) */
.footer-list a[href*="bzga"] {
    color: var(--color-primary);
    font-weight: bold;
}

/* 5. Copyright Bar */
.footer-bottom {
    max-width: var(--content-width);
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

/* =========================================
   FOOTER RESPONSIVE (Mobile)
   ========================================= */

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr; /* 1 column on phone */
        gap: 30px;
    }
    
    .site-footer {
        padding-top: 40px;
    }
}

body.home .menu-item-home,
body.home li.current-menu-item.menu-item-home {
  display: none !important;
}

/* =========================================
   SITE HEADER & LOGO STYLES
   ========================================= */

/* 1. Ensure Header Layout is Correct */
.site-header {
    /* Make sure header holds its shape */
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #2d2d2d 100%);
    border-bottom: 3px solid var(--color-primary);
    padding: 0 20px; /* Add some side padding */
}

/* 2. Navigation Bar Layout (Flexbox) */
.top-navigation-bar {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Logo left, Menu/Burger right */
    height: 70px; /* Fixed height for stability */
    max-width: var(--wide-width);
    margin: 0 auto;
}

/* 3. THE LOGO DESIGN */
.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
    transform: skewX(-10deg); /* F1 speed tilt */
    transition: transform 0.3s ease;
}

.site-logo:hover {
    /* Slight boost on hover, like hitting gas */
    transform: skewX(-10deg) scale(1.02); 
}

/* The "F1" part */
.logo-f1 {
    font-family: var(--font-heading);
    font-weight: 900; /* Extra Ultra Bold */
    font-size: 2.2rem;
    letter-spacing: -2px; /* Tightly packed for speed */
    margin-right: 8px;
    
    /* The F1 Hybrid Gradients */
    background: linear-gradient(135deg, #ffffff 30%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

/* Optional: Add a small red speed streak under F1 */
.logo-f1::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    transform: skewX(20deg); /* Counter-skew for speed effect */
}

/* The "WETT TIPPS" part */
.logo-text {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column; /* Stack words if needed, or keep row */
    justify-content: center;
    border-left: 2px solid var(--color-primary); /* Tech divider line */
    padding-left: 10px;
    height: 30px; /* Match height to F1 part */
}


@media (max-width: 480px) {
    .logo-f1 {
        font-size: 1.8rem;
    }
    .logo-text {
        font-size: 0.85rem;
        padding-left: 8px;
    }
    .top-navigation-bar {
        height: 60px;
    }
}

.hero-image {
    width: 100%;
    max-width: var(--content-width);
    aspect-ratio: 21 / 9;
    margin: 0 auto 2rem; 
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden; 
}

.hero-image img {
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    display: block;
}
.articles-sitemap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.sitemap-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sitemap-header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sitemap-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin: 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.article-card {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    overflow: hidden;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-left: unset !important;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.0) 100%);
    z-index: 1;
}

.article-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.article-card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
    color: #fff;
    padding: 1rem;
}

.article-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.article-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
}

.article-link:hover {
    color: #64b5f6;
}

.article-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    opacity: 0.9;
}

.article-children {
    margin-top: auto;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.children-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.child-item {
    margin: 0;
}

.child-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s;
}

.child-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateX(5px);
}

.child-thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.child-title {
    font-size: 0.95rem;
    font-weight: 500;
}

.grandchildren-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 52px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.grandchild-item {
    margin: 0;
}

.grandchild-item a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s;
    display: block;
}

.grandchild-item a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.article-card-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.article-date {
    font-style: italic;
}

.has-thumbnail {
    display: flex;
    align-items: center;
    gap: 5px;
}

.has-thumbnail svg {
    opacity: 0.8;
    transition: opacity 0.3s;
}

.has-thumbnail:hover svg {
    opacity: 1;
}

.sitemap-footer {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.articles-count,
.last-updated {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #64b5f6;
}

.no-articles {
    text-align: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    margin: 40px 0;
}

.no-articles p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

@media (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .articles-sitemap {
        padding: 30px 15px;
    }
    
    .sitemap-header h1 {
        font-size: 2.2rem;
    }
    
    .sitemap-header p {
        font-size: 1.1rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-card {
        min-height: 350px;
    }
    
    .article-card-content {
        padding: 25px;
    }
    
    .article-title {
        font-size: 1.6rem;
    }
    
    .footer-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .sitemap-header h1 {
        font-size: 1.8rem;
    }
    
    .article-card {
        min-height: 320px;
    }
    
    .article-card-content {
        padding: 20px;
    }
    
    .article-title {
        font-size: 1.4rem;
    }
    
    .child-link {
        padding: 6px 10px;
    }
    
    .child-thumbnail {
        width: 35px;
        height: 35px;
    }
}

.article-card:not([style*="background-image"]) {
    background: linear-gradient(135deg, #ffffff 0%, #000000 100%);
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.4s; }
.article-card:nth-child(5) { animation-delay: 0.5s; }
.article-card:nth-child(n+6) { animation-delay: 0.6s; }

.article-card {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .article-card {
        background-attachment: scroll;
    }
}