/* =========================================================================
   LADUTI Conversion – Designschicht V4 „Refinement“
   Nur aktiv auf body.ldc-v4 (Startseite V4 per Seiten-Meta, alternative Produktseite per ?ldc=v4).
   Baut auf ldc.css + ldc-v3.css auf: Typografie, Zahlen, Bildwelt und Farben bleiben, neu sind
   der mobil komponierte Hero, die Wirkstoff-Kette, die Produktseite V4 und die Sticky-Kaufleiste.
   ========================================================================= */

body.ldc-v4 {
	--ldc-hdr: 0px; /* Höhe Kopfbereich (wird unten je Breite gesetzt) */
}

/* ---------- Hero V4: für das iPhone komponiert – Headline, Flasche mittig, Kaufzeile ---------- */
.ldc-v4 .ldc-hero4 {
	display: flex;
	flex-direction: column;
	min-height: calc(100svh - var(--ldc-hdr));
	padding: 0;
	background: var(--ldc-warm);
	color: var(--ldc-ink);
	text-align: center;
	overflow: hidden;
}

.ldc-hero4__copy {
	padding: 22px var(--ldc-gutter) 18px;
}

.ldc-v4 .ldc-hero4 .ldc-eyebrow {
	margin: 0 0 12px;
	font-size: 11.5px;
	letter-spacing: 0.15em;
}

/* Zwei Sätze, zwei Zeilen: Größe so gewählt, dass „Gegen Haarausfall.“ in eine Zeile passt.
   Längere Übersetzungen umbrechen ausgewogen, ohne Silbentrennung. */
.ldc-v4 .ldc-hero4__title {
	margin: 0 auto 12px;
	font-size: clamp(31px, 10.2vw, 52px);
	line-height: 0.98;
	letter-spacing: -0.048em;
	text-wrap: balance;
	hyphens: manual;
}

.ldc-hero4__title span {
	display: block;
}

.ldc-v4 .ldc-hero4 .ldc-lead {
	max-width: 24em;
	margin: 0 auto;
	font-size: clamp(15px, 4.1vw, 18px);
	line-height: 1.4;
	text-wrap: balance;
}

/* Bild füllt den verbleibenden Raum des ersten Bildschirms; die Flasche bleibt mittig und vollständig. */
.ldc-hero4__media {
	position: relative;
	flex: 1 1 0;
	min-height: 250px;
	margin: 0;
}

.ldc-hero4__media .ldc-art {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
}

.ldc-hero4__media .ldc-art .ldc-art__img {
	object-position: 50% 52%;
}

.ldc-buy4 {
	padding: 16px var(--ldc-gutter) 18px;
}

.ldc-v4 .ldc-buy4__row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
}

.ldc-v4 .ldc-buy4 .ldc-price {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1px;
	min-height: 2.9em;
	margin: 0;
	font-size: 14px;
	line-height: 1.35;
	text-align: left;
	white-space: nowrap;
}

.ldc-v4 .ldc-buy4 .ldc-price .ldc-price__note {
	order: 2;
	color: var(--ldc-ink-3);
}

.ldc-v4 .ldc-buy4 .ldc-actions {
	margin: 0;
	justify-content: center;
}

.ldc-v4 .ldc-buy4 .ldc-btn .wp-block-button__link {
	min-height: 54px;
	padding-inline: 30px;
	font-size: 17px;
	white-space: nowrap;
}

.ldc-v4 .ldc-buy4__trust {
	justify-content: center;
	margin-top: 12px;
	font-size: 13px;
	gap: 4px 16px;
}

@media (max-width: 374.98px) {
	.ldc-v4 .ldc-buy4__row {
		gap: 12px;
	}

	.ldc-v4 .ldc-buy4 .ldc-btn .wp-block-button__link {
		padding-inline: 22px;
		font-size: 16px;
	}
}

/* Tablet: mehr Luft, größere Headline */
@media (min-width: 690px) and (max-width: 999.98px) {
	.ldc-hero4__copy {
		padding: 44px 40px 26px;
	}

	.ldc-v4 .ldc-hero4__title {
		font-size: 68px;
	}

	.ldc-hero4__media {
		min-height: 420px;
	}

	.ldc-buy4 {
		padding: 22px 40px 28px;
	}
}

