/* 
    tunn.eu - Design System 2026
    Aesthetics: Engineering meets Future
    Colors: Inspired by the Tunn.eu Logo
*/

/* Outift - Local */
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/outfit-v15-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/outfit-v15-latin-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/outfit-v15-latin-600.woff2') format('woff2');
}


:root {
    /* Colors */
    --primary-green: #225828;
    --primary-green-rgb: 34, 88, 40;
    --accent-green: #4c8144;
    --accent-green-rgb: 76, 129, 68;
    --concrete-grey: #6c6c6c;
    --concrete-grey-light: #f5f5f5;
    --slate-dark: #263238;
    --slate-dark-rgb: 38, 50, 56;
    --white: #ffffff;
    --white-rgb: 255, 255, 255;
    --off-white: #fafafa;
    --off-white-rgb: 250, 250, 250;
    
    /* Typography */
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-bold: 600;
    
    /* Spacing & Borders */
    --spacing-unit: 1rem;
    --border-radius: 4px;
    --container-max-width: 1200px;
    --transition-speed: 0.3s;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

h1, h2, h3, h4 {
    font-weight: var(--fw-bold);
    line-height: 1.2;
    margin-bottom: var(--spacing-unit);
    color: var(--primary-green);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 1.5);
}

.section-padding {
    padding: calc(var(--spacing-unit) * 4) 0;
}

/* Navigation */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--concrete-grey-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background var(--transition-speed) var(--transition-smooth), border-color var(--transition-speed) var(--transition-smooth), height var(--transition-speed) var(--transition-smooth);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: 70px;
}

#scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1001;
    background: transparent;
}

#scroll-progress {
    height: 100%;
    background: var(--accent-green);
    width: 0%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height var(--transition-speed);
}

.header.scrolled .nav-container {
    height: 70px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1200;
}

/* Settings Dropdown Wrapper */
.settings-dropdown-wrapper {
    position: relative;
    z-index: 1200;
}

.settings-toggle {
    background: none;
    border: 1px solid var(--concrete-grey-light);
    border-radius: var(--border-radius);
    padding: 0.4rem;
    cursor: pointer;
    color: var(--slate-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.settings-toggle:hover {
    color: var(--primary-green);
    border-color: var(--primary-green);
    transform: rotate(45deg);
}

.settings-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    min-width: 250px;
    background: var(--white);
    border: 1px solid var(--concrete-grey-light);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    padding: 1.25rem;
}

/* Hover or Focus Support */
.settings-dropdown-wrapper:hover .settings-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Caret Arrow for Dropdown */
.settings-dropdown::after {
    content: '';
    position: absolute;
    top: -6px;
    right: 12px;
    width: 12px;
    height: 12px;
    background: var(--white);
    border-top: 1px solid var(--concrete-grey-light);
    border-left: 1px solid var(--concrete-grey-light);
    transform: rotate(45deg);
}

.settings-group {
    margin-bottom: 1.25rem;
}

.settings-group:last-child {
    margin-bottom: 0;
}

.settings-group-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--concrete-grey);
    font-weight: var(--fw-bold);
    margin-bottom: 0.75rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--concrete-grey-light);
}

.settings-options {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

/* Unified style for segmented buttons inside the settings */
.settings-btn, .lang-link {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    font-size: 0.85rem;
    font-weight: var(--fw-medium);
    color: var(--slate-dark);
    background: var(--off-white);
    border: 1px solid var(--concrete-grey-light);
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-family: var(--font-main);
}

.settings-btn:hover, .lang-link:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background: var(--white);
}

/* Active Segment State */
.lang-link.active {
    background: rgba(var(--primary-green-rgb), 0.08);
    color: var(--primary-green);
    border-color: var(--primary-green);
    cursor: default;
}

.theme-toggle .theme-icon {
    margin-right: 0.4rem;
    font-size: 1rem;
}

.theme-toggle {
    width: 100%; /* Spans full width when alone */
}

.site-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: var(--fw-bold);
    color: var(--primary-green);
    letter-spacing: -0.02em;
}

