:root {
    /* Main Theme Variables (Light Mode Default) */
    --color-bg-dark: #F4F7F6;
    --color-bg-alt: #EAEGEF;
    --color-bg-light: #FFFFFF;
    --color-white: #003333; /* Dark green for text in light mode */
    --color-black: #FFFFFF;
    --color-text-muted: #5A6969;
    --color-primary: #CCFF00; /* Reverted to neon green */
    --color-accent: #CCFF00;  /* Reverted to neon green */
    --color-text-accent: #003333; /* Strict: Only use the dark green #003333 instead of new green tones */
    --color-accent-hover: #b4e600;
    --elevation-shadow: 0 4px 14px rgba(0, 51, 51, 0.15);
    
    /* Semantic Section Backgrounds */
    --bg-nav: rgba(255, 255, 255, 0.85);
    --bg-hero: radial-gradient(ellipse at top, rgba(204, 255, 0, 0.3) 0%, #F4F7F6 60%);
    --bg-vision: #DFE6E6;
    --bg-folgen: #D4DEDE;
    --bg-card: #FFFFFF;
    
    /* Logo Filters */
    --logo-filter: brightness(0) saturate(100%) invert(10%) sepia(91%) saturate(1211%) hue-rotate(133deg) brightness(97%) contrast(108%);
    --logo-slider-filter: grayscale(100%) brightness(50%);
    --logo-slider-hover-filter: grayscale(0%) brightness(100%);

    /* Default Shadows */
    --shadow-rgb: 0, 0, 0;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Archivo Black', sans-serif;

    /* Spacing */
    --section-padding: 40px 20px; /* Reduced from 60px to maintain max 100px gaps */
    --container-max-width: 1200px;
    --border-radius-lg: 32px;
    --border-radius-md: 20px;
    --border-radius-sm: 12px;
}

[data-theme="dark"] {
    --color-bg-dark: #003333;
    --color-bg-alt: #002626;
    --color-bg-light: #F5F7F7;
    --color-white: #FFFFFF;
    --color-black: #001a1a;
    --color-text-muted: #6E6E73;
    --color-primary: #CCFF00;
    --color-accent: #CCFF00;
    --color-text-accent: #CCFF00;
    --color-accent-hover: #b4e600;
    
    /* Semantic Section Backgrounds */
    --bg-nav: rgba(0, 51, 51, 0.85);
    --bg-hero: radial-gradient(ellipse at top, rgba(204, 255, 0, 0.15) 0%, #003333 60%);
    --bg-vision: #002b2b;
    --bg-folgen: #004d4d;
    --bg-card: #002626;

    /* Logo Filters */
    --logo-filter: brightness(0) saturate(100%) invert(85%) sepia(85%) saturate(1469%) hue-rotate(19deg) brightness(109%) contrast(101%);
    --logo-slider-filter: brightness(0) saturate(100%) invert(85%) sepia(85%) saturate(1469%) hue-rotate(19deg) brightness(109%) contrast(101%);
    --logo-slider-hover-filter: grayscale(0%) brightness(100%);

    /* Default Shadows */
    --shadow-rgb: 204, 255, 0;
}

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

html {
    scroll-behavior: smooth;
}

/* Accessibility: High-Visibility Focus Rings */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Skip focused-outline for mouse users on specific buttons if desired, 
   but keep focus-visible for keyboard users */
button:focus, a:focus {
    outline: none;
}

button:focus-visible, a:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 4px;
}

body {
    font-family: var(--font-main);
    color: var(--color-white);
    line-height: 1.6;
    background-color: var(--color-bg-dark);
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

/* Page Transitions for Seamless Switch */
.content-swap-fade {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-out;
    opacity: 1;
}

.content-swap-fade.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px; /* Increased from 20px for mobile safety */
    width: 100%;
}

/* Navbar (Apple Inspo: Blur and Sticky) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--bg-nav);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    border-bottom: 1px solid rgba(var(--shadow-rgb), 0.1);
    display: flex;
    align-items: center;
    transition: background 0.3s ease, color 0.3s ease;
}

.scrolled {
    background: var(--bg-nav-scrolled, rgba(255, 255, 255, 0.95));
    box-shadow: 0 4px 20px rgba(var(--shadow-rgb), 0.1);
    border-bottom: 1px solid rgba(var(--shadow-rgb), 0.1);
}

.scrolled .nav-links a, .scrolled .menu-items a, .scrolled .util-btn {
    color: #003333 !important; /* Always dark teal since scrolled bg is white */
}

/* Force white background on scroll for mobile dark mode */
@media (max-width: 768px) {
    [data-theme="dark"] .navbar.scrolled {
        background: #FFFFFF !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    /* Ensure logo and toggles are dark on white background when scrolled in dark mode */
    [data-theme="dark"] .navbar.scrolled .logo-img {
        filter: brightness(0) saturate(100%) invert(10%) sepia(91%) saturate(1211%) hue-rotate(133deg) brightness(97%) contrast(108%) !important;
    }
    
    [data-theme="dark"] .navbar.scrolled .menu-toggle span {
        background-color: #003333 !important;
    }
}

/* Default Nav Button (Light Mode Start): Dark Green BG, Light Green Text */
#btn-mitmachen {
    background-color: #003333 !important;
    color: #CCFF00 !important; /* Explicitly Light Green */
    border: none;
    transition: all 0.3s ease;
}

/* Light Mode Scrolled: Light Green BG, Dark Green Text */
.scrolled #btn-mitmachen {
    background-color: #CCFF00 !important;
    color: #003333 !important;
}

[data-theme="dark"] #btn-mitmachen {
    /* Dark Mode Start: Light Green BG, Dark Green Text */
    background-color: #CCFF00 !important;
    color: #003333 !important;
}

/* Ensure navigation links are visible when menu is active, even if scrolled */
.nav-links.active .menu-items a, 
.nav-links.active .nav-right a {
    color: #CCFF00 !important;
}

/* Ensure menu toggle is visible against dark menu background when active */
.menu-toggle.active span {
    background-color: #CCFF00 !important;
}

[data-theme="dark"] .scrolled #btn-mitmachen {
    /* Dark Mode Scrolled: Dark Green BG, Light Green Text */
    background-color: #003333 !important;
    color: #CCFF00 !important;
}

#btn-mitmachen:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* For centering menu */
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
}

.logo-icon {
    display: none;
}

.logo-img {
    height: 44px;
    width: auto;
    display: block;
    /* Default: Dark Green filter */
    filter: brightness(0) saturate(100%) invert(10%) sepia(91%) saturate(1211%) hue-rotate(133deg) brightness(97%) contrast(108%) !important;
    transition: filter 0.3s ease;
}

/* Dark mode start position: Light Green filter for visibility */
html[data-theme="dark"] .navbar:not(.scrolled) .logo-img {
    filter: brightness(0) saturate(100%) invert(85%) sepia(85%) saturate(1469%) hue-rotate(19deg) brightness(109%) contrast(101%) !important;
}


