/* ==========================================================================
   B2B Partnerlus landing — ledekspert.eu
   Loaded only on the "B2B Partnerlus" page template.
   Every rule is scoped under #b2b-partnerlus so nothing leaks into the theme.
   Adapted from the approved prototype (ledekspert-b2b-preview.html).
   ========================================================================== */

/* --- Parent-theme wrapper neutralization -----------------------------------
   Scoped to this page template only (body class), so other pages are
   untouched. Lets the full-bleed sections run edge-to-edge.
--------------------------------------------------------------------------- */
.page-template-template-b2b-partnerlus #content.site-content {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}
.page-template-template-b2b-partnerlus .site-content-container {
	max-width: 100%;
	width: auto;
	margin: 0;
	padding: 0;
}
.page-template-template-b2b-partnerlus .site-content-container > .row {
	display: block;
	width: auto;
	margin: 0;
}

/* --- Tokens, reset, base ---------------------------------------------------- */
#b2b-partnerlus {
	--bg: #ffffff;
	--bg-soft: #f5f5f5;
	--ink: #0a0a0a;
	--ink-soft: #2a2a2a;
	--muted: #8a8a8a;
	--muted-light: #c4c4c4;
	--accent: #4b3190;
	--line: #e8e8e8;
	--container: 1280px;

	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	background: var(--bg);
	color: var(--ink);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
#b2b-partnerlus * {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	font-family: inherit;
}
#b2b-partnerlus .container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 32px;
}

/* ============================== HERO ====================================== */
#b2b-partnerlus .hero {
	padding: 120px 0 100px;
	border-bottom: 1px solid var(--line);
}
#b2b-partnerlus .hero-eyebrow {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 32px;
}
#b2b-partnerlus .hero h1 {
	font-size: clamp(42px, 6vw, 88px);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
	color: var(--ink);
	margin-bottom: 48px;
	max-width: 900px;
}
#b2b-partnerlus .hero-lead {
	font-size: 20px;
	line-height: 1.55;
	color: var(--ink-soft);
	max-width: 720px;
	margin-bottom: 56px;
}
#b2b-partnerlus .hero-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 40px;
	max-width: 900px;
}
#b2b-partnerlus .hero-meta-item {
	border-top: 1px solid var(--ink);
	padding-top: 20px;
}
#b2b-partnerlus .hero-meta-item strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 8px;
}
#b2b-partnerlus .hero-meta-item span {
	font-size: 14px;
	color: var(--muted);
	line-height: 1.5;
}
#b2b-partnerlus .cta {
	display: inline-block;
	background: var(--ink);
	color: #fff;
	padding: 18px 36px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
	border-radius: 0;
	transition: background 0.2s;
	margin-top: 56px;
}
#b2b-partnerlus .cta:hover {
	background: var(--accent);
	color: #fff;
}
#b2b-partnerlus .cta-arrow {
	margin-left: 12px;
}

/* ============================ AUDIENCES =================================== */
#b2b-partnerlus .audiences {
	padding: 120px 0;
}
#b2b-partnerlus .section-head {
	margin-bottom: 80px;
	max-width: 720px;
}
#b2b-partnerlus .section-eyebrow {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 20px;
}
#b2b-partnerlus .section-head h2 {
	font-size: clamp(32px, 4vw, 56px);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.05;
	color: var(--ink);
}
#b2b-partnerlus .audience-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	border-top: 1px solid var(--ink);
}
#b2b-partnerlus .audience {
	background: var(--bg);
	padding: 48px 36px 56px;
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--ink);
	transition: background 0.3s;
}
#b2b-partnerlus .audience:last-child {
	border-right: none;
}
#b2b-partnerlus .audience:hover {
	background: #fafafa;
}
#b2b-partnerlus .audience-num {
	font-size: 14px;
	font-weight: 600;
	color: var(--accent);
	margin-bottom: 24px;
	letter-spacing: 0.05em;
}
#b2b-partnerlus .audience h3 {
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--ink);
	margin-bottom: 32px;
	line-height: 1.15;
}
#b2b-partnerlus .audience ul {
	list-style: none;
}
#b2b-partnerlus .audience li {
	font-size: 15px;
	color: var(--ink-soft);
	padding: 16px 0;
	border-top: 1px solid var(--line);
	display: flex;
	gap: 12px;
	line-height: 1.5;
}
#b2b-partnerlus .audience li:first-child {
	border-top: 1px solid var(--line);
}
#b2b-partnerlus .audience li::before {
	content: "\2192";
	color: var(--accent);
	font-weight: 600;
	flex-shrink: 0;
}

