/* Neurovexa — Hauptmenü: Akzentfarbe + "Hosting" Mega-Menü
   Wird von includes/nvx-mega-menu.php geladen (Website und Panel-Header).
   Überschreibt das Template-Grün (--primary--color) mit den Logo-Farben.
*/

/* ---- Menü-Links: Hover-Linie und aktiver Zustand in Logo-Farben statt Grün ---- */
.header-con .navbar-light .navbar-nav .nav-link::before {
  height: 2px !important;
  border-radius: 2px;
  background: linear-gradient(90deg, #4297f9 0%, #3de0f5 55%, #a855f7 100%) !important;
}

.header-con .navbar-light .navbar-nav .nav-link:hover,
.header-con .navbar-light .navbar-nav .nav-link:focus-visible,
.header-con .navbar-light .navbar-nav .show > .nav-link,
.header-con .navbar-light .navbar-nav .nav-link[aria-expanded="true"] {
  color: #3de0f5 !important;
}

.header-con .navbar-light .navbar-nav .show > .nav-link::before,
.header-con .navbar-light .navbar-nav .nav-link[aria-expanded="true"]::before {
  width: 100% !important;
}

.header-con .navbar-light .navbar-nav .dropdown-menu .dropdown-item:hover,
.header-con .navbar-light .navbar-nav .dropdown-menu .dropdown-item:focus,
.header-con .navbar-light .navbar-nav .dropdown-menu .dropdown-item:active,
.header-con .navbar-light .navbar-nav .dropdown-menu .dropdown-item.active {
  background: linear-gradient(90deg, rgba(66, 151, 249, 0.22), rgba(168, 85, 247, 0.18)) !important;
  color: #fff !important;
}

/* Handy/Tablet: Burger-Symbol und aufgeklapptes Menü ebenfalls ohne Template-Grün */
@media (max-width: 991.98px) {
  .header-con .navbar-toggler-icon {
    background: linear-gradient(90deg, #4297f9, #3de0f5 55%, #a855f7) !important;
  }

  .header-con .navbar-collapse.collapse,
  .header-con .navbar-collapse.collapsing {
    border: 1px solid rgba(66, 151, 249, 0.3) !important;
    background:
      radial-gradient(120% 60% at 0% 0%, rgba(66, 151, 249, 0.16), transparent 60%),
      rgba(7, 9, 32, 0.98) !important;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55) !important;
  }
}

/* ---- Mega-Menü: Panel ---- */
.header-con .dropdown-menu.nvx-mega-menu.nvx-mega-v2,
.header-con nav.nvx-nav.navbar-light .navbar-nav .dropdown-menu.nvx-mega-menu.nvx-mega-v2,
#page-topbar .dropdown-menu.nvx-mega-menu.nvx-mega-v2 {
  width: min(680px, calc(100vw - 48px)) !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 10px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(66, 151, 249, 0.3) !important;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(66, 151, 249, 0.14), transparent 55%),
    radial-gradient(90% 70% at 100% 100%, rgba(168, 85, 247, 0.14), transparent 60%),
    rgba(7, 9, 32, 0.97) !important;
  box-shadow:
    0 0 0 1px rgba(61, 224, 245, 0.08),
    0 0 40px rgba(66, 151, 249, 0.18),
    0 28px 60px rgba(0, 0, 0, 0.55) !important;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

.header-con .dropdown-menu.nvx-mega-menu.nvx-mega-v2 .nvx-mega-grid,
#page-topbar .dropdown-menu.nvx-mega-menu.nvx-mega-v2 .nvx-mega-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ---- Produktkarten ---- */
.header-con .dropdown-menu.nvx-mega-menu.nvx-mega-v2 a.nvx-mega-item,
#page-topbar .dropdown-menu.nvx-mega-menu.nvx-mega-v2 a.nvx-mega-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 10px !important;
  width: auto !important;
  min-width: 0;
  height: 100%;
  margin: 0 !important;
  padding: 10px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(66, 151, 249, 0.12) !important;
  background: rgba(255, 255, 255, 0.025) !important;
  box-shadow: none !important;
  color: #fff !important;
  text-decoration: none !important;
  white-space: normal !important;
  transform: none;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease !important;
}

.header-con .dropdown-menu.nvx-mega-menu.nvx-mega-v2 a.nvx-mega-item:hover,
.header-con .dropdown-menu.nvx-mega-menu.nvx-mega-v2 a.nvx-mega-item:focus-visible,
#page-topbar .dropdown-menu.nvx-mega-menu.nvx-mega-v2 a.nvx-mega-item:hover,
#page-topbar .dropdown-menu.nvx-mega-menu.nvx-mega-v2 a.nvx-mega-item:focus-visible {
  border-color: rgba(61, 224, 245, 0.5) !important;
  background: linear-gradient(160deg, rgba(66, 151, 249, 0.16), rgba(168, 85, 247, 0.1)) !important;
  box-shadow: 0 0 16px rgba(61, 224, 245, 0.14) !important;
  transform: none;
  outline: none;
}

/* Produkt-Icon; Hover-Variante blendet darüber ein */
.header-con .dropdown-menu.nvx-mega-menu.nvx-mega-v2 .nvx-mega-icon,
#page-topbar .dropdown-menu.nvx-mega-menu.nvx-mega-v2 .nvx-mega-icon {
  position: relative !important;
  flex: 0 0 auto !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: none !important;
  box-shadow: 0 4px 14px rgba(66, 151, 249, 0.16);
}

