/**
 * FERNIVA – Theme-Stylesheet
 *
 * Aufbau:
 *   1. Schriften
 *   2. Basis & Typografie
 *   3. Layout-Helfer
 *   4. Buttons & Links
 *   5. Header & Navigation
 *   6. Mobile Navigation & Sticky-CTA
 *   7. Sektionen & Komponenten
 *   8. Hero
 *   9. Galerie & Medien
 *  10. Fahrzeugseite
 *  11. Archive & Beiträge
 *  12. Breadcrumbs, Pagination, Sonstiges
 *  13. Footer
 *  14. Bewegung & Barrierefreiheit
 */

/* ============================================================
   1. Schriften – lokal, kein externer Request
   Dateien liegen in assets/fonts/. Fehlen sie, greifen die
   Fallbacks aus --fv-font-* ohne Layoutbruch.
   ============================================================ */
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-600.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Cormorant Garamond";
	src: url("../fonts/cormorant-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Cormorant Garamond";
	src: url("../fonts/cormorant-600.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

/* ============================================================
   2. Basis & Typografie
   ============================================================ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--fv-bg);
	color: var(--fv-text);
	font-family: var(--fv-font-body);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	font-synthesis-weight: none;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

h1,
h2,
h3,
h4 {
	font-family: var(--fv-font-display);
	font-weight: 600;
	color: var(--fv-heading);
	margin: 0 0 var(--sp-4);
	text-wrap: balance;
}

h1 {
	font-size: var(--fs-h1);
	line-height: var(--lh-tight);
	letter-spacing: -0.015em;
}
h2 {
	font-size: var(--fs-h2);
	line-height: var(--lh-heading);
	letter-spacing: -0.01em;
}
h3 {
	font-size: var(--fs-h3);
	line-height: 1.25;
}
h4 {
	font-size: var(--fs-h4);
	line-height: 1.35;
	font-family: var(--fv-font-body);
	font-weight: 600;
	letter-spacing: -0.005em;
}

p {
	margin: 0 0 var(--sp-4);
}

p:last-child {
	margin-bottom: 0;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

hr {
	border: 0;
	border-top: 1px solid var(--fv-line);
	margin: var(--sp-7) 0;
}

::selection {
	background: var(--fv-ink);
	color: var(--fv-offwhite);
}

.fv-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	font-family: var(--fv-font-body);
	font-size: var(--fs-eyebrow);
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--fv-copper-ink);
	margin: 0 0 var(--sp-3);
}

.fv-eyebrow::before {
	content: "";
	width: 24px;
	height: 1px;
	background: var(--fv-copper);
	flex: none;
}

.fv-lead {
	font-size: var(--fs-lead);
	line-height: 1.65;
	color: var(--fv-text);
	max-width: var(--fv-measure);
}

.fv-muted {
	color: var(--fv-muted);
}

.fv-measure {
	max-width: var(--fv-measure);
}

/* Vorläufige Angaben werden nie stillschweigend als Fakt dargestellt. */
.fv-provisional {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--fv-warning);
	border: 1px solid currentColor;
	border-radius: var(--r-full);
	padding: 0.1em 0.7em;
	white-space: nowrap;
	vertical-align: middle;
}

.fv-provisional::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	flex: none;
}

/* ============================================================
   3. Layout-Helfer
   ============================================================ */
.fv-container {
	width: 100%;
	max-width: var(--fv-container);
	margin-inline: auto;
	padding-inline: var(--fv-gutter);
}

.fv-container--wide {
	max-width: var(--fv-container-wide);
}
.fv-container--narrow {
	max-width: var(--fv-container-narrow);
}

.fv-section {
	padding-block: var(--fv-section-y);
	position: relative;
}

