/**
 * Mobile Fahrzeuge – Frontend (Standarddesign)
 *
 * Ruhige, hochwertige Gestaltung: eine Markenfarbe, kühle Grautöne aus einer Familie, getönte Schatten,
 * Zahlen mit festen Ziffernbreiten. Alles über CSS-Variablen anpassbar (Einstellungen, Elementor, Theme).
 * Klassennamen sind stabil – das Elementor-Widget und Theme-Overrides setzen darauf auf.
 *
 * Schutz vor globalen Theme-Stilen: Jeder Selektor beginnt mit „html:root body“ (Spezifität +0,1,2).
 * Damit gewinnen die Plugin-Regeln gegen Regeln wie „.elementor-kit-6 button“ / „… a:hover“ / „… h1“
 * (Elementor-Kit, Hello-Reset), bleiben aber unter den Stil-Einstellungen des Elementor-Widgets
 * („.elementor-123 .elementor-element.elementor-element-abc …“). Eigene Overrides im Theme brauchen
 * denselben Präfix. Buttons und Links legen Schrift, Farbe, Hintergrund und Radius selbst fest, damit
 * Hover-Regeln des Themes nichts verändern.
 */

html:root body .mfz {
	/* Marke */
	--mfz-primary: #17325c;
	--mfz-primary-text: #fff;
	--mfz-accent: #c2462b;
	--mfz-primary-hover: color-mix(in srgb, var(--mfz-primary) 84%, #000);
	--mfz-primary-tint: color-mix(in srgb, var(--mfz-primary) 8%, transparent);
	--mfz-primary-ring: color-mix(in srgb, var(--mfz-primary) 22%, transparent);

	/* Neutrale Töne (kühles Schiefergrau) */
	--mfz-text: #121826;
	--mfz-muted: #5b6676;
	--mfz-subtle: #8b95a4;
	--mfz-border: #e4e8ee;
	--mfz-border-strong: #cfd6df;
	--mfz-surface: #fff;
	--mfz-surface-alt: #f4f6f9;
	--mfz-surface-sunken: #eceff4;

	/* Form */
	--mfz-radius: 16px;
	--mfz-radius-md: 12px;
	--mfz-radius-sm: 8px;
	--mfz-radius-btn: 10px;
	--mfz-gap: 28px;
	--mfz-sidebar: 300px;
	--mfz-shadow: 0 1px 2px rgba(18, 24, 38, .04), 0 4px 12px -4px rgba(18, 24, 38, .06);
	--mfz-shadow-hover: 0 2px 4px rgba(18, 24, 38, .04), 0 22px 44px -20px rgba(23, 50, 92, .32);
	--mfz-ease: cubic-bezier(.2, .7, .2, 1);
	--mfz-sticky-top: calc(24px + var(--wp-admin--admin-bar--height, 0px));

	/* Schrift (wird bei Einstellung „Modern“ gesetzt, siehe Inline-CSS) */
	--mfz-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	color: var(--mfz-text);
	line-height: 1.5;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

html:root body .mfz *,
html:root body .mfz *::before,
html:root body .mfz *::after {
	box-sizing: inherit;
}

/* Lange Wörter aus mobile.de-Titeln (z. B. "LANG*NAVI*SHZ*STANDHEIZUNG") umbrechen statt überlaufen. */
html:root body .mfz h1,
html:root body .mfz h2,
html:root body .mfz h3,
html:root body .mfz h4,
html:root body .mfz [class*="__title"],
html:root body .mfz [class*="__subtitle"] {
	overflow-wrap: anywhere;
}

html:root body .mfz .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

html:root body .mfz-icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
}

/* ------------------------------------------------------------ Seite */

html:root body .mfz-container {
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: clamp(24px, 4vw, 48px) 24px 88px;
}

html:root body .mfz-page__header {
	margin-bottom: clamp(20px, 3vw, 32px);
}

html:root body .mfz-page__title {
	margin: 0;
	color: var(--mfz-heading, var(--mfz-text));
	font-size: clamp(1.85rem, 1.3rem + 2vw, 2.75rem);
	font-weight: var(--mfz-heading-weight, 700);
	line-height: 1.1;
	letter-spacing: -.025em;
	text-wrap: balance;
}

html:root body .mfz-page__description {
	max-width: 65ch;
	margin-top: 10px;
	color: var(--mfz-muted);
	font-size: 1.05rem;
}

html:root body .mfz-page__description > :last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------ Buttons & Links */

html:root body .mfz-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 20px;
	border: 1px solid var(--mfz-button-bg, var(--mfz-primary));
	border-radius: var(--mfz-radius-button, var(--mfz-radius-btn));
	background: var(--mfz-button-bg, var(--mfz-primary));
	color: var(--mfz-button-text, var(--mfz-primary-text));
	font: inherit;
	font-size: .95rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -.005em;
	text-decoration: none;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s var(--mfz-ease), border-color .2s var(--mfz-ease), color .2s var(--mfz-ease), box-shadow .2s var(--mfz-ease), transform .2s var(--mfz-ease);
}

