@font-face {
    font-family: 'Urbanist';
    src: url('../fonts/urbanist/Urbanist-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --font-primary: 'Urbanist', sans-serif;
}

body {
    background-color: #000000;
    color: var(--text-color);
    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overscroll-behavior: none;
}

.project-scrolly {
    height: calc(1200px + 100vh); 
}
.cta-scrolly {
    height: calc(1200px + 100vh);
}

/* Die BÃ¼hne bleibt im Bild kleben, bis der Wrapper zu Ende gescrollt ist */
.hero {
    position: sticky;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000000; /* Tiefes Schwarz */
}

/* --- NORMALER CONTENT BEREICH (NACH DEM SCROLLYTELLING) --- */
.normal-content {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #000000; /* VollstÃ¤ndig schwarzer Hintergrund */
    color: white;
}

.seamless-cover {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('../img/img1.png');
    background-size: cover;
    background-position: center;
    z-index: 15;
}

.slice {
    position: relative;
    width: 32%; /* Passt weiterhin für 3 gleichmäßige Spalten */
    height: 100%;
    overflow: visible; /* WICHTIG: Damit Texte und Pixel rausfliegen können */
    z-index: 1;
}

/* WICHTIG FÃœR PIXEL DISSOLVE: Der Pixel-Container */
.pixel-grid {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: grid;
    /* Wird via JS definiert: grid-template-columns / rows */
}

.pixel-cell {
    width: 100%;
    height: 100%;
    background-size: 100% 100%; /* Wird in JS auf die echte GrÃ¶ÃŸe skaliert */
    background-repeat: no-repeat;
    transform: scale(1.02); /* Verhindert Mikrolücken durch Anti-Aliasing */
    will-change: transform, opacity;
}

.proj-final {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Initiale Transparenz, da JS den Fade Ã¼bernimmt */
    opacity: 0; 
}

/* Die Ãœberschriften-Sektion hÃ¤ngt unter dem Bild */
.proj-text {
    position: absolute;
    top: 105%; 
    left: 0;
    width: 100%;
    text-align: left; 
    opacity: 0; 
}

.proj-text h3 {
    margin: 0;
    font-size: 0.5vw;
    font-weight: 900; 
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff;
    text-align: left; 
}

.proj-text p {
    margin-top: 10px;
    font-size: 0.25vw;
    line-height: 1.4;
    color: #ffffff;
    font-weight: 300;
}

/* Scroll Aufforderung (Clean, GroÃŸ) */
.scroll-prompt {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Manuelle Zentrierung ohne Flexbox, um jegliche Animations-Blockaden auszuschlieÃŸen */
    margin-top: -50px; 
    margin-left: -150px;
    width: 300px;
    height: 100px;
    text-align: center;
    z-index: 1000;
}

.scroll-text {
    display: inline-block;
    position: relative;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: #fff;
    margin-right: -0.4em;
    /* Animation wird nun zu 100% von Javascript (main.js render loop) gesteuert! */
    will-change: transform;
}


/* Die Leinwand fÃ¼r unsere Animation */
.fixed-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* HI Styling */
.text-hi {
    margin: 0;
    /* Reset fÃ¼r h1 */
    position: absolute;
    font-size: 57px;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.01em;
    /* Noch enger */
    opacity: 0; /* JS blendet es jetzt ein */
    will-change: transform, opacity;
}

/* Container fÃ¼r den Namen */
.details-container {
    margin: 0; /* Reset fÃ¼r h1 */
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 57px;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.01em; /* Noch enger */
    line-height: 1.0; /* Leicht erhÃ¶ht fÃ¼r Kleinbuchstaben/UnterlÃ¤ngen */
    margin-top: 35vh; /* Weiter runter geschoben */
}

/* Background Images - Chaotic Gallery Layout */
.bg-images {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Gesamtmasse bleibt im Zentrum */
    display: grid;
    grid-template-columns: repeat(11, 4vw); /* Geändert auf 11 für perfekte Symmetrie */
    grid-template-rows: repeat(8, 4vw);    
    gap: 1.5vw; /* Die gewÃ¼nschten AbstÃ¤nde zwischen den zersplitterten Bildern */
    z-index: -1;
    pointer-events: none;
}

.bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(0.9) translateY(40px); /* Startposition */
}

