/* Optisch vereinheitlichte Abstände in den ausführlichen Rechtsinformationen.
   Ziel: sichtbarer Abstand vor und nach jeder Haupt-/Teilüberschrift wird ausschließlich
   durch diese Regeln bestimmt; historische BR-Leerzeilen werden neutralisiert. */
:root { --legacy-heading-gap: 1.12rem; }

.legacy-content .legacy-section-heading {
  display: flex !important;
  margin: 1.22rem 0 var(--legacy-heading-gap) !important;
  padding: 0 !important;
}

.legacy-content .SchwarzSehrGross.content-subheading {
  display: block !important;
  margin: var(--legacy-heading-gap) 0 !important;
  padding: 0 !important;
  color: var(--navy-deep) !important;
  background: transparent !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 1.34rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: normal !important;
  text-indent: 0 !important;
}

/* Keine historischen Leerzeilen innerhalb einer Überschrift. */
.legacy-content .content-subheading > br { display: none !important; }

/* BRs unmittelbar VOR einer Teilüberschrift entfernen – auch bei zwei Alt-Leerzeilen. */
.legacy-content br:has(+ .content-subheading),
.legacy-content br:has(+ br + .content-subheading),
.legacy-content br:has(+ span > .content-subheading),
.legacy-content br:has(+ br + span > .content-subheading) {
  display: none !important;
}

/* BRs unmittelbar NACH einer Überschrift entfernen. */
.legacy-content .content-subheading + br,
.legacy-content .content-subheading + br + br,
.legacy-content .legacy-section-heading + br,
.legacy-content .legacy-section-heading + br + br {
  display: none !important;
}

/* Häufiges Alt-Muster: Überschrift in eigenem Span, danach neuer Span mit 1–2 BRs. */
.legacy-content .Zinn112:has(> .content-subheading) + .Zinn112 > br:nth-of-type(-n+2),
.legacy-content .Zinn112:has(.content-subheading) + .Zinn112 > br:nth-of-type(-n+2),
.legacy-content .content-subheading + .Zinn112 > br:nth-of-type(-n+2),
.legacy-content .content-subheading + .backgraulite > br:nth-of-type(-n+2),
.legacy-content .content-subheading + .Zinn1 > br:nth-of-type(-n+2),
.legacy-content p:has(> .content-subheading) + span .Zinn112 > br:nth-of-type(-n+2) {
  display: none !important;
}

/* Alt-Container, die ausschließlich als Abstandshalter um Überschriften dienten. */
.legacy-content .Zinn16:has(.content-subheading) > br,
.legacy-content .Zinn16:has(.content-subheading) .Zinn1121 > br,
.legacy-content .Zinn1121:has(> .content-subheading) > br,
.legacy-content p:has(> .content-subheading) {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Text-/Tabellenzeilen bündig halten. */
.legacy-content .legacy-bullet-line {
  display: block;
  margin: 0;
  padding: 0;
  text-indent: 0;
}

@media (min-width: 900px) {
  .legacy-content .legacy-bullet-line--desktop-one-line { white-space: nowrap; }
}

@media (max-width: 720px) {
  :root { --legacy-heading-gap: .92rem; }
  .legacy-content .SchwarzSehrGross.content-subheading { font-size: 1.18rem !important; }
}

/* 2026-08-09: Finale visuelle Abstandslogik für große Rubriküberschriften mit Icon.
   - erste Rubrik „Reisemängel“ beginnt kompakt
   - vor allen weiteren großen Rubriken etwa eine normale Textzeile Abstand
   - nach jeder großen Rubrik etwa eine normale Textzeile Abstand */
.legacy-content .legacy-section-heading {
  margin-top: 2.48rem !important;
  margin-bottom: 1.22rem !important;
}
.legacy-content .legacy-section-heading--first {
  margin-top: 0 !important;
}
@media (max-width: 720px) {
  .legacy-content .legacy-section-heading {
    margin-top: 2.23rem !important;
    margin-bottom: 1.00rem !important;
  }
  .legacy-content .legacy-section-heading--first {
    margin-top: 0 !important;
  }
}

/* 2026-08-09: Nachjustierung auf Nutzerwunsch.
   Vor allen späteren großen Rubriküberschriften ca. 1 cm mehr Abstand,
   vor der ersten Rubrik „Reisemängel“ ca. 1 cm weniger. */
.legacy-content .legacy-section-heading:not(.legacy-section-heading--first) {
  margin-top: calc(2.48rem + 1cm) !important;
}
.legacy-content .legacy-section-heading--first {
  margin-top: 0 !important;
}
@media (max-width: 720px) {
  .legacy-content .legacy-section-heading:not(.legacy-section-heading--first) {
    margin-top: calc(2.23rem + 1cm) !important;
  }
  .legacy-content .legacy-section-heading--first {
    margin-top: 0 !important;
  }
}
