/* ============================================================
   Garage Gerstl — Layout, chrome & sections
   ============================================================ */

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--fs-body);
	font-weight: var(--fw-light);   /* Original: body Roboto 300 */
	line-height: var(--lh-body);
	color: var(--text-primary);
	background: var(--surface);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
b, strong { font-weight: var(--fw-bold); }   /* sonst löst `bolder` auf 300er-Body zu 400 auf */
h1, h2, h3, h4 { font-weight: var(--fw-bold); line-height: var(--lh-tight); }
button { font-family: inherit; }

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--yellow);
	color: var(--black);
	padding: 10px 16px;
	z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---- Container ---- */
.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

/* ---- Section rhythm ---- */
.section { padding-block: var(--section-py); }
.section--welcome { padding-block: calc(var(--section-py) + 8px); }
.section--news { background: var(--surface-2); }
.section--models { background: var(--surface-2); }
.section--hours { background: var(--surface-2); }
.section__actions { margin-top: 32px; text-align: center; }

/* ============================================================
   Header — Aufbau und Werte 1:1 aus dem Original-Template
   (`gerstl-template/index.php` #top, `css/template.css` 9422–9592).
   Klassen-Mapping siehe Kopf von header.php.
   ============================================================ */
.site-header {                    /* #top */
	width: 100%;
	display: flex;
	justify-content: space-between;
	position: relative;
	z-index: 100;
}

/* .logo1 — im Original 146px breit (30px Padding + 72px Signet + 30px + 14px
   gelbe Kante) und exakt so hoch wie die rechte Spalte (134px): das Signet
   ragt dort leicht in das untere Padding. Darum ist das Bild absolut gesetzt —
   es bestimmt die Höhe nicht mit, sondern der Rest des Headers. */
.site-header__logo {
	flex: 0 0 146px;
	position: relative;
	margin: 0;
	background: var(--white);
	border-right: 14px solid var(--yellow);
	box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.1);
}
.site-header__logo img {
	position: absolute;
	top: 25px;
	left: 30px;
	width: 72px;
	height: auto;
}

.site-header__right { width: 100%; }   /* .topright */

.site-header__address {           /* .adresse */
	background-color: var(--white);
	margin: 0;
	font-size: 90%;
	padding: 7px 60px 7px 0;
}
.site-header__address p {
	margin: 0;
	line-height: 1.5;              /* Original: body line-height */
	text-align: right;             /* Original: p.right */
	color: var(--ink-700);
}
.site-header__address a { color: inherit; text-decoration: none; }
.site-header__address a:hover { color: var(--ink); }

.site-header__bar {               /* .hauptmenuwrapper */
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	background: var(--white);
}

.site-header__name {              /* .logo2 */
	color: var(--ink);
	margin-left: 0;
	padding-left: 18px;
}
.site-header__name h2 {
	margin: 0;
	font-weight: var(--fw-bold);
	text-transform: uppercase;
	font-size: 35px;
	line-height: 1.1;
}

/* ---- Hauptmenü (.hauptmenu) ---- */
.site-nav { padding-right: 60px; }
.nav {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: right;
}
.nav__item {
	display: inline-block;
	position: relative;
}
.nav__link {
	display: inline-block;
	position: relative;
	padding: 10px 2px;
	margin: 0 10px;
	color: var(--ink-500);
	text-decoration: none;
	white-space: nowrap;
}
.nav__item:last-child .nav__link { margin-right: 0; padding-right: 0; }

/* Gelbe Unterstreichung, die aus der Mitte aufzieht */
.nav__link::before {
	content: " ";
	position: absolute;
	height: 2px;
	background: var(--yellow);
	left: 50%;
	right: 50%;
	bottom: 0;
	transition: all ease .5s;
}
.nav__item:hover > .nav__link::before,
.nav__item.is-current > .nav__link::before {
	left: 0;
	right: 0;
}
.nav__link:hover { color: inherit; }

/* Caret bei Menüpunkten mit Unterebene (Original: FontAwesome \f0d7 in Gelb) */
.nav__caret {
	display: inline-block;
	width: 0; height: 0;
	margin-left: 7px;
	vertical-align: middle;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid var(--yellow);
}