html:root body .mfz-button .mfz-icon {
	width: 17px;
	height: 17px;
}

html:root body .mfz-button:hover,
html:root body .mfz-button:focus-visible {
	border-color: var(--mfz-button-hover-bg, var(--mfz-primary-hover));
	background: var(--mfz-button-hover-bg, var(--mfz-primary-hover));
	color: var(--mfz-button-hover-text, var(--mfz-primary-text));
	text-decoration: none;
	box-shadow: 0 8px 18px -10px var(--mfz-button-hover-bg, var(--mfz-primary));
}

html:root body .mfz-button:active {
	transform: translateY(1px) scale(.98);
	box-shadow: none;
}

html:root body .mfz-button--ghost {
	border-color: var(--mfz-border-strong);
	background: var(--mfz-surface);
	color: var(--mfz-text);
}

html:root body .mfz-button--ghost:hover,
html:root body .mfz-button--ghost:focus-visible {
	border-color: var(--mfz-primary);
	background: var(--mfz-primary-tint);
	color: var(--mfz-primary);
	box-shadow: none;
}

html:root body .mfz-button--block {
	display: flex;
	width: 100%;
}

html:root body .mfz-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--mfz-primary);
	font-family: inherit;
	font-size: .92rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	transition: gap .2s var(--mfz-ease);
}

html:root body .mfz-link-arrow .mfz-icon {
	width: 16px;
	height: 16px;
}

html:root body .mfz-link-arrow:hover {
	gap: 10px;
	color: var(--mfz-primary);
	text-decoration: none;
}

html:root body .mfz a:focus-visible,
html:root body .mfz button:focus-visible,
html:root body .mfz select:focus-visible {
	outline: 2px solid var(--mfz-primary);
	outline-offset: 2px;
}

/* ------------------------------------------------------------ Archiv-Layout */

html:root body .mfz-archive {
	display: grid;
	gap: var(--mfz-gap);
	grid-template-columns: minmax(0, 1fr);
}

html:root body .mfz-archive--filter-sidebar:not(.mfz-archive--no-filter) {
	grid-template-columns: var(--mfz-sidebar) minmax(0, 1fr);
	align-items: start;
}

html:root body .mfz-archive--filter-sidebar .mfz-filter {
	position: sticky;
	top: var(--mfz-sticky-top);
}

html:root body .mfz-archive__main {
	min-width: 0;
}

html:root body .mfz-grid {
	display: grid;
	gap: var(--mfz-gap);
	grid-template-columns: repeat(var(--mfz-columns, 3), minmax(0, 1fr));
}

/* ------------------------------------------------------------ Filter */

html:root body .mfz-filter {
	padding: 22px 24px 24px;
	border: 1px solid var(--mfz-border);
	border-radius: var(--mfz-radius);
	background: var(--mfz-surface-alt);
}

html:root body .mfz-filter--hidden {
	display: none;
}

html:root body .mfz-filter__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
	color: var(--mfz-heading, var(--mfz-text));
	font-size: 1rem;
	font-weight: var(--mfz-heading-weight, 650);
	letter-spacing: -.01em;
}

html:root body .mfz-filter__head > .mfz-icon {
	color: var(--mfz-primary);
}

html:root body .mfz-filter__toggle {
	display: none;
	flex: 0 0 auto;
	white-space: nowrap;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	padding: 6px 4px 6px 12px;
	border: 1px solid var(--mfz-border-strong);
	border-radius: 999px;
	background: var(--mfz-surface);
	color: var(--mfz-text);
	font: inherit;
	font-size: .85rem;
	font-weight: 600;
	line-height: 1.3;
	text-transform: none;
	cursor: pointer;
}

html:root body .mfz-filter__toggle:hover,
html:root body .mfz-filter__toggle:focus-visible {
	border-color: var(--mfz-primary);
	background: var(--mfz-surface);
	color: var(--mfz-primary);
}

html:root body .mfz-filter__toggle .mfz-icon {
	width: 16px;
	height: 16px;
	transform: rotate(90deg);
	transition: transform .2s var(--mfz-ease);
}

html:root body .mfz-filter.is-open .mfz-filter__toggle .mfz-icon {
	transform: rotate(-90deg);
}

