/* Standalone Showroom test page overrides */
/* Supports both galerie-body (new) and showroom-body (legacy) */

body.galerie-body,
body.showroom-body {
	--showroom-pad-block: clamp(2rem, 5vw, 3rem);
	margin: 0;
	background: radial-gradient(circle at 16% 20%, rgba(255, 241, 214, 0.28), rgba(44, 34, 28, 0.88) 60%),
		linear-gradient(135deg, rgba(196, 158, 120, 0.94), rgba(58, 45, 36, 0.88));
	background-attachment: fixed;
	color: #fff8ed;
	font-family: 'Source Sans Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
	line-height: 1.6;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: var(--showroom-pad-block) 0 0;
	border-top: 0 !important;
	/* Flexbox layout to push footer to bottom */
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* min-height now set directly on body.galerie-body */

@supports (min-height: 100svh) {

	body.galerie-body,
	body.showroom-body {
		min-height: 100svh;
	}
}

@supports (min-height: 100dvh) {

	body.galerie-body,
	body.showroom-body {
		min-height: 100dvh;
	}
}

@supports (top: env(safe-area-inset-top)) {

	body.galerie-body,
	body.showroom-body {
		padding-top: calc(var(--showroom-pad-block) + env(safe-area-inset-top));
		padding-bottom: env(safe-area-inset-bottom);
	}
}

.galerie-page,
.showroom-page {
	width: min(100%, 1400px);
	margin: 0 auto;
	padding: 0 clamp(1.5rem, 6vw, 4rem) 1.5rem;
	/* Flex child that grows to push footer down */
	flex: 1;
	flex-grow: 1;
	display: block;
}

.galerie-hero,
.showroom-hero {
	text-align: left;
	max-width: 720px;
	margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

/* Prevent overlap with fixed back button by indenting */
@media (min-width: 600px) {

	.galerie-hero,
	.showroom-hero {
		padding-left: 6rem;
	}
}


.galerie-eyebrow,
.showroom-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.4em;
	font-size: 0.85rem;
	color: rgba(255, 243, 221, 0.9);
	margin-bottom: 0.5rem;
}

.galerie-hero h1,
.showroom-hero h1 {
	margin: 0 0 0.75rem 0;
	font-size: clamp(2.5rem, 6vw, 3.4rem);
	color: #ffe4bc;
	letter-spacing: -0.02em;
}

.galerie-lede,
.showroom-lede {
	color: rgba(255, 250, 244, 0.92);
	margin: 0;
	font-size: 1.1rem;
}

.galerie-panel,
.showroom-panel {
	background: rgba(50, 41, 34, 0.72);
	border: 1px solid rgba(255, 226, 184, 0.44);
	border-radius: 32px;
	box-shadow: 0 20px 42px rgba(0, 0, 0, 0.32);
	padding: clamp(1.8rem, 4vw, 2.7rem) clamp(1.5rem, 4.5vw, 3rem);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	color: #fff9f1;
}

.galerie-panel+.galerie-panel,
.showroom-panel+.showroom-panel {
	margin-top: clamp(1.5rem, 4vw, 2.4rem);
}

.galerie-panel h2,
.galerie-panel h3,
.showroom-panel h2,
.showroom-panel h3 {
	color: #ffeccd;
	margin-top: 0;
	font-weight: 700;
}

.galerie-panel p,
.showroom-panel p {
	color: rgba(255, 252, 247, 0.94);
	line-height: 1.6;
}

body.galerie-body #footer,
body.showroom-body #footer {
	position: static;
	background: transparent;
	line-height: 1.4;
	padding: 1rem clamp(1.5rem, 6vw, 4rem) 0.5rem;
	margin: 1.5rem auto 0;
	text-align: center;
	color: rgba(248, 246, 242, 0.7);
	width: min(100%, 1400px);
	height: auto;
}



body.galerie-body #footer a,
body.showroom-body #footer a {
	color: #ffe2ba;
	border: none;
}

