/* ============================================
   krah.cloud — Cloud Animation
   Bewegende Wolkendecke + Scroll-Through-Effect
   ============================================ */

/* ---- Hero mit Wolkendecke ---- */
.cloud-hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.sky-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        #0D47A1 0%,
        #1565C0 20%,
        #1E88E5 40%,
        #42A5F5 60%,
        #90CAF9 80%,
        #E3F2FD 100%
    );
    z-index: 0;
}

/* ---- Cloud Layers ---- */
.cloud-layer {
    position: absolute;
    width: 200%;
    height: 100%;
    background-repeat: repeat-x;
    background-size: contain;
    z-index: 1;
}

.cloud-layer-1 {
    bottom: -5%;
    background-image:
        radial-gradient(ellipse 180px 80px at 10% 90%, rgba(255,255,255,0.95) 0%, transparent 70%),
        radial-gradient(ellipse 250px 100px at 30% 85%, rgba(255,255,255,0.9) 0%, transparent 70%),
        radial-gradient(ellipse 200px 90px at 55% 88%, rgba(255,255,255,0.92) 0%, transparent 70%),
        radial-gradient(ellipse 280px 110px at 75% 82%, rgba(255,255,255,0.88) 0%, transparent 70%),
        radial-gradient(ellipse 160px 70px at 90% 90%, rgba(255,255,255,0.93) 0%, transparent 70%);
    animation: drift-clouds 35s linear infinite;
    opacity: 1;
}

.cloud-layer-2 {
    bottom: 5%;
    background-image:
        radial-gradient(ellipse 220px 90px at 15% 80%, rgba(255,255,255,0.7) 0%, transparent 70%),
        radial-gradient(ellipse 300px 120px at 40% 75%, rgba(255,255,255,0.65) 0%, transparent 70%),
        radial-gradient(ellipse 180px 80px at 65% 82%, rgba(255,255,255,0.72) 0%, transparent 70%),
        radial-gradient(ellipse 260px 100px at 85% 78%, rgba(255,255,255,0.68) 0%, transparent 70%);
    animation: drift-clouds 50s linear infinite reverse;
    opacity: 0.8;
}

.cloud-layer-3 {
    bottom: 15%;
    background-image:
        radial-gradient(ellipse 200px 80px at 20% 70%, rgba(255,255,255,0.45) 0%, transparent 70%),
        radial-gradient(ellipse 280px 100px at 50% 65%, rgba(255,255,255,0.4) 0%, transparent 70%),
        radial-gradient(ellipse 170px 70px at 80% 72%, rgba(255,255,255,0.42) 0%, transparent 70%);
    animation: drift-clouds 70s linear infinite;
    opacity: 0.6;
}

.cloud-layer-4 {
    bottom: 25%;
    background-image:
        radial-gradient(ellipse 150px 60px at 25% 60%, rgba(255,255,255,0.25) 0%, transparent 70%),
        radial-gradient(ellipse 200px 80px at 60% 55%, rgba(255,255,255,0.2) 0%, transparent 70%),
        radial-gradient(ellipse 130px 50px at 85% 62%, rgba(255,255,255,0.22) 0%, transparent 70%);
    animation: drift-clouds 90s linear infinite reverse;
    opacity: 0.4;
}

@keyframes drift-clouds {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ---- Hero Content ---- */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1rem;
}

.hero-content h1 {
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
}

.hero-content .lead {
    font-size: 1.25rem;
    font-weight: 300;
}

/* ---- Scroll Indicator ---- */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    z-index: 10;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ---- Cloud Transition (Durch-die-Wolke-Effekt) ---- */
.cloud-transition {
    position: relative;
    height: 40vh;
    background: linear-gradient(
        180deg,
        #E3F2FD 0%,
        #FFFFFF 100%
    );
    overflow: hidden;
}

.cloud-fog {
    position: absolute;
    left: -10%;
    width: 120%;
    height: 50%;
}

.cloud-fog-top {
    top: -10%;
    background:
        radial-gradient(ellipse 60% 100% at 20% 0%, rgba(255,255,255,1) 0%, transparent 60%),
        radial-gradient(ellipse 50% 80% at 50% 0%, rgba(255,255,255,0.95) 0%, transparent 55%),
        radial-gradient(ellipse 55% 90% at 80% 0%, rgba(255,255,255,1) 0%, transparent 60%),
        radial-gradient(ellipse 70% 120% at 35% 0%, rgba(227,242,253,0.8) 0%, transparent 50%),
        radial-gradient(ellipse 45% 80% at 65% 0%, rgba(227,242,253,0.9) 0%, transparent 55%);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.cloud-fog-bottom {
    bottom: -10%;
    background:
        radial-gradient(ellipse 60% 100% at 30% 100%, rgba(255,255,255,1) 0%, transparent 60%),
        radial-gradient(ellipse 50% 80% at 60% 100%, rgba(255,255,255,0.95) 0%, transparent 55%),
        radial-gradient(ellipse 55% 90% at 85% 100%, rgba(255,255,255,1) 0%, transparent 60%),
        radial-gradient(ellipse 70% 120% at 15% 100%, rgba(227,242,253,0.8) 0%, transparent 50%);
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ---- Parallax Wolken beim Scrollen ---- */
.cloud-hero .cloud-layer {
    transition: transform 0.1s linear;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .cloud-hero {
        height: 80vh;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .cloud-transition {
        height: 25vh;
    }
}