/* ---- Dropdown (ul.nav-child) ---- */
.nav__sub {
	position: absolute;
	top: 100%;
	left: 10px;
	padding: 15px 0 0;          /* 15px Brücke zwischen Link und Panel */
	margin: 0;
	list-style: none;
	min-width: 180px;
	font-size: 95%;
	font-weight: var(--fw-light);
	opacity: 0;
	pointer-events: none;
	transition: all ease .5s;
	z-index: 95;
}
.nav__item--has-children:hover > .nav__sub,
.nav__item--has-children:focus-within > .nav__sub {
	opacity: 1;
	pointer-events: all;
}
.nav__sub li {
	display: block;
	padding: 0;
	margin: 0;
	border-bottom: 1px solid var(--chrome-hover);
}
.nav__sub li:last-child { border: none; }
.nav__link--sub {
	display: block;
	margin: 0;
	padding: 5px 15px;
	background: var(--footer-bg);
	color: var(--band-fg);
	text-decoration: none;
	text-align: left;
	white-space: nowrap;
}
.nav__link--sub:hover,
.nav__sub li.is-current > .nav__link--sub { color: var(--footer-muted); background: var(--chrome-hover); }

/* ============================================================
   Mobile Leiste — Original: #mobile-menu (mod_aikon_animated_menu).
   Farben aus den Modul-Parametern: Balken var(--footer-bg), Panel var(--chrome-hover),
   Icon var(--white), weisses Logo 40px; Titel via logic.js, 19px weiss.
   ============================================================ */
.mobile-bar {
	display: none;
	position: fixed;
	top: 0; left: 0; right: 0;
	height: 60px;
	z-index: 200;
	background: var(--footer-bg);
	align-items: center;
	padding: 0 10px;
}
.mobile-bar__logo { display: block; margin-left: 6px; }
.mobile-bar__logo img { height: 40px; width: auto; }
.mobile-bar__title {                   /* Original: h2.mobile-title, gemischte Schreibweise */
	margin: 0 10px 0 auto;
	color: var(--white);
	font-size: 19px;
	line-height: 1.15;
	font-weight: var(--fw-bold);
}

/* Hamburger (span.respotrigger) */
.nav-toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px; height: 44px;
	padding: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
}
.nav-toggle__bar {
	display: block;
	width: 24px; height: 2px;
	background: var(--white);
	margin: 0 auto;
	transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Panel unter der Leiste */
.mobile-menu {
	display: none;
	position: absolute;
	top: 60px; left: 0; right: 0;
	max-height: calc(100vh - 60px);
	overflow-y: auto;
	background: var(--chrome-hover);
	font-size: 14px;
	font-weight: var(--fw-regular);
}
.mobile-menu.is-open { display: block; }
.mnav { list-style: none; margin: 0; padding: 0; }
.mnav__item { border-bottom: 1px solid var(--footer-bg); }
.mnav__link {
	display: block;
	padding: 14px 20px;
	color: var(--white);
	text-decoration: none;
}
.mnav__item.is-current > .mnav__link { background: var(--chrome-hover); }
.mnav__sub { list-style: none; margin: 0; padding: 0; }
.mnav__link--sub {
	display: block;
	padding: 12px 20px 12px 36px;
	color: var(--band-fg);
	text-decoration: none;
	border-top: 1px solid var(--footer-bg);
}
.mnav__link--sub:hover { background: var(--chrome-hover); color: var(--white); }
.mobile-menu__actions {
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	border-top: 1px solid var(--footer-bg);
}
.mobile-menu__actions a { color: var(--band-fg); text-decoration: none; }
.mobile-menu .nav__caret { display: none; }

/* Umschaltpunkte wie im Original (responsive.css): #top bis 979px, darüber
   keine Mobile-Leiste. */
@media (max-width: 1199px) {
	.site-header__logo { flex-basis: 116px; }        /* Original: Padding 15px */
	.site-header__logo img { top: 15px; left: 15px; }
	.site-header__name h2 { font-size: 22px; }
	.nav__link { margin-left: 7px; margin-right: 7px; }
	.site-nav, .site-header__address { padding-right: 20px; }
}
@media (max-width: 979px) {
	body { padding-top: 60px; }
	.site-header { display: none; }
	.mobile-bar { display: flex; }
}


/* Hero slider — siehe assets/css/slider.css (1:1 aus dem Original-Modul). */

/* ============================================================
   Welcome
   ============================================================ */
.welcome--center { max-width: 820px; margin-inline: auto; text-align: center; }
.welcome__text {
	font-family: var(--font-serif);   /* = Markenschrift; Original nutzte hier Noto Serif SC */
	font-weight: 500;
	font-size: var(--fs-lead);
	line-height: 1.5;
	color: var(--ink-700);
}
.welcome__text p { margin: 0 0 0.6em; }

/* ============================================================
   News grid / cards
   ============================================================ */
.news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}
.news-card {
	background: var(--white);
	border: var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.news-card:hover { box-shadow: var(--shadow-raised); transform: translateY(-3px); }
.news-card__link { display: block; text-decoration: none; color: inherit; height: 100%; }
.news-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-3); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: 20px 22px 24px; }
.news-card__date { font-size: 0.8rem; color: var(--ink-300); text-transform: uppercase; letter-spacing: 0.04em; }
.news-card__title { font-size: var(--fs-h3); margin: 8px 0 10px; color: var(--ink); }
.news-card__excerpt { margin: 0 0 14px; color: var(--ink-500); font-size: 0.95rem; }
.news-card__more { font-weight: var(--fw-medium); color: var(--ink); border-bottom: 2px solid var(--yellow); padding-bottom: 2px; }

