/* =========================================================================
   LADUTI Shop S3 – die ursprüngliche Shopübersicht auf V8-Niveau (/shop/?ldc=s3)
   Prinzip der bisherigen Seite: ein Angebot nach dem anderen, echte Produktfotos, kaum Text.
   Werte wie V8: Ink #121212, Ink-2 #4c4a47, Ink-3 #75716b, Blau #1f68ea, Überschriften 800 / −0,045em,
   Radien 20/24 px, Container 1320 px. Kachelfarbe = Hintergrund der Produktfotos (#f5f5f7),
   dadurch stehen die Produkte nahtlos in der Kachel. Kopfzeile und Footer: V8, unverändert.
   ========================================================================= */
body.ldc-shop-s3 {
	--sx-ink: #121212;
	--sx-ink-2: #4c4a47;
	--sx-ink-3: #75716b;
	--sx-tile: #f5f5f7;
	--sx-accent: #1f68ea;
	--sx-accent-h: #1757cc;
	background: #fff;
}

/* V8: Testsieger-Leiste im Kopf aus */
body.ldc-shop-s3 #header [data-row="bottom"] {
	display: none !important;
}

.ldcx {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 16px 16px;
	color: var(--sx-ink);
}

.ldcx-notices:empty {
	display: none;
}

.ldcx-notices > :not(:empty) {
	padding-top: 14px;
}

/* ---------- Einstieg ---------- */
.ldcx-head {
	padding: 22px 2px 18px;
}

.ldcx-title {
	margin: 0;
	font-size: 36px;
	line-height: 1;
	letter-spacing: -0.045em;
	font-weight: 800;
	color: var(--sx-ink);
}

.ldcx-lead {
	margin: 8px 0 0;
	font-size: 15.5px;
	line-height: 1.4;
	color: var(--sx-ink-2);
}

/* ---------- Angebote: eines nach dem anderen ---------- */
body.ldc-shop-s3 ul.products.ldcx-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.ldc-shop-s3 ul.products.ldcx-grid::before,
body.ldc-shop-s3 ul.products.ldcx-grid::after {
	display: none;
}

body.ldc-shop-s3 ul.products.ldcx-grid > li.product.ldcx-card {
	display: flex;
	flex-direction: column;
	float: none;
	width: auto;
	min-width: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border-radius: 22px;
	background: var(--sx-tile);
	text-align: left;
	scroll-margin-top: 80px;
}

/* Bildfläche: das unveränderte Produktfoto, nur positioniert und skaliert (Variablen aus shop3.php) */
.ldcx-card__media {
	position: relative;
	display: block;
	aspect-ratio: 5 / 3.7;
	overflow: hidden;
	container-type: inline-size;
}

body.ldc-shop-s3 .ldcx-card__media .ldcx-card__img {
	position: absolute;
	left: var(--px, 50%);
	top: var(--py, 50%);
	width: calc(var(--s, 1) * 100%);
	max-width: none;
	height: auto;
	transform: translate(var(--cx, -50%), var(--cy, -50%));
	/* Bildränder (auslaufende Bodenschatten) weich in die Kachel überführen */
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

/* Kauf 4, zahl 3: Menge typografisch statt Aufkleber */
.ldcx-card__mark {
	position: absolute;
	left: 8%;
	top: 50%;
	z-index: 1;
	transform: translateY(-50%);
	font-size: 62px; /* Rückfall ohne Container-Einheiten */
	font-size: 18.5cqw;
	line-height: 1;
	letter-spacing: -0.06em;
	font-weight: 800;
	color: var(--sx-ink);
	white-space: nowrap;
}

.ldcx-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	padding: 0 20px 20px;
}

body.ldc-shop-s3 .ldcx-card__title {
	margin: 0;
	padding: 0;
	font-size: 22px;
	line-height: 1.15;
	letter-spacing: -0.03em;
	font-weight: 750;
}

body.ldc-shop-s3 .ldcx-card__title a {
	color: var(--sx-ink);
	text-decoration: none;
}

.ldcx-card__info {
	margin: 4px 0 0;
	font-size: 14.5px;
	line-height: 1.4;
	color: var(--sx-ink-2);
}

