/* ==========================================================================
   Autohaus Wagner – Haupt-Stylesheet
   Nachbau des bisherigen Designs (Gold #c9994b, Anthrazit #393939) ohne Bootstrap.
   ========================================================================== */

:root {
	--ahw-gold: #c9994b;
	--ahw-gold-dark: #bc873b;
	--ahw-gray: #393939;
	--ahw-gray-light: #4a4a4a;
	--ahw-text-dark: #212529;
	--ahw-white: #fff;
	--ahw-wide: 1200px;
	--ahw-gutter: 15px;
	--ahw-font: "PT Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ahw-serif: "Libre Caslon Text", Georgia, serif;
	--ahw-brand: costa, "Libre Caslon Text", Georgia, serif;
	--ahw-track: 0.2rem;
	--ahw-header-h: 0px;
}

/* ---------- Basis ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--ahw-header-h);
	-webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	background: var(--ahw-gray);
	color: var(--ahw-white);
	font-family: var(--ahw-font);
	font-size: 1rem;
	line-height: 1.5;
}

#pagewrapper {
	background: var(--ahw-gray);
	overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	line-height: 1.2;
	letter-spacing: var(--ahw-track);
	hyphens: auto;
	overflow-wrap: break-word;
}

h1, h2, h3 {
	font-weight: 600;
}

p {
	margin: 0 0 1rem;
	hyphens: auto;
}

a {
	color: var(--ahw-white);
	text-decoration: none;
}

a:hover {
	text-decoration: none;
}

.wp-block-button__link {
	border-radius: 0;
}

img {
	max-width: 100%;
	height: auto;
}

:focus-visible {
	outline: 2px solid var(--ahw-gold);
	outline-offset: 2px;
}

.branding {
	font-family: var(--ahw-brand);
	font-style: normal;
	font-weight: 800;
}

.letterspacing {
	letter-spacing: var(--ahw-track);
}

hr {
	width: 100px;
	height: 1px;
	margin: 40px auto;
	border: 0;
	background: var(--ahw-white);
}

.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;
}

.skip-link:focus {
	position: fixed !important;
	top: 10px;
	left: 10px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 10px 16px;
	clip: auto;
	background: var(--ahw-white);
	color: var(--ahw-gray);
}

.alignwide {
	width: 100%;
	max-width: var(--ahw-wide);
	margin-inline: auto;
}

.alignfull {
	width: 100%;
	max-width: 100%;
}

.content-narrow {
	max-width: 900px;
	padding-inline: var(--ahw-gutter);
}

.w-30 { width: 33% !important; }
.w-40 { width: 40% !important; }
.w-50 { width: 50% !important; }

@media (max-width: 767.98px) {
	.w-30,
	.w-40,
	.w-50 {
		width: 100% !important;
	}
}

/* Farbklassen aus dem Editor (auch für importierte Inhalte des alten Themes). */
.has-rd-gold-color { color: var(--ahw-gold) !important; }
.has-rd-gold-background-color { background-color: var(--ahw-gold) !important; }
.has-rd-gold-dark-background-color { background-color: var(--ahw-gold-dark) !important; }
.has-rd-gray-color { color: var(--ahw-gray) !important; }
.has-rd-gray-background-color { background-color: var(--ahw-gray) !important; }
.has-white-color { color: var(--ahw-white) !important; }
.has-white-background-color { background-color: var(--ahw-white) !important; }