/* ============================================================
   Model grid
   ============================================================ */
.model-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.model-tile {
	display: block;
	background: var(--white);
	border: var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	text-decoration: none;
	color: var(--ink);
	transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
a.model-tile:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.model-tile__media { aspect-ratio: 4 / 3; background: var(--surface-3); }
.model-tile__media img { width: 100%; height: 100%; object-fit: cover; }
.model-tile__name { display: block; padding: 14px 16px; font-weight: var(--fw-medium); text-align: center; }

/* ============================================================
   Team
   ============================================================ */
.team-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.team-card {
	background: var(--white);
	border: var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	text-align: center;
}
.team-card__media { aspect-ratio: 4 / 5; background: var(--surface-3); }
.team-card__media img { width: 100%; height: 100%; object-fit: cover; }
.team-card__media--placeholder {
	display: flex; align-items: center; justify-content: center;
	background: var(--ink); color: var(--yellow);
	font-size: 3rem; font-weight: var(--fw-bold);
}
.team-card__body { padding: 20px; }
.team-card__name { font-size: var(--fs-h3); margin: 0 0 4px; }
.team-card__role { margin: 0 0 8px; color: var(--ink-500); font-weight: var(--fw-medium); }
.team-card__note { margin: 0 0 8px; color: var(--ink-300); font-style: italic; font-size: 0.9rem; }
.team-card__mail { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 2px; font-size: 0.9rem; }

/* ============================================================
   Gallery
   ============================================================ */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}
/* Optionaler Button über dem Raster (Original „Angebote": „Aktuelle Angebote"). */
.gallery-cta { margin: -14px 0 26px; text-align: center; }
.gallery-item {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--surface-3);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }

/* Breitbild-Variante für Fahrzeugbilder (Seite „Angebote").
   Guidelines S. 26: Container in empfohlener Grösse, Platz zwischen den
   Fahrzeugbildern, weisser Hintergrund im ganzen Bereich. Die offiziellen
   Motive liegen in 16:9 vor — ein quadratischer Zuschnitt würde sie
   anschneiden. Grosszügigere Abstände lassen die unterschiedlichen
   Kampagnen-Hintergründe zudem als gesetzt statt zufällig wirken. */
.gallery-grid--wide {
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}
.gallery-grid--wide .gallery-item {
	aspect-ratio: 16 / 9;
	background: var(--white);
}

/* Lightbox */
.lightbox {
	position: fixed; inset: 0;
	background: rgba(0,0,0,0.9);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	padding: 30px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; border-radius: var(--radius); }
.lightbox__close, .lightbox__nav {
	position: absolute;
	background: rgba(255,255,255,0.12);
	color: #fff; border: 0; cursor: pointer;
	width: 48px; height: 48px; font-size: 26px; line-height: 1;
	display: flex; align-items: center; justify-content: center;
}
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--yellow); color: #000; }

