/* Kyrillische Buchstaben für Russisch (Montserrat, SIL Open Font License; wird nur bei Bedarf geladen) */
@font-face { font-family: "Montserrat"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/assets/fonts/montserrat-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0400-052F, U+1C80-1C88, U+2116, U+2DE0-2DFF, U+A640-A69F; }

/* Sprachknopf (i18n.js): Knopf mit Kürzel, klappt nach unten eine Liste mit den Sprachen auf.
   Farben über Variablen, damit er auf dunklen und hellen Seiten passt. */
.lang-switch { position: relative; flex: none; --lang-fg: #e6eaed; --lang-line: rgba(255,255,255,.22); --lang-menu-bg: rgba(18,22,26,.97); --lang-hover: rgba(255,255,255,.08); --lang-accent: #9fd3dc; }
.lang-switch__btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--lang-line); background: transparent; color: var(--lang-fg);
  font: 600 .78rem/1 inherit; letter-spacing: .12em; cursor: pointer; transition: background-color .25s ease, border-color .25s ease;
}
.lang-switch__btn:hover, .lang-switch__btn[aria-expanded="true"] { background: var(--lang-hover); }
.lang-switch__btn:focus-visible { outline: 2px solid var(--lang-accent); outline-offset: 2px; }
.lang-switch__btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lang-switch__btn .lang-switch__chev { width: 14px; height: 14px; transition: transform .25s ease; }
.lang-switch__btn[aria-expanded="true"] .lang-switch__chev { transform: rotate(180deg); }
.lang-switch__menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 1000; min-width: 168px; margin: 0; padding: 6px; list-style: none;
  border-radius: 14px; border: 1px solid var(--lang-line); background: var(--lang-menu-bg);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.55);
  animation: lang-drop .18s ease-out;
}
@keyframes lang-drop { from { opacity: 0; transform: translateY(-6px); } }
.lang-switch__menu li { margin: 0; }
.lang-switch__menu button {
  display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 12px; border: 0; border-radius: 9px;
  background: transparent; color: var(--lang-fg); font: 500 .95rem/1.2 inherit; text-align: left; cursor: pointer;
}
.lang-switch__menu button:hover, .lang-switch__menu button:focus-visible { background: var(--lang-hover); outline: none; }
.lang-switch__menu button[aria-current]::after { content: "✓"; color: var(--lang-accent); font-weight: 700; margin-left: 12px; }
@media (prefers-reduced-motion: reduce) { .lang-switch__menu { animation: none; } }
@media (max-width: 640px) {
  .lang-switch__btn { padding: 0 9px; gap: 4px; }
  .lang-switch__btn svg:first-child { display: none; }
}

/* Platzierung im Mitgliederbereich und auf den Anmeldeseiten */
.lang-fixed { position: fixed; top: 16px; right: 16px; z-index: 60; }
.sidebar .lang-row { margin: 0 0 10px; }
.sidebar .lang-switch__btn { width: 100%; justify-content: center; }
.sidebar .lang-switch__menu { top: auto; bottom: calc(100% + 8px); left: 0; right: auto; width: 100%; }
.topbar__row .lang-top { margin-left: auto; margin-right: 10px; }
