/* Three short language links fit alongside the mobile menu. */
.language:has([data-mc-locale]), .pg-lang:has([data-mc-locale]), .contract-locales {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  white-space: nowrap;
}
.language [data-mc-locale], .pg-lang [data-mc-locale], .contract-locales a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  font: inherit;
  text-decoration: none;
}
.language [data-mc-locale][aria-current="page"], .pg-lang [data-mc-locale][aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .23em;
}
.mc-footer-language:has([data-mc-locale]) { flex-wrap: wrap; }
[data-mc-locale]:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
html[lang="de"] :is(main, header, footer) { hyphens: auto; }
html[lang="de"] :is(h1, h2, h3, .button, button, .nav-store, .journey-choice-product) { overflow-wrap: anywhere; }
html[lang="de"] :is(code, kbd, input, textarea, pre) { hyphens: none; }
.mc-mobile-locale { display: none; }
@media (max-width: 550px) {
  body header .mc-wide-locales, body .pg-lang.mc-wide-locales { display: none !important; }
  .mc-mobile-locale { display: inline-flex; position: relative; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 52px; height: 44px; border: 1px solid currentColor; border-radius: 24px; font: 600 .83rem/1 system-ui,sans-serif; }
  .mc-mobile-locale select { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; opacity: 0; }
  .mc-mobile-locale:focus-within { outline: 2px solid currentColor; outline-offset: 2px; }
  html[lang="de"] .gr-filters { flex-wrap: wrap; }
  html[lang="de"] .contract-header { flex-wrap: wrap; }
  .site-header:has(.language [data-mc-locale]):not(:has(.mc-mobile-locale)) { height: auto; flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .language:has([data-mc-locale]), .pg-lang:has([data-mc-locale]) { gap: .12rem; }
  .language:has([data-mc-locale]) > a, .pg-lang:has([data-mc-locale]) > a { min-width: 1.5rem; min-height: 2.75rem; }
  .language:has([data-mc-locale]) > span[aria-hidden] { display: none; }
}
@media (max-width: 410px) {
  .site-header:has([data-mc-locale]) { column-gap: 5px; }
  .site-header:has([data-mc-locale]) .brand { min-width: 0; flex-shrink: 1; }
  .site-header:has([data-mc-locale]) .brand img { max-width: 100%; }
}