html:root body .mfz-filter__fields {
	display: grid;
	gap: 14px 16px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

html:root body .mfz-archive--filter-sidebar .mfz-filter__fields {
	grid-template-columns: minmax(0, 1fr);
}

html:root body .mfz-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

html:root body .mfz-field__label {
	color: var(--mfz-muted);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .01em;
}

html:root body .mfz-field__select,
html:root body .mfz-toolbar select {
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 8px 38px 8px 14px;
	border: 1px solid var(--mfz-border);
	border-radius: var(--mfz-radius-btn);
	background-color: var(--mfz-surface);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6676' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	box-shadow: 0 1px 1px rgba(18, 24, 38, .03);
	color: var(--mfz-text);
	font: inherit;
	font-size: .95rem;
	line-height: 1.3;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .2s var(--mfz-ease), box-shadow .2s var(--mfz-ease);
}

html:root body .mfz-field__select:hover,
html:root body .mfz-toolbar select:hover {
	border-color: var(--mfz-border-strong);
}

html:root body .mfz-field__select:focus,
html:root body .mfz-toolbar select:focus {
	border-color: var(--mfz-primary);
	outline: none;
	box-shadow: 0 0 0 4px var(--mfz-primary-ring);
}

html:root body .mfz-filter__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 12px 20px;
	margin-top: 18px;
}

html:root body .mfz-filter__submit {
	min-width: 220px;
}

html:root body .mfz-archive--filter-sidebar .mfz-filter__submit {
	width: 100%;
	min-width: 0;
}

html:root body .mfz-filter__reset {
	order: -1;
	margin-right: auto;
	color: var(--mfz-muted);
	font-family: inherit;
	font-size: .9rem;
	font-weight: 400;
	line-height: 1.4;
	text-decoration: underline;
	text-decoration-color: var(--mfz-border-strong);
	text-underline-offset: 3px;
}

html:root body .mfz-filter__reset:hover {
	color: var(--mfz-primary);
	text-decoration-color: currentColor;
}

/* ------------------------------------------------------------ Toolbar */

html:root body .mfz-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
	color: var(--mfz-muted);
}

html:root body .mfz-toolbar__count {
	margin: 0;
	font-size: .95rem;
}

html:root body .mfz-toolbar__count strong {
	color: var(--mfz-text);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

html:root body .mfz-toolbar__sort {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: .9rem;
}

html:root body .mfz-toolbar select {
	width: auto;
	min-height: 40px;
	border-radius: 999px;
	font-size: .9rem;
}

/* ------------------------------------------------------------ Karte */

html:root body .mfz-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--mfz-border);
	border-radius: var(--mfz-radius);
	background: var(--mfz-surface);
	transition: box-shadow .3s var(--mfz-ease), transform .3s var(--mfz-ease), border-color .3s var(--mfz-ease), background-color .3s var(--mfz-ease);
}

html:root body .mfz-card:hover {
	border-color: transparent;
	box-shadow: var(--mfz-shadow-hover);
	transform: translateY(-4px);
}

html:root body .mfz-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--mfz-surface-sunken);
}

html:root body .mfz-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .7s var(--mfz-ease);
}

html:root body .mfz-card:hover .mfz-card__media img {
	transform: scale(1.05);
}

html:root body .elementor-widget-mfz-fahrzeugbestand:not(.mfz-zoom-yes) .mfz-card:hover .mfz-card__media img {
	transform: none;
}

html:root body .mfz-card__badges {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	max-width: calc(100% - 24px);
}

html:root body .mfz-badge {
	display: inline-block;
	padding: 5px 8px;
	border-radius: 6px;
	background: rgba(255, 255, 255, .9);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: var(--mfz-text);
	font-size: .68rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .03em;
	text-transform: uppercase;
	box-shadow: 0 1px 2px rgba(18, 24, 38, .12);
}

html:root body .mfz-badge--accent {
	background: var(--mfz-accent);
	color: #fff;
}

html:root body .mfz-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 18px 20px 20px;
}

html:root body .mfz-card__title {
	margin: 0;
	color: var(--mfz-heading, var(--mfz-text));
	font-size: 1.125rem;
	font-weight: var(--mfz-heading-weight, 650);
	line-height: 1.3;
	letter-spacing: -.012em;
	text-wrap: balance;
}

html:root body .mfz-card__title a {
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-decoration: none;
}

/* Ganze Karte klickbar (über den Titel-Link, bleibt barrierefrei). */
html:root body .mfz-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

html:root body .mfz-card__title a:hover {
	color: var(--mfz-primary);
}

