.topnav {
  margin-left: 0;
  overflow: hidden;
  background-color: #ffffff; 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); 
  border-bottom: 1px solid #e9ecef; 
}

.topnav a {
  float: left;
  display: block;
  color: #333333; 
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 14px;
}

.topnav .icon {
  display: none;
}

.dropdown {
  float: left;
  overflow: hidden;
}

.dropdown .dropbtn {
  font-size: 14px;    
  border: none;
  outline: none;
  color: #333333; 
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
  z-index: 1;
  border: 1px solid #e9ecef;
}

.dropdown-content a {
  float: none;
  color: #333333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* ALLGEMEINE HOVER-EFFEKTE (Müssen über den speziellen Buttons stehen) */
.topnav a:hover, 
.topnav a:focus, 
.dropdown:hover .dropbtn, 
.dropdown:focus-within .dropbtn {
  background-color: #f1f3f5;
  color: #000000;
}

.dropdown-content a:hover, 
.dropdown-content a:focus {
  background-color: #e9ecef;
  color: #000000;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
}

.topnav a:focus,
.dropdown .dropbtn:focus {
  outline: 2px solid #04AA6D;
  outline-offset: -2px;
}


/* SPEZIELLE BUTTONS (Ganz unten, damit sie Vorrang haben) */

/* 1. Der grüne Home-Button */
.menue-active {
  background-color: #04AA6D !important;
  color: white !important;
}

.topnav a.menue-active:hover, 
.topnav a.menue-active:focus {
  background-color: #038d5a !important; 
  color: white !important;
}

/* 2. Der blaue Spezialknopf (Das umschließende DIV) */
div.meinmenueknopf {
  float: right;
  background-color: #0056b3;
  padding: 0; /* Verhindert doppelte Innenabstände */
}

/* Der eigentliche Link IM blauen Button */
div.meinmenueknopf a {
  color: white !important; /* Erzwingt weiße Schrift von Anfang an */
  background-color: #0056b3 !important; /* Erzwingt den blauen Hintergrund */
}

/* Hover-Effekt für den Link IM blauen Button */
div.meinmenueknopf a:hover, 
div.meinmenueknopf a:focus {
  background-color: #004085 !important; /* Schönes Dunkelblau beim Hovern */
  color: white !important; /* Schrift bleibt garantiert weiß */
}




/* RESPONSIVE DESIGN (Bleibt unverändert am Ende) */
@media screen and (max-width: 600px) {
  .topnav a:not(:first-child), .dropdown .dropbtn {
    display: none;
  }
  .topnav a.icon {
    font-size: 15px;
    float: right;
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
  .topnav.responsive .dropdown {float: none;}
  .topnav.responsive .dropdown-content {position: relative;}
  .topnav.responsive .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
  }
}