/* Buttons */
.button,
.wp-block-button__link,
.wp-element-button {
	display: inline-block;
	padding: 0.75em 1.5em;
	border: 2px solid var(--ahw-gold);
	border-radius: 0;
	background: var(--ahw-gold);
	color: var(--ahw-white);
	font-weight: 600;
	letter-spacing: 0.1rem;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.button:hover,
.wp-block-button__link:hover,
.wp-element-button:hover {
	background: var(--ahw-white);
	color: var(--ahw-gold);
	border-color: var(--ahw-white);
}

.button--outline {
	background: transparent;
	color: var(--ahw-white);
	border-color: var(--ahw-white);
}

.bewertungen .wp-block-button__link {
	border-radius: 999px;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
}

/* ---------- Header ---------- */

.site-header {
	position: relative;
	z-index: 50;
	background: var(--ahw-gray);
}

.site-header__bar {
	position: relative;
	z-index: 60;
	background: var(--ahw-gray);
}

.site-header__inner {
	display: flex;
	/* Oben ausrichten: Schriftzug und Telefon-Buttons sind beide 48px hoch und stehen auf einer Linie. */
	align-items: flex-start;
	justify-content: center;
	gap: 10px;
	padding: 30px var(--ahw-gutter) 0;
}

.phone-button {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-width: 200px;
	height: 48px;
	padding: 0 20px;
	background: var(--ahw-gold);
	color: var(--ahw-white);
	font-weight: 600;
	letter-spacing: 0.1rem;
	white-space: nowrap;
	transition: filter 0.2s;
}

.phone-button:hover {
	filter: brightness(110%);
}

.site-branding {
	flex: 0 1 60%;
	text-align: center;
}

.site-branding__link {
	display: inline-block;
}

.site-title {
	margin: 0;
	font-family: var(--ahw-brand);
	font-size: 64px;
	font-weight: 800;
	line-height: 48px;
	letter-spacing: 0;
	color: var(--ahw-white);
	white-space: nowrap;
}

.site-tagline {
	margin: 6px 0 0;
	font-family: var(--ahw-serif);
	font-size: 20px;
	letter-spacing: var(--ahw-track);
	color: var(--ahw-white);
	opacity: 0.2;
}

.nav-toggle {
	display: none;
}

.site-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav--desktop {
	padding: 20px var(--ahw-gutter) 30px;
}

.site-nav--desktop .menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 1rem;
	font-size: 1rem;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.site-nav--desktop a {
	display: inline-block;
	padding: 0.5rem 0;
	border-bottom: 5px solid transparent;
	line-height: 1.5rem;
	transition: border-color 0.2s;
}

.site-nav--desktop a:hover,
.site-nav--desktop a:focus-visible,
.site-nav--desktop .current-menu-item > a,
.site-nav--desktop .is-current > a {
	border-bottom-color: var(--ahw-gold);
}

.site-nav--mobile {
	display: none;
}

@media (max-width: 1199.98px) {
	.site-title {
		font-size: 48px;
		line-height: 48px;
	}
	.phone-button {
		min-width: 0;
		font-size: 0.9rem;
	}
}

/* Mobile: kompakte, fixierte Leiste wie bisher */
@media (max-width: 991.98px) {
	:root {
		--ahw-header-h: 100px;
	}

	.site-header__bar {
		position: sticky;
		top: 0;
	}

	.admin-bar .site-header__bar {
		top: var(--wp-admin--admin-bar--height, 0px);
	}

	.site-header__inner {
		flex-wrap: wrap;
		align-items: center;
		gap: 0;
		padding: 0;
	}

	.phone-button {
		order: -1;
		flex: 1 1 50%;
		height: 36px;
		min-width: 0;
		padding: 0 8px;
		font-size: 0.85rem;
		letter-spacing: 0.05rem;
	}

	.site-branding {
		flex: 1 1 auto;
		padding: 10px var(--ahw-gutter);
		text-align: left;
	}

	.site-title {
		font-size: clamp(21px, 7vw, 30px);
		line-height: 1.1;
	}

	.site-tagline,
	.site-nav--desktop {
		display: none;
	}

	.nav-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 54px;
		height: 54px;
		margin-right: 6px;
		padding: 0;
		border: 0;
		background: transparent;
		cursor: pointer;
	}

	.nav-toggle__bars,
	.nav-toggle__bars::before,
	.nav-toggle__bars::after {
		display: block;
		width: 26px;
		height: 2px;
		border-radius: 1px;
		background: rgba(255, 255, 255, 0.7);
		transition: transform 0.25s, opacity 0.25s;
	}

	.nav-toggle__bars {
		position: relative;
	}

	.nav-toggle__bars::before,
	.nav-toggle__bars::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.nav-toggle__bars::before { top: -8px; }
	.nav-toggle__bars::after { top: 8px; }

	.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

	.site-nav--mobile {
		display: block;
		max-height: calc(100vh - var(--ahw-header-h));
		overflow-y: auto;
		padding: 15px 0 50px;
		background: var(--ahw-gray);
		border-top: 2px solid var(--ahw-gold);
	}

	.site-nav--mobile[hidden] {
		display: none;
	}

	.site-nav--mobile a {
		display: block;
		padding: 10px 30px;
		font-size: 16px;
		font-weight: 600;
		letter-spacing: var(--ahw-track);
		text-transform: uppercase;
	}

	.site-nav--mobile li:hover > a,
	.site-nav--mobile a:focus-visible {
		background: var(--ahw-white);
		color: var(--ahw-gray);
	}

	.site-nav--mobile .sub-menu a {
		padding-left: 50px;
		font-weight: 400;
	}
}

