/* ==========================================================================
   SunPept Landingpage (templates/landing.php)
   Nutzt Tokens aus main.css. Ruhig, präzise, ohne Verläufe.
   ========================================================================== */

.lp-page { background: var(--bg, #fff); }

.lp-page .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Fokus sichtbar */
.lp-page a:focus-visible,
.lp-page .btn:focus-visible,
.lp-page summary:focus-visible {
	outline: 2px solid var(--navy);
	outline-offset: 3px;
	border-radius: var(--radius-sm);
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.lp-hero {
	background: var(--surface-2);
	border-bottom: 1px solid var(--line);
	padding: 40px 0 52px;
}
.lp-hero .breadcrumb { padding: 0 0 18px; font-size: var(--fs-sm, 13px); }
.lp-hero .breadcrumb a { color: var(--ink-2); text-decoration: none; }
.lp-hero .breadcrumb a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.lp-hero .breadcrumb .sep { opacity: .45; }
.lp-hero .kicker {
	font-family: 'Space Mono', monospace; font-size: 12px; font-weight: 700;
	letter-spacing: .2em; text-transform: uppercase; color: var(--navy);
}
.lp-hero .kicker::before { background: var(--navy); opacity: .35; }
.lp-hero h1 {
	font-size: var(--fs-h1, clamp(30px, 3.4vw, 44px));
	line-height: 1.1; letter-spacing: -.02em; font-weight: 800;
	color: var(--ink); margin: 16px 0 0; max-width: 24ch;
	text-wrap: balance;
}
.lp-lead {
	font-size: var(--fs-lead, 17px); line-height: 1.62; color: var(--ink-2);
	max-width: 64ch; margin: 18px 0 0;
}
.lp-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.lp-ctas .btn { min-height: 48px; }

/* ── Artikel / Fließtext ───────────────────────────────────────────────── */
.lp-article { padding: 56px 0 80px; }
.lp-body {
	max-width: 760px;
	font-size: var(--fs-base, 16px); line-height: 1.72; color: var(--ink-2);
}
.lp-body > * + * { margin-top: 16px; }
.lp-body h2 {
	font-size: var(--fs-h2, clamp(26px, 2.9vw, 38px));
	line-height: 1.15; letter-spacing: -.02em; font-weight: 800; color: var(--ink);
	margin: 56px 0 0; scroll-margin-top: 110px; text-wrap: balance;
}
.lp-body > h2:first-child { margin-top: 0; }
.lp-body h3 {
	font-size: var(--fs-h3, 20px); line-height: 1.3; font-weight: 700; color: var(--ink);
	margin: 32px 0 0;
}
.lp-body h2 + p, .lp-body h3 + p { margin-top: 12px; }
.lp-body p { margin: 0; }
.lp-body p + p { margin-top: 14px; }
.lp-body strong { color: var(--ink); font-weight: 700; }
.lp-body a:not(.btn) {
	color: var(--navy); font-weight: 600;
	text-decoration: underline; text-decoration-color: var(--line-2, var(--acc));
	text-decoration-thickness: 2px; text-underline-offset: 3px;
	transition: text-decoration-color .15s;
}
.lp-body a:not(.btn):hover { text-decoration-color: var(--navy); }
.lp-body ul:not([class]), .lp-body ol:not([class]) { padding-left: 22px; margin: 14px 0 0; }
.lp-body ul:not([class]) { list-style: disc; }
.lp-body ol:not([class]) { list-style: decimal; }
.lp-body ul:not([class]) li, .lp-body ol:not([class]) li { margin-top: 6px; }
.lp-body ul:not([class]) li::marker { color: var(--ink-3); }

/* Breitere Komponenten dürfen über 760px hinaus (bis Wrap-Breite) */
.lp-body .lp-wide { max-width: none; width: min(1184px, calc(100vw - 72px)); }

/* ── Schritt-Liste ─────────────────────────────────────────────────────── */
.lp-body ol.lp-steps {
	list-style: none; padding: 0; margin: 22px 0 0;
	counter-reset: lp-step; display: grid; gap: 12px;
}
.lp-steps > li {
	counter-increment: lp-step; position: relative;
	padding: 20px 22px 20px 74px;
	background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius);
}
.lp-steps > li::before {
	content: counter(lp-step, decimal-leading-zero);
	position: absolute; left: 22px; top: 20px;
	width: 36px; height: 36px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--acc-t); color: var(--navy);
	font-family: 'Space Mono', monospace; font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.lp-steps > li strong { display: block; font-size: var(--fs-base, 16px); color: var(--ink); margin-bottom: 4px; }
.lp-steps > li p { margin: 0; font-size: var(--fs-md, 14px); line-height: 1.62; }

/* ── Info-Kacheln ──────────────────────────────────────────────────────── */
.lp-body .lp-facts {
	list-style: none; padding: 0; margin: 22px 0 0;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px;
}
.lp-facts > li, .lp-facts > div {
	padding: 18px 20px; margin: 0;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.lp-facts .lp-fact-label {
	display: block; font-family: 'Space Mono', monospace; font-size: 11px;
	letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.lp-facts .lp-fact-value {
	display: block; margin-top: 6px; font-size: var(--fs-h3, 20px); font-weight: 800;
	color: var(--ink); line-height: 1.25; letter-spacing: -.01em;
}
.lp-facts .lp-fact-text { display: block; margin-top: 4px; font-size: var(--fs-sm, 13px); line-height: 1.5; color: var(--ink-2); }

/* ── Hinweis-Box ───────────────────────────────────────────────────────── */
.lp-note {
	margin-top: 22px; padding: 16px 20px;
	background: var(--acc-t); border: 1px solid var(--line-2, var(--acc));
	border-left: 3px solid var(--navy); border-radius: var(--radius-sm);
	font-size: var(--fs-md, 14px); line-height: 1.6; color: var(--ink-2);
}
.lp-note p { margin: 0; }
.lp-note p + p { margin-top: 8px; }
.lp-note strong { color: var(--ink); }

/* ── Tabelle ───────────────────────────────────────────────────────────── */
.lp-table-wrap {
	margin-top: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch;
	border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.lp-table { width: 100%; border-collapse: collapse; font-size: var(--fs-md, 14px); line-height: 1.5; }
.lp-table th, .lp-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.lp-table thead th {
	background: var(--surface-2); color: var(--ink-3);
	font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700;
	letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}
.lp-table tbody tr:last-child td { border-bottom: 0; }
.lp-table td { color: var(--ink-2); }
.lp-table td a { color: var(--navy); font-weight: 700; text-decoration: none; }
.lp-table td a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lp-tag {
	display: inline-block; padding: 3px 10px; border-radius: 999px;
	background: var(--acc-t); color: var(--navy);
	font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .06em;
}
.lp-muted { color: var(--ink-3); font-style: italic; }
.lp-count { display: block; font-weight: 700; color: var(--ink); }
.lp-report-links { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.lp-report-links li { margin: 0; }
.lp-report-links a {
	display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px;
	border: 1px solid var(--line-2, var(--line)); border-radius: var(--radius-sm);
	font-size: var(--fs-sm, 13px); font-weight: 600;
}
.lp-report-links a:hover { border-color: var(--navy); text-decoration: none; }

/* ── Module (Tabelle / Produktraster) ──────────────────────────────────── */
.lp-module { margin-top: 64px; }
.lp-module-title {
	font-size: var(--fs-h2, clamp(26px, 2.9vw, 38px)); line-height: 1.15;
	letter-spacing: -.02em; font-weight: 800; color: var(--ink);
}
.lp-module--products .prod-grid { margin-top: 24px; }
.lp-module--reports .lp-table-wrap { max-width: 980px; }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.lp-body details.lp-faq {
	margin: 0; border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--surface);
}
.lp-body h2 + details.lp-faq, .lp-body p + details.lp-faq { margin-top: 20px; }
.lp-body details.lp-faq + details.lp-faq { margin-top: 10px; }
.lp-faq > summary {
	list-style: none; cursor: pointer; position: relative;
	min-height: 52px; padding: 15px 56px 15px 20px;
	display: flex; align-items: center;
	font-size: var(--fs-base, 16px); font-weight: 700; color: var(--ink); line-height: 1.4;
}
.lp-faq > summary::-webkit-details-marker { display: none; }
.lp-faq > summary::after {
	content: ""; position: absolute; right: 20px; top: 50%;
	width: 10px; height: 10px; margin-top: -7px;
	border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
	transform: rotate(45deg); transition: transform .2s var(--ease, ease);
}
.lp-faq[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.lp-faq > summary:hover { color: var(--navy); }
.lp-faq > div { padding: 0 20px 18px; font-size: var(--fs-md, 14px); line-height: 1.65; color: var(--ink-2); }
.lp-faq > div p { margin: 0; }
.lp-faq > div p + p { margin-top: 8px; }

/* ── RUO-Abschluss ─────────────────────────────────────────────────────── */
.lp-ruo { max-width: 760px; margin-top: 56px; }
.lp-ruo .ruo-box { margin-top: 0; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
	.lp-hero { padding: 28px 0 40px; }
	.lp-article { padding: 40px 0 64px; }
	.lp-body h2 { margin-top: 44px; }
	.lp-body .lp-wide { width: auto; }
	.lp-ctas .btn { flex: 1 1 100%; }
	.lp-steps > li { padding: 18px 18px 18px 64px; }
	.lp-steps > li::before { left: 16px; top: 18px; }
	.lp-module { margin-top: 48px; }

	/* Tabelle als gestapelte Karten */
	.lp-table-wrap { border: 0; background: none; overflow: visible; }
	.lp-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.lp-table--stack, .lp-table--stack tbody, .lp-table--stack tr, .lp-table--stack td { display: block; width: 100%; }
	.lp-table--stack tr {
		background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
		padding: 6px 0; margin-bottom: 10px;
	}
	.lp-table--stack td {
		border-bottom: 0; padding: 8px 16px;
		display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: start;
	}
	.lp-table--stack td::before {
		content: attr(data-label);
		font-family: 'Space Mono', monospace; font-size: 10.5px; letter-spacing: .12em;
		text-transform: uppercase; color: var(--ink-3); padding-top: 2px;
	}
	.lp-table--stack td a { display: inline-flex; align-items: center; min-height: 44px; }
	.lp-table--stack .lp-report-links a { min-height: 44px; }
}

@media (max-width: 420px) {
	.lp-facts { grid-template-columns: 1fr; }
	.lp-faq > summary { padding-left: 16px; }
	.lp-faq > div { padding: 0 16px 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.lp-faq > summary::after, .lp-body a { transition: none; }
}

/* Modul im Inhalt platziert ([sunpept_lp_module]) */
.lp-body .lp-module--inline { margin-top: 20px; }
.lp-body .lp-module--inline + * { margin-top: 24px; }
