/* eka protect – gezielte Ergänzung zum bestehenden Theme, 23.10.2026.
   NACH all.css laden. Beide vorhandenen Seitenmarker sind Voraussetzung.
   Keine globalen Theme-Regeln, keine generierten IDs, kein JavaScript. */

/* 1. Bereichsrhythmus: statt 64 / 144 px je Seite. */
body.eka-protect-page .cms-page.eka-protect-page > .cms-sections > .cms-section {
  padding-top: 32px;
  padding-bottom: 32px;
}

@media (min-width: 768px) {
  body.eka-protect-page .cms-page.eka-protect-page > .cms-sections > .cms-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

/* 2. Bestehendes Kartenraster und Bildausschnitte beibehalten.
   Flexible Textkörper gleichen die Download-Buttons je Rasterzeile aus. */
body.eka-protect-page .cms-page.eka-protect-page .cms-element-rhweb-card .card .card-body {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

body.eka-protect-page .cms-page.eka-protect-page .cms-element-rhweb-card .card .card-body .rhweb-heading-cta {
  line-height: 1.3;
  margin-bottom: 12px;
}

body.eka-protect-page .cms-page.eka-protect-page .cms-element-rhweb-card .card .card-body .card-content {
  font-size: 16px;
  line-height: 1.55;
}

/* Theme setzt p separat auf 1.2rem; reine Vererbung am Container reicht nicht. */
body.eka-protect-page .cms-page.eka-protect-page .cms-element-rhweb-card .card-content p {
  font-size: inherit;
  line-height: inherit;
}

body.eka-protect-page .cms-page.eka-protect-page .cms-element-rhweb-card .card-content > p:last-child {
  margin-bottom: 0;
}

body.eka-protect-page .cms-page.eka-protect-page .eka-protect-downloads-cards .card-body .card-content {
  flex-grow: 1;
}

body.eka-protect-page .cms-page.eka-protect-page .eka-protect-downloads-cards .card-body > .btn {
  align-self: flex-start;
  margin-top: 16px;
  max-width: 100%;
  white-space: normal;
}

/* Zwei tatsächlich vorhandene UNO/DUO-Leerabsätze (<p><span><br>).
   Dauerhaft vorzugsweise im CMS entfernen. Ältere Browser ignorieren :has(). */
body.eka-protect-page .cms-page.eka-protect-page .eka-protect-system-variants .card-content > p:has(> span:only-child > br:only-child),
body.eka-protect-page .cms-page.eka-protect-page .eka-protect-problem-content .cms-element-text > p:empty {
  display: none;
}

/* 3. Vorteile: gleiche Icon-Fläche, weniger Abstand zum Titel. */
body.eka-protect-page .cms-page.eka-protect-page .eka-protect-benefits-row .usp-active .container-content.center > i.fa {
  width: 32px;
  font-size: 24px;
  line-height: 32px;
  padding: 0;
  margin: 0 0 12px;
  text-align: center;
}

/* 4. FAQ: 16 px, echte Zeilenhöhe, größere Klickfläche.
   Collapse-Zustand und Pfeildrehung bleiben beim vorhandenen Plugin. */
body.eka-protect-page .cms-page.eka-protect-page .eka-protect-faq .cms-element-rhweb-accordeon .rhweb-accordeon-item-heading > a {
  font-size: 16px;
  line-height: 1.5;
  min-height: 48px;
  padding: 12px 8px;
  color: #132753;
}

body.eka-protect-page .cms-page.eka-protect-page .eka-protect-faq .cms-element-rhweb-accordeon .rhweb-accordeon-item-heading > a:focus-visible {
  outline: 2px solid #1e368b;
  outline-offset: 2px;
}

body.eka-protect-page .cms-page.eka-protect-page .eka-protect-faq .cms-element-rhweb-accordeon .rhweb-accordeon-item-heading > a .rhweb-accordeon-icon {
  flex-shrink: 0;
  margin-left: 16px;
}

body.eka-protect-page .cms-page.eka-protect-page .eka-protect-faq .cms-element-rhweb-accordeon .rhweb-accordeon-item-content {
  font-size: 16px;
  line-height: 1.6;
  padding: 4px 3px 12px;
}

body.eka-protect-page .cms-page.eka-protect-page .eka-protect-faq .rhweb-accordeon-item-content p {
  font-size: inherit;
  line-height: inherit;
}

/* 5. Mobil: Bild und nachfolgender Text mit kontrolliertem Abstand. */
@media (max-width: 767.98px) {
  body.eka-protect-page .cms-page.eka-protect-page .eka-protect-hero-content .cms-image-container.is-cover {
    /* Einzige !important-Regel: übersteuert min-height:420px im Inline-Stil. */
    min-height: 240px !important;
    height: 240px;
  }

  body.eka-protect-page .cms-page.eka-protect-page :is(.eka-protect-hero-content, .eka-protect-problem-content, .eka-protect-system-executions, .eka-protect-video-content) .cms-block-container-row {
    row-gap: 20px;
  }

  body.eka-protect-page .cms-page.eka-protect-page .eka-protect-system-variants .rhweb-card-img {
    max-height: 220px;
  }

  body.eka-protect-page .cms-page.eka-protect-page .eka-protect-downloads-cards .rhweb-card-img {
    max-height: 260px;
  }
}
