:root {
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --color-accent: red; /* A vibrant color */
  --bg-color: #000000;
  --text-primary: #ffffff;

  /* Default values for dynamic glass panel properties to satisfy linters */
  --bg-image: none;
  --blur-amount: 15px;
  --mask: none;
}

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

body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--text-primary); /* Use variable */
    background: var(--bg-color); /* Use variable */
    min-height: 100vh;
    overflow-y: auto; /* Allow scrolling by default */
}

body.light-theme {
    --bg-color: #f0f0f0;
    --text-primary: #1a1a1a;
    background-color: var(--bg-color);
    color: var(--text-primary);
}
body.light-theme .section {
    background-color: #fff;
}

body.light-theme .blog-card {
    background: #fff;
    color: #000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
body.light-theme .blog-card h3,
body.light-theme .blog-card-meta, 
body.light-theme .blog-card-excerpt,
body.light-theme .read-more-link {
    color: #000; /* Force black text in cards */
}
body.light-theme .blog-card-meta, 
body.light-theme .blog-card-excerpt {
    color: #444;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 1rem;
    padding: 0;
    display: flex;
    align-items: center;
    color: inherit;
}

.theme-toggle-track {
    position: relative;
    width: 52px;
    height: 28px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.3s, border-color 0.3s;
}

body.light-theme .theme-toggle-track {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.2);
}

.theme-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}

/* Dark Mode: Thumb nach rechts, dunkler Hintergrund */
body:not(.light-theme) .theme-toggle-thumb {
    transform: translateX(24px);
    background: #333;
}

/* Vollbild-Scroll-Landingpage */
.page-wrapper {
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    /* If page-wrapper is used, it should control the scroll, so we might need to hide body scroll for that specific page or ensure page-wrapper covers it.
       However, for standard pages like Impressum, we DON'T use page-wrapper in the same way.
       Let's make sure .page-wrapper handles its own scroll context.
    */
}

.section {
    position: relative;
    height: 100vh;
    scroll-snap-align: start;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    /* Enable flex layout for the section itself to support the inner container */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Ensure content doesn't spill out visually */
}


/* Standard-Overlay deaktivieren */
/*.section::before {*/
/*    display: none;*/
/*}*/

/* Utility to remove overlay for light sections */
.section.no-overlay::before {
    display: none;
}

/* Milchglas-Block (The Header) */
.glass-panel {
    position: fixed;
    top: 10px;
    left: 2vw;
    width: 96vw;
    padding: 1rem 2rem; /* Reduced padding for header use */
    z-index: 10;

    /* Milchglaseffekt */
    background: rgba(0, 0, 0, 0.35);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);

    color: #ffffff;
    
    /* Layout for Header Content */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s, color 0.3s;
}

