/* ==========================================================================
   CSS Variables & Tokens
   ========================================================================== */
:root {
    /* Base Colors */
    --color-brand-light: #fbfbfd;
    --color-brand-dark: #1d1d1f;
    --color-white: #ffffff;
    --color-black: #000000;

    /* Status Colors */
    --color-success: #16a34a;
    --color-success-bg: #22c55e;
    --color-success-light: #4ade80;

    /* 3-Schritte Akzentfarben */
    --step-1-color: #64748b; 
    --step-2-color: #0f172a; 
    --step-3-color: #0052ff; 

    --step-1-bg: #f8fafc;
    --step-2-bg: #f1f5f9;
    --step-3-bg: #eff6ff;
    
    --step-1-border: rgba(100, 116, 139, 0.2);
    --step-2-border: rgba(15, 23, 42, 0.2);
    --step-3-border: rgba(0, 82, 255, 0.2);
    
    /* Slate Palette */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    
    /* System */
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --container-max: 1280px;
    --transition-premium: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    -webkit-tap-highlight-color: transparent; 
}
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: var(--font-sans);
    color: var(--color-brand-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100vw;
}

::selection { background-color: var(--step-3-color); color: var(--color-white); }
a { text-decoration: none; color: inherit; outline: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; outline: none; }
ul { list-style: none; }
input, textarea { font-family: inherit; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-brand-light); }
::-webkit-scrollbar-thumb { background: #d2d2d7; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--step-3-color); }

/* ==========================================================================
   Typography & Color Utilities
   ========================================================================== */
.text-muted { color: var(--slate-500); }
.strong { font-weight: 800; }

.color-step-1 { color: var(--step-1-color) !important; }
.color-step-2 { color: var(--step-2-color) !important; }
.color-step-3 { color: var(--step-3-color) !important; }
.text-step-3 { color: var(--step-3-color) !important; }

.bg-step-1 { background-color: var(--step-1-color) !important; }
.bg-step-2 { background-color: var(--step-2-color) !important; }
.bg-step-3 { background-color: var(--step-3-color) !important; }

.bg-step-1-light { background-color: var(--step-1-bg); border: 1px solid var(--step-1-border); color: var(--step-1-color); }
.bg-step-2-light { background-color: var(--step-2-bg); border: 1px solid var(--step-2-border); color: var(--step-2-color); }
.bg-step-3-light { background-color: var(--step-3-bg); border: 1px solid var(--step-3-border); color: var(--step-3-color); }

.border-step-1:hover { border-color: var(--step-1-border) !important; box-shadow: 0 10px 30px rgba(100,116,139,0.08) !important; }
.border-step-2:hover { border-color: var(--step-2-border) !important; box-shadow: 0 10px 30px rgba(15,23,42,0.08) !important; }
.border-step-3:hover { border-color: var(--step-3-border) !important; box-shadow: 0 10px 30px rgba(0,82,255,0.1) !important; }

.mb-extra { margin-bottom: 3.5rem !important; }

.bg-solid-white { background-color: var(--color-white) !important; }
.bg-solid-light { background-color: var(--color-brand-light) !important; }
.bg-solid-dark { background-color: var(--slate-100) !important; } /* same shade as the hero/top */
.bg-transparent { background-color: transparent !important; }

/* ==========================================================================
   Layout System
   ========================================================================== */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 2rem; } }

.grid-layout { display: grid; gap: 2rem; }
@media (min-width: 1024px) {
    .grid-layout.cols-12 { grid-template-columns: repeat(12, 1fr); }
    .grid-layout.cols-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-layout.cols-3 { grid-template-columns: repeat(3, 1fr); }
    .col-span-5 { grid-column: span 5; }
    .col-span-6 { grid-column: span 6; }
    .col-span-7 { grid-column: span 7; }
}

.hidden { display: none !important; }
.desktop-only { display: none !important; }
@media (min-width: 1280px) { .desktop-only { display: flex !important; } }

/* ==========================================================================
   UI Components (Buttons, Glass, Inputs)
   ========================================================================== */
.liquid-glass {
    background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(30px) saturate(190%); -webkit-backdrop-filter: blur(30px) saturate(190%);
    border: 1px solid rgba(0, 0, 0, 0.04); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: var(--transition-premium);
}
.liquid-glass-interactive:hover { transform: translateY(-3px); }

.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; padding: 1rem 2rem; transition: var(--transition-premium); outline: none;
}
.btn-primary { background-color: var(--step-2-color); color: var(--color-white); box-shadow: 0 4px 6px rgba(15, 23, 42, 0.15); }
.btn-primary:hover { transform: scale(1.02); background-color: var(--slate-900); }
.btn-primary:active { transform: scale(0.95); }

.btn-full { width: 100%; margin-top: 1rem; }

.dark-shine-btn { position: relative; overflow: hidden; }
.dark-shine-btn::before {
    content: ''; position: absolute; top: 0; left: -150%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); transition: all 0.6s ease;
}
.dark-shine-btn:hover::before { left: 150%; }

input[type="text"], input[type="email"], textarea {
    width: 100%; background: var(--slate-50); border-radius: 0.75rem; padding: 1rem; font-size: 0.875rem; color: var(--slate-900); border: 1px solid var(--slate-200); transition: var(--transition-premium); outline: none;
}
input:focus, textarea:focus { border-color: var(--step-3-color); background: var(--color-white); }
textarea { min-height: 100px; resize: vertical; }