/* Desktop: Bild randlos 16:9, Text und Kaufzeile links in der ruhigen Bildhälfte */
@media (min-width: 1000px) {
	.ldc-v4 .ldc-hero4 {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: 1fr auto auto 1fr;
		min-height: 0;
		height: min(88vh, 56.25vw);
		min-height: 620px;
		text-align: left;
	}

	.ldc-hero4__media {
		grid-area: 1 / 1 / -1 / -1;
		min-height: 0;
	}

	.ldc-hero4__media .ldc-art .ldc-art__img {
		object-position: 62% 50%;
	}

	.ldc-hero4__copy,
	.ldc-buy4 {
		position: relative;
		z-index: 1;
		grid-column: 1;
		width: min(48%, 680px);
		padding-left: max(6vw, calc((100vw - 1320px) / 2));
		padding-right: 0;
	}

	.ldc-hero4__copy {
		grid-row: 2;
		padding-top: 0;
		padding-bottom: 26px;
	}

	.ldc-buy4 {
		grid-row: 3;
		padding-top: 0;
		padding-bottom: 0;
	}

	.ldc-v4 .ldc-hero4__title {
		margin: 0 0 16px;
		max-width: none;
		font-size: clamp(56px, 5.4vw, 86px);
	}

	.ldc-v4 .ldc-hero4 .ldc-lead {
		margin: 0;
		font-size: 20px;
	}

	.ldc-v4 .ldc-buy4__row,
	.ldc-v4 .ldc-buy4__trust {
		justify-content: flex-start;
	}

	.ldc-v4 .ldc-buy4__row {
		flex-direction: row-reverse;
		gap: 22px;
	}
}

/* ---------- Wirkstoffe V4: Problem → Ansatz → Bedeutung ---------- */
.ldc-chain {
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: ldc-chain;
}

.ldc-chain__step {
	position: relative;
	margin: 0;
	padding: 18px 0 18px 46px;
	border-top: 1px solid var(--ldc-line);
	counter-increment: ldc-chain;
}

.ldc-chain__step::before {
	content: "0" counter(ldc-chain);
	position: absolute;
	left: 0;
	top: 19px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--ldc-ink-3);
	font-variant-numeric: tabular-nums;
}

.ldc-chain__k {
	display: block;
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ldc-ink);
}

.ldc-chain__t {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--ldc-ink-2);
}

.ldc-chain__step--result {
	border-bottom: 1px solid var(--ldc-line);
}

.ldc-chain .ldc-stat {
	margin: 6px 0 0;
}

.ldc-chain .ldc-stat__value {
	font-size: clamp(76px, 24vw, 132px);
	line-height: 0.86;
	letter-spacing: -0.06em;
}

.ldc-chain .ldc-stat__label {
	font-size: 15px;
	letter-spacing: 0;
	text-transform: none;
	font-weight: 650;
	color: var(--ldc-ink);
}

.ldc-ing4__free {
	display: grid;
	grid-template-columns: repeat(3, auto);
	justify-content: start;
	gap: 8px 22px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: var(--ldc-ink-2);
}

.ldc-ing4__free li {
	margin: 0;
}

.ldc-ing4__free strong {
	display: block;
	font-size: 28px;
	line-height: 1;
	letter-spacing: -0.04em;
	font-weight: 800;
	color: var(--ldc-ink);
}

@media (max-width: 374.98px) {
	.ldc-ing4__free {
		gap: 8px 16px;
	}

	.ldc-ing4__free strong {
		font-size: 24px;
	}
}

/* ---------- Kaufzweifel V4: Antworten beginnen mit der Kernaussage ---------- */
.ldc-v4 .ldc-doubts4 .ldc-faq details p strong {
	color: var(--ldc-ink);
}

