/* =========================================================
   Gemeinsames "Tätigkeiten"-Dropdown im Menü
   Wird auf allen Unterseiten NACH der seiteneigenen CSS geladen.
   Werte in px, weil manche Seiten html { font-size: 62.5% }
   setzen und rem dort kleiner wäre.
   (Startseite, Inklusion und Training haben die Stile noch in
   ihrer eigenen CSS-Datei.)
   ========================================================= */

.navbar__item.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: auto;
  margin-top: 20px;
  padding: 10px 16px;
  border-radius: 4px;
  background: #3084F2;
  font-size: 19px;
  line-height: 1.2;
  transition: all 0.3s ease;
}

.dropdown-toggle:hover {
  background: #F2F1F0;
  color: #000000;
}

.dropdown__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #164DF2;
  list-style: none;
  border-radius: 4px;
  overflow: hidden;
  z-index: 1000;
}

.dropdown__menu.active {
  display: block;
}

.dropdown__item {
  width: 100%;
}

.dropdown__link {
  display: block;
  padding: 10px 20px;
  color: #fff;
  font-size: 18px;
  text-align: left;
  text-decoration: none;
}

.dropdown__link:hover {
  background: #3084F2;
  color: #fff;
}

/* Desktop: Dropdown öffnet beim Drüberfahren */
@media screen and (min-width: 961px) {
  .navbar__item.dropdown:hover .dropdown__menu {
    display: block;
  }
}

/* Handy/Tablet: Dropdown öffnet per Klick (app.js) */
@media screen and (max-width: 960px) {
  /* Menü wächst mit, damit das offene Dropdown nicht abgeschnitten wird */
  .navbar__menu,
  .navbar__menu.active {
    height: auto;
    padding-bottom: 20px;
  }

  .dropdown__menu {
    position: static;
    width: 100%;
  }

  .dropdown__link {
    padding: 16px;
    font-size: 22px;
    text-align: center;
  }

  .navbar__links.dropdown-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    height: 50px;
    margin: 20px auto 0 auto;
    padding: 0 12px;
    font-size: 22px;
  }
}
