/* ==========================================================
   Startseitengalerie [tcm_startpage]
   ========================================================== */
.tcm-startpage-gallery {
	width: 100%;
	font-family: var(--tcm-fe-font, inherit);
	color: var(--tcm-fe-text, #020f26);
}
.tcm-startpage-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 22px;
}
.tcm-startpage-title {
	margin: 0;
	color: var(--tcm-fe-inventory-heading, #020f26);
	font-size: clamp(24px, 2vw, 32px);
	font-weight: 800;
	line-height: 1.15;
}
.tcm-startpage-all-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--tcm-fe-inventory-button-bg, #1e73be);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.tcm-startpage-all-link span:last-child { font-size: 20px; transition: transform .2s ease; }
.tcm-startpage-all-link:hover span:last-child { transform: translateX(4px); }
.tcm-startpage-slider {
	position: relative;
	width: 100%;
	padding-top: 8px;
	padding-bottom: 22px;
}
.tcm-startpage-viewport {
	width: 100%;
	overflow: hidden;
	touch-action: pan-y;
}
.tcm-startpage-track {
	display: flex;
	align-items: stretch;
	gap: 18px;
	will-change: transform;
	transition: transform .65s cubic-bezier(.22,.61,.36,1);
}
.tcm-startpage-track.is-dragging {
	transition: none;
}
.tcm-startpage-slide {
	flex: 0 0 calc((100% - 54px) / 4);
	min-width: 0;
}
.tcm-startpage-slide .tcm-startpage-card {
	height: 100%;
}
.tcm-startpage-nav {
	position: absolute;
	top: 42%;
	z-index: 6;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid rgba(255,255,255,.72);
	border-radius: 13px;
	background: rgba(2,15,38,.62);
	color: #fff;
	box-shadow: 0 10px 26px rgba(2,15,38,.22);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	cursor: pointer;
	opacity: 0;
	transform: translateY(-50%) scale(.96);
	transition: opacity .24s ease, background-color .24s ease, border-color .24s ease, box-shadow .24s ease, transform .24s cubic-bezier(.22,.61,.36,1);
}
.tcm-startpage-slider:hover .tcm-startpage-nav,
.tcm-startpage-nav:focus-visible {
	opacity: 1;
	transform: translateY(-50%) scale(1);
}
.tcm-startpage-nav:hover {
	background: color-mix(in srgb, var(--tcm-fe-inventory-button-bg, #1e73be) 90%, #020f26);
	border-color: rgba(255,255,255,.92);
	box-shadow: 0 12px 30px rgba(2,15,38,.30);
	transform: translateY(-50%) scale(1.05);
}
.tcm-startpage-nav span {
	font-size: 30px;
	line-height: 1;
	transform: translateY(-1px);
}
.tcm-startpage-prev { left: 12px; }
.tcm-startpage-next { right: 12px; }
.tcm-startpage-nav:disabled { display: none; }

.tcm-startpage-dots {
	position: absolute;
	left: 50%;
	bottom: 0;
	display: flex;
	gap: 7px;
	transform: translateX(-50%);
}
.tcm-startpage-dot {
	width: 6px;
	height: 6px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(100,116,139,.34);
	cursor: pointer;
	transition: width .24s ease, background-color .24s ease, opacity .24s ease;
}
.tcm-startpage-dot:hover {
	background: rgba(100,116,139,.58);
}
.tcm-startpage-dot.is-active {
	width: 18px;
	background: color-mix(in srgb, var(--tcm-fe-inventory-button-bg, #1e73be) 82%, #020f26);
}
.tcm-startpage-slider.is-static {
	padding-bottom: 0;
}
.tcm-startpage-slider.is-static .tcm-startpage-dots,
.tcm-startpage-slider.is-static .tcm-startpage-nav {
	display: none;
}
.tcm-startpage-card {
	position: relative;
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--tcm-fe-inventory-card-border, #dce4ef);
	border-radius: var(--tcm-fe-inventory-card-radius, 10px);
	background: var(--tcm-fe-inventory-card-bg, #fff);
	box-shadow: var(--tcm-fe-inventory-card-shadow, 0 8px 25px rgba(2,15,38,.08));
	transform: translateZ(0);
	transition: transform .32s cubic-bezier(.22,.61,.36,1), box-shadow .32s ease, border-color .32s ease;
}


.tcm-startpage-card-link {
	display: flex;
	height: 100%;
	flex-direction: column;
	color: inherit;
	text-decoration: none ;
}
.tcm-startpage-card-link:visited,
.tcm-startpage-card-link:hover,
.tcm-startpage-card-link:focus {
	color: inherit;
	text-decoration: none ;
}
.tcm-startpage-card-link:focus-visible {
	outline: 3px solid var(--tcm-fe-inventory-button-bg, #1e73be);
	outline-offset: -3px;
	border-radius: inherit;
}
.tcm-startpage-card-title {
	display: block;
	color: var(--tcm-fe-inventory-card-title, #020f26);
}
.tcm-startpage-card-body,
.tcm-startpage-card-footer,
.tcm-startpage-data {
	box-sizing: border-box;
}
.tcm-startpage-card:hover {
	transform: translateY(-7px);
	border-color: color-mix(in srgb, var(--tcm-fe-inventory-button-bg, #1e73be) 72%, #ffffff);
	box-shadow: 0 18px 42px rgba(2,15,38,.14);
}
.tcm-startpage-image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #f4f6f8;
}
.tcm-startpage-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 45%;
	transition: none;
}
.tcm-startpage-card:hover .tcm-startpage-image img {
	transform: none;
}
.tcm-startpage-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 11px 13px 12px;
}
.tcm-startpage-card-title {
	margin: 0;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.22;
}
.tcm-startpage-card-subtitle {
	min-height: 17px;
	margin-top: 4px;
	color: var(--tcm-fe-inventory-card-subtitle, #667085);
	font-size: 11px;
	font-weight: 600;
}
.tcm-startpage-data {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 9px;
	margin-top: 7px;
	color: var(--tcm-fe-inventory-data-text, #667085);
	font-size: 10px;
	font-weight: 600;
}
.tcm-startpage-data span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
}
.tcm-startpage-data svg {
	width: 12px;
	height: 12px;
	fill: none;
	stroke: var(--tcm-fe-inventory-icon, #1e73be);
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.tcm-startpage-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid var(--tcm-fe-inventory-data-border, #e5eaf1);
}
.tcm-startpage-price {
	color: var(--tcm-fe-inventory-card-price, #020f26);
	font-size: 17px;
	font-weight: 850;
	line-height: 1;
}
.tcm-startpage-card-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	color: var(--tcm-fe-inventory-button-bg, #1e73be);
	font-size: 20px;
	text-decoration: none;
	transition: transform .2s ease;
}
.tcm-startpage-card-arrow:hover { transform: translateX(3px); }
.tcm-startpage-empty {
	padding: 28px;
	border: 1px solid var(--tcm-fe-inventory-card-border, #dce4ef);
	border-radius: 10px;
	background: var(--tcm-fe-inventory-card-bg, #fff);
	text-align: center;
}
@media (max-width: 1100px) {
	.tcm-startpage-slide { flex-basis: calc((100% - 18px) / 2); }
}
@media (max-width: 640px) {
	.tcm-startpage-head { align-items: flex-start; flex-direction: column; gap: 10px; }
	.tcm-startpage-title { font-size: 24px; }
	.tcm-startpage-slide { flex-basis: 100%; }
	.tcm-startpage-nav {
		width: 38px;
		height: 38px;
		opacity: .92;
	}
	.tcm-startpage-prev { left: 8px; }
	.tcm-startpage-next { right: 8px; }
}

/* ==========================================================
   6.1.6 – FLEXIBLE STARTSEITEN-GALERIE
   4 / 3 / 2 / 1 Karten nach realer Containerbreite.
   width="wide" kann schmale Theme-Container kontrolliert verlassen.
   ========================================================== */
.tcm-startpage-gallery {
	container-type: inline-size;
}

.tcm-startpage-gallery.tcm-startpage-width-wide {
	position: relative;
	left: 50%;
	width: min(1560px, calc(100vw - 48px));
	max-width: none;
	transform: translateX(-50%);
}

.tcm-startpage-track {
	gap: 24px;
}

.tcm-startpage-slide {
	flex-basis: calc((100% - 72px) / 4);
}

.tcm-startpage-card {
	border-radius: max(12px, var(--tcm-fe-inventory-card-radius, 10px));
}

.tcm-startpage-card-body {
	padding: 18px 18px 17px;
}

.tcm-startpage-card-title {
	font-size: clamp(17px, 1.4vw, 20px);
	line-height: 1.25;
}

.tcm-startpage-card-subtitle {
	min-height: 19px;
	margin-top: 6px;
	font-size: 12px;
}

.tcm-startpage-data {
	gap: 8px 12px;
	margin-top: 11px;
	font-size: 12px;
}

.tcm-startpage-data svg {
	width: 14px;
	height: 14px;
}

.tcm-startpage-card-footer {
	margin-top: 13px;
	padding-top: 13px;
}

.tcm-startpage-price {
	font-size: clamp(20px, 1.8vw, 24px);
}

@container (max-width: 1249px) {
	.tcm-startpage-slide { flex-basis: calc((100% - 48px) / 3); }
}

@container (max-width: 899px) {
	.tcm-startpage-slide { flex-basis: calc((100% - 24px) / 2); }
}

@container (max-width: 599px) {
	.tcm-startpage-slide { flex-basis: 100%; }
	.tcm-startpage-card-body { padding: 17px; }
}

@media (max-width: 680px) {
	.tcm-startpage-gallery.tcm-startpage-width-wide {
		width: calc(100vw - 24px);
	}
}
