/* Local Font: Inter (Variable) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/inter-variable.woff2') format('woff2-variations'),
         url('fonts/inter-variable.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg-color: #000;
    --text-main: #f5f5f7;
    --text-muted: #b0b0b0;
    --glass-bg: rgba(0, 0, 0, 0.6);
    /* Synchronisiert mit Preisboxen */
    --glass-border: rgba(166, 166, 166, 0.25);
    --accent-color: rgba(166, 166, 166, 0.25);

    /* Request: Apple Premium Look - Top Outer, Bottom Inner */
    --glass-shadow:
        0px -1px 2px rgba(166, 166, 166, 0.4),
        0px -3px 12px rgba(166, 166, 166, 0.1),
        inset 0px -1px 2px rgba(166, 166, 166, 0.4),
        inset 0px -4px 15px rgba(166, 166, 166, 0.15),
        0 15px 30px rgba(0, 0, 0, 0.6);

    --glass-shadow-hover:
        0px -1px 3px rgba(166, 166, 166, 0.5),
        0px -4px 15px rgba(166, 166, 166, 0.15),
        inset 0px -1px 3px rgba(166, 166, 166, 0.5),
        inset 0px -5px 20px rgba(166, 166, 166, 0.2),
        0 20px 40px rgba(0, 0, 0, 0.8);

    /* Gradients */
    --accent-glow: radial-gradient(circle at center, rgba(166, 166, 166, 0.3) 0%, transparent 80%);
    --accent-glow-strong: radial-gradient(circle at center, rgba(166, 166, 166, 0.7) 0%, transparent 80%);
    --accent-white-glow: radial-gradient(circle at center, rgba(200, 220, 255, 0.8) 0%, transparent 80%);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: clip;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 40px);
}

.section {
    padding: clamp(80px, 12vw, 160px) 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 300; /* Thinner */
    margin-bottom: 25px; /* Tighter distance to text below */
    letter-spacing: 1px;
}

.section-title.process-reveal {
    color: rgba(255, 255, 255, 0.2); /* Base dimmed color */
    background: linear-gradient(to bottom, #fff var(--wipe, 0%), rgba(255, 255, 255, 0.2) var(--wipe, 0%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.3s ease;
}


/* Specific headers moved further down */
#preise .section-title,
#kontakt .section-title {
    margin-top: 50px;
}

#preise .section-title {
    margin-bottom: 10px; /* Even tighter distance */
}


#preise .section-subtitle,
#kontakt .section-subtitle {
    color: var(--text-main);
    opacity: 0.9;
}





.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: -20px auto clamp(40px, 6vw, 80px) auto;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
}

/* =========================================
   GLAS & SHADOW COMPONENTS
========================================= */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    /* Synchronisiert mit Preisboxen */
    box-shadow: var(--glass-shadow);
    transition: all 0.4s ease;
}



.btn-glass {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 30px;
    color: var(--text-main);
    font-weight: 500;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: var(--glass-shadow-hover);
    transform: translateY(-2px);
}

/* Glass Inputs */
.glass-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 16px; /* Ensure input text is at least 16px */
    box-shadow: 0px -1px 1px rgba(166, 166, 166, 0.4), inset 0px -1px 1px rgba(166, 166, 166, 0.4), inset 0px -2px 5px rgba(166, 166, 166, 0.1), inset 0px 2px 4px rgba(0, 0, 0, 0.5);
    outline: none;
    transition: all 0.3s;
}

.glass-input::placeholder {
    font-size: 16px;
}

.glass-input:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
}

textarea.glass-input {
    max-width: 100%;
    max-height: 500px;
    resize: vertical;
    min-height: 120px;
}

/* =========================================
   NAVBAR (Static Left/Right, Sticky Middle)
========================================= */
.nav-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    /* Verschiebung weiter nach oben */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    animation: slideDown 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-left .logo {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
}






