/* Impressum und Datenschutz (design.md 6.10): kleiner Seitenkopf, ruhiger Text, keine Deko, keine Animation. */

/* Kleiner Seitenkopf: nur H1 und Stand-Chip */
.page-hero--klein { padding: clamp(32px, 4.5vw, 64px) 0 clamp(36px, 4vw, 56px); }
.page-hero--klein .page-hero__title { margin-top: 0; font-size: clamp(48px, 6vw, 88px); }
.page-hero--klein .chips { margin-top: 18px; }
.page-hero--klein .chip .icon { width: 16px; height: 16px; }

/* Fließtext */
.rl-text { max-width: var(--wrap-text); }
.rl-text h2 { display: flex; align-items: baseline; gap: 14px; scroll-margin-top: calc(var(--hdr-h) + 24px); }
.rl-text > h2:first-child, .rl-abschnitt:first-child h2 { margin-top: 0; }
.rl-text h2[id] { scroll-margin-top: calc(var(--hdr-h) + 24px); }
.rl-nr { flex: none; font: 700 13px/1 var(--f-ui); letter-spacing: .12em; color: var(--mag); font-variant-numeric: tabular-nums; transform: translateY(-.35em); }
.rl-abschnitt { scroll-margin-top: calc(var(--hdr-h) + 24px); }
.rl-abschnitt + .rl-abschnitt { margin-top: clamp(40px, 5vw, 56px); padding-top: clamp(32px, 4vw, 44px); border-top: 1px solid var(--linie); }
.rl-abschnitt > * + * { margin-top: 1em; }
.rl-abschnitt h2 { margin-top: 0; }
.rl-text .note { margin-block: 1.2em; font-size: 15px; }
.rl-text code { overflow-wrap: anywhere; }

/* Anschrift wie auf einem Briefkopf */
.rl-anschrift { padding: 16px 20px; font-style: normal; line-height: 1.7; color: var(--text); background: var(--flaeche); box-shadow: inset 3px 0 0 var(--mag); }

/* Kontakt als Liste aus Bezeichnung und Wert */
.rl-kontakt { display: grid; gap: 1px; margin: 0; background: var(--linie); box-shadow: inset 0 0 0 1px var(--linie); }
.rl-kontakt > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 18px; background: var(--grund); }
.rl-kontakt dt { font: 700 12px/1.3 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.rl-kontakt dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 640px) {
  .rl-kontakt > div { grid-template-columns: 120px minmax(0, 1fr); align-items: baseline; gap: 16px; }
}

/* Auf einen Blick: vier Faktenkacheln */
.rl-fakten { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; list-style: none; margin: 1.4em 0 0; padding: 0; }
.rl-fakten > li.rl-fakt { padding: 18px 20px; background: var(--flaeche); box-shadow: inset 0 0 0 1px var(--linie); }
.rl-fakten > li.rl-fakt::before { content: none; }
.rl-fakt__icon { display: block; width: 26px; height: 26px; margin-bottom: 12px; color: var(--rosa); }
.rl-fakt__titel { display: block; font: 700 var(--fs-h4)/1.3 var(--f-ui); color: var(--text); }
.rl-fakt__text { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
@media (min-width: 640px) {
  .rl-fakten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tabellen im Text: Kopf und Zellen dürfen umbrechen */
.rl-text .table-wrap { margin-block: 1.2em; }
.rl-table { font-size: 14.5px; }
.rl-table th { white-space: normal; }
.rl-table td:first-child { color: var(--text); font-weight: 600; }
.rl-table td code { font-size: 13px; }

/* Rechte mit Häkchen statt Raute */
.prose .rl-rechte > li::before { top: .45em; left: 2px; width: 12px; height: 7px; background: none; border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg); }

/* Inhaltsverzeichnis: mobil aufklappbar über dem Text, ab 960 klebend links */
.rl-aside { min-width: 0; }
.rl-aside > .toc { display: none; }
.rl-toc-mobil { margin-bottom: 8px; background: var(--flaeche); box-shadow: inset 0 0 0 1px var(--linie); }
.rl-toc-mobil > summary { position: relative; display: block; padding: 16px 52px 16px 18px; cursor: pointer; list-style: none; font: 700 14px/1.3 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.rl-toc-mobil > summary::-webkit-details-marker { display: none; }
.rl-toc-mobil > summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--rosa); border-bottom: 2px solid var(--rosa); transform: rotate(45deg); }
.rl-toc-mobil[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.rl-toc-mobil > summary:focus-visible { outline-offset: -3px; }
.rl-toc-mobil .toc { padding: 0 10px 12px; }
.rl-toc-mobil .toc__title { display: none; }
@media (min-width: 960px) {
  .rl-layout { align-items: stretch; }
  .rl-toc-mobil { display: none; }
  .rl-aside > .toc { display: block; }
}

/* Impressum: Seitenkopf fluchtet mit der schmalen Textspalte */
.page-hero--schmal > .wrap { max-width: calc(var(--wrap-text) + 2 * var(--gutter)); }

/* 19 Abschnitte: Verzeichnis enger setzen, damit es auf 900 px Höhe ganz sichtbar bleibt */
@media (min-width: 960px) {
  .rl-aside > .toc .toc__link { padding: 5px 10px; font-size: 13.5px; line-height: 1.35; }
}

/* Faktenkacheln mobil kompakter: Symbol links neben Titel und Text */
@media (max-width: 639px) {
  .rl-fakten > li.rl-fakt { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 14px; padding: 16px; }
  .rl-fakt__icon { grid-row: span 2; margin: 0; }
}
