/* ==========================================================================
   ENERGY TEC Landing Page - Apple-Style Light Liquid Design System
   ========================================================================== */

@font-face {
    font-family: 'Urbanist';
    src: url('Font/Urbanist-VariableFont_wght.ttf') format('truetype-variations'),
         url('Font/Urbanist-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Urbanist';
    src: url('Font/Urbanist-Italic-VariableFont_wght.ttf') format('truetype-variations'),
         url('Font/Urbanist-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

:root {
    /* Base Color Palette (Apple Light Neutral) */
    --bg-light: #f5f5f7;
    --bg-white: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.65);
    --border-color: rgba(0, 0, 0, 0.07);
    --border-color-hover: rgba(0, 0, 0, 0.15);
    --text-main: #1d1d1f;
    --text-muted: #4e4e54; /* Darker gray for significantly improved contrast and readability */
    --text-inverse: #ffffff;
    
    /* Font Families */
    --font-heading: 'Urbanist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Urbanist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Typographic Scale: Major Third (Ratio 1.250) */
    --font-xs: 0.64rem;
    --font-sm: 0.80rem;
    --font-base: 1.00rem;
    --font-md: 1.25rem;
    --font-lg: 1.56rem;
    --font-xl: 1.95rem;
    --font-2xl: 2.44rem;
    --font-3xl: 3.05rem;
    --font-4xl: 3.81rem;
    --font-5xl: 4.77rem;
    
    /* Product Accent Colors */
    --accent-default: #fcc10b; /* Apple Blue */
    --accent-default-rgb: 252, 193, 11;
    
    --accent-pv: #f59e0b; /* Amber */
    --accent-pv-rgb: 245, 158, 11;
    
    --accent-wallbox: #06b6d4; /* Cyan */
    --accent-wallbox-rgb: 6, 182, 212;
    
    --accent-pump: #10b981; /* Emerald */
    --accent-pump-rgb: 16, 185, 129;
    
    /* Dynamic active accent (updated by JS) */
    --accent-current: var(--accent-default);
    --accent-current-rgb: var(--accent-default-rgb);
    
    /* Transitions & Curves */
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s ease;
    --border-radius-lg: 20px;
    --border-radius-xl: 28px;
    --box-shadow-apple: 0 10px 30px rgba(0, 0, 0, 0.04);
    --box-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-size: 16px; /* Reduced base font size for a more compact and elegant layout */
    scroll-behavior: smooth;
    background-color: var(--bg-light);
}

/* Keyboard focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2.5px solid var(--accent-default);
    outline-offset: 3px;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
}

body.no-scroll, body.no-scroll-video {
    overflow: hidden !important;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.15;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

/* Custom Scrollbar (Sleek Apple Gray) */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-6 { margin-top: 1.5rem; }

.badge {
    background: rgba(var(--accent-default-rgb), 0.08) !important;
    border: 1px solid rgba(var(--accent-default-rgb), 0.35) !important;
    color: var(--text-main) !important;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    font-size: var(--font-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: var(--font-2xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: var(--font-base);
    max-width: 600px;
}

/* ==========================================================================
   Header & Navigation (Apple Glass Navbar)
   ========================================================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all var(--transition-smooth);
    padding: 1.25rem 0;
}

.main-header.scrolled {
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.3) 60%, rgba(255, 255, 255, 0.45) 100%);
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.85rem 0;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.04), 
        inset 0 1px 0 rgba(255, 255, 255, 0.55), 
        inset 0 -1px 0 rgba(0, 0, 0, 0.01);
}

.nav-container {
    display: flex;
    align-items: center;
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 3vw, 3rem);
    gap: clamp(1.5rem, 2.5vw, 3rem);
}

.logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 0.55rem;
    font-family: var(--font-heading);
    font-size: var(--font-md);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text-main);
    transition: color var(--transition-smooth);
}

.logo-img {
    height: 52px; /* Substantially larger for legibility */
    width: auto;
    display: block;
    object-fit: contain;
    transition: all var(--transition-smooth);
}

.main-header.scrolled .logo-img {
    height: 42px; /* Slightly scaled down when scrolled */
}

/* Re-color logo text in dark modes (footer and transparent hero header) */
.main-header:not(.scrolled) .logo-img {
    filter: brightness(0) invert(1);
}

/* Disable white filter when mobile nav overlay is active on white background */
.main-header:has(.menu-toggle.active) .logo-img {
    filter: none !important;
}

.main-footer .logo-img {
    filter: none;
}

/* Desktop Menu */
.nav-menu {
    flex: 1 1 auto;
    min-width: 0;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    gap: clamp(1.15rem, 1.65vw, 2rem);
}

.nav-menu li {
    flex: 0 0 auto;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 1.08rem; /* Slightly larger nav links */
    font-weight: 600; /* Bolder weight */
    color: var(--text-muted);
    position: relative;
    padding: 0.4rem 0;
    white-space: nowrap;
    transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

/* Header unscrolled / transparent state (on dark background) */
.main-header:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.75);
}

.main-header:not(.scrolled) .nav-link:hover,
.main-header:not(.scrolled) .nav-link.active {
    color: #ffffff;
}

.main-header:not(.scrolled) .logo {
    color: #ffffff;
}

.main-header:not(.scrolled) .menu-toggle {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.main-header:not(.scrolled) .menu-toggle .bar {
    background-color: #ffffff;
}

/* If mobile menu is open, override and make sure text/toggle is dark on the white screen */
.main-header:has(.menu-toggle.active) .logo {
    color: var(--text-main) !important;
}
.main-header:has(.menu-toggle.active) .menu-toggle .bar {
    background-color: var(--text-main) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-default);
    transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 1.25rem;
}

.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-default);
    color: var(--text-main);
    padding: 0.65rem 1.45rem; /* Larger, thumb-friendly CTA padding */
    border-radius: 100px; /* Capsule shape */
    font-family: var(--font-heading);
    font-size: 1.05rem; /* Slightly larger text */
    font-weight: 700; /* Stronger bold */
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(var(--accent-default-rgb), 0.15);
    transition: all var(--transition-fast);
}

.nav-cta-btn:hover {
    box-shadow: 0 4px 15px rgba(var(--accent-default-rgb), 0.35);
    background: var(--accent-default);
    filter: brightness(1.05);
}

/* Hamburger toggle */
/* Hamburger toggle styled as a premium circular button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    cursor: pointer;
    z-index: 110;
    transition: all var(--transition-fast);
}

.menu-toggle:hover {
    background: rgba(0, 0, 0, 0.06);
    transform: scale(1.03);
}

.menu-toggle .bar {
    width: 18px;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
}

/* Switch to the full-screen menu before the desktop links become cramped. */
@media (max-width: 1280px) {
    .nav-container {
        justify-content: space-between;
    }

    .nav-menu,
    .nav-actions .nav-cta-btn {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(25px);
    z-index: 95;
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    align-items: center;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 7rem 1rem 2rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.98);
    transition: transform var(--transition-smooth), opacity var(--transition-fast), visibility 0s linear 0.4s;
}

.mobile-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
    transition-delay: 0s;
}

.mobile-nav ul {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.85rem;
    flex-shrink: 0;
}

@media (max-height: 620px) {
    .mobile-nav {
        justify-content: flex-start;
    }

    .mobile-nav ul {
        gap: 1rem;
    }
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: var(--font-md);
    font-weight: 600;
    color: var(--text-muted);
    display: block;
}

.mobile-link:hover {
    color: var(--text-main);
}

.mobile-cta {
    background: var(--accent-default);
    color: var(--text-main);
    padding: 0.7rem 1.85rem;
    border-radius: 100px;
    font-size: var(--font-base);
    box-shadow: 0 4px 12px rgba(var(--accent-default-rgb), 0.2);
    margin-top: 1rem;
}

/* ==========================================================================
   Hero Section with House Canvas as Background
   ========================================================================== */

.hero-section {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #000000;
    z-index: 1;
}

.showcase-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #f0f0f2;
    z-index: 2;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
}

/* Ensure all subsequent sections stack above the sticky hero */
.google-reviews-section,
.services-section,
.advantages-section,
.timeline-section,
.manufacturers-section,
.career-section,
.main-footer {
    position: relative;
    z-index: 2;
}

/* Background Video wrapper inside Hero Section (Page 1) */
.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1; /* Sits below centered overlay content and navbar */
    background: #000000 url('haus-komponenten.webp') center / cover no-repeat;
}

.video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dark elegant radial vignette overlay for cinematic pop */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

/* Zentriertes Logo- und Text-Overlay */
.video-intro-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    text-align: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-heading);
    width: 90%;
    max-width: 750px;
    pointer-events: auto; /* Allow interactions like clicking the CTA button */
}

.intro-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--font-2xl);
    font-weight: 900;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.intro-logo i {
    color: var(--accent-default);
    filter: drop-shadow(0 2px 10px rgba(var(--accent-default-rgb), 0.5));
}

.intro-logo .logo-highlight {
    color: var(--accent-default);
}