.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.city-name {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    flex: 1;
}

.menu-items {
    display: flex;
    gap: 25px; /* Less space in between */
    margin: 0 auto; /* Natural center without overlap */
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-links a, .menu-items a {
    text-decoration: none;
    color: var(--color-text-accent); /* Updated from color-accent */
    font-size: 0.95rem;
    font-weight: 700;
    /* Bolder */
    transition: opacity 0.2s, transform 0.2s;
}

.nav-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.nav-utils {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 15px;
}

.util-btn {
    background: transparent;
    border: 1px solid rgba(var(--shadow-rgb), 0.2);
    color: var(--color-white); /* Dark green in light mode, White in dark mode */
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.util-btn:hover {
    background: rgba(var(--shadow-rgb), 0.1);
}

.scrolled .util-btn {
    background: #FFFFFF !important;
    color: #003333 !important;
    border: 1px solid rgba(0, 51, 51, 0.1) !important;
    box-shadow: 0 4px 12px rgba(0, 51, 51, 0.08) !important;
}

[data-theme="dark"] .scrolled .util-btn {
    background: #CCFF00;
    color: #003333;
    border-color: #CCFF00;
}

/* Specific filter for Logo color */
.filter-green {
    filter: var(--logo-filter);
}

.filter-light-green {
    filter: brightness(0) saturate(100%) invert(85%) sepia(85%) saturate(1469%) hue-rotate(19deg) brightness(109%) contrast(101%) !important;
}

/* Navigation Actions (Toggle & Menu) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced gap to fit language toggle */
    z-index: 3001;
}

/* Desktop-only spacing fixes: Button "Mitmachen" and Utility Toggles */
@media (min-width: 993px) {
    .nav-actions {
        margin-left: 30px; /* Space between 'Mitmachen' button and toggles */
        gap: 12px;         /* Increased internal spacing between toggles */
    }

    .timeline-heat-line {
        display: none !important;
    }

    /* Typography: Prevent line breaks for section headers */
    #folgen-von-hitze .section-header h3,
    #personas .section-header h3 {
        white-space: nowrap;
    }

    /* Hide the forced line breaks on desktop only */
    #folgen-von-hitze .section-header h3 br,
    #personas .section-header h3 br {
        display: none;
    }

    /* Force symmetrical 3-column grid for 'Warum Bäume' */
    #warum-baeume .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.nav-actions .util-btn {
    padding: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Mobile Menu Toggle (Hidden on Desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 980px;
    /* Apple-style rounded pill */
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center; /* Center-align text in all buttons */
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #003333 !important; /* Forces dark green text on standard button */
    font-weight: 700;
    box-shadow: 0 4px 14px 0 rgba(var(--shadow-rgb), 0.3);
}

/* Lightmode Text Shadow for Green Accents */
:not([data-theme="dark"]) .text-accent,
:not([data-theme="dark"]) .btn-primary,
:not([data-theme="dark"]) .step-number {
    text-shadow: 0 1px 2px rgba(0, 51, 51, 0.1);
}

.scrolled .btn-primary {
    background-color: #003333 !important;
    color: var(--color-accent) !important;
}

/* Removed: #btn-mitmachen { color: #003333 !important; } */

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    color: #003333 !important;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--shadow-rgb), 0.4);
}

.scrolled .btn-primary:hover {
    background-color: var(--color-text-accent) !important;
    color: #003333 !important;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
    text-align: center;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-bg-dark) !important;
    transform: scale(1.05) translateY(-2px);
}

[data-theme="dark"] .btn-outline:hover {
    color: var(--color-bg-dark) !important;
}

/* Logo Slider */
.logo-slider {
    padding: 20px 0;
    background: var(--color-bg-dark);
    overflow: hidden;
    position: relative;
    margin: -20px auto; /* Centered and pulled closer */
    max-width: var(--container-max-width);
    padding-left: 20px;
    padding-right: 20px;
}

.logo-track {
    display: flex;
    gap: 40px; /* Reduced from 80px */
    width: max-content;
    animation: scroll 60s linear infinite; /* Half speed: 60s instead of 30s */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.logo-slider img {
    height: 50px;
    width: auto;
    filter: var(--logo-filter);
    opacity: 0.9;
    transition: none;
    flex-shrink: 0;
}

.logo-slider img:hover {
    transform: none;
    filter: var(--logo-filter);
    opacity: 0.9;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hero);
    padding-top: 100px;
    padding-bottom: 40px;
    position: relative;
    overflow: hidden; /* Prevent massive image from causing horizontal scroll */
    margin-bottom: 0 !important;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    position: relative; /* Context for absolute overlay image */
}

.hero-content {
    flex: 1;
    text-align: left;
    position: relative;
    z-index: 10; /* Keep text on top */
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    text-transform: uppercase;
    font-weight: 900;
    line-height: 0.9; /* Tightened for 3-line stacking */
    letter-spacing: -0.03em;
    color: var(--color-white);
    margin-bottom: 20px;
}

.text-accent {
    color: var(--color-accent);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #003333; /* Dark green in light mode */
    max-width: 600px;
    margin: 0 0 40px 0;
    font-weight: 600; /* Increased to 600 for better visibility over overlay */
    line-height: 1.5;
}

[data-theme="dark"] .hero-subtitle {
    color: #FFFFFF; /* White in dark mode */
}

section {
    margin-bottom: 40px;
    padding: var(--section-padding);
}

section.logo-slider {
    margin-bottom: 0;
    padding: 20px 0;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
}

.hero-content h1 {
    font-size: clamp(2rem, 10vw, 5rem); /* Improved mobile scaling */
    margin-bottom: 20px;
    line-height: 1;
}

.hero-image {
    position: absolute;
    right: 0; /* Keeping it aligned with the right edge of the container/navbar */
    top: 50%;
    transform: translateY(-50%);
    width: clamp(260px, 42vw, 615px); /* Downsized by 35% */
    z-index: 1;
    pointer-events: none; /* Let clicks pass through to text/buttons */
    display: flex;
    justify-content: flex-end; /* Align image content to the right edge of its own container */
    align-items: center;
    overflow: visible;
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transform: none; /* Clean, modern flat look */
    transition: opacity 0.5s ease;
}

/* Theme-specific Hero Assets */
.hero-dark {
    display: none;
}

[data-theme="dark"] .hero-light {
    display: none !important;
}

[data-theme="dark"] .hero-dark {
    display: block !important;
}

