/**
 * Neurobytes V15 — narrow, text-scoped accessibility/layout adjustments.
 * These classes are applied only after an exact content match in layout-fixes.js.
 */

/* "Eine Vereinsseite ... Unternehmenswebsite": no clipping or line clamp. */
html body .nb-lf-hero-title {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  hyphens: manual !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: initial !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  clip-path: none !important;
  font-size: clamp(2.2rem, 4.15vw, 4.4rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.042em !important;
  text-wrap: balance;
}

/* Some page builders wrap a headline in animated/clipped inline spans. */
html body .nb-lf-hero-title :is(span, strong, em, b) {
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  hyphens: manual !important;
  -webkit-line-clamp: unset !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  clip-path: none !important;
}

/* Use available section width when the heading is the only child of a narrow wrapper. */
html body .nb-lf-expand-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

/* Only clipped ancestors close to this heading are unmasked. */
html body .nb-lf-unclip {
  max-height: none !important;
  overflow: visible !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  clip-path: none !important;
}

/* Dark sidebar: accessible light typography without altering the card itself. */
html body .nb-lf-card .nb-lf-card-heading,
html body .nb-lf-card .nb-lf-card-heading * {
  color: #f4f8fc !important;
  -webkit-text-fill-color: #f4f8fc !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
html body .nb-lf-card .nb-lf-card-description,
html body .nb-lf-card .nb-lf-card-description * {
  color: #cddae5 !important;
  -webkit-text-fill-color: #cddae5 !important;
  opacity: 1 !important;
}

@media (max-width: 767px) {
  html body .nb-lf-hero-title {
    font-size: clamp(2rem, 8.5vw, 3.35rem) !important;
    letter-spacing: -0.035em !important;
    line-height: 1.12 !important;
  }
}

/* Card eyebrow — keep the small overline legible too. */
html body .nb-lf-card .nb-lf-card-eyebrow,
html body .nb-lf-card .nb-lf-card-eyebrow * {
  color: #b6cbdc !important;
  -webkit-text-fill-color: #b6cbdc !important;
  opacity: 1 !important;
}
