/* Neurovexa — Sprachumschalter im Header (Website + Panel)
   Gleiche Optik wie Warenkorb-Kreis und Login-Button daneben.
*/

.nvx-lang {
  position: relative;
  display: inline-block;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

.nvx-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 45px;
  padding: 0 14px 0 12px;
  border-radius: 15px;
  border: 1px solid rgba(168, 85, 247, 0.45);
  background: rgba(6, 7, 34, 0.9);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.1);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.nvx-lang-btn::-webkit-details-marker {
  display: none;
}

.nvx-lang-btn::marker {
  content: "";
}

.nvx-lang-btn:hover,
.nvx-lang[open] .nvx-lang-btn,
.nvx-lang-btn:focus-visible {
  border-color: rgba(61, 224, 245, 0.7);
  box-shadow: 0 0 0 1px rgba(61, 224, 245, 0.2), 0 0 18px rgba(61, 224, 245, 0.18);
  outline: none;
}

.nvx-lang-flag {
  display: inline-block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.nvx-lang-flag svg {
  display: block;
  width: 100%;
  height: 100%;
}

.nvx-lang-code {
  letter-spacing: 0.04em;
}

.nvx-lang-caret {
  font-size: 9px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.nvx-lang[open] .nvx-lang-caret {
  transform: rotate(180deg);
}

.nvx-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1100;
  min-width: 180px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(66, 151, 249, 0.3);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(66, 151, 249, 0.14), transparent 60%),
    rgba(7, 9, 32, 0.98);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55), 0 0 26px rgba(66, 151, 249, 0.14);
}

.nvx-lang .nvx-lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: rgba(220, 230, 255, 0.85);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.nvx-lang .nvx-lang-option:hover,
.nvx-lang .nvx-lang-option:focus-visible {
  background: linear-gradient(90deg, rgba(66, 151, 249, 0.2), rgba(168, 85, 247, 0.14));
  color: #fff;
  outline: none;
}

.nvx-lang .nvx-lang-option.is-active {
  color: #fff;
}

.nvx-lang-name {
  flex: 1;
}

.nvx-lang-short {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(180, 195, 230, 0.6);
}

.nvx-lang-option .fa-check {
  font-size: 11px;
  color: #3de0f5;
}

/* Header-CSS von Website/Panel (Teko auf span, Login-Button-Stil auf jedem a/i
   in .header-contact, Hover-Balken) nicht auf den Umschalter anwenden */
.nvx-lang span,
.nvx-lang a {
  font-family: Inter, "Segoe UI", system-ui, sans-serif !important;
}

.header-con .header-contact .nvx-lang a.nvx-lang-option,
#page-topbar .header-contact .nvx-lang a.nvx-lang-option {
  display: flex !important;
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 9px 10px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
  line-height: 1.2 !important;
  text-align: left !important;
}

.header-con .header-contact .nvx-lang a.nvx-lang-option:hover,
.header-con .header-contact .nvx-lang a.nvx-lang-option:focus-visible,
#page-topbar .header-contact .nvx-lang a.nvx-lang-option:hover,
#page-topbar .header-contact .nvx-lang a.nvx-lang-option:focus-visible {
  background: linear-gradient(90deg, rgba(66, 151, 249, 0.2), rgba(168, 85, 247, 0.14)) !important;
  color: #fff !important;
}

.header-con .header-contact .nvx-lang a i,
#page-topbar .header-contact .nvx-lang a i {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  line-height: 1 !important;
  border-radius: 0 !important;
  background: none !important;
  color: #3de0f5 !important;
}

.nvx-lang a::before,
.nvx-lang a::after {
  display: none !important;
}

@media (max-width: 575.98px) {
  .nvx-lang-btn {
    height: 40px;
    padding: 0 10px;
    gap: 6px;
    border-radius: 12px;
  }

  .nvx-lang-caret {
    display: none;
  }
}