/* ---------- Header-Slider ---------- */

.header-slider {
	position: relative;
	z-index: 1;
	padding-bottom: 25px; /* Platz für die Reiter, die halb über die Kante ragen */
}

.header-slider__slides {
	display: grid;
}

.header-slider__slide {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}

.header-slider__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.8s ease;
}

.header-slider .wp-block-cover {
	min-height: clamp(460px, 80vh, 900px) !important;
	margin: 0;
	padding: 60px var(--ahw-gutter) 160px;
}

.header-slider .wp-block-cover__inner-container {
	display: flex;
	justify-content: center;
	width: 100%;
	text-transform: uppercase;
}

.header-slider .wp-block-group.alignwide {
	width: 100%;
	max-width: var(--ahw-wide);
}

.header-slider h6 {
	display: inline-block;
	max-width: 100%;
	margin: 0 0 0.5rem;
	padding: 10px;
	border: 1px solid var(--ahw-white);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.4;
}

.header-slider h2 {
	margin: 0 0 1.5rem;
	font-size: clamp(36px, 6vw, 70px);
	font-weight: 400;
	line-height: 1.1;
}

.header-slider .wp-block-buttons {
	margin-top: 1rem;
}

.header-slider__controls {
	position: absolute;
	right: 0;
	bottom: 125px;
	left: 0;
	z-index: 5;
	display: flex;
	gap: 0;
	padding-inline: var(--ahw-gutter);
	pointer-events: none;
}

.header-slider__arrow {
	width: 50px;
	height: 50px;
	border: 0;
	background: var(--ahw-gray) center / 12px no-repeat;
	cursor: pointer;
	pointer-events: auto;
}

.header-slider__arrow.is-prev {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3e%3c/svg%3e");
}

.header-slider__arrow.is-next {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3e%3c/svg%3e");
}

.header-slider__arrow:hover {
	background-color: var(--ahw-gold);
}

.header-slider__tabs {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 5;
	display: flex;
	justify-content: space-between;
	gap: 30px;
	padding-inline: var(--ahw-gutter);
}

.header-slider__tab {
	flex: 1 1 0;
	min-width: 0;
	height: 50px;
	padding: 0 10px;
	border: 0;
	background: var(--ahw-gray);
	color: var(--ahw-white);
	font: 600 18px/1 var(--ahw-font);
	letter-spacing: var(--ahw-track);
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s, filter 0.2s;
}

.header-slider__tab:hover {
	filter: brightness(110%);
}

.header-slider__tab.is-active {
	background: var(--ahw-gold);
}

@media (max-width: 991.98px) {
	.header-slider {
		padding-bottom: 0;
	}
	.header-slider .wp-block-cover {
		min-height: 70vh !important;
		padding-bottom: 90px;
	}
	.header-slider__tabs {
		display: none;
	}
	.header-slider__controls {
		bottom: 20px;
	}
}

/* ---------- Marken-Navigation (Fahrzeugseiten) ---------- */

.car-navigation {
	padding: 10px var(--ahw-gutter) 30px;
}

.car-navigation__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.car-navigation__list li {
	display: flex;
	height: 50px;
	padding: 5px;
	background: var(--ahw-gray);
	transition: background-color 0.2s;
}

.car-navigation__list li:hover,
.car-navigation__list .current-menu-item {
	background: var(--ahw-gold);
}

.car-navigation__list a {
	display: flex;
	align-items: center;
	align-self: center;
	padding: 5px;
	font-family: var(--ahw-serif);
	font-weight: 600;
	line-height: 1;
	letter-spacing: var(--ahw-track);
	text-transform: uppercase;
	color: var(--ahw-white);
}