.ios-switch {
    width: 46px; height: 26px; flex-shrink: 0; background-color: #e5e5ea; border-radius: 99px; position: relative; transition: var(--transition-premium); border: 1px solid rgba(0, 0, 0, 0.05);
}
.ios-switch-handle {
    width: 18px; height: 18px; background-color: var(--color-white); border-radius: 99px; position: absolute; top: 3px; left: 3px; transition: var(--transition-premium); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.switch-active .ios-switch { background-color: var(--step-3-color); border-color: var(--step-3-color); }
.switch-active .ios-switch-handle { transform: translateX(20px); }
.switch-active-btn { border-color: var(--step-3-border) !important; background-color: var(--step-3-bg) !important; }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header-wrapper { position: fixed; top: 3rem; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0 1rem; pointer-events: none; }

.main-header {
    width: 100%; max-width: 80rem; height: 4rem; padding: 0 1rem; border-radius: 9999px; background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(24px); border: 1px solid rgba(0, 0, 0, 0.04); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04); display: flex; align-items: center; justify-content: space-between; pointer-events: auto;
    position: relative;
}

@media(max-width: 1279px) {
    .main-header { justify-content: flex-end; }
    .main-header .brand-logo { position: absolute; left: 50%; transform: translateX(-50%); z-index: 10; }
    .main-header .brand-logo:active { transform: translateX(-50%) scale(0.95); }
}

@media(min-width: 1280px) { 
    .main-header { 
        height: 5rem; 
        padding: 0 2rem; 
        max-width: 65rem; /* Make header narrower and sleeker on desktop */
    } 
}

.brand-logo { font-size: 1.125rem; font-weight: 800; color: var(--slate-900); letter-spacing: -0.025em; cursor: pointer; outline: none; }
@media(min-width: 1280px) { .brand-logo { font-size: 1.25rem; } }

.desktop-nav { display: none; align-items: center; gap: 0.25rem; }
@media(min-width: 1280px) { .desktop-nav { display: flex; } }

.liquid-glass-nav-item {
    padding: 0.375rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--slate-600); border: 1px solid transparent; background: transparent; outline: none;
}
.liquid-glass-nav-item:hover { background: var(--step-3-bg); border-color: var(--step-3-border); color: var(--step-3-color); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.mobile-menu-btn { padding: 0.5rem; color: var(--slate-600); outline: none; }
@media(min-width: 1280px) { .mobile-menu-btn { display: none; } }

.mobile-menu {
    position: fixed; top: 7.5rem; left: 1rem; right: 1rem; z-index: 50; border-radius: 1.5rem; background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); border: 1px solid rgba(255, 255, 255, 0.5); padding: 1.5rem; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6); display: flex; flex-direction: column; gap: 0.5rem;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-nav-link { padding: 0.5rem 0.75rem; border-radius: 0.75rem; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--slate-700); transition: var(--transition-premium); outline: none; }
.mobile-nav-link:hover { background: var(--slate-50); }
.mobile-nav-sublink { padding-left: 1.5rem; font-size: 0.75rem; color: var(--slate-500); }
.mobile-nav-cta { margin-top: 0.5rem; padding: 0.75rem; text-align: center; color: var(--color-white); }

/* ==========================================================================
   Sections & Views
   ========================================================================== */
.main-container { width: 100%; overflow: hidden; position: relative; }

/* NEUER HERO-BEREICH: Leicht abgedunkelt, oben fixiert */
.hero-with-bg {
    position: relative;
    width: 100%;
    z-index: 1;
    background-color: var(--slate-100); /* Darker background behind header */
}

.hero-with-bg::before {
    display: none; /* Background image lives on .hero-text-left below 1280px */
}
@media(min-width: 1280px) {
    .hero-with-bg {
        height: auto;
        min-height: auto;
        padding: 10rem 0 5rem 0; /* Top bar + header clearance */
    }
}

/* Container für Hero-Bereich */
.hero-container-new {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 7.5rem; /* Clear fixed top bar + header */
    padding-bottom: 2rem;
    gap: 2rem;
}

/* Desktop-only Image Column Style */
.hero-image-left {
    display: none;
}

.hero-desktop-img {
    display: none;
}

.hero-content-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media(min-width: 1280px) {
    .hero-container-new {
        display: grid;
        grid-template-columns: 1.4fr 1fr; /* Wider image column on desktop */
        align-items: center;
        gap: 4rem;
        padding-top: 3rem;
        padding-bottom: 3rem;
        height: auto;
    }
    .hero-image-left {
        display: block;
        width: 100%;
    }
    .hero-desktop-img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16/10; /* Wider aspect ratio for landscape display */
        object-fit: cover;
        border-radius: 1.5rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }
    .hero-content-right {
        align-items: flex-start;
    }
}

/* Mobile & tablet (<1280px): headline sits ON a background image card that
   grows with the text — no fixed height, so "Smart." never falls outside. */
@media(max-width: 1279px) {
    .hero-text-left {
        width: 100%;
        box-sizing: border-box;
        align-self: stretch;
        padding: 3rem 2rem;
        border-radius: 1.5rem;
        background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), url('assets/Hintergrundbild-Webseite.webp');
        background-size: cover;
        background-position: center;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }
}
@media(min-width: 640px) and (max-width: 1279px) {
    .hero-text-left {
        padding: 4rem 3rem;
    }
}

/* Text linksbündig */
.hero-text-left {
    align-self: flex-start;
}

/* Die massiven weißen Worte untereinander */
.hero-title-stacked {
    display: flex;
    flex-direction: column;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: var(--color-white);
    text-align: left;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.6); /* Eleganter Schatten zur Lesbarkeit */
}
@media(min-width: 640px) { .hero-title-stacked { font-size: 5rem; } }
@media(min-width: 1280px) {
    .hero-title-stacked {
        color: var(--slate-900);
        text-shadow: none; /* On desktop the text sits on a light background */
        font-size: 6.5rem;
    }
}