/* Eco-Badge Header */
.eco-badge-header {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-green-rgb), 0.05);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(var(--primary-green-rgb), 0.1);
    color: var(--primary-green);
    cursor: help;
    transition: background var(--transition-speed) ease, transform var(--transition-speed) ease, border-color var(--transition-speed) ease;
    position: relative;
}

.eco-badge-header:hover {
    background: rgba(var(--primary-green-rgb), 0.1);
    transform: translateY(-2px);
}

.eco-badge-header .eco-icon {
    font-size: 1rem;
}

.eco-tooltip {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 280px;
    background: var(--white);
    color: var(--slate-dark);
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    font-size: 0.85rem;
    line-height: 1.5;
    font-weight: var(--fw-regular);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--transition-smooth), transform 0.3s var(--transition-smooth), visibility 0.3s var(--transition-smooth);
    z-index: 1500;
    pointer-events: none;
    border: 1px solid var(--concrete-grey-light);
    text-align: left;
}

.eco-tooltip::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--white);
    border-top: 1px solid var(--concrete-grey-light);
    border-left: 1px solid var(--concrete-grey-light);
}

.eco-tooltip strong {
    display: block;
    color: var(--primary-green);
    margin-bottom: 0.4rem;
}

.eco-badge-header:hover .eco-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav {
    margin-right: 2rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    position: relative;
    font-weight: var(--fw-medium);
}

.nav-link {
    display: block;
    padding: 0.5rem 0;
    color: var(--slate-dark);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-green);
}

/* Journal Button Header-Specific (Desktop) */
.nav-menu .btn.nav-link {
    background: var(--primary-green);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius);
    font-weight: var(--fw-bold);
    transition: background 0.3s ease, transform 0.3s ease;
}

.nav-menu .btn.nav-link:hover {
    background: var(--accent-green);
    color: var(--white);
    transform: translateY(-2px);
}

/* Dropdown Logic */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    padding: 1rem 0;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.5rem 1.5rem;
}

.dropdown-link:hover {
    background: var(--concrete-grey-light);
    color: var(--primary-green);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--off-white) 0%, #e8f5e9 100%);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero-hex-bg {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 800px;
    height: 800px;
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
    transition: transform 0.1s linear;
}

/* Geometric Hex Pattern Background (Simulated) */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(94, 151, 84, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--slate-dark);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-green);
    color: var(--white);
    font-weight: var(--fw-bold);
    border-radius: var(--border-radius);
    transition: filter 0.2s, transform 0.2s, background 0.2s;
    cursor: pointer;
    border: none;
}

.btn:hover {
    filter: brightness(1.1);
    color: var(--white);
}

.btn-magnetic {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Service Teasers - Optimized for Mobile First */
.service-slider-wrapper {
    margin: 0 -1.5rem; /* Break out of container padding */
    padding: 0 1.5rem 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.service-slider-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.service-grid {
    display: flex;
    gap: 1.5rem;
    width: max-content;
}

.service-card {
    position: relative;
    width: 85vw;
    max-width: 350px;
    padding: 2.5rem 2rem;
    background: var(--white);
    border: 1px solid var(--concrete-grey-light);
    border-radius: 8px;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s var(--transition-smooth), border-color 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-green);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.service-bg-num {
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(var(--primary-green-rgb), 0.05);
    z-index: 0;
    pointer-events: none;
    user-select: none;
    transition: color 0.4s ease;
}

.service-card:hover .service-bg-num {
    color: rgba(var(--primary-green-rgb), 0.08);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 2rem;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-green-rgb), 0.04);
    border-radius: 12px;
    transition: background 0.4s ease, transform 0.4s ease;
}

.service-card:hover .service-icon {
    background: rgba(var(--primary-green-rgb), 0.08);
    transform: scale(1.05);
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    z-index: 1;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--slate-dark);
    margin-bottom: 2rem;
    z-index: 1;
}

.service-arrow {
    margin-top: auto;
    width: 40px;
    height: 40px;
    border: 1px solid var(--concrete-grey-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    transition: border-color 0.4s ease, background 0.4s ease, transform 0.4s ease;
}

.service-card:hover .service-arrow {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
    transform: translateX(5px);
}

/* Desktop Grid Override */
@media (min-width: 768px) {
    .service-slider-wrapper {
        margin: 0;
        padding: 0;
        overflow: visible;
    }
    
    .service-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
        gap: 2rem;
    }
    
    .service-card {
        width: 100%;
        max-width: none;
    }
}

