/* ==========================================================================
   MARTINO — Rechtstexte
   Impressum, AGB, Widerrufsbelehrung, Datenschutz, Gewährleistung. Lesetext
   in einer Spalte; die gesetzlichen Muster stehen in einem eigenen Rahmen,
   damit sichtbar bleibt, was Wortlaut des Gesetzes ist und was von uns.
   ========================================================================== */

.legal { max-width: 760px; margin-inline: auto; }

/* --- Umschalter zwischen den Rechtsseiten ------------------------------- */
.legalnav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0 0 38px;
  font-size: 12.5px;
}
.legalnav a {
  color: var(--ink-2);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.legalnav a:hover { color: var(--ink); border-bottom-color: var(--ink-3); }
.legalnav a[aria-current='page'] { color: var(--ink); border-bottom-color: var(--gold); }

/* --- Lesetext ------------------------------------------------------------ */
.prose { font-size: 14.5px; line-height: 1.72; color: var(--ink-2); }
.prose h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -.01em;
  line-height: 1.25;
  color: var(--ink);
  margin: 46px 0 12px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 26px 0 6px;
}
.prose p { margin: 0 0 14px; max-width: 70ch; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 20px; max-width: 68ch; }
.prose li { margin: 0 0 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a {
  color: var(--nero);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:hover { color: var(--ink); }

.prose .stand { font-size: 12px; color: var(--ink-3); margin-top: 48px; }

/* Angaben wie im Impressum: Bezeichnung links, Wert rechts. */
.facts { margin: 0 0 18px; display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 7px 22px; }
.facts dt { color: var(--ink-3); font-size: 12.5px; padding-top: 2px; }
.facts dd { margin: 0; color: var(--ink); }

/* Tabellen, etwa die Versandkosten in den AGB. */
.prose table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 13.5px; }
.prose th, .prose td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.prose td { color: var(--ink); font-variant-numeric: tabular-nums; }
.tablewrap { overflow-x: auto; }

/* --- Gesetzliches Muster ------------------------------------------------- */
.muster {
  border: 1px solid var(--line-2);
  background: var(--paper-2);
  padding: 30px 34px 22px;
  margin: 18px 0 26px;
  color: var(--ink);
}
.muster__label {
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 18px;
}
.muster h3 { font-size: 15px; margin: 22px 0 8px; }
.muster h3:first-of-type { margin-top: 0; }
.muster p { color: var(--ink); }

/* Das Formular: Striche statt Aufzählungspunkte, wie im Anhang. */
.formular { list-style: none; padding: 0; margin: 0 0 14px; }
.formular li { padding-left: 18px; position: relative; margin-bottom: 10px; }
.formular li::before { content: '–'; position: absolute; left: 0; }
.formular__line {
  display: block;
  border-bottom: 1px solid var(--ink-3);
  height: 26px;
  margin-top: 4px;
}

.legal__acts { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 10px; }

/* --- Schmale Bildschirme -------------------------------------------------- */
@media (max-width: 620px) {
  .facts { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .facts dd { margin-bottom: 10px; }
  .muster { padding: 22px 18px 14px; }
  .prose h2 { font-size: 21px; margin-top: 38px; }
}

/* --- Drucken --------------------------------------------------------------
   Gedruckt wird der Text ohne Kopf und Fuß. Der Knopf „Formular drucken"
   setzt vorher body.print-form — dann nur das Muster-Widerrufsformular. */
@media print {
  .top, .foot, .legalnav, .legal__acts, .phead__note, .toast { display: none !important; }
  .wrap { padding: 0; }
  .muster { border-color: #999; background: none; }
  body.print-form .legal > :not(.prose),
  body.print-form .prose > :not(.print-target),
  body.print-form .print-target > :not(.muster) { display: none !important; }
}
