/*
 * Heritage Motorworks — Highlights
 * Eigenständiges Modul-Layout
 *
 * Grundidee:
 * Die Produktbilder bleiben vollständig unangetastet.
 * Da alle Bilder einen weißen Hintergrund besitzen, liegt das Bild
 * auf einer weißen Galeriefläche. Alle dekorativen Effekte befinden
 * sich AUSSERHALB dieser Bildfläche.
 */


/* ==========================================================================
   SECTION
   ========================================================================== */

.hm-highlights {
	position: relative;
	overflow: hidden;
	padding: 112px 0 120px;
	background: #f7f7f5;
	color: #171a21;
}

.hm-highlights::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: min(900px, 72vw);
	height: 1px;
	transform: translateX(-50%);
	background: linear-gradient(
		90deg,
		transparent,
		rgba(24,168,145,.38),
		transparent
	);
}

.hm-highlights__inner {
	width: min(1320px, calc(100% - 96px));
	margin: 0 auto;
}


/* ==========================================================================
   HEADER
   ========================================================================== */

.hm-highlights__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 70px;
	margin-bottom: 52px;
}

.hm-highlights__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
	color: #18a891;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .2em;
	line-height: 1;
	text-transform: uppercase;
}

.hm-highlights__eyebrow::before {
	content: "";
	width: 32px;
	height: 1px;
	background: #18a891;
}

.hm-highlights__title {
	max-width: 780px;
	margin: 0;
	color: #171a21;
	font-size: clamp(42px, 4.6vw, 68px);
	font-weight: 600;
	letter-spacing: -.06em;
	line-height: .93;
}

.hm-highlights__intro {
	width: 330px;
	flex: 0 0 330px;
	margin: 0 0 4px;
	color: #6f746f;
	font-size: 13px;
	line-height: 1.8;
}


/* ==========================================================================
   GRID
   ========================================================================== */

.hm-highlights__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}


/* ==========================================================================
   CARD — CLEAN GALLERY POSTER
   ========================================================================== */

.hm-highlight {
	position: relative;
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid rgba(23,26,33,.09);
	border-radius: 20px;
	background: #fff;
	color: #171a21;
	text-decoration: none;
	box-shadow: 0 18px 50px rgba(23,26,33,.065);
	transition:
		transform .4s cubic-bezier(.22,1,.36,1),
		box-shadow .4s ease,
		border-color .3s ease;
}

.hm-highlight:hover {
	transform: translateY(-8px);
	border-color: rgba(24,168,145,.3);
	color: #171a21;
	box-shadow: 0 30px 72px rgba(23,26,33,.13);
}

.hm-highlight:focus-visible {
	outline: 2px solid #18a891;
	outline-offset: 5px;
}


/* ==========================================================================
   IMAGE GALLERY
   ========================================================================== */

.hm-highlight__stage {
	position: relative;
	min-height: 410px;
	overflow: hidden;
	padding: 30px;
	background: #f1f1ee;
}

/*
 * Die dekorative Ebene liegt bewusst AUF der grauen Außenfläche,
 * aber hinter der weißen Galeriefläche. Sie kann daher niemals
 * die weißen Bildränder sichtbar machen.
 */

.hm-highlight__stage::before {
	content: "";
	position: absolute;
	z-index: 0;
	top: 50%;
	left: 50%;
	width: 92%;
	height: 82%;
	transform: translate(-50%, -48%);
	border: 1px solid rgba(24,168,145,.12);
	border-radius: 18px;
	box-shadow:
		0 0 0 1px rgba(255,255,255,.8),
		0 18px 45px rgba(23,26,33,.035);
	pointer-events: none;
}

/*
 * Sehr dezenter Spotlight-Rand — außerhalb des Produktbildes.
 */

.hm-highlight__stage::after {
	content: "";
	position: absolute;
	z-index: 0;
	top: 50%;
	left: 50%;
	width: 96%;
	height: 88%;
	transform: translate(-50%, -48%);
	border-radius: 24px;
	background:
		linear-gradient(
			90deg,
			rgba(24,168,145,.07),
			transparent 13%,
			transparent 87%,
			rgba(24,168,145,.07)
		);
	pointer-events: none;
}

