/* ==========================================================================
   Rechtliches: Impressum, Datenschutz (Bereich „legal“, Schiefergrau)
   Gestaltet die vorhandenen Klassen der Rechtstexte – der Wortlaut bleibt unverändert.
   ========================================================================== */

.rt { position: relative; isolation: isolate; padding: clamp(32px, 5vw, 64px) var(--rf-seitenrand) clamp(64px, 9vw, 112px); background: var(--rf-hg); color: var(--rf-text); font-family: var(--rf-schrift-text); }
.rt::before { content: ""; position: absolute; inset: -84px 0 auto; height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(700px 360px at 20% 0%, color-mix(in oklab, var(--rf-akzent-hell) 16%, transparent), transparent 70%); }
.rt__raster { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.rt__raster--schmal { max-width: 820px; grid-template-columns: minmax(0, 1fr); }

/* Kopf */
.rt__kopf { grid-column: 1 / -1; max-width: 760px; }
.rt__kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 13px/1 var(--rf-schrift-text); letter-spacing: .08em; text-transform: uppercase; color: var(--rf-akzent-hell); }
.rt__kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.rt .page-title { font: 800 clamp(36px, 4.8vw, 56px)/1.04 var(--rf-schrift-titel) !important; letter-spacing: -.04em !important; margin: 16px 0 14px !important; color: var(--rf-text); }
.rt .intro-text { margin: 0; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.65; color: var(--rf-text-2); }
.rt__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 13.5px; color: var(--rf-text-3); }
.rt__meta i { margin-right: 6px; color: var(--rf-akzent-hell); }

/* Inhaltsverzeichnis */
.rt__inhalt { position: sticky; top: calc(var(--header-h, 84px) + 24px); padding: 18px; border-radius: 22px; background: var(--rf-flaeche); border: 1px solid var(--rf-rand); }
.rt__inhalt b { display: block; margin: 0 8px 10px; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--rf-text-3); }
.rt__inhalt ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.rt__inhalt a { display: block; padding: 7px 10px; border-radius: 10px; font-size: 13.5px; line-height: 1.35; color: var(--rf-text-2); text-decoration: none; transition: background .15s, color .15s; }
.rt__inhalt a:hover { background: var(--rf-flaeche-2); color: var(--rf-text); }
.rt__inhalt a.ist-aktiv { background: var(--rf-akzent-weich); color: var(--rf-text); font-weight: 650; }

/* Dokument */
.rt__dokument { min-width: 0; padding: clamp(24px, 4vw, 48px); border-radius: 28px; background: var(--rf-flaeche); border: 1px solid var(--rf-rand); box-shadow: var(--rf-schatten-sm); }
.rt .impressum-section { padding: 0 0 clamp(26px, 3vw, 36px); margin: 0 0 clamp(26px, 3vw, 36px); border-bottom: 1px solid var(--rf-rand); scroll-margin-top: calc(var(--header-h, 84px) + 24px); }
.rt .impressum-section:last-of-type { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.rt h2 { font: 750 clamp(20px, 2.2vw, 24px)/1.25 var(--rf-schrift-titel); letter-spacing: -.02em; margin: 0 0 14px; color: var(--rf-text); }
.rt h3 { font: 700 16.5px/1.35 var(--rf-schrift-titel); margin: 24px 0 8px; color: var(--rf-text); }
.rt p, .rt li { font-size: 15.5px; line-height: 1.7; color: var(--rf-text-2); }
.rt p { margin: 0 0 12px; max-width: 72ch; }
.rt ul { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 4px; }
.rt li::marker { color: var(--rf-akzent-hell); }
.rt strong { color: var(--rf-text); }
.rt a { color: var(--rf-akzent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.rt a:hover { color: var(--rf-akzent-stark); }

/* Hervorhebungen */
.rt .highlight-box { margin: 18px 0 6px; padding: 18px 20px; border-radius: 16px; background: var(--rf-akzent-weich); border-left: 4px solid var(--rf-akzent-hell); }
.rt .highlight-box p:last-child { margin-bottom: 0; }
.rt .highlight-box.warning { background: var(--rf-warnung-weich); border-left-color: var(--rf-warnung); }

/* Tabellen */
.rt .privacy-table-wrapper { margin: 16px 0 20px; overflow-x: auto; border: 1px solid var(--rf-rand); border-radius: 16px; }
.rt .privacy-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.rt .privacy-table th { text-align: left; padding: 12px 14px; background: var(--rf-flaeche-2); color: var(--rf-text); font-weight: 700; font-size: 13px; white-space: nowrap; border-bottom: 1px solid var(--rf-rand); }
.rt .privacy-table td { padding: 12px 14px; vertical-align: top; color: var(--rf-text-2); border-bottom: 1px solid var(--rf-rand); line-height: 1.5; }
.rt .privacy-table tr:last-child td { border-bottom: 0; }
.rt .privacy-table code { font-size: 12.5px; padding: 2px 6px; border-radius: 6px; background: var(--rf-flaeche-2); color: var(--rf-text); }

/* Impressum: Kontakt */
.rt .contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.rt .contact-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--rf-flaeche-2); font-weight: 600; color: var(--rf-text); }
.rt .contact-card i { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 11px; background: var(--rf-akzent-weich); color: var(--rf-akzent-hell); }
.rt .contact-card a { text-decoration: none; }
.rt__anschrift { font-weight: 600; line-height: 1.8 !important; color: var(--rf-text) !important; }

/* Fuß */
.rt__fuss { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rf-rand); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.rt .impressum-footer { margin: 0 !important; font-size: 13px !important; color: var(--rf-text-3) !important; text-align: left !important; }
.rt__drucken { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 11px; border: 1px solid var(--rf-rand-stark); background: transparent; color: var(--rf-text-2); font: 600 13.5px/1 var(--rf-schrift-text); cursor: pointer; }
.rt__drucken:hover { color: var(--rf-text); background: var(--rf-flaeche-2); }

@media (max-width: 900px) {
  .rt__raster { grid-template-columns: minmax(0, 1fr); }
  .rt__inhalt { position: static; }
  .rt__inhalt ol { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media print {
  .site-header, .site-footer, .rt__inhalt, .rt__drucken, .back-to-top, #cookie-banner { display: none !important; }
  .rt, .rt__dokument { padding: 0; border: 0; box-shadow: none; background: #fff; }
  .rt__raster { display: block; }
  body { padding-top: 0 !important; }
}

/* Inhaltsverzeichnis ohne Unterstreichung; lange Titel auf kleinen Bildschirmen trennen */
.rt .rt__inhalt a { text-decoration: none; font-weight: 550; overflow-wrap: normal; }
.rt .page-title { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 480px) { .rt .page-title { font-size: 32px !important; } }