.glass-panel.dark-mode {
    background: rgba(255, 255, 255, 0.35);
    color: #000000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Navigation Links inside Glass Panel */
.glass-panel nav {
    display: flex;
    align-items: center;
}

.glass-panel nav a {
    text-decoration: none; /* Default for all nav links */
    color: #ffffff;
    font-weight: 500;
    margin-left: 1.5rem;
    font-size: 0.95rem;
    transition: opacity 0.3s;
}

.glass-panel nav a:hover {
    opacity: 0.8;
}

.glass-panel.dark-mode nav a {
    color: #000000;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 20;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .page-wrapper {
        height: auto;
        scroll-snap-type: none;
    }

    body {
        overflow-y: auto;
    }

    .section {
        height: auto;
        min-height: auto;
        scroll-snap-align: none;
        overflow: visible;
        padding-bottom: 0;
    }

    .section[id*="hero"] {
        height: auto;
        min-height: 100vh;
        justify-content: flex-start; /* Ensure top-to-bottom rendering */
        padding-top: 100px; /* Ensure header doesn't cover content */
        padding-bottom: 2rem;
    }

    .hero-content-wrapper {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: auto;
        margin: auto 1rem 1rem 1rem;
    }

    .hero-content-wrapper .glass-content {
        padding: 1rem;
    }

    .hero-content-wrapper .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-content-wrapper .hero-text {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }

    .hero-content-wrapper .hero-socials-container {
        gap: 0.75rem;
    }

    .glass-panel nav.main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        width: auto;
        height: auto;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem 1.5rem;
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.2s ease, opacity 0.2s ease;
        z-index: 15;
        border-radius: 8px;
        margin-top: 0.25rem;
    }

    body.light-theme .glass-panel nav.main-nav {
        background: rgba(255, 255, 255, 0.95);
    }

    .glass-panel nav.main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu-toggle {
        color: #fff !important;
    }

    body.light-theme .mobile-menu-toggle {
        color: #222 !important;
    }

    .glass-panel nav a {
        margin: 0.4rem 0;
        font-size: 1.1rem;
        white-space: nowrap;
        color: #ffffff !important;
    }

    body.light-theme .glass-panel nav a {
        color: #222 !important;
    }

    .theme-toggle {
        margin-left: 0;
        margin-top: 0.5rem;
        color: #ffffff !important;
    }

    body.light-theme .theme-toggle {
        color: #222 !important;
    }

    /* Mobile: Vertical Stack for Blog Posts */
    .horizontal-scroll-container {
        display: grid;
        grid-template-columns: 1fr; /* Stack vertically */
        gap: 1.5rem;
        padding: 1rem;
        overflow-x: visible;
    }



    .blog-card {
        min-width: 0;
        width: 100%;
        max-height: none;
        margin-bottom: 0;
    }

    /* Shrink card elements on mobile */
    .blog-card-image {
        height: 140px;
    }

    .blog-card-content {
        padding: 1rem;
    }

    .blog-card h3 {
        font-size: 1rem;
    }


    .content-section-inner {
        padding: 2rem 5%;
        /* justify-content: flex-start; */ /* Keep center but reduce padding */
        padding-top: 6rem; /* Ensure content starts below header */
    }
}

/* --- Animated Link Styles --- */
a.animated-link {
    position: relative;
    text-decoration: none;
    overflow: hidden;
    display: inline-block; /* Default for animated text links */
}

a.animated-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px; /* Thickness of the underline */
    background-color: var(--color-accent);
    transition: width 0.3s ease-out;
}

a.animated-link:hover::after {
    width: 100%;
}

/* --- Footer Nav Link Specifics (re-adding display:block for vertical stack) --- */
.footer-nav a { /* Footer nav links */
    display: block; /* Make them block to stack vertically */
    margin-bottom: 0.5rem; /* Add some spacing between links */
    color: #ffffff; /* Ensure they are white on dark footer background */
}
.footer-nav a:hover {
    color: var(--color-accent); /* Use accent color on hover for footer links */
}

/* CTA Button Style (Global) */
.button, .glass-panel .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    background: radial-gradient(
            circle at top left,
            rgba(255, 255, 255, 0.25),
            rgba(255, 255, 255, 0.05)
    );
    backdrop-filter: inherit;
    -webkit-backdrop-filter: inherit;
    margin-left: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.button:hover, .glass-panel .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

.glass-panel.dark-mode .button {
    color: #000000;
    border-color: rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.05);
}

.glass-panel.dark-mode .button:hover {
    background: rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

.site-logo {
    height: 45px;
    width: auto;
    border-radius: 8px;
    display: block; /* Remove extra space from inline images */
}

/* Hero Content (Text aligned left) */
#home-hero {
    justify-content: flex-end;
    align-items: flex-start;
    padding-bottom: 2rem;
}

.hero-content-wrapper {
    margin-left: 2vw;
    text-align: left;
    max-width: 800px;
    width: 90%;
    z-index: 1;
}