body.galerie-body .sticky-nav,
body.showroom-body .sticky-nav {
	top: auto !important;
	bottom: clamp(12px, 2.8vh, 26px) !important;
	z-index: 150000 !important;
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {

	body.galerie-body,
	body.showroom-body {
		padding-bottom: env(safe-area-inset-bottom);
	}

	body.galerie-body .sticky-nav,
	body.showroom-body .sticky-nav {
		bottom: calc(clamp(12px, 2.8vh, 26px) + env(safe-area-inset-bottom));
	}
}

/* === MOBILE-OPTIMIERTE FILTER & GRID === */

.galerie-filters-container {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
	padding: 0.5rem 0;
}

.filter-group {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
}

.filter-label {
	font-weight: 700;
	color: #ffe4bc;
	font-size: 0.95rem;
	min-width: 100px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.9;
}

.filter-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.filter-btn {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 226, 184, 0.3);
	border-radius: 2rem;
	padding: 0.55rem 1.4rem;
	color: rgba(255, 248, 237, 0.85);
	font-size: 0.9rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.25s ease;
	letter-spacing: 0.02em;
	-webkit-tap-highlight-color: transparent;
}

.filter-btn:hover,
.filter-btn:focus-visible {
	background: rgba(255, 255, 255, 0.15);
	border-color: rgba(255, 226, 184, 0.5);
	color: #fff8ed;
	transform: translateY(-1px);
}

.filter-btn.active {
	background: linear-gradient(135deg, rgba(196, 158, 120, 0.7), rgba(139, 105, 75, 0.7));
	border-color: rgba(255, 226, 184, 0.6);
	color: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.galerie-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.2rem;
	width: 100%;
}

@media (min-width: 520px) {
	.galerie-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.4rem;
	}
}

@media (min-width: 900px) {
	.galerie-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.6rem;
		max-width: 1400px;
		margin: 0 auto;
	}
}

.galerie-fallback {
	color: rgba(248, 246, 242, 0.75);
	margin: 0;
	padding: 2rem;
	text-align: center;
	grid-column: 1 / -1;
}

/* === KARTEN DESIGN === */

.sr-card {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	background: rgba(12, 10, 9, 0.85);
	border: 1px solid rgba(241, 208, 154, 0.2);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
	transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
	cursor: pointer;
	aspect-ratio: 3/4;
	/* Responsive fluid sizing: scales from 320px (mobile) to 550px (large desktop) */
	min-height: clamp(320px, 28vw, 550px);
	display: flex;
	flex-direction: column;
	contain: layout style;
}

.sr-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
	border-color: rgba(241, 208, 154, 0.35);
}

.sr-card.hidden {
	display: none;
}

/* Media Container */
.sr-media-container {
	position: relative;
	flex: 1;
	width: 100%;
	overflow: hidden;
	max-height: 100%;
}

.sr-media-bg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
	filter: saturate(1.05);
}

.sr-card:hover .sr-media-bg {
	transform: scale(1.08);
}

/* Badge */
.sr-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	padding: 0.4rem 0.75rem;
	border-radius: 1.2rem;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: #fff;
	letter-spacing: 0.03em;
	z-index: 10;
	border: 1px solid rgba(255, 255, 255, 0.15);
}

.sr-badge svg {
	width: 14px;
	height: 14px;
	opacity: 0.9;
}

.sr-badge--accent {
	background: linear-gradient(135deg, rgba(196, 158, 120, 0.85), rgba(139, 105, 75, 0.85));
	border-color: rgba(255, 226, 184, 0.3);
}

/* Info Footer - Modern Glassmorphism */
.sr-card-info {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 10px;
	background: linear-gradient(180deg, rgba(20, 16, 14, 0.6) 0%, rgba(10, 8, 7, 0.9) 100%);
	backdrop-filter: blur(12px) saturate(140%);
	-webkit-backdrop-filter: blur(12px) saturate(140%);
	padding: 16px 20px;
	z-index: 5;
	pointer-events: none;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.sr-card-info::before {
	display: none;
}

.sr-info-title {
	font-size: 14px;
	font-weight: 400;
	/* GLOBAL CHANGE: Normal weight (user request) */
	color: #FFFFFF;
	margin: 0 0 2px 0;
	padding: 0;
	line-height: 1.3;
	letter-spacing: -0.01em;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
	position: relative;
	z-index: 1;
}

.sr-info-sub {
	font-size: 12px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.7);
	margin: 0;
	padding: 0;
	line-height: 1.3;
	letter-spacing: -0.005em;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
	position: relative;
	z-index: 1;
}

/* Compare Cards */
.sr-compare-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
}

