/* public-i18n.css — language selector shared by the static public pages. */

.lang-switch {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.lang-switch .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang-select {
  min-height: 32px;
  max-width: 9.5em;
  padding: 2px 4px;
  border: 1px solid #dce4ee;
  border-radius: 4px;
  background: #fff;
  color: #15233b;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}

.lang-select:focus-visible {
  outline: 2px solid #3158a6;
  outline-offset: 2px;
}

@media (max-width: 680px) {
  .lang-select {
    max-width: 8.5em;
    min-height: 34px;
  }
}

/* German compounds (e.g. "Geschäftsentscheidung") are single unbreakable words
   that can be wider than a narrow viewport. German prose uses real hyphenation
   at the language's own break points, and break-word is only the last-resort
   guard so one overlong compound can never be clipped by its box.
   Scoped to lang(de): all other locales keep their current typography. */
html:lang(de) h1,
html:lang(de) h2,
html:lang(de) h3,
html:lang(de) p,
html:lang(de) li,
html:lang(de) dt,
html:lang(de) dd,
html:lang(de) summary,
html:lang(de) figcaption,
html:lang(de) blockquote {
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}
