nav{
    display: flex;
    position: sticky;
    top: 0;
    height: var(--navbar-height);
    background: var(--background-color);
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border--color);
    box-shadow: 0 0 10px 10px rgba(0,0,0,0.30);
    z-index: 999;
}


nav img{
    height: var(--navbar-height);
}

nav ul{
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
}

nav li{
    font-weight: bold;
    height: 100%;
    border-left: 1px solid var(--border--color);
    border-right: 1px solid var(--border--color);
    padding: 0 15px;
    text-align: center;
}

nav li:hover, .Vorschau_img:hover, .search_anlage_div button:hover, button:hover, .Workorder_objektgruppe:hover, input[type=button]:hover, input[type=submit]:hover, .Edit_Button:hover{
    box-shadow: 0 0 10px 10px rgba(0,0,0,0.30);
    border: 1px solid var(--hover-color);
}

nav a:hover{
    font-size: 18px;
    color: var(--text-color-hover);
}

nav ul a{
    height: 100%;
    width: 100%;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-color-button);
}

nav input[type="checkbox"]{
    display: none;
}


.logo_made_in{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 5px;
}


.toggle_button{
    width: 30px;
    height: 25px;

    position: absolute;
    top: 12px;
    right:12px;

    display: none;
    flex-direction: column;
    justify-content: space-between;
}


.bar{
    height: 4px;
    width: 100%;
    background: var(--text-color);
    border-radius: 100px;
}

@media(max-width: 850px){
    .toggle_button{
        display: flex;
    }

    .logo_made_in{
        position: relative;
        left: -25px;
    }

    nav ul{
        height: min-content;
        width: 100%;
        background: var(--background-color);
        display: none;
        position: absolute;
        top: var(--navbar-height);
    }

    nav li{
        border: 0;
        border-bottom: 1px solid var(--border--color);
        height: min-content;
        width: 100%;
    }

    nav ul a{
        padding: 10px 0;
    }

    #toggle_button:checked ~ ul{
        display: block;
    }

}