/* =========================================================================
   LADUTI Conversion – Designschicht V3 „Editorial Clinical“
   Nur aktiv auf body.ldc-v3 (Startseite V3 per Seiten-Meta, Haarserum per Option).
   Baut auf ldc.css auf; neue Komponenten tragen eigene Klassen (ldc-hero3, ldc-ing, ldc-steps3 …).
   ========================================================================= */

body.ldc-v3 {
	--ldc-warm: #f4f1ec;   /* Studiohintergrund der V3-Bildwelt */
	--ldc-warm-2: #ebe6df;
	--ldc-panel: #f4f1ec;  /* Panels in derselben warmen Tonalität wie die Fotos */
	--ldc-ink: #121212;
	--ldc-ink-2: #4c4a47;
	--ldc-ink-3: #75716b;
	--ldc-line: #e3ded6;
}

/* ---------- Typografie: kräftiger, enger, editorial ---------- */
.ldc-v3 .ldc-h1 {
	font-size: clamp(40px, 11.6vw, 84px);
	line-height: 0.98;
	letter-spacing: -0.045em;
	font-weight: 800;
	hyphens: manual;
}

.ldc-v3 .ldc-h2 {
	font-size: clamp(32px, 8.6vw, 60px);
	line-height: 1.02;
	letter-spacing: -0.04em;
	font-weight: 800;
}

.ldc-v3 .ldc-eyebrow {
	font-size: 12px;
	letter-spacing: 0.16em;
	color: var(--ldc-ink-3);
}

.ldc-v3 .ldc-lead {
	color: var(--ldc-ink-2);
}

/* ---------- Art-direktiertes Bild ---------- */
.ldc-art {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: var(--ldc-ar-m, auto);
}

.ldc-art .ldc-art__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--ldc-pos-m, 50% 50%);
}

@media (min-width: 1000px) {
	.ldc-art {
		aspect-ratio: var(--ldc-ar-d, var(--ldc-ar-m, auto));
	}

	.ldc-art .ldc-art__img {
		object-position: var(--ldc-pos-d, var(--ldc-pos-m, 50% 50%));
	}
}

/* ---------- Hero (gemeinsam) ---------- */
.ldc-v3 .ldc-hero3 {
	padding: 0;
	background: var(--ldc-warm);
	color: var(--ldc-ink);
	overflow: hidden;
}

.ldc-v3 .ldc-hero3 .ldc-btn .wp-block-button__link {
	min-height: 56px;
	padding-inline: 34px;
	font-size: 17px;
}

.ldc-hero3__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	line-height: 1.4;
	color: var(--ldc-ink-2);
}

.ldc-hero3__trust li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
}

.ldc-hero3__trust li::before {
	content: "";
	width: 15px;
	height: 15px;
	flex: none;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ldc-v3 .ldc-hero3 .ldc-buyrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 18px;
}

.ldc-v3 .ldc-hero3 .ldc-buyrow .ldc-actions {
	margin: 0;
}

.ldc-v3 .ldc-hero3__press {
	padding: 22px var(--ldc-gutter) 26px;
	background: var(--ldc-warm);
	border-top: 1px solid var(--ldc-line);
}

.ldc-v3 .ldc-hero3__press .ldc-press {
	max-width: var(--ldc-wrap);
	margin: 0 auto;
}

/* ---------- Hero A „Monument“: Text zuerst, Flasche bildfüllend darunter ---------- */
.ldc-hero3--a .ldc-hero3__copy {
	padding: 30px var(--ldc-gutter) 26px;
}

.ldc-hero3--a .ldc-h1 {
	margin-bottom: 14px;
}

.ldc-hero3--a .ldc-lead {
	max-width: 30em;
	margin-bottom: 22px;
	font-size: clamp(17px, 4.6vw, 21px);
}

.ldc-hero3--a .ldc-hero3__media {
	margin: 0;
}

.ldc-hero3--a .ldc-art {
	--ldc-ar-m: 1 / 1.08;
}

.ldc-hero3 .ldc-actions {
	justify-content: flex-start;
}

