nav{
  height: var(--navbar-height);
  background-color: var(--background-color);
  dropdown-color: var(--dropdown-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  font-size: 18px;
  z-index: 1000;
}
nav .logo{
  margin-left: 30px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 35px;
  font-variant: small-caps;
  text-decoration: none;
  color: var(--nav-text-color);
  display: none;
}
nav ul{
  height: 80%;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  list-style: none;
  color: var(--nav-text-color);
  margin-right: 30px;
  font-size: 15px;
  margin-top: 20px;
  
}
nav li{
  margin-top: 30px;
  font-size: 15px;
  height: 100%;
  width: 150px;
  text-align: center;
  position:relative;
  color: var(--nav-text-color);
    display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  list-style: none;
}
nav li:hover{
  background: var(--accent-color);
  color: var(--nav-text-color);
}
nav ul a{
  height: 100%;
  width: 100%;
  
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: var(--nav-text-color);
}
.dropdown{
  margin-top: -20px;
  height: min-content;
  width: 250px;
  background: var(--background-color);

  display: none;
  flex-direction:column;
  text-align: center;
  
  position: absolute;
  left: -800;
  
  top: var(--navbar-height);  
  color: var(--nav-text-color); 
  z-index: 999;
}
.dropdown li{
  height: 70px;
  width: 90%;  
  
}
.dropdown li a{
  justify-content: flex-start;
  padding-left: 30px;
  width: calc(100% - 30px);
  
}
nav li:hover .dropdown{
  display: flex;
  
}
nav input[type="checkbox"]{
  display: none;
}
.expandable_li{
  display: flex;
  justify-content: center;
  align-items: center;
  
}
.toggle_button{
  width: 30px;
  height: 23px;

  position: absolute;
  right: 25px;

  display: none;
  flex-direction: column;
  justify-content: space-between;
}
.bar{
  height: 4px;
  width: 100%;
  background: var(--nav-text-color);
  border-radius: 100px;
}
.expandable_li::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--nav-text-color);
  margin-left: 5px;
  color: var(--darker-background-color);
  
  vertical-align: middle;
  transform: rotate(-0deg);
  transition: transform 0.2s ease-in-out;
}

.socials ul{
  position: relative;
  display: flex;
  width: 25%;
}
.socials ul li{
  position: relative;
  list-style: none;
  margin: 0 20px;
  cursor: pointer;
}
.socials ul li a{
  text-decoration: none;}
.socials ul li a .fa{
  font-size: 2em;
  color: #ffffff;
}
.socials ul li a .fa:hover{
opacity: 0;
transition: opacity 0.2s ease-in;
}

.socials ul li:hover:before{
  height: 100%;
}


@media only screen and (max-width: 850px) {
  .toggle_button {
    display: flex;
    position: absolute;
  }
  
  nav .logo {
    margin-top: 20px;
    margin-left: 20px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 25px;
    font-variant: small-caps;
    text-decoration: none;
    color: var(--nav-text-color);
    display: inline;
  }

  nav ul {
    height: min-content;
    width: 50%; /* Volle Breite für das Menü */
    background-color: var(--background-color);
    display: none;
    position: absolute;
    top: 10%;
    left: 0;
    z-index: 1000;
    margin-top: auto;
    box-sizing: border-box; /* Sicherstellen, dass Padding/Borders zur Breite gehören */
  }

  nav li {
    height: min-content;
    width: 100%; /* Volle Breite für die Listenelemente */
    z-index: 1000;
    position: relative;
  }

  nav ul li {
    width: 100%; /* Volle Breite für Listenelemente im Menü */
  }

  nav ul a {
    padding: 0px 0;
  }

  .expandable_li {
    display: flex;
    position: relative; /* Positionieren für Dropdown */
    z-index: 1000;
  }

  .expandable_li label {
    padding: 0px 0;
    display: block;
  }

  .expandable_li:hover .dropdown,
  .expandable_li input[type="checkbox"]:checked ~ .dropdown {
    display: block;
    position: absolute;
    top: 0;
    left: 100%; /* Dropdown rechtsbündig */
  }

  .dropdown {
    background-color: var(--dropdown-color); /* Hintergrundfarbe */
    position: relative;
    top: 100%;
    left: 0;
    width: 100%; /* Volle Breite des Dropdowns */
    display: none;
    flex-direction: column;
    text-align: left;
    z-index: 1000;
    box-sizing: border-box; /* Sicherstellen, dass Padding/Borders zur Breite gehören */
  }

  .dropdown li {
    width: 100%; /* Volle Breite für Dropdown-Elemente */
    height: 50px; /* Feste Höhe für Dropdown-Elemente */
    z-index: 1000;
  }

  .dropdown li a {
    width: 100%; /* Links über die volle Breite */
    padding: 10px 15px; /* Optional: Padding für bessere Lesbarkeit */
    justify-content: flex-start; /* Links ausrichten */
  }

  .expandable_li label::after {
    content: "";
    display: none;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--nav-text-color);
    margin-left: 5px;
    vertical-align: middle;
    transform: rotate(-90deg);
    transition: transform 0.2s ease-in-out;
  }

  .expandable_li.open label::after {
    transform: rotate(0deg);
  }

  #toggle_button:checked ~ ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .socials ul{
    display: none;
    
  }
}