/* ---------- Sticky-Kaufleiste (mobil) ---------- */
.ldc-sticky {
	position: fixed;
	left: 10px;
	right: 10px;
	bottom: calc(10px + env(safe-area-inset-bottom));
	z-index: 90;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 8px 8px 16px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.86);
	-webkit-backdrop-filter: saturate(1.6) blur(18px);
	backdrop-filter: saturate(1.6) blur(18px);
	box-shadow: 0 10px 30px rgba(20, 16, 12, 0.16), 0 0 0 1px rgba(20, 16, 12, 0.06);
	transform: translateY(140%);
	transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ldc-sticky[hidden] {
	display: none;
}

.ldc-sticky.is-on {
	transform: none;
}

.ldc-sticky__info {
	display: grid;
	min-width: 0;
	flex: 1;
	line-height: 1.25;
}

.ldc-sticky__name {
	overflow: hidden;
	font-size: 13px;
	font-weight: 650;
	color: #121212;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.ldc-sticky__price,
.ldc-sticky__price .price {
	margin: 0;
	font-size: 13px;
	color: #4c4a47;
	white-space: nowrap;
}

.ldc-sticky__price del {
	opacity: 0.6;
	margin-right: 4px;
}

.ldc-sticky__price ins {
	text-decoration: none;
	font-weight: 700;
	color: #121212;
}

.ldc-sticky .ldc-atc {
	margin: 0;
}

.ldc-sticky__btn,
.ldc-atc__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--ldc-accent);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
}

.ldc-sticky__btn:hover,
.ldc-atc__btn:hover {
	background: var(--ldc-accent-hover);
	color: #fff;
}

@media (min-width: 1000px) {
	.ldc-sticky {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ldc-sticky {
		transition: none;
	}
}

/* =========================================================================
   Produktseite V4 (Template pdp-v4.php)
   ========================================================================= */
.ldc-v4-pdp .ct-floating-bar {
	display: none !important; /* ersetzt durch die Sticky-Kaufleiste */
}

.ldc4 {
	background: var(--ldc-bg);
	color: var(--ldc-ink);
}

.ldc4-notices:not(:empty) {
	max-width: 1320px;
	margin: 0 auto;
	padding: 12px var(--ldc-gutter) 0;
}

/* ---------- Galerie: randlos, wischbar, 4:5 ---------- */
.ldc4-gallery {
	position: relative;
	background: var(--ldc-warm);
}

.ldc4-gallery__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
	outline: none;
}

.ldc4-gallery__track::-webkit-scrollbar {
	display: none;
}

.ldc4-slide {
	position: relative;
	flex: 0 0 100%;
	aspect-ratio: 4 / 5;
	margin: 0;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	overflow: hidden;
	background: var(--ldc-warm);
}

.ldc4-slide__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Vorher/Nachher: Original vollständig sichtbar (kein Beschnitt), Beschriftung in den freien Flächen. */
.ldc4-slide--ba {
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: #1a1816;
	color: #f4f1ec;
}

.ldc4-slide--ba .ldc4-slide__img {
	height: auto;
	object-fit: contain;
}

.ldc4-ba__tags {
	display: grid;
	grid-template-columns: 1fr 1fr;
	padding: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-align: center;
}

.ldc4-ba__cap {
	padding: 14px var(--ldc-gutter) 0;
	font-size: 13px;
	line-height: 1.4;
	text-align: center;
	color: rgba(244, 241, 236, 0.78);
}

.ldc4-ba__cap strong {
	display: block;
	margin-bottom: 2px;
	font-size: 15px;
	color: #fff;
}

.ldc4-gallery__ui {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.82);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.ldc4-gallery__count {
	min-width: 3.4em;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	color: #121212;
	font-variant-numeric: tabular-nums;
}

.ldc4-gallery__nav {
	display: inline-grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #121212;
	cursor: pointer;
}

.ldc4-gallery__nav::before {
	content: "";
	width: 8px;
	height: 8px;
	border: solid currentColor;
	border-width: 0 0 2px 2px;
	transform: translateX(2px) rotate(45deg);
}

.ldc4-gallery__nav[data-dir="1"]::before {
	transform: translateX(-2px) rotate(-135deg);
}