@media (min-width: 1000px) {
	.ldc-hero3--a .ldc-hero3__grid {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
		align-items: center;
		max-width: 1320px;
		margin: 0 auto;
		min-height: min(86vh, 860px);
	}

	.ldc-hero3--a .ldc-hero3__copy {
		padding: 64px 56px 64px 6vw;
	}

	.ldc-hero3--a .ldc-art {
		max-height: none;
		height: min(86vh, 860px);
		aspect-ratio: auto;
	}
}

/* ---------- Hero B „Editorial“: Vollbild, Headline in der ruhigen Bildhälfte ---------- */
.ldc-hero3--b .ldc-hero3__stage {
	position: relative;
}

.ldc-hero3--b .ldc-art {
	--ldc-ar-m: 9 / 15.2;
	--ldc-pos-m: 50% 0%;
}

/* Flasche belegt mobil die rechte Bildhälfte → Textspalte bleibt in der linken Hälfte. */
.ldc-hero3--b .ldc-hero3__copy {
	position: absolute;
	inset: 0 auto auto 0;
	width: 50%;
	padding: 26px 0 0 var(--ldc-gutter);
}

.ldc-hero3--b .ldc-h1 {
	font-size: clamp(27px, 7.7vw, 40px);
	line-height: 1;
	margin-bottom: 12px;
}

.ldc-hero3--b .ldc-lead {
	font-size: clamp(14px, 3.9vw, 16px);
	line-height: 1.42;
	margin-bottom: 16px;
	color: var(--ldc-ink-2);
}

.ldc-hero3--b .ldc-actions {
	justify-content: flex-start;
}

.ldc-hero3--b .ldc-price {
	font-size: 14px;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	text-align: left;
}

.ldc-hero3--b .ldc-btn .wp-block-button__link {
	padding-inline: 26px;
}

.ldc-hero3--b .ldc-buyrow {
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.ldc-hero3--b .ldc-hero3__trust {
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
}

@media (min-width: 690px) and (max-width: 999.98px) {
	.ldc-hero3--b .ldc-art {
		--ldc-ar-m: 4 / 4.6;
	}

	.ldc-hero3--b .ldc-hero3__copy {
		width: 52%;
		padding: 56px 0 0 40px;
	}

	.ldc-hero3--b .ldc-h1 {
		font-size: 54px;
	}

	.ldc-hero3--b .ldc-lead {
		font-size: 18px;
	}
}

@media (min-width: 1000px) {
	.ldc-hero3--b .ldc-art {
		--ldc-ar-d: 16 / 9;
		--ldc-pos-d: 70% 30%;
		max-height: 88vh;
		min-height: 620px;
	}

	.ldc-hero3--b .ldc-hero3__copy {
		inset: 0 auto 0 0;
		display: flex;
		flex-direction: column;
		justify-content: center;
		width: min(46%, 640px);
		padding: 0 0 0 max(6vw, calc((100vw - 1320px) / 2));
	}

	.ldc-hero3--b .ldc-h1 {
		font-size: clamp(52px, 5.4vw, 84px);
	}

	.ldc-hero3--b .ldc-lead {
		font-size: 20px;
		max-width: 26em;
	}

	.ldc-hero3--b .ldc-buyrow {
		flex-direction: row;
		align-items: center;
		gap: 18px;
	}

	.ldc-hero3--b .ldc-hero3__trust {
		flex-direction: row;
		font-size: 14px;
	}
}

/* ---------- Wirkstoffe: große Zahl + Makro ---------- */
.ldc-v3 .ldc-ing {
	padding: 0;
	background: var(--ldc-warm);
}

.ldc-ing__grid {
	display: grid;
}

.ldc-ing__media .ldc-art {
	--ldc-ar-m: 4 / 4.4;
	--ldc-pos-m: 50% 18%;
}

.ldc-ing__copy {
	padding: 8px var(--ldc-gutter) var(--ldc-sec);
}

.ldc-stat {
	display: grid;
	gap: 6px;
	margin: 0 0 18px;
}

.ldc-stat__value {
	display: block;
	font-size: clamp(120px, 40vw, 240px);
	line-height: 0.82;
	letter-spacing: -0.07em;
	font-weight: 800;
	color: var(--ldc-ink);
	font-variant-numeric: lining-nums tabular-nums;
}

.ldc-stat__unit {
	font-size: 0.42em;
	letter-spacing: -0.03em;
	margin-left: 0.04em;
}

.ldc-stat__label {
	font-size: 15px;
	font-weight: 650;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ldc-ink-2);
}

