/* ============================================================
   Rechtsseiten (Impressum, Datenschutz, AGB)
   Ruhige Lesebühne: Weiß, schmales Textmaß, Petrol nur als Marke
   an den Überschriften. Kein Effektwerk — hier wird gelesen.
   ============================================================ */

.hero.rechtheld {
  padding-bottom: clamp(30px, 5vh, 56px);
}

.rechtheld .wrap {
  position: relative;
  z-index: var(--z-inhalt);
}

.rechtheld h1 {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.rechtheld .hero-lead {
  max-width: 62ch;
  color: var(--ink-soft);
  margin: 0;
}

.recht-stand {
  display: inline-block;
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--ink-leise);
  border-top: 1px solid var(--linie);
  padding-top: 14px;
}

/* ---------- Lesebühne ---------- */

.recht {
  padding: clamp(48px, 7vh, 88px) 0 clamp(72px, 10vh, 120px);
}

.recht-grid {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

/* Ohne Inhaltsverzeichnis (Impressum): eine Spalte. Die .wrap bleibt
   zentriert (1220px), der Textblock darin ist über .recht-text auf 74ch
   begrenzt und sitzt linksbündig zur Held-Überschrift. */
.recht-grid.ohne-toc {
  grid-template-columns: minmax(0, 1fr);
}

/* ---------- Sprungmarken ---------- */

.recht-toc {
  position: sticky;
  top: 104px;
  border-left: 2px solid var(--linie);
  padding-left: 20px;
}

.recht-toc p {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--petrol);
}

.recht-toc a {
  display: block;
  padding: 5px 0;
  font-size: 0.94rem;
  line-height: 1.4;
  color: var(--ink-leise);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.recht-toc a:hover {
  color: var(--petrol);
  transform: translateX(3px);
}

/* ---------- Fließtext ---------- */

.recht-text {
  max-width: 74ch;
}

.recht-text h2 {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 56px 0 16px;
  padding-top: 26px;
  border-top: 1px solid var(--linie);
  scroll-margin-top: 104px;
}

.recht-text > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.recht-text h3 {
  font-family: var(--f-body);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--petrol);
  margin: 32px 0 10px;
  scroll-margin-top: 104px;
}

.recht-text h4 {
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 6px;
}

.recht-text p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.recht-text strong { color: var(--ink); font-weight: 600; }

.recht-text a {
  color: var(--petrol);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.recht-text a:hover { color: var(--petrol-hell); }

.recht-text ul,
.recht-text ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--ink-soft);
}

.recht-text li { margin-bottom: 8px; }

.recht-text address {
  font-style: normal;
  color: var(--ink-soft);
  margin: 0 0 16px;
  line-height: 1.8;
}

/* Nummerierte Vertragsziffern: die Nummer bekommt Petrol und Gewicht */
.recht-text .ziffer {
  display: block;
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.recht-text .ziffer > b {
  color: var(--petrol);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-right: 6px;
}

/* Hervorgehobener Kasten (Widerspruchsrecht, Garantie-Kern) */
.recht-kasten {
  background: var(--bg-tint);
  border: 1px solid var(--linie);
  border-radius: 4px;
  padding: 22px 24px;
  margin: 24px 0 28px;
}

.recht-kasten p:last-child { margin-bottom: 0; }

.recht-kasten.laut p {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ---------- Mobil ---------- */

@media (max-width: 1024px) {
  .recht-grid { grid-template-columns: minmax(0, 1fr); }

  .recht-toc {
    position: static;
    border-left: 0;
    border-bottom: 1px solid var(--linie);
    padding-left: 0;
    padding-bottom: 20px;
    margin-bottom: 8px;
    columns: 2;
    column-gap: 24px;
  }

  .recht-toc p { columns: 1; }
}

@media (max-width: 560px) {
  .recht-toc { columns: 1; }
  .recht-text h2 { margin-top: 44px; }
}