/* ============================= TIMELINE ================================== */
#b2b-partnerlus .timeline-section {
	padding: 140px 0 160px;
	background: var(--bg-soft);
}
#b2b-partnerlus .timeline-section .section-head h2 {
	font-size: clamp(36px, 5vw, 72px);
}
#b2b-partnerlus .timeline {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	grid-template-rows: minmax(190px, auto) 2px minmax(190px, auto);
	column-gap: 24px;
	margin-top: 40px;
}
#b2b-partnerlus .timeline-line {
	grid-column: 1 / -1;
	grid-row: 2 / 3;
	background: var(--accent);
	height: 2px;
	align-self: center;
	position: relative;
	z-index: 1;
}
#b2b-partnerlus .step {
	position: relative;
	padding: 0 4px;
}
#b2b-partnerlus .step:nth-child(1) { grid-column: 1; grid-row: 1; align-self: end; padding-bottom: 36px; }
#b2b-partnerlus .step:nth-child(2) { grid-column: 2; grid-row: 3; align-self: start; padding-top: 36px; }
#b2b-partnerlus .step:nth-child(3) { grid-column: 3; grid-row: 1; align-self: end; padding-bottom: 36px; }
#b2b-partnerlus .step:nth-child(4) { grid-column: 4; grid-row: 3; align-self: start; padding-top: 36px; }
#b2b-partnerlus .step:nth-child(5) { grid-column: 5; grid-row: 1; align-self: end; padding-bottom: 36px; }
#b2b-partnerlus .step:nth-child(6) { grid-column: 6; grid-row: 3; align-self: start; padding-top: 36px; }
#b2b-partnerlus .step:nth-child(7) { grid-column: 7; grid-row: 1; align-self: end; padding-bottom: 36px; }

#b2b-partnerlus .step::before {
	content: "";
	position: absolute;
	left: 8px;
	width: 1px;
	height: 36px;
	background: var(--accent);
	z-index: 2;
}
#b2b-partnerlus .step:nth-child(odd)::before { bottom: 0; }
#b2b-partnerlus .step:nth-child(even)::before { top: 0; }

#b2b-partnerlus .step::after {
	content: "";
	position: absolute;
	left: 4px;
	width: 10px;
	height: 10px;
	background: var(--accent);
	z-index: 3;
}
#b2b-partnerlus .step:nth-child(odd)::after { bottom: -6px; }
#b2b-partnerlus .step:nth-child(even)::after { top: -6px; }

#b2b-partnerlus .step-num {
	font-size: 72px;
	font-weight: 800;
	color: var(--muted-light);
	line-height: 0.9;
	margin-bottom: 16px;
	letter-spacing: -0.04em;
}
#b2b-partnerlus .step-title {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink);
	margin-bottom: 10px;
}
#b2b-partnerlus .step-desc {
	font-size: 13px;
	color: var(--muted);
	line-height: 1.55;
}

