* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    background: #000;
    color: #fff;
}

.scroll-container {
    position: relative;
    /* Höhe wird dynamisch durch JavaScript gesetzt */
    width: 100vw;
}

.layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    will-change: clip-path;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Vignette Effekt für alle Layer */
.layer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, .6) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Körnung/Textur für alle Layer */
.layer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 3;
    opacity: 0.4;
}

/* Z-Index für korrekte Schichtung */
#layer-0 {
    z-index: 8;
    background: #1a1a1a; /* Dunkelgrau */
}

#layer-1 {
    z-index: 7;
    background: #FF006E;
}

#layer-2 {
    z-index: 6;
    background: #00F5FF; /* Cyan */
}

#layer-3 {
    z-index: 5;
    background: #CCFF00; /* Neon Yellow */
}

#layer-4 {
    z-index: 4;
    background: #8338EC; /* Violett */
}

#layer-5 {
    z-index: 3;
    background: #FF6B35; /* Orange */
}

#layer-6 {
    z-index: 2;
    background: #00C9A7; /* Türkis/Mint */
}

#layer-7 {
    z-index: 1;
    background: #1a1a1a; /* Dunkelgrau */
}

#layer-8 {
    z-index: 0;
    /* Lebendiger, aber dunkler Verlauf, passt zu den anderen satten Farben */
    background: linear-gradient(135deg, #062a4f 0%, #003b59 45%, #007a7a 100%);
}

/* Content Container */
.layer-content {
    width: 100%;
    /* Padding berechnet: bei Viewport > 1200px zentriert, sonst 40px */
    padding-left: max(40px, calc((100vw - 1200px) / 2 + 40px));
    padding-right: max(40px, calc((100vw - 1200px) / 2 + 40px));
    padding-top: clamp(60px, 20vh, 200px);
    padding-bottom: 60px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    z-index: 10;
}

/* Titel Styling - Linksbündig an fester Position */
.title {
    font-size: clamp(2.5rem, 7vw, 8rem);
    font-weight: bold;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    line-height: 1.1;
    white-space: nowrap;
    text-overflow: ellipsis;
    word-wrap: normal;
    overflow-wrap: normal;
    hyphens: none;
    
}

.description {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    line-height: 1.6;
    max-width: 900px;
    hyphens: auto;
    word-wrap: normal;
    overflow-wrap: normal;
    max-height: none;
    overflow-y: visible;
}

.description p {
    margin-bottom: 1.5rem;
}

.description ul {
    list-style: none;
    padding-left: 0;
}

.description li {
    padding-left: 1.5em;
    margin-bottom: 0.8rem;
    position: relative;
}

.description li::before {
    content: "→";
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Farbige Text-Farben mit hohem Kontrast */
#layer-1 .title {
    color: #00F5FF; /* Cyan auf Magenta */
}

#layer-1 .description {
    color: #fff; /* Weiß auf Magenta */
}

#layer-2 .title {
    color: #FF006E; /* Magenta auf Cyan */
}

#layer-2 .description {
    color: #000; /* Schwarz auf Cyan */
}

#layer-2 .description li::before {
    color: #FF006E;
}

#layer-3 .title {
    color: #8338EC; /* Violett auf Neon Yellow */
}

#layer-3 .description {
    color: #1a1a1a; /* Dunkelgrau auf Neon Yellow */
}

#layer-3 .description li::before {
    color: #8338EC;
}

#layer-4 .title {
    color: #CCFF00; /* Neon Yellow auf Violett */
}

#layer-4 .description {
    color: #fff; /* Weiß auf Violett */
}

#layer-5 .title {
    color: #00F5FF; /* Cyan auf Orange */
}

#layer-5 .description {
    color: #fff; /* Weiß auf Orange */
}

#layer-6 .title {
    color: #8338EC; /* Violett auf Türkis */
}

#layer-6 .description {
    color: #1a1a1a; /* Dunkelgrau auf Türkis */
}

#layer-6 .description li::before {
    color: #8338EC;
}

#layer-7 .title {
    color: #00F5FF; /* Cyan auf Dunkelgrau */
}

#layer-7 .description {
    color: #fff; /* Weiß auf Dunkelgrau */
}

#layer-8 .title {
    color: #00F5FF; /* Cyan auf dunklem Blau */
}

#layer-8 .description {
    color: #fff; 
    max-height: calc(100vh - 40vh);
    overflow-y: auto;
    padding-right: 1rem; 
}

/* Schicke, dezente Scrollbar nur für #layer-8 */
#layer-8 .description::-webkit-scrollbar {
    width: 10px;
}
#layer-8 .description::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
}
#layer-8 .description::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00F5FF, #00C9A7);
    border-radius: 8px;
}
#layer-8 .description::-webkit-scrollbar-thumb:hover {
    filter: brightness(0.9);
}

/* CTA Button Styling */
.cta-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    margin-top: 2rem;
    margin-right: 2rem;
    font-size: 1.3rem;
    font-weight: bold;
    color: #FF6B35;
    background: #fff;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background: #00F5FF;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 245, 255, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .layer-content {
        padding-left: max(20px, calc((100vw - 1200px) / 2 + 20px));
        padding-right: max(20px, calc((100vw - 1200px) / 2 + 20px));
        padding-top: clamp(40px, 15vh, 150px);
        padding-bottom: 40px;
    }

    .title {
        font-size: clamp(2rem, 8vw, 4rem);
    }

    .description li {
        font-size: 0.95rem;
        margin-bottom: 0.7rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .layer-content {
        padding-left: max(15px, calc((100vw - 1200px) / 2 + 15px));
        padding-right: max(15px, calc((100vw - 1200px) / 2 + 15px));
        padding-top: clamp(30px, 12vh, 100px);
        padding-bottom: 30px;
    }

    .title {
        font-size: clamp(1.8rem, 9vw, 3rem);
        letter-spacing: 0.02em;
        line-height: 1.2;
    }

    .description {
        font-size: 0.9rem;
        max-height: 65vh;
    }

    .description li {
        padding-left: 1.2em;
    }

    .cta-button {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }
}