/* Nav Center (Sticky behavior) */
.nav-center {
    display: flex;
    gap: 23px;
    /* Modern, adjusted gap because links have padding */
    position: fixed;
    top: 20px;
    /* Verschiebung weiter nach oben */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    animation: navCenterSlideDown 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 6px 16px;
    /* Ultraslim high-end height */
    background: transparent;
    border: 1px solid transparent;
    border-radius: 40px;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.nav-center a {
    font-size: 0.95rem;
    font-weight: 400;
    color: #ccc;
    transition: all 0.3s ease;
    position: relative;
    padding: 6px 14px;
    border-radius: 20px;
}

.nav-center a:hover {
    color: #fff;
    background: rgba(166, 166, 166, 0.15);
}

/* Scrolled state for nav */
.nav-center.scrolled {
    gap: 7px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.95),
        0 5px 15px rgba(0, 0, 0, 0.7),
        0px -1px 2px rgba(166, 166, 166, 0.3),
        inset 0px -1px 2px rgba(166, 166, 166, 0.3),
        inset 0px -4px 15px rgba(166, 166, 166, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px; /* Moved content down */
    --mouse-x: 50%;
    --mouse-y: 50%;
    background-color: #000;
    overflow: hidden;
    /* Verhindert horizontale Scrollbar */
}

.hero-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    width: 100%;
    max-width: 100%;
    /* Symmetrisches Padding basierend auf der 1200px-Zentrierung */
    --side-padding: max(clamp(16px, 4vw, 40px), calc((100vw - 1200px) / 2 + 20px));
    padding-left: var(--side-padding);
    padding-right: var(--side-padding);
    position: relative;
    /* overflow: hidden; - Removed to prevent cutting off text animations */
}

.text-muted {
    color: var(--text-muted);
    -webkit-text-fill-color: var(--text-muted);
}

.text-glow-wrapper {
    --x: 50%;
    --y: 50%;
    background-image: radial-gradient(circle 350px at var(--x) var(--y), rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.50) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero-content {
    grid-column: 1 / 7;
    grid-row: 1;
    position: relative;
    z-index: 10;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Button linksbündig */
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.8));
    margin-left: -50px;
    opacity: 0;
    top: -85px;
    animation: slideRight 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    will-change: transform, opacity;
}

.hero-content h1 {
    font-size: clamp(1.5rem, 5vw, 3.4rem);
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.2; /* Slightly increased to prevent cutting off */
    padding-top: 5px; /* Extra space for ascenders */
    white-space: normal;
    max-width: 680px;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 30px;
    font-weight: 500;
    max-width: 650px;
}

.hero-image {
    grid-column: 8 / 13;
    grid-row: 1;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    top: -60px;
    animation: slideLeft 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    will-change: transform, opacity;
    /* Negativer Margin, um das Padding des Containers aufzuheben */
    margin-right: calc(-1 * var(--side-padding));
    width: calc(100% + var(--side-padding));
}

.hero-img {
    width: 100%;
    transform: scale(1.02);
    transform-origin: right center;
    height: auto;
    object-fit: cover;
    display: block;
}

/* =========================================
   HERO BUTTON
========================================= */
.hero-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    background: rgba(5, 5, 5, 0.95);
    border-radius: 40px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    outline: none;
    overflow: visible;
    /* Damit der Glow nicht beschnitten wird */
    box-shadow:
        /* --- APPLE PREMIUM LOOK --- */
        0px -1px 2px rgba(166, 166, 166, 0.4),
        inset 0px -1px 2px rgba(166, 166, 166, 0.4),
        inset 0px -4px 15px rgba(166, 166, 166, 0.15),
        /* --- ÄUSSERE SCHATTEN (Versteckt) --- */
        0 0 2px rgba(255, 255, 255, 0),
        0 0 15px rgba(255, 255, 255, 0),
        0 0 45px rgba(255, 255, 255, 0),
        /* --- TIEFEN-SCHATTEN --- */
        0 10px 30px rgba(0, 0, 0, 0.5);
    --x: 50%;
    --y: 50%;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-btn::before,
.hero-btn::after {
    border-radius: inherit;
    /* Nötig da overflow jetzt visible ist */
}

.hero-btn:hover {
    transform: scale(1.01);
    box-shadow:
        /* --- APPLE PREMIUM LOOK --- */
        0px -1px 3px rgba(166, 166, 166, 0.5),
        inset 0px -1px 3px rgba(166, 166, 166, 0.5),
        inset 0px -5px 20px rgba(166, 166, 166, 0.2),
        /* --- ÄUSSERE SCHATTEN (Sichtbar - Glow Effekt!) --- */
        0 0 2px var(--accent-color),
        0 0 15px var(--accent-color),
        0 0 45px var(--accent-color),
        /* --- TIEFEN-SCHATTEN --- */
        0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero .hero-btn:hover {
    transform: scale(1.01);
}

/* Radialer Gradient im Button (Hover) */
.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle 80px at var(--x) var(--y), var(--accent-color), transparent);
    z-index: 0;
    pointer-events: none;
}