.fv-section--tight {
	padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.fv-section--sand {
	background: var(--fv-bg-alt);
}

.fv-section--dark {
	background: var(--fv-ink);
	color: var(--fv-offwhite);
}

.fv-section--dark h1,
.fv-section--dark h2,
.fv-section--dark h3,
.fv-section--dark h4 {
	color: var(--fv-offwhite);
}

.fv-section--dark .fv-eyebrow {
	color: var(--fv-sage);
}
.fv-section--dark .fv-eyebrow::before {
	background: var(--fv-sage);
}
.fv-section--dark .fv-muted {
	color: var(--fv-muted-on-dark);
}

.fv-section__head {
	max-width: 46rem;
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.fv-section__head--center {
	margin-inline: auto;
	text-align: center;
}

.fv-section__head--center .fv-eyebrow {
	justify-content: center;
}

.fv-grid {
	display: grid;
	gap: clamp(1.25rem, 2.5vw, 2rem);
}

.fv-grid--2 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}
.fv-grid--3 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.fv-grid--4 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.fv-split {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

@media (min-width: 900px) {
	.fv-split {
		grid-template-columns: 1fr 1fr;
	}
	.fv-split--media-right > .fv-split__media {
		order: 2;
	}
	.fv-split--wide-media {
		grid-template-columns: 1.15fr 1fr;
	}
}

.fv-stack > * + * {
	margin-top: var(--sp-4);
}

.fv-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
	margin-top: var(--sp-5);
}

.fv-actions--center {
	justify-content: center;
}

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

.fv-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 10000;
	background: var(--fv-ink);
	color: var(--fv-offwhite);
	padding: var(--sp-3) var(--sp-5);
	border-radius: 0 0 var(--r-md) 0;
	font-weight: 600;
}

.fv-skip-link:focus {
	left: 0;
}

/* ============================================================
   4. Buttons & Links
   ============================================================ */
a {
	color: var(--fv-ink);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color var(--dur) var(--ease);
}

a:hover {
	color: var(--fv-copper-ink);
}

.fv-section--dark a {
	color: var(--fv-sage);
}

.fv-btn {
	--btn-bg: var(--fv-ink);
	--btn-fg: var(--fv-offwhite);
	--btn-bd: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	min-height: 56px;
	padding: 0 var(--sp-6);
	background: var(--btn-bg);
	color: var(--btn-fg);
	border: 1px solid var(--btn-bd);
	border-radius: var(--r-full);
	font-family: var(--fv-font-body);
	font-size: 0.975rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
		color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.fv-btn:hover {
	color: var(--btn-fg);
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}

.fv-btn:active {
	transform: translateY(0);
}

.fv-btn--accent {
	--btn-bg: var(--fv-copper-ink);
	--btn-fg: var(--fv-white);
}

.fv-btn--ghost {
	--btn-bg: transparent;
	--btn-fg: var(--fv-ink);
	--btn-bd: var(--fv-ink);
}

.fv-btn--ghost:hover {
	--btn-bg: var(--fv-ink);
	--btn-fg: var(--fv-offwhite);
}

.fv-section--dark .fv-btn--ghost {
	--btn-fg: var(--fv-offwhite);
	--btn-bd: rgba(250, 248, 244, 0.45);
}

.fv-section--dark .fv-btn--ghost:hover {
	--btn-bg: var(--fv-offwhite);
	--btn-fg: var(--fv-ink);
}

.fv-btn--on-image {
	--btn-bg: rgba(250, 248, 244, 0.92);
	--btn-fg: var(--fv-ink);
	backdrop-filter: blur(6px);
}

.fv-btn--sm {
	min-height: 44px;
	padding-inline: var(--sp-5);
	font-size: 0.9rem;
}

.fv-btn--block {
	width: 100%;
}

.fv-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
}

.fv-link-arrow::after {
	content: "→";
	transition: transform var(--dur) var(--ease);
}

.fv-link-arrow:hover::after {
	transform: translateX(4px);
}

/* ============================================================
   5. Header
   ============================================================ */
