/* Impressum, Datenschutz, AGB, Widerruf.
 *
 * Rechtstexte sind Fließtext zum Nachschlagen, kein Marketing: eine Spalte,
 * ruhige Typografie, sichtbare Gliederung. Sie erben Kopf und Fuß von
 * landing.css, damit ein Besucher nicht das Gefühl bekommt, die Seite verlassen
 * zu haben – und damit eine Änderung an Marke oder Navigation an einer Stelle
 * passiert, nicht an fünf.
 *
 * Jede Stelle, an der noch echte Angaben des Betreibers fehlen, ist im HTML als
 * <span class="tbd"> markiert und wird hier auffällig gezeichnet. Eine
 * Platzhalterangabe, die aussieht wie eine Angabe, ist schlimmer als eine
 * fehlende: sie fällt niemandem mehr auf.
 */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 28px 96px;
}

.legal-page .eyebrow {
  margin-bottom: 14px;
}

.legal-page h1 {
  font-size: clamp(34px, 6vw, 52px);
  letter-spacing: -1.6px;
  line-height: 1.05;
  margin: 0 0 18px;
}

.legal-lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 10px;
}

.legal-updated {
  display: inline-block;
  margin-bottom: 44px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef0e6;
  color: var(--muted);
  font-size: 12px;
}

.legal-page h2 {
  font-size: 23px;
  letter-spacing: -0.6px;
  line-height: 1.25;
  margin: 46px 0 14px;
  padding-top: 26px;
  border-top: 1px solid #e0e4d6;
}

.legal-page h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.legal-page h3 {
  font-size: 16px;
  margin: 28px 0 8px;
}

.legal-page p,
.legal-page li {
  font-size: 15px;
  line-height: 1.72;
}

.legal-page p {
  margin: 0 0 14px;
}

.legal-page ul,
.legal-page ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-page li {
  margin-bottom: 7px;
}

.legal-page li::marker {
  color: var(--accent-ink);
}

.legal-page a {
  color: var(--accent-ink);
  text-underline-offset: 3px;
}

.legal-page address {
  font-style: normal;
  line-height: 1.72;
}

/* Ein Kasten für das, was man beim Lesen wirklich braucht: die Anschrift, die
   Kontaktadresse, das Muster-Widerrufsformular zum Abschreiben. */
.legal-box {
  margin: 0 0 20px;
  padding: 22px 24px;
  border: 1px solid #dfe3d5;
  border-radius: 16px;
  background: #fbfcf7;
}

.legal-box > :last-child {
  margin-bottom: 0;
}

.legal-box h3 {
  margin-top: 0;
}

/* Hinweis, der beim Überfliegen nicht untergehen darf. */
.legal-callout {
  margin: 0 0 22px;
  padding: 18px 22px;
  border-left: 4px solid var(--accent-ink);
  border-radius: 0 12px 12px 0;
  background: #f8ece5;
}

.legal-callout > :last-child {
  margin-bottom: 0;
}

/* Noch einzutragende Angaben. Bewusst laut. */
.tbd {
  padding: 1px 7px;
  border-radius: 5px;
  background: #ffe08a;
  box-shadow: inset 0 0 0 1px #d8ab1f;
  color: #4a3a05;
  font-size: .93em;
  font-weight: 600;
  white-space: nowrap;
}

.legal-toc {
  margin: 0 0 44px;
  padding: 20px 24px;
  border-radius: 16px;
  background: #eef0e6;
}

.legal-toc p {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-toc ol {
  margin: 0;
  padding-left: 20px;
}

.legal-toc li {
  margin-bottom: 4px;
  font-size: 14px;
}

/* Die Querverweise am Seitenende: von jedem Rechtstext zu den anderen. */
.legal-siblings {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid #e0e4d6;
  font-size: 14px;
}

.legal-siblings span {
  color: var(--muted);
}

.legal-page table {
  width: 100%;
  margin: 0 0 18px;
  border-collapse: collapse;
  font-size: 14px;
}

.legal-page th,
.legal-page td {
  padding: 11px 12px;
  border-bottom: 1px solid #e0e4d6;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.legal-page th {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Breite Tabellen rollen in ihrem eigenen Kasten, nie die ganze Seite. */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 18px;
}

.table-scroll table {
  min-width: 460px;
  margin: 0;
}

@media (max-width: 620px) {
  .legal-page {
    padding: 48px 20px 72px;
  }

  .legal-page h2 {
    margin-top: 36px;
  }
}


/* ===== Kündigungsformular (§ 312k BGB) =====
   Schlicht und ohne Hürden: Wer hier ist, will kündigen, nicht überzeugt
   werden. Jede Reibung an dieser Stelle wäre auch rechtlich angreifbar. */
.kuend-block {
  margin: 0 0 22px;
  padding: 18px 20px;
  border: 1px solid #dfe3d5;
  border-radius: 14px;
  background: #fbfcf7;
}

.kuend-block legend {
  padding: 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.kuend-wahl {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  line-height: 1.5;
}

.kuend-wahl input {
  margin-top: 4px;
  flex-shrink: 0;
}

.kuend-wahl small {
  color: var(--muted);
}

.legal-page .field {
  margin-bottom: 18px;
}

.legal-page .field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 14px;
}

.legal-page .field input,
.legal-page .field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #cdd4c4;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 15px;
}

.legal-page .field input:focus-visible,
.legal-page .field textarea:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 1px;
}

.feld-hinweis {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.legal-page .hidden { display: none !important; }

.legal-page .auth-error {
  margin: 0 0 16px;
  padding: 12px 15px;
  border-radius: 10px;
  background: #f8e0dc;
  color: #7a2418;
  font-size: 14px;
}