/* Mobile Querformat: Box kompakter */
@media (orientation: landscape) and (max-height: 500px) {
    .section[id*="hero"] {
        height: auto;
        min-height: 100vh;
        padding-top: 80px;
    }

    .hero-content-wrapper .glass-content {
        padding: 0.75rem 1rem;
    }

    .hero-content-wrapper .hero-title {
        font-size: 1.4rem;
        margin-bottom: 0.3rem;
    }

    .hero-content-wrapper .hero-text {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }

    .hero-content-wrapper .hero-socials-container {
        padding: 0.4rem 1rem;
        gap: 0.75rem;
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-align: left;
    color: #000; /* Dark Mode: schwarze Schrift auf hellem Bild */
}

.hero-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: rgba(0, 0, 0, 0.9); /* Dark Mode: schwarze Schrift */
}

/* Light Mode: weiße Schrift */
body.light-theme .hero-title {
    color: #fff;
}
body.light-theme .hero-text {
    color: rgba(255, 255, 255, 0.9);
}

/* Hero Socials Container (Elevated & Darker Gradient) */
.hero-socials-container {
    font-size: 1.5rem;
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    /* Gradient: Stronger opacity on left, fading to right */
    background: linear-gradient(to right, rgba(200, 200, 200, 80%) 0%, rgba(0, 0, 0, 0.1) 50%);
    padding: 0.8rem 1.5rem;
    border-radius: 4px; /* Pill shape */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Elevation shadow */
    backdrop-filter: blur(10px); /* Subtle blur inside the pill */
    -webkit-backdrop-filter: blur(5px);
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000; /* Default icon color (black works on the light gradient pill) */
}

/* Responsive Grid for Blog Posts */
.horizontal-scroll-container {
    width: 100%;
    max-width: 1400px; /* Limit max width for large screens */
    margin: 0 auto;
    padding: 2rem 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Exactly 4 columns */
    gap: 2rem;
    /* Remove scroll properties */
    overflow: visible; 
}

/* Blog Card Styles */
.blog-card {
    /* Remove flex sizing from horizontal scroll */
    width: 100%; /* Take full width of grid cell */
    /* Keep existing visual styles */
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s;
    color: #fff;
    text-align: left;
    height: auto; /* Allow variable height based on content */
    /* Removed min-height to let content decide */
    max-height: 85vh; /* Increased cap height to avoid exceeding page */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1200px) {
    .horizontal-scroll-container {
        grid-template-columns: 1fr; /* Stack vertically on tablets and mobile */
        padding: 2rem 2rem; /* Add side padding */
    }
}

.blog-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out; /* Add transition for smooth effect */
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05); /* Scale up the image on hover */
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

body.light-theme .placeholder-image {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.placeholder-svg {
    width: 100%;
    height: 100%;
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: flex-start; /* Align content to the top */
}

.blog-card h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 1rem;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 15; /* Increased from 3 to 15 to show full excerpt */
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Removed flex-grow to prevent forced expansion */
    flex-grow: 0; 
}

.blog-card-footer {
    margin-top: auto;
}

.read-more-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s;
}

.read-more-link:hover {
    opacity: 0.8;
}

/* Helper for content sections */
.content-section-inner {
    /* Changed from absolute positioning to relative/flex to prevent overlap issues */
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center */
    padding: 4rem 5%; /* Add vertical padding to avoid hitting edges */
}

/* Form Styles - Adapted for Dark/Light Mode */
.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.form-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Adaptive border */
    padding-bottom: 1rem;
}
body.light-theme .form-tabs {
    border-bottom: 1px solid #ddd;
}

.tab-button {
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.6); /* Dark mode default */
    transition: color 0.2s, border-bottom 0.2s;
    border-bottom: 2px solid transparent;
}
body.light-theme .tab-button {
    color: #888;
}

.tab-button.active {
    color: #fff; /* Dark mode active */
    border-bottom: 2px solid #fff;
}
body.light-theme .tab-button.active {
    color: #000;
    border-bottom: 2px solid #000;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary); /* Use variable */
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Dark mode border */
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05); /* Dark mode bg */
    color: #fff; /* Dark mode text */
    transition: border-color 0.2s, background 0.2s;
}

/* Light Theme Overrides for Inputs */
body.light-theme .form-group input,
body.light-theme .form-group textarea,
body.light-theme .form-group select {
    border: 1px solid #ddd;
    background: #f9f9f9;
    color: #333;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent); /* Use accent color */
    background: rgba(255, 255, 255, 0.1); /* Slightly lighter in dark mode */
    color: #fff;
}