.car-navigation__list a::before,
.car-navigation__list a::after {
	content: "";
	display: block;
	flex: 0 0 21px;
	width: 21px;
	height: 19px;
	background: url("../img/wing-left.svg") center / contain no-repeat;
}

.car-navigation__list a::before { margin-right: 10px; }

.car-navigation__list a::after {
	margin-left: 10px;
	background-image: url("../img/wing-right.svg");
}

@media (max-width: 991.98px) {
	.car-navigation {
		padding-top: 20px;
	}
	.car-navigation__list li {
		flex: 1 1 100%;
		justify-content: center;
	}
}

/* ---------- Inhaltssektionen (Cover-Blöcke aus dem Editor) ---------- */

.site-main {
	position: relative;
}

.page-content > .wp-block-cover,
.page-content > .wp-block-group {
	margin-block: 0;
}

.section {
	padding: 80px var(--ahw-gutter);
	align-content: center;
}

.section--gray {
	background: var(--ahw-gray);
}

.wp-block-cover {
	padding: 60px var(--ahw-gutter);
}

.wp-block-cover__inner-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: inherit;
}

.wp-block-cover__inner-container > * {
	width: 100%;
}

.wp-block-cover__inner-container > .alignwide {
	max-width: var(--ahw-wide);
}

/* Willkommen */
.willkommen .wp-block-columns {
	gap: 0;
}

.willkommen .wp-block-column:first-of-type {
	padding-right: 1rem;
}

.willkommen .wp-block-column:first-of-type h2 {
	margin: 0;
	font-size: 36px;
	line-height: 1.15;
}

.willkommen .wp-block-column:last-of-type h4 {
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.3;
}

@media (min-width: 782px) {
	.willkommen .wp-block-column:first-of-type {
		border-right: 1px solid;
	}
	.willkommen .wp-block-column:first-of-type h2 {
		font-size: 56px;
	}
	.willkommen .wp-block-column:last-of-type {
		padding-left: 2rem;
	}
}

@media (min-width: 992px) {
	.willkommen .wp-block-column:first-of-type {
		padding-right: 2rem;
	}
	.willkommen .wp-block-column:first-of-type h2 {
		font-size: 70px;
	}
	.willkommen .wp-block-column:last-of-type {
		padding-left: 4em;
	}
}

@media (min-width: 1200px) {
	.willkommen .wp-block-column:last-of-type {
		padding-left: 7em;
	}
}

/* Über uns */
.ueberuns {
	position: relative;
	z-index: 2;
	box-shadow: 0 0 20px 15px rgba(0, 0, 0, 0.37);
	color: var(--ahw-gray);
}

.ueberuns h3 {
	font-weight: 600;
	letter-spacing: var(--ahw-track);
	text-transform: uppercase;
}

.ueberuns h6 {
	margin-bottom: 0.25rem;
	font-size: 0.8rem;
	font-weight: 400;
	letter-spacing: var(--ahw-track);
}

.ueberuns .wp-block-gallery {
	gap: 8px;
}

.ueberuns .wp-block-gallery img {
	transition: transform 0.4s, filter 0.4s;
}

.ueberuns .wp-block-gallery figure {
	overflow: hidden;
}

.ueberuns .wp-block-gallery figure:hover img {
	transform: scale(1.04);
	filter: brightness(1.05);
}

/* Bewertungen */
.bewertungen .wp-block-group.alignwide > p:first-child {
	margin: 0;
	font-family: var(--ahw-serif);
	line-height: 1;
}

.bewertungen h3 {
	font-weight: 400;
}

.ahw-reviews {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 1.5rem 0;
}

.ahw-reviews__track {
	display: grid;
	flex: 1 1 auto;
	grid-auto-columns: calc((100% - 40px) / 3);
	grid-auto-flow: column;
	gap: 20px;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	list-style: none;
}

.ahw-reviews__track::-webkit-scrollbar {
	display: none;
}

@media (max-width: 991.98px) {
	.ahw-reviews__track { grid-auto-columns: calc((100% - 20px) / 2); }
}

@media (max-width: 599.98px) {
	.ahw-reviews__track { grid-auto-columns: 100%; }
}

.ahw-review {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px 20px 15px;
	background: var(--ahw-gold);
	text-align: center;
	scroll-snap-align: start;
}

