
/* header.css - Stile für den Header und die Navigation */

header {
  /* Hintergrund etwas transparenter oder andere Farbe? */
  background-color: rgba(18, 18, 18, 0.97); /* Fast schwarz, leicht transparent */
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-primary-dark); /* Tiefrote Linie */
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-family: var(--font-main); /* Gothic Schrift fürs Logo */
  font-size: 1.8rem; /* Größer */
  color: var(--color-text-light);
  text-decoration: none;
  position: relative;
  /* Optional: Textschatten wie bei Hero H1 */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  z-index: 101;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -7px; /* Etwas mehr Abstand */
  left: 0;
  width: 100%;
  height: 2px; /* Dicker */
  background-color: var(--color-accent); /* Silber */
  /* Optional: anderen Style */
  /* background: linear-gradient(to right, transparent, var(--color-accent), transparent); */
}

/* Hamburger-Menü Button (nur auf mobilen Geräten sichtbar) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--color-text-light);
  margin: 3px 0;
  transition: 0.3s;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  color: var(--color-text-medium); /* Mittleres Grau für Nav-Links */
  text-decoration: none;
  font-family: var(--font-accent); /* Lesbare Schrift */
  font-size: 0.9rem; /* Ggf. anpassen */
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: color 0.3s, text-shadow 0.3s;
  position: relative;
  padding: 12px 16px; /* Mehr Padding für bessere Touch-Targets */
  min-height: 44px; /* Mindestgröße für Touch */
  display: flex;
  align-items: center;
}

nav a:hover {
  color: var(--color-text-light); /* Heller im Hover */
  text-shadow: 0 0 5px var(--color-accent); /* Leichter Glüheffekt mit Silber */
}

nav a::after {
  /* Komplette Linie entfernen */
  display: none;
}

/* Media Queries für Header */
@media (max-width: 768px) {
  .header-content {
    padding: 15px 20px;
  }

  .logo {
    font-size: 1.5rem;
    margin-bottom: 0;
  }

  .hamburger {
    display: flex;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.98);
    border-top: 1px solid var(--color-primary-dark);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
  }

  nav.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
  }

  nav ul li {
    border-bottom: 1px solid rgba(139, 0, 0, 0.2);
  }

  nav ul li:last-child {
    border-bottom: none;
  }

  nav a {
    padding: 18px 20px;
    font-size: 1rem;
    width: 100%;
    min-height: 50px;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 12px 15px;
  }

  .logo {
    font-size: 1.3rem;
  }

  nav a {
    padding: 16px 15px;
    font-size: 0.95rem;
  }
}
