/* Welt Recht: ruhiges Dokument. Gilt für impressum und datenschutz. Präfix rc-. */
body.p-impressum, body.p-datenschutz, body.p-agb { background: var(--k-bg); }
body.k .rc-seite { padding-bottom: clamp(72px, 9vw, 128px); }

body.k .rc-kopf { background: var(--k-alt); border-bottom: 1px solid var(--k-line); padding: clamp(44px, 6vw, 80px) 0 clamp(32px, 4vw, 52px); }
body.k .rc-kopf h1 { font-size: clamp(34px, 4.4vw, 52px); max-width: 20ch; }

.rc-raster { display: grid; grid-template-columns: 264px minmax(0, 740px); gap: clamp(40px, 6vw, 96px); justify-content: center; padding-top: clamp(40px, 5vw, 64px); align-items: start; }

/* Inhaltsverzeichnis */
.rc-seite-toc { position: sticky; top: 92px; align-self: start; }
.rc-toc ol, .rc-tocm ol { list-style: none; margin: 0; padding: 0; }
.rc-toc { border-top: 1px solid var(--k-line2); }
.rc-toc a { display: block; padding: 11px 0; border-bottom: 1px solid var(--k-line); color: var(--k-text); text-decoration: none; font-size: 15px; line-height: 1.4; transition: color .2s, padding-left .3s var(--ease); }
.rc-toc a:hover { color: var(--k-ink); }
@media (hover: hover) and (pointer: fine) { .rc-toc a:hover { padding-left: 6px; } }
.rc-toc a:focus-visible, .rc-tocm a:focus-visible, .rc-tocm summary:focus-visible { outline: 2px solid var(--k-ink); outline-offset: 2px; border-radius: 4px; }
.rc-tocm { display: none; }

/* Dokument */
.rc-dok { min-width: 0; }
.rc-sek { padding: 36px 0 8px; border-top: 1px solid var(--k-line2); }
.rc-sek:first-child { padding-top: 0; border-top: 0; }
.rc-sek + .rc-sek { margin-top: 28px; }
body.k .rc-dok h2 { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.25; letter-spacing: -.02em; margin: 0 0 18px; scroll-margin-top: 96px; }
body.k .rc-dok h3 { font-size: 18px; margin: 28px 0 10px; }
.rc-dok p { margin: 0 0 16px; max-width: 70ch; color: var(--k-text); }
.rc-dok p.mut { color: var(--k-mut); font-size: 15px; }
.rc-dok ul { margin: 0 0 18px; padding: 0 0 0 1.2em; max-width: 70ch; }
.rc-dok li { margin: 0 0 8px; padding-left: 4px; }
.rc-dok li::marker { color: var(--k-gold); }
.rc-dok a { text-underline-offset: 3px; }
.rc-dok a:focus-visible { outline: 2px solid var(--k-ink); outline-offset: 2px; border-radius: 3px; }

