/* Rechts- und Serviceseiten (RECHT-05, RECHT-07): eine Spalte wie auf beddog.de, Inhaltsverzeichnis oben, nummerierte Abschnitte,
   „Stand“ am Ende. Vorlage templates/page-recht.html, Texte data/shop/rechtstexte/*.html. */

.sg-recht-seite .wp-block-post-title {
  margin-bottom: 24px;
}
.sg-recht {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
}
.sg-recht h2 {
  margin: 40px 0 12px;
  font-size: 20px;
  line-height: 1.3;
  scroll-margin-top: 140px;   /* Sprungmarken unter dem klebenden Kopf */
}
.sg-recht p,
.sg-recht ul,
.sg-recht ol {
  margin: 0 0 14px;
}
.sg-recht ul,
.sg-recht ol {
  padding-left: 22px;
}
.sg-recht li {
  margin-bottom: 6px;
}
.sg-recht a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Kurzantwort oben auf den Serviceseiten */
.sg-recht-kurz {
  padding: 16px 20px;
  background: var(--greige);
  border-radius: var(--radius, 6px);
}

/* Inhaltsverzeichnis wie die AGB auf beddog.de: nummerierte Liste oben */
.sg-recht-toc {
  margin: 0 0 32px;
  padding: 20px 24px;
  border: 1px solid var(--linie);
  border-radius: var(--radius, 6px);
  background: var(--weiss);
}
.sg-recht-toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2 260px;
  column-gap: 32px;
}
.sg-recht-toc li {
  break-inside: avoid;
  margin-bottom: 4px;
}
.sg-recht-toc a {
  text-decoration: none;
}
.sg-recht-toc a:hover {
  text-decoration: underline;
}

/* Muster-Widerrufsformular als Kasten zum Ausdrucken */
.sg-recht-kasten {
  padding: 20px 24px;
  border: 1px solid var(--linie-bedienung);
  border-radius: var(--radius, 6px);
  background: var(--weiss);
}
.sg-recht-kasten .sg-recht-linie {
  border-bottom: 1px solid var(--linie-bedienung);
  margin-bottom: 18px;
  height: 22px;
}

/* Herstellerangaben (Produktsicherheit, Shortcode [sogo_hersteller]) */
.sg-recht-dl {
  margin: 0 0 18px;
  padding: 16px 20px;
  border: 1px solid var(--linie);
  border-radius: var(--radius, 6px);
  background: var(--weiss);
}
.sg-recht-dl div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 4px 0; }
.sg-recht-dl dt { font-weight: 600; }
.sg-recht-dl dd { margin: 0; }
.sg-kl { padding: 0 4px; background: var(--warn-flaeche); font-size: 13px; }

.sg-recht-stand {
  margin-top: 48px;
  font-size: 14px;
  color: var(--text-leise);
}

@media print {
  header, footer, .sg-hd, .sg-korb, #BorlabsCookieBox { display: none !important; }
  .sg-recht-seite { padding: 0 !important; }
  .sg-recht a { text-decoration: none; }
}
