
nav{
    height: 6rem;
    width: 100vw;
    background-color: #00eded;
    box-shadow: 0 3px 20px rgba(47, 118,246, 0.3);
    display: flex;
    position: fixed;
}


/*Styling logo*/
.logo{
    padding:1vh 1vw;
    text-align: center;
    z-index: 1;
}
.logo img {
    height: 5rem;
    width: 5rem;
}

/*Styling Links*/
.nav-links{
    display: flex;
    list-style: none; 
    width: 88vw;
    padding: 0 0.7vw;
    justify-content: space-evenly;
    align-items: center;
    text-transform: uppercase;
}
.nav-links li a{
    text-decoration: none;
    margin: 0 0.7vw;
    font-weight: bold;
}
.nav-links li a:hover {
    color: #1f00aa;
    font-weight: bold;
}
.nav-links li {
    position: relative;
    
}
.nav-links li a::before {
    content: "";
    display: block;
    height: 1px;
    width: 0%;
    background-color: #1f00aa;
    position: absolute;
    transition: all ease-in-out 200ms;
    margin: 0 0 0 10%;
}
.nav-links li a:hover::before{
    width: 80%;
}
.nav-links li:nth-child(4){
    visibility: hidden;
}   

/*Styling Hamburger Icon*/
.hamburger div{
    width: 30px;
    height:3px;
    background: #2F76F6;
    margin: 5px;
    transition: all 0.4s ease;
}
.hamburger{
    display: none;
}

.sticky{
    margin: auto;
    /*border: 3px solid green;*/
}


/*Stying für schmale Bildschirme*/
@media screen and (max-width: 800px){
    main{
        margin-left: 9px;
        margin-right: 9px;
    }
    nav{
        position: relative;
    }
    .hamburger{
        display:block;
        position: absolute;
        cursor: pointer;
        right: 5%;
        top: 50%;
        transform: translate(-5%, -50%);
        z-index: 2;
        transition: all 0.3s ease;
    }
    .nav-links{
        position: fixed;
        background: #00fafa;    
        height: 100vh;
        width: 100%;
        flex-direction: column;
        clip-path: circle(50px at 90% -20%);
    /*    -webkit-clip-path: circle(50px at 90% -10%); */
        transition: all 0.6s ease-out;
        pointer-events: none;
    }
    .nav-links.open{
        clip-path: circle(1000px at 90% -10%);
       /* -webkit-clip-path: circle(1000px 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.4s;
    }
    .nav-links li:nth-child(3){
        transition: all 0.5s ease 0.6s;
    }
    .nav-links li:nth-child(4){
        transition: all 0.5s ease 0.8s;
        visibility: visible;
    }   

    li.fade{
        opacity: 1;
    }
    .sticky{
        z-index: -1;
    }
}
/*Animating Hamburger Icon on Click*/
.toggle .line1{
    transform: rotate(-45deg) translate(-5px,6px);
}
.toggle .line2{
    transition: all 0.7s ease;
    width:0;
}
.toggle .line3{
    transform: rotate(45deg) translate(-5px,-6px);
}