/**
 * IV Single Product — Stylesheet
 *
 * Architecture:
 *   1. Brand tokens (CSS custom properties)
 *   2. Base / reset
 *   3. Layout wrapper
 *   4. Breadcrumb
 *   5. Gallery
 *   6. Data column (manufacturer, title, price strip, CTAs)
 *   7. Price strip
 *   8. Action buttons
 *   9. Specs tag cloud
 *  10. Meta grid
 *  11. Tab navigation
 *  12. Tab panels — ingredients / nutrition tables
 *  13. Tab panels — details grid
 *  14. Bottom CTA section
 *  15. Reveal animation
 *  16. Responsive (tablet ≤ 960px, mobile ≤ 600px)
 *
 * Namespace: .iv-sp-* — no collisions with iv-compare (.iv-*) or iv-filter
 * Brand tokens are re-declared here so the plugin is standalone.
 *
 * @package IV_Single_Product
 * @version 1.0.0
 */

/* ─────────────────────────────────────────────────────────────────────────
   1. Brand tokens
   ───────────────────────────────────────────────────────────────────────── */
.iv-sp {
	/* Colours */
	--iv-bg:        #E8E2D9;
	--iv-bg-alt:    #F3EEE7;
	--iv-bg-card:   #FAFAF8;
	--iv-text:      #2F2924;
	--iv-text-mute: #7A6E65;
	--iv-accent:    #B08A5A;
	--iv-accent-dk: #9A7649;
	--iv-line:      #D8CFC5;

	/* Typography */
	--iv-serif:  'Cormorant Garamond', 'Georgia', serif;
	--iv-sans:   'Inter', 'system-ui', sans-serif;

	/* Spacing scale */
	--iv-space-xs:  4px;
	--iv-space-s:   8px;
	--iv-space-m:  16px;
	--iv-space-l:  24px;
	--iv-space-xl: 40px;
	--iv-space-2xl: 64px;

	/* Radius */
	--iv-radius-s: 4px;
	--iv-radius-m: 8px;
	--iv-radius-l: 12px;

	/* Transitions */
	--iv-ease: 220ms ease;
}

/* ─────────────────────────────────────────────────────────────────────────
   2. Base / reset
   ───────────────────────────────────────────────────────────────────────── */
.iv-sp,
.iv-sp * {
	box-sizing: border-box;
}

.iv-sp {
	font-family: var(--iv-sans);
	color: var(--iv-text);
	background: var(--iv-bg);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

.iv-sp a {
	color: inherit;
	text-decoration: none;
}

.iv-sp img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* ─────────────────────────────────────────────────────────────────────────
   3. Layout wrapper
   ───────────────────────────────────────────────────────────────────────── */
/* Break out of Elementor container to fill full page background */
.iv-sp {
	/* Negative-margin viewport breakout — works inside any centered container */
	width: 100vw;
	max-width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	/* Pull up/down to cover Elementor section padding on all sides */
	margin-top: -40px;
	margin-bottom: -40px;
	padding: calc(var(--iv-space-l) + 40px) max(var(--iv-space-l), calc(50vw - 620px)) calc(var(--iv-space-2xl) + 40px);
}

/* Kill any parent Elementor section/container padding/background that causes white strip */
.elementor-widget-shortcode:has( > .elementor-widget-container > .iv-sp ),
.elementor-widget-shortcode:has(.iv-sp) {
	display: block;
}

/* Catch-all: parent section background matches ours */
:has( > .iv-sp ) {
	background: var(--iv-bg) !important;
	padding-top: 0 !important;
	margin-top: 0 !important;
}

/* 2-col product grid: gallery | data */
.iv-sp-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--iv-space-xl);
	align-items: start;
	margin-top: var(--iv-space-l);
}

/* ─────────────────────────────────────────────────────────────────────────
   4. Breadcrumb
   ───────────────────────────────────────────────────────────────────────── */