/* Adjustments for smaller screens to prevent overlap issues */
@media (max-width: 992px) {
    .navbar {
        background: var(--color-bg-light) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    [data-theme="dark"] .navbar {
        background: var(--color-bg-dark) !important;
    }

    .hero-container {
        flex-direction: column;
        padding-top: 20px; /* Reduced from 60px to move headline up */
        padding-bottom: 10px; /* Reduced to win spacing from slider */
        border-left: none !important; /* Catch-all for accidental lines */
    }

    .hero-image {
        display: none !important;
    }
    
    .hero-content {
        order: 1;
        text-align: center;
        max-width: 100%;
        border-left: none !important; /* Force-remove any accent line on mobile */
        padding-left: 0 !important;
    }
    
    .hero-actions {
        justify-content: center;
        margin-top: 20px; /* Reduced from 30px to push buttons up */
        gap: 16px;
    }
}

/* Intro & Content Expansion */
.text-center {
    text-align: center;
}

.intro {
    background-color: var(--color-bg-dark);
    padding: 120px 20px;
    text-align: center;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 8vw, 4rem); /* Lowered min from 2.5rem for small screens */
    text-transform: uppercase;
    color: var(--color-text-accent); /* Updated from color-accent */
    margin-bottom: 30px;
    line-height: 1.1;
    margin-top: 40px;
    text-align: left !important; /* Force left align for mobile flow */
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.8rem;
    line-height: 1.5;
    font-weight: 600;
}

.intro-content p {
    max-width: 60ch;
    margin: 0 auto;
}

.highlight {
    background: var(--color-accent);
    color: var(--color-bg-dark);
    padding: 0 8px;
    border-radius: 4px;
}

/* Vision / Ziele Section */
.vision-section {
    padding: 80px 20px; /* Reduced from 160px */
    background: var(--bg-vision);
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; /* Reduced from 40px */
    margin-top: 40px;
    padding: 0; /* Removed side padding for edge-to-edge look */
}

.vision-card {
    background: rgba(var(--shadow-rgb), 0.05);
    border: 1px solid rgba(var(--shadow-rgb), 0.2);
    padding: 30px 20px; /* Reduced from 40px */
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
}

.vision-card:hover {
    background: rgba(var(--shadow-rgb), 0.1);
    transform: translateY(-10px);
}

.vision-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-text-accent); /* Updated from color-accent */
    margin-bottom: 20px;
    text-transform: uppercase;
}

.vision-card p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Timeline Graphic Section */
.timeline-section {
    position: relative; /* Added to contain .timeline-heat-line */
    padding: 80px 20px; /* Reduced from 160px */
    background-color: var(--color-bg-dark);
}

.timeline-heat-line {
    position: absolute;
    top: 35px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #001a1a, var(--color-accent));
    border-radius: 2px;
    opacity: 0.3;
    z-index: 1;
}

.timeline-nodes {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    gap: 30px;
}

.timeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 300px;
    position: relative;
}


.node-bg-icon {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    /* Increased size for watermark effect */
    height: 200px;
    opacity: 0.1;
    color: var(--color-primary);
    pointer-events: none;
    z-index: 0;
    transition: all 0.5s ease;
}

.timeline-node:hover .node-bg-icon {
    opacity: 0.2;
    transform: translateX(-50%) scale(1.1);
}

.timeline-node .year {
    font-family: var(--font-heading);
    font-size: 3.3rem;
    font-weight: 800;
    color: #003333;
    background: var(--color-accent);
    padding: 15px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(204, 255, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
    width: 100%; /* Fluid for mobile */
    max-width: 300px; /* Cap for desktop */
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.timeline-node:hover .year {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 15px 35px rgba(204, 255, 0, 0.5);
}

.stat-pills {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 2;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
    width: 300px; /* Matched to year box width */
}

.timeline-node:hover .stat-pills {
    transform: translateY(-5px);
}

.stat-pill {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 12px 20px;
    border-radius: 16px;
    border: 1px solid rgba(204, 255, 0, 0.2);
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
    transition: all 0.3s ease;
    color: var(--color-white);
}

.timeline-node:hover .stat-pill {
    background: rgba(204, 255, 0, 0.1);
    border-color: var(--color-accent);
}

.stat-pill .val {
    font-weight: 800;
    color: var(--color-text-accent); /* Updated from color-accent */
    font-size: 1.65rem;
    /* +50% from 1.1rem */
}

.stat-pill .src,
.stat-pill .desc {
    font-size: 1.1rem; /* Matched to section header paragraph size */
    color: var(--color-white); /* White in dark mode due to var, in light mode also white/dark green text based on theme */
}

[data-theme="dark"] .stat-pill .src,
[data-theme="dark"] .stat-pill .desc {
    color: #FFFFFF; /* Ensure white in dark mode */
}

@media (max-width: 992px) {
    .timeline-nodes {
        flex-direction: column;
        align-items: center; /* Centered for mobile */
        gap: 40px;
        padding-bottom: 40px;
    }
    .timeline-node {
        width: 100%;
        max-width: 320px; /* Constrain width for better centering */
        align-items: center !important; /* Centered for mobile */
        text-align: center !important; /* Centered for mobile */
        padding-left: 0 !important; /* Remove left padding to allow true centering */
        margin: 0 auto;
    }

    .timeline-heat-line {
        display: none !important; /* Remove on mobile as requested */
    }
}

/* Personas Section */
.personas-section {
    padding: 80px 20px;
}

.persona-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.persona-card {
    background: var(--bg-card);
    border: 1px solid rgba(var(--shadow-rgb), 0.1);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    color: var(--color-white) !important;
}

.persona-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
}

.persona-content h4 {
    font-size: 1.1rem;
    color: var(--color-text-accent); /* Updated from primary */
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.persona-content ul {
    list-style: none;
    padding: 0;
}

.persona-content li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 12px;
    color: var(--color-white);
    font-size: 1rem;
    line-height: 1.4;
}

.persona-content li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-text-accent); /* Updated from color-accent */
    font-weight: 700;
}

.persona-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
}

.persona-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.persona-info .name {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-accent); /* Updated from primary */
}

.persona-info .role {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .timeline-nodes {
        gap: 40px;
    }
}

.comparison-grid {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Requested 20px gaps */
}

.content-section {
    padding: 20px 20px;
    margin-top: 10px;
}

.content-section .section-header {
    margin-bottom: 20px; /* Requested 20px spacing to headline */
}

.folgen {
    padding: 40px 20px; /* Reduced to fix max 100px spacing */
    color: var(--color-white);
    min-height: 80vh; /* Reduced from 100vh to fit more content */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.folgen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.folgen h2 {
    color: var(--color-white);
    margin-bottom: 40px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100px;
    /* Reduced */
    padding: 25px !important;
    /* Reduced */
    height: 100%;
}

.stat-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--color-white);
}

.stat-card p {
    font-size: 0.95rem;
    color: var(--color-white);
    line-height: 1.5;
    margin-bottom: 20px;
}

