/* ===================== */
/*       NAVIGATION       */
/* ===================== */

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center; /* Menü zentriert */
  align-items: center;
  padding: 0.5rem 2rem;
  box-sizing: border-box;
  background-color: transparent;
  z-index: 1000;
  height: 70px; 
  transition: background-color 0.3s, box-shadow 0.3s;
}

/* Hintergrund beim Scrollen */
nav.scrolled {
  background-color: #1a2a40;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Logo links */
nav .logo-link {
  position: absolute;
  left: 2rem;
  display: block;
}

nav .logo {
  display: block;
  height: 50px;
  object-fit: contain;
}

/* Kein Hover-Strich unter dem Logo */
nav .logo-link::after,
nav .logo-link:hover::after {
  content: none !important;
  display: none !important;
}

/* Menüpunkte */
nav ul {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  position: relative;
  font-weight: 500;
}

nav ul a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #9F00FF;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: bottom right;
}

nav ul a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Submenu */
nav li.has-submenu {
  position: relative;
}

nav li.has-submenu .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1a2a40;
  flex-direction: column;
  text-align: center;
  min-width: 250px;
  white-space: nowrap;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 1000;
}

nav li.has-submenu.show .submenu {
  display: flex;
}

nav li.has-submenu .submenu li {
  padding: 0.5rem 1rem;
}

nav li.has-submenu .submenu li a {
  color: white;
  text-align: center;
  font-size: 1rem;
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 2rem;
  color: white;
  position: absolute;
  right: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  /* Hamburger */
  .menu-toggle {
    display: block !important;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: white;
    z-index: 1001;
  }

  /* Menü */
  #nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #1a2a40;
    flex-direction: column;
    padding: 1rem 0;
    margin: 0;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    z-index: 999;
    display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  }

  #nav-links.show {
    display: flex !important;
  }

  /* Menüpunkte */
  #nav-links > li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  #nav-links > li > a {
    display: block;
    padding: 1.2rem 2rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
  }

  /* KEIN Hover-Strich */
  #nav-links a::after {
    display: none !important;
  }



  /* Pfeil mobil UNSICHTBAR (aber im HTML vorhanden!) */
  .has-submenu > a .arrow {
    display: none !important;
  }

  /* KEIN .show für Submenü nötig */
}