/**
 * Startseite: Highlights, Sortiment, Torten-Slider.
 * Alle Textelemente sind <span>, damit wpautop nichts umbricht.
 */

/* ---- Highlights ---- */

.hmc-highlights {
	display: grid !important;
	grid-template-columns: repeat( auto-fit, minmax( 230px, 1fr ) );
	gap: 22px;
	max-width: 1200px;
	margin: 0 auto 60px !important;
	padding: 0 20px;
}

.hmc-highlight {
	display: flex !important;
	flex-direction: column;
	background: #fff;
	border: 2px solid #FCE4E6;
	border-radius: 18px;
	overflow: hidden;
	text-decoration: none !important;
	color: #3D2828 !important;
	transition: transform .15s, box-shadow .15s;
}

.hmc-highlight:hover {
	transform: translateY( -4px );
	box-shadow: 0 12px 24px rgba( 217, 108, 122, .15 );
}

.hmc-highlight img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	margin: 0;
}

.hmc-highlight__body {
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding: 18px 20px 22px;
	flex: 1;
}

.hmc-highlight__title {
	display: block;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none !important;
}

.hmc-highlight__text {
	display: block;
	font-size: 14px;
	line-height: 1.5;
	color: #6a5555;
	flex: 1;
	text-decoration: none !important;
}

.hmc-highlight__price {
	display: block;
	font-weight: 700;
	color: #D96C7A;
	font-size: 16px;
	text-decoration: none !important;
}

/* ---- Sortiment ---- */

.hmc-cats--two {
	grid-template-columns: repeat( auto-fit, minmax( 280px, 1fr ) ) !important;
	max-width: 860px !important;
}

.hmc-cats--two .hmc-cat {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 36px 26px;
	text-decoration: none !important;
}

.hmc-cats--two .hmc-cat .icon {
	font-size: 40px;
	line-height: 1;
	margin: 0 0 4px;
}

.hmc-cat__title {
	display: block;
	font-size: 20px;
	font-weight: 700;
	text-decoration: none !important;
}

.hmc-cat__text {
	display: block;
	font-size: 14px;
	color: #6a5555;
	line-height: 1.5;
	text-decoration: none !important;
}

/* ---- USPs ---- */

.hmc-usp {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.hmc-usp .icon {
	font-size: 44px;
	line-height: 1;
	margin-bottom: 6px;
}

.hmc-usp__title {
	display: block;
	font-weight: 700;
	font-size: 17px;
	color: #D96C7A;
}

.hmc-usp__text {
	display: block;
	font-size: 14px;
	color: #6a5555;
	line-height: 1.5;
}

/* ---- Slider ---- */

.hmc-section-intro {
	max-width: 760px;
	margin: 0 auto 28px !important;
	padding: 0 20px;
	text-align: center;
	color: #6a5555;
	line-height: 1.6;
}

.hmc-slider {
	position: relative;
	max-width: 1200px;
	margin: 0 auto 28px;
	padding: 0 20px;
}

.hmc-slider__track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 8px;
	scrollbar-width: thin;
}

.hmc-slider__track::-webkit-scrollbar { height: 6px; }
.hmc-slider__track::-webkit-scrollbar-thumb { background: #FCE4E6; border-radius: 3px; }

.hmc-slider__track img {
	flex: 0 0 auto;
	width: 300px;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 16px;
	scroll-snap-align: start;
	margin: 0;
}

.hmc-slider__btn {
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #D96C7A;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 12px rgba( 61, 40, 40, .18 );
	display: grid;
	place-items: center;
	z-index: 2;
	padding: 0;
	transition: background .12s;
}

.hmc-slider__btn:hover { background: #FCE4E6; }
.hmc-slider__btn--prev { left: 6px; }
.hmc-slider__btn--next { right: 6px; }

.hmc-center {
	text-align: center;
	margin: 0 auto 60px !important;
}

/* Leere Absätze von wpautop ausblenden */
.hmc-highlights + p:empty,
.hmc-cats + p:empty,
.hmc-usps + p:empty,
p:empty { display: none; }

@media ( max-width: 720px ) {
	.hmc-slider__track img { width: 240px; }
	.hmc-slider__btn { width: 38px; height: 38px; font-size: 22px; }
}

@media ( prefers-reduced-motion: reduce ) {
	.hmc-highlight { transition: none; }
	.hmc-slider__track { scroll-behavior: auto; }
}