.iv-sp-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--iv-space-xs) var(--iv-space-s);
	font-size: 0.78rem;
	color: var(--iv-text-mute);
	margin-bottom: var(--iv-space-m);
}

.iv-sp-breadcrumb__item {
	display: flex;
	align-items: center;
	gap: var(--iv-space-xs);
}

.iv-sp-breadcrumb__item:not(:last-child)::after {
	content: '/';
	color: var(--iv-line);
	font-size: 0.7em;
}

.iv-sp-breadcrumb__item a {
	color: var(--iv-text-mute);
	transition: color var(--iv-ease);
}

.iv-sp-breadcrumb__item a:hover {
	color: var(--iv-accent);
}

.iv-sp-breadcrumb__item--current {
	color: var(--iv-text);
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 220px;
}

.iv-sp-back-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.8rem;
	color: var(--iv-text-mute);
	margin-bottom: var(--iv-space-l);
	transition: color var(--iv-ease);
}

.iv-sp-back-link:hover {
	color: var(--iv-accent);
}

/* ─────────────────────────────────────────────────────────────────────────
   5. Gallery
   ───────────────────────────────────────────────────────────────────────── */
.iv-sp-gallery {
	position: sticky;
	top: 80px;
}

.iv-sp-image-frame {
	background: var(--iv-bg-card);
	border: 1px solid var(--iv-line);
	border-radius: var(--iv-radius-l);
	overflow: hidden;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.iv-sp-image-frame img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: var(--iv-space-l);
}

.iv-sp-image-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: var(--iv-space-s);
	padding: var(--iv-space-xs) var(--iv-space-s);
	font-size: 0.75rem;
	color: var(--iv-text-mute);
}

.iv-sp-image-meta__updated {
	display: flex;
	align-items: center;
	gap: 4px;
}

.iv-sp-image-meta__source {
	font-size: 0.72rem;
	background: var(--iv-bg-alt);
	border: 1px solid var(--iv-line);
	border-radius: 99px;
	padding: 2px 8px;
	letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────────────────────────────────────
   6. Data column
   ───────────────────────────────────────────────────────────────────────── */
.iv-sp-data-col {
	display: flex;
	flex-direction: column;
	gap: var(--iv-space-l);
}

.iv-sp-mfr-link,
.iv-sp-manufacturer-link {
	display: inline-block;
	font-size: 0.78rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--iv-accent);
	font-weight: 600;
	transition: color var(--iv-ease);
}

.iv-sp-mfr-link:hover,
.iv-sp-manufacturer-link:hover {
	color: var(--iv-accent-dk);
}

/* High specificity — overrides Elementor + theme h1 styles */
.iv-sp .iv-sp-title,
.iv-sp h1.iv-sp-title,
.iv-sp h1.product_title,
.iv-sp h1.iv-sp-title.product_title {
	font-family: var(--iv-serif) !important;
	font-size: clamp(1.55rem, 2.2vw + 0.5rem, 2.4rem) !important;
	font-weight: 600 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.01em !important;
	color: var(--iv-text) !important;
	margin: 0 !important;
	padding: 0 !important;
	text-transform: none !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   7. Price strip
   ───────────────────────────────────────────────────────────────────────── */
.iv-sp-price-strip {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--iv-line);
	border: 1px solid var(--iv-line);
	border-radius: var(--iv-radius-m);
	overflow: hidden;
}

.iv-sp-price-cell {
	background: var(--iv-bg-card);
	padding: var(--iv-space-m);
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.iv-sp-price-label {
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--iv-text-mute);
	font-weight: 500;
}

.iv-sp-price-value {
	font-family: var(--iv-serif);
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--iv-text);
	line-height: 1.2;
}

.iv-sp-price-value--primary {
	font-size: clamp(1.2rem, 2vw, 1.6rem);
	color: var(--iv-accent);
}

