/*
 * JAC Schweiz Midnight Tag (V4) – «Midnight» auf weissem Grund.
 * Lädt nach main.css von «JAC Schweiz»; Aufbau und Vorlagen bleiben, nur Farben, Schrift und Formen ändern.
 * Entscheide vom 20.11.2026 (design/grundlagen-midnight-tag.html): T1a weisser Grund, T2a weisse Kopfzeile,
 * T3a hellblauer Lichtschein, T4a schwarze Fusszeile. Wie «Midnight»: Roboto Bold, schräges Preisschild in
 * Intelligent Blue, eckige Knöpfe in Grossbuchstaben, VW-Band blau, drei Karten nebeneinander, Bühnen-Effekte nach BYD.
 *
 * Prinzip wie im CI-Theme: main.css arbeitet mit Variablen. Hier werden sie für hellen Grund umgedeutet
 * (--weiss = Textfarbe, --nacht = Seitengrund); Flächen mit dunklem oder blauem Grund setzen sie zurück.
 * Regel aus «JAC Schweiz»: Nichts Mitlaufendes (sticky/fixed) in denselben Bereich wie einen Rechtstext.
 */

/* ---------- Schrift: Roboto (Handbuch S. 18–19) ---------- */
@font-face { font-family: Roboto; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/roboto-300.woff) format("woff"); }
@font-face { font-family: Roboto; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/roboto-400.woff2) format("woff2"); }
@font-face { font-family: Roboto; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/roboto-500.woff2) format("woff2"); }
@font-face { font-family: Roboto; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/roboto-700.woff2) format("woff2"); }

/* ---------- Farben und Formen ---------- */
:root {
	--blau: #005F7F;              /* Intelligent Blue */
	--blau-tief: #004862;
	--mittelblau: #00A5CF;        /* Middle Blue: nur auf Schwarz (Fusszeile) */
	--schwarz: #1C1C1B;           /* Midnight Black */
	--grund: #F2F4F5;
	--schein: rgba(0, 165, 207, .22);
	--schein-0: rgba(0, 165, 207, 0);

	--nacht: #FFFFFF;             /* Seitengrund (T1a) */
	--flaeche: #FFFFFF;
	--flaeche-tief: var(--grund);
	--fuss: var(--schwarz);       /* T4a */
	--marke: var(--blau);
	--akzent: var(--blau);
	--hellblau: var(--blau);
	--leise: #55626B;
	--hell: #3B4650;
	--weiss: var(--schwarz);      /* Haupttext */
	--papier: #FFFFFF;
	--tinte: var(--schwarz);
	--tinte-leise: #55626B;
	--linie: rgba(28, 28, 27, .14);
	--linie-stark: rgba(28, 28, 27, .3);
	--r-etikett: 4px; /* Etiketten leicht gerundet, passend zu den Karten (Nutzer, 20.11.2026, Muster R1) */
	--r-karte: 8px; /* wie V1: Bilder und Karten gerundet (Nutzer, 20.11.2026) */
	--r-knopf: 0;
}