/* Anbieterdaten als Tabelle */
.rc-tab { width: 100%; border-collapse: collapse; margin: 0 0 18px; border: 1px solid var(--k-line2); border-radius: 12px; overflow: hidden; background: #fff; font-variant-numeric: tabular-nums; }
.rc-tab tr + tr > * { border-top: 1px solid var(--k-line); }
.rc-tab th, .rc-tab td { padding: 14px 20px; text-align: left; vertical-align: top; font-size: 16px; line-height: 1.55; }
.rc-tab th { width: 34%; background: var(--k-alt); color: var(--k-ink); font-weight: 600; }
.rc-tab td { color: var(--k-text); overflow-wrap: anywhere; }

::selection { background: #efdca4; color: var(--k-ink); }

@media (max-width: 1020px) {
  .rc-raster { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; }
  .rc-seite-toc { position: static; }
  .rc-toc { display: none; }
  .rc-tocm { display: block; border: 1px solid var(--k-line2); border-radius: 12px; background: #fff; }
  .rc-tocm summary { list-style: none; cursor: pointer; min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font: 600 16px/1.3 var(--sans); color: var(--k-ink); }
  .rc-tocm summary::-webkit-details-marker { display: none; }
  .rc-tocm summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--k-ink); border-bottom: 2px solid var(--k-ink); transform: translateY(-3px) rotate(45deg); transition: transform .3s var(--ease); }
  .rc-tocm[open] summary::after { transform: translateY(2px) rotate(-135deg); }
  .rc-tocm ol { border-top: 1px solid var(--k-line); padding: 4px 18px 8px; }
  .rc-tocm a { display: flex; align-items: center; min-height: 46px; color: var(--k-text); text-decoration: none; font-size: 16px; border-bottom: 1px solid var(--k-line); }
  .rc-tocm li:last-child a { border-bottom: 0; }
}
@media (max-width: 640px) {
  .rc-tab th, .rc-tab td { display: block; width: auto; }
  .rc-tab th { padding: 12px 16px 2px; background: #fff; font-size: 14px; color: var(--k-mut); font-weight: 500; }
  .rc-tab td { padding: 0 16px 14px; }
  .rc-tab tr + tr > th { border-top: 1px solid var(--k-line); }
  .rc-tab tr + tr > td { border-top: 0; }
  .rc-dok p, .rc-dok li { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .rc-toc a, .rc-tocm summary::after { transition: none; } }

/* Druck: nur das Dokument */
@media print {
  .kh, .kfoot, .skip, .menu-ov, .rc-seite-toc { display: none !important; }
  html:has(body.k), body.k { background: #fff !important; }
  body.k { font-size: 11pt; line-height: 1.5; color: #000; }
  .rc-raster { display: block; padding: 0; }
  .rc-kopf { background: none; border: 0; padding: 0 0 12pt; }
  body.k .rc-kopf h1 { font-size: 22pt; }
  .rc-sek { break-inside: auto; padding-top: 14pt; }
  .rc-dok h2, .rc-dok h3 { break-after: avoid; }
  .rc-tab { border-color: #000; break-inside: avoid; }
  .rc-tab th { background: none; }
  .rc-dok a { color: #000; text-decoration: none; }
  .rc-dok a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}

@media (max-width: 520px) { body.k .rc-kopf h1 { font-size: 29px; } }

/* Mobil-Feinschliff (Runde 1): nur Darstellung */
.rc-dok p, .rc-dok li { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 8 4 4; overflow-wrap: break-word; text-wrap: pretty; }
.rc-dok h2, .rc-dok h3 { hyphens: manual; text-wrap: balance; }
.rc-dok a[href^="mailto"] { overflow-wrap: anywhere; hyphens: none; }
.rc-dok li > a, .rc-dok p > a { padding-block: 2px; }
.rc-sek:target > h2 { animation: rc-ziel 1.6s ease-out 1; }
@keyframes rc-ziel { 0%, 40% { box-shadow: inset 0 -2px 0 var(--k-gold); } 100% { box-shadow: inset 0 -2px 0 transparent; } }
.rc-tocm a:active, .rc-tocm summary:active { background: var(--k-alt); }
.rc-tocm summary { border-radius: 12px; }
@media (prefers-reduced-motion: no-preference) { html:has(body.p-impressum), html:has(body.p-datenschutz), html:has(body.p-agb) { scroll-behavior: smooth; } }
@media (max-width: 1020px) { .rc-tocm { position: sticky; top: 72px; z-index: 4; box-shadow: 0 8px 24px -16px rgba(13, 21, 18, .3); } .rc-tocm[open] ol { max-height: calc(100dvh - 160px); overflow-y: auto; } }
@media (max-width: 640px) { .rc-sek { padding-top: 28px; } .rc-sek + .rc-sek { margin-top: 20px; } .rc-dok ul { padding-left: 1.1em; } .rc-dok p { max-width: none; } }
@media (min-width: 641px) and (max-width: 1020px) { .rc-raster { grid-template-columns: minmax(0, 700px); } }
@media (prefers-reduced-motion: reduce) { .rc-sek:target > h2 { animation: none; } }
@media print { .rc-tocm { display: none !important; } .rc-dok p, .rc-dok li { hyphens: manual; } }
