header{
    justify-content: space-between;
    display: flex;
    align-items: center;
    padding-right: 70px;
    /* box-shadow: 3px 3px 10px -6px rgba(79, 85, 252, 0.5); */
    box-shadow: 0 15px 25px -10px rgba(79, 85, 252, 0.5);

    position: sticky;
    top: 0;
    background-color: black;
    z-index: 100;
    margin: 0;
}

header img.logo{
    height: 70px;
    padding-left: 40px;
    padding-bottom: 15px;
    padding-top: 15px;
}   

header nav ul{
    list-style: none;
    display: flex;
    gap: 70px;
    margin-right: 50px;
}

header nav ul li a{
    text-decoration: none;
    color: lightblue;
    font-size: 22px;
    transition: ease-in 1s;
}

header nav ul li a:hover{
    color: rgb(83, 106, 255);
    transition: ease 1s;
    text-decoration: underline;
}

@media (max-width: 768px) {
    header{
        padding-right: 0;
        padding-bottom: 10px;
    }

    header img{
        padding-left: 20px;
        padding-bottom: 10px;
        height: 40px;
    }   

    header nav ul{
        flex-direction: column;
        gap: 20px;
        align-items: center;
        display: none;
    }

    header nav ul li a{
        font-size: 18px;
    }
}



/* --- HEADER BASIS --- */
header {
    justify-content: space-between;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: black;
    z-index: 100;
    padding: 10px 0; /* Vertikaler Abstand */
}

header img.logo {
    height: 70px;
    padding-left: 40px;
    position: relative;
    z-index: 1002; /* Logo bleibt über dem schwarzen Menü sichtbar */
}

/* --- HAMBURGER STYLING --- */
.menu-toggle {
    display: none; /* Auf Desktop versteckt */
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1002; /* Über der nav-list */
}

.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: #0084ff;
    transition: all 0.3s ease-in-out;
}

/* --- MOBILE STYLING --- */
@media screen and (max-width: 768px) {
    header {
        display: flex;
        justify-content: space-between; /* Logo links, Navigation/Toggle rechts */
        align-items: center;           /* DAS zentriert alles vertikal auf eine Linie */
        padding: 10px 20px;            /* 10px oben/unten, 20px rechts/links */
        height: 70px;                  /* Feste Höhe für bessere Kontrolle */
    }

    header img.logo {
        height: 45px;                  /* Logo-Größe für Mobilgeräte */
        padding-left: 0;               /* Padding weg, da Header-Padding übernimmt */
        position: relative;
        z-index: 1002;
    }

    .menu-toggle {
        display: flex;
        position: relative;            /* Weg von absolute, damit align-items greift */
        top: 0;                        /* Zurücksetzen */
        right: 0;                      /* Zurücksetzen */
        margin-right: 0;               /* Platzierung kommt vom Header-Padding */
        z-index: 1002;
    }
    
    /* ... Rest deines Codes (nav-list, Animationen) bleibt gleich ... */

    .nav-list {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.98);
        z-index: 1000;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .nav-list.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    /* X-Animation */
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

@media (min-width: 769px) and (max-width: 950px) {
    header{
        padding-right: 0px;
    }

    header nav ul{
        gap: 25px;
    }

    header nav ul li a{
        font-size: 1.1rem;
    }

    header img.logo{
        height: 50px;
        padding-left: 50px;
        padding-bottom: 1px;
        padding-top: 1px;
    }
    
    header nav ul li .menu_blue{
        font-size: 0.5rem;
    }
}

@media (min-width: 951px) and (max-width: 1200px) {
    header{
        padding-right: 20px;
    }

    header nav ul{
        gap: 40px;
    }

    header nav ul li a{
        font-size: 1.3rem;
    }

    header img.logo{
        height: 60px;
        padding-left: 50px;
        padding-bottom: 1px;
        padding-top: 1px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}