/* ==========================================================================
   Shop / Publikationen — Premium Layout
   ========================================================================== */

/* ---- Archive Hero (Header-Stripe über der Seite) ---- */

.main--shop .page-header {
	padding-block: calc(var(--header-h) + var(--sp-8)) var(--sp-8);
}

.main--shop .page-header__title {
	font-size: clamp(2.4rem, 2rem + 2vw, 3.6rem);
}

.main--shop .page-header__lead {
	font-family: var(--font-serif);
	font-style: italic;
	font-size: var(--fs-md);
	color: rgba(232, 232, 232, 0.85);
	max-width: 560px;
	margin: var(--sp-4) 0 0;
	line-height: var(--lh-relaxed);
}

/* ---- Filter-Leiste ---- */

.shop-filter {
	display: flex;
	gap: var(--sp-3);
	flex-wrap: wrap;
	margin-bottom: var(--sp-7);
	padding-bottom: var(--sp-5);
	border-bottom: 1px solid var(--color-border);
}

.shop-filter__item {
	font-family: var(--font-sans);
	font-size: var(--fs-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--ls-wider);
	padding: 9px var(--sp-5);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-pill);
	color: var(--color-text-muted);
	text-decoration: none;
	transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.shop-filter__item:hover {
	border-color: var(--color-accent);
	color: var(--color-accent);
}

.shop-filter__item.is-active {
	border-color: var(--color-accent);
	color: var(--color-bg);
	background: var(--color-accent);
}

/* Desktop: Toggle ausgeblendet, Items inline. */
.shop-filter__toggle {
	display: none;
}

.shop-filter__items {
	display: contents;
}

/* Mobile: als Dropdown rendern. */
@media (max-width: 640px) {
	.shop-filter {
		position: relative;
		display: block;
		padding-bottom: var(--sp-5);
	}

	.shop-filter__toggle {
		display: flex;
		width: 100%;
		justify-content: space-between;
		align-items: center;
		gap: var(--sp-3);
		padding: 12px var(--sp-4);
		font-family: var(--font-sans);
		font-size: var(--fs-xs);
		font-weight: 600;
		text-transform: uppercase;
		letter-spacing: var(--ls-wider);
		background: var(--color-surface);
		color: var(--color-text);
		border: 1px solid var(--color-border);
		border-radius: var(--radius-pill);
		cursor: pointer;
		transition: border-color var(--dur-fast) var(--ease);
	}

	.shop-filter__toggle:hover,
	.shop-filter.is-open .shop-filter__toggle {
		border-color: var(--color-accent);
	}

	.shop-filter__toggle-label {
		flex: 1;
		text-align: left;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.shop-filter__caret {
		flex: 0 0 auto;
		color: var(--color-accent);
		transition: transform var(--dur-fast) var(--ease);
	}

	.shop-filter.is-open .shop-filter__caret {
		transform: rotate(180deg);
	}

	.shop-filter__items {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 40;
		flex-direction: column;
		gap: 4px;
		margin-top: 6px;
		padding: 6px;
		background: var(--color-surface);
		border: 1px solid var(--color-border);
		border-radius: var(--radius-md);
		box-shadow:
			0 10px 30px rgba(0, 0, 0, 0.45),
			0 2px 6px rgba(0, 0, 0, 0.35);
	}

	.shop-filter.is-open .shop-filter__items {
		display: flex;
	}

	.shop-filter__items .shop-filter__item {
		width: 100%;
		text-align: left;
		border: 0;
		border-radius: var(--radius);
		padding: 10px var(--sp-4);
	}

	.shop-filter__items .shop-filter__item:hover {
		background: rgba(200, 169, 110, 0.12);
	}

	.shop-filter__items .shop-filter__item.is-active {
		background: var(--color-accent);
		color: var(--color-bg);
	}
}

/* ---- Premium Grid ---- */

.shop-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: var(--sp-7) var(--sp-6);
}

/* ---- Premium Card ---- */

.shop-item {
	position: relative;
	background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition:
		border-color var(--dur) var(--ease),
		transform var(--dur) var(--ease),
		box-shadow var(--dur) var(--ease);
}

.shop-item::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	box-shadow: inset 0 0 0 1px transparent;
	transition: box-shadow var(--dur) var(--ease);
}

.shop-item:hover {
	border-color: rgba(200, 169, 110, 0.6);
	transform: translateY(-6px);
	box-shadow:
		0 30px 60px -25px rgba(0, 0, 0, 0.85),
		0 0 0 1px rgba(200, 169, 110, 0.15);
}

