/* Sprachumschalter und Hinweis fuer nur-deutsche Seiten. Wird nur geladen, wenn mehr als eine Sprache aktiv ist. */

.sprachwahl { position: relative; font-size: 14px; }
.sprachwahl > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-weight: 560;
  letter-spacing: .04em;
  opacity: .85;
}
.sprachwahl > summary::-webkit-details-marker { display: none; }
.sprachwahl > summary:hover,
.sprachwahl[open] > summary { opacity: 1; }
.sprachwahl > summary:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }

.sprachwahl-liste {
  list-style: none;
  margin: 0;
  padding: 6px;
  min-width: 180px;
}
.sprachwahl-kopf .sprachwahl-liste {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 60;
  background: var(--flaeche);
  color: var(--tinte);
  border: 1px solid var(--linie-stark);
  border-radius: 12px;
  box-shadow: var(--schatten, 0 8px 24px rgba(0, 0, 0, .25));
}
.sprachwahl-liste a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}
.sprachwahl-liste a:hover { background: var(--akzent-wash); }
.sprachwahl-liste a[aria-current="true"] { font-weight: 640; }

/* Im Vollbild-Menue: Sprachen als Reihe unter den Links. */
.sprachwahl-menue { flex-basis: 100%; }
.sprachwahl-menue > summary { color: #A9ABB0; }
.sprachwahl-menue .sprachwahl-liste { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 10px 0 0; }
.sprachwahl-menue .sprachwahl-liste a { padding: 6px 4px; color: #A9ABB0; }
.sprachwahl-menue .sprachwahl-liste a:hover { color: #EEEDE8; background: none; }

@media (max-width: 720px) {
  .sprachwahl-kopf { display: none; }
}

/* Rechtstexte: deutscher Text bleibt deutsch, ohne das Layout zu veraendern. */
.nur-de { display: contents; }
.sprachhinweis {
  background: var(--akzent-wash);
  border-bottom: 1px solid var(--linie);
  padding-block: 12px;
  font-size: 14px;
  color: var(--tinte-weich);
}
