header
{
   
    display: flex;
    justify-content: left;
    align-items: baseline;
    gap: 50px;
    flex-wrap: wrap;
    }

.header_text
{
    width: 100%;
}

.logo{
margin-right: auto;
}

nav
{
   
    background-color: var(--background-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}


nav ul
{
   font-size: 13px;
    height: 100%;
   display: flex;
   flex-direction: row;
   justify-content: flex-end;
   align-items: center;
   list-style: none;
}

nav li
{
  
    height: 50px;
    margin: 10px;
    text-align: center;
    position: relative;
}

nav li:hover
{
    background-color: white;
 
 text-underline-offset: 3px;

    transform: scale(1.2);
   
}

nav li::after {
    content: "";
    position: absolute;
    margin-bottom: 12px;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: black;
    transition: width 0.5s ease; /* Übergangseigenschaften für die Breite der Linie */
  }
  
  nav li:hover::after {
    width: 100%;
  }


nav ul a
{
    color: var(--text-color);
    height: 50px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.dropdown
{
    height: min-content;
    width: 200px;
    background: var(--background-color);
    display: none;
    flex-direction: column;
    position: absolute;
    left: 0;
    top: var(--navbar-height);
padding-bottom: 30px;

}

.dropdown li
{
    height: 50px;
    width: 160px;
}

.dropdown li a
{
    justify-content: flex-start;
    padding-left: 30px;
    width: calc(100% - 30px);
}

nav li:hover .dropdown
{
    background-color: white;  
    border-radius: 0px 0px 20px 20px;
    display: flex;   
}

nav li::after .dropdown{
    content: "";
    position: absolute;
    margin-bottom: 12px;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: black;
    transition: width 0.5s ease; /* Übergangseigenschaften für die Breite der Linie */
  }
  
  nav li:hover::after .dropdown{
    width: 100%;
  }



nav input[type="checkbox"]
{
    display: none;
}

.expandable_li
{
    display: flex;
    justify-content: center;
    align-items: center;
}

.toggle_button
{
    width: 30px;
    height: 23px;
    padding: 40px;
    position: static ;
    top: 25px;
    right: 25px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
}

.bar
{
    height: 4px;
    width: 100%;
    background: var(--text-color);
    border-radius: 100%;
}

@media(max-width: 880px)
{.logo{
    display: block;
margin: 0 auto;
}
}

@media(max-width: 555px)
{
    .toggle_button{
        display: flex;
    }
    nav ul{
        height: min-content;
        width: 100%;
        background: white;
        display: none;
        position: absolute;
        top: 110px;
    }
    nav li{
        height: min-content;
        width: 100%;
    }
    nav ul a{
               padding: 20px 0;
    }
    .expandable_li{
        display: block;
    }
    .expandable_li label{
        padding: 30px 0;
        cursor: pointer;
        display: block;
    }
    .expandable_li:hover .dropdown{
        display: none;
    }
    .expandable_li input[type="checkbox"]:checked ~.dropdown{
        display: block;
    }
    .dropdown{
        position: static;
        width: 100%;
    }
    .dropdown li{
        padding: 0;
        display: block;
        position: static;
        background: var(--light-background-color);
    }
    .dropdown li a{
        width: 100%;
        padding: 0;
        justify-content: center;
    }
    #toggle_button:checked ~ ul{
        display: block;
    }
   }e_button:checked ~ ul{
        display: block;
    }
   }