.ldc4-gallery__nav:hover {
	background: rgba(0, 0, 0, 0.06);
}

.ldc4-gallery__thumbs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 10px var(--ldc-gutter) 0;
	background: var(--ldc-bg);
	scrollbar-width: none;
}

.ldc4-gallery__thumbs::-webkit-scrollbar {
	display: none;
}

.ldc4-thumb {
	position: relative;
	flex: 0 0 56px;
	height: 56px;
	padding: 0;
	border: 1.5px solid transparent;
	border-radius: 12px;
	overflow: hidden;
	background: var(--ldc-warm);
	cursor: pointer;
}

.ldc4-thumb[aria-selected="true"] {
	border-color: var(--ldc-ink);
}

.ldc4-thumb__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ldc4-thumb.is-ba::after {
	content: "Vorher / Nachher";
	position: absolute;
	inset: auto 0 0;
	padding: 2px 0;
	background: rgba(0, 0, 0, 0.62);
	color: #fff;
	font-size: 7.5px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.2;
	text-align: center;
}

/* ---------- Kaufbereich ---------- */
.ldc4-buy {
	padding: 22px var(--ldc-gutter) 34px;
}

.ldc4-buy .ldc-eyebrow {
	margin: 0 0 10px;
	font-size: 11.5px;
	letter-spacing: 0.15em;
	color: var(--ldc-ink-3);
}

.ldc4-buy__title {
	margin: 0;
	font-size: clamp(34px, 9.4vw, 52px);
	line-height: 1;
	letter-spacing: -0.045em;
	font-weight: 800;
	color: var(--ldc-ink);
}

.ldc4-buy__claim {
	margin: 8px 0 12px;
	font-size: clamp(19px, 5.2vw, 24px);
	line-height: 1.2;
	letter-spacing: -0.02em;
	font-weight: 650;
	color: var(--ldc-ink);
}

.ldc-rating {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	font-size: 14px;
	color: var(--ldc-ink-2);
	text-decoration: none;
}