/* CSS Animation für das stufenweise Einfliegen der Worte */
.stacked-word {
    display: block;
    opacity: 0;
    transform: translateY(20px);
    animation: reveal-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.stacked-word:nth-child(1) { animation-delay: 0.1s; }
.stacked-word:nth-child(2) { animation-delay: 0.3s; }
.stacked-word:nth-child(3) { animation-delay: 0.5s; }


/* Buttons unten in die Mitte */
.hero-buttons-bottom {
    align-self: center; /* Zentriert die Buttons in der Mitte des Bildschirms */
    display: flex; 
    flex-direction: column; 
    gap: 1rem; 
    width: 100%; 
    max-width: 24rem; 
    margin-top: 1.5rem; /* Separation gap on mobile from hero background image card */
}
@media(min-width: 640px) { 
    .hero-buttons-bottom { 
        flex-direction: row; 
        max-width: none; 
        justify-content: center; /* Desktop: Nebeneinander und mittig */
    } 
}
@media(min-width: 1280px) {
    .hero-buttons-bottom {
        align-self: flex-start;
        justify-content: flex-start;
        width: auto;
        margin-top: 0; /* Reset mobile margin-top on desktop viewports */
    }
}

/* Button Kontrastanpassungen für die blaue Primäraktion */
.btn-hero-primary {
    background-color: var(--step-3-color) !important;
    color: var(--color-white) !important;
    box-shadow: 0 4px 15px rgba(0, 82, 255, 0.25) !important;
}
.btn-hero-primary:hover {
    background-color: #0040c7 !important; /* Rich darker blue for hover state */
    transform: scale(1.02);
}

.section-vision, .section-slider, .section-pillars, .section-configurator, .section-contact, .section-about, .section-portfolio { padding: 2rem 0; border-top: 1px solid rgba(226, 232, 240, 0.5); }
@media(min-width: 768px) { .section-vision, .section-slider, .section-pillars, .section-configurator, .section-contact, .section-about, .section-portfolio { padding: 3rem 0; } }

/* Leistungen intro: flows out of the hero, so no top border and a tighter bottom */
.section-leistungen { padding: 1rem 0 2rem 0; }
@media(min-width: 768px) { .section-leistungen { padding: 1.5rem 0 3rem 0; } }
.section-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; display: block; margin-bottom: 1rem;}
.section-title { font-size: 1.875rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.035em; color: var(--slate-900); margin-bottom: 1rem;}
@media(min-width: 640px) { .section-title { font-size: 2.5rem; } }
@media(min-width: 768px) { .section-title { font-size: 3rem; } }
.section-text { font-size: 0.875rem; color: var(--slate-600); font-weight: 300; line-height: 1.6; max-width: 48rem;}
@media(min-width: 640px) { .section-text { font-size: 1rem; } }

.divider { height: 2px; width: 6rem; background: var(--step-3-color); margin: 1.5rem 0; border-radius: 2px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }

.feature-cards { display: grid; gap: 1rem; }
.feature-card { padding: 1.25rem; border-radius: 1.5rem; }
@media(min-width: 768px) { .feature-card { padding: 1.5rem; } }
.feature-number { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.feature-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.feature-text { font-size: 0.75rem; color: var(--slate-600); font-weight: 300; }
@media(min-width: 640px) { .feature-text { font-size: 0.875rem; } }

.feature-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.feature-list-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; font-weight: 500; color: var(--slate-700); }
.list-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; }

.slider-wrapper { display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.slider-container { width: 100%; max-width: 42rem; aspect-ratio: 16/10; border-radius: 1.5rem; padding: 0.5rem; background: var(--color-white); border: 1px solid var(--slate-200); position: relative;}

.slider-watermark {
    position: absolute; top: 1rem; z-index: 20; padding: 0.375rem 0.875rem; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px); border-radius: 9999px; font-size: 0.625rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; box-shadow: 0 4px 6px rgba(0,0,0,0.05); pointer-events: none;
}
.watermark-left { left: 1rem; color: var(--step-3-color); border: 1px solid var(--step-3-border); }
.watermark-right { right: 1rem; color: var(--step-1-color); border: 1px solid var(--step-1-border); }

.slider-inner { position: relative; width: 100%; height: 100%; border-radius: 1rem; overflow: hidden; background: var(--slate-100); border: 1px solid var(--slate-100); }
.slider-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.before-layer { background: #cbd5e1; }
.after-layer { background: var(--color-white); pointer-events: none; clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%); }
.slider-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--step-3-color); cursor: ew-resize; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; z-index: 30;}
.handle-icon-wrapper { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--color-white); border: 1px solid var(--slate-200); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); pointer-events: none; transition: var(--transition-premium); }
.handle-icon { width: 1rem; height: 1rem; color: var(--step-3-color); }
.slider-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 40; margin: 0; }

/* Process / Accordion */
.accordion-wrapper { display: flex; flex-direction: column; gap: 0.75rem; }
.accordion-item { 
    display: block !important; opacity: 1 !important; visibility: visible !important;
    border-radius: 1.5rem; overflow: hidden; transition: var(--transition-premium); background: var(--slate-50); border: 1px solid var(--slate-200); 
    margin: 0 !important; 
}

#pillar-container-1.active { background: var(--color-white); border: 1px solid var(--step-1-border); box-shadow: 0 4px 6px rgba(100,116,139,0.1); }
#pillar-container-2.active { background: var(--color-white); border: 1px solid var(--step-2-border); box-shadow: 0 4px 6px rgba(15,23,42,0.1); }
#pillar-container-3.active { background: var(--color-white); border: 1px solid var(--step-3-border); box-shadow: 0 4px 6px rgba(0,82,255,0.1); }