.big-number {
    font-size: clamp(2.2rem, 5vw, 2.8rem);
    /* Smaller to fit on one line */
    font-weight: 800;
    color: var(--color-accent);
    letter-spacing: -1px;
    line-height: 1;
    margin-top: auto;
    white-space: nowrap;
    /* Force one line */
}

.sources {
    margin-top: 40px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.sources a {
    color: var(--color-text-muted);
    text-decoration: underline;
}

/* Process Section */
.process-section {
    padding: 160px 20px;
    background: var(--color-bg-dark);
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 60px auto 0;
}

.step {
    display: flex;
    gap: 30px;
    align-items: center;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-accent);
    min-width: 60px;
    line-height: 1;
}

.step-content h3 {
    font-family: var(--font-heading);
    color: var(--color-white);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.step-content p {
    opacity: 0.8;
}

.cta-section {
    margin-top: 100px;
    margin-bottom: 160px;
    /* Significant spacing below the CTA card */
}

/* Comparison Bar Chart */
.bar-container {
    height: 18px;
    /* Slightly taller */
    background: rgba(128, 128, 128, 0.15);
    border-radius: 12px;
    overflow: hidden;
    margin: 10px 0;
}

.bar {
    height: 100%;
    background: var(--color-accent);
    border-radius: 12px;
}

.highlight-card .bar {
    background: #ff4d4d;
    /* Red for Munich's failure */
}

/* Footer Update */
/* FAQ Section */
.faq-section {
    padding: 60px 20px 160px;
    background: var(--color-bg-dark);
}

.faq-list {
    max-width: 800px;
    margin: 60px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(204, 255, 0, 0.1);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(204, 255, 0, 0.3);
}

.faq-item.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-accent);
}

.faq-question {
    width: 100%;
    padding: 25px 30px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #FFFFFF !important; /* Force white for readability on dark backgrounds in both modes */
    font-size: 1.1rem;
    font-weight: 700;
    text-align: left;
    font-family: var(--font-main);
}

.faq-question .icon {
    font-size: 1.5rem;
    color: var(--color-accent);
    transition: transform 0.3s ease;
}

.faq-item.active .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 30px;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 30px;
    opacity: 1;
}

.faq-goals-list {
    margin: 15px 0;
    padding-left: 1.5rem;
    list-style-type: decimal;
    text-align: left;
    color: #FFFFFF !important; /* Forced white for readability in both modes */
}

.faq-goals-list li {
    margin-bottom: 12px;
    line-height: 1.5;
    padding-left: 0; /* Remove extra padding for decimal list */
}

.faq-goals-list li::before {
    content: none !important; /* Remove the auto-bullet dot */
}

.faq-goals-list li strong {
    color: #FFFFFF !important; /* Overriding neon green for all-white look as requested */
    font-weight: 700;
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.6;
    color: #FFFFFF !important; /* Forced white for readability in both modes */
    opacity: 0.9;
}

.faq-answer ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-answer li {
    padding-left: 20px;
    position: relative;
    font-size: 1rem;
    line-height: 1.5;
    color: #FFFFFF !important; /* Forced white for readability in both modes */
    opacity: 0.9;
}

.faq-answer li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

@media (max-width: 768px) {
    .faq-question {
        padding: 20px;
        font-size: 1rem;
    }
}

.footer {
    background: #004d4d;
    /* Same as the section above (Folgen) */
    padding: 80px 0 40px;
    border-top: 1px solid rgba(204, 255, 0, 0.1);
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
}

.link-group h4 {
    font-family: var(--font-heading);
    color: var(--color-accent);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.link-group a {
    color: var(--color-white);
    opacity: 0.7;
    transition: opacity 0.3s;
    display: block;
    margin-bottom: 10px;
}

.link-group a:hover {
    opacity: 1;
    color: var(--color-accent);
}

/* Glassmorphism for Cards */
.card,
.vision-card,
.stat-card,
.persona-card,
.comparison-card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 51, 51, 0.2) !important;
    color: var(--color-white) !important;
    border-radius: var(--border-radius-lg) !important;
    overflow: hidden;
}

.comparison-card {
    padding: 24px 30px;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-actions {
        gap: 15px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        background: #FFFFFF; /* Light Mode Default: White */
        display: flex; 
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px;
        z-index: 3000;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
    }

    .nav-links.active {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* Light Mode Menu Links */
    .nav-links.active .menu-items a {
        color: #003333 !important;
    }

    /* Light Mode Menu Button */
    .nav-links.active .nav-right .btn-primary#btn-mitmachen {
        background-color: #003333 !important;
        color: #CCFF00 !important;
    }

    /* Dark Mode Menu Overrides */
    [data-theme="dark"] .nav-links.active {
        background: #003333 !important; /* Dark green background */
    }

    [data-theme="dark"] .nav-links.active .menu-items a {
        color: #CCFF00 !important; /* Force light green when active, even when scrolled */
    }

    [data-theme="dark"] .nav-links.active .nav-right .btn-primary#btn-mitmachen {
        background-color: #CCFF00 !important;
        color: #003333 !important;
    }

    .menu-items {
        flex-direction: column;
        gap: 2rem;
        margin: 0 0 3rem 0;
        text-align: center;
    }

    .menu-items a {
        font-size: 1.5rem;
    }

    .nav-right {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        max-width: 300px;
    }

    .nav-right .btn {
        width: 100%;
        text-align: center;
        padding: 15px;
        font-size: 1.1rem;
    }

    /* Hamburger to X Animation */
    /* Hamburger to X Animation colors */
    .menu-toggle.active span {
        background-color: #003333 !important; /* Default light mode: Dark Green cross */
    }

    [data-theme="dark"] .menu-toggle.active span {
        background-color: #CCFF00 !important; /* Dark mode: Light Green cross */
    }

    /* Dark Mode Menu Active Utility Refinements */
    @media (max-width: 992px) {
        [data-theme="dark"] .navbar.menu-active .util-btn {
            background-color: #003333 !important;
            border: 1px solid #FFFFFF !important;
            color: #FFFFFF !important;
            box-shadow: none !important;
        }

        [data-theme="dark"] .navbar.menu-active .menu-toggle.active span {
            background-color: #CCFF00 !important;
        }
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg) !important;
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0 !important;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg) !important;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        width: 100%;
        max-width: 300px;
    }

    .footer-links {
        display: flex;
        gap: 30px;
        flex-wrap: wrap;
    }
}

.footer-links {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
}

.menu-toggle.active {
    z-index: 4000 !important;
}

.navbar .container {
    position: relative;
    z-index: 3000;
}

/* --- Added Styles --- */

.vision-card {
    background: var(--bg-card);
    padding: clamp(1.5rem, 5vw, 2.5rem); /* Responsive internal padding */
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vision-card:hover {
    transform: translateY(-5px);
    border-color: rgba(181, 255, 26, 0.2);
}

.content-section .section-header h3,
.folgen .section-header h3,
.personas-section .section-header h3 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    color: var(--color-text-accent);
    margin-bottom: 20px;
}