.fv-header {
	position: sticky;
	top: 0;
	z-index: var(--fv-z-header);
	background: var(--fv-offwhite);
	border-bottom: 1px solid var(--fv-line);
	transition: height var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.fv-header__inner {
	display: flex;
	align-items: center;
	gap: var(--sp-5);
	height: var(--fv-header-h);
	transition: height var(--dur) var(--ease);
}

.fv-header.is-scrolled .fv-header__inner {
	height: var(--fv-header-h-scrolled);
}

/* Transparenter Header über dem Hero (nur wo eine Hero-Sektion folgt) */
.fv-header--overlay {
	position: fixed;
	inset: 0 0 auto;
	background: transparent;
	border-bottom-color: transparent;
}

.fv-header--overlay:not(.is-scrolled) .fv-header__brand-dark,
.fv-header.is-scrolled .fv-header__brand-light {
	display: none;
}

.fv-header--overlay:not(.is-scrolled) .fv-nav a {
	color: var(--fv-offwhite);
}

.fv-header--overlay.is-scrolled {
	background: var(--fv-offwhite);
	border-bottom-color: var(--fv-line);
	box-shadow: var(--shadow-sm);
}

.fv-header__brand {
	display: flex;
	align-items: center;
	flex: none;
	text-decoration: none;
}

.fv-header__brand img,
.fv-header__brand svg {
	height: clamp(34px, 3.4vw, 44px);
	width: auto;
}

.fv-header__brand-light {
	display: none;
}

.fv-header--overlay:not(.is-scrolled) .fv-header__brand-light {
	display: block;
}

.fv-nav {
	margin-left: auto;
}

.fv-nav ul {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2vw, 2rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.fv-nav a {
	position: relative;
	display: inline-block;
	padding: var(--sp-2) 0;
	color: var(--fv-ink);
	font-size: 0.95rem;
	font-weight: 500;
	text-decoration: none;
}

.fv-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 0;
	height: 1px;
	background: var(--fv-copper);
	transition: right var(--dur) var(--ease);
}

.fv-nav a:hover::after,
.fv-nav .current-menu-item > a::after,
.fv-nav .current_page_parent > a::after {
	right: 0;
}

.fv-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 15rem;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	background: var(--fv-offwhite);
	border: 1px solid var(--fv-line);
	border-radius: var(--r-md);
	box-shadow: var(--shadow-md);
	padding: var(--sp-2);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
		visibility var(--dur);
}

.fv-nav li {
	position: relative;
}

.fv-nav li:hover > .sub-menu,
.fv-nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.fv-nav .sub-menu a {
	display: block;
	padding: var(--sp-2) var(--sp-3);
	border-radius: var(--r-sm);
	color: var(--fv-ink);
}

.fv-nav .sub-menu a:hover {
	background: var(--fv-sand-light);
}

.fv-header__cta {
	flex: none;
	margin-left: var(--sp-4);
}

.fv-header__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-left: auto;
	padding: 0;
	background: transparent;
	border: 1px solid var(--fv-line);
	border-radius: var(--r-full);
	color: inherit;
	cursor: pointer;
}

.fv-header__toggle svg {
	width: 20px;
	height: 20px;
}

@media (max-width: 1100px) {
	.fv-nav,
	.fv-header__cta {
		display: none;
	}
	.fv-header__toggle {
		display: inline-flex;
	}
}

/* ============================================================
   6. Mobile Navigation & Sticky-CTA
   ============================================================ */
.fv-mobile-nav {
	position: fixed;
	inset: 0;
	z-index: var(--fv-z-nav);
	display: grid;
	grid-template-rows: auto 1fr auto;
	background: var(--fv-ink);
	color: var(--fv-offwhite);
	padding: var(--sp-5) var(--fv-gutter) calc(var(--sp-6) + var(--fv-mobile-cta-h));
	transform: translateX(100%);
	visibility: hidden;
	transition: transform var(--dur-slow) var(--ease), visibility var(--dur-slow);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.fv-mobile-nav.is-open {
	transform: translateX(0);
	visibility: visible;
}

.fv-mobile-nav__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	padding-bottom: var(--sp-5);
	border-bottom: 1px solid var(--fv-line-dark);
}

.fv-mobile-nav__head img {
	height: 36px;
	width: auto;
}

.fv-mobile-nav__close {
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px solid var(--fv-line-dark);
	border-radius: var(--r-full);
	color: var(--fv-offwhite);
	cursor: pointer;
}

.fv-mobile-nav ul {
	list-style: none;
	margin: var(--sp-5) 0 0;
	padding: 0;
}

.fv-mobile-nav li + li {
	border-top: 1px solid var(--fv-line-dark);
}

.fv-mobile-nav a {
	display: block;
	padding: var(--sp-4) 0;
	color: var(--fv-offwhite);
	font-family: var(--fv-font-display);
	font-size: 1.6rem;
	text-decoration: none;
}

.fv-mobile-nav .sub-menu {
	margin: 0 0 var(--sp-3) var(--sp-4);
}

.fv-mobile-nav .sub-menu a {
	font-family: var(--fv-font-body);
	font-size: 1rem;
	padding: var(--sp-2) 0;
}

.fv-mobile-nav__foot {
	padding-top: var(--sp-5);
	border-top: 1px solid var(--fv-line-dark);
	font-size: var(--fs-small);
	color: var(--fv-muted-on-dark);
}

