.language-switcher {
  position: relative;
  z-index: 1002;
  flex: 0 0 auto;
  color: #edeadd;
  font-family: Inter, system-ui, sans-serif;
}

.language-switcher-standalone {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: 1002;
}

.language-switcher summary {
  display: inline-flex;
  min-width: 48px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(184, 232, 52, .34);
  border-radius: 999px;
  background: rgba(10, 13, 11, .88);
  color: inherit;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  list-style: none;
  text-transform: uppercase;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary::after {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}

.language-switcher[open] summary,
.language-switcher summary:hover {
  border-color: #b8e834;
  color: #b8e834;
}

.language-switcher[open] summary::after { transform: translateY(2px) rotate(225deg); }

.language-switcher-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: max-content;
  min-width: 190px;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(184, 232, 52, .25);
  border-radius: 16px;
  background: rgba(10, 13, 11, .98);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .48);
  backdrop-filter: blur(18px);
}

.language-switcher-menu a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #edeadd;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
}

.language-switcher-menu a:hover,
.language-switcher-menu a:focus-visible,
.language-switcher-menu a[aria-current="true"] {
  background: rgba(184, 232, 52, .12);
  color: #c9f54a;
  outline: none;
}

.language-switcher-menu small {
  color: #9ca497;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

@media (max-width: 980px) {
  .language-switcher { margin-left: auto; }
  .language-switcher + .nav-cta { margin-left: 0; }
  .language-switcher-menu { right: 0; }
}

@media (max-width: 420px) {
  .nav-inner { gap: 8px; }
  .nav-inner .logo { min-width: 0; font-size: .82rem; }
  .nav-inner .logo-mark { width: 28px; height: 28px; }
  .nav-inner .nav-toggle { flex: 0 0 44px; }
  .language-switcher summary {
    min-width: 44px;
    padding-inline: 9px;
  }
  .language-switcher-menu {
    position: fixed;
    top: calc(var(--nav-h, 76px) + 8px);
    right: max(12px, env(safe-area-inset-right));
    left: max(12px, env(safe-area-inset-left));
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .language-switcher summary,
  .language-switcher summary::after { transition: none; }
}

.legal-translation-notice {
  max-width: 1120px;
  margin: calc(var(--nav-h, 76px) + 20px) auto 20px;
  padding: 14px 18px;
  border: 1px solid rgba(184, 232, 52, .3);
  border-radius: 12px;
  background: rgba(184, 232, 52, .08);
  color: #edeadd;
  font: 600 13px/1.55 Inter, system-ui, sans-serif;
}

/* The mobile assistant label is CSS-generated and therefore invisible to the
   text translation observer. Keep it in the selected page language. */
@media (max-width: 760px) {
  html[lang="en"] body.has-chatbot button.chatbot-fab::after { content: "Question? Open the AI assistant" !important; }
  html[lang="nl"] body.has-chatbot button.chatbot-fab::after { content: "Vraag? Open de AI-assistent" !important; }
  html[lang="fr-BE"] body.has-chatbot button.chatbot-fab::after { content: "Une question ? Ouvrir l'assistant IA" !important; }
}

html[lang="en"] .compare-cell-kevin::before { content: "★ With me: " !important; }
html[lang="nl"] .compare-cell-kevin::before { content: "★ Bij mij: " !important; }
html[lang="fr-BE"] .compare-cell-kevin::before { content: "★ Avec moi : " !important; }
html[lang="en"] .compare-cell-agency::before { content: "Agency: " !important; }
html[lang="nl"] .compare-cell-agency::before { content: "Bureau: " !important; }
html[lang="fr-BE"] .compare-cell-agency::before { content: "Agence : " !important; }
html[lang="nl"] .compare-cell-diy::before { content: "Zelf doen: " !important; }
html[lang="fr-BE"] .compare-cell-diy::before { content: "À faire soi-même : " !important; }
html[lang="en"] .tool-tile--hot::before { content: "NEW" !important; }
html[lang="nl"] .tool-tile--hot::before { content: "NIEUW" !important; }
html[lang="fr-BE"] .tool-tile--hot::before { content: "NOUVEAU" !important; }
html[lang="en"] #angebotOut .k360t-pre::before { content: "— Your quote draft —" !important; }
html[lang="nl"] #angebotOut .k360t-pre::before { content: "— Jouw offerteconcept —" !important; }
html[lang="fr-BE"] #angebotOut .k360t-pre::before { content: "— Votre projet de devis —" !important; }