.intro-tagline {
    font-size: var(--font-md);
    font-weight: 450;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

.video-main-heading {
    font-family: var(--font-heading);
    font-size: var(--font-3xl);
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.cta-scroll-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 0.85rem 1.75rem;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--font-base);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.cta-scroll-btn:hover {
    background: #ffffff;
    color: var(--text-main);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

/* Hero Trust Badges under CTA */
.hero-trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.8rem;
    width: 100%;
}

.hero-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.02em;
}

.hero-trust-badge i {
    color: var(--accent-default); /* Brand gold */
    font-size: 0.9rem;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

@media (max-width: 768px) {
    .hero-trust-badges {
        gap: 0.85rem;
        margin-top: 1.5rem;
    }
    .hero-trust-badge {
        font-size: 0.8rem;
    }
}

.cta-scroll-btn i {
    font-size: var(--font-sm);
    transition: transform 0.3s ease;
}

.cta-scroll-btn:hover i {
    transform: translateY(3px);
}

.intro-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-sm);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    pointer-events: none;
}

.intro-scroll-hint i {
    font-size: var(--font-base);
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
    60% { transform: translateY(-3px); }
}

/* 16:9 Canvas serving as absolute full-screen background */
@media (min-width: 993px) {
    .house-canvas {
        position: absolute;
        top: 50%;
        left: 50%; /* Center horizontally to cover screen on all displays */
        transform: translate(-50%, -50%) scale(1.05); /* Scaled 5% larger as requested */
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        aspect-ratio: 16 / 9;
        z-index: 1;
        background: #fafafa;
    }
    
    .house-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* Container wraps both card overlays absolutely */
    .hero-container, .showcase-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 10;
        pointer-events: none; /* Let clicks pass through container to SVG hotspots */
        max-width: 100%;
        padding: 0;
    }

    /* Left Side: Floating glassmorphic marketing card */
    .hero-content-card {
        position: absolute;
        left: 40px;
        top: 100px;
        width: 350px;
        height: calc(100vh - 200px);
        z-index: 20;
        background: var(--bg-card);
        border: 1px solid rgba(255, 255, 255, 0.85);
        border-radius: var(--border-radius-lg);
        padding: 2rem 1.5rem 3rem 1.5rem;
        box-shadow: 
            0 15px 35px rgba(0, 0, 0, 0.03),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(30px) saturate(190%);
        -webkit-backdrop-filter: blur(30px) saturate(190%);
        pointer-events: auto; /* Enable clicks inside card */
        text-align: left;
        overflow-y: auto; /* Allow scrolling if content is taller than screen height */
        scrollbar-width: thin;
    }

    .hero-content-card::-webkit-scrollbar {
        width: 4px;
    }

    .hero-content-card::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.15);
        border-radius: 2px;
    }

    /* Right Side: Floating lead multi-step form */
    .lead-pane {
        position: absolute;
        right: 40px;
        top: 100px;
        width: 350px;
        height: calc(100vh - 200px);
        z-index: 20;
        display: flex;
        flex-direction: column;
        margin: 0;
        pointer-events: auto; /* Enable clicks inside form */
    }
}

.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(var(--accent-default-rgb), 0.12); /* Slightly stronger tint */
    border: 1.5px solid rgba(var(--accent-default-rgb), 0.4); /* Stronger gold border */
    color: #000000; /* Deep black text */
    padding: 0.45rem 1.05rem; /* Taller, pill-shaped padding */
    border-radius: 100px;
    font-size: 0.76rem; /* Compact uppercase size */
    font-weight: 800; /* Extra bold */
    text-transform: uppercase; /* Uppercase for highlight */
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(var(--accent-default-rgb), 0.06);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-default);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-default);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.hero-headline {
    font-size: clamp(1.25rem, 2.2vw, 2.15rem); /* Fluid font size adapting perfectly to viewport width */
    font-weight: 900; /* Heavy weight */
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    color: #000000; /* Solid deep black */
    word-break: keep-all; /* Prevent cutting words in half */
    hyphens: none;        /* Disable text hyphen split */
    overflow-wrap: normal;
}

.gradient-text {
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    color: #000000; /* Override gradient text to solid black */
}

.hero-subtitle {
    color: #1a1a1c; /* Much darker black for supreme readability */
    font-size: var(--font-base);
    font-weight: 500; /* Added weight for contrast */
    line-height: 1.45;
    margin-bottom: 1.5rem;
}

/* USPs list inside floating card */
.hero-usps {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.hero-usp-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.45); /* Soft glassmorphic white card background */
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.015);
    cursor: default;
}

.hero-usp-item:hover {
    background: #ffffff;
    border-color: rgba(var(--accent-default-rgb), 0.35); /* Glow to brand color on hover */
    box-shadow: 0 6px 16px rgba(var(--accent-default-rgb), 0.08);
}

.hero-usp-item:hover .usp-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(var(--accent-default-rgb), 0.15);
}

.usp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 42px;
    background: rgba(var(--accent-default-rgb), 0.08); /* Brand color background tint */
    border: 1.5px solid rgba(var(--accent-default-rgb), 0.25); /* Brand color border */
    color: var(--accent-default); /* Brand icon color */
    border-radius: 6px 6px 18px 18px; /* Heraldische Wappenform (Shield shape) */
    font-size: var(--font-base);
    margin-top: 0.15rem;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(var(--accent-default-rgb), 0.08);
    transition: all var(--transition-fast);
}

.usp-text h3 {
    font-size: var(--font-md);
    font-weight: 800; /* Bolder title */
    color: #000000; /* Rich solid black */
    margin-bottom: 0.2rem;
}

.usp-text p {
    font-size: var(--font-base);
    color: #222224; /* Darker description text */
    font-weight: 500; /* Better presence on glass background */
    line-height: 1.35;
}

.hero-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.trust-badge-mini {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: var(--font-sm);
    font-weight: 700;
    color: #000000; /* Rich solid black for supreme legibility */
    background: var(--bg-white);
    border: 1.5px solid rgba(var(--accent-default-rgb), 0.2);
    padding: 0.4rem 0.75rem;
    border-radius: 6px 6px 18px 18px; /* Matching heraldic shield shape */
    box-shadow: 0 4px 10px rgba(var(--accent-default-rgb), 0.04);
    transition: all var(--transition-fast);
}

.trust-badge-mini:hover {
    border-color: var(--accent-default);
    box-shadow: 0 6px 14px rgba(var(--accent-default-rgb), 0.1);
}

.trust-badge-mini i {
    color: var(--accent-default);
    font-size: var(--font-base);
}

/* DEKRA Badge & Logo Styles */
.badge-dekra {
    border-color: rgba(0, 114, 63, 0.2) !important;
}

.badge-dekra:hover {
    border-color: #00723F !important;
    box-shadow: 0 6px 14px rgba(0, 114, 63, 0.1) !important;
}

.badge-dekra span {
    color: #00723F !important;
}

.badge-dekra .dekra-logo-icon {
    width: 0.7em;
    height: 0.85em;
    fill: #00723F;
}

/* ==========================================================================
   Questionnaire / Lead Card (Liquid Glassmorphism Light)
   ========================================================================== */

.lead-card {
    height: 100%;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: var(--border-radius-xl);
    padding: 2rem 1.5rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(30px) saturate(190%);
    -webkit-backdrop-filter: blur(30px) saturate(190%);
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
}

.lead-card::-webkit-scrollbar {
    width: 4px;
}

.lead-card::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 2px;
}

/* Liquid Glow edge reactions for card (Soft colored drop-shadows) */
.lead-card.active-pv {
    border-color: rgba(var(--accent-pv-rgb), 0.4);
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.03),
        0 0 30px -3px rgba(var(--accent-pv-rgb), 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.lead-card.active-wallbox {
    border-color: rgba(var(--accent-wallbox-rgb), 0.4);
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.03),
        0 0 30px -3px rgba(var(--accent-wallbox-rgb), 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.lead-card.active-pump {
    border-color: rgba(var(--accent-pump-rgb), 0.4);
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.03),
        0 0 30px -3px rgba(var(--accent-pump-rgb), 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Step transition anim */
.form-step {
    display: none;
    opacity: 0;
    width: 100%;
}

.form-step.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeIn var(--transition-smooth) forwards;
    height: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Intro State Design */
.intro-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.15rem;
    margin: auto 0;
}

.intro-icon-wrapper {
    position: relative;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: rgba(var(--accent-default-rgb), 0.05);
    border: 1px solid rgba(var(--accent-default-rgb), 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-xl);
    color: var(--accent-default);
    margin-bottom: 0.25rem;
}

.radar-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(var(--accent-default-rgb), 0.2);
    animation: radarPulse 2.2s infinite ease-out;
}

@keyframes radarPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.intro-content h2 {
    font-family: var(--font-heading);
    font-size: var(--font-lg);
    font-weight: 700;
}

.intro-description {
    color: var(--text-muted);
    font-size: var(--font-base);
    margin-bottom: 0.5rem;
}

/* Product Selector List */
.product-selector-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
}

