/* --- Basis-Header-Design (für Computer) --- */
#header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #ebf7fa;
  padding-bottom: 20px;
  margin-bottom: 30px;
  gap: 20px;
  position: relative;
}

#header a img {
  max-width: 200px;
  height: auto;
  display: block;
}

#menu {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#menu a {
  font-size: 13px;
  font-weight: bold;
  color: #555;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

#menu a:hover {
  color: #46b8da;
  background-color: #ebf7fa;
}

/* --- Unsichtbarer Schalter für die Logik --- */
#menu-toggle-check {
  display: none;
}

/* --- Das Drei-Striche-Symbol (Standard auf PC unsichtbar) --- */
.menu-toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.menu-toggle-label .bar {
  width: 25px;
  height: 3px;
  background-color: #555; /* Sichtbare graue Striche */
  border-radius: 2px;
  display: block;
}

/* --- Responsive Anpassung für Smartphones (kleiner als 830px) --- */
@media (max-width: 830px) {
  .menu-toggle-label {
    display: flex; /* Striche JETZT einblenden */
  }

  #menu {
    display: none; /* Menü standardmäßig verstecken */
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    z-index: 1000;
    border-radius: 4px;
    gap: 5px;
  }

  #menu a {
    display: block;
    padding: 12px 20px;
    text-align: left;
    color: #333;
  }

  /* Der CSS-Trick: Wenn das unsichtbare Häkchen gesetzt ist, zeige das Menü an */
  #header:has(#menu-toggle-check:checked) #menu {
    display: flex;
  }
}