/* Sale: Streichpreis (regulär) + hervorgehobener Aktionspreis.
   Ersetzt den unformatierten WooCommerce-Sale-Fließtext (2026-06-10). */
.iv-sp-price-old {
	display: inline-block;
	font-family: var(--iv-serif);
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--iv-text-mute);
	text-decoration: line-through;
	text-decoration-color: var(--iv-text-mute);
	margin-right: 0.5ch;
	white-space: nowrap;
}

.iv-sp-price-value--sale {
	color: var(--iv-accent);
}

/* Screen-Reader-Text global ausblenden — falls WooCommerce-Markup doch durchläuft,
   bleibt die a11y-Prosa unsichtbar (kein "Ursprünglicher Preis war: …" als Fließtext). */
.iv-sp-price-strip .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	clip: rect(0 0 0 0); clip-path: inset(50%);
	overflow: hidden; white-space: nowrap;
}

.iv-sp-price-sub {
	font-size: 0.72rem;
	color: var(--iv-text-mute);
	line-height: 1.3;
}

/* ─────────────────────────────────────────────────────────────────────────
   8. Action buttons
   ───────────────────────────────────────────────────────────────────────── */
.iv-sp-action-wrap {
	display: flex;
	flex-direction: column;
	gap: var(--iv-space-s);
}

.iv-sp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px var(--iv-space-l);
	border-radius: var(--iv-radius-m);
	font-family: var(--iv-sans);
	font-size: 0.92rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background var(--iv-ease), color var(--iv-ease), box-shadow var(--iv-ease);
	text-align: center;
	border: none;
	text-decoration: none;
}

.iv-sp-btn--primary {
	background: var(--iv-accent);
	color: #fff;
	width: 100%;
}

.iv-sp-btn--primary:hover {
	background: var(--iv-accent-dk);
	box-shadow: 0 4px 16px rgba(176, 138, 90, 0.35);
	color: #fff;
}

.iv-sp-btn--large {
	padding: 16px var(--iv-space-xl);
	font-size: 1rem;
}

/* Compare button — high specificity to beat theme .button overrides */
.iv-sp .iv-compare-btn,
.iv-sp .iv-compare-btn.button,
.iv-sp a.iv-compare-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	padding: 13px var(--iv-space-l) !important;   /* matches .iv-sp-btn */
	border-radius: var(--iv-radius-m) !important;
	background: transparent !important;
	border: 1.5px solid var(--iv-line) !important;
	color: var(--iv-text) !important;
	font-family: var(--iv-sans) !important;
	font-size: 0.92rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.02em !important;
	cursor: pointer !important;
	transition: border-color var(--iv-ease), background var(--iv-ease) !important;
	text-decoration: none !important;
	box-shadow: none !important;
	line-height: 1.4 !important;
	min-height: unset !important;
	height: auto !important;
}

.iv-sp .iv-compare-btn:hover,
.iv-sp .iv-compare-btn.button:hover,
.iv-sp .iv-compare-btn.iv-active {
	border-color: var(--iv-accent) !important;
	background: rgba(176, 138, 90, 0.06) !important;
	color: var(--iv-accent) !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   9. Specs tag cloud
   ───────────────────────────────────────────────────────────────────────── */
.iv-sp-specs-block {
	display: flex;
	flex-direction: column;
	gap: var(--iv-space-s);
}

.iv-sp-specs-label {
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--iv-text-mute);
	font-weight: 500;
	margin: 0;
}

.iv-sp-specs-tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--iv-space-xs);
}

.iv-sp-spec-tag {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 4px;
	background: var(--iv-bg-alt);
	border: 1px solid var(--iv-line);
	font-size: 0.78rem;
	color: var(--iv-text);
	font-weight: 500;
	line-height: 1.4;
	transition: background var(--iv-ease), border-color var(--iv-ease), color var(--iv-ease);
	white-space: nowrap;
}