.nvx-mega-v2 .nvx-mega-icon img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nvx-mega-v2 .nvx-mega-icon .nvx-mega-icon-hover {
  opacity: 0;
}

.nvx-mega-v2 a.nvx-mega-item:hover .nvx-mega-icon img,
.nvx-mega-v2 a.nvx-mega-item:focus-visible .nvx-mega-icon img {
  transform: scale(1.05);
}

.nvx-mega-v2 a.nvx-mega-item:hover .nvx-mega-icon .nvx-mega-icon-hover,
.nvx-mega-v2 a.nvx-mega-item:focus-visible .nvx-mega-icon .nvx-mega-icon-hover {
  opacity: 1;
}

.header-con .dropdown-menu.nvx-mega-menu.nvx-mega-v2 .nvx-mega-text,
#page-topbar .dropdown-menu.nvx-mega-menu.nvx-mega-v2 .nvx-mega-text {
  display: block !important;
  min-width: 0;
  text-align: left;
}

.header-con .dropdown-menu.nvx-mega-menu.nvx-mega-v2 .nvx-mega-title,
#page-topbar .dropdown-menu.nvx-mega-menu.nvx-mega-v2 .nvx-mega-title {
  display: flex !important;
  align-items: center;
  gap: 6px;
  margin: 1px 0 3px !important;
  font-family: Inter, "Segoe UI", system-ui, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em;
  color: #fff !important;
}

.nvx-mega-v2 .nvx-mega-title i {
  font-size: 11px;
  color: #3de0f5;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nvx-mega-v2 a.nvx-mega-item:hover .nvx-mega-title i,
.nvx-mega-v2 a.nvx-mega-item:focus-visible .nvx-mega-title i {
  opacity: 1;
  transform: none;
}

.header-con .dropdown-menu.nvx-mega-menu.nvx-mega-v2 .nvx-mega-desc,
#page-topbar .dropdown-menu.nvx-mega-menu.nvx-mega-v2 .nvx-mega-desc {
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
  margin: 0 !important;
  font-family: Inter, "Segoe UI", system-ui, sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  color: rgba(220, 230, 255, 0.68) !important;
}

/* ---- Fußzeile ---- */
.nvx-mega-v2 .nvx-mega-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(66, 151, 249, 0.14);
  background: rgba(66, 151, 249, 0.06);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(220, 230, 255, 0.72);
}

.nvx-mega-v2 .nvx-mega-foot span {
  font-family: inherit;
}

.nvx-mega-v2 .nvx-mega-foot span i {
  margin-right: 6px;
  color: #a855f7;
}

.header-con .nvx-mega-v2 .nvx-mega-foot a,
#page-topbar .nvx-mega-v2 .nvx-mega-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  font-family: inherit;
  font-weight: 600;
  font-size: 12px;
  color: #3de0f5 !important;
  text-decoration: none !important;
}

.header-con .nvx-mega-v2 .nvx-mega-foot a:hover,
#page-topbar .nvx-mega-v2 .nvx-mega-foot a:hover {
  color: #fff !important;
}

.nvx-mega-v2 .nvx-mega-foot a::before,
.nvx-mega-v2 .nvx-mega-foot a::after {
  display: none !important;
}

/* ---- Tablet / Handy (aufgeklapptes Menü) ---- */
@media (max-width: 991.98px) {
  .header-con .dropdown-menu.nvx-mega-menu.nvx-mega-v2,
  #page-topbar .dropdown-menu.nvx-mega-menu.nvx-mega-v2 {
    width: 100% !important;
    padding: 10px !important;
    border-radius: 16px !important;
  }

  .header-con .dropdown-menu.nvx-mega-menu.nvx-mega-v2 .nvx-mega-grid,
  #page-topbar .dropdown-menu.nvx-mega-menu.nvx-mega-v2 .nvx-mega-grid {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  .header-con .dropdown-menu.nvx-mega-menu.nvx-mega-v2 a.nvx-mega-item,
  #page-topbar .dropdown-menu.nvx-mega-menu.nvx-mega-v2 a.nvx-mega-item {
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
  }

  .header-con .dropdown-menu.nvx-mega-menu.nvx-mega-v2 .nvx-mega-icon,
  #page-topbar .dropdown-menu.nvx-mega-menu.nvx-mega-v2 .nvx-mega-icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px;
    border-radius: 12px !important;
  }

  .header-con .dropdown-menu.nvx-mega-menu.nvx-mega-v2 .nvx-mega-title,
  #page-topbar .dropdown-menu.nvx-mega-menu.nvx-mega-v2 .nvx-mega-title {
    margin-bottom: 2px !important;
    font-size: 14px !important;
  }

  .header-con .dropdown-menu.nvx-mega-menu.nvx-mega-v2 .nvx-mega-desc,
  #page-topbar .dropdown-menu.nvx-mega-menu.nvx-mega-v2 .nvx-mega-desc {
    font-size: 12px !important;
  }

  .nvx-mega-v2 .nvx-mega-foot {
    margin-top: 8px;
    padding: 10px 12px;
    font-size: 12px;
  }
}
