/* Sprachauswahl mit Flagge - dieselbe auf allen Seiten (public/sprachen/sprache.js,
   serverseitig src/sprache.ts). Nutzt nur Farben, die Dashboard und
   oeffentliche Seiten beide kennen, mit Rueckfallwerten. */
.sprachwahl { position: relative; flex: none; }
.sprachwahl > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px;
  border: 1px solid var(--rand, #212C54); border-radius: var(--r-s, 8px); background: transparent; cursor: pointer;
  color: var(--text, #EEF1FB); font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: .04em; user-select: none;
}
.sprachwahl > summary::-webkit-details-marker { display: none; }
.sprachwahl > summary:hover, .sprachwahl[open] > summary { background: var(--karte, #121A36); border-color: var(--rand-2, #2C3970); }
.sprachwahl > summary:focus-visible { outline: 2px solid var(--lila-hell, #B6A0FF); outline-offset: 2px; }
.sprachwahl .flagge { display: block; flex: none; width: 21px; height: 14px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
.sprachwahl .flagge svg { display: block; width: 100%; height: 100%; }
.sprachwahl-pfeil { width: 10px; height: 10px; opacity: .6; transition: transform .15s; }
.sprachwahl[open] .sprachwahl-pfeil { transform: rotate(180deg); }
.sprachwahl-liste {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60; min-width: 176px; padding: 6px;
  background: var(--karte, #121A36); border: 1px solid var(--rand, #212C54); border-radius: var(--r-m, 11px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.sprachwahl-liste a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-s, 8px);
  color: var(--text, #EEF1FB); font-size: 14px; font-weight: 500; text-decoration: none;
}
.sprachwahl-liste a:hover { background: var(--karte-2, #18224A); }
.sprachwahl-liste a[aria-current="true"] { font-weight: 700; }
.sprachwahl-liste a[aria-current="true"]::after {
  content: ""; width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: var(--lila-hell, #B6A0FF);
}
@media (prefers-reduced-motion: reduce) { .sprachwahl-pfeil { transition: none; } }