.ldc-rating__stars {
	position: relative;
	width: 86px;
	height: 16px;
	background: linear-gradient(90deg, var(--ldc-star, #e3a02f) var(--ldc-rate), #d9d4cc var(--ldc-rate));
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 86 16'%3E%3Cg fill='black'%3E%3Cpath id='s' d='M8 0l2.35 4.95 5.4.7-3.95 3.75 1 5.35L8 12.15 3.2 14.75l1-5.35L.25 5.65l5.4-.7z'/%3E%3Cuse href='%23s' x='17.5'/%3E%3Cuse href='%23s' x='35'/%3E%3Cuse href='%23s' x='52.5'/%3E%3Cuse href='%23s' x='70'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 86px 16px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 86 16'%3E%3Cg fill='black'%3E%3Cpath id='s' d='M8 0l2.35 4.95 5.4.7-3.95 3.75 1 5.35L8 12.15 3.2 14.75l1-5.35L.25 5.65l5.4-.7z'/%3E%3Cuse href='%23s' x='17.5'/%3E%3Cuse href='%23s' x='35'/%3E%3Cuse href='%23s' x='52.5'/%3E%3Cuse href='%23s' x='70'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 86px 16px no-repeat;
}

.ldc-rating__val {
	font-weight: 650;
	color: var(--ldc-ink);
}

.ldc-rating__link {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ldc4-buy__lead {
	margin: 0 0 18px;
	font-size: 15.5px;
	line-height: 1.5;
	color: var(--ldc-ink-2);
}

.ldc4-buy__panel {
	padding: 18px;
	border-radius: var(--ldc-radius);
	background: var(--ldc-warm);
}

.ldc4-buy__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 12px;
	margin: 0 0 14px;
}

.ldc4-buy__price .price {
	margin: 0;
	font-size: 26px;
	line-height: 1.1;
	font-weight: 750;
	letter-spacing: -0.02em;
	color: var(--ldc-ink);
	min-height: 1.15em;
}

.ldc4-buy__price .price del {
	margin-right: 6px;
	font-size: 16px;
	font-weight: 500;
	color: var(--ldc-ink-3);
}

.ldc4-buy__price .price ins {
	text-decoration: none;
}

.ldc4-buy__pack {
	font-size: 13.5px;
	color: var(--ldc-ink-2);
}

/* Original-Warenkorbformular: Menge + großer Button */
.ldc4-buy form.cart {
	display: flex;
	gap: 10px;
	margin: 0 0 16px;
}

.ldc4-buy form.cart .quantity {
	flex: none;
	margin: 0;
}

.ldc4-buy form.cart .quantity .qty {
	width: 64px;
	height: 56px;
	border: 1px solid var(--ldc-line);
	border-radius: 16px;
	background: #fff;
	font-size: 16px;
	text-align: center;
}

.ldc4-buy form.cart .single_add_to_cart_button {
	flex: 1;
	min-height: 56px;
	margin: 0;
	border-radius: 999px;
	background: var(--ldc-accent);
	color: #fff;
	font-size: 17px;
	font-weight: 600;
}

.ldc4-buy form.cart .single_add_to_cart_button:hover {
	background: var(--ldc-accent-hover);
}

.ldc4-assure {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 14px 0 0;
	border-top: 1px solid var(--ldc-line);
	list-style: none;
	font-size: 13px;
	line-height: 1.35;
	color: var(--ldc-ink-2);
}

.ldc4-assure li {
	display: grid;
	grid-template-columns: 22px 1fr;
	column-gap: 10px;
	margin: 0;
}

.ldc4-assure li::before {
	content: "";
	grid-row: span 2;
	width: 22px;
	height: 22px;
	background: var(--ldc-ink);
	-webkit-mask: var(--i) center / 22px no-repeat;
	mask: var(--i) center / 22px no-repeat;
}

.ldc4-assure strong {
	color: var(--ldc-ink);
	font-weight: 650;
}

.ldc4-assure__derma {
	--i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8.3-7 10-4-1.7-7-5.5-7-10V6l7-3z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
}

.ldc4-assure__ship {
	--i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h11v9H3z'/%3E%3Cpath d='M14 10h4l3 3v3h-7'/%3E%3Ccircle cx='7' cy='17.5' r='1.6'/%3E%3Ccircle cx='17' cy='17.5' r='1.6'/%3E%3C/svg%3E");
}

.ldc4-assure__pay {
	--i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='12' rx='2'/%3E%3Cpath d='M3 10h18M7 15h3'/%3E%3C/svg%3E");
}

.ldc4-assure strong {
	display: block;
}

.ldc4-buy__more {
	margin-top: 22px;
}

.ldc4-buy__more-title {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ldc-ink-3);
}

/* ---------- Redaktionelle Sektionen auf der PDP ---------- */
.ldc4-content > .ldc-section,
.ldc4-content > .wp-block-group.ldc-section {
	margin: 0;
}

.ldc4-content .ldc-ing .ldc-ing__copy {
	padding-left: var(--ldc-gutter);
	padding-right: var(--ldc-gutter);
}

.ldc4-content .ldc-final4 .ldc-price {
	margin: 0 0 16px;
}

.ldc-final4__atc .ldc-atc__btn {
	min-height: 56px;
	padding: 0 34px;
	font-size: 17px;
}

/* ---------- Details: WooCommerce-Tabs (Beschreibung, Zusatzinfos, Bewertungen) ---------- */
.ldc4-details {
	padding: var(--ldc-sec) var(--ldc-gutter);
	background: var(--ldc-bg);
	border-top: 1px solid var(--ldc-line);
}

.ldc4-details__inner {
	max-width: 880px;
	margin: 0 auto;
}

.ldc4-details .ldc-h2 {
	margin-bottom: 24px;
}

.ldc4-details .woocommerce-tabs ul.tabs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	margin: 0 0 20px;
	padding: 0;
	border: 0;
	list-style: none;
}

.ldc4-details .woocommerce-tabs ul.tabs li {
	margin: 0;
	border: 0;
}

