/* Taalschakelaar. Koppel de drie --ls-*-variabelen aan de huisstijl van de site
   (merkkleur, tekstkleur, rand); het lettertype erft vanzelf mee van het menu. */
.lang-switch {
  --ls-accent: #1f6f43;
  --ls-text: #1c2b3a;
  --ls-border: rgba(0, 0, 0, 0.12);

  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--ls-border);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
}
.lang-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc((100% - 6px) / var(--lang-count, 2));
  height: calc(100% - 6px);
  border-radius: 999px;
  background: var(--ls-accent);
  transform: translateX(calc(var(--lang-active, 0) * 100%));
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.lang-switch-opt {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ls-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 200ms ease;
}
.lang-switch-opt.is-active { color: #fff; cursor: default; }
.lang-switch-opt:not(.is-active):hover { color: var(--ls-accent); }
.lang-switch-opt:focus-visible { outline: 2px solid var(--ls-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .lang-switch-thumb { transition: none; } }
/* Voor pagina's zonder menubalk (losse landingspagina, stappenformulier):
   schakelaar vast rechtsboven, zodat hij er toch op elke pagina staat. */
.lang-switch-float { position: fixed; top: 16px; right: 16px; z-index: 50; }
.lang-switch-float .lang-switch { background: rgba(255, 255, 255, 0.92); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08); }

/* --- Smart Consultant: huisstijl en plek in de menubalk ------------------- */
.lang-switch {
  --ls-accent: #1b2246;
  --ls-text: #1b2246;
  --ls-border: rgba(27, 34, 70, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Op een donkere ondergrond (donkere menubalk, mobiel menu): wit bolletje,
   donkerblauwe actieve taal. */
.hs-masthead-donker .hs-topbalk .lang-switch,
.hs-nav-mobiel-extra .lang-switch {
  --ls-accent: #ffffff;
  --ls-text: #ffffff;
  --ls-border: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.hs-masthead-donker .hs-topbalk .lang-switch-opt.is-active,
.hs-nav-mobiel-extra .lang-switch-opt.is-active {
  color: #1b2246;
}

.hs-masthead-donker .hs-topbalk .lang-switch-opt:not(.is-active):hover,
.hs-nav-mobiel-extra .lang-switch-opt:not(.is-active):hover {
  color: #56cfbd;
}

/* In de smalle balk iets compacter. */
.hs-topbalk .lang-switch-opt {
  min-height: 22px;
  padding: 4px 9px;
  font-size: 11px;
}
