/* Vanable – Farben aus den eigenen Pulverbeschichtungen */
@font-face { font-family: "Cond"; src: url(../fonts/Roboto-Condensed-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cond"; src: url(../fonts/Roboto-Condensed-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Slab"; src: url(../fonts/Roboto-Slab-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Slab"; src: url(../fonts/Roboto-Slab-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }


.soro-blog-card {
	background-color: #FFF;
}


:root {
	--steel: #2f3234;      /* RAL 7021 Schwarzgrau – Rahmen, Text */
	--steel-soft: #4a4e51;
	--tele: #cfd0cf;       /* RAL 7047 Telegrau – Linien, Flächen */
	--paper: #ebecea;
	--white: #fff;
	--rubin: #7b1e2c;      /* RAL 3032 Perlrubinrot – einziger Akzent */
	--muted: #5c6164;

	--cond: "Cond", "Arial Narrow", sans-serif;
	--slab: "Slab", Rockwell, Georgia, serif;

	--wrap: 76rem;
	--gutter: clamp(1rem, 3vw, 2rem);
	--r: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font: 400 1.0625rem/1.7 var(--slab);
	color: var(--steel);
	background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rubin); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--rubin); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--cond); font-weight: 700; line-height: 1.05; letter-spacing: -.005em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.6em; }
h3 { font-size: 1.375rem; margin-top: 1.4em; }
h4 { font-size: 1.125rem; margin-top: 1.2em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--white); padding: .5rem 1rem; }