.selector-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    color: var(--text-main);
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.selector-btn i {
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.selector-btn span {
    font-size: 0.9rem;
    font-weight: 700;
}

/* Individual accent colors when static */
.selector-btn.btn-pv {
    border-color: rgba(245, 158, 11, 0.2);
}
.selector-btn.btn-pv i {
    color: #f59e0b; /* PV Gold */
}

.selector-btn.btn-wallbox {
    border-color: rgba(59, 130, 246, 0.2);
}
.selector-btn.btn-wallbox i {
    color: #3b82f6; /* Wallbox Blue */
}

.selector-btn.btn-pump {
    border-color: rgba(16, 185, 129, 0.2);
}
.selector-btn.btn-pump i {
    color: #10b981; /* Pump Green */
}

/* Hover effects */
.selector-btn:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.selector-btn:hover i {
    transform: scale(1.1);
}

.selector-btn.btn-pv:hover {
    border-color: rgba(245, 158, 11, 0.45);
}

.selector-btn.btn-wallbox:hover {
    border-color: rgba(59, 130, 246, 0.45);
}

.selector-btn.btn-pump:hover {
    border-color: rgba(16, 185, 129, 0.45);
}

/* Active / Tap animation */
.selector-btn:active {
    transform: scale(0.96);
}


/* Active Survey Container */
.survey-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.survey-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.btn-back {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: var(--font-sm);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color var(--transition-fast);
}

.btn-back:hover {
    color: var(--text-main);
}

.survey-title-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.product-badge {
    font-size: var(--font-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    margin-bottom: 0.2rem;
}

.product-badge.pv {
    background: rgba(var(--accent-pv-rgb), 0.08);
    color: var(--accent-pv);
    border: 1px solid rgba(var(--accent-pv-rgb), 0.18);
}

.product-badge.wallbox {
    background: rgba(var(--accent-wallbox-rgb), 0.08);
    color: var(--accent-wallbox);
    border: 1px solid rgba(var(--accent-wallbox-rgb), 0.18);
}

.product-badge.pump {
    background: rgba(var(--accent-pump-rgb), 0.08);
    color: var(--accent-pump);
    border: 1px solid rgba(var(--accent-pump-rgb), 0.18);
}

#surveyTitle {
    font-family: var(--font-heading);
    font-size: var(--font-base);
    font-weight: 600;
    color: var(--text-muted);
}

/* Progress Indicator */
.progress-container {
    margin-bottom: 1.75rem;
}

.progress-bar-wrapper {
    height: 3px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.4rem;
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent-current);
    box-shadow: 0 0 8px rgba(var(--accent-current-rgb), 0.4);
    border-radius: 10px;
    width: 0%;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-text {
    font-size: var(--font-sm);
    color: var(--text-muted);
    font-weight: 500;
}

/* Form layouts */
#leadForm {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.survey-step {
    display: none;
    animation: fadeIn var(--transition-smooth) forwards;
}

.survey-step.active {
    display: block;
}

.step-question {
    font-family: var(--font-heading);
    font-size: var(--font-md);
    font-weight: 600;
    margin-bottom: 1.15rem;
    line-height: 1.4;
    color: var(--text-main);
}

.step-intro-text {
    color: var(--text-muted);
    font-size: var(--font-base);
    margin-bottom: 1.25rem;
}

.step-helper-text {
    color: var(--text-muted);
    font-size: var(--font-sm);
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

/* Option Cards (Grid Layout) */
.option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.option-card {
    cursor: pointer;
    position: relative;
}

.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-card-content {
    background: rgba(0, 0, 0, 0.015);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 0.95rem 0.65rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    transition: all var(--transition-fast);
    height: 100%;
}

.option-card-content i {
    font-size: var(--font-md);
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.option-title {
    font-family: var(--font-heading);
    font-size: var(--font-base);
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.2;
}

.option-desc {
    font-size: var(--font-sm);
    color: var(--text-muted);
    line-height: 1.3;
}

/* Option Hover/Checked states */
.option-card:hover .option-card-content {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.option-card input[type="radio"]:checked + .option-card-content {
    background: rgba(var(--accent-current-rgb), 0.04);
    border-color: var(--accent-current);
    box-shadow: 0 0 12px -3px rgba(var(--accent-current-rgb), 0.15);
}

.option-card input[type="radio"]:checked + .option-card-content i {
    color: var(--accent-current);
}

/* Option Pills */
.option-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.option-pill {
    flex: 1;
    cursor: pointer;
    position: relative;
}

.option-pill input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pill-content {
    display: block;
    background: rgba(0, 0, 0, 0.015);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    padding: 0.65rem 0.5rem;
    font-size: var(--font-sm);
    font-weight: 600;
    text-align: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.option-pill:hover .pill-content {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
}

.option-pill input[type="radio"]:checked + .pill-content {
    background: rgba(var(--accent-current-rgb), 0.04);
    border-color: var(--accent-current);
    color: var(--text-main);
    box-shadow: 0 0 10px -3px rgba(var(--accent-current-rgb), 0.15);
}

/* Text Inputs / Validation fields */
.form-fields {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-muted);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    font-size: var(--font-base);
    color: var(--text-muted);
    transition: color 0.3s;
}

.input-wrapper input {
    width: 100%;
    background: rgba(0, 0, 0, 0.015);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 0.75rem 1rem 0.75rem 2.6rem;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: var(--font-base);
    transition: all var(--transition-fast);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--accent-current);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(var(--accent-current-rgb), 0.12);
}

.input-wrapper input:focus + i {
    color: var(--accent-current);
}

/* GDPR Checkbox */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    accent-color: var(--accent-current);
}

.form-checkbox label {
    font-size: var(--font-sm);
    color: var(--text-muted);
    line-height: 1.4;
}

.form-checkbox label a {
    color: var(--accent-current);
    text-decoration: underline;
}

/* Validation Message */
.validation-message {
    font-size: var(--font-sm);
    color: #f87171;
    display: none;
    margin-top: 0.2rem;
}

.form-group.invalid .validation-message,
.form-checkbox.invalid .validation-message {
    display: block;
}

.form-group.invalid .input-wrapper input {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.01);
}

/* Action Buttons (Apple Capsule) */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-primary, .btn-secondary {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--font-base);
    border-radius: 100px; /* Capsule buttons */
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent-current);
    color: var(--text-main);
    border: none;
    box-shadow: 0 2px 8px rgba(var(--accent-current-rgb), 0.15);
    flex-grow: 1;
}

.btn-primary:hover:not(:disabled) {
    box-shadow: 0 4px 15px rgba(var(--accent-current-rgb), 0.35);
    filter: brightness(1.05);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-muted);
}

.btn-secondary:hover:not(:disabled) {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--text-main);
}

/* Success View Layout */
.success-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin: auto 0;
}

.success-icon-wrapper {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkmark-svg {
    width: 32px;
    height: 32px;
    stroke: #10b981;
    stroke-width: 3;
    fill: none;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke: #10b981;
    fill: none;
    animation: drawCircle 0.6s ease forwards;
}

.checkmark-check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: drawCheck 0.4s 0.35s ease forwards;
}

@keyframes drawCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

.success-content h2 {
    font-size: var(--font-lg);
    font-weight: 700;
}

.success-subtitle {
    font-size: var(--font-base);
    color: var(--text-muted);
}

.success-details {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}

.success-details p {
    font-size: var(--font-base);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.success-details p i {
    color: #10b981;
}

.success-note {
    font-size: var(--font-sm);
    color: var(--text-muted);
    line-height: 1.45;
}

.btn-reset {
    margin-top: 0.5rem;
    width: 100%;
}

/* ==========================================================================
   Interactive House Section (Light friendly Laser Overlays)
   ========================================================================== */

/* SVG overlay (Normal blending for light colors visibility) */
.svg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    mix-blend-mode: normal; /* Normal blending for light-mode gradient overlays */
}

/* Glowing Contours on Hover */
.glow-path {
    fill: none;
    stroke: url(#rainbow-laser);
    filter: url(#neon-glow);
    stroke-width: 2.0px;
    opacity: 0;
    transition: opacity var(--transition-smooth);
    pointer-events: none;
}

.showcase-section.hover-pv #outline-pv,
.showcase-section.hover-wallbox #outline-wallbox,
.showcase-section.hover-pump #outline-pump,
.hero-section.hover-pv #outline-pv,
.hero-section.hover-wallbox #outline-wallbox,
.hero-section.hover-pump #outline-pump {
    opacity: 0.55; /* Soft glowing hover boundaries */
}

/* Framing Outlines (Solid glowing boxes) */
.laser-path {
    fill: none;
    stroke-width: 1.5px;
    vector-effect: non-scaling-stroke;
    opacity: 0; /* Hidden by default */
    pointer-events: none;
    stroke-linejoin: round;
    transition: opacity var(--transition-smooth), stroke-width var(--transition-smooth), filter var(--transition-smooth);
}

.laser-pv {
    stroke: var(--accent-pv);
}

.laser-wallbox {
    stroke: var(--accent-wallbox);
}

.laser-pump {
    stroke: var(--accent-pump);
}

/* Lights up bright when hovered */
.showcase-section.hover-pv #laser-pv,
.hero-section.hover-pv #laser-pv {
    opacity: 0.95;
    stroke-width: 1.5px;
    filter: drop-shadow(0 0 3px var(--accent-pv)) drop-shadow(0 0 1px var(--accent-pv));
}