html:root body .mfz-card__subtitle {
	margin: 4px 0 0;
	overflow: hidden;
	color: var(--mfz-muted);
	font-size: .875rem;
	white-space: nowrap;
	text-overflow: ellipsis;
}

html:root body .mfz-card__specs {
	display: grid;
	gap: 8px 14px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
	font-size: .85rem;
}

html:root body .mfz-card__spec {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	margin: 0;
	color: var(--mfz-text);
	font-variant-numeric: tabular-nums;
}

html:root body .mfz-card__spec > span:last-child {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

html:root body .mfz-card__spec .mfz-icon {
	width: 16px;
	height: 16px;
	color: var(--mfz-subtle);
}

html:root body .mfz-card__env {
	margin: 14px 0 0;
	color: var(--mfz-subtle);
	font-size: .72rem;
	line-height: 1.45;
}

/* Abstandhalter: mindestens 18px, wächst, damit die Fußzeilen aller Karten auf einer Linie liegen. */
html:root body .mfz-card__body::after {
	content: "";
	order: 1;
	flex: 1 0 18px;
}

html:root body .mfz-card__footer {
	order: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 16px;
	border-top: 1px solid var(--mfz-border);
}

html:root body .mfz-card__price {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

html:root body .mfz-card__price-value {
	color: var(--mfz-heading, var(--mfz-text));
	font-size: 1.375rem;
	font-weight: var(--mfz-heading-weight, 750);
	line-height: 1.1;
	letter-spacing: -.02em;
	font-variant-numeric: tabular-nums;
}

html:root body .mfz-card__vat {
	color: var(--mfz-muted);
	font-size: .75rem;
}

html:root body .mfz-card__button {
	position: relative;
	z-index: 2;
	min-height: 38px;
	padding: 0 12px 0 14px;
	border-color: transparent;
	background: var(--mfz-button-soft-bg, var(--mfz-primary-tint));
	color: var(--mfz-button-soft-text, var(--mfz-primary));
	font-size: .875rem;
}

html:root body .mfz-card__button .mfz-icon {
	width: 16px;
	height: 16px;
	transition: transform .25s var(--mfz-ease);
}

html:root body .mfz-card:hover .mfz-card__button,
html:root body .mfz-card__button:hover,
html:root body .mfz-card__button:focus-visible {
	border-color: var(--mfz-button-hover-bg, var(--mfz-primary));
	background: var(--mfz-button-hover-bg, var(--mfz-primary));
	color: var(--mfz-button-hover-text, var(--mfz-primary-text));
}

html:root body .mfz-card:hover .mfz-card__button .mfz-icon {
	transform: translateX(3px);
}

html:root body .mfz-noimage {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 120px;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 24 24' fill='none' stroke='%23aab3bf' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 17h14M3 13l2-6h14l2 6v4H3z'/%3E%3Ccircle cx='7.5' cy='17' r='1.5'/%3E%3Ccircle cx='16.5' cy='17' r='1.5'/%3E%3C/svg%3E") center / 56px no-repeat,
		var(--mfz-surface-sunken);
}

html:root body .mfz-noimage--large {
	aspect-ratio: 4 / 3;
}

/* ------------------------------------------------------------ Leer / Paginierung */

html:root body .mfz-empty {
	display: grid;
	justify-items: center;
	gap: 16px;
	padding: 64px 24px;
	border-radius: var(--mfz-radius);
	background: var(--mfz-surface-alt);
	color: var(--mfz-muted);
	text-align: center;
}

html:root body .mfz-empty::before {
	content: "";
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none' stroke='%235b6676' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E") center / 26px no-repeat,
		var(--mfz-surface);
	box-shadow: var(--mfz-shadow);
}

html:root body .mfz-empty p {
	max-width: 42ch;
	margin: 0;
	font-size: 1.02rem;
}

html:root body .mfz-pagination {
	margin-top: 40px;
}

html:root body .mfz-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

html:root body .mfz-pagination li {
	margin: 0;
}

html:root body .mfz-pagination li > .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--mfz-border);
	border-radius: var(--mfz-radius-btn);
	background: var(--mfz-surface);
	color: var(--mfz-text);
	font-family: inherit;
	font-size: .95rem;
	font-weight: 600;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	text-decoration: none;
	transition: border-color .2s var(--mfz-ease), background-color .2s var(--mfz-ease), color .2s var(--mfz-ease);
}

html:root body .mfz-pagination a.page-numbers:hover {
	border-color: var(--mfz-primary);
	color: var(--mfz-primary);
}

html:root body .mfz-pagination li > .page-numbers.current {
	border-color: var(--mfz-primary);
	background: var(--mfz-primary);
	color: var(--mfz-primary-text);
}

