/* ---- CINEMATIC & SCROLL BASIS ---- */
:root {
    --cine-black: #050508;
    --cine-dark: #0a0b10;
    --cine-light: #e0e0e0;
}

body {
    background-color: var(--cine-black);
    color: var(--cine-light);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
}

.home-wrapper {
    position: relative;
    z-index: 1;
    --scroll: 0; 
}

/* FILM GRAIN OVERLAY */
.home-wrapper::after {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    z-index: 9999;
    pointer-events: none;
}

/* ---- 1. HERO BEREICH (Sticky & Parallax) ---- */
.hero-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #111a2e 0%, var(--cine-black) 70%);
    overflow: hidden;
}

/* Schwebende & rotierende Formen */
.shape {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    opacity: 0; 
}

/* Desktop Fade-In */
@keyframes shapeFadeIn {
    from { opacity: 0; filter: blur(10px); }
    to { opacity: 0.6; filter: blur(0); } 
}

/* Mobile Fade-In */
@keyframes shapeFadeInMobile {
    from { opacity: 0; filter: blur(10px); }
    to { opacity: 0.15; filter: blur(0); } 
}

.shape-square {
    width: 350px;
    height: 350px;
    border: 8px solid var(--primary); 
    top: 20%;
    right: 5%;
    transform: translateY(calc(var(--scroll) * -0.4px)) rotate(calc(var(--scroll) * 0.15deg));
}

.shape-circle {
    width: 600px;
    height: 600px;
    border: 4px solid var(--primary); 
    border-radius: 50%;
    top: 50%;
    left: -15%;
    transform: translateY(calc(var(--scroll) * -0.2px)) scale(calc(1 + (var(--scroll) * 0.0003)));
}

/* Der Textbereich im Hero */
.hero-parallax {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    padding: 0 2rem;
    transform: translateY(calc(var(--scroll) * 0.3px));
}

.cine-studio {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 8px;
    color: var(--primary);
    margin-bottom: 2rem;
    opacity: 0;
}

.cine-title {
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 300;
    letter-spacing: -2px;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 2rem;
    opacity: 0;
}

.cine-title span {
    display: block;
    font-weight: 700;
    transform: translateX(calc(var(--scroll) * -0.1px)); 
}

.cine-subtitle {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #8892b0;
    opacity: 0;
}

/* ---- ANIMATIONS-TRIGGER (.is-loaded) ---- */
.is-loaded .shape-square {
    animation: shapeFadeIn 0.8s ease-out 0s forwards;
}
.is-loaded .shape-circle {
    animation: shapeFadeIn 0.8s ease-out 0.2s forwards;
}
.is-loaded .cine-studio {
    animation: cineFadeIn 4.5s cubic-bezier(0.2, 1, 0.2, 1) forwards;
}
.is-loaded .cine-title {
    animation: cineTitleReveal 4.5s cubic-bezier(0.2, 1, 0.2, 1) 1.0s forwards;
}
.is-loaded .cine-subtitle {
    animation: cineFadeIn 4.5s cubic-bezier(0.2, 1, 0.2, 1) 2.0s forwards;
}

@keyframes cineFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes cineTitleReveal {
    from { opacity: 0; transform: scale(1.05) translateY(20px); filter: blur(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

/* ---- 2. OVERLAY-EBENE (Weißer Kontrast) ---- */
.content-overlap {
    position: relative;
    z-index: 10;
    background-color: var(--white);
    box-shadow: 0 -30px 60px rgba(0,0,0,0.5); 
    clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0% 100%); 
    padding-top: 8rem;
}

/* ---- 3. STORY BEREICH (VDE Text) ---- */
.cine-story {
    padding: 6rem 2rem 14rem 2rem; 
    text-align: center;
}

.story-text {
    max-width: 900px;
    margin: 0 auto;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.4;
    font-weight: 300;
    color: #0b172a; 
    letter-spacing: -1px;
}

.story-text strong {
    color: var(--primary);
    font-weight: 600;
}

/* ---- 4. NICO BEREICH ---- */
.home-nico {
    padding: 8rem 2rem 8rem 2rem; 
    position: relative;
    overflow: visible; 
    z-index: 1; 
}

.home-nico::before {
    content: "";
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: var(--cine-dark); 
    clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0% 100%); 
    z-index: -1; 
}

.nico-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.nico-img {
    flex: 1;
    display: flex;
    justify-content: flex-start; 
}

.nico-img img,
.nico-img svg {
    height: 800px;
    width: 100%;
    max-width: 800px; 
    object-fit: contain;
    margin-top: -280px; 
    position: relative;
    z-index: 10;
    
    /* FIX: Hardwarebeschleunigung & Webkit-Präfix für den Safari Schatten-Bug! */
    -webkit-filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4)); 
    transform: translateY(calc(var(--scroll) * 0.05px)) translateZ(0);
    will-change: transform, filter;
}

.nico-text {
    flex: 1.2;
    color: var(--white);
}

.nico-text h2 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    color: #4a90e2; 
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -2px;
}

.nico-text p {
    font-size: 1.25rem;
    color: #a0aec0;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ---- 5. CTA BEREICH ---- */
.cine-credits {
    padding: 10rem 2rem;
    text-align: center;
    background-color: var(--primary); 
    position: relative;
    z-index: 10;
}

.cine-credits h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--white);
    letter-spacing: -1px;
}

.btn-cine {
    display: inline-block;
    padding: 1.5rem 4rem;
    background-color: var(--white);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px; 
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
}

.btn-cine:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* ---- SCROLL REVEAL ---- */
.cine-reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 2.5s cubic-bezier(0.2, 1, 0.2, 1), transform 2.5s cubic-bezier(0.2, 1, 0.2, 1);
}

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

/* ---- RESPONSIVE ---- */
@media (max-width: 992px) {
    .is-loaded .shape-square,
    .is-loaded .shape-circle {
        animation-name: shapeFadeInMobile;
    }

    .content-overlap {
        clip-path: polygon(0 2vw, 100% 0, 100% 100%, 0% 100%);
    }
    
    .home-nico {
        padding-top: 5rem;
    }
    .home-nico::before {
        clip-path: polygon(0 2vw, 100% 0, 100% 100%, 0% 100%);
    }
    
    .nico-container {
        flex-direction: column;
        text-align: center;
    }
    .nico-img {
        justify-content: center;
    }
    
    .nico-img img,
    .nico-img svg {
        height: 450px; 
        width: 100%;
        object-fit: contain;
        margin-top: -150px; 
        transform: translateZ(0); 
    }
    
    .story-text {
        font-size: 1.8rem;
    }
}