/* Language navigation uses the existing light/glass navigation palette. */
.nw-languages { position: relative; flex: 0 0 auto; font: inherit; color: inherit; }
.nw-languages summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid rgba(20, 34, 80, .12);
  border-radius: 10px;
  background: rgba(255, 255, 255, .85);
  color: #243047;
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
.nw-languages summary::-webkit-details-marker { display: none; }
.nw-languages summary > span[aria-hidden="true"] { display: none; }
.nw-languages summary span[lang] { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nw-languages summary:hover { background: #fff; border-color: #9cadd0; }
.nw-languages summary:focus-visible, .nw-languages a:focus-visible {
  outline: 3px solid #4f7cff;
  outline-offset: 3px;
}
.nw-languages > ul {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 100;
  width: max-content;
  min-width: 180px;
  margin: 0;
  padding: 6px;
  border: 1px solid rgba(20, 34, 80, .12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(20, 34, 80, .14);
  list-style: none;
}
.nw-languages li { margin: 0; padding: 0; }
.nw-languages li a {
  display: flex;
  align-items: center;
  min-height: 42px;
  margin: 0;
  padding: 9px 12px;
  border-radius: 7px;
  color: #243047;
  font: 14px/1.4 "Segoe UI", sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.nw-languages li a:hover, .nw-languages li a[aria-current="true"] {
  background: #eef4ff;
  color: #244bb3;
}
.nav-inner > .nw-languages { margin-left: 16px; }
.nav-shell:has(> .nw-languages) { gap: 14px; }
html[lang="de"] h1, html[lang="de"] h2 { hyphens: auto; }
@media (max-width: 880px) {
  header.nav .nav-inner { gap: 8px; }
  header.nav .nav-inner > .lockup { flex: 0 1 140px; min-width: 0; }
  header.nav .nav-inner > .lockup img { width: 140px; max-width: 100%; }
  header.nav .nw-languages summary { max-width: 128px; padding-inline: 8px; }
  header.nav .nav-toggle { margin-left: 0; }
  .nav .nw-languages { order: 2; margin-left: auto; }
  .nav .nav-toggle { order: 3; margin-left: 8px; }
  .nav .nav-links { order: 4; }
  .nav-shell > .nw-languages { order: 2; margin-left: auto; }
  .nav-shell > .nav-toggle { order: 3; }
  .nav-shell > .nav-links { order: 4; }
  .nav-shell:has(> .hosting-nav) { flex-wrap: wrap; }
  .nav-shell > .hosting-nav { order: 4; width: 100%; }
  .nw-languages summary { max-width: 170px; font-size: 12px; }
}
@media (max-width: 390px) {
  .nw-languages summary { padding-inline: 7px; gap: 5px; }
  .nw-languages summary svg { display: none; }
}