/* ============================================================
   Image + Text
   ============================================================ */
.image-text {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}
.image-text--img-left .image-text__media { order: -1; }
.image-text__media img { width: 100%; border-radius: var(--radius-lg); }
.image-text__body .btn { margin-top: 20px; }

/* ============================================================
   Opening hours
   ============================================================ */
.hours-panel {
	max-width: 560px;
	margin-inline: auto;
	text-align: center;
	background: var(--white);
	border: var(--border);
	border-top: 4px solid var(--yellow);
	border-radius: var(--radius-lg);
	padding: 36px 40px;
	box-shadow: var(--shadow-card);
}
.hours-list { margin: 20px 0 0; }
.hours-list__row {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding: 10px 0;
	border-bottom: 1px dashed var(--line);
}
.hours-list__row:last-child { border-bottom: 0; }
.hours-list dt { font-weight: var(--fw-medium); color: var(--ink); }
.hours-list dd { margin: 0; color: var(--ink-500); }
.hours-note { margin-top: 16px; color: var(--ink-300); font-size: 0.9rem; }

/* ============================================================
   Occasionen (autolina)
   ============================================================ */
.section--occasionen__intro { max-width: 720px; margin: 0 auto 28px; text-align: center; }
.autolina-embed iframe { display: block; width: 100%; border: 0; }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: 40px;
	align-items: start;
}
.contact-card {
	background: var(--ink);
	color: #fff;
	border-radius: var(--radius-lg);
	padding: 30px 32px;
	border-top: 4px solid var(--yellow);
}
.contact-card__name { margin: 0 0 12px; font-size: var(--fs-h3); }
.contact-card__address { font-style: normal; line-height: var(--lh-body); color: rgba(255,255,255,0.82); }
.contact-card__list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.contact-card__list a { color: var(--yellow); text-decoration: none; }
.contact-card__list a:hover { text-decoration: underline; }
.contact-map { margin-top: 40px; border-radius: var(--radius-lg); overflow: hidden; border: var(--border); }
.contact-map iframe { display: block; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { background: var(--yellow); }
.cta-band__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-block: 26px;
	flex-wrap: wrap;
}
.cta-band__text { margin: 0; font-size: var(--fs-h3); font-weight: var(--fw-bold); color: var(--black); }

/* ============================================================
   Kopfbild — Original `#header > .custom` (`css/template.css` 9595–9660,
   `css/responsive.css` 991/979/767). Werte unverändert übernommen:
   50vh hoch, Bild `cover`/`center`, Titel rechts mittig, weiss 3vw/300 mit
   Schlagschatten und gelbem 3px-Strich darüber, Verlauf über dem rechten
   Fünftel. Welche Seite ein Band hat, steht in inc/layout.php.
   ============================================================ */
.page-header-image {
	margin-top: -23px;                 /* #header */
	height: 50vh;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding-right: 3.2vw;
	position: relative;
}
.page-header-image::before {           /* Verlauf rechts, damit der Titel trägt */
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 20%;
	z-index: 1;
	background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 100%);
}
.page-header-image__title {
	position: relative;
	z-index: 2;
	margin: 0;
	padding-top: 25px;
	color: var(--white);
	font-size: 3vw;
	line-height: 1.2;
	font-weight: var(--fw-light);
	text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}
.page-header-image__title::before {     /* gelber Strich über dem Titel */
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	display: block;
	width: 7vh;
	min-width: 58px;
	height: 3px;
	background: var(--yellow);
}

/* ============================================================
   Unterseiten — zweispaltiger Aufbau 1:1 aus dem Original
   (`gerstl-template/index.php` #content, `css/template.css` 9668–9712,
   `css/responsive.css` 991/767). Klassen-Mapping siehe inc/layout.php.

     #content.maincontent .. .page-shell         Flex-Zeile
     ├─ .content-inner ..... .page-shell__main   grauer Textkasten, 75%
     └─ #sidebar ........... .page-shell__aside  weisse Spalte, 25%

   Zwei bewusste Abweichungen (siehe HERKUNFT.md):
   1. Der Hochzug `.sidebar-page .content-inner { margin-top:-90px }` des
      Originals gilt hier nur mit Kopfbild (`.page-shell--header`) — sonst
      verschwände der Seitentitel hinter dem Header.
   2. Ohne Seitenleiste bleibt im Original ein leerer weisser 25%-Streifen
      stehen; hier läuft der Textkasten dann über die volle Breite.
   ============================================================ */