/* ---------- Kopf ---------- */
.masthead { background: var(--steel); color: var(--white); position: sticky; top: 0; z-index: 20; }
.masthead__bar { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.brand { font: 700 1.75rem/1 var(--cond); color: var(--white); text-decoration: none; letter-spacing: .01em; }
.mainnav { margin-left: auto; }
.mainnav ul { list-style: none; margin: 0; padding: 0; }
.mainnav > ul { display: flex; gap: .25rem; }
.mainnav li { position: relative; }
.mainnav a, .mainnav .mod-menu__heading, .mainnav span.separator {
	display: block; padding: .5rem .75rem; font: 400 1.0625rem/1.2 var(--cond);
	color: var(--white); text-decoration: none; cursor: pointer;
}
.mainnav a:hover, .mainnav .current > a, .mainnav .active > a { color: var(--white); box-shadow: inset 0 -3px var(--rubin); }
.mainnav li ul {
	display: none; position: absolute; top: 100%; left: 0; min-width: 15rem;
	background: var(--white); padding: .5rem 0; box-shadow: 0 8px 24px rgb(47 50 52 / .18); border-top: 3px solid var(--rubin);
}
.mainnav li:hover > ul, .mainnav li:focus-within > ul { display: block; }
.mainnav li ul a { color: var(--steel); padding: .45rem 1rem; }
.mainnav li ul a:hover, .mainnav li ul .current > a { box-shadow: none; background: var(--paper); }
.callme {
	font: 700 1rem/1 var(--cond); color: var(--white); text-decoration: none; white-space: nowrap;
	border: 1px solid var(--steel-soft); padding: .55rem .8rem; border-radius: var(--r);
}
.callme:hover { background: var(--rubin); border-color: var(--rubin); }
.navtoggle { display: none; }

@media (max-width: 62rem) {
	.masthead__bar { flex-wrap: wrap; gap: .5rem 1rem; padding-block: .5rem; }
	.navtoggle {
		display: block; font: 700 1rem var(--cond); color: var(--white);
		background: none; border: 1px solid var(--steel-soft); border-radius: var(--r); padding: .5rem .8rem; cursor: pointer;
	}
	.callme { margin-left: auto; padding: .45rem .6rem; }
	.navtoggle { order: 2; }
	.mainnav { order: 3; display: none; flex-basis: 100%; margin: 0; padding-bottom: .75rem; }
	.mainnav.is-open { display: block; max-height: calc(100dvh - 4.5rem); overflow-y: auto; overscroll-behavior: contain; }
	.mainnav > ul { flex-direction: column; }
	.mainnav li ul { display: block; position: static; box-shadow: none; background: none; border: 0; padding: 0 0 0 1rem; }
	.mainnav li ul a { color: var(--tele); }
	.mainnav li ul a:hover, .mainnav li ul .current > a { background: none; color: var(--white); box-shadow: inset 3px 0 var(--rubin); }
}

/* ---------- Startseite: Fahrzeugwähler ---------- */
.hero {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	background: var(--white); border-bottom: 1px solid var(--tele);
}
.hero__text { padding: clamp(2rem, 5vw, 4.5rem) var(--gutter) 3rem max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.hero__title { font-size: clamp(2.75rem, 6.4vw, 5.5rem); line-height: .92; letter-spacing: -.02em; max-width: 9ch; margin-bottom: .35em; }
.hero__lead { max-width: 34rem; color: var(--steel-soft); }
.hero__lead p { margin: 0 0 1em; }
.hero__ask { font-size: 1.125rem; margin: 2.25rem 0 .5rem; color: var(--muted); font-weight: 400; }
.hero__media { position: relative; min-height: 22rem; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.picker { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2rem; border-top: 2px solid var(--steel); }
.picker li { break-inside: avoid; border-bottom: 1px solid var(--tele); }
.picker a {
	display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
	padding: .45rem .25rem; text-decoration: none; color: var(--steel);
}
.picker__name { font: 700 clamp(1.375rem, 2.2vw, 1.75rem)/1.15 var(--cond); }
.picker__count {
	display: none;
}
/** .picker__count { font: 400 .9375rem var(--slab); color: var(--muted); font-variant-numeric: tabular-nums; } **/
.picker a:hover, .picker a:focus-visible { background: var(--rubin); color: var(--white); outline: none; }
.picker a:hover .picker__count, .picker a:focus-visible .picker__count { color: var(--white); }

@media (max-width: 52rem) {
	.hero { grid-template-columns: 1fr; }
	.hero__media { order: -1; min-height: 0; aspect-ratio: 16 / 10; }
	.hero__text { padding: 2rem var(--gutter) 2.5rem; }
}
@media (max-width: 26rem) { .picker { columns: 1; } }

/* ---------- Seitenraster ---------- */
.page { padding-block: clamp(2rem, 5vw, 4rem); }
.page--aside { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 62rem) { .page--aside { grid-template-columns: 1fr; } }
/* Fahrzeug-Datenblatt braucht die volle Breite; der Herstellerlink oben ersetzt die Unternavigation */
.page--aside:has(.vehicle) { grid-template-columns: 1fr; }
.page--aside:has(.vehicle) .sidebar { display: none; }
.is-home .page { padding-block: 2.5rem 1rem; }
.is-home main h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); }

.prose { max-width: 42rem; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose img { border-radius: var(--r); margin-block: 1rem; }
.prose table { border-collapse: collapse; width: 100%; margin-block: 1rem; font-size: .9375rem; }
.prose td, .prose th { border-bottom: 1px solid var(--tele); padding: .4rem .5rem; text-align: left; vertical-align: top; }
.article .prose { max-width: 44rem; }

/* Galerie aus ehemaligen Widgetkit-Widgets / {gallery} */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .75rem; margin: 1.5rem 0; max-width: none; }
.gallery figure { margin: 0; }
.gallery a { display: block; }
.gallery img { margin: 0; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.gallery figcaption { font: 400 .9375rem/1.3 var(--cond); padding-top: .35rem; color: var(--steel-soft); }
.prose:has(.gallery) { max-width: none; }
.prose:has(.gallery) > :not(.gallery) { max-width: 44rem; }

/* YouTube erst nach Klick laden */
.yt { display: grid; place-items: center; aspect-ratio: 16 / 9; max-width: 44rem; margin: 1.5rem 0; background: var(--steel); color: var(--white);
	border: 0; border-radius: var(--r); font: 700 1.25rem var(--cond); cursor: pointer; width: 100%; text-align: center; padding: 1rem; }
.yt small { display: block; font: 400 .875rem/1.4 var(--slab); color: var(--tele); margin-top: .5rem; }
.yt:hover { background: var(--rubin); }
.yt-frame { width: 100%; max-width: 44rem; aspect-ratio: 16 / 9; border: 0; margin: 1.5rem 0; display: block; }

/* ---------- Sidebar ---------- */
.sidebar { font-size: .9375rem; }
.sidebar > * { margin-bottom: 2rem; }
.sidebar h2, .sidebar h3 { font-size: 1.25rem; margin: 0 0 .5rem; }
.sidebar ul { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--steel); }
.sidebar li a { display: block; padding: .4rem 0; border-bottom: 1px solid var(--tele); text-decoration: none; color: var(--steel); font-family: var(--cond); font-size: 1.0625rem; }
.sidebar li a:hover, .sidebar .current > a { color: var(--rubin); }
.sidebar li ul { border: 0; padding-left: 1rem; }
.sidebar .custom div[style] { padding: 1rem !important; background: var(--white) !important; color: var(--steel) !important; border-left: 3px solid var(--rubin); }
.sidebar .custom div[style] a { color: var(--rubin) !important; }

/* ---------- Hersteller & Modelle ---------- */
.makers__grid, .models { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.makers__grid a, .model a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--steel); background: var(--white); border-radius: var(--r); overflow: hidden; }
.makers__grid img, .model img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--tele); }
.makers__name, .model__name { font: 700 1.375rem/1.15 var(--cond); padding: .75rem 1rem 0; }
.makers__count, .model__sub { font-size: .9375rem; color: var(--muted); padding: .15rem 1rem 0; }
.model__price { margin-top: auto; padding: .75rem 1rem 1rem; font: 700 1.125rem var(--cond); color: var(--rubin); font-variant-numeric: tabular-nums; }
.makers__count { padding-bottom: 1rem; }
.makers__grid a:hover .makers__name, .model a:hover .model__name { color: var(--rubin); }
.models__text { grid-column: 1 / -1; }
.category__desc { margin-bottom: 1rem; }

