/**
 * Plus Meyerlift Landingpages — Komponenten-Styles.
 * Alles unter .mlp-* gescoped; Fonts (Passion One / DM Sans) lädt die Site
 * über das Elementor-Kit, hier nur referenziert.
 */

.mlp-carousel,
.mlp-selector {
	--mlp-green: #177f35;
	--mlp-green-dark: #005b1a;
	--mlp-blue: #00519e;
	--mlp-text: #444444;
	--mlp-font-display: 'Passion One', sans-serif;
	--mlp-font-body: 'DM Sans', sans-serif;
	font-family: var(--mlp-font-body);
	color: var(--mlp-text);
}

/* Hinweis nur für Redakteure (Shortcode-Konfigfehler) */
.mlp-editor-note {
	padding: 12px 16px;
	background: #fcf0f1;
	border-left: 4px solid #b32d2e;
	font-size: 14px;
}

/* Button im Stil der Site (grün, Uppercase, kompakt) */
.mlp-btn {
	display: inline-block;
	padding: 10px 22px;
	background: var(--mlp-green);
	color: #fff;
	font-family: var(--mlp-font-body);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 4px;
	transition: background-color 0.2s ease;
}

.mlp-btn:hover,
.mlp-btn:focus {
	background: var(--mlp-green-dark);
	color: #fff;
}

/* ---------------------------------------------------------------------- */
/* Geräte-Karussell                                                        */
/* ---------------------------------------------------------------------- */

.mlp-carousel {
	position: relative;
	padding: 8px 4px;
}

/* Swiper-Modus: Breite je Slide fix, angeschnittene Karten rechts/links */
.mlp-carousel .swiper-slide {
	width: 320px;
	height: auto;
}

.mlp-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
	padding: 20px;
	box-sizing: border-box;
}

.mlp-card__media {
	margin: 0 0 16px;
	height: 190px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 6px;
	background: #f5f7f6;
}

.mlp-card__media img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.mlp-card__title {
	font-family: var(--mlp-font-display);
	font-size: 24px;
	line-height: 1.15;
	color: var(--mlp-green);
	margin: 0 0 10px;
}

.mlp-card__specs {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	font-size: 15px;
	line-height: 1.6;
	flex-grow: 1;
}

.mlp-card__specs span {
	font-weight: 700;
}

/* Navigations-Pfeile */
.mlp-carousel__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 42px;
	height: 42px;
	border: none;
	border-radius: 50%;
	background: #fff;
	color: var(--mlp-green);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.mlp-carousel__nav:hover {
	background: var(--mlp-green);
	color: #fff;
}

.mlp-carousel__nav svg {
	width: 20px;
	height: 20px;
}

.mlp-carousel__prev { left: -8px; }
.mlp-carousel__next { right: -8px; }

.mlp-carousel__nav.swiper-button-disabled {
	opacity: 0.35;
	pointer-events: none;
}

/* Fallback ohne Swiper: horizontales Scroll-Snap */
.mlp-carousel--snap .swiper-wrapper {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 8px;
}

.mlp-carousel--snap .swiper-slide {
	flex: 0 0 320px;
	scroll-snap-align: start;
}

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

.mlp-selector__track {
	margin-bottom: 36px;
}

.mlp-selector__track input[type='range'] {
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
	height: 6px;
	border-radius: 3px;
	background: #d4e8da;
	outline: none;
	cursor: pointer;
}

.mlp-selector__track input[type='range']::-webkit-slider-thumb {
	appearance: none;
	-webkit-appearance: none;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--mlp-green);
	border: 4px solid #fff;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
	cursor: grab;
}

.mlp-selector__track input[type='range']::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--mlp-green);
	border: 4px solid #fff;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
	cursor: grab;
}

.mlp-selector__ticks {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
	font-size: 13px;
	color: #7a7a7a;
}

.mlp-selector__tick {
	flex: 1;
	text-align: center;
	transition: color 0.2s ease, font-weight 0.2s ease;
}

.mlp-selector__tick:first-child { text-align: left; }
.mlp-selector__tick:last-child { text-align: right; }

.mlp-selector__tick.is-active {
	color: var(--mlp-green);
	font-weight: 700;
}

.mlp-selector__display {
	display: flex;
	gap: 40px;
	align-items: center;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.mlp-selector__display.is-switching {
	opacity: 0;
	transform: translateY(8px);
}

.mlp-selector__facts {
	flex: 0 0 40%;
}

.mlp-selector__value {
	font-family: var(--mlp-font-display);
	font-size: 84px;
	line-height: 1;
	color: #1d1d1b;
	margin: 0 0 8px;
}

.mlp-selector__name {
	font-family: var(--mlp-font-display);
	font-size: 34px;
	line-height: 1.1;
	color: #1d1d1b;
	margin: 0 0 18px;
	text-transform: uppercase;
}

.mlp-selector__specs {
	margin: 0 0 24px;
	font-size: 16px;
}

.mlp-selector__specs div {
	display: flex;
	gap: 8px;
	margin-bottom: 4px;
}

.mlp-selector__specs dt {
	font-weight: 400;
	margin: 0;
}

.mlp-selector__specs dd {
	font-weight: 700;
	margin: 0;
}

.mlp-selector__media {
	flex: 1;
	margin: 0;
	text-align: center;
}

.mlp-selector__media img {
	max-width: 100%;
	max-height: 420px;
	width: auto;
	height: auto;
	object-fit: contain;
}

@media (max-width: 767px) {
	.mlp-selector__display {
		flex-direction: column-reverse;
		gap: 24px;
	}

	.mlp-selector__facts {
		flex: 1 1 auto;
	}

	.mlp-selector__value {
		font-size: 60px;
	}

	.mlp-selector__ticks {
		font-size: 11px;
	}

	.mlp-carousel .swiper-slide,
	.mlp-carousel--snap .swiper-slide {
		width: 260px;
		flex-basis: 260px;
	}
}