.ldc4-details .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 9px 16px;
	border: 1px solid var(--ldc-line);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ldc-ink);
	white-space: nowrap;
}

.ldc4-details .woocommerce-tabs ul.tabs li.active a {
	border-color: var(--ldc-ink);
	background: var(--ldc-ink);
	color: #fff;
}

/* ---------- Desktop: Galerie links (mitlaufend), Kaufbereich rechts ---------- */
@media (min-width: 1000px) {
	.ldc4-top {
		display: grid;
		grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
		gap: 56px;
		align-items: start;
		max-width: 1320px;
		margin: 0 auto;
		padding: 36px 48px 72px;
	}

	.ldc4-gallery {
		position: sticky;
		top: calc(var(--ldc-hdr) + 24px);
		background: transparent;
	}

	.ldc4-gallery__track {
		border-radius: 28px;
	}

	.ldc4-gallery__thumbs {
		padding: 14px 0 0;
		background: transparent;
	}

	.ldc4-thumb {
		flex-basis: 72px;
		height: 72px;
	}

	.ldc4-buy {
		padding: 24px 0 0;
	}

	.ldc4-buy__title {
		font-size: 56px;
	}

	.ldc4-buy__claim {
		font-size: 26px;
	}

	.ldc4-buy__panel {
		padding: 24px;
	}
}

/* ---------- Kopfhöhe je Breite (Blocksy-Header + Testsieger-Zeile), für den Hero im ersten Bildschirm ---------- */
body.ldc-v4 {
	--ldc-hdr: 74px;
}

@media (min-width: 1000px) {
	body.ldc-v4 {
		--ldc-hdr: 122px;
	}
}

/* ---------- Runde 1 (Browserprüfung) ---------- */
.ldc-hero4 .ldc-lead span,
.ldc4-buy__claim span {
	display: block;
}

@media (min-width: 1000px) {
	.ldc-hero4 .ldc-lead span {
		display: inline;
	}
}

.ldc-hero4__media .ldc-art,
.ldc-hero4__media .ldc-art img {
	border-radius: 0;
	box-shadow: none;
}

/* Galerie-Bühne: Zähler/Pfeile liegen auf dem Bild, nicht auf den Thumbnails */
.ldc4-gallery__stage {
	position: relative;
}

.ldc4-thumb.is-ba::after {
	content: "V | N";
	font-size: 9px;
	letter-spacing: 0.06em;
}

/* Kein Abstand zwischen Kopf und Galerie */
.ldc-v4-pdp .site-main > .ldc4,
.ldc-v4-pdp #main {
	padding-top: 0;
	margin-top: 0;
}

/* Mengenfeld: Blocksy-Steuerung beibehalten, nur Höhe angleichen */
.ldc4-buy form.cart .quantity .qty {
	width: auto;
	height: auto;
	border: 0;
	background: transparent;
}

.ldc4-buy form.cart .quantity {
	--quantity-height: 56px;
	--quantity-width: 104px;
	border-radius: 16px;
	background: #fff;
}

/* Beschreibung (SEO-Text) eingeklappt, mit „Weiterlesen“ */
.ldc4-details .woocommerce-Tabs-panel--description.is-clamped {
	position: relative;
	max-height: 520px;
	overflow: hidden;
}

.ldc4-details .woocommerce-Tabs-panel--description.is-clamped::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 160px;
	background: linear-gradient(rgba(255, 255, 255, 0), #fff);
	pointer-events: none;
}

