/* Ratgeber in anderen Sprachen (/<sprache>/guides/), zusätzlich zu /ratgeber/ratgeber.css geladen.
   Der deutsche Ratgeber lädt diese Datei nicht. Nur Ergänzungen: Sprachwahl, Hinweiskasten, Store-Knöpfe,
   44-px-Tippflächen, Schriften für Kyrillisch, Griechisch, Arabisch, Rechts nach links. */

.rg-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Lange Wörter (Finnisch, Ungarisch, Deutsch in Namen) dürfen umbrechen statt die Seite zu verbreitern */
h1, h2, h3, .lead, .artikel p, .artikel li, td, th, caption, .weiter-liste strong, .uebersicht strong, .uebersicht span {
  overflow-wrap: break-word;
}
h1, .artikel h2 { hyphens: auto; }

/* Preisspalten sind übersetzt oft länger („au moins la valeur de l'argent“): auf dem Handy umbrechen statt abschneiden */
@media (max-width: 639px) {
  .tabelle-mobil tr { grid-template-columns: minmax(0, 1fr) auto; }
  .tabelle-mobil td.preis { white-space: normal; max-width: 11.5em; text-wrap: balance; }
}

/* Kopfzeile: Menü und Sprachwahl rechts */
.kopf-rechts { display: flex; align-items: center; gap: 4px; }
@media (min-width: 768px) { .kopf-rechts { gap: 16px; } }
.nav a { min-height: 44px; display: inline-flex; align-items: center; }
.menue-knopf, .sprach-knopf { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.sprach-knopf {
  gap: 6px; padding: 0 8px; background: none; border: 0; border-radius: 8px; cursor: pointer;
  color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; text-transform: uppercase;
}
.sprach-knopf:hover, .sprach-knopf[aria-expanded="true"] { color: var(--text); }
.sprach-knopf svg { width: 18px; height: 18px; flex: none; }
.menue a { min-height: 44px; display: flex; align-items: center; }
.menue, .sprachwahl { max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; }
.sprachwahl { border-top: 1px solid var(--line); padding: 12px 0 16px; }
.sprachwahl[hidden] { display: none; }
.sprachwahl-titel { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 10px; }
.rg-sprachen { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rg-sprachen a {
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--card-soft);
  color: var(--muted); font-size: 14px; text-decoration: none;
}
.rg-sprachen a:hover { color: var(--text); border-color: var(--line-strong); }
.rg-sprachen a[aria-current="page"] { color: var(--text); border-color: var(--accent-mid); }

/* Tippflächen mindestens 44 px, ohne das Bild der Seite zu verändern */
.brotkrumen a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.toc a, .toc-mobil a { min-height: 44px; display: flex; align-items: center; }
.toc-mobil li { padding: 0; }
.toc-mobil summary { min-height: 48px; display: flex; align-items: center; }
.fuss ul a, .fuss-unten nav a { min-height: 44px; display: inline-flex; align-items: center; }
.fuss ul { gap: 0; }

/* Hinweis: Ratgeber beschreibt Deutschland */
.rg-land { display: flex; gap: 12px; align-items: flex-start; }
.rg-land svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--accent); }
.rg-land p, .artikel .rg-land p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body); }
.artikel .rg-land { margin-bottom: 20px; }
.rg-land-uebersicht { margin: 32px 0 0; max-width: var(--read); }
.rg-land-uebersicht + .uebersicht { padding-top: 24px; }

/* Store-Knöpfe statt der deutschen Abzeichen */
.badges .rg-store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 14px;
  border-radius: 12px; border: 1px solid rgba(168, 85, 247, .45); background: rgba(168, 85, 247, .10);
  color: #fff; font-weight: 600; font-size: 16px; line-height: 1; white-space: nowrap; text-decoration: none;
  transition: border-color .15s, background-color .15s;
}
.badges .rg-store:hover { color: #fff; opacity: 1; border-color: var(--accent-mid); background: rgba(168, 85, 247, .18); }
.rg-store svg { width: 20px; height: 20px; flex: none; color: var(--accent); }
.mini-cta .badges .rg-store { min-height: 44px; padding: 0 12px 0 10px; font-size: 14px; gap: 8px; }
.mini-cta .rg-store svg { width: 18px; height: 18px; }

/* Fußzeile: Sprachen */
.fuss-sprachen { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 24px; }
.fuss-sprachen h2 { margin-bottom: 4px; }
.rg-sprachen-fuss { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; column-gap: 20px; }
.fuss .rg-sprachen-fuss a { min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; }
.fuss .rg-sprachen-fuss a[aria-current="page"] { color: var(--text); font-weight: 600; }
.fuss-sprachen + .fuss-unten { margin-top: 16px; }

/* Sichtbarer Tastaturfokus auch für die neuen Bedienelemente */
.sprach-knopf:focus-visible, .rg-store:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Schriften: Inter liefert nur lateinische Zeichen. Kyrillisch und Griechisch durchgehend in der
   Systemschrift, damit ein Wort nicht aus zwei Schriften besteht (wie fd-mehrsprachig.css). */
:lang(ru), :lang(uk), :lang(bg), :lang(mk), :lang(el) {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
}
:lang(ar) {
  font-family: "Segoe UI", Tahoma, "Geeza Pro", "SF Arabic", "Noto Sans Arabic", "Noto Naskh Arabic", system-ui, sans-serif;
}

/* Rechts nach links (Arabisch) */
[dir="rtl"] * { letter-spacing: 0; }
[dir="rtl"] h1 { line-height: 1.35; }
[dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.4; }
[dir="rtl"] .artikel p, [dir="rtl"] .artikel li { line-height: 1.85; }
[dir="rtl"] .sprunglink { left: auto; right: 12px; }
[dir="rtl"] .brotkrumen li + li::before { margin-right: 0; margin-left: 6px; }
[dir="rtl"] .toc { border-left: 0; border-right: 1px solid var(--border); }
[dir="rtl"] .toc a { padding: 6px 14px 6px 0; margin-left: 0; margin-right: -1px; border-left: 0; border-right: 1px solid transparent; }
[dir="rtl"] .toc a:hover { border-right-color: var(--accent); }
[dir="rtl"] .toc-mobil ol { padding: 0 38px 16px 18px; }
[dir="rtl"] .artikel ul, [dir="rtl"] .artikel ol { padding-left: 0; padding-right: 22px; }
[dir="rtl"] caption, [dir="rtl"] th { text-align: right; }
[dir="rtl"] .tabelle-mobil td.preis { text-align: left; }
[dir="rtl"] .artikelkopf::before { background: radial-gradient(60rem 28rem at 85% -10%, rgba(126, 34, 206, .22), transparent 60%); }
[dir="rtl"] .badges .rg-store { padding: 0 14px 0 18px; }
[dir="rtl"] .mini-cta .badges .rg-store { padding: 0 10px 0 12px; }