.sr-img-after,
.sr-img-before {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sr-img-before {
	clip-path: polygon(0 0, 70% 0, 70% 100%, 0 100%);
	transition: clip-path 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	border-right: 2px solid rgba(255, 255, 255, 0.9);
}

.sr-card:hover .sr-img-before,
.sr-card:active .sr-img-before {
	clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
}

/* Material/Partner Cards */
.sr-card.type-material {
	background: linear-gradient(135deg, rgba(40, 32, 26, 0.95), rgba(20, 16, 13, 0.95));
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2rem 1.5rem;
	text-align: center;
	gap: 1rem;
}

.sr-mat-logo {
	max-width: 140px;
	max-height: 80px;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: brightness(1.1) contrast(1.05);
}

.sr-card.type-material h3 {
	font-size: 1.15rem;
	color: #ffe4bc;
	margin: 0;
	font-weight: 600;
}

.sr-card.type-material p {
	font-size: 0.9rem;
	color: rgba(255, 248, 237, 0.8);
	margin: 0;
	line-height: 1.5;
}

/* Old stream styles - keeping for backwards compatibility but unused */
.galerie-stream {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: clamp(2.5rem, 6vw, 3.5rem) clamp(3vw, 6vw, 5vw) clamp(3rem, 6vw, 4rem);
	gap: clamp(1rem, 2.4vw, 1.8rem);
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	position: relative;
	background: rgba(10, 8, 6, 0.35);
	border-radius: 32px;
	border: 1px solid rgba(241, 208, 154, 0.18);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
	cursor: grab;
}

.galerie-stream .sr-card {
	flex: 0 0 clamp(280px, 80vw, 350px);
	aspect-ratio: 3/4;
	scroll-snap-align: center;
}

.galerie-stream::-webkit-scrollbar {
	display: none;
}

.galerie-stream.is-dragging {
	cursor: grabbing;
}

.galerie-stream-fallback {
	color: rgba(248, 246, 242, 0.75);
	margin: 0;
}

/* Legacy .sr-card styles - DISABLED to prevent grid overlap
.sr-card {
	flex: 0 0 320px;
	height: 520px;
	border-radius: 28px;
	position: relative;
	overflow: hidden;
	background: rgba(12, 10, 9, 0.9);
	border: 1px solid rgba(241, 208, 154, 0.18);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
	scroll-snap-align: center;
	transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
	cursor: pointer;
}

.sr-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}
*/

/* Duplicate media styles - DISABLED
.sr-media-bg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s ease;
	filter: saturate(1.05);
}

.sr-card:hover .sr-media-bg {
	transform: scale(1.05);
}

.sr-compare-wrapper,
.sr-img-after,
.sr-img-before {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.sr-img-after,
.sr-img-before {
	object-fit: cover;
}

.sr-img-before {
	filter: grayscale(90%) contrast(1.1);
	clip-path: polygon(0 0, 100% 0, 0 100%);
	transition: clip-path 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	border-right: 2px solid rgba(255, 255, 255, 0.8);
}

.sr-card:hover .sr-img-before {
	clip-path: polygon(0 0, 0 0, 0 100%);
}
*/

/* Duplicate card info styles - DISABLED
.sr-card-info {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0.8rem 1rem;
	border-radius: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.6) 70%, transparent);
	border: none;
	backdrop-filter: none;
	color: #fff;
	box-shadow: none;
	z-index: 1;
	pointer-events: none;
}

.sr-info-title {
	margin: 0 0 0.2rem 0;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.3;
}

.sr-info-sub {
	margin: 0;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.75);
	line-height: 1.4;
}
*/

/* Duplicate badge styles - DISABLED
.sr-badge {
	position: absolute;
	top: 20px;
	right: 20px;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	background: rgba(10, 22, 39, 0.68);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}

.sr-badge--accent {
	background: linear-gradient(135deg, rgba(193, 138, 81, 0.95), rgba(114, 76, 41, 0.95));
	border-color: rgba(241, 208, 154, 0.5);
}

.sr-badge svg {
	width: 12px;
	height: 12px;
}
*/

/* Duplicate material card styles - DISABLED
.sr-card.type-material {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 2rem;
	gap: 0.5rem;
}

.sr-mat-logo {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(241, 208, 154, 0.4);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 12px 28px rgba(0, 0, 0, 0.35);
	margin-bottom: 1rem;
}

.sr-card.type-material h3 {
	margin: 0;
	font-size: 1.35rem;
}

.sr-card.type-material p {
	margin: 0;
	color: rgba(248, 246, 242, 0.78);
	font-size: 0.95rem;
}
*/

/* Video Play Button Overlay - Only if .has-play-overlay is present */
.sr-card.type-video.has-play-overlay::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 56px;
	height: 56px;
	background: rgba(20, 15, 10, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 2;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sr-card.type-video.has-play-overlay::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 8px 0 8px 14px;
	border-color: transparent transparent transparent #fff;
	z-index: 3;
	margin-left: 2px;
	/* Optical adjustment */
	pointer-events: none;
}

.sr-card.type-video:hover::after {
	transform: translate(-50%, -50%) scale(1.1);
	background: rgba(193, 138, 81, 0.9);
	border-color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
	.galerie-stream {
		display: flex;
		flex-direction: column;
		gap: 2.5rem;
		padding: 1rem 1.5rem 5rem;
		background: transparent;
		border: none;
		box-shadow: none;
		overflow: visible;
	}

	/* Immersive Card Style - "The Art Piece" */
	.sr-card {
		width: 100%;
		aspect-ratio: 4 / 5;
		/* Cinematic Portrait */
		height: auto;
		flex: none;
		border-radius: 32px;
		border: 1px solid rgba(255, 255, 255, 0.1);
		background: #0e0e0e;
		box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
		overflow: hidden;
		position: relative;
		transform: translateZ(0);
		scroll-snap-align: start;
	}

	/* Typography - Compact to avoid overlap */
	/* Typography - Compact to avoid overlap - DISABLED TO FORCE DESKTOP STYLE
	.sr-card-info {
		position: absolute;
		bottom: 0;
		left: 0;
		right: 0;
		padding: 1rem 1.5rem 1rem;
		background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 20%, rgba(0, 0, 0, 0.7) 60%, transparent 100%);
		backdrop-filter: none;
		border: none;
		border-radius: 0 0 32px 32px;
		text-align: left;
		pointer-events: none;
		z-index: 1;
	}
    */

	.sr-info-title {
		font-size: 1rem;
		/* font-weight: 700;  <-- DISABLED: Use default normal weight */
		line-height: 1.2;
		margin-bottom: 0.2rem;
		color: #fff;
		text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
	}

	.sr-info-sub {
		font-size: 0.8rem;
		color: rgba(255, 255, 255, 0.85);
		font-weight: 400;
		white-space: normal;
		line-height: 1.3;
	}

	/* Badges - Minimalist & Clean */
	.sr-badge {
		top: 1.5rem;
		left: 1.5rem;
		right: auto;
		background: rgba(255, 255, 255, 0.15);
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
		border: 1px solid rgba(255, 255, 255, 0.25);
		padding: 0.5rem 1rem;
		font-size: 0.75rem;
		font-weight: 600;
		letter-spacing: 0.05em;
		text-transform: uppercase;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	}

	/* Material Cards - Break the Rhythm (Landscape) */
	.sr-card.type-material {
		aspect-ratio: 2 / 1;
		background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
		display: flex;
		flex-direction: row;
		align-items: center;
		padding: 1.5rem 2rem;
		gap: 1.5rem;
	}

	.sr-card.type-material .sr-mat-logo {
		width: 72px;
		height: 72px;
		margin: 0;
		flex-shrink: 0;
		border: 2px solid rgba(255, 255, 255, 0.15);
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
	}

	.sr-card.type-material div {
		text-align: left;
	}

	.sr-card.type-material h3 {
		font-size: 1.3rem;
		margin-bottom: 0.3rem;
		color: #fff;
	}

	.sr-card.type-material p {
		font-size: 0.9rem;
		color: rgba(255, 255, 255, 0.6);
	}

	/* Video Play Button - Prominent */
	.sr-card.type-video.has-play-overlay::after {
		width: 72px;
		height: 72px;
		background: rgba(255, 255, 255, 0.15);
		border: 1px solid rgba(255, 255, 255, 0.5);
		backdrop-filter: blur(8px);
	}

	.galerie-stream::-webkit-scrollbar {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {

	.sr-card,
	.sr-media-bg {
		transition: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {

	.sr-card,
	.sr-media-bg {
		transition: none !important;
	}
}