.accordion-btn { 
    width: 100%; padding: 1.25rem; display: flex; justify-content: space-between; align-items: center; text-align: left; outline: none; 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent;
    transition: background 0.18s ease, transform 0.12s ease;
    cursor: pointer;
}
/* Immediate press feedback (esp. on touch devices) so tapping a step always
   gives the user a clear local response, even when the view then scrolls. */
.accordion-btn:active {
    background: var(--slate-100);
    transform: scale(0.985);
}
.accordion-title-wrapper { display: flex; align-items: center; gap: 1rem; }
.accordion-num { font-size: 1rem; font-weight: 800; letter-spacing: 0.05em; transition: var(--transition-premium); color: var(--slate-400); }

#pillar-container-1.active .accordion-num { color: var(--step-1-color); }
#pillar-container-2.active .accordion-num { color: var(--step-2-color); }
#pillar-container-3.active .accordion-num { color: var(--step-3-color); }

.accordion-title { font-size: 0.875rem; font-weight: 700; transition: var(--transition-premium); color: var(--slate-600); }
@media(min-width: 640px) { .accordion-title { font-size: 1rem; } }
.accordion-item.active .accordion-title { color: var(--slate-900); }

.accordion-subtitle { font-size: 0.75rem; color: var(--slate-500); font-weight: 300; margin-top: 0.125rem; }
.accordion-icon { width: 1.25rem; height: 1.25rem; transition: transform 0.3s; color: var(--slate-400); transform: rotate(0); }
.accordion-item.active .accordion-icon { transform: rotate(180deg); }

#pillar-container-1.active .accordion-icon { color: var(--step-1-color); }
#pillar-container-2.active .accordion-icon { color: var(--step-2-color); }
#pillar-container-3.active .accordion-icon { color: var(--step-3-color); }

.accordion-content {
    display: grid !important;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 1.25rem;
    overflow: hidden;
}
.accordion-item.active .accordion-content {
    grid-template-rows: 1fr;
    padding-bottom: 1.25rem;
}
.accordion-content > .pillar-content-wrapper {
    min-height: 0;
}
@media(min-width: 1024px) { .accordion-content { display: none !important; } }

.pillar-desktop-view { display: none; }
@media(min-width: 1024px) { .pillar-desktop-view { display: block; } }

.pillar-display-card { 
    border-radius: 2rem; padding: 1.5rem; background: var(--color-white); border: 1px solid var(--slate-100); box-shadow: 0 15px 40px rgba(0,0,0,0.04); 
    min-height: 480px; height: 100%; display: flex; flex-direction: column; justify-content: space-between; 
}
@media(min-width: 1024px) { .pillar-display-card { padding: 2.5rem; } }
.pillar-display-content { height: 100%; display: flex; flex-direction: column; justify-content: space-between; }

.pillar-content-wrapper { display: flex; flex-direction: column; gap: 1rem; }
.pillar-desktop-view .pillar-content-wrapper { gap: 1.5rem; position: relative; z-index: 10; }
.pillar-badge-row { display: flex; justify-content: space-between; align-items: center; }
.pillar-badge-text { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.pillar-badge-pill { padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }

.pillar-main-title { font-size: 1.125rem; font-weight: 800; color: var(--slate-900); }
.pillar-desktop-view .pillar-main-title { font-size: 1.875rem; }
.pillar-desc { font-size: 0.75rem; font-weight: 300; color: var(--slate-600); line-height: 1.6; max-width: 36rem; }
.pillar-desktop-view .pillar-desc { font-size: 1rem; }

.pillar-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-top: 0.5rem; }
.pillar-desktop-view .pillar-grid { grid-template-columns: repeat(3, 1fr); }
.pillar-comp-card { background: var(--slate-50); border: 1px solid var(--slate-100); border-radius: 1rem; padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; transition: var(--transition-premium); }
.pillar-comp-card:hover { border-color: var(--slate-300); }
.pillar-comp-icon { width: 2rem; height: 2rem; border-radius: 0.5rem; background: var(--color-white); display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.pillar-comp-icon i { width: 1rem; height: 1rem; }
.pillar-comp-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-900); }
.pillar-comp-text { font-size: 0.6875rem; font-weight: 300; color: var(--slate-500); line-height: 1.5; }
.pillar-desktop-view .pillar-comp-text { font-size: 0.75rem; }

.pillar-outcome { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--slate-100); font-size: 0.75rem; color: var(--slate-700); font-weight: 500; display: flex; align-items: center; gap: 0.5rem; }
.pillar-outcome i { width: 1rem; height: 1rem; color: var(--color-success-bg); }

