@charset "utf-8";
/* CSS Document */

*{  
    margin: 0; 
    padding: 0; 
    box-sizing: border-box;
    color: var(--fontColor);
}

:root{
    --backgroundColor:#2e3235;
    --mainColor:#62a4a6;
    --hoverColor: #0074bb;
    --dropMenueColor: #62687c;
    --iconColor: white;
    --fontColor: black;
    --navbarHeight : 8rem;
    --navListItemWidth: 300px;
    --navFontSize: 1.2rem;
}

html{
    height: 100dvh;
    scroll-behavior: smooth;
    background: var(--backgroundColor);
}

/* body{ 
    height: 100dvh;
    background: var(--backgroundColor);
    width: 100dvw;
} */

main {
    max-width: 100%;
}

header {
    width: 100dvw;
    background-color: var(--iconColor);   
    box-shadow: 0 0.6rem 0 0 black;
}

.wrapper {
    max-width: 90rem;
    margin-inline: auto;
}

.navbar{
    height: var(--navbarHeight);
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.headline{
    display:flex;
    justify-content: flex-start;
    align-items: center;
    margin-left: 4rem;
}

.mobile {
    display: none;
    visibility: hidden;
}

.logoimg {
    height: 4rem;
    width: auto;
    margin: 0 8rem 0 2rem;
}

.img-icon {
    max-height: 4rem;
    width: auto;
}

.fa-sort-down {
    padding-left: .5rem;
}

#navlist{
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
}

#navlist li{
    text-align: center;
    height: 100%;
    width: var(--navListItemWidth);
}

#navlist li a{
    height: 100%;
    width: 100%;
    text-decoration: none;
    font-size: var(--navFontSize);
    display: flex;
    justify-content: center;
    align-items: center;
}

.dropdown{
    position: absolute;
    display: none;
    flex-direction: column;
    height: min-content;
    top: var(--navbarHeight);
    list-style: none;
    background-color: var(--iconColor);
    width: 300px;
    z-index: 1000;
}

.dropdown li{
    width: 100%;
    height: 70px;
    padding: 0.6rem;
    margin-top: 0.2rem;
    background-color: white;
}

.dropdown li:hover {
    background-color: var(--hoverColor);
}

.dropLi a:hover {
    color: var(--iconColor);
}


.expand_list{
    display:flex;
    justify-content: center;
    align-items: center;
    font-size: var(--navFontSize);
}

.expand_list ul.dropdown li  {
    width: 100%;
    width: 300px;
}

.navbar input[type="checkbox"]{
    display: none;
}

.menue_bar{
    position: absolute;
    width: 3rem;
    height: 2rem;
    top: 2rem;
    right: 2rem;
    display: none;
    flex-direction: column;
    justify-content: space-between;
}

.bar{
    width: 100%;
    height: 0.35rem;
    border-radius: 4rem;
    background: var(--fontColor);
    transition: 0.5s; 
    transform-origin: center; 
}

.expand_list:hover .dropdown{
    display: flex;
}


@media (max-width: 1250px){

    body{
        width: 100%;
        display: block;
    }

    .mobile {
        visibility: visible;
    }

    .headline{
        display: flex;
        justify-content: flex-start;
        margin: 0 0.5rem 0 1rem;
    } 

    .headline img {
        width: 10rem;
        height: auto;
        padding-top: 1.2rem;
    }

    .desktop {
        visibility: hidden;
        display: none;
    }

    .menue_bar{
        display: flex;
    }

    .navbar{
        display: block;
    }

    #navlist{
        position: absolute;
        display: none;
        width: 100%;
        height: min-content;
        top: var(--navbarHeight);
        background-color: white;
        z-index: 1000;          
        box-shadow: 0 0.6rem 0 0 var(--hoverColor);
    }    
 
    #navlist li{
        display: block;
        height: min-content;
        width: 100%;
    }

    #navlist a{
        display: block;
        padding: .5rem 0;
    }

    .expand_list label {
        display: block;
        cursor: pointer;
        padding: 1rem 0;
    }

    .expand_list:hover .dropdown{
        display: none;
    }

    .expand_list 
        input[type="checkbox"]:checked ~ .dropdown{
        display: block;
    }

    .dropdown {
        position: static;
        width: 100%;
        background-color: var(--dropMenueColor);        
        margin-left: 0;
    }
    .dropdown li {
        position: static;
        display: block;
        width: 100%;
        
    }

    .dropdown li a {
        width: 100%;
        padding: 0;
        justify-content: center;
    }
    .dropdown a:hover{
       
        transition: 0.3s;
}

    #toggle_button:checked ~ul{
        display: block;
    }

    #toggle_button:checked + .menue_bar .bar:nth-child(1){
        transform: translateY(12px) rotate(-45deg);
    }
     
    #toggle_button:checked + .menue_bar .bar:nth-child(2){
        opacity:0;
    }
     
    #toggle_button:checked + .menue_bar .bar:nth-child(3){
        transform: translateY(-12px) rotate(45deg);
    }

}

@media (max-width: 300px){

    body{
        width: 100%;
    }

    #navlist{
        width: 100%;
    }

    .headline{
        justify-content: flex-start;
        margin: 0 0.5rem 0 1rem;
    } 

    .dropdown a:hover{
        transform: scale(1);
        transition: 0.3s;
    }

    .menue_bar{
        display: flex;
        width: 15%;
    }

}