.shop-item:hover::before {
	box-shadow: inset 0 0 0 1px rgba(200, 169, 110, 0.2);
}

.shop-item__media {
	aspect-ratio: 1 / 1;
	background: var(--color-surface);
	display: block;
	position: relative;
	overflow: hidden;
}

.shop-item__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s var(--ease), opacity var(--dur) var(--ease);
}

.shop-item:hover .shop-item__media img {
	transform: scale(1.06);
}

/* Sanfter Gradient-Overlay für Premium-Feel */
.shop-item__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.35) 100%);
	pointer-events: none;
	opacity: 0;
	transition: opacity var(--dur) var(--ease);
}

.shop-item:hover .shop-item__media::after {
	opacity: 1;
}

/* ---- Badges (Aktion / Ausverkauft / Vorbestellung) ---- */

.shop-item__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	font-family: var(--font-sans);
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: var(--ls-widest);
	padding: 6px 12px;
	border-radius: var(--radius-pill);
	background: var(--color-accent);
	color: var(--color-bg);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.shop-item__badge--sold {
	background: rgba(0, 0, 0, 0.78);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.15);
}

.shop-item__badge--sale {
	background: #d04848;
	color: #fff;
}

/* ---- Card-Body ---- */

.shop-item__body {
	padding: var(--sp-5) var(--sp-5) var(--sp-6);
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: var(--sp-3);
}

.shop-item__type {
	font-family: var(--font-sans);
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--ls-widest);
	color: var(--color-accent);
}

.shop-item__title {
	font-family: var(--font-display);
	font-size: clamp(1.2rem, 1rem + 0.4vw, 1.45rem);
	line-height: 1.2;
	margin: 0;
	letter-spacing: var(--ls-tight);
}

.shop-item__title a {
	color: var(--color-white);
	text-decoration: none;
	transition: color var(--dur) var(--ease);
}

.shop-item__title a:hover {
	color: var(--color-accent);
}

.shop-item__subtitle {
	font-size: var(--fs-sm);
	color: var(--color-text-muted);
	font-family: var(--font-serif);
	font-style: italic;
	line-height: var(--lh-relaxed);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---- Preis ---- */

.shop-item__price {
	display: flex;
	align-items: baseline;
	gap: var(--sp-3);
	flex-wrap: wrap;
	margin-top: auto;
	padding-top: var(--sp-2);
	font-family: var(--font-display);
	font-size: var(--fs-lg);
	color: var(--color-white);
	font-weight: 500;
}

.shop-item__price-current {
	color: var(--color-white);
}

.shop-item__price-old {
	font-size: var(--fs-sm);
	color: var(--color-text-muted);
	text-decoration: line-through;
	font-family: var(--font-sans);
	font-weight: 400;
}

/* ---- Actions ---- */

.shop-item__actions {
	display: flex;
	gap: var(--sp-3);
	flex-wrap: wrap;
	padding-top: var(--sp-2);
}

/* --------------------------------------------------------------------------
   Produkt-Hero (Einzelseite)
   -------------------------------------------------------------------------- */

.product-hero {
	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	isolation: isolate;
	margin-top: calc(var(--header-h) * -1);
	padding-top: calc(var(--header-h) + var(--sp-9));
	padding-bottom: var(--sp-9);
	background: var(--color-bg);
}

.product-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 1;
	background-size: cover;
	background-position: center;
	filter: blur(32px) brightness(0.22) saturate(120%);
	transform: scale(1.12);
}

.product-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	background:
		radial-gradient(ellipse at 20% 30%, rgba(200, 169, 110, 0.08), transparent 50%),
		radial-gradient(ellipse at 80% 70%, rgba(200, 169, 110, 0.06), transparent 50%),
		linear-gradient(180deg, rgba(10, 10, 10, 0.5) 0%, rgba(10, 10, 10, 0.7) 100%);
}

.product-hero__inner {
	position: relative;
	z-index: 3;
	display: grid;
	grid-template-columns: minmax(0, 620px) minmax(0, 1fr);
	gap: clamp(var(--sp-6), 3vw, var(--sp-9));
	align-items: center;
	width: 100%;
}

.product-hero__media {
	display: flex;
	flex-direction: column;
	gap: var(--sp-5);
}