.showcase-section.hover-wallbox #laser-wallbox,
.hero-section.hover-wallbox #laser-wallbox {
    opacity: 0.95;
    stroke-width: 1.5px;
    filter: drop-shadow(0 0 3px var(--accent-wallbox)) drop-shadow(0 0 1px var(--accent-wallbox));
}

.showcase-section.hover-pump #laser-pump,
.hero-section.hover-pump #laser-pump {
    opacity: 0.95;
    stroke-width: 1.5px;
    filter: drop-shadow(0 0 3px var(--accent-pump)) drop-shadow(0 0 1px var(--accent-pump));
}

/* Selected state is highlighted bright */
.showcase-section.selected-pv #laser-pv,
.hero-section.selected-pv #laser-pv {
    opacity: 1 !important;
    stroke-width: 2.0px;
    filter: drop-shadow(0 0 4px var(--accent-pv)) drop-shadow(0 0 1.5px var(--accent-pv));
}

.showcase-section.selected-wallbox #laser-wallbox,
.hero-section.selected-wallbox #laser-wallbox {
    opacity: 1 !important;
    stroke-width: 2.0px;
    filter: drop-shadow(0 0 4px var(--accent-wallbox)) drop-shadow(0 0 1.5px var(--accent-wallbox));
}

.showcase-section.selected-pump #laser-pump,
.hero-section.selected-pump #laser-pump {
    opacity: 1 !important;
    stroke-width: 2.0px;
    filter: drop-shadow(0 0 4px var(--accent-pump)) drop-shadow(0 0 1.5px var(--accent-pump));
}

/* Hotspots */
.hotspot {
    fill: transparent;
    stroke: transparent;
    cursor: default;
    pointer-events: auto;
}

/* Static Dark Blue Plus Hotspot Markers (Page 2) - Minimalist & Elegant */
.plus-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    z-index: 15;
    cursor: default;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-core {
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 10px rgba(var(--accent-default-rgb), 0.8);
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.pulse-ring {
    position: absolute;
    border: 2px solid rgba(var(--accent-default-rgb), 0.5);
    border-radius: 50%;
    width: 12px;
    height: 12px;
    animation: pulseRing 2s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
    pointer-events: none;
    z-index: 1;
    transition: border-color var(--transition-fast);
}

.pulse-ring.ring-2 {
    animation-delay: 0.6s;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}



/* Set pulse dot colors dynamically based on current accent */
.showcase-section.hover-pv .plus-marker.marker-pv .pulse-core,
.showcase-section.selected-pv .plus-marker.marker-pv .pulse-core {
    box-shadow: 0 0 10px var(--accent-pv);
}
.showcase-section.hover-pv .plus-marker.marker-pv .pulse-ring,
.showcase-section.selected-pv .plus-marker.marker-pv .pulse-ring {
    border-color: var(--accent-pv);
}

.showcase-section.hover-wallbox .plus-marker.marker-wallbox .pulse-core,
.showcase-section.selected-wallbox .plus-marker.marker-wallbox .pulse-core {
    box-shadow: 0 0 10px var(--accent-wallbox);
}
.showcase-section.hover-wallbox .plus-marker.marker-wallbox .pulse-ring,
.showcase-section.selected-wallbox .plus-marker.marker-wallbox .pulse-ring {
    border-color: var(--accent-wallbox);
}

.showcase-section.hover-pump .plus-marker.marker-pump .pulse-core,
.showcase-section.selected-pump .plus-marker.marker-pump .pulse-core {
    box-shadow: 0 0 10px var(--accent-pump);
}
.showcase-section.hover-pump .plus-marker.marker-pump .pulse-ring,
.showcase-section.selected-pump .plus-marker.marker-pump .pulse-ring {
    border-color: var(--accent-pump);
}

/* Pinned Tooltips (Styled exactly like the requested mock) */
.pinned-tooltip {
    position: absolute;
    transform: translate(-50%, -100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 25;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-smooth), transform var(--transition-smooth), visibility var(--transition-smooth);
}

.pinned-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -100%) translateY(-5px);
}

.tooltip-bubble {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 3px 6px rgba(0, 0, 0, 0.03);
    white-space: nowrap;
}

.tooltip-bubble i {
    color: var(--accent-default);
    background: rgba(var(--accent-default-rgb), 0.06);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
}

/* Match tooltip icon color with product theme */
.tooltip-pv .tooltip-bubble i {
    color: var(--accent-pv);
    background: rgba(245, 158, 11, 0.08);
}
.tooltip-wallbox .tooltip-bubble i {
    color: var(--accent-wallbox);
    background: rgba(6, 182, 212, 0.08);
}
.tooltip-pump .tooltip-bubble i {
    color: var(--accent-pump);
    background: rgba(16, 185, 129, 0.08);
}

.tooltip-bubble span {
    color: #1d1d1f;
    font-weight: 700;
    font-size: var(--font-sm);
    letter-spacing: -0.01em;
}

.tooltip-pointer {
    width: 1.5px;
    height: 25px; /* Vertical pointer line length */
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.tooltip-pointer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    width: 4px;
    height: 4px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Services Section (Unsere Leistungen Grid)
   ========================================================================== */

.services-section {
    padding: 8rem 0;
    background-color: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 0;
    row-gap: 4.5rem;
    width: 100%;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 2rem;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        row-gap: 3rem;
    }
}

.service-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    position: relative;
    overflow: visible; /* Allows tag overlays to look perfect */
}

.service-card:hover {
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

/* Service Image block styling */
.service-image-wrapper {
    width: 100%;
    aspect-ratio: 1.777; /* 16:9 aspect ratio matching the screenshot */
    border-radius: 0; /* Sharp corners like screenshot */
    overflow: hidden;
    position: relative;
    background-color: #eaeaea;
}

.service-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-smooth);
}

.service-card:hover .service-image-wrapper img {
    transform: scale(1.05); /* Elegant zoom in on card hover */
}

.form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.submission-error {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(180, 35, 24, 0.28);
    border-radius: 0.75rem;
    background: rgba(180, 35, 24, 0.08);
    color: #8f1d14;
    font-size: 0.92rem;
    line-height: 1.5;
}

.submission-error a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

/* Badges overlay on top left of the image */
.service-image-tags {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

.image-tag-badge {
    background: rgba(12, 45, 72, 0.85); /* Premium dark blue background */
    color: #ffffff;
    font-family: var(--font-body);
    font-size: var(--font-sm);
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    backdrop-filter: blur(4px);
}

/* Card Content styling */
.service-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    width: 100%;
    padding: 2rem 4rem 0 4rem; /* 4rem padding on left and right for screen-wide breathing space */
}

@media (max-width: 992px) {
    .service-card-content {
        padding: 1.5rem 2rem 0 2rem; /* Reduce side padding for tablet/mobile device widths */
    }
}


.service-card h3 {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-muted);
    font-size: var(--font-base);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.service-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--font-base);
    color: var(--text-main);
    display: inline-block;
    padding-bottom: 2px;
    border-bottom: 1.5px solid var(--text-main);
    transition: all var(--transition-fast);
}

.service-link:hover {
    color: var(--accent-default);
    border-color: var(--accent-default);
}

/* ==========================================================================
   Advantages Section (USPs & Stats Apple Off-white)
   ========================================================================== */