.step h4 {
    font-family: 'Archivo Black', sans-serif;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.step p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Reduced from 280px to prevent mobile overflow */
    gap: 2rem; /* Reduced from 3rem for mobile space */
}

@media (max-width: 768px) {
    .grid-3 { gap: 1.5rem; }
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Reduced for tablet/mobile safe scaling */
    gap: 1.5rem;
}

.grid-5 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.team-card {
    text-align: center;
    background: transparent;
    padding: 1rem;
    border-radius: var(--border-radius-md);
    border: none;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: rgba(181, 255, 26, 0.2);
}

.team-img-container {
    width: clamp(140px, 20vw, 180px);
    height: clamp(140px, 20vw, 180px);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    background: #003333; /* Dark green background for empty space */
}

.team-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; /* Ensure head is at the top of the circle */
    display: block;
}

.btn-mitmachen-bottom {
    display: inline-block;
    background-color: #003333;
    color: #CCFF00 !important;
    padding: 12px 30px; /* Matched to nav button padding */
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.95rem; /* Matched to nav button font size */
    margin-top: 30px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.btn-mitmachen-bottom:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.team-card h4 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.team-card p {
    font-size: 0.9rem;
    opacity: 0.7;
}

@media (max-width: 1200px) {
    .grid-4, .grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .grid-3, .grid-4, .grid-5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .grid-3, .grid-4, .grid-5 {
        grid-template-columns: 1fr;
    }
}
/* Modal for Begehren Preview */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    background-color: var(--color-bg-light);
    margin: 2% auto;
    padding: 60px 40px 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 1000px;
    position: relative;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.close-modal {
    color: #003333 !important; /* Force dark green in both modes */
    position: absolute;
    top: 5px;
    right: 5px; /* Move further right over the scroll handle track edge */
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10;
}

.close-modal:hover {
    color: var(--color-white);
    transform: scale(1.1);
}

.begehren-preview-container {
    width: 100%;
    margin-bottom: 30px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

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

.modal-footer {
    padding-top: 20px;
}

.modal-footer .btn-large {
    font-size: 0.95rem;
    padding: 12px 24px;
}

[data-theme="dark"] .modal-content {
    background-color: var(--color-bg-alt);
}

[data-theme="dark"] .close-modal {
    /* Keep it dark green in dark mode as requested */
}

.begehren-doc {
    background-color: #FFFFFF !important;
    border-radius: 20px !important;
    color: #003333 !important;
    max-height: 90vh;
    padding: 60px 40px;
    align-items: flex-start;
}

.begehren-doc {
    text-align: left;
    color: #333;
}

.begehren-doc-header {
    text-align: left;
    width: 100%;
    margin-bottom: 30px;
    border-bottom: 2px solid #003333;
    padding-bottom: 20px;
}

.begehren-doc-header .subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
    opacity: 0.7;
}

.begehren-doc-header h2 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 10px;
    line-height: 1.2;
}

.begehren-doc-header h3 {
    color: var(--color-accent);
    background: #003333;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
}

.begehren-scrollable {
    overflow-y: auto;
    width: 100%;
    text-align: justify; /* Blocksatz */
    padding-right: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.begehren-scrollable p {
    margin-bottom: 20px;
}

.begehren-scrollable ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.begehren-scrollable li {
    margin-bottom: 10px;
}

.begehren-scrollable::-webkit-scrollbar {
    width: 8px;
}

.begehren-scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.begehren-scrollable::-webkit-scrollbar-thumb {
    background: #003333;
    border-radius: 4px;
}

/* Position Logo Slider within Hero */
.hero .logo-slider {
    position: absolute;
    bottom: 20px;
    width: 100%;
    margin: 0;
    background: transparent;
}

/* --- Mobile Specific Fixes for Logo Slider --- */
@media (max-width: 768px) {
    .logo-slider {
        padding: 10px 0 !important;
        margin: 0 auto;
        max-width: 100% !important;
        /* Pull closer to the content if needed */
        z-index: 10;
    }

    .logo-track {
        animation-duration: 40s !important; /* Slowed down for better readability on mobile */
        gap: 30px !important; /* Slightly tighter gap */
    }

    .logo-slider img {
        height: 35px !important; /* Smaller logos for mobile to fit more */
        opacity: 0.8;
    }

    /* Prevent any accidental horizontal scroll on the hero */
    .hero {
        overflow-x: hidden !important;
    }

    /* Reduce subheadlines in "Unsere Ziele" by 20% (1.5rem -> 1.2rem) */
    #ziele .vision-card h3 {
        font-size: 1.2rem !important;
    }

    /* Force left-alignment and remove justify for petition modal on mobile */
    .begehren-scrollable {
        text-align: left !important;
    }

    /* Ensure comparison bars are visible and full-width on mobile */
    .bar-container {
        width: 100% !important;
    }

    /* Stack comparison card text on two lines for mobile */
    .comparison-card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
        margin-bottom: 10px !important;
    }
}

/* --- Light Mode Specific Overrides --- */
html:not([data-theme="dark"]) .stat-card {
    background: #003333 !important;
    border-color: rgba(204, 255, 0, 0.2) !important;
}

html:not([data-theme="dark"]) .stat-card h3,
html:not([data-theme="dark"]) .stat-card p {
    color: #FFFFFF !important;
}

html:not([data-theme="dark"]) .faq-item {
    background: #003333 !important;
    border-color: rgba(204, 255, 0, 0.2) !important;
}

html:not([data-theme="dark"]) .faq-question {
    color: #FFFFFF !important;
}

html:not([data-theme="dark"]) .faq-answer p {
    color: rgba(255, 255, 255, 0.8) !important;
}

html:not([data-theme="dark"]) .faq-item:hover {
    border-color: rgba(204, 255, 0, 0.4) !important;
}

html:not([data-theme="dark"]) .faq-item.active {
    background: #004242 !important;
    border-color: var(--color-accent) !important;
}

html:not([data-theme="dark"]) .stat-pill {
    background: rgba(204, 255, 0, 0.1) !important;
    border-color: var(--color-accent) !important;
}

html:not([data-theme="dark"]) .timeline-node .year {
    box-shadow: 0 15px 35px rgba(204, 255, 0, 0.5) !important;
}

html:not([data-theme="dark"]) .timeline-node:hover .year {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 15px 35px rgba(204, 255, 0, 0.5) !important;
}

/* Personas */
.persona-info .role, .persona-info .name {
    color: #FFFFFF !important;
}

html:not([data-theme="dark"]) .persona-info .role,
html:not([data-theme="dark"]) .persona-info .name {
    color: #003333 !important;
}

