#nav{
    /* border:solid blue 2px; */
    height: 150px;
	display: flex;
	flex-direction: column;
    justify-content: center; /* Horizontale Zentrierung */
    align-items: center;

    background-color: #1E1E1E;
	
	margin:0;
	padding:0;
	overflow: auto;
    overflow-x: hidden;

    /*box-hadow: 0px 5px 5px #1E1E1E;*/

    z-index: 10;
    transition: height 0.6s;
}



/*Styling logo*/
#logo{
    /* border: solid white 2px; */
    z-index: 6;
    width: 90vw;
    min-width:auto;
    height: 100px;
    transition: padding 0.6s;
}

#logo img{
    height: 90%;
}

.nav-links{
    /* border: solid violet 3px; */
    display: flex;

    flex-basis: 100%;
    list-style: none; 
    /* width: 80vw; */
    justify-content: space-evenly;
    align-items:center;
    text-transform: uppercase;
    /* visibility: hidden; */
}

.nav-links li {
    /* border: solid rgb(235, 208, 135) 3px;  */
    position: relative; 
}

.nav-links li a{
    /* border: solid red 3px; */
    color: #F5DCB5;
    font-size: medium;
    text-decoration: none;
    transition: 0.3s;
    padding: 0.5rem;
}

.nav-links .link-active{
    font-weight: bold;
}

/*Burger Button*/
.hamburger div{
    width: 30px;
    height:3px;
    background: #F5DCB5;
    margin: 5px;
    transition: all 0.2s ease;
}

.hamburger{
    /* border: solid white 2px; */
    display: none;
    z-index: 8;
}

/**********************************************************/
/*Smartphones*/
@media screen and (max-width: 940px){
    #nav{
        z-index: 10;
        height: 80px;
        /* transition: height 0.3s; */
    }

    #logo{
        /* border: solid white 1px; */
        height: 60px;
        margin-left: 2px;
        padding: 3px;
        margin-right: 100px;
        z-index: 6;
        /* transition: height 0.3s; */
    }

    .hamburger{
        display:block;
        position: absolute;
        cursor: pointer;
        right: 5%;
        top: 40%;
        transform: translate(-5%, -10%);

        transition: all 0.3s ease;
    }

    .menu{
        display: inline-block;
        height: fit-content;
        overflow: scroll;
    }

    .nav-links{
        /* border: solid gray 2px; */
        position:fixed;
        right: 0px;
        top: 80px;
        padding-top:0px;
        padding-bottom:100px;
        z-index: 101;
        background-color: #1E1E1E;
        height: calc(100dvh - 80px); 
        width: 19ch;
        flex-direction: column;

        clip-path: circle(50px at 90% -20%); 
        -webkit-clip-path: circle(50px at 90% -20%); 
        transition: all 0.6s ease-out, -webkit-clip-path 0.6s ease-in-out;;
        pointer-events: none;
        /* visibility: hidden; */
    }

    .nav-links.open{
        clip-path: circle(140% at 90% -10%);
        -webkit-clip-path: circle(140% at 90% -10%);
        pointer-events:all;
    }

    .nav-links li{
        opacity: 0;
    }

    .nav-links li:nth-child(1){
        transition: all 0.5s ease 0.2s;
    }

    .nav-links li:nth-child(2){
        transition: all 0.5s ease 0.3s;
    }

    .nav-links li:nth-child(3){
        transition: all 0.5s ease 0.4s;
    }

    .nav-links li:nth-child(4){
        transition: all 0.5s ease 0.6s;
    }

    .nav-links li:nth-child(5){
        transition: all 0.5s ease 0.7s;
    }

        .nav-links li:nth-child(6){
        transition: all 0.5s ease 0.8s;
    }

    .nav-links li:nth-child(7){
        transition: all 0.5s ease 0.9s;
    }

    .nav-links li:nth-child(8){
        transition: all 0.5s ease 1s;
    }

    li.fade{
        opacity: 1;
    }
    /* Das Abdunkel-Element */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.5); /* 50% Schwarz */
    z-index: 100; /* Hinter dem Menü (101), aber vor dem PDF */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out;
}

/* Sichtbar, wenn aktiv */
.menu-overlay.show {
    opacity: 1;
    pointer-events: all;
}


/*Animating Hamburger Icon on Click*/
.toggle .line1{
    transform: rotate(-45deg) translate(-5px,6px);
}

.toggle .line2{
    transition: all 0.3s ease;
    width:0;
}

.toggle .line3{
    transform: rotate(45deg) translate(-5px,-6px);
}
}