/*
 * Heartlines Design & Inhalte 1.3.4: uniform reader headings, hero trust
 * labels and video completion actions. Presentation only.
 */

/* A secondary video action previously inherited a separate 220px/56px rule.
   Match the review action as well as both follow-up actions explicitly. */
html body.hldesign-ready.hldesign-safe #content .hlvideo-card :is(.hlvideo-review-cta, .hlvideo-reentry) .hlvideo-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  flex: 0 1 180px !important;
  width: 180px !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 48px !important;
  height: auto !important;
  padding: 12px 18px !important;
  border-width: 1px;
  border-style: solid;
  border-color: transparent;
  font-size: var(--hl78-button-font, 16px) !important;
  line-height: 1.3 !important;
  text-align: center !important;
  white-space: normal !important;
}
html body.hldesign-ready.hldesign-safe #content .hlvideo-card .hlvideo-reentry .hlvideo-button-light {
  border-color: #e8cfd2;
}

.hldesign-reader-all-short { display: none; }

@media (max-width: 760px) {
  /* One component, one title size and one CTA size for all four home groups. */
  html body.hldesign-ready.hldesign-safe.heartlines-home #content :is(.heartlines-exclusive-group, .heartlines-top-group, .heartlines-new-group, .heartlines-other-group) .hl14-reader-section-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 8px !important;
  }
  html body.hldesign-ready.hldesign-safe.heartlines-home #content :is(.heartlines-exclusive-group, .heartlines-top-group, .heartlines-new-group, .heartlines-other-group) .hl14-reader-section-head > h2 {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: clamp(28px, calc(13.333334vw - 20px), 32px) !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }
  html body.hldesign-ready.hldesign-safe.heartlines-home #content :is(.heartlines-exclusive-group, .heartlines-top-group, .heartlines-new-group, .heartlines-other-group) .hl14-reader-section-head > .hl14-reader-section-all {
    display: inline-flex !important;
    position: static !important;
    align-items: center !important;
    justify-content: center !important;
    justify-self: end !important;
    box-sizing: border-box !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 40px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 9px 8px !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    line-height: 1.3 !important;
    text-align: center !important;
    transform: none !important;
    white-space: nowrap !important;
  }

  /* Each trust label stays intact; whole items can move to the next row.
     Apply the home reference (13px/700) to every shared hero. */
  html body.hldesign-ready.hldesign-safe #content .hero.hlb1-home-hero .trust,
  html body.hldesign-ready.hldesign-safe #content .hl15-about-trust,
  html body.hldesign-ready.hldesign-safe #content .hl15-contact-trust {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 9px 16px !important;
    text-align: left !important;
  }
  html body.hldesign-ready.hldesign-safe #content .hero.hlb1-home-hero .trust .ti,
  html body.hldesign-ready.hldesign-safe #content :is(.hl15-about-trust, .hl15-contact-trust) .ti {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    justify-self: start !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    gap: 7px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-align: left !important;
    white-space: nowrap !important;
  }
  html body.hldesign-ready.hldesign-safe #content .hero.hlb1-home-hero .trust .ti > span,
  html body.hldesign-ready.hldesign-safe #content :is(.hl15-about-trust, .hl15-contact-trust) .ti > span {
    width: auto !important;
    min-width: 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    text-align: left !important;
  }
  html body.hldesign-ready.hldesign-safe #content .hero.hlb1-home-hero .trust .ti .ti-icon,
  html body.hldesign-ready.hldesign-safe #content :is(.hl15-about-trust, .hl15-contact-trust) .ti .ti-icon {
    flex: 0 0 14px !important;
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
  }
}

@media (max-width: 700px) {
  html body.hldesign-ready.hldesign-safe #content .hlvideo-card .hlvideo-review-cta {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  html body.hldesign-ready.hldesign-safe #content .hlvideo-card .hlvideo-reentry .hlvideo-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  html body.hldesign-ready.hldesign-safe #content .hlvideo-card :is(.hlvideo-review-cta, .hlvideo-reentry) .hlvideo-button {
    flex: 0 1 auto !important;
    width: 100% !important;
  }
}

/* Preserve a readable 28px title on narrow phones rather than shrinking it. */
@media (max-width: 359px) {
  html body.hldesign-ready.hldesign-safe.heartlines-home #content .hl14-reader-section-all .hldesign-reader-all-full { display: none !important; }
  html body.hldesign-ready.hldesign-safe.heartlines-home #content .hl14-reader-section-all .hldesign-reader-all-short { display: inline !important; }
}

