/* Rechtstexte (Impressum, Datenschutzerklärung, Cookie-Richtlinie): Hero, Spalte mit Inhaltsverzeichnis (skripte/inhaltsverzeichnis.js) und Dokument.
   Werte wie die eingefrorene Fassung. Seiten tragen body.rechtstext-seite; gemeinsame Textlinks stehen in 02-grundbausteine.css. */


/* Hero und Einleitung */



/* Zwei Spalten: schmale Schiene links, Text rechts */
.rechtstext-sektion { padding-top: var(--space-3xl); }
.zweispalter.zweispalter--schiene { grid-template-columns: 376px minmax(0, 1fr); }

/* Inhaltsverzeichnis */
.faq__spalte.faq__spalte--rechtstext { top: calc(var(--hdr-block) + var(--space-2xl)); }
.faq__spalte--rechtstext .faq__nav { gap: 0; }
.faq__spalte--rechtstext .faq__nav > a { display: flex; align-items: flex-start; padding-block: 7px; line-height: 1.35; text-decoration: none; }
.faq__spalte--rechtstext .faq__nav > a > span { min-width: 0; text-wrap: pretty; text-decoration: none; }
.faq__spalte--rechtstext .faq__nav > a.is-current { color: var(--color-primary); box-shadow: inset 0 0 0 1px var(--color-primary), 0 0 0 3px color-mix(in srgb, var(--color-primary) 12%, transparent); }

@media (max-width: 991px) {
  .zweispalter.zweispalter--schiene { grid-template-columns: minmax(0, 1fr); }
  .faq__spalte--rechtstext .faq__nav {
    position: sticky; top: calc(var(--hdr-block) + var(--space-2xs)); z-index: 5; flex-wrap: nowrap; overflow-x: auto;
    scroll-snap-type: x; scrollbar-width: none; margin-inline: calc(var(--space-l) * -1); padding: var(--space-2xs) var(--space-l);
    background-color: var(--glass-bg-strong); backdrop-filter: var(--glass-blur); border-block-end: 1px solid var(--glass-border-ink);
  }
  .faq__spalte--rechtstext .faq__nav::-webkit-scrollbar { display: none; }
  .faq__spalte--rechtstext .faq__nav > a { flex: 0 0 auto; scroll-snap-align: center; padding-block: 8px; }
  .faq__spalte--rechtstext .faq__nav > a > span { white-space: nowrap; }
  .faq__spalte--rechtstext :is(.faq__trenner, .faq__hinweis) { display: none; }
}
@media (max-width: 991px) {
  @supports not (backdrop-filter: blur(1px)) { .faq__spalte--rechtstext .faq__nav { background-color: var(--glass-bg-fallback); } }
}

/* Dokument */
.rechtstext {
  --rt-h2: max(1.8rem, var(--text-l)); --rt-h3: max(1.6rem, var(--text-l));
  max-width: var(--width-68ch); color: var(--color-text-soft);
}
.rechtstext .rechtstext__dokument > * + * { margin-block-start: var(--space-m); }
.rechtstext .rechtstext__dokument > :first-child { margin-block-start: 0; }
.rechtstext h2 { margin-block: var(--space-2xl) var(--space-xs); font-size: var(--rt-h2); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; color: var(--color-text); text-wrap: balance; }
.rechtstext h2.rechtstext__angabe { margin-block: var(--space-m) var(--space-2xs); font-size: var(--rt-h3); font-weight: 600; line-height: 1.35; letter-spacing: normal; text-wrap: wrap; }
.rechtstext h2[id] { scroll-margin-top: calc(var(--hdr-block) + var(--verzeichnis-block, 0px) + var(--space-l)); }
.rechtstext h3 { margin-block: var(--space-l) var(--space-2xs); font-size: var(--rt-h3); font-weight: 600; line-height: 1.35; color: var(--color-text); }
.rechtstext :is(p, li) { line-height: 1.7; color: var(--color-text-soft); text-wrap: pretty; }
/* Absatzabstand wie das Bricks-Grundgerüst: 1,2 em unter jedem Absatz außer dem letzten seiner Art */
.rechtstext p { margin-block-end: 1.2em; }
.rechtstext p:where(:last-of-type) { margin-block-end: 0; }
.rechtstext ul { padding-inline-start: var(--space-l); }
.rechtstext li + li { margin-block-start: var(--space-2xs); }
.rechtstext a {
  color: inherit; text-decoration: underline 1px color-mix(in srgb, currentcolor 40%, transparent 60%); text-underline-offset: 3px; overflow-wrap: anywhere;
  transition: color var(--transition-fast) ease-out, text-decoration-color var(--transition-fast) ease-out;
}
.rechtstext a:is(:hover, :focus-visible) { color: var(--color-primary); text-decoration-color: currentcolor; }

@media (prefers-reduced-motion: reduce) {
  .rechtstext-seite .textlink a, .rechtstext a { transition: none; }
}