.ahw-review__name {
	margin: 0 0 0.25rem;
	font-weight: 700;
}

.ahw-review__stars {
	margin: 0 0 0.5rem;
	color: rgba(255, 255, 255, 0.35);
	font-size: 1.1rem;
	letter-spacing: 2px;
}

.ahw-review__stars .is-on {
	color: #fcd34d;
}

.ahw-review__text {
	font-size: 0.9rem;
	line-height: 1.5;
}

.ahw-review__text[data-clamp].is-clamped {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

.ahw-review__more {
	margin-top: 0.25rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ahw-white);
	font: inherit;
	font-size: 0.85rem;
	text-decoration: underline;
	cursor: pointer;
}

.ahw-reviews__nav {
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12) center / 8px no-repeat;
	cursor: pointer;
}

.ahw-reviews__nav--prev {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3e%3c/svg%3e");
}

.ahw-reviews__nav--next {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3e%3c/svg%3e");
}

.ahw-reviews__nav:hover {
	background-color: var(--ahw-gold);
}

/* Fahrzeuge-Bildband */
.section.fahrzeuge {
	min-height: clamp(260px, 30vw, 430px);
}

/* Standort + Karte */
.finden-standort {
	padding-block: 150px 0;
}

.finden-standort .adresse {
	display: flex;
	justify-content: center;
	padding-bottom: 80px;
}

