/**
 * Marketplace-Shell – eigenes Chrome für die Fahrzeugbörse (wmbase).
 * Layout angelehnt an www.rolfhorn.de (Logo + Marken in einer Zeile, Nav darunter).
 */
@charset "UTF-8";

@font-face {
	font-family: "BMWTypeNext";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url(../fonts/BMWTypeNextPro-Light.woff2) format("woff2");
}

@font-face {
	font-family: "BMWTypeNext";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(../fonts/BMWTypeNextPro-Regular.woff2) format("woff2");
}

@font-face {
	font-family: "BMWTypeNext";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url(../fonts/BMWTypeNextPro-Medium.woff2) format("woff2");
}

@font-face {
	font-family: "BMWTypeNext";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(../fonts/BMWTypeNextPro-Bold.woff2) format("woff2");
}

:root {
	--mpl-ink: #111111;
	--mpl-ink-soft: #3d3d3d;
	--mpl-muted: #6b6b6b;
	--mpl-line: #e0e0e0;
	--mpl-surface: #ffffff;
	--mpl-surface-soft: #f5f5f5;
	--mpl-font: "BMWTypeNext", "bmw", Arial, Helvetica, sans-serif;
	--mpl-max: 75rem;
	--mpl-pad: 1.25rem;
	--mpl-ease: 160ms ease;
	--mpl-underline: 3px;
}

.mpl-body {
	margin: 0;
	font-family: var(--mpl-font);
	font-size: 0.9375rem;
	line-height: 1.5;
	letter-spacing: 0;
	color: var(--mpl-ink);
	background: var(--mpl-surface);
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}

.mpl-body *,
.mpl-body *::before,
.mpl-body *::after {
	box-sizing: inherit;
}

.mpl-body--layout {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.mpl-main {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
}

/* —— Header —— */

.mpl-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--mpl-surface);
	border-bottom: 1px solid var(--mpl-line);
}

.mpl-header__inner {
	max-width: var(--mpl-max);
	margin: 0 auto;
	padding: 0.85rem var(--mpl-pad) 0;
}

.mpl-header__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 3.25rem;
}

.mpl-header__logo-link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: inherit;
	flex-shrink: 0;
}

.mpl-header__logo,
.mpl-header__logo-img {
	display: block;
	height: 2.35rem;
	width: auto;
	max-width: min(11rem, 42vw);
	object-fit: contain;
	object-position: left center;
}

.mpl-header__brands {
	display: none;
	align-items: center;
	justify-content: flex-end;
	gap: 1.25rem;
	flex: 1 1 auto;
	min-width: 0;
}

.mpl-header__brand {
	display: block;
	height: 2rem;
	width: auto;
	opacity: 0.9;
}

.mpl-header__menu-btn {
	flex-shrink: 0;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--mpl-line);
	background: var(--mpl-surface);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.mpl-header__menu-btn-lines,
.mpl-header__menu-btn-lines::before,
.mpl-header__menu-btn-lines::after {
	display: block;
	width: 1.1rem;
	height: 1.5px;
	background: var(--mpl-ink);
	position: relative;
}

.mpl-header__menu-btn-lines::before,
.mpl-header__menu-btn-lines::after {
	content: "";
	position: absolute;
	left: 0;
}

.mpl-header__menu-btn-lines::before {
	top: -0.35rem;
}

.mpl-header__menu-btn-lines::after {
	top: 0.35rem;
}

.mpl-header__nav {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(20rem, 88vw);
	background: var(--mpl-surface);
	border-left: 1px solid var(--mpl-line);
	padding: 1.25rem;
	transform: translateX(105%);
	transition: transform var(--mpl-ease);
	z-index: 50;
	overflow-y: auto;
}

.mpl-header__close {
	display: flex;
	margin-left: auto;
	margin-bottom: 1.5rem;
	width: 2.5rem;
	height: 2.5rem;
	border: 0;
	background: transparent;
	font-size: 1.75rem;
	line-height: 1;
	color: var(--mpl-ink);
	cursor: pointer;
}