.page-shell {
	display: flex;
	justify-content: flex-start;
	align-items: stretch;
	position: relative;
	z-index: 3;
}
.page-shell__main {                    /* .content-inner */
	width: 100%;
	background: var(--content-bg);
	padding: 70px 10% 80px;
}
.page-shell--sidebar .page-shell__main { width: 75%; }
/* Original: `.sidebar-page .content-inner { margin-top:-90px }` — der graue
   Kasten schiebt sich über den unteren Rand des Kopfbilds. */
.page-shell--header.page-shell--sidebar .page-shell__main { margin-top: -90px; }
.page-shell__aside {                   /* #sidebar */
	width: 25%;
	background: var(--white);
	padding: 50px 40px 0;
}

/* Titel- und Modulüberschrift teilen sich im Original eine Regel
   (`.page-header h2, .moduletable > h3`): Versalien, 90%, gelber Strich. */
.rule-title {
	position: relative;
	margin: 0 0 40px;
	padding-left: 40px;
	font-size: 90%;
	font-weight: var(--fw-regular);
	line-height: var(--lh-snug);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink);
}
.rule-title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	width: 25px;
	height: 2px;
	background: var(--yellow);
}

/* ---- Seitenleisten-Kästen (.moduletable) ---- */
.sidebar-module { margin-bottom: 70px; }
.sidebar-module__title { margin-bottom: 15px; }
.sidebar-module p { margin: 0 0 1em; }
.sidebar-module__note { color: var(--ink-700); }
.sidebar-module a { color: inherit; text-decoration: none; }
.sidebar-module a:hover { color: var(--ink); text-decoration: underline; }

.sidebar-hours { list-style: none; margin: 0 0 1em; padding: 0; }
.sidebar-hours li { margin-bottom: 7px; line-height: 1.35; }
.sidebar-hours__day { display: block; font-weight: var(--fw-medium); }
.sidebar-hours__time { display: block; color: var(--ink-500); }

/* Untermenü — Original `#sidebar li` / `#sidebar li a` */
.sidebar-menu { list-style: none; margin: 0; padding: 0; }
.sidebar-menu li {
	display: block;
	width: 100%;
	line-height: 1.2;
	border-bottom: 1px solid var(--sidebar-line);
	margin-bottom: 5px;
}
.sidebar-menu a { display: block; padding: 5px 0; text-decoration: none; }
.sidebar-menu a::before {
	content: "";
	display: inline-block;
	width: 0;
	height: 2px;
	margin-top: 10px;
	background: var(--yellow);
	vertical-align: text-top;
	transition: width var(--dur) var(--ease), margin-right var(--dur) var(--ease);
}
.sidebar-menu a:hover::before,
.sidebar-menu li.is-current a::before { width: 10px; margin-right: 4px; }
.sidebar-menu li.is-current a { color: var(--chrome-hover); font-weight: var(--fw-medium); }

/* ---- Sektionen laufen in der Spalte statt als volle Bänder ---- */
.page-shell__main .section { padding-block: 0; }
.page-shell__main .section + .section { padding-block-start: 50px; }
.page-shell__main .container { max-width: none; margin-inline: 0; padding-inline: 0; }
.page-shell__main .section--news,
.page-shell__main .section--models,
.page-shell__main .section--hours { background: transparent; }
.page-shell__main .section-intro--center,
.page-shell__main .welcome--center,
.page-shell__main .service-finance__heading,
.page-shell__main .section__actions,
.page-shell__main .gallery-cta { text-align: left; }
.page-shell__main .welcome--center,
.page-shell__main .hours-panel,
.page-shell__main .section--occasionen__intro { max-width: none; margin-inline: 0; }
.page-shell__main .single-news__body { max-width: none; }

