/* AYLEEN — legal pages by country (29.09.2026, _bau/seite_recht.py + recht.js). Tokens from app.css; logical spacing (rtl). */

.recht-dokumente { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 20px; }   /* W30: ≥ 8 px senkrecht zwischen Zielen */
.recht-dokumente a { display: inline-block; padding: 10px 0; min-height: 44px; min-width: 44px; box-sizing: border-box; text-align: center; }
.recht-dokumente a[aria-current="page"] { font-weight: 700; text-decoration: none; }

.recht { overflow-wrap: break-word; }
.recht h2 { margin: 32px 0 8px; font-size: 18px; line-height: 26px; font-weight: 700; }
.recht h3 { margin: 22px 0 6px; font-size: 16px; line-height: 24px; font-weight: 700; }
.recht h4 { margin: 18px 0 4px; font-size: 15px; line-height: 22px; font-weight: 700; }
.recht p { margin: 10px 0 0; }
.recht ul, .recht ol { margin: 8px 0 0; padding-inline-start: 24px; }
.recht li + li { margin-top: 8px; }                                 /* W30: ≥ 8 px between targets of neighbouring items */
.recht li > ul, .recht li > ol, .recht li > .recht-tabelle, .recht li > p { margin-top: 6px; }
.recht hr { margin: 28px 0; border: 0; border-top: 1px solid var(--md-outline-variant); }
.recht code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 0.92em; overflow-wrap: anywhere; }
.recht a { overflow-wrap: break-word; }   /* addresses carry <wbr> between their parts (md_recht.anzeige_url) */
/* a link that stands alone in its item/cell/paragraph (md_recht.ziele): 44 px target (W11) — live acceptance 29.09.2026 */
.recht a.recht-ziel { display: inline-block; min-height: 44px; min-width: 44px; padding-block: 10px; box-sizing: border-box; vertical-align: middle; }

.recht-hinweis {
  margin: 16px 0 0; padding: 12px 16px; border-radius: 12px;
  background: var(--md-secondary-container); color: var(--md-on-secondary-container);
}
.recht-hinweis p:first-child { margin-top: 0; }

/* Tables: scroll inside their own box on narrow screens — the page itself never scrolls sideways */
.recht-tabelle { margin: 12px 0 0; max-width: 100%; overflow-x: auto; border: 1px solid var(--md-outline-variant); border-radius: 12px; }
.recht-tabelle:focus-visible { outline: 2px solid var(--md-primary); outline-offset: 2px; }
.recht-tabelle table { border-collapse: collapse; min-width: 100%; font-size: 14px; line-height: 20px; }
.recht-tabelle th, .recht-tabelle td { padding: 8px 12px; text-align: start; vertical-align: top; border-top: 1px solid var(--md-outline-variant); }
.recht-tabelle thead th { border-top: 0; background: var(--md-surface-container); font-weight: 700; }
@media (max-width: 600px) { .recht-tabelle table { min-width: 560px; } }

.recht-inhalt { margin: 0 0 8px; padding: 12px 16px; border-radius: 12px; background: var(--md-surface-container-low); }
.recht-inhalt h2 { margin: 0 0 4px; font-size: 16px; }
.recht-inhalt ul { list-style: none; padding-inline-start: 0; margin: 0; }
.recht-inhalt li + li { margin-top: 8px; }                         /* W30: ≥ 8 px senkrecht zwischen Zielen */
.recht-inhalt a { display: inline-block; padding: 10px 0; min-height: 44px; min-width: 44px; box-sizing: border-box; }

.recht-land { margin-top: 12px; }
.recht-wahl { margin: 16px 0 8px; padding: 12px 16px; border-radius: 12px; background: var(--md-surface-container); }
.recht-wahl label { display: block; font-weight: 700; margin-bottom: 6px; }
.recht-wahl select {
  width: 100%; max-width: 420px; min-height: 44px; padding: 8px 12px; border-radius: 8px;
  border: 1px solid var(--md-outline-variant); background: var(--md-surface); color: var(--md-on-surface); font: inherit;
}
.recht-wahl__hinweis { margin: 8px 0 0; }
.recht-modul[hidden] { display: none; }
