/*
 * JAC Schweiz Midnight – «Nacht» nach der CI von JAC (Visual Identity Manual 2024).
 * 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-neu.html):
 *   N1a Midnight Black · N2a Roboto Bold · N3a Preisschild schräg · N4a eckige Knöpfe in Grossbuchstaben
 *   N5a Middle Blue als Akzent · N6a VW-Band in Intelligent Blue
 *
 * 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: Akzent auf dunklem Grund, 6 : 1 auf Midnight Black */
	--schein: rgba(0, 95, 127, .85);
	--schein-0: rgba(0, 95, 127, 0);

	--nacht: #1C1C1B;             /* Midnight Black */
	--flaeche: #262625;
	--flaeche-tief: #212120;
	--fuss: #141413;
	--marke: var(--blau);
	--akzent: var(--mittelblau);
	--hellblau: var(--mittelblau);
	--leise: #B4B9BD;
	--hell: #DCDFE2;
	--weiss: #FFFFFF;
	--papier: #F2F4F5;
	--tinte: #1C1C1B;
	--tinte-leise: #55626B;
	--linie: rgba(255, 255, 255, .12);
	--r-etikett: 0;
	--r-karte: 0;
	--r-knopf: 0;
}

body { font-family: Roboto, "Helvetica Neue", Arial, sans-serif; font-weight: 400; }
:focus-visible { outline-color: #fff; border-radius: 0; }
.lesetext :focus-visible { outline-color: var(--blau); }

/* Titel: Roboto Bold (N2a) 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; }

/* ---------- Knöpfe (N4a: eckig, Grossbuchstaben) ---------- */
.knopf { padding: 0 22px; font-weight: 500; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; }
.knopf--rand { border-color: rgba(255, 255, 255, .5); }
.knopf .pfeil { display: none; }
.kopf__aktionen .knopf:not(.knopf--rand), .mobilleiste .knopf:not(.knopf--rand) { background: var(--blau); color: #fff; }
.kopf__aktionen .knopf:not(.knopf--rand):hover, .mobilleiste .knopf:not(.knopf--rand):hover { background: var(--blau-tief); color: #fff; }
.kopf__aktionen .knopf { padding-inline: 16px; font-size: .75rem; }
.textlink { color: var(--mittelblau); font-weight: 500; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; }
.textlink:hover { color: #fff; }
.etikett { font-weight: 500; letter-spacing: .02em; }
.filter__knopf, .reiter__leiste button, .buehne__wahl button, .farbknopf, .nav-links .page-numbers { font-weight: 500; }
.farbknopf img { border-radius: 0; }

/* ---------- Kopf: VW-Band in Intelligent Blue (N6a) ---------- */
.hinweisleiste { background: var(--blau); border-bottom: 0; font-weight: 400; font-size: .8125rem; }
.menue__link, .menue a { font-size: .875rem; letter-spacing: .06em; text-transform: uppercase; }
.untermenue a, .mega__modell b { text-transform: none; letter-spacing: 0; }
.mega__titel { font-weight: 500; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.untermenue { box-shadow: 0 20px 40px rgba(0, 0, 0, .45); }

/* ---------- Lichtschein in Intelligent Blue statt JAC-Blau ---------- */
.buehne { position: relative; background: radial-gradient(ellipse 52% 60% at 74% 62%, var(--schein) 0%, var(--schein-0) 70%) var(--nacht); }
.schritte { background: radial-gradient(ellipse 46% 70% at 26% 62%, var(--schein) 0%, var(--schein-0) 72%) var(--nacht); }
.preis-a { background: radial-gradient(ellipse 60% 80% at 78% 55%, rgba(0, 95, 127, .5) 0%, var(--schein-0) 70%) var(--flaeche); }
.zeitreise { background: radial-gradient(ellipse 60% 55% at 20% 0%, rgba(0, 95, 127, .55) 0%, var(--schein-0) 70%) var(--fuss); }
.video__rahmen { background: radial-gradient(ellipse 70% 70% at 50% 60%, var(--blau) 0%, var(--flaeche) 72%); }

/* Kurven-Motiv aus dem Handbuch (S. 25–27) als feine Linie in Middle Blue am Fuss der Bühne */
.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, 165, 207, .55); }
.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='%2300A5CF' stroke-opacity='.55' stroke-width='2'/%3E%3C/svg%3E") no-repeat right bottom / 600px 120px; }
.buehne > * { position: relative; z-index: 1; }

/* ---------- Bühne: Effekte nach dem Vorbild von BYD (Nutzer, 20.11.2026) ---------- */
/* Beim Wechsel blendet das Auto ein und zoomt auf 100 %, der Text steigt nach; ohne Skript ist 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 (N3a: schräg wie Nacht, 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; }
.preisschild--schraeg .preisschild__zeile span { font-size: .8125rem; font-weight: 500; }
.preisschild--schraeg .preisschild__zeile b { letter-spacing: -.015em; }
.schritte__schild { border-radius: 0; }
.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 und Kennzahlen ---------- */
/* Höchstens drei Karten nebeneinander wie im CI-Theme (Nutzer, 20.11.2026), darunter zwei, auf dem Handy eine. */
.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:hover { border-color: rgba(0, 165, 207, .5); }
.partner-hinweis:hover { border-color: rgba(0, 165, 207, .5); }
.kennzahlen dd { font-weight: 300; letter-spacing: -.01em; }
.kennzahlen dd small { font-weight: 500; }

/* ---------- Leasingrechner ---------- */
.leasing .jac-lr-titel { font-weight: 700; letter-spacing: -.015em; }
.leasing .jac-lr__rate-amount { font-weight: 700; letter-spacing: -.01em; }
.leasing .jac-lr .jac-lr__btn { 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 { letter-spacing: .06em !important; text-transform: uppercase !important; }

/* ---------- Lesetexte auf hellem 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; }

/* ---------- Fusszeile, Newsletter, Bildansicht ---------- */
.fuss__spalte h2 { font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: .75rem; }
.newsletter__formular .knopf { background: var(--nacht); color: #fff; }
.grossbild::backdrop { background: rgba(20, 20, 19, .88); }
.grossbild__zu { background: rgba(20, 20, 19, .75); }

@media (max-width: 900px) {
	.mobilleiste { background: rgba(28, 28, 27, .95); }
	.buehne { background: radial-gradient(ellipse 92% 36% at 50% 22%, var(--schein) 0%, var(--schein-0) 72%) var(--nacht); }
	.schritte { background: radial-gradient(ellipse 90% 40% at 50% 30%, var(--schein) 0%, var(--schein-0) 72%) var(--nacht); }
	.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; } }