@media (max-width: 991px) {
	.page-shell__main { padding: 20px 20px 40px; }
	.page-shell__aside { width: 35%; padding: 20px; }
	.page-shell--sidebar .page-shell__main { width: 65%; }
	.rule-title { margin-bottom: 20px; }
	/* Original 991: Titel 25px/10px, Hochzug nur noch -40px. */
	.page-header-image__title { font-size: 25px; padding-top: 10px; }
	.page-header-image__title::before { width: 58px; }
	.page-shell--header.page-shell--sidebar .page-shell__main { margin-top: -40px; }
}
@media (max-width: 979px) {
	/* Original 979: die Mobile-Leiste übernimmt, kein Hochzug mehr. */
	.page-header-image { margin-top: 0; }
}
@media (max-width: 767px) {
	.page-shell { display: block; }
	.page-shell__main,
	.page-shell--sidebar .page-shell__main,
	.page-shell__aside { width: 100%; }
	.sidebar-module { margin-bottom: 20px; }
	.page-header-image { height: 30vh; }   /* Original 767 */
}

/* ============================================================
   Page head (news-Detail-Meta)
   ============================================================ */
.single-news__meta { margin: 0 0 24px; color: var(--ink-500); font-size: 0.9rem; }
.single-news__back { display: inline-block; margin-right: 12px; color: var(--ink); text-decoration: none; font-weight: var(--fw-medium); border-bottom: 2px solid var(--yellow); }
.single-news__date { display: inline-block; }

/* ---- Single news ---- */
.single-news__media { margin: 0 0 30px; border-radius: var(--radius-lg); overflow: hidden; }
.single-news__media img { width: 100%; }
.single-news__nav {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 48px;
	padding-top: 24px;
	border-top: var(--border);
	font-weight: var(--fw-medium);
}
.single-news__nav a { color: var(--ink); text-decoration: none; }
.single-news__nav a:hover { color: var(--ink); border-bottom: 2px solid var(--yellow); }

/* ---- Pagination ---- */
.pagination { margin-top: 44px; text-align: center; }
.pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	margin: 0 3px;
	border: var(--border);
	border-radius: var(--radius);
	text-decoration: none;
	color: var(--ink);
}
.pagination .page-numbers.current { background: var(--yellow); border-color: var(--yellow); }
.pagination .page-numbers:hover { border-color: var(--yellow); }

/* ============================================================
   Footer — 1:1 aus dem Original (`#footer` in template.css)
   ============================================================ */
.site-footer {
	width: 100%;
	display: flex;
	justify-content: space-between;
	padding: 35px 10%;
	background: var(--footer-bg);
	color: var(--footer-fg);
	border-bottom: 5px solid var(--yellow);
}
.site-footer a { color: var(--footer-fg); text-decoration: none; }
.site-footer a:hover { color: var(--footer-muted); }
.site-footer p { margin: 0 0 1rem; }

/* Spalte 1: Firmenname + weisses Renault-Emblem */
.site-footer__name {
	margin: 0 0 0.5rem;
	font-weight: var(--fw-bold);
	font-size: 35px;          /* Original: #footer h2 = .logo2 h2 */
	line-height: 1.1;
	text-transform: uppercase;
}
.site-footer__logo img { width: 70px; height: auto; }

/* Spalte 2: Menü in Grossbuchstaben */
.site-footer__menu { margin: 0; padding: 0; list-style: none; }
.site-footer__menu li { margin-bottom: 7px; }
.site-footer__menu a {
	color: var(--footer-muted);
	text-transform: uppercase;
	font-weight: var(--fw-light);
}
.site-footer__menu a:hover { color: var(--footer-fg); }

/* Spalte 3: Adresse + Impressum | Datenschutz */
.site-footer__legal { margin: 0; }

