nav {
    background-color: transparent;
    transition: background-color 0.5s ease;

}

nav:hover {
    background-color: #000; /* Hintergrund wird schwarz bei Hover */
}


.welcome-section {
    background-color: #000!important;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.welcome-message {
    font-size: 36px;
    margin-bottom: 20px;
    animation: fadeInText 2s ease-in-out forwards;
}

/* Wenn der Benutzer die Seite betritt, wird der Hintergrund animiert */
body.initial-load .welcome-section::before {
    content: "";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 2;
    animation: fadeOut 2s ease-in-out forwards 2s; /* Verzögere die Animation um 2 Sekunden */
}

.background-image {
    /* Hintergrundbild-Stil nach dem Erscheinen des Texts */
    background-image: url('/img/coding-background.jpeg'); /* Passe den Pfad zum Hintergrundbild an */
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 115%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0; /* Das Element ist standardmäßig unsichtbar */
    z-index: 0; /* Setze die Z-Position über den Text */
    animation: fadeIn 2s ease-in-out forwards 1s; /* Verzögere die Animation um 4 Sekunden */
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