.hm-highlight__topline {
	position: absolute;
	z-index: 6;
	top: 22px;
	right: 24px;
	left: 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.hm-highlight__number {
	color: rgba(23,26,33,.38);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .16em;
}

.hm-highlight__tag {
	color: #18a891;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}


/*
 * Die weiße Galeriefläche ist absichtlich größer als das Bild.
 * Das Bild liegt darin ohne sichtbaren Kontrast.
 */

.hm-highlight__product {
	position: absolute;
	z-index: 3;
	top: 48px;
	right: 48px;
	bottom: 48px;
	left: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(23,26,33,.035);
}

.hm-highlights .hm-highlight__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	filter: none;
	transform: scale(.94);
	transition: transform .55s cubic-bezier(.22,1,.36,1);
}

.hm-highlight:hover .hm-highlight__image {
	filter: none;
	transform: scale(.99);
}


/*
 * Kleine technische Markierung außerhalb des eigentlichen Bildes.
 */

.hm-highlight__signature {
	position: absolute;
	z-index: 5;
	right: 23px;
	bottom: 20px;
	color: rgba(23,26,33,.25);
	font-size: 7px;
	font-weight: 700;
	letter-spacing: .2em;
	line-height: 1;
}


/* ==========================================================================
   EXTERNE SPOTLIGHT-AKZENTE
   ========================================================================== */

.hm-highlight--new .hm-highlight__stage {
	background:
		linear-gradient(
			135deg,
			rgba(24,168,145,.07),
			transparent 24%,
			#f1f1ee 24%
		);
}

.hm-highlight--used .hm-highlight__stage {
	background:
		linear-gradient(
			225deg,
			rgba(24,168,145,.055),
			transparent 24%,
			#f1f1ee 24%
		);
}

.hm-highlight--original .hm-highlight__stage {
	background:
		linear-gradient(
			135deg,
			rgba(24,168,145,.055),
			transparent 24%,
			#f1f1ee 24%
		);
}


/* ==========================================================================
   INFORMATION PANEL
   ========================================================================== */

.hm-highlight__info {
	position: relative;
	z-index: 5;
	display: flex;
	min-height: 190px;
	flex: 1;
	flex-direction: column;
	padding: 25px 27px 24px;
	background: #171a21;
	color: #fff;
}

.hm-highlight--used .hm-highlight__info {
	background: #1c2026;
}

.hm-highlight__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 15px;
}

.hm-highlight__condition {
	color: #18a891;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .17em;
	line-height: 1;
	text-transform: uppercase;
}

.hm-highlight__sku {
	overflow: hidden;
	color: rgba(255,255,255,.4);
	font-size: 8px;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hm-highlight__name {
	max-width: 390px;
	margin: 0;
	color: #fff;
	font-size: clamp(20px, 1.8vw, 25px);
	font-weight: 500;
	letter-spacing: -.035em;
	line-height: 1.08;
}

.hm-highlight__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: auto;
	padding-top: 28px;
}

.hm-highlight__price {
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
}

.hm-highlight__price .amount,
.hm-highlight__price .woocommerce-Price-amount {
	color: inherit;
}

.hm-highlight__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px 8px 14px;
	border: 1px solid rgba(24,168,145,.55);
	border-radius: 30px;
	color: #fff;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: .13em;
	line-height: 1;
	text-transform: uppercase;
	transition:
		background .25s ease,
		border-color .25s ease,
		color .25s ease;
}

.hm-highlight__cta > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 23px;
	height: 23px;
	border-radius: 50%;
	background: #18a891;
	color: #fff;
	font-size: 13px;
	font-weight: 400;
	line-height: 1;
	transition: transform .25s ease;
}

.hm-highlight:hover .hm-highlight__cta {
	border-color: #18a891;
	background: #18a891;
	color: #fff;
}

.hm-highlight:hover .hm-highlight__cta > span {
	background: #171a21;
	transform: translate(2px, -2px);
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 1024px) {

	.hm-highlights {
		padding: 90px 0 100px;
	}

	.hm-highlights__inner {
		width: min(100% - 56px, 1320px);
	}

	.hm-highlights__header {
		gap: 40px;
	}

	.hm-highlights__intro {
		width: 290px;
		flex-basis: 290px;
	}

	.hm-highlights__grid {
		gap: 16px;
	}

	.hm-highlight__stage {
		min-height: 350px;
		padding: 24px;
	}

	.hm-highlight__product {
		top: 42px;
		right: 38px;
		bottom: 38px;
		left: 38px;
	}

	.hm-highlight__info {
		min-height: 180px;
		padding: 22px 21px 21px;
	}

	.hm-highlight__meta {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 767px) {

	.hm-highlights {
		padding: 72px 0 80px;
	}

	.hm-highlights__inner {
		width: calc(100% - 36px);
	}

	.hm-highlights__header {
		display: block;
		margin-bottom: 32px;
	}

	.hm-highlights__title {
		font-size: clamp(38px, 11vw, 54px);
	}

	.hm-highlights__intro {
		width: auto;
		max-width: 340px;
		margin-top: 21px;
		font-size: 13px;
	}

	.hm-highlights__grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.hm-highlight__stage {
		min-height: 390px;
		padding: 26px;
	}

	.hm-highlight__product {
		top: 47px;
		right: 43px;
		bottom: 43px;
		left: 43px;
	}

	.hm-highlight__info {
		min-height: 184px;
		padding: 23px 23px 21px;
	}

	.hm-highlight__name {
		font-size: 25px;
	}

}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

	.hm-highlight,
	.hm-highlight__image,
	.hm-highlight__cta,
	.hm-highlight__cta > span {
		transition: none;
	}

}