/* In Aktion Section */
.in-action-section {
    background: var(--off-white);
    border-top: 1px solid var(--concrete-grey-light);
}

.in-action-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.in-action-text {
    font-size: 1.15rem;
    color: var(--slate-dark);
    line-height: 1.8;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(-30px);
}

.reveal-left.is-visible {
    transform: translateX(0);
}

.reveal-scale {
    transform: scale(0.98);
}

.reveal-scale.is-visible {
    transform: scale(1);
}

/* Shutter Reveal */
.shutter-reveal {
    position: relative;
    overflow: hidden;
}

.shutter-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-green);
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 1s var(--transition-smooth);
    z-index: 2;
}

.shutter-reveal.is-visible::after {
    transform: scaleX(0);
}

/* Personal Section */
.personal-section {
    background: var(--slate-dark);
    color: var(--white);
}

.personal-section h2 {
    color: var(--white);
}

.personal-flex {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.personal-image {
    flex: 1;
    background: var(--concrete-grey);
    height: 400px;
    border-radius: var(--border-radius);
    /* Placeholder for avatar */
}

.personal-content {
    flex: 1.5;
}

/* Footer */
.footer {
    background: var(--off-white);
    padding: 3rem 0;
    border-top: 1px solid var(--concrete-grey-light);
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

/* ─── Navigation Toggle (Hamburger) ─── */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1200;
    padding: 0;
    background: none;
    border: none;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-green);
    border-radius: 2px;
    transition: transform 0.35s var(--transition-smooth),
                opacity 0.25s ease,
                width 0.35s var(--transition-smooth);
    transform-origin: center;
}

/* Hamburger → X animation */
.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
    width: 0;
}
.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ─── Mobile Responsive ─── */
@media (max-width: 768px) {

    /* Show the toggle button */
    .logo-container {
        gap: 8px; /* Reduzierter Abstand auf Mobile */
        overflow: hidden;
    }

    .site-logo-img {
        height: 38px; /* Kleineres Logo auf Mobile */
    }

    .logo-text {
        font-size: 1.15rem; /* Deutlich kleinere Schrift für den langen Namen */
        white-space: nowrap; /* Verhindert Umbruch */
    }

    .eco-badge-header {
        width: 32px; /* Etwas kleineres Badge auf Mobile */
        height: 32px;
        margin-left: 0.2rem;
    }

    .nav-toggle {
        display: flex;
    }

    /* Hide Desktop nav by default – full-screen panel */
    .nav {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100dvh;
        background: var(--white);
        border-left: 4px solid var(--accent-green);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 2.5rem 2.5rem 2.5rem 3rem;
        z-index: 1150;
        pointer-events: none;
        /* Slide in from right */
        clip-path: inset(0 0 0 100%);
        transition: clip-path 0.55s cubic-bezier(0.77, 0, 0.175, 1);
    }

    /* Subtle hexagon watermark in the background */
    .nav::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z' fill='none' stroke='%235e9754' stroke-width='0.6' opacity='0.08'/%3E%3C/svg%3E");
        background-size: 70px;
        pointer-events: none;
    }

    .nav.is-active {
        pointer-events: auto;
        clip-path: inset(0 0 0 0%);
    }

    /* Nav menu: stacked vertically */
    .nav-menu {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    /* Individual nav items */
    .nav-menu .nav-item {
        font-size: 1.75rem;
        font-weight: var(--fw-bold);
        font-family: var(--font-main);
        border-bottom: 1px solid rgba(255,255,255,0.07);
        width: 100%;
        opacity: 0;
        transform: translateX(-18px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .nav-menu .nav-item:last-child {
        border-bottom: none;
        margin-top: 1.5rem;
    }

    /* Staggered reveal */
    .nav.is-active .nav-menu .nav-item:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.20s; }
    .nav.is-active .nav-menu .nav-item:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.27s; }
    .nav.is-active .nav-menu .nav-item:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.34s; }
    .nav.is-active .nav-menu .nav-item:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.41s; }
    .nav.is-active .nav-menu .nav-item:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.48s; }

    /* Nav links on dark background */
    .nav-menu .nav-link {
        display: block;
        padding: 1rem 0;
        color: var(--slate-dark);
        letter-spacing: -0.01em;
        transition: color 0.2s ease, letter-spacing 0.2s ease;
    }

    .nav-menu .nav-link:hover {
        color: var(--accent-green);
        letter-spacing: 0.01em;
    }

    /* Journal CTA – keeps green button style */
    .nav-menu .nav-item:last-child .nav-link.btn {
        display: inline-block;
        background: var(--accent-green);
        color: var(--white) !important;
        padding: 0.75rem 2rem !important;
        border-radius: var(--border-radius);
        font-size: 1.1rem;
        font-weight: var(--fw-bold);
        letter-spacing: 0;
    }

    /* Technik sub-dropdown on mobile: always visible, smaller */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0 0 1rem 1rem;
        min-width: unset;
    }

    .dropdown-link {
        font-size: 1rem;
        color: var(--concrete-grey);
        padding: 0.35rem 0;
        font-weight: var(--fw-regular);
    }

    .dropdown-link:hover {
        background: transparent;
        color: var(--accent-green);
    }

    /* General page layout adjustments */
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        justify-content: center;
        gap: 1.5rem;
    }

    /* Personal Section – Mobile */
    .personal-flex {
        flex-direction: column;
        gap: 2rem;
    }

    .personal-image {
        width: 100%;
        height: 280px;
        border-radius: var(--border-radius);
    }

    .personal-image img {
        object-position: center 15%;
    }
}
/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Base Modal Styling (Coming Soon & External Link grouped) */
.modal-coming-soon, .modal-external-link {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--primary-green-rgb), 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.modal-coming-soon { z-index: 2000; }
.modal-external-link { z-index: 2100; }