.iv-sp-spec-tag:hover {
	background: var(--iv-accent);
	border-color: var(--iv-accent);
	color: #fff;
}

.iv-sp-spec-tag--small {
	font-size: 0.74rem;
	padding: 3px 8px;
}

/* ─────────────────────────────────────────────────────────────────────────
   10. Meta grid
   ───────────────────────────────────────────────────────────────────────── */
.iv-sp-meta-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	background: var(--iv-line);
	border: 1px solid var(--iv-line);
	border-radius: var(--iv-radius-m);
	overflow: hidden;
}

.iv-sp-meta-item {
	background: var(--iv-bg-card);
	padding: var(--iv-space-m);
}

.iv-sp-meta-item__label {
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--iv-text-mute);
	font-weight: 500;
	margin-bottom: 4px;
}

.iv-sp-meta-item__val {
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--iv-text);
	line-height: 1.35;
}

.iv-sp-meta-item__val--small {
	font-size: 0.78rem;
	font-weight: 400;
	color: var(--iv-text-mute);
}

/* ─────────────────────────────────────────────────────────────────────────
   11. Tab navigation
   ───────────────────────────────────────────────────────────────────────── */
.iv-sp-tabs-section,
.iv-sp-tabs {
	margin-top: var(--iv-space-xl);
	border: 1px solid var(--iv-line);
	border-radius: var(--iv-radius-l);
	overflow: hidden;
	background: var(--iv-bg-card);
}

.iv-sp-tabs-nav,
.iv-sp-tab-list {
	display: flex;
	border-bottom: 1px solid var(--iv-line);
	background: var(--iv-bg-alt);
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.iv-sp-tabs-nav::-webkit-scrollbar,
.iv-sp-tab-list::-webkit-scrollbar {
	display: none;
}

/* Tab buttons — !important to beat any theme button resets */
.iv-sp .iv-sp-tab-btn,
.iv-sp-tabs-section .iv-sp-tab-btn,
.iv-sp-tabs-nav .iv-sp-tab-btn {
	flex: 0 0 auto !important;
	padding: var(--iv-space-m) var(--iv-space-l) !important;
	border: none !important;
	border-bottom: 2px solid transparent !important;
	border-radius: 0 !important;
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	cursor: pointer !important;
	font-family: var(--iv-sans) !important;
	font-size: 0.88rem !important;
	font-weight: 500 !important;
	color: var(--iv-text-mute) !important;
	letter-spacing: 0.02em !important;
	margin-bottom: -1px !important;
	white-space: nowrap !important;
	transition: color var(--iv-ease), border-color var(--iv-ease), background var(--iv-ease) !important;
	text-transform: none !important;
	outline: none !important;
	min-height: unset !important;
	height: auto !important;
}

.iv-sp .iv-sp-tab-btn:hover,
.iv-sp-tabs-nav .iv-sp-tab-btn:hover {
	color: var(--iv-text) !important;
	background: none !important;
}

.iv-sp .iv-sp-tab-btn[aria-selected="true"],
.iv-sp-tabs-nav .iv-sp-tab-btn[aria-selected="true"],
.iv-sp .iv-sp-tab-btn.active,
.iv-sp-tabs-nav .iv-sp-tab-btn.active {
	color: var(--iv-accent) !important;
	border-bottom-color: var(--iv-accent) !important;
	background: var(--iv-bg-card) !important;
	font-weight: 600;
}

/* Tab panels */
.iv-sp-tab-panel {
	padding: var(--iv-space-xl);
	display: none;
}

/* visible: JS sets aria-hidden="false", fallback is .active class */
.iv-sp-tab-panel[aria-hidden="false"],
.iv-sp-tab-panel.active {
	display: block;
}

/* aria-hidden="true" always wins — overrides .active on first panel after tab switch */
.iv-sp-tab-panel[aria-hidden="true"] {
	display: none !important;
}

/* ─────────────────────────────────────────────────────────────────────────
   12. Ingredients / Nutrition tables
   ───────────────────────────────────────────────────────────────────────── */
.iv-sp-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.iv-sp-table-wrap--gap {
	margin-top: var(--iv-space-l);
}

.iv-sp-table-subtitle {
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--iv-text-mute);
	font-weight: 500;
	margin: 0 0 var(--iv-space-s);
}

