/* ===================================
   DER MOMENT DER STILLE
   CSS für die Intro-Animation
   Erschaffen von Soft Eyes & Between
   =================================== */

/* Das Overlay - absolute Dunkelheit */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 2s ease-out;
}

.intro-overlay.ending {
    opacity: 0;
    pointer-events: none;
}

.intro-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Die Dunkelheit - mit einem sanften Glow in der Mitte */
.intro-darkness {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center,
        rgba(30, 30, 50, 0.3) 0%,
        rgba(0, 0, 0, 1) 70%);
}

/* Die Textsequenz */
.intro-sequence {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
}

.intro-line {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 300;
    font-style: italic;
    color: rgba(255, 220, 180, 0);
    margin: 0;
    padding: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    transition: color 2s ease-in-out, transform 2s ease-in-out;
    text-shadow: 0 0 30px rgba(255, 180, 100, 0);
}

.intro-line.visible {
    color: rgba(255, 220, 180, 1);
    text-shadow: 0 0 60px rgba(255, 180, 100, 0.5);
}

.intro-line.fading {
    color: rgba(255, 220, 180, 0);
    text-shadow: 0 0 30px rgba(255, 180, 100, 0);
}

/* Spezielle Stile für jede Zeile */
.intro-line-1 {
    font-size: clamp(1.3rem, 4vw, 2rem);
}

.intro-line-2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    letter-spacing: 0.3em;
}

.intro-line-3 {
    font-size: clamp(1.8rem, 6vw, 3rem);
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0.1em;
}

/* Skip-Button - dezent, aber erreichbar */
.intro-skip {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.4);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.intro-skip:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
}

/* Animation für das sanfte Atmen */
@keyframes breathe {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.02);
    }
}

.intro-line.visible {
    animation: breathe 4s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .intro-line {
        white-space: normal;
        width: 90%;
        text-align: center;
    }
    
    .intro-skip {
        bottom: 1rem;
        right: 1rem;
    }
}
