header {
    position: relative; /* Headerelement am oberen Rande festkleben*/
}

#hauptnavigation {
    position: relative;
    left: 0; /* Fixiert Navigationsleiste am oberen Rande*/
    top: 0;
    right: 0;
    background-image: url("Bilder/background_up.jpg");
    background-size: 100% 230%;
    background-repeat: no-repeat;
    display: flex; /* Umwandlung in Flexboxbehälter, damit Logo & Navigationsleiste nebeneinander angezeigt werden*/
}

.logobereich {
    width: 20%; /* 24% Breite weil der Logobereich am weißen Bereich enden soll*/
    display: flex; /* damit Logo in diesem Bereich plaziert werden kann*/
    justify-content: center;
    align-items: center;
}

.nav-logo {
    background-image: url("logo.jpg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left;
    width: 110px; /* Größe des Bildes anpassen*/
    height: 110px;
}

.navigationsbereich {
    width: 80%;
    display: flex;
    flex-direction: column; /* damit Inhalt untereinander angeordnet wird */
}

.nav-link {
    font-size: 1em;
    text-decoration: none; /* entfernt Unterstreichung bei Link */
    font-weight: bold;
    text-align: center;
    padding: 14px 14px;
}

.nav-icon {
    font-size: 1.2em;
}

.nav-unten {
    display: flex;
    width: 100%;
    height: 100%;
}

.navigationspunkte {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60vw;
}

.nav-punkt {
    color: rgb(10, 3, 36); /* um die Links schwarz zu machen*/
}

.nav-punkt:hover { /* beim drüberklicken*/
    background-color: rgb(0, 0, 0, 0.2); /* letzte Zahl gibt transparenz an*/
}

.nav-punkt.aktiv {
    font-weight: bolder;
    color: #2744e9;
}

.icon {
    display: none;

}

@media (max-width: 600px) {
    body {
        padding-top: 10px;

    }
    
    #hauptnavigation {
        flex-direction: column;
        height: 50px;
    }
    .nav-logo {
        width: 50px;
        height: 50px;
    }
    #hauptnavigation div {
        width: 100%;
    }
    .navigationsbereich {
        display:none;
    }
    .nav-oben {
        display: none;
    }
    .nav-unten {
        background-color: white;
        display: none;
    }
    .icon {
        display: block;
        position: absolute;
        top: 3px;
        right: 12px;
        font-size: 30px;
        color: white;
        user-select: none;
    }       
    .navigation-geoeffnet .navigationsbereich {
        display: flex;
        padding-top: 10px;
    }
    .navigation-geoeffnet .nav-unten {
        display: flex;
        border-bottom: 1px solid gray;
    }
    .navigation-geoeffnet .navigationspunkte {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /*Elemente werden linksbündig angeordnet*/
    }
}