/* iv-rich wrapper — matches iv-compare's .iv-rich */
.iv-sp-table-wrap .iv-rich table,
.iv-sp-table-wrap table.iv-nutrition,
.iv-sp-table-wrap table.iv-ingredients {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85rem;
	color: var(--iv-text);
}

.iv-sp-table-wrap .iv-rich th,
.iv-sp-table-wrap table.iv-nutrition th,
.iv-sp-table-wrap table.iv-ingredients th {
	background: var(--iv-bg-alt);
	font-weight: 600;
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--iv-text-mute);
	padding: var(--iv-space-s) var(--iv-space-m);
	text-align: left;
	border-bottom: 1px solid var(--iv-line);
}

.iv-sp-table-wrap .iv-rich td,
.iv-sp-table-wrap table.iv-nutrition td,
.iv-sp-table-wrap table.iv-ingredients td {
	padding: 10px var(--iv-space-m);
	border-bottom: 1px solid var(--iv-line);
	vertical-align: top;
	line-height: 1.45;
}

.iv-sp-table-wrap .iv-rich tr:last-child td,
.iv-sp-table-wrap table.iv-nutrition tr:last-child td,
.iv-sp-table-wrap table.iv-ingredients tr:last-child td {
	border-bottom: none;
}

.iv-sp-table-wrap .iv-rich tr:nth-child(even) td,
.iv-sp-table-wrap table.iv-nutrition tr:nth-child(even) td,
.iv-sp-table-wrap table.iv-ingredients tr:nth-child(even) td {
	background: rgba(232, 226, 217, 0.4);
}

/* Ingredient / zutatenliste text block */
.iv-sp-zutaten-block {
	font-size: 0.85rem;
}

.iv-sp-zutaten-block--gap {
	margin-top: var(--iv-space-l);
	padding-top: var(--iv-space-l);
	border-top: 1px solid var(--iv-line);
}

.iv-sp-zutaten-label {
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--iv-text-mute);
	font-weight: 500;
	margin: 0 0 var(--iv-space-s);
}

.iv-sp-zutaten-text {
	line-height: 1.65;
	color: var(--iv-text);
	margin: 0 0 var(--iv-space-m);
}

.iv-sp-zutaten-note {
	font-size: 0.76rem;
	color: var(--iv-text-mute);
	line-height: 1.5;
	margin: 0;
}

/* Q149/T-426 (04.10.2026): Dosierzeile ueber 300 Zeichen eingeklappt (<details>, kein JS). Text bleibt ungekuerzt im DOM. */
.iv-sp-portion-details {
	margin: 0 0 6px;
}
.iv-sp-portion-summary {
	cursor: pointer;
	font-size: 0.76rem;
	color: var(--iv-text-mute);
	line-height: 1.5;
}
.iv-sp-portion-text {
	margin: 4px 0 0;
}

/* A-77.6 (03.09.2026): DACH-Vermerk (Owner-Wortlaut, biogena-one-Option
   iv_version_hinweis) — unter Tabelle UND unter Zutaten, s. ingredients-table.php. */
.iv-sp-version-hinweis {
	font-family: var(--iv-sans);
	font-size: 12px;
	color: var(--iv-text);
	opacity: 0.7;
	line-height: 1.4;
	margin: 6px 0 0;
}

/* Empty state */
.iv-sp-empty-state {
	font-size: 0.88rem;
	color: var(--iv-text-mute);
	text-align: center;
	padding: var(--iv-space-xl);
	margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────────
   13. Details grid
   ───────────────────────────────────────────────────────────────────────── */
.iv-sp-details-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--iv-space-xl);
	align-items: start;
}

