@charset "UTF-8";
/* CSS Document */

/* Hauptcontainer für die Navigation */
.navigation {
  height: 70px;
  background: #196fb8;
  color: #ffffff;
  max-width: 100%;
  margin: 0 auto;
  position: fixed; /* Ändert die Position von 'relative' zu 'fixed' */
  top: 0;          /* Positioniert das Element am oberen Rand */
  left: 50%;       /* Verschiebt das Element in die Mitte */
  transform: translateX(-50%); /* Zentriert es horizontal */
  z-index: 1000;   /* Stellt sicher, dass das Menü über anderen Inhalten liegt */
  width: 100%;     /* Stellt sicher, dass es die volle Breite einnimmt */
}

/* Innerer Container für die Navigationsinhalte */
.nav-container {
  max-width: 1200px; /* Behält die innere maximale Breite bei, falls gewünscht */
  margin: 0 auto;
  position: relative; /* Wichtig, damit die Navigation korrekt positioniert wird */
}

nav {
  float: right;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  float: left;
  position: relative;
}

nav ul li a {
  display: block;
  padding: 0 20px;
  line-height: 70px;
  background: #196fb8; /* Hintergrundfarbe der Hauptmenüpunkte */
  color: #ffffff; /* Schriftfarbe der Hauptmenüpunkte */
  text-decoration: none;
}

nav ul li a:hover {
  background: #194bb8; /* Hellerer Hintergrund beim Hover */
  color: #ffffff; /* Behält weiße Schriftfarbe bei */
}

/* Aktiver Hauptmenuepunkt (aktuell aufgerufene Seite) */
.nav-list > li.nav-active > a {
  color: #feed00; /* Markenfarbe Gelb */
  box-shadow: inset 0 -4px 0 #feed00; /* gelber Balken, ohne Layout-Verschiebung */
}
.nav-list > li.nav-active > a:hover {
  color: #feed00;
}

/* Pfeil für Dropdown-Menüs */
nav ul li a:not(:only-child):after {
  padding-left: 4px;
  content: ' ▾';
  color: #ffffff; /* Pfeilfarbe beibehalten */
}

/* Dropdown-Menü Styling */
nav ul li ul li {
  min-width: 190px;
}

nav ul li ul li a {
  padding: 15px;
  line-height: 20px;
  background: #194bb8; /* Hintergrundfarbe der Dropdown-Menüpunkte */
  color: #ffffff; /* Schriftfarbe der Dropdown-Menüpunkte */
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15); /* Schatten für Dropdowns */
}

nav ul li ul li a:hover {
  background: #196fb8; /* Hellerer Hintergrund beim Hover in Dropdowns */
  color: #ffffff;
}

.nav-dropdown {
  position: absolute;
  z-index: 1;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  display: none;
  background: #5A5A5A; /* Hintergrund für das gesamte Dropdown-Panel */
}

/* Mobile Navigation (Hamburger-Menü) */
.nav-mobile {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  background: #196fb8; /* ÄNDERUNG: Jetzt blau statt grau */
  height: 70px;
  width: 70px;
  cursor: pointer; /* Zeigt an, dass das Element klickbar ist */
}

@media only screen and (max-width: 800px) {
  .nav-mobile {
    display: block;
  }

  nav {
    width: 100%;
    padding: 70px 0 15px; /* Passt den oberen Abstand an, damit der Inhalt nicht unter dem Header liegt */
    background: #196fb8;; /* Hintergrund für mobile Navigationsliste */
  }
  nav ul {
    display: none; /* Versteckt die Liste im mobilen Modus, bis sie geöffnet wird */
    width: 100%; /* Nimmt die volle Breite ein */
  }
  nav ul li {
    float: none; /* Stellt sicher, dass Listenelemente untereinander sind */
    width: 100%; /* Nimmt die volle Breite ein */
  }
  nav ul li a {
    padding: 15px;
    line-height: 20px;
    background: #196fb8;; /* Hintergrund für mobile Menüpunkte */
  }
  nav ul li a:hover {
    background: #194bb8; /* Hover-Effekt für mobile Menüpunkte */
  }
  nav ul li ul li a {
    padding-left: 30px;
    background: #194bb8; /* Hintergrund für mobile Dropdown-Menüpunkte */
  }
  nav ul li ul li a:hover {
    background: #6A6A6A; /* Hover-Effekt für mobile Dropdown-Menüpunkte */
  }
}

/* Hamburger-Menü-Icon Styling */
#nav-toggle {
  position: absolute;
  left: 18px;
  top: 22px;
  cursor: pointer;
  padding: 10px 35px 16px 0px;
}

#nav-toggle span,
#nav-toggle span:before,
#nav-toggle span:after {
  cursor: pointer;
  border-radius: 1px;
  height: 5px;
  width: 35px;
  background: #ffffff; /* Weißer Hamburger-Icon */
  position: absolute;
  display: block;
  content: '';
  transition: all 300ms ease-in-out;
}

#nav-toggle span:before {
  top: -10px;
}
#nav-toggle span:after {
  bottom: -10px;
}

/* Styling, wenn der Hamburger aktiv ist (zeigt 'X') */
#nav-toggle.active span {
  background-color: transparent;
}
#nav-toggle.active span:before, #nav-toggle.active span:after {
  top: 0;
}
#nav-toggle.active span:before {
  transform: rotate(45deg);
}
#nav-toggle.active span:after {
  transform: rotate(-45deg);
}

/* Sicherstellen, dass die Navigationsliste im Desktop-Modus sichtbar ist */
@media screen and (min-width: 800px) {
  .nav-list {
    display: block !important;
  }
}

/* Marken-/Logo-Bereich */
.brand {
  position: absolute;
  padding-left: 20px;
  float: left;
  line-height: 70px;
  text-transform: uppercase;
  font-size: 1.4em;
  color: #ffffff; /* Logo-Schriftfarbe */
}
.brand a,
.brand a:visited {
  color: #ffffff; /* Logo-Linkfarbe */
  text-decoration: none;
}