/* ---------- Fahrzeug-Datenblatt ---------- */
.vehicle__maker { margin: 0 0 .25rem; font: 400 1.0625rem var(--cond); }
.vehicle__maker a { color: var(--muted); }
.vehicle h1 { max-width: 22ch; }
.vehicle__sub { margin: -.25rem 0 0; color: var(--muted); }
.vehicle__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 2rem; align-items: start; }
@media (max-width: 56rem) { .vehicle__grid { grid-template-columns: 1fr; } }
.vehicle__media { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; position: sticky; top: 5rem; }
@media (max-width: 56rem) { .vehicle__media { position: static; } }
.vehicle__media .lead { grid-column: 1 / -1; }
.vehicle__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.vehicle__sheet .prose { max-width: none; }

.prices { width: 100%; border-collapse: collapse; border-top: 2px solid var(--steel); font-size: 1rem; }
.prices th, .prices td { padding: .55rem 0; border-bottom: 1px solid var(--tele); vertical-align: baseline; }
.prices th { text-align: left; font-weight: 400; padding-right: 1rem; }
.prices td { text-align: right; white-space: nowrap; font: 700 1.125rem var(--cond); font-variant-numeric: tabular-nums; }
.prices--options td { font-weight: 400; color: var(--steel-soft); }

.offer { margin-top: 2.5rem; padding: 1.5rem; background: var(--steel); color: var(--white); border-radius: var(--r); }
.offer h2 { margin: 0 0 .5rem; }
.offer p { margin: 0 0 1rem; color: var(--tele); font-size: .9375rem; }
.offer .offer__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.button {
	display: inline-block; font: 700 1.0625rem/1 var(--cond); padding: .8rem 1.1rem; border-radius: var(--r);
	background: var(--rubin); color: var(--white); text-decoration: none; border: 1px solid var(--rubin);
}
.button:hover { background: #962638; border-color: #962638; }
.button--quiet { background: transparent; border-color: var(--steel-soft); }
.button--quiet:hover { background: var(--steel-soft); border-color: var(--steel-soft); }
.vehicle__note { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--tele); max-width: 46rem; }