html:root body .mfz-pagination li > .page-numbers.dots {
	border: 0;
	background: none;
}

/* ------------------------------------------------------------ Detailseite */

html:root body .mfz-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
	color: var(--mfz-muted);
	font-size: .875rem;
}

html:root body .mfz-breadcrumb li {
	margin: 0;
}

html:root body .mfz-breadcrumb li + li::before {
	content: "/";
	margin-right: 6px;
	color: var(--mfz-border-strong);
}

html:root body .mfz-breadcrumb a {
	color: inherit;
	font: inherit;
	text-decoration: none;
}

html:root body .mfz-breadcrumb a:hover {
	color: var(--mfz-primary);
}

html:root body .mfz-breadcrumb [aria-current] {
	color: var(--mfz-text);
	font-weight: 500;
}

html:root body .mfz-single__top {
	display: grid;
	gap: 40px 48px;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
	grid-template-areas:
		"gallery summary"
		"content summary";
	align-items: start;
}

html:root body .mfz-single__gallery {
	grid-area: gallery;
	min-width: 0;
}

html:root body .mfz-single__summary {
	position: sticky;
	top: var(--mfz-sticky-top);
	grid-area: summary;
	padding: 28px;
	border: 1px solid var(--mfz-border);
	border-radius: var(--mfz-radius);
	background: var(--mfz-surface);
	box-shadow: var(--mfz-shadow);
}

html:root body .mfz-single__content {
	grid-area: content;
	min-width: 0;
}

html:root body .mfz-single__make {
	margin: 0 0 6px;
	color: var(--mfz-primary);
	font-size: .875rem;
	font-weight: 600;
}

html:root body .mfz-single__title {
	margin: 0 0 16px;
	color: var(--mfz-heading, var(--mfz-text));
	font-size: clamp(1.45rem, 1.15rem + 1vw, 1.85rem);
	font-weight: var(--mfz-heading-weight, 700);
	line-height: 1.2;
	letter-spacing: -.022em;
	text-wrap: balance;
}

html:root body .mfz-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

html:root body .mfz-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	padding: 5px 9px;
	border-radius: 6px;
	background: var(--mfz-primary-tint);
	color: var(--mfz-primary);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .01em;
}

html:root body .mfz-chip .mfz-icon {
	width: 14px;
	height: 14px;
}

html:root body .mfz-pricebox {
	margin: 0 0 20px;
	padding: 18px 20px;
	border-radius: var(--mfz-radius-md);
	background: var(--mfz-surface-alt);
}

html:root body .mfz-pricebox p {
	margin: 0;
}

html:root body .mfz-pricebox__price {
	color: var(--mfz-heading, var(--mfz-text));
	font-size: 2.25rem;
	font-weight: var(--mfz-heading-weight, 750);
	line-height: 1.05;
	letter-spacing: -.03em;
	font-variant-numeric: tabular-nums;
}

html:root body .mfz-pricebox__type,
html:root body .mfz-pricebox__vat {
	margin-top: 6px !important;
	color: var(--mfz-muted);
	font-size: .85rem;
	font-variant-numeric: tabular-nums;
}

html:root body .mfz-rating {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	margin-top: 12px !important;
	padding: 6px 10px;
	border-radius: var(--mfz-radius-sm);
	background: var(--mfz-surface);
	font-size: .85rem;
	font-weight: 600;
}

html:root body .mfz-rating small {
	color: var(--mfz-muted);
	font-size: .75rem;
	font-weight: 400;
}

html:root body .mfz-rating__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #9aa4b1;
}

