/* Header‐Styles für Logo, Hamburger & Navigation */
.logo {
  position: absolute;
  top: 2rem;
  left: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-light);
  z-index: 1002;
}

.menu-checkbox {
  display: none;
}

.menu-toggle {
  display: block;
  position: absolute;
  top: 2rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  z-index: 1001;
}
.menu-toggle div {
  width: 100%;
  height: 3px;
  background-color: var(--text-light);
  margin: 5px 0;
  transition: 0.3s ease;
}

nav {
  display: none;
  flex-direction: column;
  background-color: rgba(0,0,0,0.8);
  position: absolute;
  top: 5.5rem;
  right: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  z-index: 1000;
}
nav a {
  color: var(--text-light);
  text-decoration: none;
  margin: 0.5rem 0;
}

/* Checkbox‐Hack */
input[type="checkbox"]:checked ~ nav {
  display: flex;
}

/* Desktop (ab 1024px): immer sichtbar, horizontal */
@media(min-width: 1024px) {
  .menu-toggle { display: none; }
  nav {
    display: flex !important;
    flex-direction: row;
    background: none;
    position: absolute;
    top: 1rem;
    right: 2rem;
    padding: 0;
  }
  nav a {
    margin-left: 2rem;
    font-size: 0.95rem;
  }
  .logo {
    top: 1rem;
    left: 2rem;
    font-size: 1.75rem;
  }
}