/* =============================================
   Section Header block — eyebrow + heading pair above a section.
   Replaces the old `tl-sec-head` group of (acf/eyebrow + core/heading).
   Heading size/weight come from assets/css/headings.css (.wp-block-heading);
   this file owns layout, alignment and spacing to the following section.
   (Two-column header with a right-side description → acf/section-header-split.)
   ============================================= */

.tl-section-header {
	padding: 96px 24px 0;
}
.tl-section-header__row {
	max-width: 1200px;
	margin: 0 auto;
}
/* eyebrow → heading gap = 32px (Figma title gap); also the gap below an
   eyebrow-only header (cs-hero) before the next block. */
.tl-section-header__main .tl-eyebrow {
	margin: 0 0 32px;
}
.tl-section-header__heading {
	margin: 0;
}

@media (max-width: 1024px) {
	.tl-section-header { padding: 64px 32px 0; }
}

/* ── Spacing to the following section ───────────────────────────────────
   The header sits in its own block, so the next section must not add its
   own top padding (it would double up). */

/* cs-hero: eyebrow + Ort heading live in the header; the block below is just
   the photo + facts grid. heading→photo = 96px (32 here + grid margin-top 64). */
.tl-section-header + .tl-cs-hero { padding-top: 32px; }

/* cs-process / problem: block starts with the "Line 11" divider (64px below
   heading) + the content. (problem's divider is already its grid border-top.) */
.tl-section-header + .tl-cs-process,
.tl-section-header + .tl-problem { padding-top: 64px; }
.tl-section-header + .tl-cs-process > .tl-cs-process__container {
	border-top: 0.5px solid rgba(51, 58, 66, 0.5);
	padding-top: 48px;
}

/* other plain sections — fold the doubled top padding to 40px */
.tl-section-header + .tl-partners,
.tl-section-header + .tl-numbers,
.tl-section-header + .tl-comparison,
.tl-section-header + .tl-modelle,
.tl-section-header + .tl-case-studies { padding-top: 40px; }

/* modelle: the divider rule sat below the in-block header (negative margin);
   the header is now a separate block, so neutralise that pull. */
.tl-section-header + .tl-modelle .tl-modelle__rule { margin-top: 0; }

/* FAQ group header (plain heading before a .tl-faq list): tighter rhythm —
   48px top (matches the old tl-section-heading), 32px down to the FAQ list.
   Scoped to :not(--split) so the page-top split header (FAQ-Video) keeps its
   own rhythm (the video block also carries the .tl-faq class). */
.tl-section-header:not(.tl-section-header--split):has(+ .tl-faq) { padding-top: 96px; }
.tl-section-header:not(.tl-section-header--split) + .tl-faq { padding-top: 32px; }

@media (max-width: 767px) {
	.tl-section-header + .tl-cs-process { padding-top: 32px; }
	.tl-section-header + .tl-cs-process > .tl-cs-process__container { padding-top: 24px; }
}