.ldc-stat__note {
	font-size: 13px;
	line-height: 1.5;
	color: var(--ldc-ink-3);
}

.ldc-ing .ldc-stat {
	margin-top: -0.42em;
	position: relative;
	z-index: 1;
}

.ldc-ing__facts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px 18px;
	margin: 28px 0 0;
	padding: 24px 0 0;
	border-top: 1px solid var(--ldc-line);
}

.ldc-ing__facts .ldc-stat {
	margin: 0;
}

.ldc-ing__facts .ldc-stat__value {
	font-size: clamp(44px, 13vw, 64px);
	letter-spacing: -0.05em;
	line-height: 0.9;
}

.ldc-ing__facts .ldc-stat__label {
	font-size: 12px;
	letter-spacing: 0.08em;
}

.ldc-ing__facts .ldc-stat__note {
	font-size: 12.5px;
}

@media (min-width: 1000px) {
	.ldc-ing__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: center;
		max-width: 1320px;
		margin: 0 auto;
	}

	.ldc-ing__media .ldc-art {
		--ldc-ar-d: 4 / 5;
		height: 100%;
	}

	.ldc-ing__copy {
		padding: 72px 6vw 72px 64px;
	}

	.ldc-ing .ldc-stat {
		margin-top: 0;
	}

	.ldc-stat__value {
		font-size: clamp(160px, 15vw, 240px);
	}
}