.modal-coming-soon.is-active, .modal-external-link.is-active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.2);
    width: 90%;
    position: relative;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s var(--transition-smooth);
}

.modal-coming-soon .modal-content { max-width: 500px; }
.modal-external-link .modal-content { max-width: 600px; }

.modal-coming-soon.is-active .modal-content, 
.modal-external-link.is-active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    color: var(--concrete-grey);
}

.modal-body h2 {
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

/* Coming Soon Specifics */
.modal-brand {
    margin: 2rem 0;
    font-weight: var(--fw-bold);
    color: var(--concrete-grey);
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.btn-close-modal {
    width: 100%;
}

/* External Link Specifics */
.modal-external-link p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--slate-dark);
}

.btn-continue-modal {
    background: var(--primary-green);
    color: var(--white);
}

.btn-cancel-modal:hover {
    background: rgba(var(--primary-green-rgb), 0.05);
}

/* --- Beratung Page Specific --- */
.beratung-hero {
    padding: 100px 0 80px;
    background: radial-gradient(circle at 90% 10%, rgba(94, 151, 84, 0.08) 0%, transparent 40%),
                linear-gradient(135deg, var(--off-white) 0%, #f0f7f1 100%);
    position: relative;
    overflow: hidden;
}

.beratung-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z' fill-rule='evenodd' stroke='%23225828' stroke-width='0.5' fill='none' opacity='0.05'/%3E%3C/svg%3E");
    background-size: 80px;
    opacity: 0.5;
}

.beratung-hero .container {
    position: relative;
    z-index: 2;
}

.beratung-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-green);
}

.beratung-hero .subheadline {
    font-size: 1.25rem;
    color: var(--slate-dark);
    max-width: 850px;
    margin-bottom: 2.5rem;
}

.technical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin: 4rem 0;
}

.technical-card {
    background: var(--white);
    border: 1px solid rgba(176, 176, 176, 0.2);
    border-radius: 8px;
    padding: 3rem 2rem;
    transition: transform 0.4s var(--transition-smooth), border-color 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.technical-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-green);
    box-shadow: 0 30px 60px rgba(var(--primary-green-rgb), 0.1);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: var(--off-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--accent-green);
    transition: background 0.3s ease;
}

.technical-card:hover .card-icon {
    background: rgba(94, 151, 84, 0.1);
}