/* Breakpoints wie im Original (responsive.css), nicht wie im übrigen Theme */
@media (max-width: 1199px) {
	.site-footer__name { font-size: 22px; }
}
@media (max-width: 991px) {
	.site-footer { padding: 20px; }
}
@media (max-width: 767px) {
	.site-footer { flex-wrap: wrap; }
	.site-footer__col { padding-left: 10px; padding-right: 10px; }
	.site-footer__logo img { max-width: 150px; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
	.news-grid { grid-template-columns: repeat(2, 1fr); }
	.model-grid { grid-template-columns: repeat(3, 1fr); }
	.gallery-grid { grid-template-columns: repeat(3, 1fr); }
	.gallery-grid--wide { grid-template-columns: repeat(2, 1fr); gap: 20px; }
	.team-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
	:root { --fs-h1: 2rem; --fs-h2: 1.65rem; --fs-display: 2rem; --section-py: var(--section-py-sm); }
	/* Header: Umschaltung auf die Mobile-Leiste passiert bei 979px (Original). */
	.image-text { grid-template-columns: 1fr; gap: 24px; }
	.image-text--img-left .image-text__media { order: 0; }
	.contact-grid { grid-template-columns: 1fr; gap: 24px; }
	.hero-slider__caption { text-align: center; }
	.hero-slider__overlay { bottom: auto; top: 42%; }
}

@media (max-width: 620px) {
	.news-grid { grid-template-columns: 1fr; }
	.model-grid { grid-template-columns: repeat(2, 1fr); }
	.gallery-grid { grid-template-columns: repeat(2, 1fr); }
	/* Fahrzeuge einspaltig — bei zwei Spalten wäre auf dem Natel kaum noch
	   etwas vom Auto zu erkennen. */
	.gallery-grid--wide { grid-template-columns: 1fr; gap: 16px; }
	.team-grid { grid-template-columns: 1fr; }
	.hero-slide__photo { aspect-ratio: 3 / 2; }
	.hero-slider__arrow { width: 40px; height: 40px; font-size: 22px; }
	.hero-slider__accent { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hero-slide { transition: none; }
	* { scroll-behavior: auto; }
}

/* ============================================================
   Kurz & knapp: Über uns — Werte 1:1 aus dem Original `#banner-bottom`
   (`css/template.css` 9716–9772, `css/responsive.css` 1199/979/767).
   Vollbreites Band: linke Hälfte Bild (cover), rechte Hälfte Panel var(--footer-bg).
   Im Original setzt `js/logic.js` das Bild-Div — hier steht es direkt im Markup.
   ============================================================ */
.section--about-short {
	display: flex;
	align-items: stretch;
	background: var(--band-bg);
	color: var(--band-fg);
	line-height: 1.5;             /* Original: body line-height */
	overflow: hidden;
}
.about-short__media {
	flex: 1;
	background-size: cover;
	background-position: center;
}
.about-short__panel { flex: 1; }
/* Padding sitzt im Inneren — die 10% beziehen sich so wie im Original
   (`.custom` in `.moduletable`) auf die Panel-Breite, nicht auf das ganze Band. */
.about-short__inner { padding: 60px 10% 20px; }
.about-short__heading {
	font-size: 1.75rem;           /* 28px — Original h3 */
	line-height: 1.2;
	font-weight: var(--fw-medium);
	text-transform: uppercase;
	color: var(--white);
	margin: 0 0 30px;
}
.about-short__title {
	font-size: 1.25rem;           /* 20px — Original h5 */
	line-height: 1.2;
	font-weight: var(--fw-medium);
	color: var(--white);
	margin: 0 0 8px;
}
.about-short__row {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	margin-bottom: 50px;          /* Original: .default-margin */
}
.about-short__col { width: 50%; }
.about-short__col--first { margin-right: 15%; }   /* Original: .leftadditional */
.about-short__list { list-style: none; margin: 0 0 16px; padding: 0; }
.about-short__list li { margin-bottom: 7px; }

/* Modellliste — Guidelines S. 16: Modellbezeichnungen in Fettschrift und
   Grossbuchstaben. Die Grossschreibung steckt in den Daten (sie muss mit
   renault.ch übereinstimmen), hier kommt nur das Gewicht dazu. */
.about-short__list--models li { font-weight: var(--fw-bold); }

/* Kategoriezeile („Personenwagen" / „Nutzfahrzeuge", Guidelines S. 55).
   Bewusst zurückhaltend, damit sie die Modellnamen nicht überstimmt. */
.about-short__models-cat {
	font-size: 0.8125rem;
	font-weight: var(--fw-regular);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--yellow);
	margin-top: 4px;
	margin-bottom: 10px;
}
.about-short__list--models li + .about-short__models-cat { margin-top: 22px; }
.about-short__day { display: block; }
.about-short__contact { margin: 0; }
.section--about-short a { color: inherit; text-decoration: none; }
.section--about-short a:hover,
.section--about-short a:focus-visible { color: var(--white); text-decoration: underline; }

/* ============================================================
   Service & Finanzierung — Link-Karten
   ============================================================ */
.service-finance__heading { text-align: center; margin-bottom: 36px; }
.service-finance__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
	background: var(--white);
	border: var(--border);
	border-top: 4px solid var(--yellow);
	border-radius: var(--radius-lg);
	padding: 28px 26px;
	text-align: center;
	box-shadow: var(--shadow-card);
}
.service-card__title { font-size: var(--fs-h3); margin: 0 0 14px; color: var(--ink); }
.service-card__link {
	display: inline-block;
	font-weight: var(--fw-medium);
	color: var(--ink);
	text-decoration: none;
	border-bottom: 2px solid var(--yellow);
	padding-bottom: 2px;
}
.service-card__link:hover { color: var(--yellow-600); }

