
header {
    margin: 0;
    width: 100%;
    position: sticky;
    top: 0;
    overflow: hidden;
    z-index: 1;
    background-color: rgba(25, 25, 25, 0.500);
}

/*Beginn Hamburger-Icon*/
.hamburger-frame {
    width: 36px;
    height: 42px;
    background-color: rgba(57, 57, 57, 0.858);
    border-radius: 4px;
    margin: 10px 0px 0px 10px;
    padding: 0px 10px;
    position: relative;                 /*damit wird Position:absolute bei den Linien zum Bezugspunkt*/
    cursor: pointer;
}
.linie {
    width: 80px;
    height: 8px;
    background-color: white;
    border-radius: 4px;
    position: absolute;
}
.linie1 {
    top:16px
}
.linie2 {
    top: 40px;
}
.linie3 {
    top:64px;
}
.nav_menue {
    display: none;
}
#idOpenMenue:checked ~ .nav_menue {display: block;}

#idOpenMenue:checked ~ label .linie1 {transform: rotate(-45deg); top:40px; transition: transform 0.3s;}
#idOpenMenue:checked ~ label .linie2 {display:none;}
#idOpenMenue:checked ~ label .linie3 {transform: rotate(45deg); top:40px; transition: transform 0.3s;}

#idOpenMenue {
    display: none;
}
/*Ende Hamburger-Icon*/

/*Beginn Navigationsmenü*/
.nav_menue {
    width: 100%;
}
.nav_logo img {
    width: 10%;
    margin: 1%;
}
ul {
    list-style: none;
    gap: 30px;
}
a {
    text-decoration: none;
}
.hamburger-checkbox {                     /*die eigentlichen Checkboxen müssen nicht sichbar sein, da ein Label verwendet wird*/
    /* display: none; entfernt das Element aus dem Accessibility Tree -> Barriere! */
    /* Stattdessen visuell verstecken, aber fokussierbar lassen: */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/*Ende Navigationsmenü*/

/*Desktop-Variante ab 800px*/
@media (min-width:801px) {
    .nav_resp_logo {                    /*mobile Logo ausblenden*/
        display: none;
    }
    .hamburger-frame, .linie {          /*Hamburger-Icon ausblenden*/
        display: none;
    }
    .nav_logo {                         /*Desktop Logo stylen*/
        width: 30%;
    }
    .nav_logo img {                         /*Desktop Logo stylen*/
        width: 30%;
        margin: 2% 0 0 80px;
    }
    .nav_menue {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding-right: 4%;
    }
    .nav_menu {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding-right: 4%;
    }
    nav ul {
        display: flex;
        gap: 30px;
        list-style: none;
    }
    nav a {
        box-sizing: border-box;
        position: relative;
        padding: 8px;
        color: var(--primary-text-color);
        font-size: clamp(1rem, 1.3vw, 1.4rem);
        background-image: linear-gradient(to right, var(--secondary-text-color), var(--secondary-text-color));
        background-size: 5px 100%;
        background-repeat: no-repeat;
        transition: background-size 0.4s ease;
    }
    nav a:hover {
        background-size: 100% 100%;
        border-radius: 0 10px 10px 10px;      
    }
}

/*mobile Variante bis 800px*/
@media (max-width:800px) {
    header {
        display: flex;
        flex-direction: column;
        justify-content: center;
        z-index: 1;
    }
    .resp_nav_menü {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .nav_logo img{
        display: none;
    }
    .nav_resp_logo {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        margin-left: 5%;
    }
    .nav_resp_logo img{
        height: 35px; /* Feste Höhe für das Logo in der mobilen Ansicht */
        width: auto;  /* Breite passt sich proportional an */
        padding: 0;
        opacity: 0.5;
    }
    .hamburger-frame {
        margin: 0 6% 0 0;
        background: transparent;
        height: 42px;
        border-radius: 0;   
    }
    .linie {
        width: 36px;
        height: 4px;
        border-radius: 2px;
    }
    .linie1 {
        left: 7px;
        top:8px
    }
    .linie2 {
        left: 7px;
        top: 20px;
    }
    .linie3 {
        left: 7px;
        top: 32px;
    }
    #idOpenMenue:checked ~ label .linie1 {
        left: 7px;
        top: 20px;
    }
    #idOpenMenue:checked ~ label .linie3 {
        left: 7px;
        top: 20px
    }
    #idOpenMenue ~ nav .ebene1 {
        animation: move 0.7s forwards;       /*Animation*/
        overflow: hidden;                   /*Zeilenumbruch verhindern (da Animation bei 0% Breite beginnt*/
        white-space: nowrap;                /*damit den vorherigen Zeilenumbruch ausblenden (wichtig als Ergänzung)*/
    }
    @keyframes move {
        0% {width:0%;}
        100% {width:100%;}
    }
    .ebene1 {
        background-image: linear-gradient(165deg, rgba(255,255,255,0.2), rgba(0,0,0,1));
    }
    .ebene1 > li {
        border-bottom: 1px solid white;
    }
    #idOpenInfo:checked + .clickHoverInfo li:first-of-type {    /*setzt den nun fehlenden Rahmen unter weitere Informationen, HTML und CSS indem es beim ersten li-Element jeder Liste im Bereich Info einen border-top setzt*/
        border-top: 1px solid white;
    }
    nav a {
        color: var(--secondary-text-color);
        font-size: clamp(1.8rem, 6.6vw, 2.8rem);
        transition: 200ms ease-in-out;
        width: 100%;                        /*Der Link soll auf das gesamte Elternelement ausgeweitet werden, sonst würde er */
        height: 100%;                       /*nur auf der Schrift liegen und nicht auf der gesamten Schaltfläche (Block)*/
        display: flex;
        justify-content: flex-start;
        padding: 5%;
    }
}