/* Dezenter Border-Glow am Rand, wo der Gradient ist */
.hero-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(circle 60px at var(--x) var(--y), var(--accent-color), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

.hero-btn .btn-text {
    z-index: 2;
    position: relative;
}

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

.hero-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px 0;
    transition: opacity 0.3s ease;
}

.hero-link-btn:hover {
    opacity: 0.8;
}

.hero-link-btn .arrow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-link-btn svg {
    width: 24px;
    height: 24px;
}

.hero-link-btn .arrow-line {
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-link-btn:hover .arrow-line {
    transform: scaleX(1);
}

.hero-link-btn .arrow-head {
    transform: translateX(-14px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-link-btn:hover .arrow-head {
    transform: translateX(0);
}





/* =========================================
   LEISTUNGEN (SERVICES)
========================================= */
.services-section {
    position: relative;
    z-index: 5;
    overflow: visible;
}

.services-scroll-container {
    height: 400vh;
    /* Längere Scroll-Distanz für langsameres Durchblättern */
    position: relative;
}

.services-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: visible;
    z-index: 10;
    padding: 20px 0;
    box-sizing: border-box;
}

#services .container {
    max-width: 1400px;
    width: 100%;
}

.services-layout {
    display: flex;
    gap: 80px;
    margin-top: 50px;
    align-items: flex-start;
}

.services-left {
    flex: 0 0 35%;
    display: flex;
    position: relative;
}

.service-timeline {
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
}

.service-indicator {
    width: 4px;
    height: 30%;
    /* Etwas länger als die vorherigen 25% */
    background: #fff;
    position: absolute;
    left: -1px;
    top: 0;
    border-radius: 4px;
    transition: transform 0.4s ease;
}

.service-items {
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.service-item {
    cursor: pointer;
}

.service-item h3 {
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
    margin-bottom: 0;
}

.service-desc-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
}

.service-desc-content p {
    overflow: hidden;
    color: #e5e5e5;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    padding-top: 0;
    opacity: 0;
    transition: opacity 0.4s ease, padding-top 0.4s ease;
}

.service-item.active h3 {
    color: #fff;
}

.service-item.active .service-desc-content {
    grid-template-rows: 1fr;
}

.service-item.active .service-desc-content p {
    opacity: 1;
    padding-top: 8px;
    /* Reduzierter Abstand zur Überschrift */
}

.services-right {
    flex: 1;
}

.service-image-container {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.service-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s ease;
    opacity: 0;
}

.service-image-container img.active {
    opacity: 1;
}

/* =========================================
   REFERENCES — Single HTML, responsive via CSS
   Desktop: static grid | Mobile: pinned scroll stacking
========================================= */

/* Desktop default: no scroll stacking */
.references-scroll-container {
    height: auto;
    position: relative;
}

.references-sticky-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.references-inner {
    padding: 80px 20px;
    width: 100%;
}

.references-inner .section-title {
    margin-bottom: 30px;
    text-align: center;
}

/* Desktop: 3-column grid */
.references-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.ref-card {
    padding: 0;
    border-radius: 12px;
    transition: opacity 0.2s ease, filter 0.2s ease;
    will-change: transform;
}

.ref-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    background: #111;
    border-radius: 16px;
    margin-bottom: 20px;
    background-size: cover;
    background-position: top;
    transition: background-position 0s ease;
    overflow: hidden;
}

@media (hover: hover) {
    .ref-img:hover {
        background-position: bottom !important;
        transition: background-position 3s linear;
    }
}

.ref-info h3 {
    font-weight: 500;
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.ref-info p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Tap scroll animation for mobile */
.ref-card .ref-img.is-playing {
    animation: tapScroll 5s cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards;
}

@keyframes tapScroll {
    0% { background-position: top; }
    80% { background-position: bottom; }
    95% { background-position: bottom; }
    100% { background-position: top; }
}

/* =========================================
   PRICING
========================================= */
#preise {
    padding: clamp(80px, 10vw, 140px) clamp(16px, 4vw, 40px) 40px clamp(16px, 4vw, 40px);
    /* Mehr Abstand nach oben (vorher 40px) */
}

.preise-wrapper {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    height: 90vh;
    min-height: 800px;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preise-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.preise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.preise-container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 60px 0;
}