/* =============================== FORM ==================================== */
#b2b-partnerlus .form-section {
	padding: 140px 0 160px;
	background: var(--bg-soft);
	color: var(--ink);
}
#b2b-partnerlus .form-section .section-eyebrow {
	color: var(--muted);
}
#b2b-partnerlus .form-section .section-head h2 {
	color: var(--ink);
	margin-bottom: 28px;
}
#b2b-partnerlus .form-section .section-head p {
	font-size: 17px;
	color: var(--ink-soft);
	max-width: 460px;
	line-height: 1.6;
}
#b2b-partnerlus .form-layout {
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: 100px;
	align-items: start;
}
#b2b-partnerlus .form-intro {
	position: sticky;
	top: 60px;
}
#b2b-partnerlus .form-intro .section-head {
	margin-bottom: 0;
}
#b2b-partnerlus .form-meta {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--line);
}
#b2b-partnerlus .form-meta-item {
	display: flex;
	gap: 16px;
	padding: 14px 0;
	font-size: 14px;
	color: var(--ink-soft);
	line-height: 1.5;
}
#b2b-partnerlus .form-meta-item strong {
	font-weight: 600;
	color: var(--ink);
	min-width: 110px;
}
/* tel:/mailto: links in the contact block — kept visually plain to match the
   design, with an accent-coloured hover. Also covers the Cloudflare-obfuscated
   e-mail link (<a class="__cf_email__">). */
#b2b-partnerlus .form-meta-item a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}
#b2b-partnerlus .form-meta-item a:hover {
	color: var(--accent);
}
#b2b-partnerlus .form-card {
	background: var(--bg);
	border: 1px solid var(--line);
	padding: 56px 52px;
}
#b2b-partnerlus .form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px 20px;
}
#b2b-partnerlus .form-field {
	display: flex;
	flex-direction: column;
}
#b2b-partnerlus .form-field.full {
	grid-column: 1 / -1;
}
#b2b-partnerlus .form-field > label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: var(--ink);
	letter-spacing: 0;
	text-transform: none;
}
#b2b-partnerlus .form-field label .required {
	color: var(--accent);
	margin-left: 2px;
}
#b2b-partnerlus .form-field input,
#b2b-partnerlus .form-field select,
#b2b-partnerlus .form-field textarea {
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 0;
	color: var(--ink);
	font-family: inherit;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	padding: 13px 15px;
	outline: none;
	transition: border-color 0.2s;
	width: 100%;
}
#b2b-partnerlus .form-field input:hover,
#b2b-partnerlus .form-field select:hover,
#b2b-partnerlus .form-field textarea:hover {
	border-color: #c4c4c4;
}
#b2b-partnerlus .form-field input:focus,
#b2b-partnerlus .form-field select:focus,
#b2b-partnerlus .form-field textarea:focus {
	border-color: var(--accent);
}
#b2b-partnerlus .form-field textarea {
	resize: vertical;
	min-height: 120px;
}
#b2b-partnerlus .form-field select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	cursor: pointer;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3e%3cpath d='M1 1L6 6L11 1' stroke='%230a0a0a' stroke-width='1.5'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 44px;
}
#b2b-partnerlus .form-consent {
	grid-column: 1 / -1;
	margin-top: 8px;
	font-size: 13px;
	color: var(--ink-soft);
	line-height: 1.55;
}
/* The parent theme hides the native checkbox (display:none) and draws a custom
   one via ::before/::after on the adjacent <span>. Force the native checkbox
   back and colour it with the accent, per the prototype. */
#b2b-partnerlus .form-consent input[type="checkbox"] {
	display: inline-block !important;
	-webkit-appearance: checkbox;
	appearance: auto;
	width: 16px;
	height: 16px;
	min-width: 16px;
	margin: 2px 0 0;
	flex-shrink: 0;
	accent-color: var(--accent);
	cursor: pointer;
}
#b2b-partnerlus .form-consent a {
	color: var(--ink);
	text-decoration: underline;
}
/* Submit button. !important on bg/colour + explicit line-height/text-transform
   override the parent theme's .wpcf7-form .wpcf7-submit styling, which would
   otherwise leak uppercase, an 80px line-height and its own colours. */
#b2b-partnerlus .form-cta {
	background: var(--ink) !important;
	color: #fff !important;
	border: none;
	border-radius: 0;
	padding: 18px 40px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-transform: none;
	min-width: 0;
	cursor: pointer;
	margin-top: 16px;
	transition: background 0.2s;
	align-self: flex-start;
}
#b2b-partnerlus .form-cta:hover,
#b2b-partnerlus .form-cta:focus {
	background: var(--accent) !important;
	color: #fff !important;
}

