.navbar {
  background-color: #4e6722;
  font-family: Arial, Helvetica, sans-serif;
  margin-bottom: 20px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 16px rgba(78,103,34,0.13);
  border-bottom: 2px solid #e6ffb3;
  backdrop-filter: blur(2px);
  min-height: 0;
  padding: 0;
  width: 100%;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  width: 100%;
}
.nav-list li {
  position: relative;
  height: 54px;
  display: flex;
  align-items: center;
}
.nav-list a {
  color: #fff;
  text-decoration: none;
  padding: 10px 18px 8px 18px;
  display: flex;
  align-items: center;
  font-size: 18px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  border-radius: 8px 8px 0 0;
  font-weight: 500;
  letter-spacing: 0.5px;
  height: 100%;
  line-height: 1.2;
  white-space: nowrap;
}
.nav-list a .arrow {
  font-size: 1em;
  margin-left: 6px;
  display: inline-block;
  vertical-align: middle;
}
.nav-list a:hover {
  background-color: #6b8e23;
  color: #ffffff;
  transform: translateY(-2px) scale(1.04);
}
 .nav-list a.active,
 .nav-list a:focus {
   background-color: #6b8e23;
   color: #fff;
   outline: none;
 }
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #7A9A1E !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 220px;
  top: 100%;
  left: 0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 2000 !important;
  list-style: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s;
  border-top: 2px solid #e6ffb3;
}
.dropdown-content li a {
  border-radius: 0 0 8px 8px;
  padding: 12px 18px;
  font-size: 17px;
  height: auto;
  display: block;
  background-color: #7A9A1E !important;
  color: #fff !important;
  font-weight: 500;
  text-shadow: none !important;
  border: none !important;}
/* Überschreibe evtl. weiße Hintergründe von Dropdowns */
.dropdown-content, .dropdown-content * {
  background: #7A9A1E !important;
  border: none !important;
}

.dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
html, body {
  margin: 0;
  padding: 0;
}
/* p { text-align: justify !important; } entfernt, damit textformat.css wirkt */
.top-banner {
  margin-top: 0 !important;
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  width: 100%;
  max-width: 100vw;
  height: 7vw;
  max-height: 100px;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.7);
  text-align: center;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(78,103,34,0.08);
  border-radius: 0 0 18px 18px;
  padding: 0.3rem 0;
  overflow: hidden;
}
.Logo {
  max-height: 100%;
  max-width: 80%;
  width: auto;
  height: auto !important;
  margin: 0;
  display: block;
  object-fit: contain;
}
.footer-main,
.footer-main a,
.footer-main span {
  color: #fff !important;
}
.bg-caption-box {
  z-index: 4 !important;
  position: fixed !important;
  /* ...weitere Styles falls benötigt... */
}
.bg-caption {
  z-index: 1 !important;
}

/* Suche nach weiteren z-index-Quellen für .bg-caption oder Eltern! */
.bg-caption {
  /* In deiner index.html steht: z-index: 5; */
  z-index: 1 !important; /* Setze niedriger als .dropdown-content (2000) */
  position: relative !important;
}

/* Prüfe, ob ein Eltern-Element von .dropdown-content ein z-index hat! */
.navbar, .navbar * {
  z-index: auto !important;
}

/* Wenn ein Menüpunkt oder Dropdown aktiv ist, verschiebe die bg-caption-box nach unten */
.navbar:hover ~ .bg-caption-box,
.navbar:focus-within ~ .bg-caption-box,
.nav-list:hover ~ .bg-caption-box,
.nav-list:focus-within ~ .bg-caption-box {
  transform: translate(-50%, calc(-50% + 70px));
  transition: transform 0.3s;
}

/* Alternativ, falls .bg-caption-box nicht direkt nach .navbar kommt: */
body.menu-hover .bg-caption-box {
  transform: translate(-50%, calc(-50% + 70px));
  transition: transform 0.3s;
}


/* Mobile: Dropdown per Klick öffnen (.open) */
@media (hover: none), (max-width: 900px) {
  .dropdown-content { display: none; }           /* Hover-Effekt aus */
  .dropdown.open > .dropdown-content { display: block; }
  .dropdown > a { cursor: pointer; }
  .dropdown.open > a .arrow { transform: rotate(180deg); }
}