.fv-mobile-nav__foot a {
	font-family: var(--fv-font-body);
	font-size: var(--fs-small);
	padding: var(--sp-1) 0;
	color: var(--fv-sage);
}

/* Dauerhaft sichtbare Handlungsleiste auf Mobilgeräten */
.fv-cta-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: var(--fv-z-cta);
	display: none;
	background: var(--fv-offwhite);
	border-top: 1px solid var(--fv-line);
	box-shadow: 0 -8px 24px -16px rgba(22, 24, 27, 0.4);
	padding-bottom: env(safe-area-inset-bottom);
}

.fv-cta-bar__inner {
	display: grid;
	grid-template-columns: auto auto 1fr;
	align-items: center;
	gap: var(--sp-2);
	height: var(--fv-mobile-cta-h);
	padding-inline: var(--sp-3);
}

.fv-cta-bar__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--fv-line);
	border-radius: var(--r-full);
	color: var(--fv-ink);
	text-decoration: none;
}

.fv-cta-bar__icon svg {
	width: 20px;
	height: 20px;
}

@media (max-width: 1100px) {
	.fv-cta-bar {
		display: block;
	}
	body {
		padding-bottom: var(--fv-mobile-cta-h);
	}
}

/* Dezenter Desktop-Sticky-Button ab 60 % Scrolltiefe */
.fv-sticky-desktop {
	position: fixed;
	right: clamp(1rem, 2vw, 2rem);
	bottom: clamp(1rem, 2vw, 2rem);
	z-index: var(--fv-z-cta);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
		visibility var(--dur);
}

.fv-sticky-desktop.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

@media (max-width: 1100px) {
	.fv-sticky-desktop {
		display: none;
	}
}

/* ============================================================
   7. Sektionen & Komponenten
   ============================================================ */
.fv-card {
	display: flex;
	flex-direction: column;
	background: var(--fv-white);
	border: 1px solid var(--fv-line);
	border-radius: var(--r-lg);
	overflow: hidden;
	transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
	height: 100%;
}

.fv-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
}

.fv-card__media {
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--fv-sand);
}

.fv-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--dur-slow) var(--ease);
}

.fv-card:hover .fv-card__media img {
	transform: scale(1.04);
}

.fv-card__body {
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
	padding: clamp(1.25rem, 2vw, 1.75rem);
	flex: 1;
}

.fv-card__title {
	margin: 0;
	font-size: var(--fs-h4);
	font-family: var(--fv-font-body);
	font-weight: 600;
	color: var(--fv-ink);
}

.fv-card__meta {
	font-size: var(--fs-small);
	color: var(--fv-muted);
}

.fv-card__body .fv-link-arrow {
	margin-top: auto;
	align-self: flex-start;
}

/* Highlight-Kachel mit Icon */
.fv-feature {
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
	padding: clamp(1.5rem, 2.5vw, 2rem);
	background: var(--fv-white);
	border: 1px solid var(--fv-line);
	border-radius: var(--r-lg);
	height: 100%;
	transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.fv-feature:hover {
	border-color: var(--fv-copper);
	transform: translateY(-2px);
}

.fv-feature__icon {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--r-full);
	background: var(--fv-sand-light);
	color: var(--fv-ink);
}

.fv-feature__icon svg {
	width: 22px;
	height: 22px;
}

.fv-feature h3 {
	font-family: var(--fv-font-body);
	font-size: 1.0625rem;
	font-weight: 600;
	margin: 0;
}

.fv-feature p {
	font-size: var(--fs-small);
	color: var(--fv-muted);
	margin: 0;
}

.fv-section--dark .fv-feature {
	background: rgba(250, 248, 244, 0.04);
	border-color: var(--fv-line-dark);
}

.fv-section--dark .fv-feature__icon {
	background: rgba(250, 248, 244, 0.08);
	color: var(--fv-sage);
}

.fv-section--dark .fv-feature p {
	color: var(--fv-muted-on-dark);
}

