* {
    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;
    height: 500vh; /* 5 Ebenen x 100vh für genug Scroll-Raum */
    width: 100vw;
}

.layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.layer svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Z-Index für korrekte Schichtung */
#layer-1 {
    z-index: 4;
}

#layer-2 {
    z-index: 3;
}

#layer-3 {
    z-index: 2;
}

#layer-4 {
    z-index: 1;
}

#layer-5 {
    z-index: 0;
}

/* SVG Masken-Elemente */
.mask-bg {
    fill: white;
}

.mask-hole {
    fill: black;
}

/* SVG Hintergrund-Farben */
#layer-1 .background-rect {
    fill: #FF006E; /* Magenta */
}

#layer-2 .background-rect {
    fill: #00F5FF; /* Cyan */
}

#layer-3 .background-rect {
    fill: #CCFF00; /* Neon Yellow */
}

#layer-4 .background-rect {
    fill: #8338EC; /* Violett */
}

#layer-5 .background-rect {
    fill: #FF6B35; /* Orange */
}

/* SVG Text Styling */
.title {
    font-size: 140px;
    font-weight: bold;
    letter-spacing: 8px;
}

.description {
    font-size: 45px;
    line-height: 1.4;
}

/* Farbige Text-Farben mit hohem Kontrast */
#layer-1 .title {
    fill: #00F5FF; /* Cyan auf Magenta */
}

#layer-1 .description {
    fill: #fff; /* Weiß auf Magenta */
}

#layer-2 .title {
    fill: #FF006E; /* Magenta auf Cyan */
}

#layer-2 .description {
    fill: #000; /* Schwarz auf Cyan */
}

#layer-3 .title {
    fill: #8338EC; /* Violett auf Neon Yellow */
}

#layer-3 .description {
    fill: #1a1a1a; /* Dunkelgrau auf Neon Yellow */
}

#layer-4 .title {
    fill: #CCFF00; /* Neon Yellow auf Violett */
}

#layer-4 .description {
    fill: #fff; /* Weiß auf Violett */
}

#layer-5 .title {
    fill: #00F5FF; /* Cyan auf Orange */
}

#layer-5 .description {
    fill: #fff; /* Weiß auf Orange */
}

/* Email Link Styling */
.email-link {
    cursor: pointer;
    pointer-events: auto;
}

.email-link:hover .email-text {
    fill: #CCFF00;
}

.email-link:hover .email-text tspan {
    text-decoration: underline;
}

.email-text {
    transition: fill 0.3s ease;
    pointer-events: auto;
}

.email-text tspan {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.scroll-indicator p {
    font-size: 16px;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.scroll-indicator .arrow {
    font-size: 32px;
    animation: bounce 2s infinite;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Scroll Indicator ausblenden nach erstem Scroll */
body.scrolled .scroll-indicator {
    opacity: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .title {
        font-size: 100px;
    }

    .description {
        font-size: 35px;
    }
}

@media (max-width: 880px) {
    .content .title,
    .content .description {
        transform: translateX(300px);
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 70px;
        letter-spacing: 3px;
    }

    .description {
        font-size: 28px;
    }

    .content .title,
    .content .description {
        transform: translateX(400px);
    }

    .scroll-indicator p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 55px;
        letter-spacing: 2px;
        word-wrap: break-word;
        max-width: 90vw;
    }

    .description {
        font-size: 22px;
        max-width: 85vw;
    }

    .content .title,
    .content .description {
        transform: translateX(550px);
    }

    .scroll-container {
        height: 600vh; /* Mehr Platz für Mobile */
    }
}