/* Configurator */
.config-card { border-radius: 2rem; padding: 1.5rem; border: 1px solid var(--slate-100); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
@media(min-width: 640px) { .config-card { padding: 2.5rem; } }
.card-badge { position: absolute; top: 0; right: 0; color: var(--color-white); font-weight: 700; padding: 0.5rem 1rem; border-bottom-left-radius: 1.5rem; font-size: 0.5625rem; text-transform: uppercase; letter-spacing: 0.1em; z-index: 10; }
.card-header h3 { font-size: 1.5rem; font-weight: 800; color: var(--slate-900); letter-spacing: -0.025em; margin-bottom: 0.25rem; }
.card-header h3.config-title { font-size: 1rem; font-weight: 700; color: var(--slate-900); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.25rem; }
@media(min-width: 640px) { .card-header h3 { font-size: 1.875rem; } .card-header h3.config-title { font-size: 1.125rem; } }
.card-header p { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.card-header p.text-muted { color: var(--slate-500); font-weight: 300; text-transform: none; letter-spacing: normal; }

.feature-rows { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.feature-row { display: flex; align-items: center; gap: 1rem; padding: 0.75rem; background: var(--slate-50); border: 1px solid var(--slate-100); border-radius: 1rem; transition: var(--transition-premium); }
@media(min-width: 640px) { .feature-row { padding: 1rem; } }
.feature-icon { width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; background: var(--color-white); display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 2px rgba(0,0,0,0.05); flex-shrink: 0; }
.feature-desc h4 { font-size: 0.75rem; font-weight: 700; color: var(--slate-900); text-transform: uppercase; letter-spacing: 0.05em; }
@media(min-width: 640px) { .feature-desc h4 { font-size: 0.875rem; } }
.feature-desc p { font-size: 0.6875rem; font-weight: 300; color: var(--slate-500); margin-top: 0.125rem; }
@media(min-width: 640px) { .feature-desc p { font-size: 0.75rem; } }

.card-footer { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--slate-100); display: flex; justify-content: space-between; align-items: center; font-size: 0.625rem; color: var(--slate-500); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; }
.verified-badge { color: var(--color-success); font-weight: 700; display: flex; align-items: center; gap: 0.25rem; }
.verified-badge i { width: 0.875rem; height: 0.875rem; }

.config-controls { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.control-title { font-size: 0.75rem; font-weight: 700; color: var(--slate-800); text-transform: uppercase; letter-spacing: 0.05em; display: block; }
@media(min-width: 640px) { .control-title { font-size: 0.875rem; } }
.control-subtitle { font-size: 0.6875rem; font-weight: 300; color: var(--slate-500); margin-top: 0.125rem; }
@media(min-width: 640px) { .control-subtitle { font-size: 0.75rem; } }

.website-input-control {
    padding: 1rem;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: var(--transition-premium);
}
@media(min-width: 640px) { .website-input-control { padding: 1.25rem; } }
.website-input-control:hover { border-color: var(--slate-300); }
.website-input-header { display: flex; flex-direction: column; gap: 0.125rem; }
.website-input-field-group { display: flex; flex-direction: column; gap: 0.75rem; width: 100%; align-items: flex-start; }
.config-text-input {
    width: 100%;
    background: var(--color-white);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--slate-900);
    border: 1px solid var(--slate-200);
    transition: var(--transition-premium);
    outline: none;
}
.config-text-input:focus { border-color: var(--step-3-color); }
.config-text-input:disabled { background: var(--slate-100); color: var(--slate-400); border-color: var(--slate-200); cursor: not-allowed; opacity: 0.7; }
.new-project-checkbox-container { margin-top: 0.75rem; padding: 0.25rem 0.5rem; }
.checkbox-row { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; user-select: none; flex-shrink: 0; }
.checkbox-row input[type="checkbox"] { display: none; }
.checkbox-row .checkbox-box {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.375rem;
    border: 1px solid var(--slate-300);
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-premium);
    flex-shrink: 0;
}
.checkbox-row .checkbox-box i,
.checkbox-row .checkbox-box svg {
    width: 0.75rem;
    height: 0.75rem;
    stroke: var(--color-white) !important;
    opacity: 0;
    transition: var(--transition-premium);
}
.checkbox-row input:checked + .checkbox-box {
    background: var(--step-3-color);
    border-color: var(--step-3-color);
}
.checkbox-row input:checked + .checkbox-box i,
.checkbox-row input:checked + .checkbox-box svg {
    opacity: 1;
}
.checkbox-row .checkbox-label-text { font-size: 0.75rem; font-weight: 500; color: var(--slate-600); white-space: nowrap; }

.options-wrapper { display: flex; flex-direction: column; gap: 0.75rem; }
.options-title { font-size: 0.75rem; font-weight: 700; color: var(--slate-600); text-transform: uppercase; letter-spacing: 0.1em; display: block; }
.options-grid { display: grid; gap: 0.75rem; }
.toggle-row { width: 100%; padding: 1rem; border-radius: 1rem; background: var(--slate-50); border: 1px solid var(--slate-200); display: flex; justify-content: space-between; align-items: center; text-align: left; transition: var(--transition-premium); }
.toggle-row:hover { border-color: var(--slate-300); }
.toggle-labels { display: flex; flex-direction: column; gap: 0.125rem; padding-right: 0.5rem; min-width: 0; }
.toggle-title { font-size: 0.75rem; font-weight: 700; color: var(--slate-800); text-transform: uppercase; letter-spacing: 0.05em; }
@media(min-width: 640px) { .toggle-title { font-size: 0.875rem; } }
.toggle-subtitle { font-size: 0.6875rem; font-weight: 500; color: var(--slate-500); }
@media(min-width: 640px) { .toggle-subtitle { font-size: 0.75rem; } }

/* Contact Section */
.checklist { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--slate-200); }
.contact-call-btn {
    display: flex;
    width: fit-content;
    margin-top: 1.5rem;
    margin-left: auto;  /* centered while the layout is stacked (mobile/tablet) */
    margin-right: auto;
    gap: 0.5rem;
    background-color: var(--step-3-color);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(0, 82, 255, 0.35);
}
.contact-call-btn:hover { background-color: #0047e0; transform: scale(1.02); }
.contact-call-btn i { width: 1rem; height: 1rem; }
/* On the two-column layout, shift the button toward the form on the right */
@media (min-width: 1024px) { .contact-call-btn { margin-right: 0; } }
.checklist-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; font-weight: 600; color: var(--slate-700); }
@media(min-width: 640px) { .checklist-item { font-size: 0.875rem; } }
.checklist-item i { width: 1rem; height: 1rem; }
.contact-card { background: var(--color-white); border: 1px solid var(--slate-100); border-radius: 2rem; padding: 1.5rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
@media(min-width: 640px) { .contact-card { padding: 2.5rem; } }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media(min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }
.form-group { display: flex; flex-direction: column; gap: 0.25rem; }
.form-group label { font-size: 0.75rem; font-weight: 600; color: var(--slate-700); text-transform: uppercase; letter-spacing: 0.05em; }

/* About Section */
.about-card { padding: 1.5rem; border-radius: 2rem; border-color: var(--slate-200); display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
@media(min-width: 640px) { .about-card { padding: 2rem; } }
.about-content { display: flex; flex-direction: column; gap: 1rem; }
.about-icon { width: 3rem; height: 2.5rem; border-radius: 0.75rem; background: var(--slate-100); border: 1px solid var(--slate-200); display: flex; align-items: center; justify-content: center; color: var(--slate-800); box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.about-icon i { width: 1.25rem; height: 1.25rem; color: var(--step-3-color); }

.about-portrait {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
    object-fit: cover;
    border: 2px solid var(--slate-200);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: block;
}

.about-title-wrapper h3.about-card-title { font-size: 1.125rem; font-weight: 800; color: var(--slate-900); }
.about-title-wrapper span { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-top: 0.125rem; }
.about-card p { font-size: 0.75rem; color: var(--slate-600); font-weight: 300; line-height: 1.6; }
@media(min-width: 640px) { .about-card p { font-size: 0.875rem; } }
.about-footer { font-size: 0.625rem; color: var(--slate-400); letter-spacing: 0.1em; font-weight: 600; text-transform: uppercase; display: block; padding-top: 0.75rem; border-top: 1px solid var(--slate-100); }

/* ==========================================================================
   Footer (STRIKT LINKSBÜNDIG)
   ========================================================================== */
.main-footer { background: var(--slate-900); color: var(--slate-400); padding: 3rem 0; position: relative; z-index: 10; border-top: 1px solid var(--slate-800); }
@media(min-width: 768px) { .main-footer { padding: 4rem 0; } }
.footer-grid { display: grid; gap: 2rem; border-bottom: 1px solid var(--slate-800); padding-bottom: 2.5rem; }
@media(min-width: 768px) { .footer-grid { grid-template-columns: repeat(12, 1fr); } }
.footer-brand { grid-column: span 1; display: flex; flex-direction: column; gap: 0.75rem; text-align: left; align-items: flex-start; }
@media(min-width: 768px) { .footer-brand { grid-column: span 6; } }
.footer-brand .brand-logo { color: var(--color-white); }
.footer-brand p { font-size: 0.75rem; font-weight: 300; line-height: 1.6; max-width: 24rem; }
@media(min-width: 640px) { .footer-brand p { font-size: 0.875rem; } }
.footer-links { grid-column: span 1; display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.75rem; font-weight: 300; text-align: left; }
@media(min-width: 768px) { .footer-links { grid-column: span 3; } }
.footer-links h5 { color: var(--slate-200); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.5625rem; }
.footer-links ul { display: flex; flex-direction: column; gap: 0.375rem; font-weight: 500; padding: 0; margin: 0; }
.footer-links a:hover { color: var(--color-white); }
.footer-cookie-link { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.footer-cookie-link:hover { color: var(--color-white); }
.footer-bottom { padding-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; font-size: 0.6875rem; color: var(--slate-500); text-transform: uppercase; letter-spacing: 0.05em; }
@media(min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-bottom-links { display: flex; gap: 1rem; }
.footer-bottom-links a:hover { color: var(--color-white); }

/* ==========================================================================
   Legal Views (Impressum & Datenschutz)
   ========================================================================== */
.legal-view { min-height: 100vh; padding: 10rem 0 4rem; position: relative; z-index: 10; }
.legal-card { max-width: 56rem; margin: 0 auto; padding: 1.5rem; background: var(--color-white); border-radius: 2.5rem; border: 1px solid var(--slate-200); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); display: flex; flex-direction: column; gap: 2rem; }
@media(min-width: 640px) { .legal-card { padding: 2.5rem; } }
.back-link { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--step-3-color); display: inline-flex; align-items: center; gap: 0.25rem; outline: none; }
.back-link:hover { color: var(--slate-900); }
.legal-header { display: flex; flex-direction: column; gap: 0.5rem; }
.legal-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-500); }
.legal-title { font-size: 1.875rem; font-weight: 800; color: var(--slate-900); line-height: 1; letter-spacing: -0.025em; }
.legal-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-top: 1rem; border-top: 1px solid var(--slate-100); font-size: 0.75rem; font-weight: 300; line-height: 1.6; color: var(--slate-600); }
@media(min-width: 768px) { .legal-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width: 640px) { .legal-grid { font-size: 0.875rem; } }
.legal-col { display: flex; flex-direction: column; gap: 1rem; }
.legal-group { display: flex; flex-direction: column; gap: 0.25rem; }
.legal-group h4 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-900); }
.legal-disclaimer { padding-top: 1.5rem; border-top: 1px solid var(--slate-100); font-size: 0.75rem; font-weight: 300; color: var(--slate-600); display: flex; flex-direction: column; gap: 0.25rem; }
.legal-disclaimer h4 { font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--slate-800); }
.legal-actions { padding-top: 1rem; border-top: 1px solid var(--slate-100); }

