.header-actions, .detective-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.topbar > .nav { margin-left: auto; }
.language-switcher { position: relative; font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: normal; }
.language-switcher summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 78px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 12px;
  cursor: pointer;
  list-style: none;
  color: inherit;
  background: rgba(0,0,0,.12);
  user-select: none;
}
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary::after { content: ''; width: 5px; height: 5px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); margin: -3px 2px 0 3px; }
.language-switcher[open] summary::after { transform: rotate(225deg); margin-top: 3px; }
.language-switcher svg { width: 18px; height: 18px; flex-shrink: 0; }
.language-switcher summary:focus-visible, .language-options a:focus-visible { outline: 3px solid #a78bfa; outline-offset: 3px; }
.language-options {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 80;
  min-width: 174px;
  padding: 6px;
  background: #fff;
  color: #1c1b22;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
}
.language-options a { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 7px; text-decoration: none; color: inherit; }
.language-options a:hover, .language-options a[aria-current] { background: #f3eefe; color: #6d28d9; opacity: 1; }
.language-options a[aria-current]::after { content: '✓'; }
.page-light .language-switcher summary, .detective-controls .language-switcher summary { border-color: #cbd5e1; background: transparent; }
.dark .detective-controls .language-switcher summary { border-color: #475569; }
.dark .language-options { background: #0f172a; color: #e2e8f0; border-color: #334155; }
.dark .language-options a:hover, .dark .language-options a[aria-current] { background: #312451; color: #ddd6fe; }
.consult-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
.consult-consent-label { display: block; line-height: 1.6; }
.consult-consent-checkbox { margin-right: 5px; }
main.content { overflow-wrap: anywhere; }
html[lang="de"] .home-products__title, html[lang="es"] .home-products__title { overflow-wrap: anywhere; }
@media (max-width: 767px) {
  .detective-breadcrumb { min-width: 0; flex-wrap: wrap; gap: 0 4px; }
  .detective-breadcrumb > a { font-size: 14px; }
  .detective-breadcrumb > span { font-size: 10px; margin-left: 0; }
  .detective-controls { gap: 6px; margin-left: 8px; }
  .detective-controls > button { min-width: 36px; min-height: 44px; }
  .language-switcher summary { min-width: 72px; padding: 8px; }
  .header-actions { gap: 8px; }
  .topbar { gap: 8px; }
  .brand { font-size: 12px; letter-spacing: .03em; }
  .consult-dialog { width: calc(100% - 24px); padding: 20px 12px; }
  .consult-label { flex-wrap: wrap; gap: 2px 8px; }
  .consult-dialog h2 { padding-right: 28px; }
  main.content h1 { font-size: 28px; hyphens: auto; }
  html[lang] #main-content h1, html[lang] #main-content h2, html[lang] #main-content h3 { overflow-wrap: anywhere; }
}