body.light-theme .form-group input:focus,
body.light-theme .form-group textarea:focus,
body.light-theme .form-group select:focus {
    border-color: #000;
    background: #fff;
    color: #000;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.3rem;
}

.checkbox-group label {
    color: var(--text-primary);
}

/* Submit Button */
.submit-button {
    background: #fff; /* Dark mode button */
    color: #000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.submit-button:hover {
    background: #ddd;
    transform: translateY(-1px);
}

body.light-theme .submit-button {
    background: #000;
    color: #fff;
}
body.light-theme .submit-button:hover {
    background: #333;
}

/* Glass Test Page Styles */
.glass-test-box {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 2rem;
    border-radius: 24px;
    min-height: 200px;
}

/* 1. Current Production */
.variant-current::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px) saturate(120%);
    -webkit-backdrop-filter: blur(15px) saturate(120%);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-mask-image: radial-gradient(ellipse at center, black 70%, transparent 100%);
    mask-image: radial-gradient(ellipse at center, black 70%, transparent 100%);
}

/* 2. No Mask */
.variant-no-mask::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px) saturate(120%);
    -webkit-backdrop-filter: blur(15px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 3. Inset Shadow (Fake Fade) */
.variant-inset-shadow::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px) saturate(120%);
    -webkit-backdrop-filter: blur(15px) saturate(120%);
    box-shadow: inset 0 0 40px 20px rgba(255,255,255,0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 4. Solid Fallback */
.variant-solid::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 24px;
    background: rgba(50, 50, 50, 0.8); /* Dark semi-opaque */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 5. Force GPU */
.variant-force-gpu::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px) saturate(120%);
    -webkit-backdrop-filter: blur(15px) saturate(120%);
    will-change: transform, backdrop-filter;
    transform: translate3d(0,0,0);
    -webkit-transform: translate3d(0,0,0);
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-mask-image: radial-gradient(ellipse at center, black 70%, transparent 100%);
    mask-image: radial-gradient(ellipse at center, black 70%, transparent 100%);
}

/* 6. Old School Blur */
.variant-old-school::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 24px;

    /* Use the variable passed from inline style */
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Critical for alignment */

    filter: blur(15px);
    /* Darken it a bit */
    box-shadow: inset 0 0 0 2000px rgba(255, 255, 255, 0.15);

    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 7. Proposed Solution (Real DOM Element) */
.glass-panel-component {
  position: relative;
  isolation: isolate; /* Creates stacking context */
  color: #fff;
  border-radius: 24px;
}

.glass-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 24px;

  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(var(--blur-amount, 15px)) saturate(120%);
  -webkit-backdrop-filter: blur(var(--blur-amount, 15px)) saturate(120%);

  mask-image: var(--mask, none);
  -webkit-mask-image: var(--mask, none);

  /* Ensure compositing layer */
  will-change: backdrop-filter;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

/* Dark mode variant for proposed solution */
@media (prefers-color-scheme: dark) {
  /* Adjust if needed */
}

/* Sponsor Images Responsive */
.sponsor-item img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Fahrer Grid - Vertical Stack on Mobile */
.fahrer-grid {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 1200px) {
    .fahrer-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 2rem 2rem;
    }
}

@media (max-width: 768px) {
    .fahrer-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .fahrer-grid .blog-card {
        min-width: 0;
        width: 100%;
        max-height: none;
        margin-bottom: 1rem;
    }

    .content-section-inner {
        padding: 2rem 5%;
        /* justify-content: flex-start; */ /* Keep center but reduce padding */
        padding-top: 6rem; /* Ensure content starts below header */
    }
}

/* Split Section Layout (TBZ Page) */
.split-section {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
}

.split-image-container {
    flex: 0 0 50%;
    height: 100%;
    overflow: hidden;
}