.product-hero__cover {
	aspect-ratio: 1 / 1;
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow:
		0 60px 120px -30px rgba(0, 0, 0, 0.9),
		0 0 0 1px rgba(200, 169, 110, 0.22),
		0 0 180px -40px rgba(200, 169, 110, 0.32);
	background: var(--color-surface);
	position: relative;
}

.product-hero__cover-image,
.product-hero__cover img,
.product-hero__cover video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--card-pos, center center);
	display: block;
}

.product-hero__cover:has(img) {
	cursor: zoom-in;
}

.product-hero__cover:has(img)::after {
	content: '';
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background:
		rgba(0, 0, 0, 0.55)
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m21 21-4.3-4.3'/><line x1='11' y1='8' x2='11' y2='14'/><line x1='8' y1='11' x2='14' y2='11'/></svg>") center / 18px no-repeat;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity var(--dur) var(--ease);
	pointer-events: none;
}

.product-hero__cover:has(img):hover::after {
	opacity: 1;
}

.product-hero__cover-video {
	background: #000;
	object-fit: contain;
}

.product-hero__cover-fallback {
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 30% 30%, rgba(200, 169, 110, 0.28), transparent 60%),
		linear-gradient(160deg, #1a1a1a, #2a2014);
}

/* ---- Thumbnail-Carousel ---- */

.product-hero__carousel {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: var(--sp-2);
}

.product-hero__thumbs {
	display: flex;
	gap: var(--sp-3);
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	padding: 4px 0;
	scrollbar-width: none;
}

.product-hero__thumbs::-webkit-scrollbar {
	display: none;
}

.product-hero__thumb {
	flex: 0 0 92px;
	width: 92px;
	height: 92px;
	padding: 0;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: var(--color-surface);
	cursor: pointer;
	position: relative;
	overflow: hidden;
	scroll-snap-align: start;
	transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.product-hero__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity var(--dur) var(--ease);
}

.product-hero__thumb-fallback {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
}

.product-hero__thumb:hover {
	border-color: rgba(200, 169, 110, 0.5);
	transform: translateY(-2px);
}

.product-hero__thumb.is-active {
	border-color: var(--color-accent);
	box-shadow: 0 0 0 2px rgba(200, 169, 110, 0.25);
}

.product-hero__thumb.is-active img {
	opacity: 1;
}

.product-hero__thumb-badge {
	position: absolute;
	right: 4px;
	bottom: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	font-size: 10px;
	line-height: 1;
	pointer-events: none;
}

.product-hero__arrow {
	flex: 0 0 40px;
	width: 40px;
	height: 92px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--color-border);
	background: rgba(255, 255, 255, 0.03);
	color: var(--color-text);
	border-radius: var(--radius);
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
	padding: 0;
	transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.product-hero__arrow:hover,
.product-hero__arrow:focus-visible {
	border-color: var(--color-accent);
	color: var(--color-accent);
	background: rgba(200, 169, 110, 0.08);
	outline: none;
}

.product-hero__content {
	display: flex;
	flex-direction: column;
	gap: var(--sp-4);
	align-items: flex-start;
	max-width: 560px;
	padding-left: var(--sp-3);
}

.product-hero__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: var(--sp-2);
}

.product-hero__tag {
	font-family: var(--font-sans);
	font-size: var(--fs-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--ls-wider);
	color: var(--color-bg);
	background: var(--color-accent);
	padding: 5px var(--sp-3);
	border-radius: var(--radius-sm);
}

.product-hero__title {
	font-family: var(--font-display);
	font-size: clamp(2.2rem, 1.4rem + 2.2vw, 3.8rem);
	font-weight: 600;
	color: var(--color-white);
	margin: 0;
	line-height: 1.08;
	letter-spacing: var(--ls-tight);
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}


/* ---- CTA-Zeile: Preis + Verfügbarkeit ---- */

.product-hero__cta {
	display: flex;
	align-items: baseline;
	gap: var(--sp-4);
	margin-top: var(--sp-4);
	flex-wrap: wrap;
}

.product-hero__price {
	font-family: var(--font-display);
	font-size: clamp(1.8rem, 1.3rem + 1.5vw, 2.6rem);
	font-weight: 600;
	color: var(--color-white);
	letter-spacing: var(--ls-tight);
}

.product-hero__price-old {
	font-family: var(--font-sans);
	font-size: var(--fs-md);
	color: var(--color-text-muted);
	text-decoration: line-through;
	font-weight: 400;
}

