/* Minimal fixed-position language pill — top-right, single link.
   No topbar/footer exists on this LP (pure single-column story), so this
   follows the same "fixed, minimal chrome" precedent as .b-sticky rather
   than a masthead nav. Reads window.LP_LANG directly (set per entry point
   in index.html / en/index.html) so it needs no props.
*/
function BLangSwitch() {
  const isEn = window.LP_LANG === 'en';
  const targetHref = isEn ? '/' : '/en';
  const targetLangCode = isEn ? 'de' : 'en';
  const label = isEn ? 'DE' : 'EN';
  const ariaLabel = isEn ? 'Zur deutschen Version wechseln' : 'Switch to English';
  return (
    <a className="b-langsw" href={targetHref} hrefLang={targetLangCode} lang={targetLangCode} aria-label={ariaLabel}>
      {label}
    </a>
  );
}
