/* ═══════════════════════════════════════
   Nav – Pflegehilfe Hameln
════════════════════════════════════════ */

#mainNav {
  background: linear-gradient(135deg, #003060 0%, #004080 100%);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: visible;
}
#navInner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}
#navBrand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
#navBrand img {
  height: 44px;
  background: #fff;
  padding: 4px;
  border-radius: 8px;
}
#navBrand span {
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
}

/* ── Toggle ── */
#menuToggle {
  display: none;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  line-height: 1;
  transition: all 0.2s;
}
#menuToggle:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
}

/* ── Menu list ── */
#menuList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
#menuList > li > a {
  color: rgba(255,255,255,0.9) !important;
  text-decoration: none;
  padding: 0.625rem 1rem;
  display: block;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all 0.2s;
  white-space: nowrap;
}
#menuList > li > a:hover {
  background: rgba(255,255,255,0.12) !important;
  color: #fff !important;
}
#menuList > li > a.active {
  background: rgba(255,255,255,0.18) !important;
  color: #fff !important;
  font-weight: 600;
}

/* ── Dropdown desktop ── */
#menuList .nav-dropdown {
  position: relative;
}
#menuList .nav-dropdown > .dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff !important;
  min-width: 260px;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18) !important;
  padding: 0.5rem;
  list-style: none;
  z-index: 9999;
  margin: 0;
}
#menuList .nav-dropdown > .dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 24px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #fff;
}
#menuList .nav-dropdown > .dropdown-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}
#menuList .nav-dropdown > .dropdown-menu a {
  display: block !important;
  padding: 0.75rem 1rem !important;
  color: #334155 !important;
  text-decoration: none !important;
  border-radius: 8px;
  font-size: 0.9375rem;
  transition: all 0.15s;
  background: transparent !important;
}
#menuList .nav-dropdown > .dropdown-menu a:hover {
  background: #f1f5f9 !important;
  color: #0f4c81 !important;
}
#menuList .nav-dropdown > .dropdown-menu a.active {
  background: rgba(15,76,129,0.08) !important;
  color: #0f4c81 !important;
  font-weight: 600;
}

@media (min-width: 992px) {
  #menuList .nav-dropdown:hover > .dropdown-menu { display: block; }
}

/* ── CTA ── */
#menuList .nav-cta {
  background: linear-gradient(135deg, #56D08A 0%, #45b87a 100%) !important;
  color: #003060 !important;
  font-weight: 700 !important;
  padding: 0.625rem 1.5rem !important;
  margin-left: 0.5rem;
  box-shadow: 0 4px 15px rgba(86,208,138,0.3);
}
#menuList .nav-cta:hover {
  background: linear-gradient(135deg, #7be0a6 0%, #56D08A 100%) !important;
  transform: translateY(-1px);
}

/* ══════════════════════════════════════
   MOBILE
══════════════════════════════════════ */
@media (max-width: 991px) {

  #menuToggle { display: block; }

  #menuList {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #003060 0%, #002040 100%) !important;
    flex-direction: column;
    padding: 1.5rem;
    overflow-y: auto;
    align-items: stretch;
    gap: 0;
    z-index: 999;
  }
  #menuList.open { display: flex; }

  #menuList > li {
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  #menuList > li:last-child { border-bottom: none; }

  #menuList > li > a {
    padding: 1.1rem 0.75rem !important;
    font-size: 1.05rem !important;
    border-radius: 0 !important;
    color: rgba(255,255,255,0.95) !important;
    white-space: normal;
  }
  #menuList > li > a:hover {
    background: rgba(255,255,255,0.08) !important;
    border-radius: 8px !important;
  }

  /* Mobile dropdown */
  #menuList .nav-dropdown { position: static; }

  #menuList .nav-dropdown > .dropdown-menu {
    display: none !important;
    position: static !important;
    box-shadow: none !important;
    background: rgba(255,255,255,0.07) !important;
    border-radius: 8px !important;
    padding: 0.4rem 0.25rem !important;
    margin: 0.4rem 0 0.75rem !important;
    min-width: unset !important;
  }
  #menuList .nav-dropdown > .dropdown-menu::before { display: none; }

  #menuList .nav-dropdown.open > .dropdown-menu {
    display: block !important;
  }

  /* Mobile dropdown items — white text on dark bg */
  #menuList .nav-dropdown > .dropdown-menu a {
    color: rgba(255,255,255,0.9) !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
    background: transparent !important;
    border-radius: 6px !important;
  }
  #menuList .nav-dropdown > .dropdown-menu a:hover {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
  }
  #menuList .nav-dropdown > .dropdown-menu a.active {
    background: #56D08A !important;
    color: #003060 !important;
    font-weight: 600 !important;
  }

  /* CTA mobile */
  #menuList .nav-cta {
    margin: 1.25rem 0 0 0 !important;
    text-align: center !important;
    border-radius: 10px !important;
    padding: 0.875rem 1.5rem !important;
    display: block !important;
  }
}
