/* Grundstruktur zurücksetzen */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Navigationsleiste oben fixieren */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #F2F1E9;
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
}

/* Logo Styling */
.logo-image {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* Burger-Menü (Icon-Leiste für Mobilgeräte) */
.nav-toggle-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 50px;
}


/* Navigationslinks horizontal */
.nav-links {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: auto;
}

/* Link-Formatierung */
.navbar a {
  text-decoration: none;
  color: #204244;
  font-size: 18px;
  font-weight: bold;
}

.navbar a:hover {
  color: #F5A623;
}

/* Admin-Badges für offene Buchungen / Nachrichten */
.admin-badge, .admin-message-badge {
  font-size: 12px;
  font-weight: bold;
  color: #F2F1E9;
  padding: 2px 6px;
  border-radius: 50%;
  margin-left: 5px;
  vertical-align: middle;
}

.admin-badge {
  background-color: #407476;
}

.admin-message-badge {
  background-color: #F5A623;
}

/* Burger-Toggle (versteckt im Desktop) */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle-label span {
  width: 25px;
  height: 3px;
  background-color: #204244;
  border-radius: 2px;
}

/* Responsive Verhalten ab 768px und kleiner */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: 10px 20px;
  }

  .navdiv {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo-image {
    margin: 0 auto;
  }

  .nav-toggle-label {
    display: flex;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    background-color: #F2F1E9;
    width: 90%;
    padding: 15px;
    gap: 12px;
    border-radius: 12px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
    list-style: none;
    text-align: center;
    z-index: 999;
  }

  .nav-links li {
    list-style: none;
    width: 100%;
    text-align: center;
  }

  /* Wenn Burger-Menü angehakt ist, Navigation zeigen */
  .nav-toggle:checked + .nav-toggle-label + .nav-links {
    display: flex;
  }
}