.finden-standort .adresse > .wp-block-group__inner-container,
.finden-standort .adresse:not(:has(> .wp-block-group__inner-container)) {
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.finden-standort .adresse::before {
	content: "";
	display: block;
	flex: 0 0 30px;
	width: 30px;
	height: 40px;
	margin-right: 1rem;
	background: url("../img/marker.svg") center / contain no-repeat;
}

.finden-standort .adresse p {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: var(--ahw-track);
}

.ahw-map {
	position: relative;
	/* Volle Fensterbreite, auch innerhalb des schmaleren Inhaltsbereichs. */
	width: 100vw;
	max-width: none;
	height: 580px;
	margin-inline: calc(50% - 50vw);
	background: var(--ahw-gray-light) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3e%3cpath d='M0 40h80M40 0v80' stroke='%23555' stroke-width='1'/%3e%3c/svg%3e");
}

.ahw-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.ahw-map__consent {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: 520px;
	margin: auto;
	padding: 20px;
	text-align: center;
}

.ahw-map__consent a {
	text-decoration: underline;
}

.ahw-map__load {
	padding: 0.75em 1.5em;
	border: 0;
	background: var(--ahw-gold);
	color: var(--ahw-white);
	font: 600 1rem var(--ahw-font);
	letter-spacing: 0.1rem;
	text-transform: uppercase;
	cursor: pointer;
}

@media (max-width: 767.98px) {
	.ahw-map {
		height: 420px;
	}
}

/* ---------- Kontakt (goldene Sektion, auf allen Seiten) ---------- */

.kontakt {
	padding: 100px var(--ahw-gutter);
	background: var(--ahw-gold);
	color: var(--ahw-white);
}

.kontakt__inner {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 2rem;
}

.kontakt-infos {
	font-size: 14px;
	letter-spacing: var(--ahw-track);
	text-transform: uppercase;
}

.kontakt-infos__label {
	margin-bottom: 1rem;
}

.ahw-hours {
	width: 100%;
	margin-bottom: 1rem;
	border-collapse: collapse;
}

.ahw-hours td {
	padding: 6px 7px;
	border: 1px solid var(--ahw-gray);
}

.kontakt-infos__address {
	margin: 0 0 1rem;
	font-style: normal;
}

.kontakt-infos__portals {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 2rem 1.5rem;
	margin: 3rem 0;
	padding: 0;
	list-style: none;
}

.kontakt-infos__portals img {
	display: block;
}

.portal--facebook img {
	width: 34px;
	height: 34px;
}

.kontakt-infos__logo img {
	display: block;
	width: 320px;
	max-width: 100%;
}

.kontakt-infos__legal .legal-menu {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.kontakt-infos__legal li {
	padding: 6px 7px;
	border: 1px solid var(--ahw-gray);
}

.kontakt-infos__legal li + li {
	border-left: 0;
}

.kontakt-formular__title {
	margin-bottom: 1rem;
	font-size: 18px;
	text-transform: uppercase;
}

.ahw-form .cf-field {
	display: flex;
	align-items: flex-start;
	margin: 10px 0;
	padding: 8px 5px;
	border-radius: 5px;
	background: var(--ahw-gold-dark);
	font-size: 14px;
}

.ahw-form .cf-field > label:first-child:not(:has(input)) {
	flex: 0 0 33.333%;
	padding: 5px 10px 0 0;
	text-align: right;
	letter-spacing: var(--ahw-track);
	text-transform: uppercase;
}

.ahw-form input[type="text"],
.ahw-form input[type="email"],
.ahw-form input[type="tel"],
.ahw-form textarea {
	flex: 1 1 auto;
	width: 100%;
	padding: 0.4rem;
	border: 0;
	border-radius: 0;
	background: var(--ahw-white);
	color: var(--ahw-text-dark);
	font: 1rem var(--ahw-font);
}

.ahw-form textarea {
	min-height: 180px;
	resize: vertical;
}

.ahw-form .cf-field--privacy label {
	display: flex;
	gap: 10px;
	letter-spacing: 0.1rem;
	text-transform: uppercase;
	line-height: 1.6;
}

.ahw-form .cf-field--privacy input {
	flex: 0 0 auto;
	margin-top: 4px;
}

.ahw-form .cf-field--privacy a {
	font-weight: 600;
	text-decoration: underline;
}

.ahw-form__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.kontakt-submit {
	text-align: right;
}

.kontakt-submit button {
	padding: 10px 16px;
	border: 0;
	background: var(--ahw-white);
	color: var(--ahw-gold);
	font: 600 20px/1.1 var(--ahw-font);
	letter-spacing: var(--ahw-track);
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.kontakt-submit button:hover {
	background: var(--ahw-gray);
	color: var(--ahw-white);
}

.ahw-form__notice {
	padding: 12px 15px;
	border-left: 5px solid var(--ahw-white);
	background: rgba(57, 57, 57, 0.85);
	font-weight: 600;
}

.ahw-form__notice.is-error {
	border-left-color: #ff6b6b;
}

@media (max-width: 991.98px) {
	.kontakt__inner {
		grid-template-columns: 1fr;
	}
	.kontakt-infos {
		order: 2;
		margin-top: 30px;
	}
	.ahw-form .cf-field {
		flex-direction: column;
	}
	.ahw-form .cf-field > label:first-child:not(:has(input)) {
		flex-basis: auto;
		padding: 0 0 5px;
		text-align: left;
	}
}

/* ---------- Fahrzeugliste ---------- */

.car-list-wrapper {
	padding: 20px var(--ahw-gutter) 80px;
}

.car-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 10px 20px;
	margin-bottom: 20px;
	padding: 15px 20px;
	background: var(--ahw-gold);
}

.car-filter label {
	display: flex;
	flex: 1 1 160px;
	flex-direction: column;
	gap: 4px;
	font-weight: 600;
	letter-spacing: 0.1rem;
	text-transform: uppercase;
	font-size: 0.85rem;
}

.car-filter select {
	width: 100%;
	padding: 8px;
	border: 0;
	background: var(--ahw-white);
	color: var(--ahw-text-dark);
	font: 1rem var(--ahw-font);
}

.car-filter button {
	flex: 0 0 auto;
	padding: 9px 22px;
	border: 2px solid var(--ahw-white);
	background: transparent;
	color: var(--ahw-white);
	font: 600 1rem var(--ahw-font);
	letter-spacing: var(--ahw-track);
	text-transform: uppercase;
	cursor: pointer;
}

.car-filter button:hover {
	background: var(--ahw-white);
	color: var(--ahw-gold);
}

.car-count,
.car-order-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	padding: 10px;
	background: var(--ahw-gold);
	font-weight: 600;
	text-transform: uppercase;
}

.car-count p,
.car-order-bar p {
	margin: 0;
	padding: 0 10px;
}

.car-order-bar {
	margin-bottom: 20px;
}

.car-order-bar ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: 0;
	padding: 0 10px;
	list-style: none;
	font-weight: 400;
	text-transform: none;
}