/* ---------- Anwendung: große Schrittzahlen ---------- */
.ldc-steps3 {
	display: grid;
	gap: 0;
	margin: 8px 0 22px;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.ldc-steps3 li {
	display: grid;
	grid-template-columns: 5.4ch 1fr;
	align-items: baseline;
	gap: 14px;
	margin: 0;
	padding: 16px 0;
	border-top: 1px solid var(--ldc-line);
	font-size: 16px;
	line-height: 1.5;
	color: var(--ldc-ink-2);
}

.ldc-steps3 li:last-child {
	border-bottom: 1px solid var(--ldc-line);
}

.ldc-steps3 .ldc-steps3__num {
	font-size: 34px;
	line-height: 1;
	font-weight: 800;
	letter-spacing: -0.04em;
	color: var(--ldc-ink);
	white-space: nowrap;
}

.ldc-steps3 strong {
	display: block;
	color: var(--ldc-ink);
	font-weight: 650;
}

/* ---------- Kaufzweifel (Top-4 nach Clarity) ---------- */
.ldc-v3 .ldc-doubts .ldc-faq details {
	background: var(--ldc-bg);
}

.ldc-v3 .ldc-doubts .ldc-head {
	margin-bottom: 24px;
}

/* ---------- Abschluss: großes Produktbild + Kaufmodul ---------- */
.ldc-v3 .ldc-final3 {
	padding: 0;
	background: var(--ldc-warm);
}

.ldc-final3 .ldc-art {
	--ldc-ar-m: 1 / 1;
}

.ldc-final3__copy {
	padding: 36px var(--ldc-gutter) var(--ldc-sec);
}

.ldc-final3__copy .ldc-price {
	margin: 0 0 18px;
}

@media (min-width: 1000px) {
	.ldc-final3__grid {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: center;
		max-width: 1320px;
		margin: 0 auto;
	}

	.ldc-final3 .ldc-art {
		--ldc-ar-d: 1 / 1;
	}

	.ldc-final3__copy {
		padding: 72px 6vw 72px 72px;
	}
}

/* ---------- Ergebnisse früh: auf warmem Grund ruhiger ---------- */
.ldc-v3 .ldc-proof {
	background: var(--ldc-bg);
}

.ldc-v3 .ldc-section.is-panel {
	background: var(--ldc-warm);
}

/* ---------- Produktseite V3 ---------- */
.ldc-pdp.ldc-v3 .ldc-benefits3 {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.ldc-pdp.ldc-v3 .ldc-benefits3 li {
	margin: 0;
	padding: 7px 12px;
	border: 1px solid var(--ldc-line);
	border-radius: 999px;
	background: var(--ldc-warm);
	font-size: 13.5px;
	line-height: 1.3;
	font-weight: 600;
	color: var(--ldc-ink);
}

.ldc-pdp.ldc-v3 .ldc-story .ldc-ing {
	margin-inline: calc(-1 * var(--ldc-gutter));
}

/* Galerie: warmer Bildgrund für die V3-Motive */
.ldc-pdp.ldc-v3 .woocommerce-product-gallery .ct-media-container {
	background: var(--ldc-warm);
}

@media (prefers-reduced-motion: reduce) {
	.ldc-v3 * {
		scroll-behavior: auto;
	}
}

/* ---------- Korrekturen nach Browserprüfung Runde 1 ---------- */
/* V2-Regeln (.ldc-section .wp-block-buttons.ldc-actions, .ldc-buyrow > .ldc-price) zentrieren – im V3-Hero linksbündig. */
.ldc-v3 .ldc-hero3 .wp-block-buttons.ldc-actions {
	justify-content: flex-start;
}

.ldc-v3 .ldc-hero3 .ldc-buyrow > .ldc-price {
	align-self: flex-start;
	margin: 0;
}

/* Große Schrittzahlen: feste Spalte, damit „15–20“ den Text nie überlagert. */
.ldc-steps3 li {
	grid-template-columns: 6.2rem 1fr;
}

.ldc-steps3 .ldc-steps3__num {
	font-size: 30px;
}

/* Story-Inhalte laufen durch wpautop: Absatz-Hüllen um Shortcodes dürfen das Raster nicht belegen. */
.ldc-ing__facts > p,
.ldc-ing__copy > p:empty,
.ldc-art + br,
.ldc-ing__facts > br {
	display: contents;
}

.ldc-ing__facts > p:empty {
	display: none;
}

/* Hero A Desktop: Headline passt in die Textspalte, Umbruch nur an weichen Trennstellen. */
.ldc-v3 .ldc-h1 {
	overflow-wrap: normal;
	word-break: normal;
}

@media (min-width: 1000px) {
	.ldc-hero3--a .ldc-h1 {
		font-size: clamp(48px, 4.7vw, 72px);
	}
}

/* Runde 2: Kaufzeile in Hero A als Zeile (V2 setzt column + stretch); Button-Text nie umbrechen. */
.ldc-v3 .ldc-hero3--a .ldc-buyrow {
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
}

.ldc-v3 .ldc-hero3 .wp-block-button__link {
	white-space: nowrap;
}

@media (max-width: 379.98px) {
	.ldc-v3 .ldc-hero3--b .ldc-btn .wp-block-button__link {
		padding-inline: 20px;
		min-height: 50px;
		font-size: 16px;
	}
}

/* PDP-Story: V2 setzt Story-Sektionen seitlich auf 0 – der V3-Wirkstoffteil braucht den Rand. */
body.ldc-pdp.ldc-v3 .ldc-story .ldc-ing .ldc-ing__copy {
	padding-left: var(--ldc-gutter);
	padding-right: var(--ldc-gutter);
}

@media (min-width: 1000px) {
	body.ldc-pdp.ldc-v3 .ldc-story .ldc-ing .ldc-ing__copy {
		padding: 56px 48px;
	}
}

/* Runde 3 (Performance): Preis wird nach dem Laden aktualisiert (Länderpreise) – Höhe der Kaufzeile fixieren, damit nichts verschiebt. */
.ldc-v3 .ldc-hero3--a .ldc-buyrow {
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.ldc-v3 .ldc-hero3 .ldc-price {
	white-space: nowrap;
	min-height: 1.6em;
}

.ldc-v3 .ldc-hero3--b .ldc-price {
	min-height: 3.1em;
}
