h1 {
    opacity: 0;
    transition: opacity 0.2s ease-in;
}

h1.visible {
    opacity: 1;
}


.button {
    opacity: 0;
}

.button.visible {
    opacity: 1;
}


.buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 15%;
}

/* TITELSEITE HERO SECTION */


.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.start {
    /* Nimmt die ganze Bildschirmhöhe ein */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}



/* Knopf-Regen Animation */
.falling_knopf {
    position: fixed;
    animation: fall linear forwards;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    80% {
        transform: translateY(80vh) rotate(288deg);
        opacity: 0.9;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Pinker-Knopf-Regen Animation */
.special_falling_knopf {
    position: absolute;
    opacity: 0;
    /* Startet unsichtbar */
    animation: fallToO 3s ease-in forwards;
    z-index: 10;
}

@keyframes fallToO {
    0% {
        opacity: 1;
        /* Wird sichtbar beim Start der Animation */
        top: -350px;
        left: 50%;
        transform: translate(-50%, 0) rotate(0deg);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(720deg);
    }
}


#o-target {
    opacity: 0;
    position: relative;
}


/* MEDIA QUERIES FÜR RESPONSIVE DESIGN */

/* Tablets und kleine Laptops */
@media (max-width: 768px) {
    .buttons {
        gap: 10%;
    }

    .button {
        font-size: clamp(1.5rem, 3vw, 2rem);
        padding: 3% 6%;
        margin-top: 8%;
    }
}

/* Mobile Geräte */
@media (max-width: 480px) {
    h1 {
        font-size: clamp(3rem, 8vw, 4rem);
    }

    .buttons {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        padding: 0 20px;
    }

    .button {
        font-size: 1.2rem;
        padding: 15px 30px;
        margin-top: 0;
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
}