/* --- Contact Form 7 normalization ------------------------------------------
   CF7 nests each control inside <span class="wpcf7-form-control-wrap"> and
   nests the consent checkbox inside its own generated list markup. These rules
   reconcile that DOM with the prototype's label/field layout.
--------------------------------------------------------------------------- */
#b2b-partnerlus .wpcf7 { margin: 0; }
#b2b-partnerlus form.wpcf7-form p { margin: 0; } /* in case autop slips through */

#b2b-partnerlus .form-field .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
	margin-top: 8px;
}
#b2b-partnerlus .wpcf7-not-valid-tip {
	color: var(--accent);
	font-size: 12px;
	margin-top: 6px;
}
#b2b-partnerlus .wpcf7-response-output {
	margin: 24px 0 0;
	padding: 16px;
	border: 1px solid var(--line);
	font-size: 14px;
	line-height: 1.5;
}
#b2b-partnerlus .wpcf7-spinner { display: none; }

/* CF7 acceptance (GDPR consent) — flatten the generated wrappers and lay the
   checkbox + text out as a single row, matching the prototype. */
#b2b-partnerlus .form-consent .wpcf7-form-control-wrap,
#b2b-partnerlus .form-consent .wpcf7-acceptance,
#b2b-partnerlus .form-consent .wpcf7-list-item {
	display: block;
	width: auto;
	margin: 0;
}
#b2b-partnerlus .form-consent .wpcf7-list-item label {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0;
	font-weight: 400;
	cursor: pointer;
}
#b2b-partnerlus .form-consent .wpcf7-list-item-label {
	display: block;
	padding-left: 0;
}
/* Kill the parent theme's pseudo-element checkbox drawn on this <span>. */
#b2b-partnerlus .form-consent .wpcf7-list-item-label::before,
#b2b-partnerlus .form-consent .wpcf7-list-item-label::after {
	content: none !important;
	display: none !important;
}

/* ============================== MOBILE =================================== */
@media (max-width: 900px) {
	#b2b-partnerlus .container { padding: 0 24px; }
	#b2b-partnerlus .hero { padding: 80px 0 60px; }
	#b2b-partnerlus .audiences,
	#b2b-partnerlus .timeline-section,
	#b2b-partnerlus .form-section { padding: 80px 0; }
	#b2b-partnerlus .audience-grid { grid-template-columns: 1fr; }
	#b2b-partnerlus .audience {
		border-right: none;
		border-bottom: 1px solid var(--ink);
	}
	#b2b-partnerlus .timeline {
		grid-template-columns: 1fr;
		grid-template-rows: none;
		column-gap: 0;
	}
	#b2b-partnerlus .timeline-line { display: none; }
	#b2b-partnerlus .step,
	#b2b-partnerlus .step:nth-child(1),
	#b2b-partnerlus .step:nth-child(2),
	#b2b-partnerlus .step:nth-child(3),
	#b2b-partnerlus .step:nth-child(4),
	#b2b-partnerlus .step:nth-child(5),
	#b2b-partnerlus .step:nth-child(6),
	#b2b-partnerlus .step:nth-child(7) {
		grid-column: 1;
		grid-row: auto;
		align-self: auto;
		padding: 28px 0 28px 36px;
		border-left: 2px solid var(--accent);
	}
	#b2b-partnerlus .step::before { display: none; }
	#b2b-partnerlus .step:nth-child(odd)::after,
	#b2b-partnerlus .step:nth-child(even)::after {
		left: -7px;
		top: 32px;
		bottom: auto;
	}
	#b2b-partnerlus .step-num { font-size: 44px; margin-bottom: 6px; }
	#b2b-partnerlus .form-layout { grid-template-columns: 1fr; gap: 48px; }
	#b2b-partnerlus .form-intro { position: static; }
	#b2b-partnerlus .form-card { padding: 32px 24px; }
	#b2b-partnerlus .form-grid { grid-template-columns: 1fr; gap: 20px; }
}