.split-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.split-content-container {
    flex: 0 0 50%;
    padding: 4rem 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .split-section {
        flex-direction: column !important;
        height: auto;
    }

    .split-section.reverse {
        flex-direction: column-reverse !important;
    }

    .split-image-container {
        flex: 0 0 auto;
        width: 100%;
        height: 300px; /* Fixed height for images on mobile */
    }

    .split-content-container {
        flex: 0 0 auto;
        width: 100%;
        padding: 2rem 1.5rem;
    }
}

/* TBZ Hero specific desktop adjustment */
#tbz-hero {
    justify-content: flex-end;
    align-items: flex-end;
    padding-bottom: 2rem;
    padding-right: 2vw;
}
/* Sponsor Styles */
.sponsor-item {
    display: block;
    height: 180px; /* Outer element restricts height */
    width: auto;
    transition: transform 0.3s;
}

.sponsor-item:hover {
    transform: scale(1.05);
}

.sponsor-item img {
    height: 100%;
    width: auto;
    object-fit: contain; /* Ensure image fits within the height */
    display: block;
}
/* App.css - Reset */
#root {
    max-width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
}

body {
  font-family: var(--font-main);
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden; /* Prevent horizontal scroll from full-width sections */
}

main {
  flex: 1;
  max-width: 1200px; /* Slightly reduced max-width for tighter feel */
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eaeaea;
  padding: 1rem 2rem; /* Reduced padding */
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  /*margin-left: 2rem;*/
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  position: relative;
  transition: color 0.3s;
}

/* Restore Link Hover Animation */
nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--title-gradient-start); /* Using start of title gradient */
  transition: width 0.3s ease-out;
  box-shadow: 0 0 8px rgba(var(--title-gradient-start), 0.5); /* Subtle glow */
}

nav a:hover {
  color: var(--title-gradient-end);
}

nav a:hover::after {
  width: 100%;
}


/* Typography & Global Gradients */
h1, h2, h3, h4, h5, h6, .wp-block-heading, .wp-block-heading a {
  color: var(--text-primary);
  line-height: 1.3;
  font-weight: 800;
}

/* Apply the requested gradient style globally to all titles */
h1, h2, h3, .wp-block-heading a {
  background: linear-gradient(90deg, var(--title-gradient-start), var(--title-gradient-end));
  -webkit-background-clip: text;
  /*-webkit-text-fill-color: black;*/
  text-decoration: none;
  display: inline-block;
}

h1 {
  font-size: 3rem; /* Reduced size */
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
  text-align: center; /* Centered Title */
  width: 100%;
}

h2 {
  font-size: 2rem; /* Reduced size */
  margin-bottom: 1.5rem;
}

/* Center the paragraph immediately following the main H1 (Hero Text) */
.wordpress-content > .wp-block-group:first-child p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem; /* Added bottom margin */
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Card / Columns Styling */
.wp-block-columns {
  display: flex;
  flex-wrap: nowrap; /* Force one row on desktop */
  margin-bottom: 1.5rem;
  align-items: stretch; /* Ensure equal height columns */
  justify-content: center; /* Center cards if not full row */
}

.wp-block-column {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: var(--card-shadow); /* Use the new card-shadow variable */
  flex: 0 1 auto; /* Allow content to determine width, shrink if needed */
  min-height: 245px; /* Fixed height for the card */
  display: flex;
  flex-direction: column;
  text-align: center; /* Center content within the card */
    padding: 10px;
    margin: 10px;
}

.wp-block-column:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--title-gradient-start);
}

/* Images in Cards */
.wp-block-column figure { /* Target the figure containing the image */
    margin: 0 auto 1rem; /* Center figure and provide bottom margin */
    padding: 0;
    flex-shrink: 0; /* Prevent image from shrinking */
    max-width: 100%; /* Ensure figure does not exceed card width */
}

.wp-block-column img {
  border-radius: 8px; /* Rounded corners for images in cards */
  width: auto; /* Allow image to size naturally */
  /*max-width: 100%; !* Constrain image to its container *!*/
  height: 160px; /* Fixed height for image area for consistent spacing */
  object-fit: contain; /* Ensure image fits without cropping and doesn't overlap */
  display: block; /* Remove extra space below image */
  background-color: var(--surface-color); /* Background for images with transparency */
}