.iv-sp-details-block__title {
	font-family: var(--iv-serif);
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--iv-text);
	margin: 0 0 var(--iv-space-m);
	padding-bottom: var(--iv-space-s);
	border-bottom: 1px solid var(--iv-line);
}

/* Definition list */
.iv-sp-detail-list {
	margin: 0;
	padding: 0;
}

.iv-sp-detail-row {
	display: grid;
	grid-template-columns: 130px 1fr;
	gap: var(--iv-space-s) var(--iv-space-m);
	padding: 10px 0;
	border-bottom: 1px solid var(--iv-line);
	font-size: 0.85rem;
}

.iv-sp-detail-row:last-child {
	border-bottom: none;
}

.iv-sp-detail-row__label {
	font-weight: 500;
	color: var(--iv-text-mute);
	font-size: 0.8rem;
	padding-top: 1px;
}

.iv-sp-detail-row__value {
	color: var(--iv-text);
	line-height: 1.45;
}

.iv-sp-detail-link {
	color: var(--iv-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color var(--iv-ease);
}

.iv-sp-detail-link:hover {
	color: var(--iv-accent-dk);
}

/* Spec groups inside details block */
.iv-sp-spec-group {
	margin-bottom: var(--iv-space-m);
}

.iv-sp-spec-group:last-child {
	margin-bottom: 0;
}

.iv-sp-spec-group__label {
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--iv-text-mute);
	font-weight: 500;
	margin: 0 0 var(--iv-space-xs);
}

.iv-sp-spec-group__tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--iv-space-xs);
}

/* ─────────────────────────────────────────────────────────────────────────
   14. Bottom CTA section
   ───────────────────────────────────────────────────────────────────────── */
.iv-sp-cta-section {
	margin-top: var(--iv-space-xl);
	background: var(--iv-bg-alt);
	border: 1px solid var(--iv-line);
	border-radius: var(--iv-radius-l);
	padding: var(--iv-space-xl);
	text-align: center;
}

.iv-sp-cta-inner {
	max-width: 540px;
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--iv-space-m);
}

.iv-sp-cta-headline {
	font-family: var(--iv-serif);
	font-size: clamp(1.4rem, 2.5vw, 1.9rem);
	font-weight: 600;
	line-height: 1.25;
	color: var(--iv-text);
	margin: 0;
}

.iv-sp-cta-sub {
	font-size: 0.84rem;
	color: var(--iv-text-mute);
	margin: 0;
	max-width: 400px;
}

.iv-sp-cta-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--iv-space-s);
	width: 100%;
	max-width: 360px;
}

.iv-sp-cta-back {
	font-size: 0.82rem;
	color: var(--iv-text-mute);
	transition: color var(--iv-ease);
	letter-spacing: 0.01em;
}

.iv-sp-cta-back:hover {
	color: var(--iv-accent);
}

.iv-sp-cta-disclaimer {
	font-size: 0.72rem;
	color: var(--iv-text-mute);
	margin: 0;
	opacity: 0.75;
}