@media (max-width: 900px) {
	.service-finance__grid { grid-template-columns: 1fr; }
}

/* Breakpoints des Originals (responsive.css): Panel wird breiter, dann gestapelt. */
@media (max-width: 1199px) {
	.about-short__panel { flex: 2; }
	.about-short__inner { padding: 40px 30px 20px; }
}
@media (max-width: 767px) {
	.section--about-short { display: block; }
	.about-short__media { height: 200px; }   /* Original: .banner-bottom-image */
	.about-short__inner { padding: 36px var(--gutter) 24px; }
	.about-short__row { margin-bottom: 20px; }
}
@media (max-width: 560px) {
	.about-short__row { display: block; }
	.about-short__col { width: auto; }
	.about-short__col--first { margin-right: 0; margin-bottom: 24px; }
}

/* ============================================================
   Stellen-Band — gelbes Vollbreiten-Band unter dem Slider.
   Im Original ein gelber Streifen mit reinen Textlinks; hier als
   Karten-Raster (weisse Karten auf Gelb), sonst gleiche Position.
   ============================================================ */
.jobs-band {
	background: var(--yellow);
	padding-block: 48px;
}
.jobs-band__head { margin-bottom: 26px; }
.jobs-band__eyebrow { color: rgba(0, 0, 0, 0.6); }
.jobs-band__eyebrow::after { background: var(--black); }
.jobs-band__heading {
	margin: 0;
	font-size: var(--fs-h2);
	font-weight: var(--fw-bold);
	line-height: var(--lh-snug);
	color: var(--black);
}

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

.job-card {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	height: 100%;
	/* Damit eine einzelne Stelle nicht über die ganze Bandbreite gezogen wird. */
	max-width: 640px;
	padding: 22px 24px;
	background: var(--white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-card);
	color: var(--ink);
	text-decoration: none;
	transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
a.job-card:hover,
a.job-card:focus-visible {
	transform: translateY(-3px);
	box-shadow: var(--shadow-raised);
}
a.job-card:focus-visible {
	outline: 3px solid var(--black);
	outline-offset: 3px;
}

.job-card__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: var(--radius);
	background: var(--yellow-soft);
	color: var(--ink);
	transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
a.job-card:hover .job-card__icon,
a.job-card:focus-visible .job-card__icon {
	background: var(--black);
	color: var(--yellow);
}

.job-card__body { min-width: 0; }
.job-card__title {
	display: block;
	font-size: var(--fs-h3);
	font-weight: var(--fw-medium);
	line-height: var(--lh-snug);
	color: var(--ink);
}
.job-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	font-size: 0.9rem;
	color: var(--ink-500);
}
.job-card__badge {
	padding: 2px 9px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: var(--fw-medium);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-700);
	white-space: nowrap;
}

@media (max-width: 620px) {
	.jobs-band { padding-block: 34px; }
	.jobs-grid { grid-template-columns: 1fr; }
	.job-card { padding: 18px 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.job-card { transition: none; }
	a.job-card:hover,
	a.job-card:focus-visible { transform: none; }
}