.legal-content { display: flex; flex-direction: column; gap: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--slate-100); font-size: 0.875rem; font-weight: 300; color: var(--slate-600); line-height: 1.6; }
.legal-section { display: flex; flex-direction: column; gap: 0.5rem; }
.legal-section h3 { font-size: 1.125rem; font-weight: 700; color: var(--slate-900); }
.legal-section h4 { font-size: 1rem; font-weight: 600; color: var(--slate-800); margin-top: 0.25rem; }
.legal-section ul { list-style-type: disc; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.25rem; margin-top: 0.5rem; }

/* ==========================================================================
   Toasts & Decorators
   ========================================================================== */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50; display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none; }
.toast-msg { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border-radius: 0.75rem; background: var(--slate-900); border: 1px solid var(--slate-800); color: var(--color-white); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); max-width: 24rem; pointer-events: auto; transition: var(--transition-premium); }
.toast-msg.hidden-state { transform: translateY(0.5rem); opacity: 0; }
.toast-msg span { font-size: 0.75rem; font-weight: 600; }
.text-green-400 { color: var(--color-success-light); }
.text-red-400 { color: #f87171; }

.bottom-blur { position: fixed; bottom: 0; left: 0; right: 0; height: 5rem; pointer-events: none; z-index: 40; transition: opacity 0.5s; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); -webkit-mask-image: linear-gradient(to top, black 10%, transparent 100%); mask-image: linear-gradient(to top, black 10%, transparent 100%); }
.bottom-gradient { position: fixed; bottom: 0; left: 0; right: 0; height: 5rem; pointer-events: none; z-index: 30; transition: opacity 0.5s; background: linear-gradient(to top, var(--color-brand-light), rgba(251,251,253,0.6), transparent); }

