/*
 * Heartlines Design & Inhalte 1.3.2 — Arbeitspaket 1, small "von" label restored.
 * Presentation only. Selectors intentionally outrank the existing linked-regions
 * adapter and connector layout rules without changing either of those sources.
 * No global font reset, data writes, hidden time inputs or conversation changes.
 */

/* Home: only the four marked advantages, not general page copy or headings. */
html body.hldesign-ready.hldesign-safe.heartlines-home #content .feats .feat h3 {
  font-size: 18px !important;
  line-height: 1.35 !important;
}

html body.hldesign-ready.hldesign-safe.heartlines-home #content .feats .feat p {
  font-size: 14px !important;
  line-height: 1.55 !important;
}

/* Home and contact: compact, left-aligned trust labels, including their spans. */
html body.hldesign-ready.hldesign-safe.heartlines-home #content .hero .trust,
html body.hldesign-ready.hldesign-safe #content .hero.hl16-contact-hero .trust,
html body.hldesign-ready.hldesign-safe #content .hero.hl15-contact-hero .trust {
  justify-content: flex-start !important;
  justify-items: start !important;
  text-align: left !important;
}
html body.hldesign-ready.hldesign-safe.heartlines-home #content .hero .trust .ti,
html body.hldesign-ready.hldesign-safe #content .hero.hl16-contact-hero .trust .ti,
html body.hldesign-ready.hldesign-safe #content .hero.hl15-contact-hero .trust .ti {
  display: inline-flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  justify-self: start !important;
  gap: 7px !important;
  min-width: 0 !important;
  text-align: left !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}
html body.hldesign-ready.hldesign-safe.heartlines-home #content .hero .trust .ti > span,
html body.hldesign-ready.hldesign-safe #content .hero.hl16-contact-hero .trust .ti > span,
html body.hldesign-ready.hldesign-safe #content .hero.hl15-contact-hero .trust .ti > span {
  min-width: 0 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  text-align: left !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
}
html body.hldesign-ready.hldesign-safe.heartlines-home #content .hero .trust .ti .ti-icon,
html body.hldesign-ready.hldesign-safe #content .hero.hl16-contact-hero .trust .ti .ti-icon,
html body.hldesign-ready.hldesign-safe #content .hero.hl15-contact-hero .trust .ti .ti-icon {
  flex: 0 0 14px !important;
  width: 14px !important;
  height: 14px !important;
  margin-top: 2px !important;
}

/* The marked compact reader-list component, also reused by the reader finder. */
html body.hldesign-ready.hldesign-safe #content .hl14-reader-row .hl14-reader-feelings {
  font-size: 12px !important;
  line-height: 1.4 !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
}

/* Public profile: reserve the actual width of HH:MM – HH:MM Uhr. */
html body.hldesign-ready.hldesign-safe #content .advisor-detail-template #avail .hlb1-presence-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) max-content !important;
  align-items: baseline !important;
  gap: 8px !important;
  min-width: 0 !important;
}
html body.hldesign-ready.hldesign-safe #content .advisor-detail-template #avail .hlb1-presence-day,
html body.hldesign-ready.hldesign-safe #content .advisor-detail-template #avail .hlb1-presence-time {
  min-width: 0 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums;
}
html body.hldesign-ready.hldesign-safe #content .advisor-detail-template #avail .hlb1-presence-time {
  text-align: right !important;
}