/* ── Gutschein/Voucher (neben Hersteller-Bestell-CTA) ───────────────────── */
.iv-sp-voucher {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 6px 12px;
	width: 100%;
	max-width: 420px;
	padding: var(--iv-space-s, 12px) var(--iv-space-m, 16px);
	border: 1px dashed var(--iv-border, #d8d2c4);
	border-radius: var(--iv-radius, 10px);
	background: var(--iv-surface-soft, rgba(0, 0, 0, 0.025));
	text-align: center;
}
.iv-sp-voucher__label {
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--iv-text-mute, #6b6b6b);
}
.iv-sp-voucher__code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: 0.04em;
	padding: 2px 10px;
	border-radius: 6px;
	background: var(--iv-surface, #fff);
	border: 1px solid var(--iv-border, #d8d2c4);
}
.iv-sp-voucher__conditions {
	flex-basis: 100%;
	font-size: 0.72rem;
	line-height: 1.4;
	color: var(--iv-text-mute, #6b6b6b);
	opacity: 0.85;
}

/* ─────────────────────────────────────────────────────────────────────────
   15. Reveal animation
   ───────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
	.iv-sp-reveal {
		opacity: 0;
		transform: translateY(18px);
		transition: opacity 500ms ease, transform 500ms ease;
	}

	.iv-sp-reveal.is-visible {
		opacity: 1;
		transform: none;
	}
}

/* Stagger delays for data-col children */
@media (prefers-reduced-motion: no-preference) {
	.iv-sp-data-col .iv-sp-reveal:nth-child(1) { transition-delay: 0ms; }
	.iv-sp-data-col .iv-sp-reveal:nth-child(2) { transition-delay: 60ms; }
	.iv-sp-data-col .iv-sp-reveal:nth-child(3) { transition-delay: 120ms; }
	.iv-sp-data-col .iv-sp-reveal:nth-child(4) { transition-delay: 180ms; }
	.iv-sp-data-col .iv-sp-reveal:nth-child(5) { transition-delay: 240ms; }
	.iv-sp-data-col .iv-sp-reveal:nth-child(6) { transition-delay: 300ms; }
}

/* ─────────────────────────────────────────────────────────────────────────
   16. Responsive
   ───────────────────────────────────────────────────────────────────────── */

/* Tablet — ≤ 960px */
@media (max-width: 960px) {
	.iv-sp {
		/* Remove the desktop negative margin — on mobile it pushes the
		   breadcrumb bar underneath the sticky header.
		   The :has(> .iv-sp) rule on the parent already strips its own
		   padding, so margin-top: 0 is safe here. */
		margin-top: 0;
		padding: var(--iv-space-l) var(--iv-space-m) var(--iv-space-xl);
	}

	.iv-sp-cols {
		grid-template-columns: 1fr;
		gap: var(--iv-space-l);
	}

	.iv-sp-gallery {
		position: static;
	}

	.iv-sp-image-frame {
		/* Slightly smaller on tablet/mobile — 480px felt oversized */
		max-width: 360px;
		margin-inline: auto;
	}

	.iv-sp-details-grid {
		grid-template-columns: 1fr;
		gap: var(--iv-space-l);
	}

	/* Data column stacks below the gallery on mobile.
	   The IntersectionObserver fires late or not at all for off-screen
	   elements on initial paint, leaving a large invisible gap under the
	   product image. Disable the reveal opacity animation here so the
	   content is immediately visible when the column comes into view. */
	.iv-sp-data-col.iv-sp-reveal,
	.iv-sp-data-col .iv-sp-reveal {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

/* Mobile — ≤ 600px */
@media (max-width: 600px) {
	.iv-sp {
		/* Horizontal padding bumped from --iv-space-s (8px) to --iv-space-m (16px)
		   so the content breathes a bit more on narrow screens */
		padding: var(--iv-space-l) var(--iv-space-m) var(--iv-space-xl);
	}

	/* Price strip: stack into 2+1 layout */
	.iv-sp-price-strip {
		grid-template-columns: 1fr 1fr;
	}

	/* Unit price spans full width on the third row */
	.iv-sp-price-strip .iv-sp-price-cell:nth-child(3) {
		grid-column: 1 / -1;
	}

	/* Meta grid: single column */
	.iv-sp-meta-grid {
		grid-template-columns: 1fr;
	}

	/* Tab panel: tighter padding */
	.iv-sp-tab-panel {
		padding: var(--iv-space-l) var(--iv-space-m);
	}

	.iv-sp-tab-btn {
		padding: var(--iv-space-s) var(--iv-space-m);
		font-size: 0.83rem;
	}

	.iv-sp-detail-row {
		grid-template-columns: 110px 1fr;
		font-size: 0.82rem;
	}

	.iv-sp-cta-section {
		padding: var(--iv-space-l) var(--iv-space-m);
	}

	/* ── Compact tables on mobile portrait ────────────────────────────────
	   Problem: table-layout:auto lets the first (ingredient name) column grow
	   to full content width, pushing the value columns off-screen. The
	   overflow-x:auto wrapper can't scroll because the outer container clips.
	   Solution: table-layout:fixed forces equal column distribution within
	   100% container width. Reduced font + padding makes all 3 columns fit
	   on ~310px content width without any horizontal scrolling. */
	.iv-sp-table-wrap {
		overflow-x: auto;
		display: block;
	}

	.iv-sp-table-wrap .iv-rich table,
	.iv-sp-table-wrap table.iv-nutrition,
	.iv-sp-table-wrap table.iv-ingredients {
		table-layout: fixed !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		font-size: 0.72rem !important;
	}

	/* First column (ingredient names) gets more space; value cols share the rest */
	.iv-sp-table-wrap .iv-rich th:first-child,
	.iv-sp-table-wrap .iv-rich td:first-child,
	.iv-sp-table-wrap table.iv-nutrition th:first-child,
	.iv-sp-table-wrap table.iv-nutrition td:first-child,
	.iv-sp-table-wrap table.iv-ingredients th:first-child,
	.iv-sp-table-wrap table.iv-ingredients td:first-child {
		width: 48% !important;
	}

	/* Tight padding + word-wrap so text breaks cleanly within fixed columns */
	.iv-sp-table-wrap .iv-rich th,
	.iv-sp-table-wrap .iv-rich td,
	.iv-sp-table-wrap table.iv-nutrition th,
	.iv-sp-table-wrap table.iv-nutrition td,
	.iv-sp-table-wrap table.iv-ingredients th,
	.iv-sp-table-wrap table.iv-ingredients td {
		padding: 6px 7px !important;
		word-break: break-word !important;
		white-space: normal !important;
		hyphens: auto !important;
	}
}

/* Very narrow — ≤ 400px */
@media (max-width: 400px) {
	.iv-sp-price-strip {
		grid-template-columns: 1fr;
	}

	.iv-sp-price-strip .iv-sp-price-cell:nth-child(3) {
		grid-column: auto;
	}

	.iv-sp-breadcrumb__item--current {
		max-width: 140px;
	}
}

/* R5 (20.08.2026): Affiliate-Kennzeichnung am Entscheidungsort (§5a UWG) */
.iv-sp-affiliate-hint { display: block; margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: #6b7280; max-width: 100%; }
.iv-sp-affiliate-hint--short { font-size: 12px; margin-top: 4px; }
.iv-sp-affiliate-hint a { color: inherit; text-decoration: underline; }

/* Q156 C+A (T-661, 08.10.2026): Verweis auf die Herstellerkennzeichnung (cta.php) und Stoff-Warnhinweise (pflichthinweise.php) */
.iv-sp-verweis-hersteller { display: block; margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: #4b5563; max-width: 100%; }
.iv-sp-pflichthinweise { margin-top: var(--iv-space-xl); padding: var(--iv-space-l, 16px) var(--iv-space-xl); border: 1px solid var(--iv-line); border-radius: var(--iv-radius-l); background: var(--iv-bg-alt); }
.iv-sp-pflichthinweise__title { margin: 0 0 4px; font-weight: 600; }
.iv-sp-pflichthinweise__source { margin: 0 0 8px; font-size: 12px; line-height: 1.4; color: #6b7280; }
.iv-sp-pflichthinweise__list { margin: 0 0 0 1.2em; padding: 0; font-size: 14px; line-height: 1.5; }
.iv-sp-pflichthinweise__mg { margin: 8px 0 0; font-size: 14px; line-height: 1.5; }