body { font-family: Roboto, "Helvetica Neue", Arial, sans-serif; font-weight: 400; }
:focus-visible { outline-color: var(--blau); } /* Rundung bleibt beim Fokus erhalten (seit Rundungen R1–R3) */
::selection { background: var(--blau); color: #fff; }

/* Titel: Roboto Bold statt Archivo Black */
h2, h3, .seitenkopf h1, .buehne__name, .karte__name, .schritte__titel, .station__jahr, .ueber-vw__satz, .newsletter h2,
.preis h3, .faq__eintrag summary, .weg b, .fuss__leitsatz, .partner-hinweis b { font-weight: 700; }
h2, .seitenkopf h1, .buehne__name, .schritte__titel, .newsletter h2, .ueber-vw__satz, .station__jahr { letter-spacing: -.015em; }
.buehne__satz b, .menue__link, .menue a { font-weight: 500; }

/* ---------- Dunkle und blaue Flächen: helle Schrift ---------- */
.hinweisleiste, .preisschild, .schritte__schild, .preis-a__tafel > div, .newsletter, .ueber-schweiz__zahlen > div:first-child,
.fuss, .zeitreise, .ueber-vw, .grossbild, .video__rahmen, .buehne__wahl button[aria-current="true"] {
	--weiss: #FFFFFF;
	--nacht: var(--schwarz);
	--hell: rgba(255, 255, 255, .9);
	--leise: rgba(255, 255, 255, .8);
	--hellblau: #FFFFFF;
	--linie: rgba(255, 255, 255, .22);
	--linie-stark: rgba(255, 255, 255, .55);
	--flaeche: rgba(255, 255, 255, .08);
	color: #fff;
}
.fuss, .zeitreise { --hellblau: var(--mittelblau); }
.ueber-vw { color: var(--schwarz); }
.hinweisleiste :focus-visible, .preisschild :focus-visible, .newsletter :focus-visible, .fuss :focus-visible, .zeitreise :focus-visible, .schritte__schild:focus-visible { outline-color: #fff; }

/* ---------- Knöpfe: eckig, Grossbuchstaben, Intelligent Blue ---------- */
.knopf { padding: 0 22px; border: 1px solid var(--blau); background: var(--blau); color: #fff; font-weight: 500; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; }
.knopf:hover { background: var(--blau-tief); border-color: var(--blau-tief); color: #fff; }
.knopf--rand { background: transparent; border-color: var(--blau); color: var(--blau); }
.knopf--rand:hover { background: var(--blau); color: #fff; }
.knopf .pfeil { display: none; }
.kopf__aktionen .knopf { padding-inline: 16px; font-size: .75rem; }
.newsletter .knopf, .fuss .knopf, .zeitreise .knopf { background: #fff; border-color: #fff; color: var(--schwarz); }
.newsletter__formular .knopf { background: var(--blau); border-color: var(--blau); color: #fff; }
.newsletter__formular .knopf:hover { background: var(--blau-tief); border-color: var(--blau-tief); }
.textlink { color: var(--blau); font-weight: 500; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; }
.textlink:hover { color: var(--blau-tief); }
.etikett { font-weight: 500; letter-spacing: .02em; }
.filter__knopf, .reiter__leiste button, .buehne__wahl button, .farbknopf, .nav-links .page-numbers { font-weight: 500; border-color: var(--linie-stark); color: var(--schwarz); }
.filter__knopf:hover, .farbknopf:hover { background: var(--grund); }
.filter__knopf[aria-pressed="true"], .reiter__leiste button[aria-selected="true"], .nav-links .current { background: var(--blau); border-color: var(--blau); color: #fff; }
.filter__knopf[aria-pressed="true"] span { color: rgba(255, 255, 255, .85); }
.farbknopf img { border-radius: 0; }

/* ---------- Kopf: VW-Band blau, weisse Zeile (T2a) ---------- */
.hinweisleiste { background: var(--blau); border-bottom: 0; font-weight: 400; font-size: .8125rem; }
.kopf { background: #fff; border-bottom: 1px solid var(--linie); }
.kopf__logo img { filter: none; }
.menue__link, .menue a { color: var(--schwarz); font-size: .875rem; letter-spacing: .06em; text-transform: uppercase; }
.menue__link:hover, .menue a:hover, .menue__link[aria-expanded="true"] { background: var(--grund); color: var(--blau); }
.untermenue { background: #fff; box-shadow: 0 16px 32px rgba(28, 28, 27, .12); }
.untermenue a { color: var(--schwarz); text-transform: none; letter-spacing: 0; }
.untermenue a:hover { background: var(--grund); color: var(--blau); }
.mega { background: #fff; box-shadow: 0 24px 48px rgba(28, 28, 27, .12); }
.mega__titel { font-weight: 500; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.mega__modell { color: var(--schwarz); }
.mega__modell:hover { background: var(--grund); color: var(--schwarz); }
.mega__modell b { text-transform: none; letter-spacing: 0; }

/* ---------- Bühne: hellblauer Lichtschein (T3a) und Kurve in Intelligent Blue ---------- */
.buehne { position: relative; background: radial-gradient(ellipse 52% 60% at 74% 62%, var(--schein) 0%, var(--schein-0) 70%) #fff; }
.buehne__bild img { filter: drop-shadow(0 26px 22px rgba(0, 0, 0, .22)); }
.buehne::before, .buehne::after { content: ""; position: absolute; bottom: 0; pointer-events: none; }
.buehne::before { left: 0; right: 600px; bottom: 23px; height: 2px; background: rgba(0, 95, 127, .45); }
.buehne::after { right: 0; width: 600px; height: 120px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 120'%3E%3Cpath d='M0 96H430C480 96 505 84 530 58L600-16' fill='none' stroke='%23005F7F' stroke-opacity='.45' stroke-width='2'/%3E%3C/svg%3E") no-repeat right bottom / 600px 120px; }
.buehne > * { position: relative; z-index: 1; }
.buehne__wahl button:hover { color: var(--blau); border-color: var(--blau); }
.buehne__wahl button[aria-current="true"] { background: var(--blau); border-color: var(--blau); color: #fff; }
.rundknopf { border-color: var(--linie-stark); color: var(--schwarz); }
.rundknopf:hover { background: var(--blau); border-color: var(--blau); color: #fff; }
.rundknopf:disabled { border-color: var(--linie); background: transparent; color: var(--schwarz); }
.etikett--gross { box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .35); }

/* Effekte nach dem Vorbild von BYD, wie in «Midnight»; ohne Skript bleibt alles sichtbar */
.buehne--karussell .buehne__bild img { transition: transform 1.1s var(--ease), opacity .9s var(--ease); }
.buehne--karussell:has([data-aktiv]) .buehne__folie:not([data-aktiv]) .buehne__bild img { opacity: 0; transform: scale(1.12) translateX(5%); }
.buehne--karussell .buehne__text { transition: opacity .8s var(--ease) .2s, transform .8s var(--ease) .2s; }
.buehne--karussell:has([data-aktiv]) .buehne__folie:not([data-aktiv]) .buehne__text { opacity: 0; transform: translateY(18px); transition-delay: 0s; }
.buehne--karussell .preisschild--schraeg { transition: transform .9s var(--ease) .35s; }
.buehne--karussell:has([data-aktiv]) .buehne__folie:not([data-aktiv]) .preisschild--schraeg { transform: rotate(0deg); transition-delay: 0s; }
.rundknopf:hover svg { animation: jac-schubs .9s ease-in-out infinite; }
[data-karussell-zurueck]:hover svg { animation-name: jac-schubs-links; }
@keyframes jac-schubs { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
@keyframes jac-schubs-links { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-3px); } }

/* ---------- Preisschild: schräg, eckig, Intelligent Blue ---------- */
.preisschild { border-radius: 0; }
.preisschild__zeile span { font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: .75rem; color: rgba(255, 255, 255, .92); }
.preisschild__zeile b { font-weight: 700; letter-spacing: -.01em; }
.preisschild--schraeg { border-radius: 0; box-shadow: 0 22px 44px -20px rgba(0, 0, 0, .45); }
.preisschild--schraeg .preisschild__zeile span { font-size: .8125rem; font-weight: 500; }
.preisschild--schraeg .preisschild__zeile b { letter-spacing: -.015em; }
.schritte__schild { border-radius: 0; box-shadow: 0 22px 44px -20px rgba(0, 0, 0, .45); }
.schritte__schild-klein { font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: .75rem; }
.schritte__schild b { font-weight: 700; letter-spacing: -.01em; }
.preis dd, .preis-a__tafel dd { font-weight: 700; letter-spacing: -.01em; }

/* ---------- Karten (drei nebeneinander) und Kennzahlen ---------- */
.kartenraster { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .kartenraster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .kartenraster { grid-template-columns: minmax(0, 1fr); } }
.karte { background: #fff; border-color: var(--linie); }
.karte:hover { border-color: var(--blau); box-shadow: 0 12px 28px -18px rgba(0, 0, 0, .35); }
.karte__name a { color: var(--schwarz); }
.karte__name a:hover { color: var(--blau); }
.partner-hinweis:hover { border-color: var(--blau); }
.kennzahlen dd { font-weight: 300; letter-spacing: -.01em; }
.kennzahlen dd small { font-weight: 500; }

/* ---------- Modellseite ---------- */
/* V5: Modellseite ohne Sprungleiste (Nutzer, 20.11.2026); Sprungziele wieder knapp unter dem Kopf */
.sprungleiste { display: none; }
html { scroll-padding-top: calc(96px + var(--hinweis)); }
.preis-a { background: radial-gradient(ellipse 60% 80% at 78% 55%, var(--schein) 0%, var(--schein-0) 70%) var(--grund); }
.preis-a__tafel { background: rgba(255, 255, 255, .4); box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .4); }
.preis-a__bild img { filter: drop-shadow(0 24px 22px rgba(0, 0, 0, .2)); }
.galerie__bild, .station__bild, .beitrag__bild { background: var(--grund); }
.energie__etikette { background: #fff; }
.technik td { font-weight: 500; }

/* Leasingrechner */
.leasing .jac-lr { --lr-line-strong: var(--linie-stark); }
.leasing .jac-lr-titel { font-weight: 700; letter-spacing: -.015em; }
.leasing .jac-lr__input { background: #fff; border-color: var(--linie-stark); }
.leasing .jac-lr input[type="range"]::-webkit-slider-thumb { border-color: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.leasing .jac-lr input[type="range"]::-moz-range-thumb { border-color: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.leasing .jac-lr__seg { background: #fff; }
.leasing .jac-lr__seg button { color: var(--schwarz); }
.leasing .jac-lr__seg button:hover { background: var(--grund); }
.leasing .jac-lr__seg button[aria-checked="true"] { background: var(--blau); color: #fff; }
.leasing .jac-lr__result { background: var(--grund); border-color: var(--linie); }
.leasing .jac-lr__rate-amount { font-weight: 700; letter-spacing: -.01em; }
.leasing .jac-lr .jac-lr__btn { background: var(--blau) !important; color: #fff !important; font-size: .8125rem !important; font-weight: 500 !important; letter-spacing: .06em !important; text-transform: uppercase !important; }
.leasing .jac-lr .jac-lr__btn .fusion-button-text { color: #fff !important; letter-spacing: .06em !important; text-transform: uppercase !important; }
.leasing .jac-lr .jac-lr__btn:hover { background: var(--blau-tief) !important; }
.leasing .jac-lr .jac-lr__btn--light { background: transparent !important; color: var(--blau) !important; box-shadow: inset 0 0 0 1px var(--blau) !important; }
.leasing .jac-lr .jac-lr__btn--light .fusion-button-text { color: var(--blau) !important; }
.leasing .jac-lr .jac-lr__btn--light:hover { background: var(--blau) !important; }
.leasing .jac-lr .jac-lr__btn--light:hover .fusion-button-text { color: #fff !important; }

/* ---------- Nächste Schritte, Fragen, Händler, Lesetexte ---------- */
.schritte { background: radial-gradient(ellipse 46% 70% at 26% 62%, var(--schein) 0%, var(--schein-0) 72%) #fff; }
.schritte__auto img { filter: drop-shadow(0 22px 22px rgba(0, 0, 0, .2)); }
.weg { border-bottom-color: var(--linie); }
.faq__zeichen { border-color: var(--linie-stark); }
.faq__eintrag[open] .faq__zeichen { color: #fff; }
.faq__eintrag summary:hover { color: var(--blau); }
.suchfeld { background: #fff; border-color: var(--linie-stark); }
.suchfeld:focus-within { border-color: var(--blau); }
.haendlerliste h2 a:hover, .haendlerliste h3 a:hover { color: var(--blau); }
.jac-block__leer { border-color: var(--linie-stark); }
.lesetext { background: var(--grund); }
.lesetext a { color: var(--blau); }
.lesetext .wp-element-button, .lesetext .wp-block-button__link { border-radius: 0; background: var(--blau); color: #fff; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: .8125rem; }
.video__rahmen { background: radial-gradient(ellipse 70% 70% at 50% 60%, var(--blau) 0%, var(--schwarz) 76%); }
.zeitreise { background: radial-gradient(ellipse 60% 55% at 20% 0%, rgba(0, 95, 127, .55) 0%, rgba(0, 95, 127, 0) 70%) var(--schwarz); }

/* ---------- Newsletter und Fusszeile (T4a schwarz) ---------- */
.newsletter { background: var(--blau); }
.newsletter__formular { background: #fff; }
.newsletter__formular input[type="email"] { color: var(--schwarz); }
.fuss__spalte h2 { font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: .75rem; }
.grossbild__zu { color: #fff; }

@media (max-width: 1100px) {
	.kopf__nav { background: #fff; }
	.kopf__haendler, .kopf__schalter { border-color: var(--linie-stark); color: var(--schwarz); }
	.kopf__haendler:hover { background: var(--blau); border-color: var(--blau); color: #fff; }
}
@media (max-width: 900px) {
	.mobilleiste { background: rgba(255, 255, 255, .96); border-top: 1px solid var(--linie); }
	.buehne { background: radial-gradient(ellipse 92% 36% at 50% 22%, var(--schein) 0%, var(--schein-0) 72%) #fff; }
	.schritte { background: radial-gradient(ellipse 90% 40% at 50% 30%, var(--schein) 0%, var(--schein-0) 72%) #fff; }
	.buehne::before { right: 300px; bottom: 11px; }
	.buehne::after { width: 300px; height: 60px; background-size: 300px 60px; }
}
@media (prefers-reduced-motion: reduce) { .rundknopf:hover svg { animation: none; } }

/* ---------- Modellkarussell der Startseite nach dem Vorbild von BYD (Nutzer, 20.11.2026) ---------- */
.mk { --einzug: max(var(--rand), calc((100% - 1296px) / 2 + var(--rand))); padding-block: clamp(48px, 7vw, 88px) 0; background: var(--mk-grund); }
.mk__kopf { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.mk__filter { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; background: var(--mk-filter); }
.mk__filter button { min-height: 40px; padding: 0 20px; border: 0; background: transparent; color: var(--schwarz); font: 500 .875rem/1 Roboto, sans-serif; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease); }
.mk__filter button:hover { background: rgba(0, 95, 127, .1); }
.mk__filter button[aria-pressed="true"] { background: var(--blau); color: #fff; }
.mk__spur { display: grid; grid-auto-flow: column; grid-auto-columns: min(620px, 84vw); gap: 16px; margin-top: 28px; padding: 0 var(--einzug) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--einzug); scrollbar-width: none; overscroll-behavior-x: contain; }
.mk__spur::-webkit-scrollbar { display: none; }
.mk__spur:focus-visible { outline-offset: -4px; }
.mk__karte { position: relative; display: flex; flex-direction: column; min-width: 0; padding: clamp(20px, 2.4vw, 28px); background: var(--mk-karte); scroll-snap-align: start; transition: box-shadow .35s var(--ease); }
.mk__karte[hidden] { display: none; }
.mk__karte:hover { box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .35); }
.mk__satz { font-size: .9375rem; color: var(--hell); }
.mk__name { margin-top: 4px; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; line-height: 1.1; letter-spacing: .01em; text-transform: uppercase; }
.mk__name a { color: var(--schwarz); text-decoration: none; }
.mk__name a:hover { color: var(--blau); }
.mk__status { order: -1; align-self: flex-start; margin-bottom: 12px; }
.mk__bild { display: grid; place-items: center; aspect-ratio: 16 / 9; margin-block: 12px 16px; overflow: hidden; }
.mk__bild img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.mk__karte:hover .mk__bild img { transform: scale(1.04); }
.mk__preise .preisschild__zeile b { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
.mk__knoepfe { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: auto; padding-top: 20px; }
.mk__steuerung { display: flex; align-items: center; justify-content: center; gap: 14px; width: max-content; margin: 24px auto 0; padding: 4px; background: var(--mk-filter); border-radius: 999px; }
.mk__steuerung[hidden] { display: none; }
.mk__steuerung .rundknopf { width: 44px; height: 44px; background: var(--mk-karte); }
.mk__steuerung .rundknopf:disabled { opacity: .4; }
.mk__punkte { display: flex; align-items: center; gap: 8px; }
.mk__punkte span { width: 6px; height: 6px; border-radius: 50%; background: rgba(28, 28, 27, .3); transition: width .3s var(--ease), background-color .3s var(--ease); }
.mk__punkte span[data-an] { width: 22px; border-radius: 3px; background: var(--blau); }
.mk__fuss { display: flex; justify-content: center; padding-top: 20px; }
@media (max-width: 600px) { .mk__punkte { display: none; } .mk__knoepfe { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .mk__bild img, .mk__karte { transition: none; } }
.mk { --mk-grund: #fff; --mk-karte: var(--grund); --mk-filter: var(--grund); }
.mk__preise { padding: .7rem .9rem .8rem; }

/* ---------- Menü klappt sichtbar auf (Nutzer, 20.11.2026) ----------
 * Das Skript von «JAC Schweiz» blendet die Menüs über [hidden] ein. Eine Animation startet jedes Mal,
 * wenn das Element sichtbar wird: Das Feld rollt von oben herunter, der Inhalt steigt kurz versetzt nach. */
@keyframes jac-ausrollen { from { clip-path: inset(0 0 100% 0); opacity: .4; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes jac-nachsteigen { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes jac-linie { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Modell-Menü */
.mega:not([hidden]) { animation: jac-ausrollen .55s var(--ease) both; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--blau); transform-origin: left; }
.mega:not([hidden])::before { animation: jac-linie .7s var(--ease) .1s both; }
.mega:not([hidden]) .mega__gruppe { animation: jac-nachsteigen .5s var(--ease) both; }
.mega:not([hidden]) .mega__gruppe:nth-child(2) { animation-delay: .06s; }
.mega:not([hidden]) .mega__gruppe:nth-child(3) { animation-delay: .12s; }
.mega:not([hidden]) .mega__gruppe:nth-child(4) { animation-delay: .18s; }
.mega:not([hidden]) .mega__gruppe:nth-child(n+5) { animation-delay: .24s; }
.mega:not([hidden]) .mega__modell img { animation: jac-nachsteigen .6s var(--ease) .15s both; }
.mega:not([hidden]) .mega__fuss { animation: jac-nachsteigen .5s var(--ease) .28s both; }
.mega__modell img { transition: transform .35s var(--ease); }
.mega__modell:hover img { transform: translateX(4px); }

/* Kleine Untermenüs */
.untermenue:not([hidden]) { animation: jac-ausrollen .4s var(--ease) both; border-top: 3px solid var(--blau); }
.untermenue:not([hidden]) li { animation: jac-nachsteigen .4s var(--ease) both; }
.untermenue:not([hidden]) li:nth-child(2) { animation-delay: .04s; }
.untermenue:not([hidden]) li:nth-child(3) { animation-delay: .08s; }
.untermenue:not([hidden]) li:nth-child(n+4) { animation-delay: .12s; }

/* Handy und Tablet: das ganze Menü rollt herunter, die Einträge folgen nacheinander */
@media (max-width: 1100px) {
	.kopf__nav.ist-offen { animation: jac-ausrollen .5s var(--ease) both; }
	.kopf__nav.ist-offen .menue > li, .kopf__nav.ist-offen .kopf__aktionen > * { animation: jac-nachsteigen .45s var(--ease) both; }
	.kopf__nav.ist-offen .menue > li:nth-child(2) { animation-delay: .04s; }
	.kopf__nav.ist-offen .menue > li:nth-child(3) { animation-delay: .08s; }
	.kopf__nav.ist-offen .menue > li:nth-child(4) { animation-delay: .12s; }
	.kopf__nav.ist-offen .menue > li:nth-child(n+5) { animation-delay: .16s; }
	.kopf__nav.ist-offen .kopf__aktionen > * { animation-delay: .22s; }
	.mega:not([hidden]) { animation-duration: .4s; }
	.mega::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.mega, .mega::before, .mega *, .untermenue, .untermenue li, .kopf__nav, .kopf__nav * { animation: none !important; }
}

/* ---------- Bühne ohne Modellnamen zum Umschalten (Nutzer, 20.11.2026) ----------
 * Geblättert wird mit den Pfeilen, durch Wischen und von selbst; die Punkte am Bild zeigen die Stelle. */
.buehne__wahl { display: none; }
.buehne__steuerung { justify-content: flex-end; }
.buehne__punkte { display: flex; }
.buehne__punkte span { background: rgba(28, 28, 27, .22); }
.buehne__punkte span[data-an] { background: var(--blau); }
@media (max-width: 900px) {
	.buehne__steuerung { display: none; }
}

/* ---------- V5 «JAC 2027»: Modell-Menü wie bei BYD, mit Preisen (Nutzer, 20.11.2026) ----------
 * Reiter nach Fahrzeugart, grosse graue Karten mit Name, Satz, Auto, Kaufpreis und Leasing, zwei Knöpfe. */
.mega--karten { max-height: calc(100vh - 110px - var(--hinweis)); overflow-y: auto; overscroll-behavior: contain; }
.mega__kopf { display: flex; align-items: center; gap: 24px; padding-block: 22px 16px; border-bottom: 1px solid var(--linie); }
.mega__alle { flex: 1 1 0; color: var(--hell); font-size: 1rem; text-decoration: none; }
.mega__alle:hover { color: var(--blau); }
.mega__reiter { display: flex; gap: 28px; }
.mega__reiter button { position: relative; min-height: 40px; padding: 0 2px; border: 0; background: none; color: var(--hell); font: 500 1rem/1 Roboto, sans-serif; cursor: pointer; }
.mega__reiter button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--schwarz); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.mega__reiter button:hover { color: var(--schwarz); }
.mega__reiter button[aria-pressed="true"] { color: var(--schwarz); }
.mega__reiter button[aria-pressed="true"]::after { transform: scaleX(1); }
.mega__zu { flex: 1 1 0; display: flex; justify-content: flex-end; padding: 0; border: 0; background: none; color: var(--schwarz); cursor: pointer; }
.mega__zu svg { width: 44px; height: 44px; padding: 11px; transition: transform .3s var(--ease); }
.mega__zu:hover svg { transform: rotate(90deg); }
.mega__karten { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding-block: 24px 28px; }
.mega__karte { display: flex; flex-direction: column; min-width: 0; padding: 20px 20px 22px; background: var(--grund); transition: box-shadow .3s var(--ease); }
.mega__karte[hidden] { display: none; }
.mega__karte:hover { box-shadow: 0 16px 32px -22px rgba(0, 0, 0, .4); }
.mega__name { font-size: 1.25rem; font-weight: 700; line-height: 1.15; letter-spacing: .01em; text-transform: uppercase; }
.mega__name a { color: var(--schwarz); text-decoration: none; }
.mega__name a:hover { color: var(--blau); }
.mega__satz { margin-top: 6px; font-size: .875rem; line-height: 1.4; color: var(--hell); }
/* Rahmen im Format der Modellfotos (3:2, 1500 × 1000), damit kein Auto oben oder unten abgeschnitten wird (vorher 16:9) */
.mega__bild { display: grid; place-items: center; aspect-ratio: 3 / 2; margin-block: 10px 12px; overflow: hidden; }
.mega__bild img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; transition: transform .5s var(--ease); }
.mega__karte:hover .mega__bild img { transform: scale(1.05); }
.mega__karte { container-type: inline-size; }
.mega__preise { margin-top: auto; padding: .625rem .75rem .7rem; }
.mega__preise .preisschild__zeile + .preisschild__zeile { margin-left: 10px; padding-left: 10px; }
.mega__preise .preisschild__zeile span { margin-bottom: 3px; font-size: .6875rem; letter-spacing: .04em; }
.mega__preise .preisschild__zeile b { font-size: clamp(.875rem, 6.4cqi, 1.25rem); }
.mega__knoepfe { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 16px; } /* nur noch «Modell entdecken» */
.mega__knoepfe .knopf { min-height: 44px; padding: 6px 8px; font-size: .75rem; letter-spacing: .04em; line-height: 1.2; white-space: normal; text-align: center; }
.mega--karten .mega__fuss { display: flex; justify-content: flex-end; padding-block: 0 24px; border-top: 0; }
.mega--karten .mega__fuss span { margin-left: 0; font-size: .8125rem; color: var(--leise); }
/* Animation beim Öffnen und beim Wechsel des Reiters: Karten steigen nacheinander auf */
.mega:not([hidden]) .mega__kopf { animation: jac-nachsteigen .45s var(--ease) both; }
.mega:not([hidden]) .mega__karte, .mega__karte.ist-neu { animation: jac-nachsteigen .5s var(--ease) both; }
.mega:not([hidden]) .mega__karte:nth-child(2) { animation-delay: .04s; }
.mega:not([hidden]) .mega__karte:nth-child(3) { animation-delay: .08s; }
.mega:not([hidden]) .mega__karte:nth-child(4) { animation-delay: .12s; }
.mega:not([hidden]) .mega__karte:nth-child(n+5) { animation-delay: .16s; }
.mega:not([hidden]) .mega__karte:nth-child(n+9) { animation-delay: .2s; }
@media (max-width: 1100px) {
	.mega--karten { max-height: none; overflow: visible; }
	.mega__kopf { flex-wrap: wrap; gap: 8px 16px; padding-top: 8px; }
	.mega__alle { flex-basis: 100%; order: 2; }
	.mega__reiter { order: 1; gap: 20px; overflow-x: auto; scrollbar-width: none; }
	.mega__zu { display: none; }
	.mega__karten { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 600px) {
	.mega__karten { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.mega__karte, .mega__karte.ist-neu, .mega__kopf { animation: none !important; }
	.mega__bild img, .mega__reiter button::after, .mega__zu svg { transition: none; }
}

/* ---------- V5: Preisschild Q6 «Schwarz über die ganze Breite» (Nutzer, 20.11.2026) ----------
 * Muster: design/preisschild-v5.html. Gilt für jedes Preisschild in V5: Bühne, Modellseite, Karussell, Modell-Menü, Karten.
 * Kein Hintergrund, Preise in Midnight Black, Listenpreis und Leasing immer nebeneinander (je eine Hälfte, nie untereinander),
 * oben eine feine schwarze Linie über die ganze Breite, dazwischen eine leise Trennlinie. */
.preisschild { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-self: stretch; width: 100%; max-width: 100%; padding: 14px 0 0; border-top: 1px solid var(--schwarz); background: none; color: var(--schwarz); box-shadow: none; transform: none; }
.preisschild--schraeg, .preisschild--schraeg:hover { margin-top: 22px; padding: 14px 0 0; background: none; box-shadow: none; transform: none; }
.buehne--karussell:has([data-aktiv]) .buehne__folie:not([data-aktiv]) .preisschild--schraeg { transform: none; }
.preisschild__zeile { min-width: 0; padding-right: 16px; }
.preisschild__zeile + .preisschild__zeile { margin: 0; padding: 0 0 0 20px; border-top: 0; border-left: 1px solid rgba(28, 28, 27, .14); }
.preisschild .preisschild__zeile span, .preisschild--schraeg .preisschild__zeile span { margin-bottom: 4px; font-size: .75rem; font-weight: 500; letter-spacing: .06em; color: #55626B; }
.preisschild .preisschild__zeile b { color: var(--schwarz); letter-spacing: -.02em; }
.preisschild a { color: inherit; }
.preisschild :focus-visible { outline-color: var(--blau); }
.preisschild--schraeg .preisschild__zeile b { font-size: clamp(1.75rem, 3.2vw, 2.875rem); line-height: 1; }
.mk__preise { padding: 14px 0 0; }
.mk__preise .preisschild__zeile b { font-size: clamp(1.375rem, 2.4vw, 1.75rem); }
.mega__preise { margin-top: auto; padding: 10px 0 0; }
.mega__preise .preisschild__zeile { padding-right: 10px; }
.mega__preise .preisschild__zeile + .preisschild__zeile { padding: 0 0 0 12px; }
.mega__preise .preisschild__zeile span { margin-bottom: 3px; font-size: .6875rem; letter-spacing: .04em; }
.mega__preise .preisschild__zeile b { font-size: clamp(1rem, 7cqi, 1.3125rem); }
@media (max-width: 520px) {
	.preisschild__zeile { padding-right: 12px; }
	.preisschild__zeile + .preisschild__zeile { padding-left: 14px; }
	.preisschild .preisschild__zeile span, .preisschild--schraeg .preisschild__zeile span { font-size: .6875rem; letter-spacing: .04em; }
	.preisschild--schraeg .preisschild__zeile b { font-size: 1.4375rem; }
	.mk__preise .preisschild__zeile b { font-size: 1.375rem; }
}

/* ---------- V5: «Modelle von JAC Schweiz» fliegt herein (Nutzer, 20.11.2026) ----------
 * Das Skript (modelle.js) setzt «mk--wartet», sobald es läuft, und «mk--da», wenn der Bereich ins Bild kommt.
 * Ohne Skript bleibt alles sichtbar. Titel und Filter steigen auf, die Karten fliegen nacheinander von rechts herein,
 * das Auto zoomt dabei leicht zurück. Beim Filtern fliegen die neuen Karten erneut herein. */
.mk--wartet .mk__kopf > *, .mk--wartet .mk__karte, .mk--wartet .mk__steuerung, .mk--wartet .mk__fuss { opacity: 0; }
.mk--wartet .mk__kopf > * { transform: translateY(28px); }
.mk--wartet .mk__karte { transform: translateX(min(18vw, 220px)); }
.mk--wartet .mk__karte .mk__bild img { transform: scale(1.14); }
.mk--wartet .mk__steuerung, .mk--wartet .mk__fuss { transform: translateY(16px); }
.mk--da .mk__kopf > *, .mk--da .mk__karte, .mk--da .mk__steuerung, .mk--da .mk__fuss { opacity: 1; transform: none; }
.mk--da .mk__karte .mk__bild img { transform: none; }
.mk--wartet .mk__kopf > * { transition: opacity .8s var(--ease), transform .9s var(--ease); }
.mk--wartet .mk__kopf > :nth-child(2) { transition-delay: .12s; }
.mk--wartet .mk__karte { transition: opacity .9s var(--ease) calc(.25s + var(--mk-i, 0) * .12s), transform 1.1s var(--ease) calc(.25s + var(--mk-i, 0) * .12s), box-shadow .35s var(--ease); }
.mk--wartet .mk__karte .mk__bild img { transition: transform 1.4s var(--ease) calc(.35s + var(--mk-i, 0) * .12s); }
.mk--wartet .mk__steuerung, .mk--wartet .mk__fuss { transition: opacity .7s var(--ease) .7s, transform .8s var(--ease) .7s; }
.mk--da .mk__karte:hover .mk__bild img { transform: scale(1.04); transition-delay: 0s; }
.mk--fertig .mk__karte, .mk--fertig .mk__karte .mk__bild img { transition-delay: 0s; }
@keyframes jac-hereinfliegen { from { opacity: 0; transform: translateX(min(12vw, 140px)); } to { opacity: 1; transform: none; } }
.mk__karte.ist-neu { animation: jac-hereinfliegen .7s var(--ease) both; animation-delay: calc(var(--mk-i, 0) * .07s); }
@media (prefers-reduced-motion: reduce) {
	.mk--wartet .mk__kopf > *, .mk--wartet .mk__karte, .mk--wartet .mk__steuerung, .mk--wartet .mk__fuss, .mk--wartet .mk__karte .mk__bild img { opacity: 1; transform: none; transition: none; }
	.mk__karte.ist-neu { animation: none; }
}

/* ---------- V5: Bilder und Bildkarten mit Radius wie in V1 (Nutzer, 20.11.2026) ----------
 * Fotos, Bildrahmen und die grauen Karten mit Auto bekommen 8 px; Knöpfe, Etiketten und Preise bleiben eckig. */
.mk__karte, .mega__karte, .ueber-bild img, .galerie__bild, .beitrag__bild, .station__bild, .person__bild { border-radius: var(--r-karte); }
.mk__karte, .mega__karte { overflow: hidden; }

/* V5: Bühne der Modellseite und der Startseite (Nutzer, 20.11.2026): Name etwas kleiner, Slogan grösser und schwarz,
   kein Strich zwischen Slogan und Preis; der Preis setzt sich mit Abstand ab. */
:is(.buehne--modell, .buehne--karussell) .buehne__name { font-size: clamp(2rem, 4.4vw, 3.75rem); line-height: 1; }
:is(.buehne--modell, .buehne--karussell) .buehne__satz { margin-top: 18px; max-width: 30ch; font-size: clamp(1.25rem, 1.75vw, 1.5rem); line-height: 1.3; text-wrap: balance; }
:is(.buehne--modell, .buehne--karussell) .buehne__satz b { color: var(--schwarz); font-weight: 500; }
:is(.buehne--modell, .buehne--karussell) .preisschild--schraeg, :is(.buehne--modell, .buehne--karussell) .preisschild--schraeg:hover { margin-top: clamp(28px, 3vw, 40px); padding-top: 0; border-top: 0; }

/* V5: Rundungen nach Muster design/rundungen-v5.html (Nutzer, 20.11.2026): R1 Etiketten, R2 Variante A,
   R3 Formulare; Knöpfe bleiben eckig (R4, CI-Entscheid E1). Innen 5 px, aussen 8 px, damit die Ecken ineinander passen. */
.etikett--gross { border-radius: 6px 0 0 6px; }
.mk__filter, .newsletter__formular, .suchfeld, .leasing .jac-lr__seg { border-radius: 8px; }
.mk__filter button, .newsletter__formular .knopf, .leasing .jac-lr__seg button { border-radius: 5px; }
.reiter__leiste button, .filter__knopf { border-radius: 6px; }

/* V5: Zahlen-Band der Startseite und Highlights der Modellseite Z1 (Nutzer, 20.11.2026, Muster design/zahlen-v5.html): kein Strich über den Zahlen,
   feine senkrechte Linien dazwischen wie im Preisschild Q6; auch auf dem Handy nebeneinander, Spalten je nach Anzahl Einträge. */
:is(.zaehler, #highlights) .kennzahlen { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; }
:is(.zaehler, #highlights) .kennzahlen > div { justify-content: flex-end; min-width: 0; padding: 0 clamp(12px, 3vw, 40px); border-top: 0; }
:is(.zaehler, #highlights) .kennzahlen > div:first-child { padding-left: 0; }
:is(.zaehler, #highlights) .kennzahlen > div + div { border-left: 1px solid var(--linie); }
:is(.zaehler, #highlights) .kennzahlen dd { white-space: nowrap; }
@media (max-width: 520px) {
	:is(.zaehler, #highlights) .kennzahlen > div { padding-inline: 10px; }
	:is(.zaehler, #highlights) .kennzahlen dd { font-size: 1.625rem; }
	:is(.zaehler, #highlights) .kennzahlen dt { font-size: .8125rem; line-height: 1.35; }
	#highlights .kennzahlen dd { font-size: 1.375rem; } /* Werte mit Einheit wie «27.59 kWh» */
	#highlights .kennzahlen dd small { margin-left: .15em; font-size: .5em; } /* Einheit lesbar, rund 11 px */
}