.product-hero__availability {
	font-family: var(--font-sans);
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--ls-wider);
	padding: 6px var(--sp-3);
	border-radius: var(--radius-pill);
	border: 1px solid var(--color-border-2);
	align-self: center;
}

.product-hero__availability--in_stock {
	color: #8fdca9;
	border-color: rgba(143, 220, 169, 0.4);
	background: rgba(143, 220, 169, 0.08);
}

.product-hero__availability--preorder {
	color: var(--color-accent);
	border-color: rgba(200, 169, 110, 0.5);
	background: rgba(200, 169, 110, 0.08);
}

.product-hero__availability--out_of_stock {
	color: var(--color-text-muted);
	background: rgba(255, 255, 255, 0.03);
}

.product-hero__short-desc {
	font-family: var(--font-serif);
	font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
	line-height: var(--lh-relaxed);
	color: rgba(232, 232, 232, 0.92);
	margin: var(--sp-4) 0 0;
	max-width: 580px;
	padding: var(--sp-4) var(--sp-5);
	background: rgba(255, 255, 255, 0.03);
	border-left: 3px solid var(--color-accent);
	border-radius: 0 var(--radius) var(--radius) 0;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	font-style: italic;
}

.product-hero__actions {
	display: flex;
	gap: var(--sp-3);
	flex-wrap: wrap;
	margin-top: var(--sp-5);
}

/* ---- Responsive Hero ---- */

@media (max-width: 1024px) {
	.product-hero__inner {
		grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
	}
}

@media (max-width: 900px) {
	.product-hero__inner {
		grid-template-columns: 1fr;
		gap: var(--sp-6);
	}
	.product-hero__media {
		max-width: 520px;
		margin-inline: auto;
		width: 100%;
	}
	.product-hero__content {
		align-items: center;
		text-align: center;
		max-width: none;
		padding-left: 0;
	}
	.product-hero__short-desc {
		margin-inline: auto;
		text-align: left;
	}
	.product-hero__cta {
		justify-content: center;
	}
	.product-hero__actions {
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.product-hero__thumb {
		flex: 0 0 60px;
		width: 60px;
		height: 60px;
	}
	.product-hero__arrow {
		height: 60px;
	}
}

/* ---- Produkt-Lightbox (Zoom auf das Haupt-Cover) ---- */

.product-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: clamp(20px, 5vw, 60px);
	background: rgba(0, 0, 0, 0.92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	cursor: zoom-out;
}

.product-lightbox.is-open {
	display: flex;
	animation: product-lightbox-fade 0.2s ease both;
}

@keyframes product-lightbox-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.product-lightbox__img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	border-radius: var(--radius);
	box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8);
	cursor: default;
}

.product-lightbox__close {
	position: absolute;
	top: clamp(16px, 3vw, 28px);
	right: clamp(16px, 3vw, 28px);
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	cursor: pointer;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.product-lightbox__close:hover,
.product-lightbox__close:focus-visible {
	background: var(--color-accent);
	border-color: var(--color-accent);
	color: var(--color-bg);
	transform: scale(1.05);
	outline: none;
}

/* ---- Langbeschreibung (direkt unter Hero) — Premium Panel ---- */

.product-description {
	padding-block: var(--sp-8) var(--sp-10);
}

.product-description__header {
	margin: 0 0 var(--sp-5);
	text-align: left;
}

.product-description .eyebrow {
	color: var(--color-accent);
}

.product-description__body {
	width: 100%;
	margin: 0;
	padding: clamp(var(--sp-6), 4vw, var(--sp-8));
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%),
		var(--color-bg-alt);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
	position: relative;
}

.product-description__body::before {
	content: '';
	position: absolute;
	top: -1px;
	left: var(--sp-6);
	right: var(--sp-6);
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(200, 169, 110, 0.35), transparent);
}

.product-description__body .entry-content {
	font-family: var(--font-serif);
	font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
	line-height: 1.75;
	color: rgba(232, 232, 232, 0.92);
}

.product-description__body .entry-content > * + * {
	margin-top: var(--sp-4);
}

.product-description__body .entry-content h2 {
	font-family: var(--font-display);
	font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem);
	margin-top: var(--sp-7);
	margin-bottom: var(--sp-3);
	color: var(--color-white);
	letter-spacing: var(--ls-tight);
}

.product-description__body .entry-content h3 {
	font-family: var(--font-display);
	font-size: clamp(1.2rem, 1rem + 0.6vw, 1.45rem);
	margin-top: var(--sp-6);
	margin-bottom: var(--sp-3);
	color: var(--color-white);
}