.advantages-section {
    padding: 8rem 0;
    background-color: var(--bg-light);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.advantages-wrapper {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 5rem;
    align-items: start;
}

.advantages-intro h2 {
    font-size: var(--font-2xl);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.advantages-intro p {
    color: var(--text-muted);
    font-size: var(--font-base);
    margin-bottom: 3rem;
}

/* Stats metrics styling */
.advantages-stats {
    display: flex;
    gap: 2.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: var(--font-2xl);
    font-weight: 900;
    color: var(--accent-default);
    line-height: 1;
}

.stat-dekra {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    color: #00723F !important; /* DEKRA Green */
}

.dekra-logo-icon {
    width: 0.62em;
    height: 0.76em;
    fill: #00723F;
    display: inline-block;
    flex-shrink: 0;
}

.stat-label {
    font-size: var(--font-sm);
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Adv Cards block */
.advantages-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.advantage-card {
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}

.advantage-card:hover {
    border-color: rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

.adv-icon {
    font-size: var(--font-md);
    color: var(--accent-default);
    background: rgba(var(--accent-default-rgb), 0.05);
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.adv-info h3 {
    font-size: var(--font-md);
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.adv-info p {
    color: var(--text-muted);
    font-size: var(--font-base);
    line-height: 1.5;
}

/* ==========================================================================
   Career Section (Stellenangebote)
   ========================================================================== */

.career-section {
    padding: 8rem 0;
    background-color: var(--bg-white);
}

.job-offers-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 2rem;
    margin-top: 3.5rem;
    margin-bottom: 3.5rem;
}

.job-card {
    background: var(--bg-light);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.15rem;
    transition: all var(--transition-smooth);
}

.job-card:hover {
    background: var(--bg-white);
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
}

.job-badge {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.18);
    color: #10b981;
    font-size: var(--font-sm);
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.job-card h3 {
    font-size: var(--font-md);
    font-weight: 700;
}

.job-card p {
    color: var(--text-muted);
    font-size: var(--font-base);
    line-height: 1.5;
    flex-grow: 1;
}

.job-apply-btn {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-main);
    padding: 0.75rem 1rem;
    border-radius: 100px; /* Capsule buttons */
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--font-base);
    text-align: center;
    transition: all var(--transition-fast);
}

.job-card:hover .job-apply-btn {
    background: var(--accent-default);
    color: var(--text-main);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(var(--accent-default-rgb), 0.25);
}

.career-footer-text {
    font-size: var(--font-base);
    color: var(--text-muted);
}

.career-footer-text a {
    color: var(--text-main);
    text-decoration: underline;
}

/* ==========================================================================
   Footer Section (Locations & Contact Info Apple Off-white)
   ========================================================================== */

.main-footer {
    background-color: var(--bg-light);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 5rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
    gap: 3.5rem;
    margin-bottom: 4rem;
}

.footer-info-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-desc {
    color: var(--text-muted);
    font-size: var(--font-base);
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 0.85rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-base);
    color: var(--text-muted);
}

.social-links a:hover {
    background: var(--accent-default);
    color: var(--text-main);
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(var(--accent-default-rgb), 0.2);
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cta-phone-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.85rem 1.5rem;
    border-radius: 100px;
    background: #ffffff;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: var(--font-base);
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.16);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cta-phone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.22);
}

/* Do not expose placeholder social actions until real profile URLs are set. */
.social-links a[href="#"] {
    display: none;
}

.footer-links-col h3, 
.footer-contact-col h3, 
.footer-locations-col h3 {
    font-size: var(--font-base);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-col ul a {
    font-size: var(--font-base);
    color: var(--text-muted);
}

.footer-links-col ul a:hover {
    color: var(--text-main);
}

.footer-contact-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: var(--font-base);
    color: var(--text-muted);
}

.contact-item i {
    color: var(--accent-default);
    margin-top: 0.25rem;
}

.footer-locations-col p {
    font-size: var(--font-base);
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.locations-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.locations-list li {
    font-size: var(--font-base);
    color: var(--text-muted);
    position: relative;
    padding-left: 1rem;
}

.locations-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-default);
}

.locations-list li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.locations-list li a:hover {
    color: var(--text-main);
}

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 2rem;
}

.footer-bottom-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    font-size: 0.95rem; /* Increased for readability */
    color: var(--text-muted);
}

.footer-legal-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.footer-legal-links a {
    font-size: 0.95rem; /* Increased for readability */
    color: var(--text-muted);
}

