*{
    margin: 0;
    padding: 0;
}
body{
    background-color: white;
}
.navigation-bar {
    top: 0px;
    z-index: 100;
    width: 100%;
}
nav{
    min-height: 80px;
    align-items: center;
    background-color: rgb(42,42,42);
    color: #ffffff;
}
.nav_logo{
    cursor: pointer;
}
.nav_logo .logo {
    height: 30px; /* Höhe der Navigationsleiste */
    object-fit: contain; /* Behalten Sie das Seitenverhältnis bei */
}
nav ul{
    display:flex;
}
nav ul li{
    height: 100%;
    list-style-type: none;
    border-bottom: 4px solid transparent;
    transition: border-bottom .2s linear;
}
nav ul li:hover{
    border-bottom: 4px solid var(--color-accent);
}
nav ul li a{
    color: white;
    text-decoration: none;
    font-size: 22px;
    font-family: sans-serif;
}

.toggle-button{
    position: absolute;
    top: 25px;
    right: 25px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 23px;
}

.toggle-button .bar{
    height: 4px;
    width: 100%;
    background-color: white;
    border-radius: 100px;
}

body:has(.mobile-sidebar.visible) {
    height: 100vh;
    overflow: hidden !important;
}

/*  Mobile Sidebar */
.mobile-sidebar-shadow {
    position: absolute;
    width: 0;
    height: 100vh;
    z-index: 1 !important;
}

.mobile-sidebar-shadow.visible {
    width: 100vw;
    background-color: rgba(0,0,0, .5);
}

.mobile-sidebar {
    max-width: 0%;
    overflow: hidden;
    position: absolute;
    top: 0px;
    bottom: 0px;
    right: 0px;
    background-color: white;
    height: 100vh;
    z-index: 2 !important;
    transition: max-width .1s linear;
}

.mobile-sidebar.visible {
    width: 100%;
    max-width: 80%;
}

.mobile-sidebar-header  {    
    font-size: 2rem;
    text-align: right;
    padding: 1rem;
    padding-right: 2rem;
    height: auto;
}

.mobile-sidebar-content {
    display: grid;
    padding: 2rem;
    padding-top: 0;
    font-size: 1.5em;
    row-gap: 1.5rem;
}

.mobile-sidebar-content a {
    color: black;
}

.mobile-sidebar.visible {
    max-width: 80%;
    transition: max-width .1s linear;
}

/* Breakpoints */
@media(max-width: 64em) {
    .navigation-bar {
        max-height: 70px;
    }
    nav ul {
        background-color: #2a2a2a;
        position: absolute;
        top: 0px;
        width:100%;
        overflow: hidden;
        transform: scaleY(0);
        transition: transform .1s linear;
        transform-origin:top;
    }
    .list-container{
        position: relative;
        width: 100%;
    }
    .toggle-button{
        display: flex;
    }
  
    nav ul li{
        padding: 1rem;
    }
    .list-container ul{
        flex-direction: column;
        width: 100%;
    }
    .list-container li{
        text-align: center;
    }

    .list-container.active{
        display: flex;
        height: min-content;
    }
    .list-container.active > ul {
        height: min-content;
        transform: scaleY(1);
    }
}

@media screen and (min-width: 64em) {
    
    nav ul {
        display: grid;
        grid-auto-flow: column;
        column-gap: 2em;
    }
}

/* Bootstrap Overrides */
nav ul {
    margin-bottom: 0 !important;
}

nav a:hover {
    color: white;
}