.ldcx-card__buy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin-top: auto;
	padding-top: 12px;
}

body.ldc-shop-s3 .ldcx-card__buy .price {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 8px;
	margin: 0;
	font-size: 19px;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--sx-ink);
}

body.ldc-shop-s3 .ldcx-card__buy .price > *,
body.ldc-shop-s3 .ldcx-card__buy .price .sale-price {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 8px;
}

body.ldc-shop-s3 .ldcx-card__buy .price ins {
	order: -1;
	background: none;
	text-decoration: none;
}

body.ldc-shop-s3 .ldcx-card__buy .price del {
	font-size: 14px;
	font-weight: 450;
	letter-spacing: 0;
	color: var(--sx-ink-3);
	opacity: 1;
}

/* Angebotsvorteil: dezent, aus echten Preisen berechnet */
.ldcx-card__benefit {
	margin-top: 2px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--sx-ink-2);
}

.ldcx-card__actions {
	display: flex;
	align-items: center;
	align-self: stretch;
	gap: 6px;
	margin-top: 16px;
}

body.ldc-shop-s3 .ldcx-card__actions a.button.ldcx-atc {
	display: inline-flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin: 0;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--sx-accent);
	box-shadow: none;
	color: #fff;
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
}

body.ldc-shop-s3 .ldcx-card__actions a.button.ldcx-atc:hover {
	background: var(--sx-accent-h);
	color: #fff;
}

body.ldc-shop-s3 .ldcx-card__actions a.button.ldcx-atc.loading {
	opacity: 0.7;
}

body.ldc-shop-s3 .ldcx-card__more {
	display: inline-flex;
	flex: none;
	align-items: center;
	min-height: 46px;
	padding: 0 14px 0 16px;
	font-size: 15.5px;
	font-weight: 600;
	color: var(--sx-accent);
	text-decoration: none;
	white-space: nowrap;
}

body.ldc-shop-s3 .ldcx-card__more::after {
	content: "";
	width: 7px;
	height: 7px;
	margin-left: 6px;
	border-top: 1.8px solid currentColor;
	border-right: 1.8px solid currentColor;
	transform: rotate(45deg);
}

body.ldc-shop-s3 .ldcx-card a.added_to_cart,
body.ldc-shop-s3 .ldcx-card .laduti-urgency {
	display: none !important; /* Weiterleitung zum Warenkorb ist aktiv; Snippet 103 (fester Balken) nicht anzeigen */
}

@media (hover: hover) {
	body.ldc-shop-s3 .ldcx-card__title a:hover,
	body.ldc-shop-s3 .ldcx-card__more:hover {
		color: var(--sx-accent-h);
	}
}

/* ---------- Tablet: zwei Spalten ---------- */
@media (min-width: 690px) {
	.ldcx {
		padding: 0 clamp(24px, 3.4vw, 48px) 24px;
	}

	.ldcx-head {
		padding: 36px 2px 26px;
	}

	.ldcx-title {
		font-size: 48px;
	}

	.ldcx-lead {
		font-size: 17px;
	}

	body.ldc-shop-s3 ul.products.ldcx-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	body.ldc-shop-s3 ul.products.ldcx-grid > li.product.ldcx-card {
		border-radius: 24px;
	}

	.ldcx-card__body {
		padding: 0 24px 24px;
	}
}

/* ---------- Desktop ---------- */
@media (min-width: 1000px) {
	.ldcx {
		padding-bottom: 32px;
	}

	.ldcx-head {
		display: flex;
		align-items: baseline;
		gap: 22px;
		padding: 52px 2px 30px;
	}

	.ldcx-title {
		font-size: 56px;
	}

	.ldcx-lead {
		margin: 0;
		font-size: 19px;
	}

	body.ldc-shop-s3 ul.products.ldcx-grid {
		gap: 20px;
	}

	body.ldc-shop-s3 ul.products.ldcx-grid > li.product.ldcx-card {
		border-radius: 28px;
	}

	body.ldc-shop-s3 .ldcx-card__title {
		font-size: 26px;
		letter-spacing: -0.035em;
	}

	.ldcx-card__info {
		margin-top: 6px;
		font-size: 15.5px;
	}

	.ldcx-card__body {
		padding: 0 32px 32px;
	}

	body.ldc-shop-s3 .ldcx-card__buy .price {
		font-size: 22px;
	}

	.ldcx-card__actions {
		margin-top: 20px;
	}

	body.ldc-shop-s3 .ldcx-card__actions a.button.ldcx-atc {
		flex: 0 1 auto;
		min-height: 48px;
		padding: 0 28px;
	}
}