.footer-legal-links a:hover {
    color: var(--text-main);
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nexrum-credit {
    font-family: var(--font-heading);
    font-size: 0.95rem; /* Increased for readability */
    color: var(--text-muted);
    margin: 0;
    letter-spacing: 0.02em;
}

.nexrum-credit a {
    font-family: Georgia, serif;
    font-weight: 800;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.nexrum-credit a:hover {
    color: var(--accent-default);
}


/* ==========================================================================
   Responsive Scaling (Media Queries)
   ========================================================================== */

@media (max-width: 1200px) {
    .hero-headline {
        font-size: var(--font-xl);
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .nav-menu, .nav-actions .nav-cta-btn {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* Toggle state animation */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* Stacking showcase layouts vertically on mobile - Canvas turns inline */
    .showcase-section {
        height: auto;
        padding-top: 6rem;
        padding-bottom: 3rem;
        display: flex;
        flex-direction: column;
    }
    
    .house-canvas {
        display: none; /* Hide interactive house components image on mobile screens */
    }

    .hero-container, .showcase-container {
        position: relative;
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        z-index: 10;
        pointer-events: auto;
        padding: 0 1.5rem;
    }
    
    .hero-content-card {
        display: contents;
    }
    
    .badge-new {
        order: 1;
        margin-top: 1rem;
        align-self: flex-start;
    }
    
    .hero-headline {
        order: 2;
        margin-top: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .lead-pane {
        order: 3;
        position: relative;
        right: 0;
        top: 0;
        transform: none;
        width: 100%;
        height: auto;
        margin-top: 2rem;
        pointer-events: auto;
    }
    
    .hero-subtitle {
        order: 4;
        margin-top: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-usps {
        order: 5;
        margin-bottom: 2rem;
    }
    
    .hero-badges-row {
        order: 6;
        margin-bottom: 2rem;
    }
    
    .advantages-wrapper {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .advantages-intro {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 16px; /* Scales down all fonts proportionally on mobile */
    }

    .container {
        padding: 0 1.5rem;
    }

    .hero-headline {
        font-size: var(--font-xl);
    }
    
    .section-header h2 {
        font-size: var(--font-xl);
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom-wrapper {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .footer-bottom-right {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .footer-legal-links {
        justify-content: center;
    }
    
    .option-row {
        flex-direction: column;
    }
    
    .advantages-stats {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .video-intro-content {
        width: calc(100% - 2rem);
    }

    .video-main-heading {
        width: 100%;
        max-width: 100%;
        font-size: clamp(2rem, 9.5vw, 2.35rem);
        line-height: 1.12;
        letter-spacing: -0.025em;
    }

    .hero-cta-group {
        width: 100%;
        flex-direction: column;
    }

    .cta-scroll-btn,
    .cta-phone-btn {
        width: min(100%, 290px);
        justify-content: center;
    }

    .hero-headline {
        font-size: var(--font-lg);
    }
    
    .lead-card {
        padding: 1.75rem 1.25rem;
    }
    
    .option-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }
}

/* Optimization for Medium-Large Screens and Laptops (1441px to 1600px) */
@media (min-width: 1441px) and (max-width: 1600px) {
    html {
        font-size: 15px; /* Scales all rem dimensions down proportionally */
    }

    .hero-content-card {
        width: 310px;
        left: 30px;
        top: 85px;
        height: calc(100vh - 160px);
        padding: 1.5rem 1.15rem 2.25rem 1.15rem;
    }

    .lead-pane {
        width: 310px;
        right: 30px;
        top: 85px;
        height: calc(100vh - 160px);
    }

    .lead-card {
        padding: 1.5rem 1.15rem;
    }
}

/* Optimization for 13-inch and 14-inch Laptops (1201px to 1440px) */
@media (min-width: 1201px) and (max-width: 1440px) {
    html {
        font-size: 13.5px; /* Proportional scaling down of font size */
    }

    .hero-content-card {
        width: 280px;
        left: 20px;
        top: 75px;
        height: calc(100vh - 130px);
        padding: 1.25rem 0.95rem 2rem 0.95rem;
    }

    .lead-pane {
        width: 280px;
        right: 20px;
        top: 75px;
        height: calc(100vh - 130px);
    }

    .lead-card {
        padding: 1.25rem 0.95rem;
    }
    
    /* Text size and spacing overrides inside cards for dynamic fit */
    .badge-new {
        font-size: var(--font-xs) !important;
        padding: 0.25rem 0.65rem;
        margin-bottom: 0.5rem;
    }

    .hero-headline {
        font-size: var(--font-lg) !important;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: var(--font-sm) !important;
        line-height: 1.35;
        margin-bottom: 1rem;
    }

    .hero-usps {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .usp-icon {
        width: 32px;
        height: 36px;
        font-size: var(--font-sm);
    }

    .usp-text h3 {
        font-size: var(--font-base) !important;
    }

    .usp-text p {
        font-size: var(--font-sm) !important;
        line-height: 1.25;
    }

    .trust-badge-mini {
        font-size: var(--font-xs) !important;
        padding: 0.3rem 0.55rem;
    }

    .trust-badge-mini i {
        font-size: var(--font-sm) !important;
    }

    .intro-content h2 {
        font-size: var(--font-md) !important;
    }

    .step-question {
        font-size: var(--font-base) !important;
    }
}

/* Optimization for Small Laptops / Netbooks (993px to 1200px) */
@media (min-width: 993px) and (max-width: 1200px) {
    html {
        font-size: 12px; /* Proportional scaling down for compact displays */
    }

    .hero-content-card {
        width: 250px;
        left: 15px;
        top: 60px;
        height: calc(100vh - 100px);
        padding: 1rem 0.75rem 1.5rem 0.75rem;
    }

    .lead-pane {
        width: 250px;
        right: 15px;
        top: 60px;
        height: calc(100vh - 100px);
    }

    .lead-card {
        padding: 1rem 0.75rem;
    }
    
    /* Extra spacing and text sizing tweaks for extremely compact sidebar view */
    .badge-new {
        font-size: var(--font-xs) !important;
        padding: 0.2rem 0.55rem;
        margin-bottom: 0.4rem;
    }

    .hero-headline {
        font-size: var(--font-md) !important;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: var(--font-sm) !important;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .hero-usps {
        gap: 0.4rem;
        margin-bottom: 0.75rem;
    }

    .usp-icon {
        width: 28px;
        height: 32px;
        font-size: var(--font-xs);
    }

    .usp-text h3 {
        font-size: var(--font-sm) !important;
    }

    .usp-text p {
        font-size: var(--font-xs) !important;
        line-height: 1.2;
    }

    .trust-badge-mini {
        font-size: var(--font-xs) !important;
        padding: 0.25rem 0.45rem;
    }

    .trust-badge-mini i {
        font-size: var(--font-xs) !important;
    }

    .intro-content h2 {
        font-size: var(--font-base) !important;
    }

    .step-question {
        font-size: var(--font-sm) !important;
    }
    
    /* Keep selector-btn styled nicely on mobile screens */
    .selector-btn {
        padding: 1.1rem 0.85rem;
        gap: 0.5rem;
    }
}

/* ==========================================================================
   About Us Page Styles (ueber-uns.html)
   ========================================================================== */

.about-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('assets/about_hero_bg.png') no-repeat center center;
    background-size: cover;
    padding: 8rem 0 4rem 0;
    color: var(--text-inverse);
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 1.5rem;
}

.about-hero-content h1 {
    font-size: var(--font-4xl);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-inverse);
    letter-spacing: -0.03em;
}

.about-hero-content p {
    font-size: var(--font-lg);
    line-height: 1.45;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.about-intro-section {
    padding: 7rem 0;
    background-color: var(--bg-white);
}

.about-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.about-section-header h2 {
    font-size: clamp(2rem, 7vw, var(--font-3xl));
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: #1d1d1f;
    overflow-wrap: anywhere;
}

.about-section-header p {
    color: var(--text-main); /* Rich readable black text */
    font-size: var(--font-base);
    line-height: 1.55;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.about-card {
    background: var(--bg-light);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all var(--transition-fast);
    height: 100%;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(var(--accent-default-rgb), 0.15);
}

.about-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(var(--accent-default-rgb), 0.06);
    color: var(--accent-default);
    font-size: var(--font-md);
}

.about-card h3 {
    font-size: var(--font-md);
    font-weight: 700;
    color: #1d1d1f;
}

.about-card p {
    color: var(--text-main); /* Rich readable black text */
    font-size: var(--font-base); /* Standard body font size */
    line-height: 1.55;
}

.about-split-section {
    padding: 7rem 0;
    background-color: var(--bg-light);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.about-split-section.white-bg {
    background-color: var(--bg-white);
}

.about-split-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-split-text {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-split-text h2 {
    font-size: var(--font-3xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1d1d1f;
}

.about-split-text h6 {
    font-size: var(--font-md);
    color: var(--accent-default);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: -0.5rem;
}

.about-split-text p {
    color: var(--text-muted);
    font-size: var(--font-base);
    line-height: 1.5;
}

.about-split-image img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    display: block;
    object-fit: cover;
    max-height: 450px;
}

.about-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1rem;
}

.about-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
    font-weight: 500;
    font-size: var(--font-base);
}

.about-list-item i {
    color: var(--accent-pump);
    font-size: var(--font-md);
}

/* Responsive adjustments for subpage */
@media (max-width: 1200px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .about-split-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-split-wrapper.reverse {
        flex-direction: column-reverse;
        display: flex;
    }
}

@media (max-width: 576px) {
    .about-hero {
        min-height: 50vh;
        padding: 6rem 0 3rem 0;
    }
    
    .about-hero-content h1 {
        font-size: var(--font-2xl);
    }
    
    .about-hero-content p {
        font-size: var(--font-base);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-split-section {
        padding: 4rem 0;
    }
}

/* ==========================================
   Services Page Styles (leistungen.html)
   ========================================== */

.services-hero {
    background: url('assets/about_hero_bg.png') no-repeat center center;
    background-size: cover;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--bg-white);
    text-align: center;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.services-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    min-width: 0;
    max-width: 800px;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.services-hero-content h1 {
    font-size: clamp(1.4rem, 7vw, var(--font-xl));
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--bg-white);
}

.services-hero-content p {
    font-size: var(--font-md);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    line-height: 1.45;
}

@media (max-width: 480px) {
    .services-hero-content {
        padding-inline: 1.25rem !important;
    }

    .services-hero-content h1 {
        font-size: clamp(1.45rem, 7vw, 2rem) !important;
    }
}

/* Accordion Section */
.services-accordion-section {
    padding: 7rem 0;
    background-color: var(--bg-white);
}

.accordion-container {
    max-width: 900px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1.5rem;
}

.accordion-item {
    background: var(--bg-light);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all var(--transition-fast) ease-in-out;
}

.accordion-item:hover {
    border-color: rgba(var(--accent-default-rgb), 0.15);
    box-shadow: var(--box-shadow-hover);
}

.accordion-header {
    padding: 1.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    transition: background-color var(--transition-fast);
}

.accordion-header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.accordion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(var(--accent-default-rgb), 0.06);
    color: var(--accent-default);
    font-size: var(--font-md);
    transition: all var(--transition-fast);
}

.accordion-title {
    font-size: var(--font-md);
    font-weight: 700;
    color: #1d1d1f;
}

.accordion-indicator {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: transform var(--transition-fast) ease-in-out;
}

.accordion-item.active {
    background: var(--bg-white);
    border-color: var(--accent-default);
    box-shadow: var(--box-shadow-hover);
}

.accordion-item.active .accordion-icon {
    background: var(--accent-default);
    color: var(--bg-white);
}

.accordion-item.active .accordion-indicator {
    transform: rotate(180deg);
    color: var(--accent-default);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.accordion-body,
.accordion-inner-content {
    padding: 0 2rem 2rem 5.7rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .accordion-body,
    .accordion-inner-content {
        padding: 0 1.5rem 1.8rem 1.5rem;
    }
}

.accordion-text {
    color: var(--text-main); /* Rich black text for readability */
    font-size: var(--font-base); /* Standard readable body text size */
    line-height: 1.65;
}

.accordion-feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

@media (max-width: 576px) {
    .accordion-feature-list {
        grid-template-columns: 1fr;
    }
}

.accordion-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.accordion-feature-item i {
    color: #30d158;
    font-size: 1rem;
    margin-top: 0.15rem;
}

.accordion-feature-item span {
    font-size: var(--font-base); /* Standard readable body text size */
    color: var(--text-main); /* Rich black text */
    line-height: 1.5;
}

.accordion-cta {
    margin-top: 1.5rem;
    align-self: flex-start;
}

/* Accordion Section Block for Careers page */
.accordion-section-block {
    margin-bottom: 0.5rem;
}

.accordion-section-block h4 {
    font-size: var(--font-base);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.accordion-section-block h4 i {
    color: var(--accent-default);
    font-size: 1.1rem;
}

/* Grouping badge and indicator in header */
.accordion-header-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-left: auto;
    flex-shrink: 0;
}

.accordion-badge {
    font-size: var(--font-sm);
    color: var(--text-muted);
    font-weight: 600;
    background: rgba(0, 0, 0, 0.04);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.accordion-item.active .accordion-badge {
    background: rgba(var(--accent-default-rgb), 0.1);
    color: var(--text-main);
}

/* Careers Page USP List with proper indents & hyphenation */
.usp-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.usp-list li {
    position: relative;
    padding-left: 2rem;
    font-size: var(--font-base);
    color: var(--text-main);
    line-height: 1.6;
    text-align: left;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    word-break: break-word;
}

.usp-list li i {
    position: absolute;
    left: 0;
    top: 0.25rem;
    font-size: 1.1rem;
    color: var(--text-main);
}

/* Mobile Optimizations for Accordion */
@media (max-width: 576px) {
    .accordion-header {
        padding: 1.2rem 1rem;
    }
    .accordion-header-left {
        gap: 0.8rem;
    }
    .accordion-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        border-radius: 8px;
    }
    .accordion-title {
        font-size: var(--font-base);
    }
    .accordion-badge {
        font-size: var(--font-xs);
        padding: 0.2rem 0.5rem;
    }
    .accordion-inner-content,
    .accordion-body {
        padding: 0 1rem 1.5rem 1rem;
    }
    .usp-list li {
        padding-left: 1.8rem;
        font-size: var(--font-sm);
    }
    .usp-list li i {
        font-size: 1rem;
        top: 0.2rem;
    }
}

/* Timeline Workflow Section */
.workflow-section {
    padding: 7rem 0;
    background-color: var(--bg-light);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.workflow-steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

@media (max-width: 992px) {
    .workflow-steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .workflow-steps-grid {
        grid-template-columns: 1fr;
    }
}

.workflow-step-card {
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
    transition: all var(--transition-fast);
    height: 100%;
}

.workflow-step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(var(--accent-default-rgb), 0.15);
}

.workflow-step-number {
    position: absolute;
    top: -1.5rem;
    left: 1.8rem;
    width: 3rem;
    height: 3rem;
    background: var(--accent-default);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(var(--accent-default-rgb), 0.3);
}

.workflow-step-card h3 {
    font-size: var(--font-md);
    font-weight: 700;
    color: #1d1d1f;
    margin-top: 0.5rem;
}

.workflow-step-card p {
    color: var(--text-muted);
    font-size: var(--font-sm);
    line-height: 1.5;
}

/* ==========================================
   5. Hero Title Stagger Animation (Webflow-Style)
   ========================================== */
.char-span {
    display: inline-block;
    opacity: 0;
    transform: translate3d(25px, 0, 0);
    filter: blur(4px);
    will-change: transform, opacity;
    transition: 
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
        opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
        filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--char-index) * 18ms);
}

/* Avoid space characters collapsing or wrapping strangely */
.char-span.char-space {
    white-space: nowrap;
}

/* Trigger state added via JavaScript after splitting text */
.animate-active .char-span {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
}

/* Special handling for gradient text elements to preserve continuous linear gradient */
.gradient-text .char-span {
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    color: inherit !important;
    display: inline-block;
}

/* ==========================================
   6. Homepage Career Layout Enhancements
   ========================================== */
.career-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    gap: 2rem;
    text-align: left;
}

.career-footer-row .career-footer-text {
    margin-bottom: 0;
    max-width: 65%;
}

.btn-more-blue {
    background: var(--accent-default);
    color: var(--text-main) !important;
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--font-base);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: none;
    box-shadow: 0 4px 12px rgba(var(--accent-default-rgb), 0.2);
    white-space: nowrap;
}

.btn-more-blue:hover {
    background: var(--accent-default);
    filter: brightness(1.08);
    box-shadow: 0 6px 16px rgba(var(--accent-default-rgb), 0.3);
}

.btn-more-blue i {
    transition: transform var(--transition-fast);
}

.btn-more-blue:hover i {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .career-footer-row {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 1.2rem;
    }
    .career-footer-row .career-footer-text {
        max-width: 100%;
    }
}

/* ==========================================
   7. Career Subpage Styles (karriere.html)
   ========================================== */
.career-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('assets/about_hero_bg.png') no-repeat center center;
    background-size: cover;
    padding: 8rem 0 4rem 0;
    color: var(--text-inverse);
}

.career-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.career-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 1.5rem;
}

.career-hero-content h1 {
    font-size: var(--font-4xl);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-inverse);
    letter-spacing: -0.03em;
}

.career-hero-content p {
    font-size: var(--font-lg);
    line-height: 1.45;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Application Form Custom Styles */
.career-form-section {
    padding: 6rem 0;
    background: var(--bg-light);
}

.career-form-container {
    max-width: 700px;
    margin: 0 auto;
}

/* Form styling updates */
.form-captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.captcha-img-box {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 0.3em;
    user-select: none;
    color: #4b5563;
    text-decoration: line-through;
    font-style: italic;
    background-image: linear-gradient(45deg, transparent 45%, rgba(0,0,0,0.1) 45%, rgba(0,0,0,0.1) 55%, transparent 55%);
    background-size: 10px 10px;
}

.captcha-refresh-btn {
    background: none;
    border: none;
    color: var(--accent-default);
    cursor: pointer;
    font-size: var(--font-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.captcha-refresh-btn:hover {
    text-decoration: underline;
}

/* Input select adjustments */
.input-wrapper select {
    width: 100%;
    background: rgba(0, 0, 0, 0.015);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 0.75rem 1rem 0.75rem 2.6rem;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: var(--font-base);
    transition: all var(--transition-fast);
    appearance: none;
    cursor: pointer;
}

.input-wrapper select:focus {
    outline: none;
    border-color: var(--accent-default);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(var(--accent-default-rgb), 0.12);
}

.input-wrapper select:focus + i {
    color: var(--accent-default);
}

/* Styled file upload */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.01);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.file-upload-wrapper:hover {
    background: rgba(var(--accent-default-rgb), 0.02);
    border-color: rgba(var(--accent-default-rgb), 0.3);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: var(--font-sm);
}

.file-upload-info i {
    font-size: var(--font-2xl);
    color: var(--accent-default);
    margin-bottom: 0.25rem;
}

.file-upload-name {
    font-weight: 600;
    color: var(--text-main);
    word-break: break-all;
}

/* Date input */
.input-wrapper input[type="date"] {
    padding-left: 2.6rem;
    font-family: var(--font-body);
}

/* ==========================================
   Google Reviews Slider Section
   ========================================== */
.google-reviews-section {
    padding: 5rem 0;
    background: #faf8f2; /* Soft warm Apple-style neutral to highlight the section */
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.reviews-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    align-items: center;
}

.reviews-summary-card {
    background: #ffffff; /* Contrast against warm background */
    border: 1px solid rgba(var(--accent-default-rgb), 0.25); /* Gold tinted border */
    border-radius: var(--border-radius-lg);
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04), 0 4px 20px rgba(var(--accent-default-rgb), 0.02);
}

.google-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.google-logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: #4b5563;
}

.rating-number-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.25rem 0;
}

.rating-score {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #000000;
}

.rating-stars-gold i, .review-stars-gold i {
    color: var(--accent-default);
    font-size: 1.15rem;
    margin-right: 2px;
}

.rating-stats-text {
    font-size: var(--font-sm);
    color: var(--text-muted);
}

.reviews-btn {
    width: 100%;
    margin-top: 0.5rem;
}

.reviews-slider-container {
    overflow: hidden;
    position: relative;
    padding-bottom: 3.5rem;
    width: 100%;
    max-width: 100%;
}

.reviews-slider-track {
    display: flex;
    gap: 1.5rem;
    transition: transform var(--transition-smooth);
    will-change: transform;
}

.review-slide-card {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    flex-shrink: 0;
    background: #ffffff; /* Pure white background to pop on warm section background */
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 18px;
    padding: 2rem; /* Increased padding */
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04); /* Enhanced shadow */
    height: auto;
}

.review-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar-placeholder {
    font-size: 2.5rem;
    color: #cbd5e1;
}

.reviewer-meta {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.reviewer-name {
    font-size: var(--font-base);
    font-weight: 700;
    color: #000000;
}

.review-date {
    font-size: var(--font-xs);
    color: var(--text-muted);
}

.review-stars-gold {
    align-self: flex-start;
}

.review-text {
    font-size: var(--font-sm);
    color: #333336;
    line-height: 1.55;
}

.slider-arrows-row {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    gap: 0.75rem;
}

.slider-arrow-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slider-arrow-btn:hover {
    background: var(--accent-default);
    color: var(--text-main);
    border-color: var(--accent-default);
}

/* ==========================================
   Warum ENERGY TEC (Advantages Cards)
   ========================================== */
.advantages-grid-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.why-card {
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--border-radius-lg);
    padding: 2.25rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    box-shadow: var(--box-shadow-apple);
    transition: all var(--transition-fast);
}

.why-card:hover {
    border-color: rgba(var(--accent-default-rgb), 0.15);
    box-shadow: var(--box-shadow-hover);
}

.why-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(var(--accent-default-rgb), 0.06);
    color: var(--accent-default);
    font-size: 1.25rem;
}

.why-card h3 {
    font-size: var(--font-md);
    font-weight: 700;
    color: #1d1d1f;
}

.why-card p {
    color: var(--text-main);
    font-size: var(--font-base);
    line-height: 1.5;
}

/* 7th card centering trick for grid layout */
.advantages-grid-cards > .why-card:last-child {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
}

@media (max-width: 1200px) {
    .advantages-grid-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    .advantages-grid-cards > .why-card:last-child {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .advantages-grid-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .advantages-grid-cards > .why-card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .advantages-grid-cards {
        grid-template-columns: 1fr;
    }
    .advantages-grid-cards > .why-card:last-child {
        grid-column: span 1;
    }
}

/* ==========================================
   Ablauf Timeline Section (Vertical)
   ========================================== */
.timeline-section {
    padding: 7rem 0;
    background: var(--bg-light);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.timeline-vertical {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.timeline-line {
    position: absolute;
    left: 28px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: rgba(var(--accent-default-rgb), 0.15);
}

.timeline-step-item {
    position: relative;
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.timeline-badge-number {
    position: relative;
    z-index: 2;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--accent-default);
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(var(--accent-default-rgb), 0.3);
    flex-shrink: 0;
}

.timeline-content-card {
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: var(--border-radius-lg);
    padding: 2.25rem 2.5rem;
    box-shadow: var(--box-shadow-apple);
    flex-grow: 1;
    min-width: 0;
    transition: all var(--transition-fast);
}

.timeline-content-card:hover {
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(var(--accent-default-rgb), 0.12);
}

.timeline-header-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.75rem;
}

.timeline-header-row i {
    color: var(--accent-default);
    font-size: 1.25rem;
}

.timeline-header-row h3 {
    font-size: var(--font-lg);
    font-weight: 700;
    color: #1d1d1f;
    min-width: 0;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.timeline-content-card p {
    font-size: var(--font-base);
    color: var(--text-main);
    line-height: 1.55;
}

@media (max-width: 576px) {
    .timeline-vertical {
        gap: 2rem;
    }
    .timeline-line {
        left: 20px;
    }
    .timeline-badge-number {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
    .timeline-step-item {
        gap: 1.25rem;
    }
    .timeline-content-card {
        padding: 1.25rem;
    }
    .timeline-header-row h3 {
        font-size: var(--font-md);
    }
}

/* ==========================================
   Hersteller Section (Partners)
   ========================================== */
.manufacturers-section {
    padding: 7rem 0;
    background: var(--bg-white);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.manufacturers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.brand-logo-card {
    position: relative;
    background: var(--bg-light);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: var(--border-radius-lg);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.brand-logo-card:hover {
    background: var(--bg-white);
    border-color: rgba(var(--accent-default-rgb), 0.2);
    box-shadow: var(--box-shadow-hover);
}

.brand-name-logo {
    font-family: var(--font-heading);
    font-size: var(--font-xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1d1d1f;
    opacity: 0.75;
    transition: all var(--transition-fast);
}

.brand-logo-card:hover .brand-name-logo {
    color: var(--accent-default);
    opacity: 1;
}

/* Brand Details Tooltip on Hover */
.brand-tooltip-detail {
    position: absolute;
    bottom: 135%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 290px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.brand-tooltip-detail::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.94) transparent transparent transparent;
}

.brand-logo-card:hover .brand-tooltip-detail {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.brand-tooltip-detail h4 {
    font-size: var(--font-base);
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 0.4rem;
}

.brand-tooltip-detail p {
    font-size: var(--font-xs);
    color: var(--text-main);
    line-height: 1.45;
    margin-bottom: 0.35rem;
}

.brand-tooltip-detail p:last-child {
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .manufacturers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .manufacturers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .brand-tooltip-detail {
        display: none;
    }
}

/* ==========================================
   Referenzen Section (Projects Gallery)
   ========================================== */
.references-section {
    padding: 7rem 0;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.references-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--bg-white);
    color: var(--text-main);
    font-size: var(--font-base);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-default);
    color: var(--text-main);
    border-color: var(--accent-default);
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.reference-card {
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--box-shadow-apple);
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.reference-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(var(--accent-default-rgb), 0.15);
}

.ref-image-wrapper {
    position: relative;
    height: 180px;
    width: 100%;
}

.ref-image-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Beautiful modern CSS-only gradients to look like premium illustrations/renderings */
.ref-image-placeholder.pv-res {
    background-image: url('assets/ref-pv-res.webp');
}

.ref-image-placeholder.pv-com {
    background-image: url('assets/ref-pv-com.webp');
}

.ref-image-placeholder.pv-pump {
    background-image: url('assets/ref-pv-pump.webp');
}

.ref-image-placeholder.pv-wb {
    background-image: url('assets/ref-pv-wb.webp');
}

.ref-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    font-size: var(--font-xs);
    font-weight: 700;
    color: #1d1d1f;
}

.ref-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex-grow: 1;
}

.ref-location {
    font-size: var(--font-xs);
    color: var(--accent-default);
    font-weight: 700;
}

.ref-card-content h3 {
    font-size: var(--font-base);
    font-weight: 700;
    color: #000000;
    line-height: 1.35;
}

.ref-summary-desc {
    font-size: var(--font-sm);
    color: var(--text-main);
    line-height: 1.45;
}

.ref-action-link {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--accent-default);
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: color var(--transition-fast);
}

.reference-card:hover .ref-action-link {
    color: var(--text-main);
}

/* ==========================================
   References Detail Modal
   ========================================== */
.ref-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.ref-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    transition: opacity 0.3s ease;
}

.ref-modal-card {
    position: relative;
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    z-index: 2002;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.ref-modal.active .ref-modal-card {
    transform: translateY(0);
    opacity: 1;
}

.ref-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-fast);
}

.ref-modal-close:hover {
    background: #000000;
    color: #ffffff;
}

.ref-modal-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
}