/* Warum Bäume Inversion */
#warum-baeume { /* Default Light Mode */
    background: #003333 !important;
}
#warum-baeume .section-header h2, #warum-baeume .section-header p {
    color: #FFFFFF !important;
}
#warum-baeume .vision-card {
    background: #FFFFFF !important;
    border-color: rgba(0,51,51,0.2) !important;
}
#warum-baeume .vision-card h3, #warum-baeume .vision-card p {
    color: #003333 !important;
}

[data-theme="dark"] #warum-baeume {
    background: #FFFFFF !important;
}
[data-theme="dark"] #warum-baeume .section-header h2, [data-theme="dark"] #warum-baeume .section-header p {
    color: #003333 !important;
}
[data-theme="dark"] #warum-baeume .vision-card {
    background: #003333 !important;
    border-color: rgba(204,255,0,0.2) !important;
}
[data-theme="dark"] #warum-baeume .vision-card h3, [data-theme="dark"] #warum-baeume .vision-card p {
    color: #FFFFFF !important;
}

/* Begehren Modal Shadow Fix */
html:not([data-theme="dark"]) .modal-actions-bottom .btn-primary {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Global Footer Text Coloring */
.footer {
    background: #004d4d !important;
}
.footer p, 
.footer-brand p, 
.footer-links a, 
.footer-bottom p {
    color: #FFFFFF !important;
}

/* Partner & Presse refinements */
.partner-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 80px;
}

.partner-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px; /* Increased from 40px */
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    transition: transform 0.3s ease;
}

.partner-logo-card:hover {
    transform: translateY(-5px);
}

.partner-logo-card img {
    max-width: 100%;
    height: auto;
    transform: scale(1.6); /* Increased zoom as requested */
}

/* Logofilter for Partner Logos in Light Mode (match mainpage slider) */
html:not([data-theme="dark"]) .partner-logo-card img {
    filter: brightness(0) saturate(100%) invert(10%) sepia(91%) saturate(1211%) hue-rotate(133deg) brightness(97%) contrast(108%);
}

/* Logofilter for Partner Logos in Dark Mode (Light Green) */
html[data-theme="dark"] .partner-logo-card img {
    filter: brightness(0) saturate(100%) invert(85%) sepia(85%) saturate(1469%) hue-rotate(19deg) brightness(109%) contrast(101%);
}

.network-box {
    background: var(--bg-card);
    padding: 60px;
    border-radius: var(--border-radius-lg);
    margin-top: 100px;
    margin-bottom: 80px;
}

.network-box h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--accent-color);
}

.network-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Partner CTA Refinement (No Box) */
.partner-cta-container {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 100px;
}

