/* Overrides for the parent theme Hair Beauty, loaded after all parent styles */

/*
 * Home hero (replaces Revolution Slider "home2", layout "auto").
 * The slider picked one of four grids by viewport width and scaled it down (never up) to the
 * available width: --gw/--gh is the grid, --u one grid pixel. All positions below are the
 * slider's layer coordinates in grid pixels, so crop and layer placement stay unchanged.
 */
.meckel-hero {
	container-type: inline-size;
	width: 100%;
}

.meckel-hero__stage {
	--gw: 1920;
	--gh: 900;
	--u: min(1px, 100cqw / var(--gw));
	/* overlay box */
	--ow: 769;
	--oh: 376;
	/* title, address, phone: top offset; title size */
	--title-top: 385;
	--title-size: 52;
	--title-lh: 72;
	--address-top: 496;
	--phone-top: 526;
	position: relative;
	overflow: hidden;
	height: calc(var(--gh) * var(--u));
	background: #191919;
}

.meckel-hero__img {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	animation: meckel-fade .3s ease-in-out both, meckel-kenburns 10s linear forwards;
}

.meckel-hero__overlay,
.meckel-hero__title,
.meckel-hero__line {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	margin: 0;
	padding: 0;
	white-space: nowrap;
	animation: meckel-fade .3s ease-in-out .5s both;
}

.meckel-hero__overlay {
	top: calc(((var(--gh) - var(--oh)) / 2 - 27) * var(--u));
	width: calc(var(--ow) * var(--u));
	height: calc(var(--oh) * var(--u));
	max-width: none;
}

.meckel-hero__title {
	top: calc(var(--title-top) * var(--u));
	font-family: 'Abril Fatface', serif;
	font-weight: 400;
	font-size: calc(var(--title-size) * var(--u));
	/* the slider rounded scaled font sizes to whole pixels */
	font-size: round(calc(var(--title-size) * var(--u)), 1px);
	line-height: calc(var(--title-lh) * var(--u));
	color: #f2db95;
}

.meckel-hero__line {
	font-family: 'Montserrat', sans-serif;
	font-weight: 400;
	font-size: calc(16 * var(--u));
	font-size: round(calc(16 * var(--u)), 1px);
	line-height: calc(22 * var(--u));
	color: #fff;
}

.meckel-hero__line a,
.meckel-hero__line a:hover {
	font: inherit;
	letter-spacing: inherit;
	color: inherit;
	text-decoration: none;
}

.meckel-hero__address {
	top: calc(var(--address-top) * var(--u));
}

.meckel-hero__phone {
	top: calc(var(--phone-top) * var(--u));
}

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

@keyframes meckel-kenburns {
	from { transform: scale(1); }
	to { transform: scale(1.2); }
}

@media (prefers-reduced-motion: reduce) {
	.meckel-hero__img,
	.meckel-hero__overlay,
	.meckel-hero__title,
	.meckel-hero__line {
		animation: none;
	}
}

@media (max-width: 1023px) {
	.meckel-hero__stage {
		--gw: 1024;
		--gh: 768;
	}
}

@media (max-width: 777px) {
	.meckel-hero__stage {
		--gw: 778;
		--gh: 960;
	}
}

@media (max-width: 479px) {
	.meckel-hero__stage {
		--gw: 480;
		--gh: 720;
		--ow: 436;
		--oh: 213;
		--title-top: 298;
		--title-size: 30;
		--title-lh: 50;
		--address-top: 360;
		--phone-top: 393;
	}

	/* on the mobile grid the title was a 310 px wide, left-aligned box */
	.meckel-hero__title {
		width: calc(310 * var(--u));
		text-align: left;
	}
}

/*
 * Price list [meckel_preise]: name, leader dots that fill the gap, price column on the right.
 * Typography comes from the theme's h5 (Montserrat, uppercase) and the former .hintText style.
 */
.meckel-prices__category + .meckel-prices__category {
	margin-top: 40px;
}

.meckel-prices__title {
	margin: 0 0 14px;
	font-weight: 700;
}

.meckel-prices__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.meckel-prices__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.meckel-prices__item::before {
	content: none;
}

.meckel-prices__item + .meckel-prices__item {
	margin-top: 14px;
}

.meckel-prices__row {
	display: flex;
	align-items: last baseline;
	gap: 6px;
	margin: 0;
}

.meckel-prices__name {
	flex: 0 1 auto;
	min-width: 0;
	overflow-wrap: break-word;
}

.meckel-prices__dots {
	flex: 1 1 24px;
	min-width: 24px;
	border-bottom: 2px dotted rgba(46, 46, 46, .35);
	transform: translateY(-4px);
}

.meckel-prices__price {
	flex: none;
	min-width: 5.5em;
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.meckel-prices__from {
	text-transform: none;
	letter-spacing: normal;
	color: #96969c;
}

.meckel-prices__hint {
	margin: 2px 0 0;
	padding: 0;
	font-size: 15px;
	line-height: 22px;
	color: #96969c;
}

@media (max-width: 767px) {
	/* the builder gives this block 20% side padding (id-based, hence !important), too narrow on phones */
	.featured_block_inner:has(.meckel-prices) {
		padding-left: 24px !important;
		padding-right: 24px !important;
	}

	.meckel-prices__row {
		letter-spacing: .5px;
	}

	.meckel-prices__dots {
		flex-basis: 12px;
		min-width: 12px;
	}

	.meckel-prices__price {
		min-width: 0;
	}
}