.product-description__body .entry-content a {
	color: var(--color-accent);
	text-decoration: underline;
	text-decoration-color: rgba(200, 169, 110, 0.4);
	text-underline-offset: 3px;
	transition: text-decoration-color var(--dur) var(--ease);
}

.product-description__body .entry-content a:hover {
	text-decoration-color: var(--color-accent);
}

.product-description__body .entry-content ul,
.product-description__body .entry-content ol {
	padding-left: var(--sp-6);
}

.product-description__body .entry-content ul li::marker {
	color: var(--color-accent);
}

.product-description__body .entry-content blockquote {
	border-left: 3px solid var(--color-accent);
	padding: var(--sp-3) 0 var(--sp-3) var(--sp-5);
	margin: var(--sp-5) 0;
	font-style: italic;
	color: var(--color-white);
	background: rgba(200, 169, 110, 0.04);
	border-radius: 0 var(--radius) var(--radius) 0;
}

.product-description__body .entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius);
	margin-block: var(--sp-4);
}

.product-description__body .entry-content hr {
	border: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--color-border-2), transparent);
	margin: var(--sp-6) 0;
}


/* --------------------------------------------------------------------------
   Empty-State (kein Produkt vorhanden)
   -------------------------------------------------------------------------- */

.main--shop .no-results {
	text-align: center;
	padding: var(--sp-9) var(--sp-4);
	border: 1px dashed var(--color-border);
	border-radius: var(--radius-md);
	background: rgba(255, 255, 255, 0.02);
}

/* --------------------------------------------------------------------------
   Single Product — Abstände zwischen Sektionen straffer halten.
   -------------------------------------------------------------------------- */

.main--product .event-section {
	padding-block: var(--sp-7);
}

.main--product .event-section + .event-section {
	padding-top: 0;
}

.main--product .product-description + .event-section {
	padding-top: 0;
}

/* Foto-Galerie auf der Produkt-Seite — Masonry-Layout (identisch zur Projektseite). */
.main--product .project-gallery {
	column-count: 3;
	column-gap: var(--sp-4);
}

@media (max-width: 1024px) { .main--product .project-gallery { column-count: 2; } }
@media (max-width: 640px)  { .main--product .project-gallery { column-count: 1; } }

.main--product .project-gallery__item {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	cursor: zoom-in;
	background: var(--color-surface);
	margin: 0 0 var(--sp-4);
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	transition: transform var(--dur) var(--ease);
}

.main--product .project-gallery__item:hover {
	transform: translateY(-4px);
}

.main--product .project-gallery__item img {
	width: 100%;
	height: auto;
	display: block;
	transition: opacity var(--dur) var(--ease);
}

.main--product .project-gallery__item:hover img {
	opacity: 0.88;
}

.main--product .project-gallery__item--video {
	cursor: default;
	aspect-ratio: 16 / 9;
}

.main--product .project-gallery__item--video:hover {
	transform: none;
}

.main--product .project-gallery__video {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
}

/* Video-Galerie — 2-Spalten-Raster. */
.main--product .project-gallery--videos {
	column-count: unset;
	column-gap: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--sp-4);
}

@media (max-width: 640px) {
	.main--product .project-gallery--videos {
		grid-template-columns: 1fr;
	}
}

.main--product .project-gallery--videos .project-gallery__item {
	margin: 0;
}

/* =====================================================================
 * Sektion-Hintergründe (pro Sektion individuell wählbare Farbe/Bild).
 * ================================================================== */

.product-section-bg {
	position: relative;
}

.product-section-bg .section {
	background: transparent;
}

/* =====================================================================
 * Sponsor / Partner — Logo + Name + optionaler Link.
 * ================================================================== */

.product-sponsor {
	max-width: 640px;
	margin: 0 auto;
	padding: var(--sp-6) var(--sp-5);
	text-align: center;
	background: var(--color-bg-alt);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--sp-3);
	color: var(--color-text);
	text-decoration: none;
	transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.product-sponsor--link:hover,
.product-sponsor--link:focus-visible {
	border-color: var(--color-accent);
	background: var(--color-surface);
	transform: translateY(-2px);
	outline: none;
}

.product-sponsor__eyebrow {
	font-family: var(--font-sans);
	font-size: var(--fs-xs);
	letter-spacing: var(--ls-wider);
	text-transform: uppercase;
	color: var(--color-accent);
	margin: 0;
}