/* 1.3.6: give the full-width mobile reset action its own result-header row. */
@media (max-width: 1024px) {
  html body.hldesign-ready.hldesign-safe #content .hl-core-search-list .bl-head {
    flex-wrap: wrap !important;
    row-gap: 12px !important;
  }
  html body.hldesign-ready.hldesign-safe #content .hl-core-search-list .bl-head > .sec-title {
    flex: 1 0 100% !important;
    min-width: 0 !important;
  }
}

/* Use the same inherited size for all three labels on the chat request card. */
html body.hldesign-ready.hldesign-safe #content .hlchat-request-card > :is(.hlchat-price-line, .hlchat-balance-box) > span {
  font-size: inherit !important;
}

@media (max-width: 920px) {
  html body.hldesign-ready.hldesign-safe #dein-gefuehl #catRow.hldesign-feeling-carousel .owl-item {
    flex: 0 0 var(--hldesign-feeling-card-width) !important;
    width: var(--hldesign-feeling-card-width) !important;
  }

  html body.hldesign-ready.hldesign-safe #content .advisor-detail-template #focus .hl-v12-strength-track > .focus {
    --hldesign-strength-card-width: min(100%, max(160px, calc((100% - 10px) / 1.5)));
    flex: 0 0 var(--hldesign-strength-card-width) !important;
    width: var(--hldesign-strength-card-width) !important;
    max-width: var(--hldesign-strength-card-width) !important;
  }

  html body.hldesign-ready.hldesign-safe #content .advisor-detail-template #focus .hl-v12-strength-track > .focus:only-child {
    --hldesign-strength-card-width: 100%;
  }

  html body.hldesign-ready.hldesign-safe #dein-gefuehl #catRow.hldesign-feeling-carousel .cat > span,
  html body.hldesign-ready.hldesign-safe #content .advisor-detail-template #focus .hl-v12-strength-track > .focus > .focus-title {
    max-width: 100% !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
  }
}

/* 1.4.2: shared portrait presentation for the three existing home sliders.
   Keep carousel widths, transforms, controls, profile links and favourites intact. */
html body.hldesign-ready.hldesign-safe.heartlines-home #content :is(.heartlines-exclusive-group, .heartlines-top-group, .heartlines-new-group) {
  padding-top: 34px !important;
  padding-bottom: 36px !important;
}
html body.hldesign-ready.hldesign-safe.heartlines-home #content :is(.heartlines-exclusive-group, .heartlines-top-group, .heartlines-new-group) .hl14-reader-section-head {
  margin-bottom: 16px !important;
}
html body.hldesign-ready.hldesign-safe.heartlines-home #content :is(.heartlines-exclusive-group, .heartlines-top-group, .heartlines-new-group) .adv-track {
  padding-top: 8px !important;
  padding-bottom: 24px !important;
}
html body.hldesign-ready.hldesign-safe.heartlines-home #content :is(.heartlines-exclusive-group, .heartlines-top-group, .heartlines-new-group) .adv-track.owl-loaded {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
html body.hldesign-ready.hldesign-safe.heartlines-home #content :is(.heartlines-exclusive-group, .heartlines-top-group, .heartlines-new-group) .adv-track.owl-loaded .owl-stage-outer {
  padding-top: 8px !important;
  padding-bottom: 24px !important;
}
html body.hldesign-ready.hldesign-safe.heartlines-home #content :is(.heartlines-exclusive-group, .heartlines-top-group, .heartlines-new-group) .adv-card.hl-v13-advisor-card {
  box-shadow: 0 8px 20px rgba(98, 43, 50, .07) !important;
}
html body.hldesign-ready.hldesign-safe.heartlines-home #content :is(.heartlines-exclusive-group, .heartlines-top-group, .heartlines-new-group) .adv-card.hl-v13-advisor-card .adv-photo {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 5 !important;
}
html body.hldesign-ready.hldesign-safe.heartlines-home #content :is(.heartlines-exclusive-group, .heartlines-top-group, .heartlines-new-group) .adv-card.hl-v13-advisor-card .adv-photo > a {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}
html body.hldesign-ready.hldesign-safe.heartlines-home #content :is(.heartlines-exclusive-group, .heartlines-top-group, .heartlines-new-group) .adv-card.hl-v13-advisor-card .adv-photo > a > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
}