/* Ablauf-Schritte */
.fv-steps {
	counter-reset: fv-step;
	display: grid;
	gap: clamp(1.5rem, 3vw, 2.5rem);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.fv-step {
	counter-increment: fv-step;
	position: relative;
	padding-top: var(--sp-6);
	border-top: 1px solid var(--fv-line);
}

.fv-step::before {
	content: counter(fv-step, decimal-leading-zero);
	position: absolute;
	top: var(--sp-3);
	left: 0;
	font-family: var(--fv-font-display);
	font-size: 1.5rem;
	color: var(--fv-copper);
	line-height: 1;
}

.fv-step h3 {
	font-family: var(--fv-font-body);
	font-size: 1.0625rem;
	font-weight: 600;
	margin: var(--sp-4) 0 var(--sp-2);
}

.fv-step p {
	font-size: var(--fs-small);
	color: var(--fv-muted);
	margin: 0;
}

.fv-section--dark .fv-step {
	border-top-color: var(--fv-line-dark);
}
.fv-section--dark .fv-step::before {
	color: var(--fv-sage);
}
.fv-section--dark .fv-step p {
	color: var(--fv-muted-on-dark);
}

/* Spezifikationsliste */
.fv-specs {
	display: grid;
	gap: 0;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
	column-gap: clamp(2rem, 5vw, 4rem);
	margin: 0;
}

.fv-specs__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--sp-4);
	padding: var(--sp-3) 0;
	border-bottom: 1px solid var(--fv-line);
}

.fv-specs__label {
	color: var(--fv-muted);
	font-size: var(--fs-small);
	flex: none;
}

.fv-specs__value {
	font-weight: 500;
	text-align: right;
}

.fv-specs__value--pending {
	color: var(--fv-warning);
	font-weight: 500;
}

/* Bewertungen */
.fv-quote {
	display: flex;
	flex-direction: column;
	gap: var(--sp-4);
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: var(--fv-white);
	border: 1px solid var(--fv-line);
	border-radius: var(--r-lg);
	height: 100%;
}

.fv-quote blockquote {
	margin: 0;
	font-family: var(--fv-font-display);
	font-size: 1.35rem;
	line-height: 1.45;
	color: var(--fv-ink);
}

.fv-quote figcaption {
	font-size: var(--fs-small);
	color: var(--fv-muted);
	margin-top: auto;
}

.fv-rating {
	display: inline-flex;
	gap: 2px;
	color: var(--fv-copper);
}

.fv-rating svg {
	width: 16px;
	height: 16px;
}

/* Leerzustand, solange noch keine Bewertungen vorliegen */
.fv-empty {
	border: 1px dashed var(--fv-line);
	border-radius: var(--r-lg);
	padding: clamp(1.75rem, 4vw, 3rem);
	text-align: center;
	color: var(--fv-muted);
	background: var(--fv-white);
}

/* Hinweisbox */
.fv-note {
	display: flex;
	gap: var(--sp-3);
	padding: var(--sp-4) var(--sp-5);
	background: var(--fv-sand-light);
	border-left: 3px solid var(--fv-copper);
	border-radius: 0 var(--r-md) var(--r-md) 0;
	font-size: var(--fs-small);
}

.fv-note--warning {
	background: #fbf4e2;
	border-left-color: var(--fv-warning);
}

/* ============================================================
   8. Hero
   ============================================================ */
.fv-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(92vh, 900px);
	padding-top: calc(var(--fv-header-h) + var(--sp-8));
	padding-bottom: clamp(3rem, 8vw, 6rem);
	color: var(--fv-offwhite);
	background: var(--fv-ink-deep);
	overflow: hidden;
	isolation: isolate;
}

.fv-hero--short {
	min-height: min(62vh, 620px);
}

.fv-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.fv-hero__media img,
.fv-hero__media video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	animation: fv-kenburns 22s var(--ease) both;
}

@keyframes fv-kenburns {
	from {
		transform: scale(1);
	}
	to {
		transform: scale(1.06);
	}
}

.fv-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(
		to top,
		rgba(22, 24, 27, 0.88) 0%,
		rgba(22, 24, 27, 0.55) 45%,
		rgba(22, 24, 27, 0.25) 100%
	);
}

.fv-hero__content {
	max-width: 46rem;
}

.fv-hero h1 {
	color: var(--fv-offwhite);
	font-size: var(--fs-display);
	line-height: var(--lh-tight);
	margin-bottom: var(--sp-5);
}

.fv-hero .fv-eyebrow {
	color: var(--fv-sage);
}
.fv-hero .fv-eyebrow::before {
	background: var(--fv-sage);
}

.fv-hero__sub {
	font-size: var(--fs-lead);
	line-height: 1.6;
	color: rgba(250, 248, 244, 0.92);
	max-width: 40rem;
}

