/* Kapitalanlage Check – einheitliches Abstands-System, 01.11.2026.
   Nur AUSSENABSTAENDE grosser Bereiche und die Abstaende zwischen zusammengehoerigen
   Text-/Inhaltsbloecken. Typografie, Farben, Breiten, Rechnerlogik, Bilder bleiben.
   Desktop: 19px unten + 19px oben = insgesamt 38px (~1 cm).
   Mobil: 14px + 14px = 28px. */

:root{
  --kac-gap-section-half:19px;
  --kac-gap-section-full:38px;
  --kac-gap-content:16px;
}

/* ===== Startseite ===== */
html body:not(.kac-fachseite) main#kac-home-main > section.section{
  padding-top:var(--kac-gap-section-half)!important;
  padding-bottom:var(--kac-gap-section-half)!important;
  margin-top:0!important;
  margin-bottom:0!important;
}
/* Nach dem grossen Startbild liegt nur EIN klarer weisser Abstand. */
html body:not(.kac-fachseite) main#kac-home-main > section#steuern.section{
  padding-top:var(--kac-gap-section-full)!important;
}
/* Zwischen Kopftext und zugehoerigem Karten-/Rechnerblock 16–19px. */
html body:not(.kac-fachseite) main#kac-home-main > section.section > .container > .intro{
  margin-top:0!important;
  margin-bottom:var(--kac-gap-section-half)!important;
}
/* Zahlenleiste -> Portraet/Vita: weder gestaucht noch doppelter Abstand. */
html body:not(.kac-fachseite) main#kac-home-main > section#person .kac-about-highlights{
  margin-bottom:var(--kac-gap-section-half)!important;
}
/* Uebergang von der Objekt-Einfuehrung zu den beiden Bildwelten. */
html body:not(.kac-fachseite) main#kac-home-main > section#immobilien.section.objects > .container > .intro{
  margin-bottom:0!important;
}
html body:not(.kac-fachseite) main#kac-home-main > section#kac-bildwelten.kac-approved-cards{
  margin:0!important;
  padding-top:var(--kac-gap-section-half)!important;
  padding-bottom:var(--kac-gap-section-half)!important;
}
/* Einleitung und Schaltflaechen sind zusammengehoerige kleine Bloecke. */
html body:not(.kac-fachseite) main#kac-home-main > section.section .kac-conversion-cta{
  margin-top:var(--kac-gap-section-half)!important;
}

/* ===== Denkmal- und Senioren-Unterseiten (im eingebetteten Dokument) ===== */
html body main#inhalt > section.study-section{
  padding-top:var(--kac-gap-section-half)!important;
  padding-bottom:var(--kac-gap-section-half)!important;
  margin-top:0!important;
  margin-bottom:0!important;
}
html body main#inhalt > section.study-hero + section.study-section{
  padding-top:var(--kac-gap-section-full)!important;
}
html body main#inhalt > section.study-end{
  padding-top:var(--kac-gap-section-half)!important;
  padding-bottom:var(--kac-gap-section-half)!important;
  margin-top:0!important;
  margin-bottom:0!important;
}
/* Inhaltliche Gruppierungen, nicht innere Karten-Paddings. */
html body main#inhalt .study-section .study-subtitle{
  margin-bottom:var(--kac-gap-content)!important;
}
html body main#inhalt .study-section .study-grid{
  gap:var(--kac-gap-section-half)!important;
}
html body main#inhalt .study-section .study-split{
  gap:var(--kac-gap-section-half)!important;
}
html body main#inhalt .study-section .study-sales-bridge{
  margin-top:var(--kac-gap-section-half)!important;
  padding-top:var(--kac-gap-content)!important;
  gap:var(--kac-gap-content)!important;
}

/* ===== Anlagevergleich ===== */
html body main#ac-compare > section.ac-hero{
  padding-top:var(--kac-gap-section-full)!important;
  padding-bottom:var(--kac-gap-section-half)!important;
  margin:0!important;
}
html body main#ac-compare > section.ac-section{
  padding-top:var(--kac-gap-section-half)!important;
  padding-bottom:var(--kac-gap-section-half)!important;
  margin-top:0!important;
  margin-bottom:0!important;
}
html body main#ac-compare > section.ac-result-summary{
  margin-top:var(--kac-gap-section-half)!important;
  margin-bottom:var(--kac-gap-section-half)!important;
}
html body main#ac-compare > section.ac-more,
html body main#ac-compare > section.ac-cta{
  padding-top:var(--kac-gap-section-half)!important;
  padding-bottom:var(--kac-gap-section-half)!important;
  margin-top:0!important;
  margin-bottom:0!important;
}
/* Keine doppelten vertikalen Aussenraender an der Ergebniserklaerung. */
html body main#ac-compare > section.ac-result-summary + section.ac-more{
  padding-top:0!important;
}

/* ===== Impressum / Datenschutz ===== */
html body > main:not([id]){
  padding-top:var(--kac-gap-section-full)!important;
  padding-bottom:var(--kac-gap-section-full)!important;
}
html body > main:not([id]) > h1{
  margin-bottom:var(--kac-gap-section-half)!important;
}
html body > main:not([id]) > h2{
  margin-top:var(--kac-gap-section-full)!important;
  margin-bottom:12px!important;
}

/* ===== Smartphones/Tablets: etwas kompakter, aber identischer Rhythmus ===== */
@media (max-width:900px){
  :root{
    --kac-gap-section-half:14px;
    --kac-gap-section-full:28px;
    --kac-gap-content:14px;
  }
  html body:not(.kac-fachseite) main#kac-home-main > section#steuern.section{
    padding-top:var(--kac-gap-section-full)!important;
  }
  html body:not(.kac-fachseite) main#kac-home-main > section#person .kac-about-highlights{
    margin-bottom:var(--kac-gap-section-half)!important;
  }
  html body main#inhalt > section.study-hero + section.study-section{
    padding-top:var(--kac-gap-section-full)!important;
  }
}