.btn-cta-partner {
    display: inline-block;
    padding: 15px 40px;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Dark mode CTA: Light Green BG, Dark Green Text */
html[data-theme="dark"] .btn-cta-partner {
    background-color: #CCFF00;
    color: #003333 !important;
}

/* Light mode CTA: Dark Green BG, Light Green Text */
html:not([data-theme="dark"]) .btn-cta-partner {
    background-color: #003333;
    color: #CCFF00 !important;
}

.btn-cta-partner:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* ======================================================
   PHASE 1 REFACTOR: Extracted Inline Style Classes
   ====================================================== */

/* --- Subpage Layout --- */
.subpage-main {
    padding-top: 150px;
}

.subpage-section {
    margin-top: 50px;
}

.subpage-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

/* --- Spacing Utilities --- */
.mt-sm { margin-top: 5px; }
.mt-md { margin-top: 40px; }
.mt-lg { margin-top: 50px; }
.mt-xl { margin-top: 60px; }
.mt-2xl { margin-top: 80px; }
.mb-lg { margin-bottom: 40px; }
.mb-xl { margin-bottom: 100px; }
.mb-section { margin-bottom: 80px; }
.gap-lg { gap: 40px; }

/* --- Team Page --- */
.team-group {
    margin-top: 80px;
}

.team-group:first-of-type {
    margin-top: 60px;
}

.team-group-last {
    margin-bottom: 100px;
}

.team-group-title {
    color: var(--color-text-accent);
    margin-bottom: 40px;
    font-size: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

html:not([data-theme="dark"]) .team-group-title {
    border-bottom-color: rgba(0,51,51,0.1);
}

.team-join-cta {
    text-align: center;
    margin-top: 40px;
}

.team-join-cta .btn {
    padding: 12px 30px;
    font-size: 0.95rem;
}

/* --- Ranking Badge (Warum Handeln section) --- */
.ranking-badge {
    display: inline-block;
    background: #ff4d4d;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* --- Comparison Card Layout --- */
.comparison-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.city-rank {
    font-size: 0.9em;
    opacity: 0.8;
    font-weight: normal;
}

.stat-label {
    font-weight: bold;
}

/* --- Persona Grid Override --- */
.persona-grid-wide {
    gap: 50px;
    grid-template-columns: repeat(3, 1fr);
}

.persona-card-lg {
    padding: 50px;
    gap: 30px;
}

.persona-header-layout {
    display: flex;
    align-items: center;
    gap: 20px;
}

.persona-img-lg {
    width: 80px;
    height: 80px;
}

.persona-name-lg {
    font-size: 1.4rem;
}

.persona-subtitle {
    margin-bottom: 40px;
    opacity: 0.8;
}

.persona-impact-title {
    margin-bottom: 25px;
}

.persona-impact-text {
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
}

/* --- Warum Bäume section --- */
.section-accent-title {
    color: #CCFF00;
}

[data-theme="dark"] .section-accent-title {
    color: #CCFF00;
}

html:not([data-theme="dark"]) #warum-baeume .section-accent-title {
    color: #FFFFFF;
}

.grid-wide-gap {
    row-gap: 80px;
}

.section-padded {
    padding: 100px 20px;
}

/* --- CTA Card --- */
.cta-card {
    background: #CCFF00;
    color: #003333;
    border-radius: var(--border-radius-lg);
    padding: 80px 40px;
    text-align: center;
}

.cta-heading {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-transform: uppercase;
}

.cta-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 600;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-dark {
    background: #003333;
    color: #CCFF00;
    font-weight: 800;
    min-width: 250px;
}

.btn-cta-light {
    background: #ffffff;
    color: #003333;
    font-weight: 700;
    min-width: 250px;
    border: 2px solid #003333;
}

.cta-section-overlap {
    margin-top: -60px;
}

/* --- Footer --- */
.footer-tagline {
    margin-top: 20px;
    opacity: 0.6;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
}

.footer-bottom {
    margin-top: 60px;
    opacity: 0.8;
}

.footer-bottom-muted {
    margin-top: 60px;
    opacity: 0.4;
}

/* --- Modal Actions --- */
.modal-actions-bottom {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

.btn-modal-primary {
    background: #CCFF00;
    color: #003333;
    font-weight: bold;
}

.btn-modal-outline {
    border: 2px solid #003333;
    color: #003333;
    font-weight: bold;
}

/* --- Presse Page --- */
.press-grid {
    margin-top: 60px;
    gap: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.press-card-title {
    color: var(--color-accent);
    margin-bottom: 20px;
    font-size: 2rem;
}

.press-card-desc {
    margin-bottom: 30px;
    opacity: 0.8;
}

.press-contact-name {
    margin-bottom: 10px;
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.4rem;
}

.press-contact-role {
    opacity: 0.7;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.press-contact-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.btn-press-email {
    display: inline-block;
    text-align: center;
    width: 260px;
    padding: 12px 20px;
}

.btn-press-phone {
    display: inline-block;
    width: 260px;
    margin-top: 0;
    font-size: 1.1rem;
    padding: 12px 20px;
    text-align: center;
}

.presskit-btn {
    width: fit-content;
    text-align: center;
    padding: 15px 30px;
    display: block;
    font-weight: 800;
    margin-top: 0;
}

.presskit-list {
    margin-top: 30px;
    list-style: none;
    padding: 0;
    opacity: 0.8;
    font-size: 0.95rem;
}

.presskit-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.presskit-check {
    color: var(--color-accent);
    margin-right: 10px;
}

/* --- Kontakt Page --- */
.contact-links {
    margin: 40px 0 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.contact-links .btn {
    min-width: 250px;
    text-align: center;
    border: none;
    transition: all 0.3s ease;
}

/* Contact Buttons: Match Nav Bar 'Mitmachen' design */
.contact-links .btn-primary {
    background-color: #003333 !important;
    color: #CCFF00 !important;
}

.contact-links .btn-primary:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

[data-theme="dark"] .contact-links .btn-primary {
    background-color: #CCFF00 !important;
    color: #003333 !important;
}


/* --- Unterschreiben Page --- */
.sign-card {
    margin-top: 50px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
}

html:not([data-theme="dark"]) .sign-card {
    background: rgba(0,51,51,0.03);
    border-color: rgba(0,51,51,0.1);
}

.sign-card-title {
    color: var(--color-accent);
    margin-bottom: 30px;
    font-size: 2rem;
}

.sign-card-desc {
    margin-bottom: 40px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.step-number-badge {
    background: var(--color-accent);
    color: var(--color-bg-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 20px;
}

html:not([data-theme="dark"]) .step-number-badge {
    color: #003333;
}

.step-note {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 15px;
    border-left: 2px solid var(--color-accent);
    padding-left: 15px;
}

.delivery-option {
    margin-top: 25px;
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 12px;
}

html:not([data-theme="dark"]) .delivery-option {
    background: rgba(0,51,51,0.05);
}

.delivery-option + .delivery-option {
    margin-top: 20px;
}

.delivery-label {
    font-weight: 600;
    margin-bottom: 8px;
}

.delivery-detail {
    font-size: 0.9rem;
    opacity: 0.8;
}

.btn-find-location {
    margin-top: 15px;
    width: 100%;
    display: block;
    text-align: center;
}

/* --- Info Box (Wer darf unterschreiben) --- */
.info-box {
    margin-top: 60px;
    padding: 50px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
}

html:not([data-theme="dark"]) .info-box {
    background: rgba(0,51,51,0.05);
    border-color: rgba(0,51,51,0.1);
}

.info-box-title {
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: var(--color-accent);
}

.info-item {
    padding: 20px;
    background: rgba(0,0,0,0.2);
    border-radius: 16px;
}

html:not([data-theme="dark"]) .info-item {
    background: rgba(0,51,51,0.08);
}

.info-item-icon {
    font-size: 2rem;
}

.info-item-text {
    margin-top: 15px;
    font-weight: 600;
}

/* --- Sammeln CTA Box --- */
.sammeln-cta {
    margin-top: 60px;
    padding: 60px;
    background: var(--color-accent);
    color: var(--color-bg-dark);
    border-radius: var(--border-radius-lg);
}

html:not([data-theme="dark"]) .sammeln-cta {
    color: #003333;
}

.sammeln-cta-title {
    font-size: 2.22rem;
    margin-bottom: 20px;
    font-family: 'Archivo Black', sans-serif;
}

.sammeln-cta-desc {
    font-weight: 600;
    margin-bottom: 30px;
}

.btn-sammeln {
    background: var(--color-bg-dark);
    color: var(--color-accent);
    padding: 20px 40px;
    font-size: 1.2rem;
}

html:not([data-theme="dark"]) .btn-sammeln {
    background: #003333;
    color: #CCFF00;
}

/* --- Responsive overrides for new classes --- */
@media (max-width: 992px) {
    .persona-grid-wide {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .subpage-title {
        font-size: 2.5rem;
    }
    .cta-heading {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .persona-grid-wide {
        grid-template-columns: 1fr;
    }
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    .btn-cta-dark, .btn-cta-light {
        min-width: unset;
        width: 100%;
        max-width: 300px;
    }
    .info-box {
        padding: 30px;
    }
    .sammeln-cta {
        padding: 40px 30px;
    }
}

@media (max-width: 992px) {
    /* Global fix for horizontal scroll (bleeding) */
    html, body {
        overflow-x: hidden !important;
        position: relative;
    }

    /* Maintain CENTERED containers but LEFT-ALIGNED text on mobile */
    .container:not(.navbar-container), 
    #ziele .container, 
    #vergleich .container, 
    #folgen-von-hitze .container, 
    #personas .container,
    .subpage-section {
        padding-left: 16px !important;
        padding-right: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* CENTER the container block */
        justify-content: center !important;
        text-align: left !important; /* LEFT align the text inside */
    }

    /* Ensure Navbar specifically retains its row layout and spacing */
    .navbar .container,
    .navbar-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    #vergleich .section-header,
    #folgen-von-hitze .section-header,
    #personas .section-header,
    .content-section .section-header,
    .subpage-section .section-header {
        text-align: left !important; /* LEFT alignment */
        align-items: flex-start !important; /* Align children to left within centered header block */
        max-width: 100% !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    #vergleich .section-header p,
    #folgen-von-hitze .section-header p,
    #personas .section-header p,
    .subpage-section .section-header p,
    .persona-subtitle,
    .subpage-title {
        text-align: left !important; /* LEFT alignment */
        margin-left: 0 !important;
        margin-right: auto !important;
        max-width: 100% !important;
    }

    /* Standardize widths to fill container space and use LEFT align */
    #warum-handeln .faq-item,
    .comparison-card,
    .persona-card,
    .stat-card,
    .vision-card {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: left !important; /* LEFT alignment */
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important; /* Align card content to left */
    }

    /* SPECIFIC EXCEPTIONS (STAY CENTERED) */
    .timeline-node,
    .timeline-node .year,
    .timeline-node .stat-pills,
    .timeline-node .stat-pill,
    .cta-section,
    .cta-card,
    .cta-heading,
    .cta-subtitle,
    .cta-actions {
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Center the petition button and its container */
    .text-center,
    #btn-begehren-lesen {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    #btn-begehren-lesen {
        width: fit-content !important;
        margin-top: 30px !important;
        margin-bottom: 30px !important;
    }

    /* Grid Alignment - ensure they center children */
    .comparison-grid,
    .folgen-grid,
    .persona-grid,
    .faq-list {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* CENTER alignment */
        justify-content: center !important;
        gap: 20px !important;
        width: 100% !important;
        margin-left: 0 !important;
    }

    /* Ensure slider doesn't bleed */
    .logo-slider, .hero {
        overflow-x: hidden !important;
    }

    /* Specific spacing adjustments */
    #warum-handeln .faq-list {
        margin-top: 60px !important; /* Balanced spacing */
    }
}

/* --- Warum Handeln Section Refinements --- */
#warum-handeln .section-header {
    text-align: left;
    max-width: 100%;
}

#warum-handeln .section-header p {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
    max-width: 800px;
    font-size: 1.1rem; /* Standardized to match fact boxes below */
}

/* More spacing between boxes and FAQ */
#warum-handeln .faq-list {
    margin-top: 100px;
}



/* --- Signature Page (Accordion Style) --- */
.sign-accordion {
    max-width: 900px;
    margin-top: 60px;
    margin-bottom: 120px; /* Large bottom spacing */
}

/* Base / Light Mode: Solid Dark Green boxes */
.sign-item {
    background: #003333 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    margin-bottom: 25px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sign-item.active {
    border-color: var(--color-accent);
}

/* Dark Mode Override: Translucent FAQ Style */
html[data-theme="dark"] .sign-item {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(204, 255, 0, 0.1);
}

html[data-theme="dark"] .sign-item.active {
    background: rgba(255, 255, 255, 0.08) !important;
}

.sign-question {
    width: 100%;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent !important;
    border: none;
    cursor: pointer;
    text-align: left;
    outline: none;
}

.sign-question span:first-child {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFFFFF !important; /* Always White */
    transition: color 0.3s ease;
}

.sign-question .icon {
    font-size: 1.8rem;
    font-weight: 400;
    color: #CCFF00 !important; /* Always Light Green */
    transition: transform 0.4s ease;
}

.sign-item.active .sign-question .icon {
    transform: rotate(45deg);
}

.sign-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 40px;
    background: transparent !important;
}

.sign-item.active .sign-answer {
    max-height: 1200px;
    padding: 0 40px 40px 40px;
}

.sign-answer-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9) !important; /* Always White-ish */
}

/* Base Navbar-Style Button (Used everywhere on this page) */
.btn-navbar-standard {
    display: inline-block;
    padding: 9px 24px; /* Matched to navbar button feel */
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: none; /* Navbar doesn't use all-caps usually, but let's see */
    letter-spacing: normal;
    text-decoration: none;
    border-radius: 980px; /* Standard pill */
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

/* Light Mode: Dark Green BG, Neon Green Text */
html:not([data-theme="dark"]) .btn-navbar-standard {
    background-color: #003333 !important;
    color: #CCFF00 !important;
}

/* Dark Mode: Neon Green BG, Dark Green Text */
html[data-theme="dark"] .btn-navbar-standard {
    background-color: #CCFF00 !important;
    color: #003333 !important;
}

/* Buttons inside the Dark Green containers: ALWAYS Light Green BG, Dark Green Text */
.sign-accordion .sign-item .sign-answer .btn-navbar-standard {
    background-color: #CCFF00 !important;
    color: #003333 !important;
    width: auto !important; /* No full-width stretching */
    display: inline-block !important;
}

.btn-navbar-standard:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.sign-btn-row {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    justify-content: flex-start; /* Align left, don't stretch */
    flex-wrap: wrap;
}

.sign-btn-row .btn-navbar-standard {
    width: auto !important; /* Standard navbar size at rest */
}

/* Specific Style for the Top Begehren Button */
.sign-top-btn {
    background-color: #CCFF00 !important;
    color: #003333 !important;
    text-shadow: none;
}

/* Light Mode: Contrast Shadow for the Light Green Button */
html:not([data-theme="dark"]) .sign-top-btn {
    box-shadow: 0 4px 12px rgba(0, 51, 51, 0.15);
}

.sign-anleitung-box {
    background: rgba(255, 255, 255, 0.05); /* Subtle light tint over dark green */
    padding: 25px;
    border-radius: var(--border-radius-md);
    margin-top: 30px;
}

.sign-address-box {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    color: #CCFF00; /* Neon highlight for the address */
}

.sign-anleitung-box h5 {
    font-family: var(--font-heading);
    margin-bottom: 15px;
    color: #FFFFFF !important;
}

/* Light Mode Override for Accents (No longer needed to be dark green since container is dark green) */
html:not([data-theme="dark"]) .subpage-title {
    color: #003333 !important;
}

.sign-question .icon {
    font-size: 1.8rem;
    font-weight: 400;
    color: #CCFF00 !important; /* Always Light Green */
    transition: transform 0.4s ease;
}
    .sign-question {
        padding: 20px 15px; /* Reduced padding for space */
    }
    .sign-question span:first-child {
        font-size: 0.95rem; /* Ensure single-line fit */
    }
    .sign-btn-row {
        flex-direction: column;
    }

/* Data Source Citations - Global Polish */
.card-source, 
.card-source a,
.card-source a:visited,
.card-source a:active,
.card-source a:hover {
    font-size: 0.85rem !important; /* Base size before scaling */
    color: #9f9fa8 !important; /* Force consistent grey across themes */
    text-decoration: none !important;
    opacity: 1 !important; /* Full opacity for the grey color itself */
    transition: color 0.3s ease, text-decoration 0.3s ease;
    line-height: 1.2;
}

.card-source {
    display: inline-block; /* Required for transform */
    transform: scale(0.95); /* Visually shrink below browser minimums */
    transform-origin: left top;
    margin-top: 10px;
}

/* Center-align citations for the timeline (2025, 2050, 2100) */
.timeline-node .card-source {
    display: block;
    width: 100%;
    text-align: center;
    transform-origin: center top;
    margin: 15px auto 0;
}

/* Consistent spacing in the Consequences Section */
.stat-card .card-source {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px; /* Minimal bottom margin since margin-top: auto is gone */
}

/* Override big-number margin-top: auto to create fixed gap below source */
.stat-card .big-number {
    margin-top: 15px !important;
}

/* Allow inline override for paragraph-embedded links */
p .card-source {
    display: inline-block !important; /* Keep as inline-block for transform */
    transform: scale(0.95);
    transform-origin: left center;
    margin: 0 !important;
    vertical-align: baseline;
}

.card-source a:hover {
    text-decoration: underline !important;
}

.card-source a:not(:last-child)::after {
    content: ", ";
    margin-right: 2px;
}