html:root body .mfz-rating--very-good-price .mfz-rating__dot { background: #0a7d3c; }
html:root body .mfz-rating--good-price .mfz-rating__dot { background: #3f9a4b; }
html:root body .mfz-rating--reasonable-price .mfz-rating__dot { background: #7aa83f; }
html:root body .mfz-rating--increased-price .mfz-rating__dot { background: #d9a21b; }
html:root body .mfz-rating--high-price .mfz-rating__dot { background: #d2581c; }

html:root body .mfz-facts {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

html:root body .mfz-facts__item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-rows: auto auto;
	column-gap: 10px;
	margin: 0;
	padding: 11px 12px;
	border: 1px solid var(--mfz-border);
	border-radius: var(--mfz-radius-btn);
}

html:root body .mfz-facts__item .mfz-icon {
	grid-row: span 2;
	align-self: center;
	width: 20px;
	height: 20px;
	color: var(--mfz-subtle);
}

html:root body .mfz-facts__label {
	color: var(--mfz-muted);
	font-size: .72rem;
	line-height: 1.3;
}

html:root body .mfz-facts__value {
	color: var(--mfz-text);
	font-size: .92rem;
	font-weight: 650;
	line-height: 1.3;
	font-variant-numeric: tabular-nums;
}

html:root body .mfz-contact {
	display: grid;
	gap: 10px;
}

html:root body .mfz-contact .mfz-button {
	min-height: 50px;
	font-size: 1rem;
}




html:root body .mfz-single__env {
	margin: 18px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--mfz-border);
	color: var(--mfz-muted);
	font-size: .75rem;
	line-height: 1.5;
}

html:root body .mfz-section {
	margin: 0 0 48px;
}

html:root body .mfz-section__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	color: var(--mfz-heading, var(--mfz-text));
	font-size: 1.3rem;
	font-weight: var(--mfz-heading-weight, 700);
	line-height: 1.25;
	letter-spacing: -.015em;
}

html:root body .mfz-section__count {
	padding: 2px 8px;
	border-radius: 6px;
	background: var(--mfz-surface-alt);
	color: var(--mfz-muted);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: 0;
	font-variant-numeric: tabular-nums;
}

html:root body .mfz-features {
	display: grid;
	gap: 12px 28px;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

html:root body .mfz-features li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	font-size: .95rem;
	line-height: 1.4;
}

html:root body .mfz-features .mfz-icon {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	padding: 4px;
	border-radius: 50%;
	background: var(--mfz-primary-tint);
	color: var(--mfz-primary);
	stroke-width: 3;
}

html:root body .mfz-features.is-collapsed li:nth-child(n+17) {
	display: none;
}

html:root body .mfz-collapse-toggle {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	margin-top: 18px;
	padding: 0 16px;
	border: 1px solid var(--mfz-border-strong);
	border-radius: 999px;
	background: var(--mfz-surface);
	color: var(--mfz-text);
	font: inherit;
	font-size: .9rem;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	cursor: pointer;
	transition: border-color .2s var(--mfz-ease), color .2s var(--mfz-ease);
}

html:root body .mfz-collapse-toggle:hover,
html:root body .mfz-collapse-toggle:focus-visible {
	border-color: var(--mfz-primary);
	background: var(--mfz-surface);
	color: var(--mfz-primary);
}

html:root body .mfz-specs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 40px;
	margin: 0;
}

html:root body .mfz-specs__row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--mfz-border);
	font-size: .92rem;
}

html:root body .mfz-specs dt {
	color: var(--mfz-muted);
}

html:root body .mfz-specs dd {
	margin: 0;
	color: var(--mfz-text);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	text-align: right;
}

html:root body .mfz-description {
	color: var(--mfz-text);
	font-size: .98rem;
	line-height: 1.75;
}

html:root body .mfz-description p {
	margin: 0 0 1em;
}

/* Händler setzen oft ganze Absätze fett – halbfett wirkt ruhiger. */
html:root body .mfz-description strong {
	font-weight: 600;
}

html:root body .mfz-description a {
	color: var(--mfz-primary);
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

html:root body .mfz-description ul {
	margin: 0 0 1em;
	padding-left: 1.2em;
}

html:root body .mfz-description li {
	margin-bottom: .25em;
}

html:root body .mfz-description hr {
	margin: 1.5em 0;
	border: 0;
	border-top: 1px solid var(--mfz-border);
}

html:root body .mfz-legal {
	margin: 8px 0 0;
	padding-top: 18px;
	border-top: 1px solid var(--mfz-border);
	color: var(--mfz-subtle);
	font-size: .78rem;
}

html:root body .mfz-similar {
	margin: 72px 0 0;
	padding-top: 48px;
	border-top: 1px solid var(--mfz-border);
}

html:root body .mfz-similar__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
	margin-bottom: 22px;
}

html:root body .mfz-similar__head .mfz-section__title {
	margin: 0;
}

html:root body .mfz-similar .mfz-archive {
	display: block;
}

/* ------------------------------------------------------------ Mobile Aktionsleiste */

html:root body .mfz-actionbar {
	display: none;
}

/* ------------------------------------------------------------ Galerie */

html:root body .mfz-gallery__stage {
	position: relative;
	overflow: hidden;
	border-radius: var(--mfz-radius);
	background: var(--mfz-surface-sunken);
}

html:root body .mfz-gallery__main {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: zoom-in;
	aspect-ratio: 4 / 3;
}

html:root body .mfz-gallery__main img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