.car-order-bar a:hover,
.car-order-bar a.is-active {
	color: var(--ahw-text-dark);
}

.car-order-bar a.is-active {
	font-weight: 700;
}

.car-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 380px) {
	.car-grid {
		grid-template-columns: 1fr;
	}
}

.vehicle-card {
	background: var(--ahw-white);
	color: var(--ahw-text-dark);
}

.vehicle-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
}

.vehicle-card__media {
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #e9e9e9;
}

.vehicle-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
}

.vehicle-card__link:hover .vehicle-card__media img {
	transform: scale(1.04);
}

.vehicle-card__noimg {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 200px;
	color: #777;
	background: #e9e9e9;
}

.vehicle-card__badge {
	position: absolute;
	top: 12px;
	left: 0;
	padding: 4px 12px;
	background: var(--ahw-gray);
	color: var(--ahw-white);
	font-weight: 600;
	letter-spacing: 0.1rem;
	text-transform: uppercase;
	font-size: 0.8rem;
}

.vehicle-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 15px;
}

.vehicle-card__title {
	margin: 0 0 0.5rem;
	color: var(--ahw-gold);
	font-size: 1.05rem;
	letter-spacing: 0.1rem;
	text-transform: uppercase;
}

.vehicle-card__link:hover .vehicle-card__title {
	color: var(--ahw-text-dark);
}

.vehicle-card__price {
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
	font-weight: 700;
}

.vehicle-card__price small,
.car-detail__price small {
	display: block;
	font-size: 0.75rem;
	font-weight: 400;
	color: #666;
}

.vehicle-card__facts {
	margin: 0 0 1rem;
	color: #555;
	font-size: 0.9rem;
}

.vehicle-card__more {
	align-self: flex-start;
	margin-top: auto;
	padding: 8px 14px;
	background: var(--ahw-gold);
	color: var(--ahw-white);
	font-weight: 600;
	letter-spacing: 0.1rem;
	text-transform: uppercase;
	font-size: 0.85rem;
}

.car-empty {
	padding: 40px 20px;
	text-align: center;
}

.ahw-pagination ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
	margin: 50px 0 0;
	padding: 0;
	list-style: none;
	font-size: 2rem;
	font-weight: 600;
}

.ahw-pagination .current,
.ahw-pagination a:hover {
	color: var(--ahw-gold);
}

/* ---------- Fahrzeug-Detail ---------- */

.car-detail-wrapper {
	margin-block: 0 80px;
	padding: 20px;
	background: var(--ahw-white);
	color: var(--ahw-text-dark);
}

.car-detail-wrapper a {
	color: var(--ahw-gold);
}

.car-detail-wrapper .button {
	color: var(--ahw-white);
}

.car-detail-wrapper .button--outline {
	color: var(--ahw-gold);
	border-color: var(--ahw-gold);
}

.car-detail-wrapper .button:hover {
	background: var(--ahw-gray);
	border-color: var(--ahw-gray);
	color: var(--ahw-white);
}

.car-detail__back {
	font-weight: 600;
}

.car-detail {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	gap: 30px;
}

@media (max-width: 991.98px) {
	.car-detail {
		grid-template-columns: 1fr;
	}
}

.car-detail__stage {
	margin: 0;
	aspect-ratio: 4 / 3;
	background: #e9e9e9;
}

.car-detail__stage img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.car-detail__thumbs {
	display: grid;
	grid-auto-columns: 90px;
	grid-auto-flow: column;
	gap: 6px;
	margin: 6px 0 0;
	padding: 0 0 6px;
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
}

.car-detail__thumbs li {
	scroll-snap-align: start;
}

.car-detail__thumbs button {
	display: block;
	width: 100%;
	padding: 0;
	border: 2px solid transparent;
	background: none;
	aspect-ratio: 4 / 3;
	cursor: pointer;
}

.car-detail__thumbs button[aria-current="true"] {
	border-color: var(--ahw-gold);
}

.car-detail__thumbs img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.car-detail__title {
	color: var(--ahw-gold);
	font-size: 1.6rem;
	letter-spacing: 0.1rem;
	text-transform: uppercase;
}

