/* ==========================================================================
   recht.css — Impressum, Datenschutz, AGB, Rücktrittsrecht im neuen Design (Redesign C5, 08.11.2026)

   Ersetzt legal.css. Kopf mit Reitern (teil-recht-kopf.php), links ein mitlaufendes Inhaltsverzeichnis,
   rechts der Text in Lesebreite. Die Klassen im Rechtstext (.datalist, .legal__marke, .legal__org,
   .legal__stand, .legal__hinweis, .legal__anschrift, .note, .widerruf-bogen) sind beim Umstieg gleich
   geblieben, damit der Text selbst unverändert bleiben konnte.
   ========================================================================== */

/* ---------- Kopf: Reiter zwischen den vier Seiten ---------- */
.seitenkopf--recht h1 { max-width: 24ch; }
.recht-reiter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.9rem; }
.recht-reiter a { padding: .42rem .95rem; border: 1px solid rgba(244,243,239,.28); border-radius: 999px; font-size: .9rem; font-weight: 600; color: rgba(244,243,239,.86); }
.recht-reiter a:hover { border-color: var(--kupfer); color: #fff; }
.recht-reiter a[aria-current] { background: var(--kupfer); border-color: var(--kupfer); color: var(--tinte); }

/* ---------- Raster: Inhaltsverzeichnis links, Text rechts ---------- */
.recht-raster { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; align-items: start; padding-top: 64px; padding-bottom: 100px; }
.recht-raster--schmal { grid-template-columns: minmax(0, 1fr); }
.recht-raster + .schluss { margin-top: 0; }

.inhalt { position: sticky; top: 108px; max-height: calc(100vh - 128px); overflow: auto; padding: 20px 20px 14px; background: var(--papier); border: 1px solid var(--linie); border-radius: 10px; }
.inhalt .etikett { display: block; margin-bottom: .6rem; }
.inhalt ol { list-style: none; margin: 0; padding: 0; counter-reset: inhalt; }
.inhalt li { counter-increment: inhalt; }
.inhalt a { display: grid; grid-template-columns: 1.9rem minmax(0, 1fr); padding: .3rem 0; font-size: .88rem; line-height: 1.4; color: var(--grau); }
.inhalt a::before { content: counter(inhalt, decimal-leading-zero); padding-top: .14rem; font-family: var(--etikett); font-weight: 600; font-size: .7rem; letter-spacing: .06em; color: var(--kupfer-dunkel); }
.inhalt a:hover { color: var(--tinte); }

/* ---------- Text ---------- */
.legal { max-width: 46rem; line-height: 1.75; }
.legal > section { padding-bottom: 40px; scroll-margin-top: 110px; }
.legal > section + section { padding-top: 40px; border-top: 1px solid var(--linie); }
.legal > section:last-child { padding-bottom: 0; }
.legal h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.legal h3 { font-size: 1.12rem; margin: 1.7rem 0 .6rem; }
.legal p, .legal ul, .legal ol, .legal dl, .legal address { margin: 0 0 1rem; }
.legal > section > :last-child { margin-bottom: 0; }
.legal strong { font-weight: 600; color: var(--tinte); }
.legal ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.legal ul li { position: relative; padding-left: 22px; }
.legal ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--kupfer); }
.legal ol { padding-left: 1.4rem; }
.legal a:not([class]) { color: var(--kupfer-dunkel); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(138,90,43,.4); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal a:not([class]):hover { color: var(--tinte); }

/* Datenblock (Firmendaten, Kontakt, Behörde) */
.datalist { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .55rem 1.6rem; padding: 18px 22px; background: var(--papier); border: 1px solid var(--linie); border-radius: 10px; font-size: .96rem; line-height: 1.55; }
.datalist dt { padding-top: .18rem; font-family: var(--etikett); font-weight: 600; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--kupfer-dunkel); white-space: nowrap; }
.datalist dd { margin: 0; }

/* Marke und Rechtsträger, Name über dem Datenblock, Anschrift, Hinweise */
.legal__marke, .legal__anschrift { padding: 16px 20px; background: var(--papier); border-left: 3px solid var(--kupfer); border-radius: 0 10px 10px 0; }
.legal__anschrift { font-style: normal; }
.legal p.legal__org { margin: 1.6rem 0 .3rem; font-weight: 700; font-size: 1.1rem; color: var(--tinte); }
.legal__hinweis, .legal .note { padding: 14px 18px; background: var(--papier); border: 1px solid var(--linie); border-radius: 10px; color: var(--grau); }
.legal p.legal__stand { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--linie); font-size: .88rem; color: var(--grau); }

/* Muster-Rücktrittsformular: Blatt zum Ausdrucken */
.widerruf-bogen { margin: 1.4rem 0; padding: 28px 30px 22px; background: #fff; border: 1px solid var(--linie); border-radius: 10px; box-shadow: 0 24px 50px -36px rgba(11,10,31,.45); }
.widerruf-bogen p { margin: 0 0 .7rem; }
.widerruf-bogen .widerruf-bogen__an { margin-bottom: 1.3rem; line-height: 1.6; }
.widerruf-bogen .widerruf-bogen__linie { height: 2rem; margin: 0 0 .5rem; border-bottom: 1px dotted #9C9789; }
.widerruf-bogen .widerruf-bogen__stern { margin: 1.2rem 0 0; font-size: .88rem; color: var(--grau); }

@media (max-width: 1060px) {
  .recht-raster { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 860px) {
  .recht-reiter { margin-top: 1.4rem; gap: 8px; }
  .recht-raster { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 32px; padding-bottom: 64px; }
  .inhalt { position: static; max-height: none; overflow: visible; }
  .inhalt ol { columns: 2; column-gap: 24px; }
  .inhalt li { break-inside: avoid; }
  .legal > section { padding-bottom: 32px; }
  .legal > section + section { padding-top: 32px; }
  .legal h2 { font-size: 1.3rem; }
  .widerruf-bogen { padding: 22px 18px 16px; }
}
@media (max-width: 560px) {
  .inhalt ol { columns: 1; }
  .datalist { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 14px 16px; }
  .datalist dd { margin-bottom: .6rem; }
  .datalist dd:last-child { margin-bottom: 0; }
}

/* Drucken (Rücktrittsformular, Impressum): nur Titel und Text, schwarz auf weiß */
@media print {
  body { background: #fff; color: #000; font-size: 11pt; padding: 0; }
  .kopfleiste, .seitenfuss, .leiste-mobil, .sprung, .recht-reiter, .inhalt, .pfad, .schluss { display: none !important; }
  .seitenkopf { background: #fff; color: #000; }
  .seitenkopf::before { display: none; }
  .seitenkopf .huelle { padding: 0 0 12pt; }
  .seitenkopf h1, .seitenkopf .lead { color: #000; max-width: none; }
  .seitenkopf h1 { font-size: 20pt; margin: 0 0 6pt; }
  .recht-raster { display: block; padding: 0; }
  .legal { max-width: none; }
  .legal a:not([class]) { color: #000; }
  .widerruf-bogen { box-shadow: none; border-color: #999; break-inside: avoid; }
}