html:root body .mfz-gallery__zoom {
	position: absolute;
	right: 14px;
	bottom: 14px;
	display: inline-flex;
	padding: 9px;
	border-radius: 50%;
	background: rgba(12, 16, 24, .55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #fff;
	pointer-events: none;
}

html:root body .mfz-gallery__nav,
html:root body .mfz-lightbox__nav {
	position: absolute;
	top: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin-top: -23px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: var(--mfz-text);
	font: inherit;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(12, 16, 24, .18);
	transition: opacity .25s var(--mfz-ease), background-color .2s var(--mfz-ease);
}

html:root body .mfz-gallery__nav:hover,
html:root body .mfz-gallery__nav:focus-visible {
	background: #fff;
	color: var(--mfz-text);
}

html:root body .mfz-gallery__nav--prev,
html:root body .mfz-lightbox__nav--prev {
	left: 14px;
	transform: scaleX(-1);
}

html:root body .mfz-gallery__nav--next,
html:root body .mfz-lightbox__nav--next {
	right: 14px;
}

@media (hover: hover) {
	html:root body .mfz-gallery__nav {
		opacity: 0;
	}

	html:root body .mfz-gallery__stage:hover .mfz-gallery__nav,
	html:root body .mfz-gallery__nav:focus-visible {
		opacity: 1;
	}
}

html:root body .mfz-gallery__counter {
	position: absolute;
	left: 14px;
	bottom: 14px;
	padding: 5px 11px;
	border-radius: 999px;
	background: rgba(12, 16, 24, .55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #fff;
	font-size: .8rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

html:root body .mfz-gallery__thumbs {
	display: flex;
	gap: 8px;
	margin: 12px 0 0;
	padding: 0 0 6px;
	overflow-x: auto;
	list-style: none;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
	scrollbar-color: var(--mfz-border-strong) transparent;
}

html:root body .mfz-gallery__thumbs li {
	flex: 0 0 92px;
	margin: 0;
	scroll-snap-align: start;
}

html:root body .mfz-gallery__thumb {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: var(--mfz-radius-btn);
	background: var(--mfz-surface-sunken);
	color: inherit;
	font: inherit;
	line-height: 0;
	cursor: pointer;
	opacity: .6;
	aspect-ratio: 4 / 3;
	transition: opacity .2s var(--mfz-ease), border-color .2s var(--mfz-ease);
}

html:root body .mfz-gallery__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

html:root body .mfz-gallery__thumb:hover,
html:root body .mfz-gallery__thumb:focus-visible {
	background: var(--mfz-surface-sunken);
	opacity: .9;
}

html:root body .mfz-gallery__thumb.is-active {
	border-color: var(--mfz-primary);
	opacity: 1;
}

html:root body .mfz-lightbox {
	width: 100vw;
	max-width: 100vw;
	height: 100dvh;
	max-height: 100dvh;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(9, 12, 18, .96);
}

html:root body .mfz-lightbox::backdrop {
	background: rgba(9, 12, 18, .96);
}

html:root body .mfz-lightbox[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

html:root body .mfz-lightbox__img {
	max-width: 94vw;
	max-height: 88dvh;
	border-radius: var(--mfz-radius-sm);
	object-fit: contain;
}

html:root body .mfz-lightbox__nav {
	background: rgba(255, 255, 255, .14);
	color: #fff;
	box-shadow: none;
}

html:root body .mfz-lightbox__nav:hover,
html:root body .mfz-lightbox__nav:focus-visible {
	background: rgba(255, 255, 255, .26);
	color: #fff;
}

html:root body .mfz-lightbox__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	font-family: inherit;
	font-size: 28px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s var(--mfz-ease);
}

html:root body .mfz-lightbox__close:hover,
html:root body .mfz-lightbox__close:focus-visible {
	background: rgba(255, 255, 255, .26);
	color: #fff;
}

/* ------------------------------------------------------------ Responsive */

@media (max-width: 1180px) {
	html:root body .mfz-single__top {
		gap: 32px;
		grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
	}

	html:root body .mfz-filter__fields {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 1024px) {
	html:root body .mfz-grid {
		grid-template-columns: repeat(var(--mfz-columns-tablet, 2), minmax(0, 1fr));
	}

	html:root body .mfz-filter__fields {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	html:root body .mfz-archive--filter-sidebar:not(.mfz-archive--no-filter) {
		grid-template-columns: minmax(0, 1fr);
	}

	html:root body .mfz-archive--filter-sidebar .mfz-filter {
		position: static;
	}

	html:root body .mfz-archive--filter-sidebar .mfz-filter__fields {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Detailseite: Galerie → Preis/Kontakt → Inhalte */
	html:root body .mfz-single__top {
		gap: 28px;
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"gallery"
			"summary"
			"content";
	}

	html:root body .mfz-single__summary {
		position: static;
	}

	/* Feste Aktionsleiste mit Preis und Anfrage */
	html:root body .mfz-page--single .mfz-container {
		padding-bottom: 120px;
	}

	html:root body .mfz-actionbar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 90;
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--mfz-border);
		background: rgba(255, 255, 255, .94);
		-webkit-backdrop-filter: blur(12px);
		backdrop-filter: blur(12px);
		box-shadow: 0 -8px 24px -12px rgba(18, 24, 38, .18);
		transition: transform .3s var(--mfz-ease);
	}

	html:root body .mfz-actionbar.is-hidden {
		transform: translateY(110%);
	}

	html:root body .mfz-actionbar__price {
		display: flex;
		flex: 1 1 auto;
		flex-direction: column;
		min-width: 0;
	}

	html:root body .mfz-actionbar__price strong {
		color: var(--mfz-heading, var(--mfz-text));
		font-size: 1.15rem;
		font-weight: var(--mfz-heading-weight, 750);
		line-height: 1.15;
		letter-spacing: -.02em;
		font-variant-numeric: tabular-nums;
	}

	html:root body .mfz-actionbar__price span {
		overflow: hidden;
		color: var(--mfz-muted);
		font-size: .78rem;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	html:root body .mfz-actionbar .mfz-button {
		min-height: 46px;
	}

	html:root body .mfz-actionbar__icon {
		width: 46px;
		padding: 0;
	}
}

@media (max-width: 640px) {
	html:root body .mfz {
		--mfz-gap: 20px;
	}

	html:root body .mfz-container {
		padding: 20px 16px 64px;
	}

	html:root body .mfz-grid {
		grid-template-columns: repeat(var(--mfz-columns-mobile, 1), minmax(0, 1fr));
	}

	/* Filter kompakt und einklappbar (nur mit JavaScript, sonst immer offen) */
	html:root body .mfz-filter {
		padding: 14px 16px;
	}

	html:root body .mfz-filter__head {
		margin-bottom: 0;
	}

	html:root body .mfz-filter.is-open .mfz-filter__head,
	html:root body .mfz-filter:not(.mfz-filter--collapsible) .mfz-filter__head {
		margin-bottom: 14px;
	}

	html:root body .mfz-filter--collapsible .mfz-filter__toggle:not([hidden]) {
		display: inline-flex;
	}

	html:root body .mfz-filter--collapsible:not(.is-open) .mfz-filter__fields,
	html:root body .mfz-filter--collapsible:not(.is-open) .mfz-filter__actions {
		display: none;
	}

	html:root body .mfz-filter__fields,
	html:root body .mfz-archive--filter-sidebar .mfz-filter__fields {
		gap: 12px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	html:root body .mfz-filter__submit {
		width: 100%;
		min-width: 0;
	}

	html:root body .mfz-filter__reset {
		order: 1;
		margin: 0 auto;
	}

	html:root body .mfz-toolbar {
		margin-bottom: 16px;
	}

	html:root body .mfz-card__body {
		padding: 16px 18px 18px;
	}

	/* Galerie randlos */
	html:root body .mfz-single__gallery {
		margin: 0 -16px;
	}

	html:root body .mfz-gallery__stage {
		border-radius: 0;
	}

	html:root body .mfz-gallery__thumbs {
		padding: 0 16px 4px;
		scroll-padding: 0 16px;
	}

	html:root body .mfz-gallery__thumbs li {
		flex-basis: 72px;
	}

	html:root body .mfz-gallery__nav {
		width: 38px;
		height: 38px;
		margin-top: -19px;
	}

	html:root body .mfz-single__summary {
		padding: 20px;
	}

	html:root body .mfz-pricebox__price {
		font-size: 2rem;
	}

	html:root body .mfz-specs {
		grid-template-columns: minmax(0, 1fr);
	}

	html:root body .mfz-section {
		margin-bottom: 40px;
	}

	html:root body .mfz-similar {
		margin-top: 48px;
		padding-top: 36px;
	}
}

@media (max-width: 360px) {
	html:root body .mfz-filter__fields,
	html:root body .mfz-archive--filter-sidebar .mfz-filter__fields {
		grid-template-columns: minmax(0, 1fr);
	}

	html:root body .mfz-facts {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	html:root body .mfz *,
	html:root body .mfz *::before,
	html:root body .mfz *::after {
		transition-duration: .01ms !important;
	}

	html:root body .mfz-card:hover,
	html:root body .mfz-card:hover .mfz-card__media img {
		transform: none;
	}
}