.technical-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.technical-card p {
    font-size: 0.95rem;
    color: var(--slate-dark);
    margin-bottom: 1.5rem;
}

.technical-card ul {
    margin-top: auto;
}

.technical-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--slate-dark);
}

.technical-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 2px;
    transform: rotate(45deg);
}

/* Methodik & Prozess */
.methodik-section {
    background: var(--white);
    padding: 100px 0;
}

.methodik-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: start;
}

.ansatz-content .tagline {
    text-transform: uppercase;
    font-weight: var(--fw-bold);
    letter-spacing: 0.1em;
    color: var(--accent-green);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 1rem;
}

.ansatz-content h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.ansatz-box {
    background: var(--primary-green);
    color: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    margin-top: 3rem;
    position: relative;
}

.ansatz-box p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Steps */
.step-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--concrete-grey-light);
}

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

.step-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent-green);
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.step-item:hover .step-number {
    opacity: 1;
}

.step-content h3 {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

/* --- Form Styling --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: var(--fw-medium);
    color: var(--slate-dark);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(176, 176, 176, 0.3);
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: var(--white);
    color: var(--slate-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 4px rgba(94, 151, 84, 0.1);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23225828' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
}

.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-label, .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    position: relative;
}

.radio-label input, .checkbox-label input {
    margin-top: 0.25rem;
    accent-color: var(--accent-green);
}

/* Responsiveness */
@media (max-width: 992px) {
    .methodik-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

/* --- Specialized Layouts for Concrete Curing --- */
.hero-minimal {
    padding: 60px 0;
    text-align: center;
    background: var(--white);
}

.hero-minimal h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.hero-minimal p {
    font-size: 1.25rem;
    color: var(--concrete-grey);
}

.floating-card-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 4rem 0;
}

.floating-card-section .bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.floating-card-section .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    width: 100%;
}

.floating-card {
    background: rgba(var(--white-rgb), 0.95);
    padding: 3.5rem;
    max-width: 600px;
    border-radius: var(--border-radius);
    box-shadow: 0 40px 100px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--white-rgb), 0.3);
}

.floating-card h2 {
    margin-bottom: 2rem;
}

.floating-card p {
    margin-bottom: 1.5rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.list-styled li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.list-styled li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
}

.list-styled li strong {
    display: block;
    color: var(--primary-green);
    margin-bottom: 0.25rem;
}

.image-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.image-rounded {
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.vertical-bar {
    border-left: 4px solid var(--accent-green);
    padding-left: 1.5rem;
}

@media (max-width: 992px) {
    .floating-card-section .container {
        justify-content: center;
    }
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .floating-card {
        padding: 2.5rem;
    }
}

/* --- Journal Section (Blog) --- */
.journal-intro {
    background: var(--off-white);
    padding: 100px 0 60px;
    border-bottom: 1px solid var(--concrete-grey-light);
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin: 4rem 0;
}

.journal-card {
    background: var(--white);
    border: 1px solid rgba(176,176,176,0.15);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.4s var(--transition-smooth), border-color 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.journal-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px rgba(var(--primary-green-rgb), 0.12);
    border-color: var(--accent-green);
}

.journal-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--concrete-grey-light);
}

.journal-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-smooth);
}

.journal-card:hover .journal-card-image img {
    transform: scale(1.05);
}

.journal-card-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.journal-card-meta {
    font-size: 0.8rem;
    color: var(--accent-green);
    text-transform: uppercase;
    font-weight: var(--fw-bold);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.journal-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.journal-card p {
    font-size: 0.95rem;
    color: var(--concrete-grey);
    margin-bottom: 2rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

.journal-card-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--concrete-grey-light);
}

.journal-read-more {
    color: var(--primary-green);
    font-weight: var(--fw-bold);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.journal-read-more::after {
    content: '→';
    transition: transform 0.2s;
}

.journal-card:hover .journal-read-more::after {
    transform: translateX(4px);
}

/* Single Post View */
.journal-single-hero {
    padding: 120px 0 80px;
    background: var(--off-white);
    text-align: center;
}

.journal-single-meta {
    margin-bottom: 1.5rem;
    color: var(--accent-green);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.journal-single-image {
    width: 100%;
    max-width: 1000px;
    height: 500px;
    margin: -100px auto 4rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.15);
    position: relative;
    z-index: 10;
}

.journal-single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.journal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Journal Content Wrapper (Quill / HTML Output) */
.journal-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--slate-dark);
}