.ref-modal-image-placeholder {
    height: 100%;
    min-height: 380px;
    background-size: cover;
    background-position: center;
}

/* Modal background images mirroring cards */
.ref-modal-image-placeholder.pv-res {
    background-image: url('assets/ref-pv-res.webp');
}

.ref-modal-image-placeholder.pv-com {
    background-image: url('assets/ref-pv-com.webp');
}

.ref-modal-image-placeholder.pv-pump {
    background-image: url('assets/ref-pv-pump.webp');
}

.ref-modal-image-placeholder.pv-wb {
    background-image: url('assets/ref-pv-wb.webp');
}

.ref-modal-info {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.modal-location {
    font-size: var(--font-xs);
    font-weight: 700;
    color: var(--accent-default);
}

.ref-modal-info h3 {
    font-size: var(--font-xl);
    font-weight: 800;
    color: #000000;
    line-height: 1.25;
}

.modal-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1rem 0;
}

.modal-stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.modal-stat-item .stat-label {
    font-size: var(--font-xs);
    color: var(--text-muted);
}

.modal-stat-item strong {
    font-size: var(--font-sm);
    color: #000000;
    font-weight: 700;
}

.modal-desc {
    font-size: var(--font-base);
    color: var(--text-main);
    line-height: 1.55;
}