.mpl-header__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.mpl-header__nav-link {
	display: inline-block;
	padding: 0.85rem 0.15rem;
	color: var(--mpl-ink-soft);
	text-decoration: none;
	font-size: 1rem;
	font-weight: 500;
	border-bottom: 1px solid var(--mpl-line);
	transition: color var(--mpl-ease);
}

.mpl-header__nav-link:hover,
.mpl-header__nav-link:focus-visible,
.mpl-header__nav-link--active {
	color: var(--mpl-ink);
}

.mpl-header__backdrop {
	position: fixed;
	inset: 0;
	background: rgb(17 17 17 / 0.35);
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--mpl-ease);
	z-index: 45;
}

.mpl-header__backdrop[hidden] {
	display: none;
}

.mpl-header--open .mpl-header__nav {
	transform: translateX(0);
}

.mpl-header--open .mpl-header__backdrop {
	display: block;
	opacity: 1;
	pointer-events: auto;
}

.mpl-header--open .mpl-header__backdrop[hidden] {
	display: block;
}

.mpl-body.mpl-nav-open {
	overflow: hidden;
}

/* —— Footer —— */

.mpl-footer {
	background: var(--mpl-surface-soft);
	border-top: 1px solid var(--mpl-line);
	margin-top: auto;
}

.mpl-footer__inner {
	max-width: var(--mpl-max);
	margin: 0 auto;
	padding: 2.5rem var(--mpl-pad) 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	text-align: center;
}

.mpl-footer__brands {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1.25rem 1.75rem;
}

.mpl-footer__brands img {
	height: 1.75rem;
	width: auto;
	opacity: 0.8;
}

.mpl-footer__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem 1.5rem;
}

.mpl-footer__link {
	color: var(--mpl-muted);
	text-decoration: none;
	font-size: 0.8125rem;
	transition: color var(--mpl-ease);
}

.mpl-footer__link:hover,
.mpl-footer__link:focus-visible {
	color: var(--mpl-ink);
}

.mpl-footer__social {
	display: flex;
	gap: 1rem;
}

.mpl-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	color: var(--mpl-muted);
	border: 1px solid var(--mpl-line);
	background: var(--mpl-surface);
	transition: color var(--mpl-ease), border-color var(--mpl-ease);
}

.mpl-footer__social-link:hover,
.mpl-footer__social-link:focus-visible {
	color: var(--mpl-ink);
	border-color: var(--mpl-ink);
}

@media (min-width: 900px) {
	:root {
		--mpl-pad: 2rem;
	}

	.mpl-header__inner {
		padding: 1.1rem var(--mpl-pad) 0;
	}

	.mpl-header__top {
		min-height: 3.75rem;
	}

	.mpl-header__logo,
	.mpl-header__logo-img {
		height: 2.85rem;
		max-width: 14rem;
	}

	.mpl-header__brands {
		display: flex;
	}

	.mpl-header__brand {
		height: 2.35rem;
	}

	.mpl-header__menu-btn,
	.mpl-header__close {
		display: none;
	}

	.mpl-header__nav {
		position: static;
		width: auto;
		transform: none;
		border: 0;
		padding: 0.85rem 0 0;
		overflow: visible;
		background: transparent;
	}

	.mpl-header__list {
		flex-direction: row;
		align-items: stretch;
		gap: 0 1.75rem;
	}

	.mpl-header__nav-link {
		position: relative;
		padding: 0.55rem 0 0.85rem;
		border-bottom: none;
		font-size: 0.9375rem;
		font-weight: 600;
		color: var(--mpl-ink-soft);
	}

	.mpl-header__nav-link::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		height: var(--mpl-underline);
		background: transparent;
		transition: background-color var(--mpl-ease);
	}

	.mpl-header__nav-link:hover::after,
	.mpl-header__nav-link:focus-visible::after,
	.mpl-header__nav-link--active::after {
		background: var(--marketplace-primary-color);
	}

	.mpl-header__nav-link:hover,
	.mpl-header__nav-link:focus-visible,
	.mpl-header__nav-link--active {
		color: var(--mpl-ink);
	}

	.mpl-footer__inner {
		padding: 3.25rem var(--mpl-pad) 2.5rem;
		gap: 1.75rem;
	}

	.mpl-footer__link {
		font-size: 0.875rem;
	}
}