.fv-hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3) var(--sp-6);
	margin-top: var(--sp-6);
	padding-top: var(--sp-5);
	border-top: 1px solid rgba(250, 248, 244, 0.22);
	list-style: none;
	font-size: var(--fs-small);
	color: rgba(250, 248, 244, 0.85);
}

.fv-hero__facts li {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
}

.fv-hero__facts li::before {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--fv-sage);
}

/* Bildlose Fallback-Fläche: nie ein leerer weißer Kasten */
.fv-placeholder {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 12rem;
	background: linear-gradient(135deg, var(--fv-ink) 0%, var(--fv-ink-soft) 100%);
	color: rgba(250, 248, 244, 0.72);
	font-size: var(--fs-small);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-align: center;
	padding: var(--sp-5);
}

.fv-placeholder::after {
	content: "";
	position: absolute;
	inset: 12px;
	border: 1px solid rgba(250, 248, 244, 0.24);
	border-radius: inherit;
	pointer-events: none;
}

/* ============================================================
   9. Galerie & Medien
   ============================================================ */
.fv-figure {
	position: relative;
	margin: 0;
	border-radius: var(--r-lg);
	overflow: hidden;
	background: var(--fv-sand);
}

.fv-figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fv-figure figcaption {
	padding: var(--sp-3) 0 0;
	font-size: var(--fs-small);
	color: var(--fv-muted);
}

.fv-figure--panorama {
	aspect-ratio: 21 / 9;
}
.fv-figure--wide {
	aspect-ratio: 16 / 9;
}
.fv-figure--portrait {
	aspect-ratio: 3 / 4;
}
.fv-figure--square {
	aspect-ratio: 1 / 1;
}

/* Überlappende Bildkomposition */
.fv-overlap {
	position: relative;
	display: grid;
	gap: var(--sp-4);
}

@media (min-width: 900px) {
	.fv-overlap {
		grid-template-columns: repeat(12, 1fr);
		gap: 0;
	}
	.fv-overlap__main {
		grid-column: 1 / span 8;
		grid-row: 1;
	}
	.fv-overlap__inset {
		grid-column: 7 / span 6;
		grid-row: 1;
		align-self: end;
		transform: translateY(3rem);
		box-shadow: var(--shadow-lg);
		border: 6px solid var(--fv-offwhite);
	}
	.fv-overlap + * {
		margin-top: 4rem;
	}
}

/* Galerie-Raster */
.fv-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: var(--sp-3);
}

.fv-gallery__item {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: var(--r-md);
	overflow: hidden;
	background: var(--fv-sand);
	cursor: zoom-in;
	border: 0;
	padding: 0;
}

.fv-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--dur-slow) var(--ease);
}

.fv-gallery__item:hover img {
	transform: scale(1.05);
}

.fv-gallery__item--feature {
	grid-column: span 2;
	aspect-ratio: 8 / 5;
}

@media (max-width: 640px) {
	.fv-gallery__item--feature {
		grid-column: span 1;
		aspect-ratio: 4 / 3;
	}
}

/* Lightbox */
.fv-lightbox {
	position: fixed;
	inset: 0;
	z-index: var(--fv-z-lightbox);
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(16, 18, 21, 0.94);
	padding: var(--sp-5);
}

.fv-lightbox.is-open {
	display: flex;
}

.fv-lightbox img {
	max-width: min(96vw, 1400px);
	max-height: 84vh;
	object-fit: contain;
	border-radius: var(--r-md);
}

.fv-lightbox__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: var(--sp-5);
	text-align: center;
	color: rgba(250, 248, 244, 0.85);
	font-size: var(--fs-small);
	padding-inline: var(--sp-5);
}

.fv-lightbox__btn {
	position: absolute;
	width: 52px;
	height: 52px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(250, 248, 244, 0.12);
	border: 1px solid rgba(250, 248, 244, 0.28);
	border-radius: var(--r-full);
	color: var(--fv-offwhite);
	font-size: 1.4rem;
	cursor: pointer;
}

.fv-lightbox__btn--close {
	top: var(--sp-5);
	right: var(--sp-5);
}
.fv-lightbox__btn--prev {
	left: var(--sp-4);
	top: 50%;
	transform: translateY(-50%);
}
.fv-lightbox__btn--next {
	right: var(--sp-4);
	top: 50%;
	transform: translateY(-50%);
}

