.hamburger {
  cursor: pointer;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  background-color: #d5ffd5;
  padding: 10px 5px;
  border-radius: 5px;
  width: 30px;
  height: 20px;
  margin: 20px;
}

.hamburger div {
  height: 4px;
  background-color: black;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.toggle:checked + .hamburger .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle:checked + .hamburger .line2 {
  opacity: 0;
}

.toggle:checked + .hamburger .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}

.toggle:checked ~ .menu {
  display: flex;
}

.toggle {
  display: none;
}

/* Allgemeine Stile für die Navigationsleiste */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Zentriert den Inhalt vertikal */
  background-color: #d5ffd5;
  width: 100%;
  /* position: sticky; 
  top: 0; 
  z-index: 1000;*/
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  overflow: hidden; /* Verhindert Überlauf auf kleineren Bildschirmen */
}

nav ul {
  display: flex;
  flex-direction: row;
  justify-content: center;
  text-align: center;
  list-style-type: none;
  /*background-color: #444;*/
  padding: 10px;
}

nav ul li {
  text-align: center;
  gap: 15px;
}

nav ul a {
  color: #000;
  padding: 5px 10px;
  text-align: center;
  text-decoration: none;
  font-size: 20px;
}

nav ul a:hover {
  background-color: #1b2735;
  color:white;
  padding: 7px;
  border-radius: 5px;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  nav ul a {
    font-size: 15px; /* Schriftgröße für kleinere Bildschirme reduzieren */
  }
}
@media (max-width: 650px) {
  nav ul {
    flex-direction: column;
    align-items: start ;
    gap: 15px;
    padding: 5px;
    height: auto;
  }

  nav {
    display: none;
  } 

  .hamburger {
    display: flex;
  } 
  
  nav ul a {
    padding: 8px 0; /* Etwas kleineres Padding auf sehr kleinen Bildschirmen */
    font-size: 25px;
  }
}