/* Taalwissel (Design Calculations), voorstel 27-10-2026. Nieuw gedeeld bestand: /shared/ui/langswitch.css, ná de paginacss laden.
   (Taalwissel NL · EN · DE voor de DIN 509-pagina's, spec: design/taalwissel-2026-10/spec.md. De optionele 44px-footerlinkregels uit het voorstel zijn weggelaten: aparte beslissing.)
   Tikdoel 44x44, tekst 14,4 px, wit op de header (lichtste punt van de verloop #2563eb = 5,17:1), focus 2px #2563eb. */
.lang-switch ul { list-style:none; margin:0; padding:0; display:flex; flex-wrap:nowrap; gap:4px; }
.lang-switch li { margin:0; padding:0; }
.ls-item { box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; padding:0 .55rem;
  font-size:.9rem; font-weight:700; line-height:1; font-family:inherit; letter-spacing:.05em; text-decoration:none; border-radius:8px; border:1px solid transparent; }

/* header: wit op de blauwe verloop */
.lang-switch--header { margin:0 0 .15rem; }
.lang-switch--header ul { justify-content:flex-end; }
.lang-switch--header a.ls-item { color:#fff; border-color:rgba(255,255,255,.75); background:transparent; }
.lang-switch--header .ls-current { color:#fff; background:rgba(15,23,42,.55); border-color:rgba(15,23,42,.55); box-shadow:inset 0 -3px 0 #fff; cursor:default; }   /* gevuld + streep = niet alleen kleur */
@media (hover:hover) { .lang-switch--header a.ls-item:hover { background:#fff; color:#1e3a8a; border-color:#fff; } }
/* focus: blauwe ring 2px #2563eb; op de blauwe header eerst een witte tussenring zodat de ring ook rechts in de verloop zichtbaar blijft */
.lang-switch a.ls-item:focus-visible { outline:2px solid #2563eb; outline-offset:2px; }
.lang-switch--header a.ls-item:focus-visible { box-shadow:0 0 0 2px #fff; }

/* footer: donker op licht */
.lang-switch--footer ul { justify-content:center; }
.lang-switch--footer a.ls-item { color:#1e293b; border-color:#64748b; background:#fff; }
.lang-switch--footer .ls-current { color:#fff; background:#0f172a; border-color:#0f172a; box-shadow:inset 0 -3px 0 #fff; cursor:default; }
@media (hover:hover) { .lang-switch--footer a.ls-item:hover { background:#eff6ff; border-color:#2563eb; color:#1d4ed8; } }

.ls-vh { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* positie: mobiel en tablet als eerste rij in de header (header krijgt 44 px erbij); vanaf 1100 px rechtsboven, de compacte header blijft even hoog */
@media (min-width:1100px) {
  header { position:relative; }
  .lang-switch--header { position:absolute; top:50%; right:1.25rem; margin:0; transform:translateY(-50%); z-index:3; }   /* z-index: the brand line must not cover the links (found by the click test) */
}
@media print { .lang-switch { display:none; } }
