/* Originale CSS-Einstellungen */
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
    background: black;
}

/* Ladeanimation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none; /* Deaktiviert Interaktionen mit dem Ladebildschirm */
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fullscreen-Container */
.fullscreen-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: backgroundEffect 3s ease-in-out forwards; /* 7s Gesamtdauer */
    opacity: 0; /* Startet unsichtbar */
    transition: opacity 1s ease-in-out;
}

.fullscreen-container.visible {
    opacity: 1; /* Wird sichtbar nach dem Laden */
}

/* Reihen mit Bildern */
.rolling-row {
    display: flex;
    width: 100%;
    height: 33.33%;
    overflow: hidden;
    filter: blur(4px) brightness(0.5); /* Initiale Unschärfe und Dunkelheit */
    animation: backgroundEffect 7s ease-in-out forwards; /* 7s Gesamtdauer */
}

.rolling-image {
    flex: 0 0 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    animation: scroll 72s linear infinite; /* 3x langsamer */
}

.rolling-row:nth-child(2) .rolling-image {
    animation-direction: reverse;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Animation für Hintergrundverbesserung */
@keyframes backgroundEffect {
    0%, 28.57% { /* 2 Sekunden Verzögerung (2/7 * 100%) */
        filter: blur(4px) brightness(0.5);
    }
    100% {
        filter: blur(0px) brightness(1);
    }
}

/* Button */
.button-container {
    position: absolute;
    bottom: 10%;
    display: flex;
    justify-content: center;
    width: 100%;
}

.intro-button {
    width: 200px;
    height: auto;
    cursor: pointer;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.intro-button.visible {
    opacity: 1;
}

/* Signatur */
.signature {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.signature.visible {
    opacity: 1;
}

/* Vorhang */
.curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 10;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s ease-in-out;
}

.curtain.open {
    transform: scaleX(1);
}

/* Neue Animation für Seitenwechsel */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0;
    z-index: 20;
    transition: opacity 0.8s ease-in-out;
}

.page-transition.active {
    opacity: 1;
}