/* ==========================================================================
   Animations
   ========================================================================== */
.transition-premium { transition: var(--transition-premium); }
.transition-transform { transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.brand-logo:active { transform: scale(0.95); }

/* DIE LÖSUNG GEGEN DEN FREIEN ABSTAND UNTEN! */
.ambient-backgrounds {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -10;
}

.ambient-glow { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; }
.glow-grau { top: 6rem; left: 1rem; width: 350px; height: 350px; background: rgba(100, 116, 139, 0.08); }
@media(min-width: 768px) { .glow-grau { width: 550px; height: 550px; } }
.glow-dunkelblau { top: 1000px; right: 1rem; width: 400px; height: 400px; background: rgba(15, 23, 42, 0.06); }
@media(min-width: 768px) { .glow-dunkelblau { width: 650px; height: 600px; } }
.glow-hellblau { top: 2000px; left: 25%; width: 400px; height: 400px; background: rgba(0, 82, 255, 0.08); }
@media(min-width: 768px) { .glow-hellblau { width: 600px; height: 600px; } }

.animate-pulse-slow { animation: pulseSlow 10s infinite; }
.animate-pulse-slower { animation: pulseSlow 14s infinite; }
.animate-pulse-medium { animation: pulseSlow 12s infinite; }
.animate-pulse-fast { animation: pulseFast 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-float-slow { animation: floatSlow 9s ease-in-out infinite; }
.animate-float-medium { animation: floatMedium 7s ease-in-out infinite; }
.animate-fadeIn { animation: fadeIn 0.5s ease-out forwards; }

@keyframes pulseSlow { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes pulseFast { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes floatSlow { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-10px); } }
@keyframes floatMedium { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-6px); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.reveal-element { opacity: 0; transform: translateY(20px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-element.is-revealed { opacity: 1; transform: translateY(0); }
.word-span { display: inline-block; opacity: 0; transform: translateY(10px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-element.is-revealed .word-span { opacity: 1; transform: translateY(0); }

/* Above-the-fold hero: animate in via CSS instead of the JS scroll-observer, so the
   LCP element (headline) renders immediately and isn't gated on script.js loading. */
@keyframes reveal-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero-image-left.reveal-element,
.hero-text-left.reveal-element,
.hero-buttons-bottom.reveal-element {
    animation: reveal-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Hero-scoped Wave Pattern */
.hero-wave-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.45;
    background-image: url("data:image/svg+xml,%3Csvg width='1440' height='400' viewBox='0 0 1440 400' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 200C240 120 480 280 720 200C960 120 1200 280 1440 200' stroke='rgba(0,82,255,0.15)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M0 230C240 150 480 310 720 230C960 150 1200 310 1440 230' stroke='rgba(0,82,255,0.12)' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M0 260C240 180 480 340 720 260C960 180 1200 340 1440 260' stroke='rgba(0,82,255,0.10)' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 1440px 400px; background-repeat: repeat; animation: waveMove 35s linear infinite; pointer-events: none; z-index: -2;
}
@keyframes waveMove { 0% { background-position: 0px 50%; } 100% { background-position: 1440px 50%; } }

/* Navigation Dropdown styling */
.nav-item-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Keep the dropdown trigger vertically aligned with the plain nav items */
.nav-item-dropdown > .nav-item {
    display: inline-flex;
    align-items: center;
}

.dropdown-menu-container {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    min-width: 140px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(190%);
    -webkit-backdrop-filter: blur(20px) saturate(190%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0.875rem;
    padding: 0.375rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    z-index: 100;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-700);
    transition: var(--transition-premium);
    text-align: center;
    text-decoration: none;
}

.dropdown-item:hover {
    background: var(--step-3-bg);
    color: var(--step-3-color);
}

/* Utility classes for inline-style replacements */
.nav-dropdown-chevron { width: 10px; height: 10px; margin-left: 2px; display: inline-block; vertical-align: middle; }
.external-link-icon { width: 14px; height: 14px; margin-left: 4px; vertical-align: middle; }
.btn-icon-left { margin-right: 0.5rem; }

/* Portfolio logo and actions */
.portfolio-logo-wrapper {
    height: 50px;
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.portfolio-logo {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.portfolio-footer-action {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--slate-100);
}

/* Top Bar (Kopfzeile) & Language Switcher — visible on all breakpoints,
   switcher always top-right inside the bar */
.top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 2.5rem;
    padding: 0 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: auto;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1002;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, visibility 0.4s;
}
@media(min-width: 1280px) {
    .top-bar {
        padding: 0 4rem;
    }
}

.top-bar.hidden-top-bar {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: transparent;
    border: none;
    padding: 0;
    pointer-events: auto;
}

.lang-btn {
    background: none;
    border: none;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--slate-600);
    cursor: pointer;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    transition: var(--transition-premium);
}

.lang-btn:hover {
    color: var(--slate-900);
}

.lang-btn.active {
    color: var(--color-white);
    background: var(--step-3-color);
}

.lang-separator {
    font-size: 0.75rem;
    color: var(--slate-300);
    user-select: none;
}

/* Hero content clears the top bar + header below desktop split layout */
@media(max-width: 1279px) {
    .hero-container-new {
        padding-top: 9.5rem;
    }
}

/* Top bar collapse + header slide-up on scroll (all breakpoints) */
.header-wrapper {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.header-wrapper.scrolled-header {
    transform: translateY(-2.5rem);
}

/* ==========================================================================
   Accessibility: Visible Keyboard Focus (WCAG 2.4.7)
   The base reset clears outlines for a clean look; restore a clear focus
   indicator for keyboard users via :focus-visible (mouse clicks stay clean).
   ========================================================================== */
:focus-visible {
    outline: 2px solid var(--step-3-color);
    outline-offset: 2px;
    border-radius: 4px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.btn-primary:focus-visible,
.liquid-glass-nav-item:focus-visible,
.mobile-menu-btn:focus-visible,
.mobile-nav-link:focus-visible,
.brand-logo:focus-visible,
.accordion-btn:focus-visible,
.toggle-row:focus-visible,
.lang-btn:focus-visible,
.back-link:focus-visible,
.dropdown-item:focus-visible,
.checkbox-row input:focus-visible + .checkbox-box {
    outline: 2px solid var(--step-3-color);
    outline-offset: 2px;
}
/* Use a light ring on dark surfaces for sufficient contrast */
.language-switcher .lang-btn:focus-visible,
.main-footer a:focus-visible {
    outline-color: var(--color-white);
}
/* Range slider is visually transparent; surface focus on its handle instead */
.slider-inner:focus-within .handle-icon-wrapper {
    outline: 2px solid var(--step-3-color);
    outline-offset: 3px;
}

/* ==========================================================================
   Accessibility: Respect reduced-motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    html { scroll-behavior: auto; }
    /* Guarantee scroll-revealed content is shown without motion */
    .reveal-element,
    .reveal-element .word-span,
    .stacked-word {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================================================
   Robustness: keep content visible when scripting is unavailable
   Most content is hidden until JavaScript animates it in. If scripting is
   disabled, reveal it so the page is never a blank surface.
   ========================================================================== */
@media (scripting: none) {
    .reveal-element,
    .reveal-element .word-span,
    .stacked-word {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================================================
   Cookie consent banner (opt-in)
   ========================================================================== */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    max-width: 32rem;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(190%);
    -webkit-backdrop-filter: blur(20px) saturate(190%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1.5rem;
    padding: 1.25rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.is-visible { opacity: 1; transform: translateY(0); }

.cookie-banner-inner { display: flex; flex-direction: column; gap: 1rem; }
.cookie-banner-title { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; font-weight: 700; color: var(--slate-900); margin: 0 0 0.375rem 0; }
.cookie-banner-icon { flex: 0 0 auto; color: var(--step-3-color); }
.cookie-banner-text p { font-size: 0.8125rem; line-height: 1.5; color: var(--slate-600); margin: 0; }
.cookie-banner-link { display: inline-block; margin-top: 0.5rem; font-size: 0.75rem; font-weight: 600; color: var(--step-3-color); text-decoration: none; }
.cookie-banner-link:hover { text-decoration: underline; }

.cookie-banner-actions { display: flex; gap: 0.625rem; }
.btn-cookie {
    flex: 1;
    padding: 0.625rem 1rem;
    border-radius: 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-premium);
    border: 1px solid transparent;
    outline: none;
}
.btn-cookie-secondary { background: var(--slate-100); color: var(--slate-700); border-color: var(--slate-200); }
.btn-cookie-secondary:hover { background: var(--slate-200); }
.btn-cookie-primary { background: var(--slate-900); color: var(--color-white); }
.btn-cookie-primary:hover { background: var(--slate-800); }
.btn-cookie:focus-visible { box-shadow: 0 0 0 3px var(--step-3-border); }

@media (min-width: 640px) {
    .cookie-banner {
        max-width: 60rem;
        padding: 1rem 1.5rem;
    }
    .cookie-banner-inner {
        flex-direction: row;
        align-items: center;
        gap: 1.75rem;
    }
    .cookie-banner-text { flex: 1; }
    .cookie-banner-title { margin-bottom: 0.25rem; }
    .cookie-banner-link { margin-top: 0.25rem; }
    .cookie-banner-actions { flex: 0 0 auto; justify-content: flex-end; }
    .btn-cookie { flex: 0 0 auto; min-width: 9rem; }
}