.journal-content h2 {
    font-size: 2rem;
    color: var(--primary-green);
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
}

.journal-content h3 {
    font-size: 1.6rem;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
}

.journal-content p {
    margin-bottom: 1.8rem;
}

.journal-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 3rem 0;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.journal-content ul, .journal-content ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.journal-content li {
    margin-bottom: 0.8rem;
    position: relative;
}

.journal-content blockquote {
    border-left: 4px solid var(--accent-green);
    padding-left: 2rem;
    margin: 3rem 0;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--concrete-grey);
}

.journal-back-link {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--concrete-grey-light);
    display: inline-block;
}

@media (max-width: 768px) {
    .journal-single-image {
        height: 300px;
        margin-top: -40px;
    }
    .journal-content {
        font-size: 1.05rem;
    }
}

/* --- Contact Page Specific --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: start;
}

.contact-info h2 {
    margin-top: 0;
    font-size: 1.8rem;
    line-height: 1.2;
}

.contact-info .subheadline {
    margin: 1.5rem 0 2rem;
    color: var(--slate-dark);
    font-size: 1.1rem;
}

.qr-section {
    margin-bottom: 3rem;
    background: var(--off-white);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--concrete-grey-light);
}

.qr-section .qr-title {
    font-weight: var(--fw-bold);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--accent-green);
}

.qr-placeholder {
    width: 180px;
    height: 180px;
    background: var(--white);
    border: 1px solid var(--concrete-grey-light);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.qr-caption {
    font-size: 0.85rem;
    color: var(--concrete-grey);
}

.direct-contact {
    margin-bottom: 3rem;
}

.direct-contact p {
    margin-bottom: 0.5rem;
}

.direct-contact .contact-link {
    color: var(--primary-green);
    font-weight: bold;
}

.linkedin-block {
    background: #0077b5;
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.linkedin-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.linkedin-details p {
    margin: 0;
}

.linkedin-name {
    font-weight: bold;
}

.linkedin-title {
    font-size: 0.8rem;
    opacity: 0.9;
}

.linkedin-link {
    font-size: 0.8rem;
    text-decoration: underline;
    color: white;
}

.contact-form-container {
    padding: 3rem;
    background: var(--white);
    border: 1px solid var(--concrete-grey-light);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.success-message {
    background: rgba(94, 151, 84, 0.1);
    border: 1px solid var(--accent-green);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
}

.success-icon {
    font-size: 2.5rem;
    color: var(--accent-green);
    margin-bottom: 1rem;
}

.success-message h3 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 0; /* Handled by form-group margin */
}

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