/* ---------- Anfrageformular (com_contact) ---------- */
.inquiry { max-width: 42rem; margin: 2rem 0 3rem; padding: clamp(1.25rem, 3vw, 2rem); background: var(--white); border-top: 3px solid var(--steel); border-radius: var(--r); }
.inquiry__set { border: 0; margin: 0 0 1rem; padding: 0; display: grid; gap: 0 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.inquiry__set legend { font: 700 1.375rem var(--cond); padding: 1rem 0 .5rem; }
.inquiry .control-group { margin-bottom: 1rem; }
.inquiry .control-group:has(textarea), .inquiry .control-group:has([type=checkbox]) { grid-column: 1 / -1; }
.inquiry .control-label label { display: block; font: 700 1rem var(--cond); margin-bottom: .3rem; }
.inquiry .star, .inquiry .red { color: var(--rubin); }
/* Core-Felder setzen Bootstrap voraus: Modal-Hülle ausblenden, Screenreader-Klasse nachbilden */
.inquiry .joomla-modal { display: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.inquiry fieldset.checkboxes { border: 0; padding: 0; margin: 0; }
.inquiry .form-check { display: flex; gap: .5rem; align-items: flex-start; }
.inquiry .form-check [type=checkbox] { flex: none; margin: .3rem 0 0; }
/* Hinweis „* Benötigtes Feld": volle Breite, klein – sonst belegt er eine Rasterzelle */
.inquiry .field-spacer { grid-column: 1 / -1; margin-bottom: .75rem; }
.inquiry .field-spacer label { font: 400 .875rem var(--slab) !important; color: var(--muted); margin: 0; }
.inquiry input:not([type=checkbox]):not([type=hidden]), .inquiry select, .inquiry textarea {
	width: 100%; font: inherit; font-size: 1rem; color: var(--steel); background: var(--paper);
	border: 1px solid var(--tele); border-bottom: 2px solid var(--steel-soft); border-radius: var(--r); padding: .6rem .7rem;
}
.inquiry textarea { min-height: 9rem; }
.inquiry input:focus, .inquiry select:focus, .inquiry textarea:focus { outline: 3px solid var(--rubin); outline-offset: 0; background: var(--white); }
.inquiry [type=checkbox] { width: 1.15rem; height: 1.15rem; accent-color: var(--rubin); margin-right: .5rem; vertical-align: -.15rem; }
.inquiry .controls .form-check, .inquiry .form-check-label { font-size: .9375rem; }
.inquiry .form-control-feedback, .inquiry .invalid { color: var(--rubin); }
.inquiry .button { margin-top: .5rem; border: 0; cursor: pointer; }
.inquiry .control-group:has(input[type=hidden]:only-child) { display: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 46rem; }
.faq__item { border-bottom: 1px solid var(--tele); }
.faq__item:first-of-type { border-top: 2px solid var(--steel); margin-top: 1.5rem; }
.faq summary { cursor: pointer; list-style: none; padding: .9rem 2rem .9rem 0; font: 700 1.25rem/1.25 var(--cond); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .7rem; font-size: 1.5rem; color: var(--rubin); }
.faq details[open] summary::after { content: "–"; }
.faq .prose { padding-bottom: 1rem; }

/* ---------- Einstiege (bottom1) ---------- */
.bottom { background: var(--white); border-top: 1px solid var(--tele); padding-block: 3rem; }
.entries { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.entries a { display: block; text-decoration: none; color: var(--steel); }
.entries img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; border-radius: var(--r); margin-bottom: .75rem; }
.entries strong { display: block; font: 700 1.5rem/1.1 var(--cond); }
.entries span { color: var(--muted); font-size: .9375rem; }
.entries a:hover strong { color: var(--rubin); }
@media (max-width: 40rem) {
	.entries { grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; }
	.entries img { aspect-ratio: 1; margin-bottom: .5rem; }
	.entries strong { font-size: 1.1875rem; }
	.entries span { font-size: .8125rem; line-height: 1.45; display: block; }
}

/* ---------- Fuß ---------- */
.footer { background: var(--steel); color: var(--tele); font-size: .9375rem; padding-top: 3rem; }
.footer a { color: var(--white); }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 52rem) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 30rem) { .footer__grid { grid-template-columns: 1fr; } }
.footer h2, .footer h3 { color: var(--white); font-size: 1.25rem; margin: 0 0 .75rem; }
.footer p { margin: 0 0 .6em; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li a { text-decoration: none; display: inline-block; padding: .15rem 0; }
.footer li a:hover { text-decoration: underline; }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.5rem; margin-top: 2.5rem; border-top: 1px solid var(--steel-soft); }
.footer__social { display: flex; gap: 1.25rem; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.lightbox::backdrop { background: rgb(20 22 23 / .92); }
.lightbox figure { margin: 0; height: 100%; display: grid; place-items: center; align-content: center; padding: 3.5rem 4rem; }
.lightbox img { max-height: calc(100vh - 8rem); width: auto; object-fit: contain; }
.lightbox figcaption { color: var(--tele); font-family: var(--cond); margin-top: .5rem; text-align: center; }
.lightbox button { position: fixed; background: none; border: 0; color: var(--white); font: 400 2.75rem/1 var(--cond); cursor: pointer; padding: .5rem 1rem; }
.lightbox__close { top: .5rem; right: .5rem; }
.lightbox__prev { left: .25rem; top: 50%; translate: 0 -50%; }
.lightbox__next { right: .25rem; top: 50%; translate: 0 -50%; }
@media (max-width: 40rem) { .lightbox figure { padding: 3.5rem .5rem; } .lightbox__nav { top: auto; bottom: .5rem; translate: none; } }

/* ---------- Fehlerseite ---------- */
.is-error { min-height: 100vh; display: flex; flex-direction: column; }
.is-error .footer { margin-top: auto; padding-top: 0; }
.is-error .callme { margin-left: auto; }
.is-error .footer__base { margin-top: 0; border-top: 0; }
.errorpage { padding-block: clamp(3rem, 10vw, 7rem); width: 100%; }
.errorpage__code { font: 700 clamp(5rem, 18vw, 11rem)/.8 var(--cond); color: var(--tele); margin: 0 0 1.5rem; letter-spacing: -.03em; }
.errorpage h1 { max-width: 16ch; }
.errorpage__lead { max-width: 36rem; color: var(--steel-soft); }
.errorpage__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.button--light { background: transparent; color: var(--steel); border-color: var(--steel); }
.button--light:hover { background: var(--steel); color: var(--white); border-color: var(--steel); }
.errorpage__debug { margin-top: 3rem; padding: 1rem; background: var(--white); font-size: .8125rem; white-space: pre-wrap; }

/* Alte UIkit-Klassen aus Redaktionstexten ruhigstellen */
.uk-panel-title { font-size: 1.375rem; }
.pager ul { list-style: none; display: flex; gap: .5rem; padding: 0; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