/* Außen/Innen-Vergleich */
.fv-compare {
	position: relative;
	border-radius: var(--r-lg);
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--fv-sand);
	touch-action: pan-y;
}

.fv-compare__layer {
	position: absolute;
	inset: 0;
}

.fv-compare__layer img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fv-compare__layer--top {
	clip-path: inset(0 calc(100% - var(--fv-compare-pos, 50%)) 0 0);
}

.fv-compare__handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--fv-compare-pos, 50%);
	width: 2px;
	background: var(--fv-offwhite);
	transform: translateX(-1px);
	cursor: ew-resize;
}

.fv-compare__handle::after {
	content: "↔";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--fv-offwhite);
	color: var(--fv-ink);
	border-radius: var(--r-full);
	box-shadow: var(--shadow-md);
}

.fv-compare__label {
	position: absolute;
	bottom: var(--sp-4);
	padding: 0.35em 0.9em;
	background: rgba(22, 24, 27, 0.72);
	color: var(--fv-offwhite);
	border-radius: var(--r-full);
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	backdrop-filter: blur(4px);
}

.fv-compare__label--left {
	left: var(--sp-4);
}
.fv-compare__label--right {
	right: var(--sp-4);
}

/* Slider (scroll-snap, kein Fremd-Plugin) */
.fv-slider {
	display: flex;
	gap: var(--sp-4);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: var(--sp-4);
	scrollbar-width: thin;
}

.fv-slider > * {
	flex: 0 0 min(88%, 26rem);
	scroll-snap-align: start;
}

/* ============================================================
   10. Fahrzeugseite
   ============================================================ */
.fv-vehicle__intro {
	display: grid;
	gap: clamp(2rem, 4vw, 3.5rem);
}

@media (min-width: 960px) {
	.fv-vehicle__intro {
		grid-template-columns: 1.4fr 1fr;
		align-items: start;
	}
}

.fv-vehicle__aside {
	position: sticky;
	top: calc(var(--fv-header-h) + var(--sp-5));
	background: var(--fv-white);
	border: 1px solid var(--fv-line);
	border-radius: var(--r-lg);
	padding: clamp(1.5rem, 3vw, 2rem);
	box-shadow: var(--shadow-sm);
}

.fv-vehicle__price {
	font-family: var(--fv-font-display);
	font-size: 2.25rem;
	color: var(--fv-ink);
	line-height: 1.1;
}

.fv-vehicle__price small {
	display: block;
	font-family: var(--fv-font-body);
	font-size: var(--fs-small);
	color: var(--fv-muted);
	margin-top: var(--sp-1);
}

.fv-equip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: var(--sp-2) var(--sp-6);
	list-style: none;
	margin: 0;
	padding: 0;
}

.fv-equip li {
	display: flex;
	align-items: flex-start;
	gap: var(--sp-3);
	padding: var(--sp-2) 0;
	border-bottom: 1px solid var(--fv-line);
	font-size: var(--fs-small);
}

.fv-equip li::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 3px;
	border-radius: var(--r-full);
	background: var(--fv-sand-light);
	background-image: linear-gradient(var(--fv-ink), var(--fv-ink));
	background-size: 8px 2px;
	background-position: center;
	background-repeat: no-repeat;
}

.fv-equip li.is-provisional::before {
	background-image: linear-gradient(var(--fv-warning), var(--fv-warning));
}

.fv-floorplan {
	background: var(--fv-white);
	border: 1px solid var(--fv-line);
	border-radius: var(--r-lg);
	padding: clamp(1rem, 3vw, 2rem);
}

/* ============================================================
   11. Archive & Beiträge
   ============================================================ */
.fv-page-head {
	padding-top: calc(var(--fv-header-h) + clamp(2.5rem, 6vw, 5rem));
	padding-bottom: clamp(2rem, 5vw, 4rem);
	background: var(--fv-sand-light);
	border-bottom: 1px solid var(--fv-line);
}

.fv-page-head h1 {
	margin-bottom: var(--sp-4);
}

.fv-entry {
	max-width: var(--fv-container-narrow);
	margin-inline: auto;
}

.fv-entry h2 {
	margin-top: var(--sp-8);
}

.fv-entry h3 {
	margin-top: var(--sp-6);
}

.fv-entry ul,
.fv-entry ol {
	padding-left: 1.3em;
	margin: 0 0 var(--sp-4);
}