/* Account: use the available panel width, not the full desktop viewport. */
html body.hldesign-ready.hldesign-safe #content .hla-presence-v111 {
  container-type: inline-size;
  container-name: hldesign-presence;
  min-width: 0 !important;
}
html body.hldesign-ready.hldesign-safe #content .hla-presence-v111 .hla-presence-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
html body.hldesign-ready.hldesign-safe #content .hla-presence-v111 .hla-presence-day {
  min-width: 0 !important;
  gap: 10px !important;
}
html body.hldesign-ready.hldesign-safe #content .hla-presence-v111 .hla-presence-day > strong {
  font-size: 14px !important;
  line-height: 1.4 !important;
}
html body.hldesign-ready.hldesign-safe #content .hla-presence-v111 .hla-switch-label,
html body.hldesign-ready.hldesign-safe #content .hla-presence-v111 .hla-switch-label > span {
  font-size: 12px !important;
  line-height: 1.35 !important;
}
html body.hldesign-ready.hldesign-safe #content .hla-presence-v111 .hla-presence-times {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(120px, auto) !important;
  gap: 8px !important;
  align-items: end !important;
  min-width: 0 !important;
}
html body.hldesign-ready.hldesign-safe #content .hla-presence-v111 .hla-presence-times > label {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  min-width: 0 !important;
  margin: 0 !important;
}
html body.hldesign-ready.hldesign-safe #content .hla-presence-v111 .hla-presence-times > label > span {
  margin: 0 !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
}
html body.hldesign-ready.hldesign-safe #content .hla-presence.hla-presence-v111 .hla-presence-row .hla-presence-times input[type="time"] {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 44px !important;
  box-sizing: border-box !important;
  padding: 9px 8px !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap !important;
}
html body.hldesign-ready.hldesign-safe #content .hla-presence-v111 input[type="time"]::-webkit-datetime-edit {
  min-width: 0;
  padding: 0;
}
html body.hldesign-ready.hldesign-safe #content .hla-presence-v111 input[type="time"]::-webkit-calendar-picker-indicator {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
}
html body.hldesign-ready.hldesign-safe #content .hla-presence-v111 .hla-presence-copy {
  grid-column: auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 44px !important;
  box-sizing: border-box !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  white-space: normal !important;
}
@container hldesign-presence (min-width: 680px) {
  html body.hldesign-ready.hldesign-safe #content .hla-presence-v111 .hla-presence-row {
    grid-template-columns: minmax(130px, .65fr) minmax(0, 2fr) !important;
    gap: 14px !important;
  }
}

@media (max-width: 760px) {
  html body.hldesign-ready.hldesign-safe.heartlines-home #content .hero .trust,
  html body.hldesign-ready.hldesign-safe #content .hero.hl16-contact-hero .trust,
  html body.hldesign-ready.hldesign-safe #content .hero.hl15-contact-hero .trust {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px 12px !important;
  }

  /* Only the two marked section headings; keep the other home groups intact. */
  html body.hldesign-ready.hldesign-safe.heartlines-home #content :is(.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;
    gap: 8px !important;
  }
  html body.hldesign-ready.hldesign-safe.heartlines-home #content :is(.heartlines-new-group, .heartlines-other-group) .hl14-reader-section-head > h2 {
    min-width: 0 !important;
    margin: 0 !important;
    font-size: clamp(20px, 5.6vw, 26px) !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }
  html body.hldesign-ready.hldesign-safe.heartlines-home #content :is(.heartlines-new-group, .heartlines-other-group) .hl14-reader-section-head > .hl14-reader-section-all {
    justify-self: end !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: 40px !important;
    box-sizing: border-box !important;
    padding: 9px 10px !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
  }

  html body.hldesign-ready.hldesign-safe #content .hla-presence-v111 .hla-presence-times {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }
  html body.hldesign-ready.hldesign-safe #content .hla-presence-v111 .hla-presence-copy {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }
  /* Avoid automatic input zoom on iOS while reclaiming the former label width. */
  html body.hldesign-ready.hldesign-safe #content .hla-presence.hla-presence-v111 .hla-presence-row .hla-presence-times input[type="time"] {
    font-size: 16px !important;
  }
}

/* Very narrow phones: leave enough room even for a native 12-hour time widget. */
@media (max-width: 359px) {
  html body.hldesign-ready.hldesign-safe #content .hla-presence-v111 .hla-presence-times {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