.form-note {
    font-size: 0.9rem;
    font-weight: var(--fw-bold);
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.portrait-container {
    margin-bottom: 4rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.portrait-placeholder {
    background: var(--slate-dark);
    height: 500px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.portrait-text {
    color: var(--white);
    opacity: 0.5;
    font-size: 1.2rem;
}

/* --- Contact Response --- */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .contact-form-container {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .portrait-placeholder {
        height: 350px;
    }
}

/* ─── Page Sub-Navigation (ScrollSpy) ─── */
.page-subnav {
    position: sticky;
    top: 70px;
    z-index: 900;
    background: rgba(var(--white-rgb), 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--concrete-grey-light);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.subnav-list {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 0;
}

.subnav-list::-webkit-scrollbar {
    display: none;
}

.subnav-link {
    font-weight: var(--fw-bold);
    color: var(--concrete-grey);
    white-space: nowrap;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: transparent;
    transition: color var(--transition-speed), background var(--transition-speed), box-shadow var(--transition-speed);
}

.subnav-link:hover {
    color: var(--primary-green);
}

.subnav-link.active {
    background: var(--primary-green);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(var(--primary-green-rgb), 0.2);
}

/* ─── Section Numberings (Visual Hierarchy) ─── */
.section-number-bg {
    position: absolute;
    top: -30px;
    left: -20px;
    font-size: 8rem;
    line-height: 1;
    font-weight: var(--fw-bold);
    color: rgba(var(--primary-green-rgb), 0.05);
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

/* ─── Bento Grid ─── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 1.5rem;
}

.bento-card {
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--concrete-grey-light);
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-medium {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-small {
    grid-column: span 1;
    grid-row: span 1;
    padding: 1.5rem;
}

.bento-big-number {
    font-size: 6rem;
    font-weight: var(--fw-bold);
    line-height: 1;
    display: inline-block;
    letter-spacing: -0.05em;
    color: var(--accent-green);
}

.bento-percent {
    font-size: 3rem;
    vertical-align: super;
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-large, .bento-medium, .bento-small {
        grid-column: span 1;
        grid-row: auto;
    }
    .page-subnav {
        top: 60px;
    }
    .subnav-list {
        padding: 0.75rem 0;
        gap: 0.5rem;
    }
    .subnav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    .section-number-bg {
        font-size: 5rem;
        top: -10px;
        left: -10px;
    }
}

/* --- Privacy Seal (Small) --- */
.privacy-seal-small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--white);
    border: 1px solid var(--accent-green);
    border-radius: 50px;
    font-weight: var(--fw-bold);
    color: var(--primary-green);
    font-size: 0.8rem;
    box-shadow: 0 4px 12px rgba(var(--primary-green-rgb), 0.05);
    transition: transform 0.3s ease;
    cursor: default;
}

.privacy-seal-small:hover {
    transform: translateY(-2px);
}
.seal-check {
    color: var(--accent-green);
}

/* Dark Mode 2026 - Manual Toggle */
html.dark-theme {
    --primary-green: #e8f5e9;       /* war #a5d6a7  → ~9:1 auf Body-BG */
    --primary-green-rgb: 232, 245, 233;
    --accent-green:  #b9f6ca;       /* war #c8e6c9  → ~6.5:1, bleibt grünlich */
    --accent-green-rgb: 185, 246, 202;
    --slate-dark:    #f4f3f2;       /* ✓ passt */
    --slate-dark-rgb: 244, 243, 242;
    --white:         #54504F;       /* ✓ passt */
    --white-rgb: 84, 80, 79;
    --off-white:     #464241;       /* ✓ passt */
    --off-white-rgb: 70, 66, 65;
    --concrete-grey-light: rgba(255, 255, 255, 0.15); /* ✓ passt */
    --concrete-grey: #ccc8c6;       /* war #a8a2a0  → ~4.5:1 statt ~2.5:1 */
}

html.dark-theme body {
    background-color: var(--white);
    color: var(--slate-dark);
}

html.dark-theme .header {
    background: var(--white);
}

html.dark-theme .header.scrolled {
    background: rgba(84, 80, 79, 0.85); /* Entspricht #54504F mit 85% Opazität */
}

html.dark-theme .header-actions .theme-toggle,
html.dark-theme .nav-item .theme-toggle {
    color: var(--accent-green) !important;
}

html.dark-theme .service-card {
    background: #6a6665;            /* war #5c5857 — mehr Abstand zum Body */
    border-color: rgba(255,255,255,0.12);
}

html.dark-theme .eco-badge-header {
    background: rgba(184, 246, 202, 0.12);
    border-color: rgba(184, 246, 202, 0.3);
}

html.dark-theme .service-card:hover {
    border-color: var(--primary-green);
}

html.dark-theme .footer {
    background: #3d3a39;
    border-top-color: var(--concrete-grey-light);
}

html.dark-theme .dropdown-menu {
    background: #5c5857;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    html.dark-theme .dropdown-menu {
        background: transparent;
        box-shadow: none;
    }
}

html.dark-theme .dropdown-link:hover {
    background: rgba(255,255,255,0.05);
}

html.dark-theme .modal-content {
    background: #54504F;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    border: 1px solid var(--concrete-grey-light);
}

html.dark-theme .eco-tooltip {
    background: #464241;
    color: var(--slate-dark);
    border-color: var(--concrete-grey-light);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

html.dark-theme .eco-tooltip::after {
    background: #464241;
    border-top-color: var(--concrete-grey-light);
    border-left-color: var(--concrete-grey-light);
}