/* ---------- Großer Desktop: 2 × 2, Produkt neben Text – alle vier Angebote im ersten Bildschirm ---------- */
@media (min-width: 1280px) {
	body.ldc-shop-s3 ul.products.ldcx-grid > li.product.ldcx-card {
		flex-direction: row;
		align-items: stretch;
	}

	.ldcx-card__media {
		flex: 0 0 51%;
		aspect-ratio: 5 / 4.8;
	}

	.ldcx-card__body {
		padding: 46px 30px 42px 8px;
	}

	body.ldc-shop-s3 .ldcx-card__title {
		font-size: clamp(26px, 2.1vw, 30px);
	}

	.ldcx-card__buy {
		padding-top: 20px;
	}

	.ldcx-card__actions {
		flex-wrap: wrap;
		gap: 0 2px;
	}

	body.ldc-shop-s3 .ldcx-card__actions a.button.ldcx-atc {
		padding: 0 22px;
	}

	body.ldc-shop-s3 .ldcx-card__more {
		padding: 0 8px 0 14px;
	}
}

/* =========================================================================
   S4 (/shop/?ldc=s4): neuer Seiteneinstieg. Karten unverändert S3.
   Schmales „Bekannt aus“-Band wie auf der V8-Startseite (warmes Off-White, graue Logos) schließt die Kopfzeile ab;
   darunter beginnt die weiße Seite mit „Laduti kaufen.“.
   ========================================================================= */
.ldcx-press {
	background: #f3f2ef;
	border-top: 1px solid #e2e0dc;
}

.ldcx-press__in {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	max-width: 1320px;
	margin: 0 auto;
	padding: 11px 18px;
}

.ldcx-press__label {
	flex: none;
	font-size: 10.5px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	white-space: nowrap;
	color: #77736e;
}

/* mobil: die ersten vier Logos des Streifens (wie Zeile 1 auf der Startseite), ab Tablet alle */
.ldcx-press__strip {
	position: relative;
	display: block;
	flex: 0 1 252px;
	aspect-ratio: 1057 / 97;
	overflow: hidden;
}

body.ldc-shop-s4 .ldcx-press__strip img {
	position: absolute;
	top: 0;
	left: 0;
	width: auto;
	max-width: none;
	height: 100%;
	filter: grayscale(1);
	opacity: 0.82;
}

body.ldc-shop-s4 .ldcx-head {
	padding-top: 26px;
}

@media (min-width: 690px) {
	.ldcx-press__in {
		gap: 28px;
		padding: 14px clamp(24px, 3.4vw, 48px);
	}

	.ldcx-press__label {
		font-size: 11px;
	}

	.ldcx-press__strip {
		flex-basis: 520px;
		aspect-ratio: 1972 / 97;
	}

	body.ldc-shop-s4 .ldcx-head {
		padding-top: 40px;
	}
}

@media (min-width: 1000px) {
	.ldcx-press__in {
		gap: 36px;
		padding-top: 16px;
		padding-bottom: 16px;
	}

	.ldcx-press__strip {
		flex-basis: 620px;
	}

	body.ldc-shop-s4 .ldcx-head {
		padding-top: 56px;
	}
}

/* =========================================================================
   S5 (/shop/?ldc=s5): finaler Seiteneinstieg. Karten unverändert.
   Weiße Kopfzeile (ldc-header5.css) → eine schmale Vertrauenszeile im Grau der Produktkarten (#f5f5f7 = --sx-tile)
   → „Laduti kaufen.“ mit mehr Luft. „Bekannt aus“ steht ruhig vor dem Footer.
   ========================================================================= */