#preise .container {
    max-width: 1250px;
}

#preise .section-subtitle {
    margin: 0 auto 60px auto;
}

.pricing-header-container {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 10px;
    width: 100%;
}

.price-card {
    padding: 40px 35px;
    text-align: left;
    display: flex;
    flex-direction: column;
    box-shadow: var(--glass-shadow) !important;
    border: none !important;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 24px;
}

.pricing-inner-container {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Pricing Base (Desktop: Static Grid) */
.preise-scroll-container {
    height: auto;
    position: relative;
    overflow: visible; /* Changed from clip to visible */
}

.preise-sticky-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    z-index: 5;
}

.pricing-stack {
    position: relative;
    width: 100%;
    height: auto;
}

.pricing-stack .price-card {
    position: relative; /* Default for grid */
    width: 100%;
    will-change: transform;
    transform: none;
    transition: opacity 0.4s ease; /* No transition on transform here to avoid JS conflict */
}

.price-header {
    font-size: 1.15rem;
    color: #e5e5e5;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.price-amount {
    font-size: 1.8rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.price-divider {
    display: none;
}

.price-card p {
    color: #dcdcdc;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.price-features {
    list-style: none;
    margin-bottom: auto;
    /* Pushes the button to the bottom */
}

.price-features li {
    display: flex;
    align-items: center;
    color: #e5e5e5;
    font-size: 1rem;
    margin-bottom: 15px;
}

.check-icon {
    width: 20px;
    height: 20px;
    color: #fff;
    margin-right: 12px;
    flex-shrink: 0;
}

/* =========================================
   FAQ
========================================= */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: #000;
    /* Komplett schwarz */
    border: none;
    /* Border entfernt */
    border-radius: 16px;
    padding: clamp(16px, 3vw, 20px) clamp(16px, 3vw, 25px);
    cursor: pointer;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
}

.faq-item:hover {
    background: #050505;
    transform: translateY(-2px);
}

.faq-item.active {
    background: #050505;
    /* Weicherer, aber wesentlich großflächigerer Glow */
    box-shadow:
        0 0 10px var(--accent-color),
        0 0 50px var(--accent-color);
    transform: translateY(-2px);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
}

.faq-arrow {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #fff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.3s;
}

.faq-answer p {
    color: rgba(255, 255, 255, 0.8);
    padding-top: 15px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    /* Arbitrary large max-height */
}

.faq-item.active .faq-question .faq-arrow {
    transform: rotate(90deg);
}

/* =========================================
   KONTAKT
========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: clamp(15px, 3vw, 30px);
}

.contact-form-container {
    padding: clamp(20px, 4vw, 40px);
}

.contact-form-container h3,
.contact-info h3 {
    margin-bottom: clamp(20px, 3vw, 30px);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 500;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 30px;
}

.checkbox-group input {
    margin-top: 2px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
}

.privacy-link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.3s ease;
}

.privacy-link:hover {
    opacity: 0.7;
}

.submit-btn {
    width: 100%;
}

.form-status {
    display: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 16px;
    text-align: center;
}

.form-status:not(:empty) {
    display: block;
}

.form-status--success {
    background: rgba(50, 200, 120, 0.12);
    border: 1px solid rgba(50, 200, 120, 0.4);
    color: #5de8a0;
}

.form-status--error {
    background: rgba(220, 60, 60, 0.1);
    border: 1px solid rgba(220, 60, 60, 0.35);
    color: #f08080;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-info {
    padding: clamp(20px, 4vw, 40px);
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 3vw, 30px);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-item .icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: #000;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow:
        inset 0 2px 10px var(--accent-color),
        inset 0 -10px 20px var(--accent-color);
}

.info-text {
    display: flex;
    flex-direction: column;
}

.info-text .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-text .value {
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.info-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.info-item-link:hover .info-item {
    transform: translateX(5px);
}

.info-item-link:hover .info-text .value {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

/* =========================================
   PROZESS SECTION
========================================= */
.prozess-section {
    position: relative;
    z-index: 5;
}

.prozess-scroll-container {
    height: 300vh;
    position: relative;
}

.prozess-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.prozess-layout {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 70vh;
    min-height: 600px;
    max-height: 800px;
    position: relative;
}

.p-timeline-line-bg,
.p-timeline-line-fill {
    position: absolute;
    width: 2px;
    left: 50%;
    transform: translateX(-50%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 80px);
    mask-image: linear-gradient(to bottom, transparent 0%, black 80px);
}