.car-detail__status {
	display: inline-block;
	padding: 4px 12px;
	background: var(--ahw-gray);
	color: var(--ahw-white);
	font-weight: 600;
	text-transform: uppercase;
}

.car-detail__price {
	font-size: 2.2rem;
	font-weight: 700;
}

.car-detail__specs {
	width: 100%;
	margin-bottom: 1.5rem;
	border-collapse: collapse;
}

.car-detail__specs th,
.car-detail__specs td {
	padding: 8px 6px;
	border-bottom: 1px solid #e3e3e3;
	text-align: left;
	vertical-align: top;
}

.car-detail__specs th {
	width: 45%;
	font-weight: 600;
	color: #555;
}

.car-detail__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.car-detail__section {
	margin-top: 40px;
}

.car-detail__section h2 {
	color: var(--ahw-gold);
	font-size: 1.3rem;
	text-transform: uppercase;
}

.car-detail__features {
	columns: 3 220px;
	column-gap: 30px;
	padding-left: 1.2em;
}

.car-detail__features li {
	break-inside: avoid;
	margin-bottom: 4px;
}

.car-detail__legal {
	margin-top: 30px;
	color: #777;
	font-size: 0.85rem;
}

/* ---------- Rechtstexte / einfache Seiten ---------- */

.legal-content {
	padding-block: 50px;
}

.legal-content h2 {
	margin-top: 2rem;
	font-size: 1.6rem;
}

.legal-content h3 {
	margin-top: 1.5rem;
	font-size: 1.25rem;
}

.legal-content h4 {
	margin-top: 1rem;
	font-size: 1.05rem;
}

.legal-content a,
.entry-summary a {
	color: var(--ahw-gold);
	text-decoration: underline;
}

/* ---------- Nach oben ---------- */

.back-to-top {
	position: fixed;
	right: 20px;
	bottom: 90px;
	z-index: 1000;
	width: 50px;
	height: 50px;
	padding-top: 18px;
	background: var(--ahw-gray);
	box-shadow: 0 1px 9px rgba(0, 0, 0, 0.33);
	text-align: center;
}

.back-to-top[hidden] {
	display: none;
}

.back-to-top .arrow-up {
	display: inline-block;
	padding: 3px;
	border: solid var(--ahw-gold);
	border-width: 0 5px 5px 0;
	transform: rotate(-135deg);
}

/* Großansicht für Bildergalerien */
.ahw-lightbox {
	width: 100vw;
	max-width: 100vw;
	height: 100vh;
	max-height: 100vh;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(20, 20, 20, 0.94);
	color: var(--ahw-white);
}

.ahw-lightbox::backdrop {
	background: rgba(20, 20, 20, 0.94);
}

.ahw-lightbox__stage {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	margin: 0;
	padding: 50px 70px;
}

.ahw-lightbox__stage img {
	max-width: 100%;
	max-height: calc(100vh - 120px);
	object-fit: contain;
}

.ahw-lightbox__count {
	margin-top: 12px;
	font-size: 0.9rem;
	letter-spacing: 0.1rem;
	opacity: 0.8;
}

.ahw-lightbox__nav,
.ahw-lightbox__close {
	position: absolute;
	border: 0;
	background: var(--ahw-gold);
	color: var(--ahw-white);
	cursor: pointer;
}

.ahw-lightbox__nav {
	top: 50%;
	width: 48px;
	height: 48px;
	transform: translateY(-50%);
}

.ahw-lightbox__nav::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	border: solid var(--ahw-white);
	border-width: 0 3px 3px 0;
}

.ahw-lightbox__nav--prev { left: 12px; }
.ahw-lightbox__nav--prev::before { transform: translateX(2px) rotate(135deg); }
.ahw-lightbox__nav--next { right: 12px; }
.ahw-lightbox__nav--next::before { transform: translateX(-2px) rotate(-45deg); }

.ahw-lightbox__close {
	top: 12px;
	right: 12px;
	width: 44px;
	height: 44px;
	font-size: 28px;
	line-height: 1;
}

.ahw-lightbox__nav:hover,
.ahw-lightbox__close:hover {
	filter: brightness(110%);
}

@media (max-width: 600px) {
	.ahw-lightbox__stage { padding: 60px 10px; }
	.ahw-lightbox__nav { top: auto; bottom: 12px; transform: none; }
}