@media (max-width: 1200px) {
    .references-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .references-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ref-modal-body {
        grid-template-columns: 1fr;
    }
    .ref-modal-image-placeholder {
        min-height: 200px;
    }
    .ref-modal-info {
        padding: 2rem 1.8rem;
    }
}

@media (max-width: 576px) {
    .references-grid {
        grid-template-columns: 1fr;
    }
    .modal-stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* ==========================================
   FAQ Section (Accordion layout)
   ========================================== */
.faq-section {
    padding: 7rem 0;
    background: var(--bg-light);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.faq-categories-wrapper {
    max-width: 860px;
    margin: 3.5rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.faq-category-block {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-cat-title {
    font-size: var(--font-lg);
    font-weight: 800;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 0.6rem;
}

.faq-cat-title i {
    color: var(--accent-default);
    font-size: 1.15rem;
}

.faq-accordion-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.015);
    transition: all var(--transition-fast);
}

.faq-item:hover, .faq-item.active {
    border-color: rgba(var(--accent-default-rgb), 0.15);
    box-shadow: var(--box-shadow-hover);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.25rem 1.75rem;
    font-size: var(--font-base);
    font-weight: 700;
    color: #1d1d1f;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color var(--transition-fast);
}

.faq-question::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(180deg);
    color: var(--accent-default);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-answer p {
    padding: 0 1.75rem 1.25rem 1.75rem;
    font-size: var(--font-base);
    color: var(--text-main);
    line-height: 1.6;
}

/* Mobile adjustments for Google Reviews Section */
@media (max-width: 992px) {
    .reviews-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .reviews-summary-card {
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
        padding: 1.75rem 1.5rem;
    }
}

/* ==========================================
   Legal Pages (Impressum & Datenschutz)
   ========================================== */
.legal-page-section {
    padding: 10rem 0 6rem;
    background-color: #ffffff; /* Pure white background */
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.legal-card {
    background: #ffffff;
    padding: 0; /* Flat layout */
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .legal-page-section {
        padding: 8rem 0 4rem;
    }
    .legal-card {
        padding: 0 1.5rem;
    }
}

.legal-card h1 {
    font-size: clamp(1.75rem, 7vw, var(--font-2xl));
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.legal-card h2 {
    font-size: var(--font-md);
    font-weight: 700;
    color: var(--text-main);
    margin-top: 2rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 0.4rem;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.legal-card p, .legal-card ul {
    font-size: var(--font-base);
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.2rem;
    overflow-wrap: anywhere;
}

.legal-card ul {
    padding-left: 1.5rem;
    list-style-type: disc;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legal-card a {
    color: var(--accent-default);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.legal-card a:hover {
    color: var(--text-main);
}

/* bg-wappen-card removed */

/* Subpage Header overrides (always scrolled style for pages without the main hero section) */
body:not(:has(.hero-section)) .main-header {
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.3) 60%, rgba(255, 255, 255, 0.45) 100%) !important;
    backdrop-filter: blur(24px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 0.85rem 0 !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.04), 
        inset 0 1px 0 rgba(255, 255, 255, 0.55), 
        inset 0 -1px 0 rgba(0, 0, 0, 0.01) !important;
}

body:not(:has(.hero-section)) .main-header .logo-img {
    height: 42px !important;
    filter: none !important; /* Disable white filter */
}

body:not(:has(.hero-section)) .main-header .nav-link {
    color: var(--text-muted) !important;
}

body:not(:has(.hero-section)) .main-header .nav-link:hover,
body:not(:has(.hero-section)) .main-header .nav-link.active {
    color: var(--text-main) !important;
}

body:not(:has(.hero-section)) .main-header .logo {
    color: var(--text-main) !important;
}

body:not(:has(.hero-section)) .main-header .menu-toggle {
    background: rgba(0, 0, 0, 0.03) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

body:not(:has(.hero-section)) .main-header .menu-toggle .bar {
    background-color: var(--text-main) !important;
}