.wp-block-column p {
    flex-grow: 1; /* Allow paragraph to take up remaining space */
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: left; /* Keep text left aligned */
}


/* Buttons */
/*.button, .wp-block-button__link {*/
/*  display: inline-block;*/
/*  background: linear-gradient(90deg, var(--title-gradient-start), var(--title-gradient-end));*/
/*  color: #fff;*/
/*  padding: 0.8rem 2rem;*/
/*  text-decoration: none;*/
/*  font-weight: 600;*/
/*  border-radius: 50px;*/
/*  transition: all 0.3s;*/
/*  box-shadow: 0 4px 6px rgba(50,50,93,0.11), 0 1px 3px rgba(0,0,0,0.08);*/
/*  border: none;*/
/*  cursor: pointer;*/
/*  font-size: 0.9rem;*/
/*  text-transform: uppercase;*/
/*  letter-spacing: 1px;*/
/*}*/

.button:hover, .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 14px rgba(50,50,93,0.1), 0 3px 6px rgba(0,0,0,0.08);
  opacity: 0.9;
  color: #fff;
}

.wp-block-buttons {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}


/* Redesigned Sections: Digitale Transformation & Mission */
.digital-transformation-section, 
.mission-vision-section {
  padding: 4rem 2rem;
  position: relative;
  /* Correct full-width breakout without horizontal scroll */
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  margin-bottom: 0rem;
}

.digital-transformation-section::before, 
.mission-vision-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.glass-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 3rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  max-width: 900px;
  width: 90%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.section-image {
    display: none;
}

.intro-text {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #444;
}

.bullet-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.bullet-list li {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.bullet-list li::before {
    content: '•';
    color: var(--title-gradient-end);
    font-size: 2rem;
    line-height: 0;
    margin-right: 0.8rem;
}

.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.two-column-grid p {
    color: #444;
    font-size: 1rem;
}

/* Footer Styling */
.site-footer {
  background-color: #222;
  color: var(--text-secondary);
  padding-top: 4rem;
  padding-bottom: 2rem; /* Add bottom padding */
  margin-top: 0;
  width: 100%; 
  position: relative;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr; /* Explicit 4-column grid */
  gap: 2rem;
  align-items: start; /* Align content to the top */
}

.footer-section {
    text-align: left; /* Ensure left alignment */
}

.footer-section img {
    vertical-align: top; /* Align image to the top */
    margin-bottom: 0.5rem; /* Space below logo */
}

.tagline {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-style: italic;
    font-family: 'Times New Roman', serif;
}

.footer-nav {
    margin-top: 0.5rem; /* Align nav links with tagline */
}

.footer-nav a {
    color: var(--text-secondary);
    display: block; /* Each link on its own line */
    margin-bottom: 0.5rem; /* Spacing between links */
    text-align: left; /* Ensure left alignment */
}
.footer-nav a:hover {
    color: var(--title-gradient-end);
}

.footer-bottom {
    color: var(--text-secondary);
    font-size: 0.8rem; /* Smaller copyright text */
    padding: 0.1rem 2.0rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .wp-block-columns {
    flex-direction: column; /* Stack columns */
    flex-wrap: wrap; /* Allow wrapping */
  }
  
  .wp-block-column {
      min-width: unset; /* Remove min-width on mobile */
      width: 100%; /* Full width on mobile */
      box-sizing: border-box;
  }
  
  .glass-card {
      padding: 1.5rem;
  }
  
  .bullet-list, .two-column-grid {
      grid-template-columns: 1fr;
  }
  
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  
  /* Reset full-width sections for mobile, use main's padding */
  .digital-transformation-section, 
  .mission-vision-section,
  .site-footer {
      width: 100%;
      margin-left: auto;
      margin-right: auto;
      left: auto;
      right: auto;
  }
  
  .footer-content {
      grid-template-columns: 1fr; /* Stack footer columns on mobile */
      gap: 1.5rem;
  }
}