.ldcx-trust {
	margin: 0;
	padding: 10px 16px;
	background: var(--sx-tile);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.01em;
	text-align: center;
	color: var(--sx-ink);
}

body.ldc-shop-s5 .ldcx-head {
	padding: 34px 2px 24px;
}

body.ldc-shop-s5 .ldcx-title {
	font-size: 38px;
}

body.ldc-shop-s5 .ldcx-lead {
	margin-top: 10px;
	font-size: 16px;
}

/* ---------- Bekannt aus: vor dem Footer, Logos grau wie auf der V8-Startseite ---------- */
.ldcx-known {
	margin-top: 56px;
	padding: 34px 0 30px;
	border-top: 1px solid #e8e8ed;
}

.ldcx-known .ldc-press {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	max-width: 420px;
	margin: 0 auto;
}

.ldcx-known .ldc-press__label {
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sx-ink-3);
}

.ldcx-known .ldc-press__strip {
	display: block;
	width: 100%;
}

/* mobil zwei Zeilen (4 + 3 Logos), jedes Logo vollständig */
.ldcx-known .ldc-press__row {
	position: relative;
	display: block;
	width: 100%;
	height: 0;
	padding-top: calc(97 * 100% / 1057);
	overflow: hidden;
}

body.ldc-shop-s5 .ldcx-known .ldc-press__row img {
	position: absolute;
	top: 0;
	left: 0;
	width: calc(1972 * 100% / 1057);
	max-width: none;
	height: 100%;
	filter: grayscale(1);
	opacity: 0.8;
}

.ldcx-known .ldc-press__row--2 {
	width: calc(915 * 100% / 1057);
	margin: 18px auto 0;
	padding-top: calc(97 * 100% / 915);
}

body.ldc-shop-s5 .ldcx-known .ldc-press__row--2 img {
	left: calc(-1057 * 100% / 915);
	width: calc(1972 * 100% / 915);
}

@media (min-width: 690px) {
	.ldcx-trust {
		padding: 11px 24px;
		font-size: 13.5px;
	}

	body.ldc-shop-s5 .ldcx-head {
		padding: 48px 2px 30px;
	}

	body.ldc-shop-s5 .ldcx-title {
		font-size: 50px;
	}

	body.ldc-shop-s5 .ldcx-lead {
		font-size: 17.5px;
	}

	.ldcx-known {
		margin-top: 72px;
		padding: 44px 0 36px;
	}

	.ldcx-known .ldc-press {
		gap: 24px;
		max-width: 760px;
	}

	.ldcx-known .ldc-press__row {
		padding-top: calc(97 * 100% / 1972);
	}

	body.ldc-shop-s5 .ldcx-known .ldc-press__row img {
		left: 0;
		width: 100%;
	}

	.ldcx-known .ldc-press__row--2 {
		display: none;
	}
}

@media (min-width: 1000px) {
	.ldcx-trust {
		padding: 12px 24px;
		font-size: 14px;
	}

	body.ldc-shop-s5 .ldcx-head {
		padding: 64px 2px 36px;
	}

	body.ldc-shop-s5 .ldcx-title {
		font-size: 56px;
	}

	body.ldc-shop-s5 .ldcx-lead {
		margin-top: 0;
		font-size: 19px;
	}

	.ldcx-known {
		margin-top: 88px;
		padding: 52px 0 44px;
	}
}

/* =========================================================================
   S6 (/shop/?ldc=s6): letzter Feinschliff zu S5. Nur die Vertrauenszeile: kleiner, leichter, Dunkelgrau statt Schwarz.
   Hintergrund weiterhin exakt #f5f5f7 (--sx-tile). Alles andere: S5.
   ========================================================================= */
body.ldc-shop-s6 .ldcx-trust {
	padding: 8px 16px;
	font-size: 12px;
	font-weight: 450;
	line-height: 1.35;
	letter-spacing: 0.015em;
	color: #5c5c61;
}

@media (min-width: 1000px) {
	body.ldc-shop-s6 .ldcx-trust {
		padding: 9px 16px;
		font-size: 12.5px;
	}
}