/* Exakte Zuweisung (Chaotisch, hochgradig unregelmÃ¤ÃŸig, aber zentrierte Gesamtmasse) */
.img-2 { grid-column: 3 / 4; grid-row: 3 / 7; } /* DÃ¼nne vertikale SÃ¤ule links (1x4) */
.img-3 { grid-column: 1 / 4; grid-row: 7 / 9; } /* Breiter Block unten links (3x2) */
.img-4 { grid-column: 8 / 12; grid-row: 1 / 3; } /* Langer Streifen oben rechts (4x2) */
.img-5 { grid-column: 10 / 12; grid-row: 5 / 9; } /* Block unten rechts (2x4) */
.img-6 { grid-column: 2 / 3; grid-row: 1 / 3; } /* Kleines StÃ¼ck links oben (1x2) */
.img-7 { grid-column: 4 / 6; grid-row: 2 / 4; } /* MittelgroÃŸes Teil oben Mitte (2x2) */
.img-8 { grid-column: 9 / 10; grid-row: 3 / 5; } /* Kleines Teil rechts von der Mitte (1x2) */
.img-9 { grid-column: 5 / 8; grid-row: 7 / 9; } /* DÃ¼nner horizontaler Streifen unten (3x2) */

/* Split Overlay für das Center-Bild */
.split-overlay {
    grid-column: 5 / 8; 
    grid-row: 4 / 6;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    width: 100%;
    height: 100%;
    position: relative; /* WICHTIG FÜR CONTAINMENT! */
    opacity: 0; /* JS steuert Opacity */
    z-index: 10;
}
/* Das makellose Bild, das Risse verdeckt, bis es splittet */
.seamless-cover {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('../img/img1.png');
    background-size: cover;
    background-position: center;
    z-index: 15; /* Liegt über den Slices, bis der Split beginnt */
}

.slice {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: visible; /* WICHTIG: Damit der Text unten heraushängt! */
    z-index: 1;
}

.slice-img-wrapper {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden; /* Schneidet NUR das Bild ab, NICHT den Text! */
}

.slice-bg {
    position: absolute;
    top: 0;
    width: 300%; height: 100%;
    background-image: url('../img/img1.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.slice-1 .slice-bg { left: 0; }
.slice-2 .slice-bg { left: -100%; }
.slice-3 .slice-bg { left: -200%; }

.proj-final {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 1; /* Immer sichtbar, wird initial geclippt */
    z-index: 2; /* Liegt über dem slice-bg */
    will-change: transform, clip-path;
}

/* Styling fÃ¼r die einzelnen Buchstaben */
.split-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
}

.split-text span.space {
    width: 0.3em;
}

/* Die sehr softe Pop-Up Klasse */
.split-text span.is-animating {
    animation: smoothPop 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes smoothPop {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
/* --- CTA BANNER SCROLLYTELLING --- */
.cta-hero {
    position: sticky;
    top: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    overflow: hidden;
}

.cta-banner-container-animated {
    position: relative;
    width: 46vw; /* Startbreite */
    height: 30vh; /* Starthöhe */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
    overflow: hidden; /* Croppt das Hintergrundbild! */
}

.banner-bg-wrapper {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw; height: 100vh;
    z-index: 1;
    background-color: black;
}

.banner-img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 1; 
}

.banner-darkness {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: black;
    opacity: 0;
}

.cutout-buttons-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    pointer-events: auto;
    width: 100%;
    text-align: center;
}

.cutout-inverted-group {
    /* Das Hintergrundbild wird exakt auf die Bildschirmmitte ausgerichtet, scrollt aber ganz normal mit! */
    background-image: url("../img/colorful_banner.png");
    background-size: 100vw 100vh;
    background-position: center;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    filter: invert(1);
}

.cutout-button {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.cutout-button.cta-main {
    font-size: 3.5vw; /* Angepasst auf den schmaleren Container */
    white-space: nowrap;
}

.cutout-button.cta-sub {
    font-size: 1.8vw;
    opacity: 0;
    white-space: nowrap;
}

.cutout-button .btn-icon {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.cutout-button:hover .btn-icon {
    transform: translateX(20px);
}

.cutout-inverted {
    color: transparent; /* Lässt den Hintergrund vom Parent (cutout-inverted-group) durchscheinen */
}

/* Removed cutout-static and old clipping classes */