.fv-entry li + li {
	margin-top: var(--sp-2);
}

.fv-entry figure {
	margin: var(--sp-7) 0;
}

.fv-entry blockquote {
	margin: var(--sp-7) 0;
	padding-left: var(--sp-5);
	border-left: 2px solid var(--fv-copper);
	font-family: var(--fv-font-display);
	font-size: 1.35rem;
	color: var(--fv-ink);
}

.fv-toc {
	background: var(--fv-sand-light);
	border-radius: var(--r-lg);
	padding: var(--sp-5);
	margin-bottom: var(--sp-7);
}

.fv-toc ol {
	margin: 0;
	padding-left: 1.2em;
	font-size: var(--fs-small);
}

.fv-meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2) var(--sp-4);
	font-size: var(--fs-small);
	color: var(--fv-muted);
	margin-bottom: var(--sp-5);
}

.fv-tag {
	display: inline-block;
	padding: 0.25em 0.85em;
	background: var(--fv-white);
	border: 1px solid var(--fv-line);
	border-radius: var(--r-full);
	font-size: 0.8125rem;
	color: var(--fv-ink);
	text-decoration: none;
}

.fv-tag:hover {
	background: var(--fv-ink);
	color: var(--fv-offwhite);
}

/* ============================================================
   12. Breadcrumbs, Pagination, Sonstiges
   ============================================================ */
.fv-breadcrumbs {
	font-size: 0.8125rem;
	color: var(--fv-muted);
	margin-bottom: var(--sp-4);
}

.fv-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fv-breadcrumbs li + li::before {
	content: "/";
	margin-right: 0.5em;
	color: var(--fv-line);
}

.fv-breadcrumbs a {
	color: inherit;
	text-decoration: none;
}

.fv-breadcrumbs a:hover {
	color: var(--fv-copper-ink);
	text-decoration: underline;
}

.fv-pagination {
	display: flex;
	justify-content: center;
	gap: var(--sp-2);
	margin-top: var(--sp-8);
}

.fv-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding-inline: var(--sp-3);
	border: 1px solid var(--fv-line);
	border-radius: var(--r-full);
	text-decoration: none;
	color: var(--fv-ink);
}

.fv-pagination .page-numbers.current {
	background: var(--fv-ink);
	border-color: var(--fv-ink);
	color: var(--fv-offwhite);
}

/* ============================================================
   13. Footer
   ============================================================ */
.fv-footer {
	background: var(--fv-ink-deep);
	color: var(--fv-muted-on-dark);
	padding-block: clamp(3rem, 7vw, 5.5rem) var(--sp-6);
	font-size: var(--fs-small);
}

.fv-footer__grid {
	display: grid;
	gap: clamp(2rem, 4vw, 3rem);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	padding-bottom: clamp(2rem, 4vw, 3rem);
	border-bottom: 1px solid var(--fv-line-dark);
}

.fv-footer__brand img {
	height: 46px;
	width: auto;
	margin-bottom: var(--sp-4);
}

.fv-footer h2,
.fv-footer h3 {
	font-family: var(--fv-font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--fv-sage);
	margin: 0 0 var(--sp-4);
}

.fv-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fv-footer li + li {
	margin-top: var(--sp-2);
}

.fv-footer a {
	color: var(--fv-muted-on-dark);
	text-decoration: none;
}

.fv-footer a:hover {
	color: var(--fv-offwhite);
	text-decoration: underline;
}

.fv-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--sp-3);
	padding-top: var(--sp-5);
	font-size: 0.8125rem;
	color: rgba(196, 204, 197, 0.75);
}

.fv-footer__claim {
	font-family: var(--fv-font-display);
	font-size: 1.35rem;
	color: var(--fv-offwhite);
	margin-bottom: var(--sp-4);
}

/* ============================================================
   14. Bewegung & Barrierefreiheit
   ============================================================ */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--fv-focus);
	outline-offset: 3px;
	border-radius: var(--r-sm);
}

.fv-reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

.fv-reveal.is-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.fv-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.fv-hero__media img,
	.fv-hero__media video {
		animation: none;
	}
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

@media print {
	.fv-header,
	.fv-cta-bar,
	.fv-sticky-desktop,
	.fv-mobile-nav,
	.fv-footer nav {
		display: none !important;
	}
	body {
		background: #fff;
		color: #000;
		padding-bottom: 0;
	}
}
