/* ==================================================================
   Landhaus – Hero-Slider ([landhaus_slider])
   Design-Vorlage: Vollbild-Hero mit Ken-Burns, Fakten-Zeile,
   CTAs und Slider-Control (Zähler, Striche, Fortschrittsring).
   ================================================================== */

.lh-slider {
	position: relative;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	min-height: 560px;
	overflow: hidden;
	background: var(--lh-dunkel, #111713);
	font-family: var(--lh-font-sans);
}

.lh-slider__track,
.lh-slider__slide {
	position: absolute;
	inset: 0;
}

.lh-slider__slide {
	opacity: 0;
	visibility: hidden;
	transition: opacity 2.6s cubic-bezier(0.65, 0, 0.35, 1), visibility 2.6s;
}

.lh-slider__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

.lh-slider__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lh-slider__image {
	background-size: cover;
	background-position: center;
}

/* Ken Burns */
@keyframes lh-kenburns {
	0%   { transform: scale(1.04); }
	100% { transform: scale(1.14); }
}

.lh-kb {
	animation: lh-kenburns 28s ease-in-out infinite alternate;
	will-change: transform;
}

.lh-kb--offset {
	animation-delay: -14s;
}

/* Legibility-Overlays aus dem Design */
.lh-hero__shade {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background:
		linear-gradient(95deg, rgba(17, 23, 19, 0.4) 0%, rgba(17, 23, 19, 0.12) 35%, rgba(17, 23, 19, 0) 60%),
		linear-gradient(180deg, rgba(17, 23, 19, 0.55) 0%, rgba(17, 23, 19, 0.08) 22%, rgba(17, 23, 19, 0.04) 50%, rgba(17, 23, 19, 0.52) 88%, rgba(17, 23, 19, 0.75) 100%);
}

/* Optionaler Text in der Slide-Mitte */
.lh-slider__content {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 0 24px;
	pointer-events: none;
}

.lh-slider__content a {
	pointer-events: auto;
}

.lh-slider__heading {
	font-family: var(--lh-font-serif);
	font-weight: 300;
	font-size: clamp(34px, 5vw, 64px);
	line-height: 1.15;
	color: #fff;
	margin: 0 0 16px;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.lh-slider__subheading {
	font-family: var(--lh-font-serif);
	font-style: italic;
	font-size: clamp(18px, 2.2vw, 26px);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.92);
	margin: 0 0 32px;
	max-width: 720px;
}

.lh-slider__button {
	font-family: var(--lh-font-sans);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: 999px;
	padding: 14px 40px;
	transition: background 0.3s ease, color 0.3s ease;
}

.lh-slider__button:hover {
	background: #fff;
	color: var(--lh-kamin, #2B2621);
}

/* ---------- Untere Zeile: Fakten links, Control rechts ---------- */

.lh-hero__bottom {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 4;
	display: flex;
	flex-direction: column;
	gap: 24px;
	align-items: flex-start;
	padding: 0 clamp(20px, 4vw, 64px) clamp(24px, 4vw, 48px);
	color: var(--lh-warmweiss, #FFFDF8);
}

@media (min-width: 900px) {
	.lh-hero__bottom {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		gap: 40px;
	}
}

.lh-hero__info {
	max-width: 36rem;
}

.lh-hero__location {
	display: flex;
	align-items: center;
	gap: 8px;
	color: rgba(255, 253, 248, 0.7);
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.32em;
	font-weight: 500;
	margin-bottom: 14px;
}

.lh-hero__location svg {
	width: 14px;
	height: 14px;
}

.lh-hero__facts {
	display: grid;
	grid-template-columns: repeat(2, auto);
	gap: 16px 28px;
	border-top: 1px solid rgba(255, 253, 248, 0.2);
	padding-top: 14px;
}

@media (min-width: 640px) {
	.lh-hero__facts {
		grid-template-columns: repeat(4, auto);
		gap: 16px 44px;
		justify-content: start;
	}
}

.lh-hero__fact {
	display: flex;
	flex-direction: column;
}

.lh-hero__fact-n {
	font-family: var(--lh-font-serif);
	font-size: clamp(24px, 2vw, 27px);
	line-height: 1;
	color: var(--lh-warmweiss, #FFFDF8);
	white-space: nowrap;
}

.lh-hero__fact-n sup {
	font-size: 0.5em;
	margin-left: 0.18em;
	color: rgba(255, 253, 248, 0.85);
}

.lh-hero__fact-label {
	margin-top: 8px;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: rgba(255, 253, 248, 0.7);
	font-weight: 500;
}

.lh-hero__note {
	display: none;
	margin: 20px 0 0;
	color: rgba(255, 253, 248, 0.65);
	font-size: 12px;
	line-height: 1.65;
	font-weight: 300;
}

@media (min-width: 900px) {
	.lh-hero__note {
		display: block;
	}
}

.lh-hero__ctas {
	margin-top: 26px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

/* Heller Pill-Button auf dem Hero */
.lh-btn--hero {
	background: var(--lh-warmweiss, #FFFDF8);
	color: var(--lh-kamin, #2B2621);
	padding: 5px 5px 5px 26px;
}

.lh-btn--hero:hover {
	background: var(--lh-creme, #f4efe8);
	color: var(--lh-kamin, #2B2621);
}

.lh-btn--hero .lh-btn__arrow {
	background: rgba(43, 38, 33, 0.07);
}

.lh-btn--hero:hover .lh-btn__arrow {
	background: rgba(43, 38, 33, 0.12);
}

/* Textlink mit wachsender Linie */
.lh-hero__link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--lh-warmweiss, #FFFDF8);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	font-weight: 600;
	text-decoration: none !important;
	padding: 8px 0;
}

.lh-hero__link-line {
	display: inline-block;
	width: 36px;
	height: 1px;
	background: rgba(255, 253, 248, 0.7);
	transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.lh-hero__link:hover {
	color: var(--lh-warmweiss, #FFFDF8);
}

.lh-hero__link:hover .lh-hero__link-line {
	width: 56px;
}

/* ---------- Slider-Control rechts ---------- */

.lh-hero__control {
	display: none;
	align-items: center;
	gap: 20px;
	flex-shrink: 0;
}

@media (min-width: 640px) {
	.lh-hero__control {
		display: flex;
	}
}

.lh-hero__counter {
	font-family: var(--lh-font-serif);
	font-size: 16px;
	letter-spacing: 0.22em;
	color: rgba(255, 253, 248, 0.85);
}

.lh-hero__counter b {
	font-weight: 400;
}

.lh-hero__sep {
	margin: 0 8px;
	color: rgba(255, 253, 248, 0.4);
}

/* Striche statt Punkte */
.lh-slider__dots {
	display: flex;
	align-items: center;
	gap: 8px;
}

.lh-slider__dot {
	height: 12px;
	display: flex;
	align-items: center;
	background: transparent;
	border: 0;
	padding: 0;
	cursor: pointer;
}

.lh-slider__dot span {
	display: block;
	height: 1px;
	width: 16px;
	background: rgba(255, 253, 248, 0.4);
	transition: width 0.5s ease, background 0.5s ease;
}

.lh-slider__dot:hover span {
	background: rgba(255, 253, 248, 0.7);
}

.lh-slider__dot.is-active span {
	width: 36px;
	background: #FFFDF8;
}

/* Fortschrittsring */
.lh-hero__ring {
	position: relative;
	width: 40px;
	height: 40px;
}

.lh-hero__ring svg {
	width: 40px;
	height: 40px;
	transform: rotate(-90deg);
}

.lh-hero__ring span {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: 8px;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: rgba(255, 253, 248, 0.8);
}

@keyframes lh-ringfill {
	from { stroke-dashoffset: 113; }
	to   { stroke-dashoffset: 0; }
}

.lh-hero__ring-fill.is-running {
	animation: lh-ringfill var(--lh-slide-ms, 7000ms) linear forwards;
}

/* Hinweis für Admins, wenn keine Slides gepflegt sind */
.lh-slider--empty {
	height: auto;
	min-height: 0;
	background: #fff3cd;
	color: #664d03;
	padding: 16px 24px;
}

.lh-slider--empty p {
	margin: 0;
	font-size: 16px;
	line-height: 24px;
}

@media (prefers-reduced-motion: reduce) {
	.lh-kb {
		animation: none;
		transform: scale(1.08);
	}
}

@media (max-width: 767px) {
	.lh-slider {
		min-height: 480px;
	}

	.lh-btn--hero {
		padding: 12px 20px 12px 23px;
	}

	.lh-btn--hero .lh-btn__arrow {
		display: none;
	}
}