.p-timeline-line-bg {
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    top: 0;
    z-index: 1;
}

.p-timeline-line-fill {
    height: 0%;
    background: #d0d0d0;
    top: 0;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
    z-index: 2;
    transition: height 0.1s ease-out;
}

.prozess-step-row {
    display: flex;
    width: 100%;
    align-items: center;
    position: relative;
    z-index: 3;
}

.prozess-step-left {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    padding-right: 40px;
}

.p-number {
    font-size: 5rem;
    font-weight: 100;
    line-height: 1;
    color: rgba(255, 255, 255, 0.1);
    transition: color 0.4s ease, transform 0.4s ease;
    transform: translateX(20px);
}

.p-number.active {
    color: #fff;
    transform: translateX(0);
}

.prozess-step-center {
    flex: 0 0 60px;
    display: flex;
    justify-content: center;
    position: relative;
}

.p-dot-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.p-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #222;
    border: 2px solid #444;
    transition: background 0.4s ease, border-color 0.4s ease;
    box-shadow: 0 0 0 8px #000; /* Erzeugt den "Lücke"-Effekt zur Linie */
}

.p-dot-wrapper.active .p-dot {
    background: #e0e0e0;
    border-color: #e0e0e0;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4), 0 0 0 8px #000;
}

.p-dot-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0);
    transform: scale(0.5);
    pointer-events: none;
}

.p-dot-wrapper.active.ripple .p-dot-ring {
    animation: dotRipple 1s ease-out forwards;
}

