/* Grundlayout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Bricolage Grotesque", Arial, Helvetica, sans-serif;
}
body {
  padding-top: 70px; /* Muss größer oder gleich der Header-Höhe sein */
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* Stellt sicher, dass der Header über allem bleibt */
  background-color: #fff; /* Falls nötig, um Transparenz zu vermeiden */
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #eee;
  box-shadow: 0px 0.5px 7px rgba(0, 0, 0, 0.1);
  height: 60px; /* Feste Höhe setzen */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo img {
  max-height: 30px;
}
.logo a {
  text-decoration: none;
}

/* Navigation ul */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

/* Navigation li, a */
.nav-links li {
  position: relative; /* Für das Dropdown */
}
.nav-links li a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  padding: 0.5rem;
  display: block;
}

/* Dropdown */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 120px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 99;
}
.dropdown-content a {
  padding: 0.5rem 1rem;
  color: #333;
}
.dropdown-content a:hover {
  background-color: #f4f4f4;
}
.dropdown:hover .dropdown-content {
  display: block;
}

/* Rechts Icons/Buttons */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-link {
  display: flex;
  align-items: center;
}
.icon {
  width: 32px;
  height: 32px;
  object-fit: cover;
  cursor: pointer;
}

.btn-login,
.btn-register {
  text-decoration: none;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-weight: 500;
}

.btn-login {
  background-color: #156082;
  color: #fff;
}
.btn-register {
  background-color: #f4f4f4;
  color: #333;
  border: 1px solid #ccc;
}

.btn-admin {
  font-family: "Bricolage Grotesque", Arial, Helvetica, sans-serif;
  color: #156082;
  text-decoration: none;
}

/* --- Hamburger Menü (Responsiveness) --- */

/* Ausblenden des Checkbox-Knopfes */
#menu-toggle {
  display: none;
}

.burger-menu {
  display: none; /* Desktop versteckt */
  flex-direction: column;
  cursor: pointer;
}

.burger-menu span {
  height: 3px;
  width: 25px;
  background-color: #000;
  margin: 4px 0;
  transition: 0.4s;
}

/* Responsive Breakpoint: z. B. bei max 768px */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px; /* etwas unterhalb der Navbar */
    right: 0;
    width: 100%;
    background-color: #fff;
    flex-direction: column;
    align-items: flex-start;
    max-height: 0; /* versteckt */
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links li {
    width: 100%;
  }
  .nav-links li a {
    width: 100%;
    padding: 1rem;
    border-bottom: 1px solid #eee;
  }

  /* Burger-Menü sichtbar machen */
  .burger-menu {
    display: flex;
    flex-direction: column;
  }
  .navbar {
    height: 60px;
  }
  body {
    padding-top: 60px; /* Damit der Body nicht hinter dem Header rutscht */
  }

  /* Wenn Checkbox angehakt, Navigation sichtbar */
  #menu-toggle:checked ~ .nav-links {
    max-height: 300px; /* oder "100vh" */
  }
}