.product-sponsor__logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 240px;
	max-height: 100px;
	padding: var(--sp-3) var(--sp-4);
	background: #fff;
	border-radius: var(--radius);
}

.product-sponsor__logo img {
	max-width: 100%;
	max-height: 80px;
	height: auto;
	width: auto;
	display: block;
	object-fit: contain;
}

.product-sponsor__name {
	font-family: var(--font-display);
	font-size: clamp(1.15rem, 1.6vw, 1.4rem);
	margin: 0;
	color: var(--color-text);
}

.product-sponsor__desc {
	font-family: var(--font-sans);
	font-size: var(--fs-sm);
	line-height: 1.6;
	color: var(--color-text-muted);
	margin: 0;
	max-width: 480px;
}

.product-sponsor__cta {
	font-family: var(--font-sans);
	font-size: var(--fs-sm);
	color: var(--color-accent);
}

/* Sidebar-Layout: kompakter, linksbündig, kleinere Logo-Box. */
.single-product--sidebar .product-layout__side .product-sponsor {
	max-width: none;
	margin: 0;
	padding: var(--sp-4);
	text-align: left;
	align-items: flex-start;
	gap: var(--sp-2);
}

.single-product--sidebar .product-layout__side .product-sponsor__logo {
	max-width: 100%;
	max-height: 64px;
	padding: var(--sp-2) var(--sp-3);
}

.single-product--sidebar .product-layout__side .product-sponsor__logo img {
	max-height: 48px;
}

.single-product--sidebar .product-layout__side .product-sponsor__name {
	font-size: 1.05rem;
}

.single-product--sidebar .product-layout__side .product-sponsor__desc {
	font-size: 0.85rem;
}

/* =====================================================================
 * Sidebar-Layout (Produkt-Detail): Hauptbereich 2/3, Sidebar 1/3.
 * „Verwandte Produkte" bleibt volle Breite ans Ende.
 * ================================================================== */

.single-product--sidebar .product-layout-wrap {
	padding-top: var(--sp-5);
	padding-bottom: var(--sp-6);
}

.single-product--sidebar .product-layout {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: var(--sp-7);
	align-items: start;
}

@media (max-width: 960px) {
	.single-product--sidebar .product-layout {
		grid-template-columns: 1fr;
		gap: var(--sp-5);
	}
}

.single-product--sidebar .product-layout .container {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

.single-product--sidebar .product-layout .section {
	padding-block: var(--sp-5);
}

.single-product--sidebar .product-layout .section:first-child {
	padding-top: 0;
}

@media (min-width: 961px) {
	.single-product--sidebar .product-layout__side {
		position: sticky;
		top: calc(var(--header-h, 80px) + var(--sp-4));
		display: flex;
		flex-direction: column;
		gap: var(--sp-4);
	}
	.single-product--sidebar .product-layout__side .section {
		padding-block: 0;
	}
	.single-product--sidebar .product-layout__side .event-section__heading {
		font-size: 1.4rem;
	}
	.single-product--sidebar .product-layout__side .event-section__header {
		margin-bottom: var(--sp-3);
	}
}

/* Downloads: linksbündig + kleinere Typo. */
.single-product--sidebar .product-downloads-section .event-section__header {
	text-align: left;
	align-items: flex-start;
}

.single-product--sidebar .product-downloads-section .eyebrow,
.single-product--sidebar .product-downloads-section .event-section__heading {
	text-align: left;
}

.single-product--sidebar .product-downloads-section .event-section__heading {
	font-size: clamp(1.4rem, 2vw, 1.7rem);
}

/* Soziale Netzwerke im Sidebar: kompakte Typo & linksbündig. */
.single-product--sidebar .product-layout__side .social-section,
.single-product--sidebar .product-layout__side .social-section .container,
.single-product--sidebar .product-layout__side .social-section .section__header {
	text-align: left;
}

.single-product--sidebar .product-layout__side .social-section .section__header {
	align-items: flex-start;
}

.single-product--sidebar .product-layout__side .social-section .section__title {
	font-size: 1.4rem;
	text-align: left;
}

.single-product--sidebar .product-layout__side .social-section .social-grid {
	grid-template-columns: 1fr;
	gap: var(--sp-2);
}

.single-product--sidebar .product-layout__side .social-section .social-card {
	padding: var(--sp-3);
	font-size: 0.9rem;
}