.ldc4-more {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin: 8px 0 0;
	padding: 0 20px;
	border: 1px solid var(--ldc-ink);
	border-radius: 999px;
	background: transparent;
	color: var(--ldc-ink);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.ldc4-details .woocommerce-tabs ul.tabs li a {
	text-transform: none;
	letter-spacing: 0;
}

.ldc4-details .woocommerce-tabs ul.tabs::before,
.ldc4-details .woocommerce-tabs ul.tabs li::before,
.ldc4-details .woocommerce-tabs ul.tabs li::after {
	display: none;
}

/* Runde 2: Headline-Größe an die Textbreite (ohne Rand) koppeln – jeder Satz eine Zeile von 360 bis 430 px. */
.ldc-v4 .ldc-hero4__title {
	font-size: clamp(30px, calc((100vw - 2 * var(--ldc-gutter)) * 0.112), 52px);
}

@media (max-width: 379.98px) {
	.ldc-v4 .ldc-hero4 .ldc-eyebrow,
	.ldc4-buy .ldc-eyebrow {
		letter-spacing: 0.1em;
	}
}

@media (min-width: 690px) and (max-width: 999.98px) {
	.ldc-v4 .ldc-hero4__title {
		font-size: 68px;
	}
}

@media (min-width: 1000px) {
	.ldc-v4 .ldc-hero4__title {
		font-size: clamp(56px, 5.4vw, 86px);
	}
}

/* Runde 3: Mengenfeld – Eingabe füllt die Blocksy-Steuerung (sonst steht die Zahl außerhalb) */
.ldc4-buy form.cart .quantity .qty {
	width: 100%;
	color: var(--ldc-ink);
}

@media (min-width: 1000px) {
	/* Desktop-Hero: breitere Textspalte, Headline in zwei Zeilen, Button vor dem Preis */
	.ldc-hero4__copy,
	.ldc-buy4 {
		width: min(56%, 820px);
	}

	.ldc-v4 .ldc-hero4__title {
		font-size: clamp(50px, 4.4vw, 74px);
	}

	.ldc-hero4 .ldc-lead span {
		display: block;
	}

	.ldc-v4 .ldc-buy4__row {
		flex-direction: row;
		justify-content: flex-start;
	}

	.ldc-v4 .ldc-buy4 .ldc-actions {
		order: -1;
	}
}

/* Tablet (768–999 px): Galerie und Kaufbereich nebeneinander statt 4:5-Bild über die volle Höhe */
@media (min-width: 768px) and (max-width: 999.98px) {
	.ldc4-top {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 28px;
		align-items: start;
		padding: 24px 32px 56px;
	}

	.ldc4-gallery {
		position: sticky;
		top: 90px;
		background: transparent;
	}

	.ldc4-gallery__track {
		border-radius: 22px;
	}

	.ldc4-gallery__thumbs {
		padding: 10px 0 0;
		background: transparent;
	}

	.ldc4-buy {
		padding: 8px 0 0;
	}
}

/* Runde 4 (CLS): Vertrauenszeile bleibt auch bei 360 px einzeilig – kein Umbruch nach dem Laden der Webschrift */
.ldc-v4 .ldc-buy4__trust li {
	white-space: nowrap;
}

@media (max-width: 379.98px) {
	.ldc-v4 .ldc-buy4__trust {
		gap: 4px 12px;
		font-size: 12px;
	}

	.ldc-v4 .ldc-buy4__trust li {
		gap: 5px;
	}

	.ldc-v4 .ldc-buy4__trust li::before {
		width: 13px;
		height: 13px;
	}
}

/* Runde 4: Button-Text einzeilig, Tabs als ruhige Pillen-Reihe */
.ldc4-buy form.cart .single_add_to_cart_button {
	padding-inline: 16px;
	white-space: nowrap;
}

.ldc4-details .woocommerce-tabs ul.tabs {
	flex-direction: row;
	flex-wrap: nowrap;
	scrollbar-width: none;
}

.ldc4-details .woocommerce-tabs ul.tabs li {
	flex: none;
	width: auto;
}

.ldc4-details .woocommerce-tabs ul.tabs li a {
	padding: 9px 16px;
	background: transparent;
}

.ldc4-details .woocommerce-tabs ul.tabs li.active a {
	background: var(--ldc-ink);
	color: #fff;
}

/* Runde 4: Desktop – Makro läuft neben der längeren Wirkstoff-Kette mit */
@media (min-width: 1000px) {
	.ldc-ing4 .ldc-ing__grid {
		align-items: start;
	}

	.ldc-ing4 .ldc-ing__media {
		position: sticky;
		top: 100px;
	}
}