@keyframes dotRipple {
    0% {
        transform: scale(1);
        border-color: rgba(255, 255, 255, 0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        border-color: rgba(255, 255, 255, 0);
        opacity: 0;
    }
}

.flag-icon {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    color: #fff;
    opacity: 0.2;
    transition: opacity 0.4s ease;
}

.flag-icon.finished {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.prozess-step-right {
    flex: 1;
    padding-left: 40px;
    display: flex;
    flex-direction: column;
}

.p-step {
    max-width: 800px;
    opacity: 0.5;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.p-step.active {
    opacity: 1;
    transform: translateY(0);
}

.mobile-number-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: #fff;
}

.mobile-number-title .m-number {
    display: none;
}

.p-step p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Prozess Mobile Responsive */
@media (max-width: 900px) {
    .prozess-section {
        margin-top: 50px;
        margin-bottom: 80px; /* passender abstand zur faq section */
    }

    .prozess-scroll-container {
        height: auto;
    }

    .prozess-sticky-wrapper {
        position: relative;
        height: auto;
        justify-content: flex-start;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .prozess-layout {
        height: auto;
        max-height: none;
        gap: 40px;
    }
    
    .p-timeline-line-bg, .p-timeline-line-fill {
        left: 20px;
        transform: translateX(0);
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30px);
        mask-image: linear-gradient(to bottom, transparent 0%, black 30px);
    }
    
    .flag-icon {
        left: 6px;
        transform: none;
        bottom: -30px;
    }
    
    .prozess-step-row {
        align-items: flex-start;
    }
    
    .prozess-step-left {
        display: none; /* Hide large numbers */
    }
    
    .prozess-step-center {
        flex: 0 0 40px;
        justify-content: flex-start;
    }
    
    .p-dot-wrapper {
        margin-left: 9px; /* align with line at 20px (20 - half dot width 12 = 8, slightly off so 9) */
        margin-top: 5px; /* align with text top */
    }
    
    .prozess-step-right {
        padding-left: 0;
        flex: 1;
    }
    
    .p-step {
        max-width: 500px;
    }
    
    .mobile-number-title .m-number {
        display: inline-block;
        font-weight: 300;
        color: rgba(255, 255, 255, 0.3);
        margin-right: 8px;
        transition: color 0.4s ease;
    }
    
    .p-step.active .mobile-number-title .m-number {
        color: #fff;
    }
}

/* =========================================
   FOOTER
========================================= */
footer {
    padding: clamp(20px, 4vw, 40px) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 100% !important;
    padding: 0 clamp(16px, 4vw, 40px);
}

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

.footer-links a {
    position: relative;
    color: var(--text-muted);
    transition: color 0.3s ease;
}



.footer-links a:hover {
    color: #fff;
}



/* =========================================
   ANIMATIONS (Scroll Reveals)
========================================= */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Page Load Animations */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes navCenterSlideDown {
    from {
        transform: translate(-50%, -100px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes slideRight {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideLeft {
    from {
        transform: translate(100px, 0);
        opacity: 0;
    }

    to {
        transform: translate(0, 0);
        opacity: 1;
    }
}

/* =========================================
   HAMBURGER MENU
========================================= */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 0;
}

.hamburger-menu .line {
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Pricing visibility toggles removed - now unified */
.preise-desktop, .preise-mobile {
    display: block;
}

/* Specific override for unified Referenzen section */
#referenzen .mobile-only,
#referenzen .desktop-only {
    display: none;
}

/* =========================================
   RESPONSIVE HERO (STACKED 1400PX)
========================================= */
@media (max-width: 1400px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 140px 0 100px 0;
        display: block; 
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0; /* Remove container padding to allow edge-to-edge bleed */
        width: 100%;
        max-width: 100%;
    }

    .hero-content {
        grid-column: auto;
        grid-row: auto;
        margin-left: 0;
        align-items: center;
        text-align: center;
        margin-bottom: 60px;
        top: 0;
        max-width: 800px;
        padding: 0 20px; /* Add padding here so text doesn't touch screen edges */
        opacity: 1;
        animation: slideDown 1.2s ease forwards;
    }

    .hero-content h1 {
        font-size: clamp(1.5rem, 6vw, 3rem);
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
        max-width: 550px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
        display: flex;
        justify-content: flex-end; /* Bleed to the right edge */
        top: 0;
        opacity: 1;
        animation: slideLeft 1.2s ease forwards;
        margin-right: 0;
        padding-right: 0;
    }

    .hero-img {
        width: 100%;
        max-width: 750px;
        transform: scale(1);
    }
}


@media (max-width: 1200px) {
    .references-grid {
        gap: 20px;
    }

    /* Pricing Stack Mobile Logic */
    .preise-scroll-container {
        height: 300vh; /* More natural physical scroll speed */
        overflow: visible;
        margin-bottom: 0;
        z-index: 20;
    }

    .preise-sticky-wrapper {
        position: sticky;
        top: 0; /* Reset to 0 for full viewport usage */
        height: 100vh;
        overflow: visible;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .pricing-stack {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 95vw;
        max-width: 340px;
        height: clamp(500px, 80vh, 720px); /* Responsive height to fit screens */
        position: relative;
    }

    .pricing-stack .price-card {
        position: absolute;
        width: 100%;
        max-width: 100%;
        padding: 30px 25px;
        background: rgba(0, 0, 0, 0.95);
        transform: translate3d(0, 0, 0);
        transition: none !important; /* CRITICAL: Disable transitions during JS animation */
        transform-origin: top center;
        will-change: transform;
    }

    .pricing-stack .price-card p {
        font-size: 0.9rem;
        margin-bottom: 15px;
        line-height: 1.5;
    }

    .pricing-stack .price-card .price-amount {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .pricing-stack .price-card .price-features li {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .pricing-stack .price-card .hero-btn {
        margin-top: 20px !important;
        padding: 12px 24px !important;
    }

    .pricing-inner-container {
        justify-content: flex-start;
        padding-top: 0; /* Removed padding to close the gap */
    }

    #preise .section-title {
        margin-bottom: 5px;
    }

    #preise .section-subtitle {
        margin-bottom: 0px; 
    }

    .pricing-header-container {
        margin-bottom: 0px; 
        padding: 0 20px;
    }

    #preise {
        padding-top: 0px; /* Minimal top padding */
        position: relative;
        z-index: 20;
    }

    .prozess-section {
        margin-top: 0;
        position: relative;
        z-index: 10; /* Lower than pricing section */
        background: var(--bg-color);
    }
}

@media (max-width: 900px) {




    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    /* Unified Referenzen Stacking Logic */
    .references-scroll-container {
        height: 350vh;
        overflow: clip;
    }

    .references-sticky-wrapper {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow: hidden;
    }

    .references-inner {
        position: relative;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 20px;
    }

    .references-inner .section-title {
        margin-bottom: 70px;
        z-index: 20;
    }

    /* Transform grid into stacking container */
    .references-grid {
        position: relative;
        width: 92vw;
        max-width: 500px;
        height: auto;
        margin: 0 auto;
        display: block; /* No flex needed for absolute stack */
    }

    .ref-card {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        background: rgba(10, 10, 12, 0.95);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border: 1px solid var(--accent-color);
        border-radius: 24px;
        padding: 20px;
        box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
        display: flex;
        flex-direction: column;
        gap: 15px;
        will-change: transform;
        transform: translate3d(0, 0, 0);
        transform-origin: center center;
        cursor: pointer;
    }

    /* The first card stays relative to give the container height */
    .ref-card:first-child {
        position: relative;
        z-index: 1;
    }

    .ref-img {
        flex: none;
        width: 100%;
        aspect-ratio: 16 / 9;
        margin-bottom: 0;
        pointer-events: auto;
        background-position: top;
    }

    .ref-info h4 {
        font-size: 1.4rem;
    }

    @keyframes tapScroll {
        0% { background-position: top; }
        70% { background-position: bottom; }
        85% { background-position: bottom; }
        100% { background-position: top; }
    }

    .checkbox-group input {
        width: 32px;
        height: 32px;
        margin-top: 0;
        flex-shrink: 0;
        filter: brightness(0.7);
        cursor: pointer;
    }

    .checkbox-group label {
        font-size: 0.95rem;
        line-height: 1.3;
        margin-top: 4px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .services-sticky-wrapper {
        padding: 10px 0;
    }

    #services .section-title {
        margin-bottom: 20px;
    }

    .services-layout {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 10px;
    }

    .services-left {
        width: 100%;
        max-width: 600px;
    }

    .services-right {
        width: 100%;
        max-width: 350px;
    }

    .service-item h3 {
        font-size: 1.35rem;
    }

    .service-items {
        gap: 15px;
    }
}

@media (max-width: 1000px) {
    .hero-link-btn .arrow-line {
        transform: scaleX(1);
    }

    .hero-link-btn .arrow-head {
        transform: translateX(0);
    }

    /* Disable hover animations for buttons and hero content */
    .hero-btn:hover,
    .hero-link-btn:hover,
    .btn-glass:hover,
    .back-link:hover,
    .nav-center a:hover {
        transform: none !important;
        box-shadow: none !important;
        opacity: 1 !important;
        background: inherit !important;
    }

    .hero-btn::before,
    .hero-btn::after,
    .hero-btn:hover::before,
    .hero-btn:hover::after {
        display: none !important; /* Disable glow effects on hover */
    }

    .hero-link-btn:hover .arrow-line,
    .hero-link-btn:hover .arrow-head {
        transition: none !important;
    }

    .text-glow-wrapper {
        --x: 50% !important;
        --y: 50% !important;
        pointer-events: none;
    }

    #preise .section-subtitle {
        max-width: 550px;
    }
}

@media (max-width: 992px) {
    .nav-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 8px 20px;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1002;
    }

    .hamburger-menu {
        display: flex;
    }



    .nav-center,
    .nav-center.scrolled {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9); /* Slightly darker for better contrast */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 40px;
        transform: translateY(-100%);
        border-radius: 0;
        border: none;
        box-shadow: none;
        opacity: 0;
        visibility: hidden; /* Prevent flash and clicking while hidden */
        transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease, visibility 0.4s;
        padding-top: 10vh;
        z-index: 1000;
        pointer-events: none;
        animation: none; /* Disable desktop load animation */
    }

    .nav-center.open,
    .nav-center.scrolled.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    .nav-center a {
        font-size: 1.8rem;
        font-weight: 500;
    }

    .hamburger-menu.open .line1 {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-menu.open .line2 {
        opacity: 0;
    }

    .hamburger-menu.open .line3 {
        transform: translateY(-8px) rotate(-45deg);
    }



    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {


    .nav-center a {
        font-size: 1.5rem;
    }

    .service-item h3 {
        font-size: 1.3rem;
    }

    .price-amount {
        font-size: 1.5rem;
    }


}

@media (max-width: 560px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
    }

    .hero-btn, .hero-link-btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}

/* Ensure the body is the relative parent */
body {
    position: relative;
}

/* Legal Pages - Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 50px;
    color: #fff; /* Increased visibility */
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 12px 24px; /* Slightly larger */
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.08); /* More visible background */
    border: 1px solid rgba(255, 255, 255, 0.15); /* More visible border */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(-8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.back-link svg {
    width: 22px;
    height: 22px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-link:hover svg {
    transform: translateX(-5px);
}


