/* =====================================================================================
   Garage-Reichlin – Webseite 2027 (Nimbus27)
   Vorlage: Versicherungsformular /Versicherung/V1/
   Alle neuen Klassen beginnen mit «n27-», damit sie sich nicht mit den alten Seiten beissen.
   ===================================================================================== */


/* Schriften (Dateien in /Content/Fonts/)
   ===================================================================================== */
@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/Content/Fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/Content/Fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("/Content/Fonts/source-sans-3-latin-900-normal.woff2") format("woff2");
}


/* Grundwerte
   ===================================================================================== */
:root {
    --akzent: #0055A0;
    --akzent-hell: #e8f1fa;
    --akzent-ring: rgba(0, 85, 160, 0.18);
    --text: #1d1d1f;
    --text-2: #424245;
    --grau: #6e6e73;
    --linie: #d2d2d7;
    --linie-hell: #e8e8ed;
    --flaeche: #f5f5f7;
    --rot: #D31126;
    --offen: #1a7f37;
    --zu: #b25000;
    --schrift: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --verlauf: linear-gradient(to left, #2563eb 0%, #1e3a8a 50%, #2563eb 100%);

    /* Eckenradien: Bedienelemente wie die Buttons, Karten und Flächen etwas grösser */
    --r-klein: 8px;
    --r-gross: 12px;

    /* Abstandsskala */
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 16px;
    --s-4: 24px;
    --s-5: 32px;
    --s-6: 48px;
    --s-7: 64px;
    --s-8: 88px;
}

html {
    background: #FFF;
    font-size: 16px;
}

body {
    margin: 0;
    font-family: var(--schrift);
    color: var(--text);
    background: #FFF;
    -webkit-font-smoothing: antialiased;
}

body.n27-neu {
    font-size: 18px;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

body.n27-neu a {
    color: var(--akzent);
    text-decoration: none;
}

body.n27-neu img {
    display: block;
    max-width: 100%;
}

.n27-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
    box-sizing: border-box;
}

a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}


/* Buttons (gleich wie Hauptseite: .button.button-primary / .button-secondary)
   ===================================================================================== */
.n27-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-family: var(--schrift);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    color: #FFF !important;
    background: var(--verlauf);
    background-size: 200% 100%;
    background-position: 100% 0;
    border: 0;
    border-radius: var(--r-klein);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: background-position 0.5s ease;
}

.n27-btn:hover {
    background-position: 0 0;
    color: #f3f4f6 !important;
}

.n27-btn2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    font-family: var(--schrift);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    color: var(--akzent) !important;
    background: #FFF;
    border: 2px solid var(--akzent);
    border-radius: var(--r-klein);
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.n27-btn2:hover {
    color: #FFF !important;
    background: var(--akzent);
}

.n27-mehr {
    font-size: 16px;
    font-weight: 600;
}

/* Pfeil ohne Leerzeichen, fester Abstand: bricht nie allein auf eine neue Zeile */
.n27-mehr::after {
    content: "›";
    margin-left: 0.3em;
}


/* Kopf
   ===================================================================================== */
.n27-kopf {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    /* iPhone: Kopf reicht bis unter die Statusleiste, sonst scheint dort die Seite durch */
    padding-top: env(safe-area-inset-top);
    background: #FFF;
    border-bottom: 1px solid var(--linie-hell);
    font-family: var(--schrift);
}

/* Platz für den fixen Kopf (72px Zeile + 1px Linie).
   Fix statt «sticky»: Auf dem iPhone rutscht ein sticky Kopf sonst ein paar Pixel nach unten,
   sobald die Adressleiste beim Scrollen verschwindet. */
body {
    padding-top: calc(73px + env(safe-area-inset-top));
}

.n27-kopfzeile {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 72px;
}

.n27-logo {
    display: flex;
    flex-shrink: 0;
}

.n27-logo img {
    display: block;
    height: 46px;
    width: auto;
}

.n27-nav {
    display: flex;
    gap: 4px;
    height: 100%;
}

.n27-navpunkt {
    position: relative;
    display: flex;
    align-items: center;
}

.n27-navlink {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 12px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text) !important;
    text-decoration: none;
    border-radius: var(--r-klein);
    white-space: nowrap;
}

.n27-navlink:hover {
    color: var(--akzent) !important;
    background: var(--flaeche);
}

/* Untermenü beim Darüberfahren */
.n27-unter {
    position: absolute;
    top: calc(100% - 6px);
    left: 0;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    padding: 6px;
    background: #FFF;
    border-radius: var(--r-gross);
    box-shadow: 0 0 0 1px var(--linie-hell), 0 16px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}

.n27-navpunkt:hover .n27-unter,
.n27-navpunkt:focus-within .n27-unter {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.n27-unter a {
    padding: 10px 14px;
    font-size: 16px;
    color: var(--text) !important;
    text-decoration: none;
    border-radius: var(--r-klein);
    white-space: nowrap;
}

.n27-unter a:hover {
    color: var(--akzent) !important;
    background: var(--flaeche);
}

.n27-untermarken {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 6px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--linie-hell);
}

.n27-untermarken a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    font-size: 13px;
    color: var(--grau) !important;
    border-radius: var(--r-klein);
}

.n27-untermarken img {
    height: 26px;
    width: auto;
    max-width: 56px;
    object-fit: contain;
}

.n27-kopfaktionen {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.n27-kontakt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text) !important;
    text-decoration: none;
    white-space: nowrap;
}

.n27-menuknopf {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-right: -8px;
    padding: 0;
    color: var(--text);
    background: none;
    border: 0;
    border-radius: var(--r-klein);
    cursor: pointer;
}

.n27-menuknopf:hover {
    background: var(--flaeche);
}

.n27-icon-zu {
    display: none;
}

.n27-menuknopf[aria-expanded="true"] .n27-icon-auf {
    display: none;
}

.n27-menuknopf[aria-expanded="true"] .n27-icon-zu {
    display: block;
}

/* Handy-Menü */
.n27-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: calc(100vh - 72px - env(safe-area-inset-top));
    height: calc(100dvh - 72px - env(safe-area-inset-top));
    overflow-y: auto;
    background: #FFF;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.n27-menu[hidden] {
    display: none;
}

.n27-menu .n27-wrap {
    display: flex;
    flex-direction: column;
    padding-top: 8px;
    padding-bottom: 40px;
}

.n27-mgruppe {
    border-bottom: 1px solid var(--linie-hell);
}

.n27-mgruppe summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    font-size: 22px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.n27-mgruppe summary::-webkit-details-marker {
    display: none;
}

.n27-mgruppe summary::after {
    content: "";
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border-right: 2px solid #86868b;
    border-bottom: 2px solid #86868b;
    transform: rotate(45deg);
    transition: transform 0.2s;
}

.n27-mgruppe[open] summary::after {
    transform: rotate(-135deg);
}

.n27-mgruppe > a {
    display: block;
    padding: 10px 0;
    font-size: 18px;
    color: var(--text-2) !important;
    text-decoration: none;
}

.n27-mgruppe > a:last-child {
    margin-bottom: 14px;
}

.n27-mmarken {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

.n27-mmarken a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    background: var(--flaeche);
    border-radius: var(--r-klein);
}

.n27-mmarken img {
    height: 26px;
    width: auto;
    max-width: 52px;
    object-fit: contain;
}

.n27-mstatus {
    margin-top: 24px;
}

.n27-mtelefon {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.n27-mtelefon a {
    flex-direction: column;
    gap: 4px;
    padding: 12px;
}

.n27-mtelefon span {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-2);
}

.n27-mtelefon a:hover span {
    color: #FFF;
}

.n27-mtermin {
    margin-top: 10px;
    padding: 18px 24px;
    font-size: 18px;
}


/* Öffnungsstatus
   ===================================================================================== */
.n27-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.n27-status::before {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.n27-status.offen {
    color: var(--offen);
}

.n27-status.zu {
    color: var(--zu);
}

.n27-kopf .n27-status {
    font-weight: 400;
    color: var(--grau);
}

.n27-kopf .n27-status.offen::before {
    background: var(--offen);
}

.n27-kopf .n27-status.zu::before {
    background: var(--zu);
}

.n27-menu .n27-status {
    font-size: 16px;
    font-weight: 600;
}

.n27-menu .n27-status.offen {
    color: var(--offen);
}

.n27-menu .n27-status.zu {
    color: var(--zu);
}


/* Seitenfuss
   ===================================================================================== */
.n27-fuss {
    margin-top: var(--s-8);
    font-family: var(--schrift);
    font-size: 15px;
    line-height: 1.55;
    color: #a1a1a6;
    background: #1d1d1f;
}

.n27-fuss a {
    color: #a1a1a6 !important;
    text-decoration: none;
}

.n27-fuss a:hover {
    color: #FFF !important;
}

.n27-fuss strong {
    color: #f5f5f7;
}

.n27-fusslinks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    padding-top: 56px;
    padding-bottom: 32px;
}

.n27-fusslogo {
    height: 44px;
    width: auto;
}

.n27-fussspalte {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.n27-fussinfo {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(360px, 1.4fr);
    gap: 28px 32px;
    align-items: start;
    padding-top: 32px;
    padding-bottom: 32px;
    border-top: 1px solid #424245;
}

.n27-fussort {
    display: flex;
    flex-direction: column;
}

.n27-fussort a {
    color: #f5f5f7 !important;
}

.n27-zeiten {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 22px;
    background: #2a2a2d;
    border-radius: var(--r-gross);
}

.n27-zeitenkopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.n27-fuss .n27-status {
    font-size: 14px;
}

.n27-fuss .n27-status.offen {
    color: #4cd964;
}

.n27-fuss .n27-status.zu {
    color: #ffb340;
}

/* Eine gemeinsame Tabelle für alle Zeilen (subgrid): Spalten richten sich nach dem längsten Eintrag,
   alle Zeiten stehen genau untereinander – auch in der fett markierten Zeile von heute */
.n27-woche {
    display: grid;
    grid-template-columns: minmax(max-content, 1fr) max-content max-content;
    column-gap: 16px;
    row-gap: 2px;
    margin: 0 -10px;
}

.n27-wochezeile {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) 11.5ch 11.5ch;
    grid-template-columns: subgrid;
    padding: 5px 10px;
    border-radius: var(--r-klein);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.n27-wochezeile > span:not(:first-child) {
    text-align: right;
}

.n27-tagkurz {
    display: none;
}

/* «geschlossen» über beide Zeitspalten */
.n27-wochezeile .n27-zu-text {
    grid-column: 2 / -1;
}

.n27-wochezeile.heute {
    font-weight: 600;
    color: #FFF;
    background: #3a3a3d;
}

.n27-zeitenhinweis {
    font-size: 13px;
    color: #86868b;
}

/* Feiertage und Sonderzeiten aus Google */
.n27-sonderzeit {
    display: block;
    margin: 8px 0;
    font-size: 15px;
    color: #b25000;
}

.n27-wochezeile.sonder {
    color: #b25000;
}

/* im dunklen Seitenfuss heller */
.n27-zeiten .n27-sonderzeit {
    font-size: 13px;
    color: #ffb35c;
}

.n27-wochezeile small {
    font-size: 0.85em;
    font-weight: 400;
}

/* Wochentabelle auf hellem Grund (Standortseiten) */
.n27-hell .n27-wochezeile {
    color: var(--text-2);
}

.n27-hell .n27-wochezeile.heute {
    color: var(--text);
    background: var(--flaeche);
}

.n27-fussrecht {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    padding-top: 20px;
    padding-bottom: 32px;
    border-top: 1px solid #424245;
}


/* Fehlerseite
   ===================================================================================== */
.n27-fehlerseite {
    padding-top: var(--s-8);
    padding-bottom: var(--s-6);
}

.n27-fehlerziele {
    margin: 36px 0 32px;
}

.n27-fehlerziele .n27-kartebild {
    aspect-ratio: 4 / 3;
    height: auto;
}

@media (max-width: 560px) {
    .n27-fehlerziele { gap: 12px; }
    .n27-fehlerziele .n27-kartetext { padding: 14px 16px 16px; }
    .n27-fehlerziele .n27-kartetext strong { font-size: 18px; }
    .n27-fehlerziele .n27-kartetext p { font-size: 15px; }
}

.n27-knoepfe {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}


/* Bausteine für neue Seiten
   ===================================================================================== */
.n27-abschnitt {
    padding-top: var(--s-8);
}

.n27-h1 {
    margin: 0;
    font-size: 64px;
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-align: left;
    color: inherit;
}

.n27-h2 {
    margin: 0;
    font-size: 36px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-align: left;
    color: var(--text);
}

.n27-h3 {
    margin: 0;
    font-size: 26px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.01em;
    text-align: left;
    color: var(--text);
}

.n27-lead {
    margin: 8px 0 0 0;
    font-size: 19px;
    line-height: 1.45;
    color: var(--grau);
}

.n27-eyebrow {
    margin: 0 0 8px 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--akzent);
}

.n27-titelzeile {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
}

.n27-karte {
    display: flex;
    flex-direction: column;
    background: #FFF;
    border-radius: var(--r-gross);
    box-shadow: inset 0 0 0 1px var(--linie);
    overflow: hidden;
    color: var(--text) !important;
    text-decoration: none;
    transition: box-shadow 0.2s;
}

a.n27-karte:hover {
    box-shadow: inset 0 0 0 2px var(--akzent);
}

.n27-karte img {
    width: 100%;
}

.n27-kartetext {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    padding: 20px 24px 24px 24px;
}

.n27-kartetext strong {
    font-size: 22px;
    line-height: 1.2;
}

.n27-kartetext p,
.n27-kartetext span.text {
    margin: 0;
    font-size: 16px;
    color: var(--grau);
}

.n27-marke {
    font-size: 14px;
    font-weight: 600;
    color: var(--akzent);
}

.n27-flaeche {
    background: var(--flaeche);
}

/* Raster mit festen Spaltenzahlen – nie eine leere Lücke */
.n27-g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.n27-g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.n27-g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.n27-g3::-webkit-scrollbar { display: none; }

/* Schnellzugriff */
.n27-schnell {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
}

.n27-schnell strong {
    font-size: 19px;
}

.n27-schnell span {
    font-size: 16px;
    color: var(--grau);
}

/* Markenkarten: Logos optisch gleich gross */
.n27-markenkarte {
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 180px;
    padding: 24px;
    box-shadow: none;
}

/* «Lexus entdecken ›» – auf dem Handy immer gleich: Marke oben, «entdecken ›» darunter */
.n27-markenkarte .n27-mehr {
    text-align: center;
}

@media (max-width: 600px) {
    .n27-markenkarte .n27-markenname {
        display: block;
    }
}

.n27-logofeld {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 84px;
}

.n27-logo-opel   { height: 76px; width: auto; }
.n27-logo-kia    { width: 108px; height: auto; }

/* Logos nicht von «.n27-karte img { width: 100% }» strecken lassen (Kia war sonst riesig oder unsichtbar) */
.n27-karte .n27-logofeld img { flex-shrink: 0; max-width: none; }
.n27-karte img.n27-logo-opel   { width: auto; height: 76px; }
.n27-karte img.n27-logo-kia    { width: 108px; height: auto; }
.n27-karte img.n27-logo-lexus  { width: auto; height: 56px; }
.n27-karte img.n27-logo-toyota { width: auto; height: 54px; }
.n27-logo-lexus  { height: 56px; width: auto; }
.n27-logo-toyota { height: 54px; width: auto; }

/* Titelvideo */
.n27-hero {
    position: relative;
    height: 640px;
    overflow: hidden;
    background: #1d1d1f;
}

.n27-hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.n27-hero video.aktiv {
    opacity: 1;
}

.n27-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.n27-herotext {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding-bottom: 120px;
    color: #FFF;
}

.n27-herotext .n27-h1 {
    max-width: 760px;
}

.n27-herotext p {
    max-width: 600px;
    margin: 16px 0 0 0;
    font-size: 21px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
}

.n27-videowahl {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
    margin-top: 28px;
}

.n27-videowahl button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-family: var(--schrift);
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    background: none;
    border: 0;
    cursor: pointer;
}

.n27-videowahl button::before {
    content: "";
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.45);
}

.n27-videowahl button.aktiv {
    color: #FFF;
}

.n27-videowahl button.aktiv::before {
    background: #FFF;
}

/* Fahrzeugsuche */
.n27-suche {
    position: relative;
    z-index: 2;
    margin-top: -64px;
}

.n27-suchform {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 16px;
    align-items: end;
    padding: 24px;
    background: #FFF;
    border-radius: var(--r-gross);
    box-shadow: inset 0 0 0 1px var(--linie), 0 12px 40px rgba(0, 0, 0, 0.12);
}

.n27-suchform label > span {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
}

.n27-suchform label > .n27-auswahl {
    position: relative;
    display: block;
    margin-bottom: 0;
}

.n27-auswahl select {
    display: block;
    width: 100%;
    box-sizing: border-box;
    height: 52px;
    margin: 0;
    padding: 0 48px 0 16px;
    font-family: var(--schrift);
    font-size: 17px;
    color: var(--text);
    background: #FFF;
    border: 1px solid var(--linie);
    border-radius: var(--r-klein);
    -webkit-appearance: none;
            appearance: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.n27-auswahl select:hover {
    border-color: #a1a1a6;
}

.n27-auswahl select:focus {
    outline: none;
    border-color: var(--akzent);
    box-shadow: 0 0 0 4px var(--akzent-ring);
}

.n27-auswahl::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 24px;
    height: 24px;
    margin-top: -12px;
    border-radius: 50%;
    background: var(--akzent-hell) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%230055A0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
    pointer-events: none;
}

.n27-suchform .n27-btn {
    height: 52px;
}

/* Fahrzeugkarte */
.n27-fzbild {
    aspect-ratio: 4 / 3;
    background: #e8e8ed;
    overflow: hidden;
}

.n27-fzbild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.n27-fztext {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    padding: 18px 20px 20px 20px;
}

.n27-fzoben {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.n27-tag {
    padding: 3px 9px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
    color: var(--akzent);
    background: var(--akzent-hell);
}

.n27-tag.occasion {
    color: var(--text-2);
    background: #f0f0f2;
}

.n27-fztitel {
    font-size: 19px;
    line-height: 1.25;
}

.n27-fzdaten {
    margin-bottom: 14px;
    font-size: 15px;
    color: var(--grau);
}

.n27-fzpreis {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--linie-hell);
}

.n27-fzpreis strong {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.n27-fzpreis span {
    font-size: 15px;
    color: var(--grau);
    white-space: nowrap;
}

/* Abzeichen auf Bildern (z.B. Kundenvorteil) */
.n27-bildbox {
    position: relative;
}

.n27-abzeichen {
    position: absolute;
    left: 16px;
    top: 16px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #FFF;
    background: var(--rot);
    border-radius: var(--r-klein);
}

/* Bild-Text-Block */
.n27-bildtext {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: var(--flaeche);
    border-radius: var(--r-gross);
    overflow: hidden;
}

.n27-bildtext img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.n27-bildtext > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 48px;
}

/* Standortkarten */
.n27-ortbildlink {
    display: block;
    flex-shrink: 0;
}

.n27-ortbild {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.n27-orttext {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 24px 24px 0 24px;
}

.n27-orttext strong {
    font-size: 21px;
}

.n27-orttext > span {
    font-size: 16px;
    color: var(--grau);
}

.n27-orttext .n27-status {
    margin-top: 14px;
}

.n27-ortzeiten {
    display: grid;
    grid-template-columns: auto auto auto;
    justify-content: start;
    gap: 2px 14px;
    margin-top: 8px;
    font-size: 15px;
    color: var(--text-2);
    white-space: nowrap;
}

.n27-ortknoepfe {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: auto;
    padding: 24px;
}

.n27-ortknoepfe a {
    padding-left: 12px;
    padding-right: 12px;
}


/* Modellseite (z.B. Kia Seltos) – auch für weitere Modell- und Markenseiten
   ===================================================================================== */

/* Modellleiste unter dem Kopf, bleibt beim Scrollen sichtbar */
.n27-modellleiste {
    position: sticky;
    top: calc(73px + env(safe-area-inset-top));
    z-index: 1500;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
            backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--linie-hell);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.n27-modellzeile {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 64px;
}

.n27-modellzeile > strong {
    font-size: 19px;
    white-space: nowrap;
}

.n27-modellnav {
    display: flex;
    gap: 24px;
    font-size: 15px;
}

body.n27-neu .n27-modellnav a {
    color: var(--text-2);
}

body.n27-neu .n27-modellnav a:hover {
    color: var(--akzent);
}

.n27-modellaktion {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    font-size: 15px;
    color: var(--grau);
    white-space: nowrap;
    transition: opacity .25s ease, transform .25s ease, visibility 0s;
}

/* Preis und Knopf in der Leiste erst zeigen, wenn der Knopf im Titel oder das Formular
   nicht mehr zu sehen ist – so ist immer nur ein Hauptknopf sichtbar (main.js: ModellLeiste) */
.n27-modellleiste.n27-aktionweg .n27-modellaktion {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}

/* Modellseiten: «Termin buchen» im Kopf weglassen – Hauptaktion ist die Probefahrt
   (im Handy-Menü bleibt «Termin buchen») */
body:has(.n27-modellleiste) .n27-kopfbtn {
    display: none;
}

.n27-modellaktion strong {
    color: var(--text);
}

/* Sprungziele nicht unter Kopf und Modellleiste verstecken */
.n27-anker {
    scroll-margin-top: 150px;
}

.n27-pfad {
    padding-top: 20px;
    font-size: 15px;
    color: var(--grau);
}

/* Titel */
.n27-modellkopf {
    padding-top: 32px;
}

.n27-modellmarke {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-bottom: 20px;
}

/* Markenlogo deutlich grösser als das Abzeichen; das breite Kia-Logo etwas niedriger,
   damit alle Logos optisch gleich gross wirken */
.n27-modellmarke img {
    height: 48px;
    width: auto;
}

.n27-modellmarke img[src*="kia_logo"] {
    height: 28px;
}

/* Abzeichen dezent: Hinweis, kein Knopf */
.n27-rotabzeichen {
    padding: 4px 10px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--rot);
    background: #FCEBED;
    border-radius: 999px;
}

.n27-claim {
    margin: 16px 0 0 0;
    font-size: 26px;
    line-height: 1.35;
    font-weight: 600;
    color: var(--text-2);
}

.n27-preiszeile {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-top: 32px;
}

.n27-preise {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 40px;
}

.n27-preise p {
    margin: 0;
}

.n27-preislabel {
    font-size: 15px;
    color: var(--grau);
}

.n27-preis {
    font-size: 40px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.n27-preis2 {
    padding-left: 40px;
    border-left: 1px solid var(--linie-hell);
}

.n27-preis2 .n27-preis {
    color: var(--text-2);
}

.n27-preisaktion {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--grau);
}

.n27-btn.n27-btn-gross {
    padding: 18px 32px;
    font-size: 18px;
}

.n27-btn.n27-btn-voll {
    width: 100%;
}

.n27-btn.n27-btn-links {
    align-self: flex-start;
    margin-top: 8px;
}

.n27-modellbild {
    width: 100%;
    height: 560px;
    margin-top: 40px;
    object-fit: cover;
    border-radius: var(--r-gross);
}

/* Eckdaten */
.n27-eckdaten {
    padding-top: 32px;
}

.n27-fakt {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px;
    background: var(--flaeche);
    border-radius: var(--r-gross);
}

.n27-fakt strong {
    font-size: 34px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.n27-fakt span {
    font-size: 16px;
    color: var(--grau);
}

/* Häkchen-Liste */
.n27-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.n27-check::before {
    content: "";
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 4px;
    border-radius: 50%;
    background: var(--akzent-hell) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4.2l2.6 2.6L9 1.2' fill='none' stroke='%230055A0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
}

.n27-checkliste {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
    font-size: 17px;
}

/* Probefahrt: Text links, Formular rechts */
.n27-probefahrt {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    align-items: start;
}

.n27-berater {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
    padding: 20px;
    background: var(--flaeche);
    border-radius: var(--r-gross);
}

.n27-berater img {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 50%;
}

.n27-berater > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 16px;
    color: var(--grau);
}

.n27-berater strong {
    font-size: 20px;
    line-height: 1.25;
    color: var(--text);
}

.n27-berater a {
    margin-top: 6px;
    font-weight: 600;
}

.n27-beraterrolle {
    font-size: 14px;
    font-weight: 600;
    color: var(--akzent);
}

/* Formulare */
.n27-formkarte {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px;
    background: #FFF;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 48px rgba(0, 0, 0, 0.08);
}

.n27-formkarte [hidden] {
    display: none !important;
}

.n27-schritte {
    display: flex;
    gap: 10px;
}

.n27-schritte div {
    flex: 1;
    padding-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: #a1a1a6;
    border-bottom: 3px solid var(--linie-hell);
}

.n27-schritte div.aktiv {
    color: var(--akzent);
    border-bottom-color: var(--akzent);
}

.n27-schritte div.erledigt {
    color: var(--text-2);
    border-bottom-color: #9ab6d6;
}

.n27-lbl {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
}

.n27-inp {
    display: block;
    width: 100%;
    box-sizing: border-box;
    height: 52px;
    margin: 0;
    padding: 0 16px;
    font-family: var(--schrift);
    font-size: 17px;
    color: var(--text);
    background: #FFF;
    border: 1px solid var(--linie);
    border-radius: var(--r-klein);
    transition: border-color 0.2s, box-shadow 0.2s;
}

textarea.n27-inp {
    height: 96px;
    padding: 12px 16px;
    line-height: 1.4;
    resize: vertical;
}

.n27-inp:hover {
    border-color: #a1a1a6;
}

.n27-inp:focus {
    outline: none;
    border-color: var(--akzent);
    box-shadow: 0 0 0 4px var(--akzent-ring);
}

.n27-felder {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.n27-feldganz {
    grid-column: 1 / -1;
}

.n27-wahlliste {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.n27-wahl {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 16px;
    font-family: var(--schrift);
    font-size: 16px;
    line-height: 1.35;
    text-align: left;
    color: var(--text);
    background: #FFF;
    border: 0;
    border-radius: var(--r-klein);
    box-shadow: inset 0 0 0 1px var(--linie);
    cursor: pointer;
    transition: box-shadow 0.2s, background 0.2s;
}

.n27-wahl:hover {
    box-shadow: inset 0 0 0 1px var(--akzent);
}

.n27-wahl small {
    font-size: 14px;
    color: var(--grau);
}

.n27-wahl.gewaehlt {
    color: var(--akzent);
    background: var(--akzent-hell);
    box-shadow: inset 0 0 0 2px var(--akzent);
}

.n27-zusammenfassung {
    margin-bottom: 20px;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--akzent);
    background: var(--akzent-hell);
    border-radius: var(--r-klein);
}

.n27-fehler {
    margin-top: 16px;
    padding: 12px 16px;
    font-size: 16px;
    color: var(--rot);
    background: #fdecee;
    border-radius: var(--r-klein);
}

.n27-fehler p {
    margin: 0;
}

#SeStep2 .n27-btn {
    margin-top: 20px;
}

.n27-kleintext {
    margin: 12px 0 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--grau);
}

.n27-zurueck {
    margin-top: 16px;
    padding: 0;
    font-family: var(--schrift);
    font-size: 15px;
    font-weight: 600;
    color: var(--akzent);
    background: none;
    border: 0;
    cursor: pointer;
}

.n27-laden {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 16px;
    color: var(--grau);
}

.n27-danke {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    text-align: center;
}

.n27-danke strong {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.n27-danke p {
    margin: 0 0 8px 0;
    color: var(--grau);
}

/* Vorteile: Bild-Text-Blöcke untereinander, jeder zweite mit Bild rechts */
.n27-abstand {
    margin-bottom: 32px;
}

.n27-stapel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.n27-bildrechts img {
    order: 2;
}

.n27-bildtext .n27-check {
    font-size: 17px;
}

/* Ausstattungslinien */
.n27-linie {
    gap: 6px;
    padding: 28px;
}

.n27-linienname {
    font-size: 24px;
}

.n27-grau {
    font-size: 15px;
    color: var(--grau);
}

.n27-alterpreis {
    margin-top: 8px;
    font-size: 15px;
    color: var(--grau);
    text-decoration: line-through;
}

.n27-linienpreis {
    font-size: 30px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.n27-linienliste {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--linie-hell);
    font-size: 16px;
}

/* Angebot in Blau */
.n27-angebot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 48px;
    padding: 48px;
    color: #FFF;
    background: linear-gradient(to left, #2563eb 0%, #1e3a8a 100%);
    border-radius: var(--r-gross);
}

.n27-angebot > div:first-child {
    flex: 1 1 420px;
}

.n27-angebot .n27-h2 {
    margin-top: 8px;
    color: #FFF;
}

.n27-angebot .n27-knoepfe {
    margin-top: 0;
}

.n27-angebotkicker {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #c9dcff;
}

.n27-angebottext {
    margin: 12px 0 0 0;
    font-size: 19px;
    color: #dbe6ff;
}

.n27-btn-weiss,
.n27-btn-randweiss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    border-radius: var(--r-klein);
    transition: background 0.2s, color 0.2s;
}

body.n27-neu .n27-btn-weiss {
    color: #1e3a8a;
    background: #FFF;
}

body.n27-neu .n27-btn-weiss:hover {
    background: var(--akzent-hell);
}

body.n27-neu .n27-btn-randweiss {
    padding: 12px 22px;
    color: #FFF;
    border: 2px solid #FFF;
}

body.n27-neu .n27-btn-randweiss:hover {
    color: #1e3a8a;
    background: #FFF;
}

/* Grauer Streifen über die ganze Breite */
.n27-band {
    margin-top: var(--s-8);
    padding: 80px 0;
}

.n27-bandbild {
    width: 100%;
    height: 380px;
    margin-bottom: 16px;
    object-fit: cover;
    border-radius: var(--r-gross);
}

.n27-textkarte {
    gap: 8px;
    padding: 28px;
    box-shadow: none;
}

.n27-textkarte strong {
    font-size: 21px;
}

.n27-textkarte span {
    font-size: 17px;
    color: var(--grau);
}

/* Häufige Fragen */
.n27-schmal {
    max-width: 880px;
}

.n27-fragen details {
    border-top: 1px solid var(--linie-hell);
}

.n27-fragen details:last-child {
    border-bottom: 1px solid var(--linie-hell);
}

.n27-fragen summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    font-size: 19px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.n27-fragen summary::-webkit-details-marker {
    display: none;
}

.n27-fragen summary::after {
    content: "+";
    font-size: 24px;
    line-height: 1;
    color: var(--akzent);
}

.n27-fragen details[open] summary::after {
    content: "–";
}

.n27-fragen details p {
    margin: 0 0 20px 0;
    font-size: 17px;
    color: var(--grau);
}

.n27-rechtstext {
    margin: 40px 0 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--grau);
}

/* Modellseite: Tablet und Handy */
@media (max-width: 960px) {
    .n27-probefahrt { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 900px) {
    .n27-modellnav { display: none; }
    .n27-bildrechts img { order: 0; }
    .n27-modellbild { height: 420px; }
}

@media (max-width: 760px) {
    .n27-modellzeile { gap: 12px; height: 60px; }
    .n27-modellzeile > strong { font-size: 17px; }
    .n27-modellzeile .n27-btn { padding: 12px 16px; font-size: 15px; }
    .n27-modellmarke img { height: 40px; }
    .n27-modellmarke img[src*="kia_logo"] { height: 24px; }
    .n27-anker { scroll-margin-top: 144px; }
    .n27-claim { font-size: 21px; }
    .n27-preis { font-size: 32px; }
    .n27-preis2 { padding-left: 0; border-left: 0; }
    .n27-preisaktion { width: 100%; align-items: stretch; text-align: center; }
    .n27-modellbild { height: 280px; margin-top: 32px; }
    .n27-fakt { padding: 20px; }
    .n27-fakt strong { font-size: 26px; }
    .n27-formkarte { padding: 24px 20px; }
    .n27-felder { grid-template-columns: 1fr; }
    .n27-angebot { padding: 32px 24px; }
    .n27-angebot .n27-knoepfe { width: 100%; }
    .n27-angebot .n27-knoepfe a { flex: 1 1 200px; }
    .n27-band { margin-top: var(--s-7); padding: 56px 0; }
    .n27-bandbild { height: 220px; }
}

@media (max-width: 420px) {
    .n27-wahlliste { grid-template-columns: 1fr; }
    .n27-berater { align-items: flex-start; gap: 16px; }
    .n27-berater img { width: 64px; height: 64px; }
}


/* Inhaltsseiten (Marken, Standorte, Werkstatt, Über uns …)
   ===================================================================================== */

/* Seitenkopf: Pfad, Titel, Einleitung, Knöpfe */
.n27-seitenkopf {
    padding-top: 32px;
}

.n27-seitenkopf .n27-lead {
    max-width: 760px;
    margin-top: 16px;
}

.n27-seitenkopf .n27-knoepfe {
    margin-top: 28px;
}

.n27-seitenkopf .n27-modellmarke img {
    height: 40px;
}

/* Grosses Titelbild unter dem Seitenkopf */
.n27-titelbild {
    width: 100%;
    height: 480px;
    margin-top: 40px;
    object-fit: cover;
    border-radius: var(--r-gross);
}

/* Bild oben in einer Karte, immer gleich hoch */
.n27-kartebild {
    height: 230px;
    object-fit: cover;
}

/* Karten mit Text, Liste oder Kontaktangaben */
.n27-infokarte {
    gap: 6px;
    padding: 28px;
    box-shadow: none;
    background: var(--flaeche);
}

.n27-infokarte h3,
.n27-infokarte > strong {
    margin: 0 0 6px 0;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -0.01em;
    text-align: left;
    color: var(--text);
}

.n27-infokarte p {
    margin: 0;
    font-size: 17px;
    color: var(--text-2);
}

.n27-infokarte .n27-checkliste {
    margin-top: 8px;
    font-size: 16px;
}

.n27-infokarte .n27-knoepfe {
    margin-top: auto;
    padding-top: 16px;
}

/* Rahmen statt grauer Fläche */
.n27-rand {
    background: #FFF;
    box-shadow: inset 0 0 0 1px var(--linie);
}

/* Raster, die auf dem Handy untereinander stehen statt seitlich zu scrollen */
@media (max-width: 960px) {
    .n27-g3.n27-stapelt {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 0;
        padding: 0;
        overflow: visible;
    }
    .n27-g3.n27-stapelt > * {
        flex: none;
    }
}

@media (max-width: 760px) {
    .n27-g3.n27-stapelt {
        grid-template-columns: 1fr;
    }
}

/* Fliesstext (Datenschutz, Leitbild, News) */
.n27-text {
    max-width: 760px;
    overflow-wrap: anywhere;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-2);
}

.n27-text h2 {
    margin: 48px 0 12px 0;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.015em;
    text-align: left;
    color: var(--text);
}

.n27-text h3 {
    margin: 32px 0 8px 0;
    font-size: 21px;
    font-weight: 600;
    text-align: left;
    color: var(--text);
}

.n27-text p,
.n27-text ul,
.n27-text ol {
    margin: 0 0 16px 0;
}

.n27-text ul,
.n27-text ol {
    padding-left: 22px;
}

.n27-text li {
    margin-bottom: 6px;
}

.n27-text img {
    height: auto;
    border-radius: var(--r-gross);
}

.n27-text a {
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

/* Bildergalerie */
.n27-galerie {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.n27-galerie4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.n27-galerie a {
    display: block;
    overflow: hidden;
    border-radius: var(--r-gross);
}

.n27-galerie img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.n27-galerie a:hover img {
    transform: scale(1.03);
}

/* 5 Bilder: erstes Bild über zwei Spalten, gleich hoch wie die anderen */
.n27-galerie5 a:first-child {
    position: relative;
    grid-column: span 2;
}

.n27-galerie5 a:first-child img {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
}

/* Karte (Google Maps) */
.n27-lageplan {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
    border-radius: var(--r-gross);
    background: var(--flaeche);
}

/* Standortseite: Adresse, Öffnungszeiten, Service */
.n27-ortinfo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

.n27-infokarte.n27-hell .n27-wochezeile.heute {
    background: #FFF;
}

.n27-ortinfo .n27-woche {
    margin-top: 4px;
}

.n27-ortinfo .n27-status {
    margin-bottom: 8px;
}

/* Team */
.n27-team {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.n27-person {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.n27-person img {
    width: 100%;
    aspect-ratio: 4 / 5;
    margin-bottom: 14px;
    object-fit: cover;
    object-position: center 20%;
    background: var(--flaeche);
    border-radius: var(--r-gross);
}

.n27-person strong {
    font-size: 19px;
    line-height: 1.25;
}

.n27-person span {
    font-size: 16px;
    line-height: 1.4;
    color: var(--grau);
}

.n27-person .n27-personkontakt {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-top: 8px;
    font-size: 16px;
    font-weight: 600;
}

/* Zeitstrahl (Meilensteine) */
.n27-zeitstrahl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

/* Ungerade Anzahl: der letzte Meilenstein geht über die ganze Breite, damit keine Lücke bleibt */
.n27-zeitstrahl > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    grid-template-columns: 320px minmax(0, 1fr);
}

.n27-meilenstein {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    background: var(--flaeche);
    border-radius: var(--r-gross);
    overflow: hidden;
}

.n27-meilenstein img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
}

.n27-meilenstein div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px;
}

.n27-meilenstein strong {
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--akzent);
}

.n27-meilenstein p {
    margin: 0;
    font-size: 16px;
    color: var(--text-2);
}

/* Auswahl in Formularen (Kontakt) */
.n27-felder select.n27-inp {
    padding-right: 48px;
    -webkit-appearance: none;
            appearance: none;
    background: #FFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%230055A0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 18px center no-repeat;
    cursor: pointer;
}

/* Kontaktwege neben dem Formular */
.n27-kontaktwege {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}

.n27-kontaktweg {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 18px 20px;
    background: var(--flaeche);
    border-radius: var(--r-gross);
    color: var(--text) !important;
}

.n27-kontaktweg span {
    font-size: 15px;
    color: var(--grau);
}

.n27-kontaktweg strong {
    font-size: 19px;
}

a.n27-kontaktweg:hover strong {
    color: var(--akzent);
}

/* Externe Einbindungen (Stellenportal, Newsletter, Carmarket) */
.n27-einbindung {
    min-height: 200px;
}

.n27-einbindung iframe {
    max-width: 100%;
}

/* Inhaltsseiten: Tablet und Handy */
@media (max-width: 1100px) {
    .n27-team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .n27-ortinfo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .n27-ortinfo > :last-child { grid-column: 1 / -1; }
}

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

@media (max-width: 760px) {
    .n27-titelbild { height: 260px; margin-top: 28px; }
    .n27-galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .n27-ungerade a:first-child { grid-column: 1 / -1; }
    .n27-ungerade a:first-child img { aspect-ratio: 16 / 9; }
    .n27-galerie5 a:first-child img { position: static; height: auto; }
    .n27-lageplan { height: 320px; }
    .n27-ortinfo { grid-template-columns: 1fr; }
    .n27-team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .n27-person strong { font-size: 17px; }
    .n27-person span, .n27-person .n27-personkontakt { font-size: 15px; }
    .n27-meilenstein, .n27-zeitstrahl > .n27-meilenstein:last-child { grid-template-columns: 1fr; }
    .n27-meilenstein img { height: 200px; }
    .n27-text { font-size: 17px; }
    .n27-text h2 { font-size: 24px; }
}


/* Alte Seiten: neue Schrift und ruhigere Titel, sonst wie bisher
   ===================================================================================== */
body.n27-alt {
    font-family: var(--schrift);
}

/* Nur Schrift angleichen – Farben bleiben wie auf der alten Seite (z.B. weisse Titel auf Bildern) */
body.n27-alt h1,
body.n27-alt h2 {
    font-family: var(--schrift);
    font-weight: 900;
    letter-spacing: -0.02em;
}

body.n27-alt .button {
    font-family: var(--schrift);
}

/* Die alte Kopfzeile war fix – jetzt läuft der Inhalt direkt unter dem neuen Kopf */
body.n27-alt .firstmainmargin {
    margin-top: 32px !important;
}

html:has(body.n27-alt) {
    background-color: #1d1d1f;
}


/* Reduzierte Bewegung
   ===================================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}


/* Tablet
   ===================================================================================== */
@media (max-width: 1100px) {
    .n27-nurdesktop { display: none !important; }
    .n27-g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .n27-fusslinks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .n27-fussinfo { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .n27-zeiten { grid-column: 1 / -1; max-width: 460px; }
}

@media (max-width: 960px) {
    .n27-g3 {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        margin: 0 -32px;
        padding: 0 32px 8px;
        scroll-padding: 0 32px;
        scrollbar-width: none;
    }
    .n27-g3 > * {
        flex: 0 0 min(74%, 360px);
        scroll-snap-align: start;
    }
}

@media (max-width: 900px) {
    .n27-suchform { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .n27-nav { display: none; }
    .n27-abtablet { display: none !important; }
    .n27-menuknopf { display: inline-flex; }
    .n27-bildtext { grid-template-columns: 1fr; }
    .n27-bildtext > div { padding: 32px; }
}


/* Handy
   ===================================================================================== */
@media (max-width: 760px) {
    .n27-wrap { padding-left: 20px; padding-right: 20px; }
    .n27-h1 { font-size: 42px; }
    .n27-h1 { -webkit-hyphens: manual; hyphens: manual; overflow-wrap: break-word; }
    .n27-h2 { font-size: 30px; }
    .n27-abschnitt { padding-top: var(--s-7); }
    .n27-g2 { grid-template-columns: 1fr; }
    .n27-g3 { margin: 0 -20px; padding: 0 20px 8px; scroll-padding: 0 20px; }
    .n27-g3 > * { flex-basis: 82%; }
    .n27-hero { height: 560px; }
    .n27-herotext { padding-bottom: 96px; }
    .n27-herotext p { font-size: 18px; }
    .n27-suchform { padding: 20px; }
    .n27-fussinfo { grid-template-columns: 1fr; }
    .n27-zeiten { max-width: none; }
}

@media (max-width: 560px) {
    .n27-g4:not(.n27-bleibt2) { grid-template-columns: 1fr; }
    .n27-fusslinks { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .n27-suchform { grid-template-columns: 1fr; }
    .n27-kopfzeile { gap: 12px; }
    .n27-kopfaktionen { gap: 6px; }
    .n27-kopfbtn { padding: 12px 14px; font-size: 15px; }
    .n27-logo img { height: 40px; }
}

@media (max-width: 420px) {
    .n27-h1 { font-size: 36px; }
}

@media (max-width: 370px) {
    .n27-kopfbtn { display: none; }
}

/* Nur für Suchmaschinen und Screenreader sichtbar */
.n27-unsichtbar {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Tabellen im Fliesstext (Datenschutz: Cookies) */
.n27-tabelle {
    margin: 0 0 24px 0;
    overflow-x: auto;
}

.n27-tabelle table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 15px;
}

.n27-tabelle td {
    padding: 10px 12px;
    vertical-align: top;
    border-bottom: 1px solid var(--linie-hell);
}

.n27-tabelle td p {
    margin: 0;
}

.n27-tabelle tr:first-child td {
    color: var(--text);
    background: var(--flaeche);
}

/* Fotos mit Personen ganz zeigen, nie beschneiden (Liste in Add_Function_Bausteine.php) */
img.n27-ganz {
    height: auto !important;
    min-height: 0 !important;
    object-fit: contain !important;
    align-self: center;
}

.n27-meilenstein img.n27-ganz {
    height: auto !important;
}

/* Ansprechpersonen gross oben auf einer Standortseite: Titel links, Person rechts */
.n27-kopfperson {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 48px;
    align-items: end;
}

.n27-ortpersonen {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.n27-berater-gross {
    margin-top: 0;
    padding: 24px;
    gap: 24px;
    box-shadow: inset 0 0 0 2px var(--akzent);
    background: #FFF;
}

.n27-berater-gross img {
    width: 132px;
    height: 132px;
}

.n27-berater-gross strong {
    font-size: 26px;
    line-height: 1.15;
}

.n27-berater-gross span {
    font-size: 17px;
    color: var(--grau);
}

.n27-berater-gross .n27-beraterrolle {
    font-size: 15px;
    font-weight: 600;
    color: var(--akzent);
}

@media (max-width: 960px) {
    .n27-kopfperson { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 560px) {
    .n27-berater-gross { flex-direction: column; align-items: flex-start; padding: 20px; }
    .n27-berater-gross img { width: 112px; height: 112px; }
}

/* Wochentabelle auf schmalen Handys: etwas kleiner, damit Tag und Zeiten nebeneinander Platz haben */
@media (max-width: 560px) {
    .n27-woche { font-size: 15px; column-gap: 12px; }
}

@media (max-width: 380px) {
    .n27-taglang { display: none; }
    .n27-tagkurz { display: inline; }
}

/* Markenseite: Schaufenster
   ===================================================================================== */
.n27-markenkopf {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 48px;
    align-items: center;
}

.n27-markenlogo {
    display: flex;
    align-items: center;
    height: 120px;
    margin-bottom: 24px;
}

.n27-markenlogo img { width: auto; }
.n27-gross-opel   { height: 110px; }
.n27-gross-kia    { width: 220px !important; height: auto; }
.n27-gross-lexus  { height: 120px; }
.n27-gross-toyota { height: 96px; }

.n27-markenbild {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: var(--r-gross);
}

/* Abzeichen «Neu» */
.n27-abzeichen-blau {
    background: var(--akzent);
}

.n27-abzeichen-text {
    align-self: flex-start;
    margin-bottom: 4px;
    padding: 4px 10px;
    font-size: 14px;
    font-weight: 600;
    color: #FFF;
    background: var(--akzent);
    border-radius: var(--r-klein);
}

/* Modellpalette als Gruppen mit Modell-Chips */
/* Gruppen füllen jede Zeile ganz – keine leere Lücke */
.n27-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.n27-palettegruppe {
    flex: 1 1 100%;
    padding: 24px;
    background: var(--flaeche);
    border-radius: var(--r-gross);
}

.n27-palettegruppe h3 {
    margin: 0 0 14px 0;
    font-size: 17px;
    font-weight: 600;
    text-align: left;
    color: var(--grau);
}

.n27-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.n27-chips span,
.n27-chips a {
    display: inline-flex;
    padding: 8px 14px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text) !important;
    background: #FFF;
    border-radius: var(--r-klein);
    box-shadow: inset 0 0 0 1px var(--linie);
}

/* Jedes Modell ist ein Link – alle gleich dargestellt */
.n27-chips a {
    transition: box-shadow 0.15s, color 0.15s;
}

.n27-chips a:hover {
    color: var(--akzent) !important;
    box-shadow: inset 0 0 0 2px var(--akzent);
}

.n27-palettequelle {
    margin: 14px 0 0 0;
    font-size: 15px;
    color: var(--grau);
}

/* «Wo Sie was finden» */
.n27-wokarte {
    color: var(--text) !important;
    transition: box-shadow 0.2s;
}

a.n27-wokarte:hover {
    box-shadow: inset 0 0 0 2px var(--akzent);
}

/* Ansprechpersonen nebeneinander */
.n27-personen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.n27-personen .n27-berater {
    margin-top: 0;
}

/* Spalten passend zur Anzahl, damit keine Person allein in einer Zeile steht */
.n27-personen2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.n27-personen3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) {
    .n27-personen3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
}

@media (max-width: 900px) {
    .n27-markenkopf { grid-template-columns: 1fr; gap: 32px; }
    .n27-markenbild { height: 380px; }
}

@media (max-width: 760px) {
    .n27-markenlogo { height: 90px; margin-bottom: 16px; }
    .n27-gross-opel   { height: 84px; }
    .n27-gross-kia    { width: 170px !important; }
    .n27-gross-lexus  { height: 90px; }
    .n27-gross-toyota { height: 72px; }
    .n27-markenbild { height: 260px; }
    .n27-personen { grid-template-columns: 1fr; }
}

/* Eckdaten: lange Wörter (z.B. «Nutzfahrzeuge») auf schmalen Handys umbrechen statt überlaufen */
.n27-fakt { min-width: 0; }
.n27-fakt strong { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
@media (max-width: 420px) {
    .n27-fakt strong { font-size: 22px; }
}

/* Palette: bei ungerader Anzahl geht das letzte Feld über die ganze Breite (keine Lücke) */
.n27-palette > :last-child:nth-child(odd) {
    flex-basis: 100%;
}


/* =====================================================================================
   Seitenfuss (neu): ein gemeinsames Raster mit vier Spalten
   ===================================================================================== */
.n27-fussraster {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 32px;
    row-gap: 40px;
    padding-top: 64px;
    padding-bottom: 48px;
}

.n27-fussmarke {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.n27-fussmarke p {
    margin: 0;
    max-width: 280px;
}

/* Instagram ganz unten rechts in der Zeile mit Impressum und Datenschutz */
.n27-fuss .n27-fussinsta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

@media (max-width: 760px) {
    .n27-fuss .n27-fussinsta { margin-left: 0; }
}

.n27-fussspalte strong {
    margin-bottom: 4px;
}

/* Untere Zeile: Standorte über zwei Spalten, Öffnungszeiten über zwei Spalten, gleich hoch */
.n27-fussorte {
    grid-column: 1 / 3;
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 12px;
}

.n27-fuss .n27-zeiten {
    grid-column: 3 / 6;
    align-self: stretch;
}

/* Trennlinie über die ganze Breite zwischen Links und Standorten */
.n27-fusslinie {
    grid-column: 1 / -1;
    border-top: 1px solid #424245;
}

.n27-fuss .n27-fussort {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: #2a2a2d;
    border-radius: var(--r-gross);
}

.n27-fussort > div:first-child {
    display: flex;
    flex-direction: column;
}

.n27-fuss a.n27-fussortname {
    margin-bottom: 2px;
    font-weight: 600;
    color: #f5f5f7 !important;
}

.n27-fussortaktion {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
}

.n27-fuss a.n27-fusstel {
    font-size: 17px;
    font-weight: 600;
    color: #f5f5f7 !important;
    white-space: nowrap;
}

.n27-nowrap {
    white-space: nowrap;
}

/* Tablet: oben Logo über die ganze Breite, vier Linkspalten; unten untereinander */
@media (max-width: 1100px) {
    .n27-fussraster { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .n27-fussmarke { grid-column: 1 / -1; }
    .n27-fussmarke p { max-width: 520px; }
    .n27-fussorte { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .n27-fuss .n27-fussort { grid-template-columns: 1fr; align-items: start; }
    .n27-fussortaktion { align-items: flex-start; text-align: left; }
    .n27-fuss .n27-zeiten { grid-column: 1 / -1; max-width: none; }
}

/* Handy: Linkspalten zu zweit, Standorte untereinander */
@media (max-width: 760px) {
    .n27-fussraster { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; padding-top: 48px; }
    .n27-fussmarke { grid-column: 1 / -1; }
    .n27-fussorte { grid-template-columns: 1fr; }
    .n27-fuss .n27-fussort { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
    .n27-fussortaktion { align-items: flex-end; text-align: right; }
}

/* Untere Zeile: Linie gleich breit wie der Inhalt (nicht bis in den Seitenrand) */
.n27-fuss .n27-fussrecht {
    position: relative;
    border-top: 0;
}

.n27-fuss .n27-fussrecht::before {
    content: "";
    position: absolute;
    top: 0;
    left: 32px;
    right: 32px;
    border-top: 1px solid #424245;
}

@media (max-width: 760px) {
    .n27-fuss .n27-fussrecht::before { left: 20px; right: 20px; }
}


/* ===== Kundenstimmen (Google-Bewertungen) ===== */
.n27-sterne {
    color: #E8A100;
    font-size: 17px;
    letter-spacing: 2px;
    line-height: 1;
}

/* Gross auf der Startseite: ein Zitat, Foto der genannten Person */
/* Kasten mit wechselnden Kundenstimmen (Startseite) */
.n27-stimmenbox {
    padding: 48px 56px;
    border-radius: var(--r-gross);
    background: var(--flaeche);
}

/* Alle Stimmen liegen übereinander – der Kasten ist so hoch wie die längste, nichts springt */
.n27-stimmenreihe {
    display: grid;
}

.n27-stimmenreihe > .n27-zitatgross {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .6s ease, transform .6s ease, visibility 0s linear .6s;
}

.n27-stimmenreihe > .n27-zitatgross.aktiv {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .6s ease, transform .6s ease, visibility 0s;
}

.n27-stimmenfuss {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--linie);
}

.n27-stimmenfuss .n27-zitatnoten {
    margin: 0;
    padding: 0;
    border: 0;
}

.n27-stimmenpunkte {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

/* Grosse Klickfläche, kleiner Punkt */
.n27-stimmenpunkte button {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    position: relative;
}

.n27-stimmenpunkte button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 4px;
    background: #c7c7cc;
    transition: width .3s ease, margin .3s ease, background .3s ease;
}

.n27-stimmenpunkte button.aktiv::before {
    width: 22px;
    margin-left: -11px;
    background: var(--akzent);
}

.n27-stimmenpunkte button:focus-visible {
    outline: 2px solid var(--akzent);
    outline-offset: 2px;
    border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
    .n27-stimmenreihe > .n27-zitatgross,
    .n27-stimmenreihe > .n27-zitatgross.aktiv { transition: none; transform: none; }
}

.n27-zitatgross {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    margin: 0;
}
.n27-zitatfoto {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
}
.n27-zitatgross blockquote {
    margin: 14px 0 18px;
}
.n27-zitatgross blockquote p {
    margin: 0;
    max-width: 30em;
    font-size: 28px;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
}
.n27-zitatgross figcaption {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
}
.n27-zitatgross figcaption span {
    color: var(--grau);
    font-size: 15px;
}
.n27-zitatnoten {
    margin: 20px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--linie);
    font-size: 15px;
    color: var(--grau);
}
.n27-zitatnoten a {
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}
.n27-zitatnoten a:hover { color: var(--akzent); }
.n27-zitatnoten .n27-sterne { font-size: 14px; letter-spacing: 0; }

/* Zitat direkt unter der genannten Ansprechperson (Standortseite) */
.n27-ortpersonen .n27-zitat {
    margin: 4px 0 0;
}
.n27-ortpersonen .n27-zitat blockquote p {
    font-size: 18px;
}

/* Kurz: ein Zitat direkt beim passenden Inhalt */
.n27-zitat {
    max-width: 760px;
    margin: 32px 0 0;
    padding: 4px 0 4px 22px;
    border-left: 3px solid var(--akzent);
}
.n27-zitat blockquote {
    margin: 10px 0 10px;
}
.n27-zitat blockquote p {
    margin: 0;
    font-size: 20px;
    line-height: 1.45;
    font-weight: 500;
    color: var(--text);
}
.n27-zitat figcaption {
    font-size: 15px;
    line-height: 1.5;
    color: var(--grau);
}
.n27-zitat figcaption strong { color: var(--text); }
.n27-zitat figcaption a { color: var(--grau); }
.n27-zitat figcaption a:hover { color: var(--akzent); }

@media (max-width: 760px) {
    .n27-stimmenbox { padding: 32px 24px; }
    .n27-zitatgross {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .n27-stimmenfuss { flex-direction: column-reverse; align-items: flex-start; }
    .n27-stimmenpunkte { margin-left: -10px; }
    .n27-zitatfoto { width: 96px; height: 96px; }
    .n27-zitatgross blockquote p { font-size: 21px; }
    .n27-zitat blockquote p { font-size: 18px; }
}


/* ===== Teamseite: Kundenstimmen mit Foto der genannten Person ===== */
.n27-teamstimmen {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.n27-teamstimme {
    gap: 14px;
    margin: 0;
    padding: 24px;
    box-shadow: inset 0 0 0 1px var(--linie);
}

.n27-teamstimmekopf {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--linie-hell);
}

.n27-teamstimmekopf img {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
}

.n27-teamstimmekopf span {
    font-size: 15px;
    line-height: 1.4;
    color: var(--grau);
}

.n27-teamstimmekopf strong {
    display: block;
    font-size: 17px;
    color: var(--text);
}

.n27-teamstimme blockquote {
    flex: 1;
    margin: 0;
}

.n27-teamstimme blockquote p {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
    color: var(--text);
}

.n27-teamstimme figcaption {
    font-size: 15px;
    color: var(--grau);
}

.n27-teamstimme figcaption strong { color: var(--text); }
.n27-teamstimme figcaption a { color: var(--grau); }

@media (max-width: 900px) {
    .n27-teamstimmen { grid-template-columns: 1fr; gap: 14px; }
}


/* ===== Teamseite: aufgelockert ===== */
.n27-familiekopf {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 48px;
    align-items: end;
    margin-bottom: 40px;
}

.n27-familiekopf .n27-lead {
    margin-bottom: 0;
}

.n27-familiekopf .n27-zitat {
    margin-top: 0;
}

.n27-team5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.n27-team4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.n27-team3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Jede zweite Gruppe auf grauem Streifen über die ganze Breite */
.n27-teamband {
    margin-top: var(--s-8);
    background: var(--flaeche);
}

.n27-teamband > .n27-abschnitt {
    padding-top: 64px;
    padding-bottom: 64px;
}

.n27-teamband .n27-person img {
    background: #FFF;
}

.n27-teamgruppe {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

/* Text bleibt beim Scrollen durch die Personen stehen */
.n27-teamgruppeinfo {
    position: sticky;
    top: calc(73px + 32px + env(safe-area-inset-top));
}

.n27-teamgruppeinfo p {
    margin: 12px 0 0 0;
    font-size: 17px;
    line-height: 1.55;
    color: var(--text-2, #3a3a3c);
}

.n27-teamgruppeinfo .n27-zitat {
    margin-top: 28px;
}

.n27-teamgruppeinfo .n27-zitat blockquote p {
    margin: 0;
    font-size: 17px;
    color: var(--text);
}

@media (max-width: 1100px) {

    .n27-teamgruppe { grid-template-columns: 1fr; gap: 28px; }
    .n27-teamgruppeinfo { position: static; max-width: 720px; }
    .n27-familiekopf { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 760px) {
    .n27-team5,
    .n27-team4,
    .n27-team3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* Ungerade Anzahl: letzte Person mittig statt Lücke */
    .n27-team > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc(50% - 8px);
    }
}


/* ===== Familiengeschichte: Zeitreise mit Tiefen-Effekt =====
   Bühne bleibt stehen (sticky), die Schritte darunter geben nur den Scroll-Abstand.
   Links das Bild (nie abgeschnitten), rechts einmal die Jahreszahl mit dem Text,
   am Rand eine Punkteleiste. */
.n27-zeitreise {
    display: grid;
    margin-top: var(--s-8);
    background: #111113;
    color: #FFF;
}

.n27-zeitbuehne,
.n27-zeitschritte {
    grid-area: 1 / 1;
}

.n27-zeitbuehne {
    position: sticky;
    top: calc(73px + env(safe-area-inset-top));
    height: calc(100vh - 73px - env(safe-area-inset-top));
    height: calc(100svh - 73px - env(safe-area-inset-top));
    overflow: hidden;
    perspective: 1400px;
}

.n27-zeitbilder {
    position: absolute;
    top: 10%;
    bottom: 10%;
    left: 8vw;
    right: 46vw;
    transform-style: preserve-3d;
}

.n27-zeitbild {
    position: absolute;
    inset: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.9s ease;
    will-change: transform, opacity;
}

/* Bild in voller Grösse, ohne Ränder und ohne Anschnitt */
.n27-zeitbild img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: var(--r-gross);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.n27-zeitbild.ist-aktiv {
    opacity: 1;
    transform: none;
}

.n27-zeitbild.ist-kommend {
    opacity: 0;
    transform: translate3d(0, 60px, -600px) rotateX(10deg);
}

.n27-zeitbild.ist-vorbei {
    opacity: 0;
    transform: translate3d(0, -80px, 320px) rotateX(-8deg);
}

/* Jahreszahl und Text rechts – die Jahreszahl steht nur hier */
.n27-zeitinfo {
    position: absolute;
    top: 50%;
    left: 58vw;
    right: 5vw;
    transform: translateY(-50%);
}

.n27-zeitjahr {
    font-size: clamp(80px, 11vw, 180px);
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #FFF;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.n27-zeittext {
    max-width: 440px;
    margin: 28px 0 0 0;
    font-size: 20px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.n27-zeitjahr.wechselt,
.n27-zeittext.wechselt {
    opacity: 0;
    transform: translateY(24px);
}

/* Punkteleiste am Rand – das Jahr erscheint nur beim Darüberfahren */
.n27-zeitleiste {
    position: absolute;
    top: 50%;
    left: 2.5vw;
    display: flex;
    flex-direction: column;
    transform: translateY(-50%);
}

.n27-zeitleiste a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    text-decoration: none;
}

.n27-zeitleiste a::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: transform 0.3s, background 0.3s;
}

.n27-zeitleiste a.ist-aktiv::before {
    transform: scale(1.7);
    background: #FFF;
}

.n27-zeitleiste a span {
    position: absolute;
    left: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #FFF;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.n27-zeitleiste a:hover span,
.n27-zeitleiste a:focus-visible span {
    opacity: 1;
}

.n27-zeitleiste a:hover::before {
    background: #FFF;
}

/* Schritte: nur Scroll-Abstand, Text unsichtbar (für Suchmaschinen und Screenreader) */
.n27-zeitschritte {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.n27-zeitschritt {
    min-height: calc(100vh - 73px);
    min-height: calc(100svh - 73px);
    scroll-margin-top: 73px;
}

.n27-zeitkarte {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Tablet */
@media (max-width: 1100px) {
    .n27-zeitbilder { left: 8vw; right: 44vw; }
    .n27-zeitinfo { left: 60vw; }
    .n27-zeittext { font-size: 18px; }
}

/* Handy: Punkte oben, Bild, darunter Jahreszahl und Text */
@media (max-width: 760px) {
    .n27-zeitleiste {
        top: 12px;
        left: 0;
        right: 0;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        padding: 0 16px;
        transform: none;
    }

    .n27-zeitleiste a {
        width: 22px;
        height: 22px;
    }

    .n27-zeitleiste a span {
        display: none;
    }

    .n27-zeitbilder {
        top: 52px;
        bottom: auto;
        left: 16px;
        right: 16px;
        height: 36%;
    }

    .n27-zeitbild {
        align-items: flex-start;
    }

    .n27-zeitinfo {
        top: calc(52px + 36% + 28px);
        left: 20px;
        right: 20px;
        transform: none;
    }

    .n27-zeitjahr {
        font-size: 64px;
    }

    .n27-zeittext {
        margin-top: 14px;
        font-size: 16px;
        line-height: 1.5;
    }

    .n27-zeitschritt {
        min-height: 70vh;
        min-height: 70svh;
    }
}

/* Weniger Bewegung, wenn im System so eingestellt */
@media (prefers-reduced-motion: reduce) {
    .n27-zeitbild,
    .n27-zeitjahr,
    .n27-zeittext { transition: opacity 0.3s ease; }
    .n27-zeitbild.ist-kommend,
    .n27-zeitbild.ist-vorbei { transform: none; }
}


/* Standortkarte auf dem Handy: nichts abschneiden */
.n27-orttext .n27-status {
    align-items: flex-start;
    white-space: normal;
}

.n27-orttext .n27-status::before {
    margin-top: 6px;
}

@media (max-width: 760px) {
    .n27-orttext { padding: 20px 20px 0 20px; }
    .n27-ortzeiten { gap: 2px 10px; font-size: 14px; }
    .n27-ortknoepfe { padding: 20px; gap: 8px; }
    .n27-ortknoepfe a { padding-left: 8px; padding-right: 8px; white-space: nowrap; font-size: 15px; }
}


/* ===== Mobile Raster =====
   Gestapelte Raster (n27-stapelt): auf dem Tablet 2 Spalten – bei ungerader Anzahl geht die letzte Karte
   über die ganze Breite, damit keine Lücke bleibt. */
@media (min-width: 761px) and (max-width: 960px) {
    .n27-g3.n27-stapelt > :last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    /* Standortkarten auf dem Tablet: eine pro Zeile, Bild links, Text rechts */
    .n27-g3.n27-orte {
        grid-template-columns: 1fr;
    }

    .n27-orte > .n27-karte {
        display: grid;
        grid-template-columns: 38% minmax(0, 1fr);
        grid-template-rows: auto 1fr;
    }

    .n27-orte .n27-ortbildlink {
        grid-row: 1 / 3;
    }

    .n27-orte .n27-ortbild {
        height: 100%;
        min-height: 260px;
    }
}

/* Seitlich wischbare Reihen: nächste Karte deutlich angeschnitten, dazu Punkte (main.js: Wischpunkte) */
.n27-punkte {
    display: none;
}

@media (max-width: 960px) {
    /* Bezug für die Position der Karten (main.js: Wischpunkte) */
    .n27-g3:not(.n27-stapelt) {
        position: relative;
    }

    .n27-g3:not(.n27-stapelt) > * {
        flex-basis: min(72%, 360px);
    }

    .n27-punkte {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 14px;
    }

    .n27-punkte button {
        width: 8px;
        height: 8px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #c7c7cc;
        cursor: pointer;
        transition: width 0.2s, background 0.2s;
    }

    .n27-punkte button.ist-aktiv {
        width: 22px;
        border-radius: 4px;
        background: var(--akzent);
    }
}

@media (max-width: 760px) {
    .n27-g3:not(.n27-stapelt) > * {
        flex-basis: 78%;
    }
}


/* Eingebettete Formulare (Probefahrt, Ankauf, Versicherung)
   ===================================================================================== */
.n27-formrahmen {
    display: block;
}

.n27-formframe {
    display: block;
    width: 100%;
    height: 720px;
    border: 0;
    background: transparent;
}

.n27-formlogo {
    display: block;
    height: 26px;
    width: auto;
    margin: 14px 0 0 0;
}

@media (max-width: 600px) {

}

.n27-ablauf {
    list-style: none;
    counter-reset: ablauf;
    margin: 0 0 36px 0;
    padding: 0;
}

.n27-ablauf li {
    counter-increment: ablauf;
    position: relative;
    padding: 0 0 18px 44px;
}

.n27-ablauf li::before {
    content: counter(ablauf);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--akzent-hell, #e8f1fa);
    color: var(--akzent, #0055A0);
    font-weight: 700;
    font-size: 15px;
    line-height: 28px;
    text-align: center;
}

.n27-ablauf strong {
    display: block;
    line-height: 28px;
}

.n27-ablauf span {
    display: block;
    color: var(--grau);
    font-size: 16px;
}



/* Ansprechpersonen in Gruppen (z.B. Verkauf und Service) */
.n27-personengruppe {
    margin: 32px 0 14px 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--grau);
}

.n27-abstand + .n27-personengruppe {
    margin-top: 0;
}

/* Termin buchen: alle Kartenbilder im gleichen Seitenverhältnis (auf jeder Bildschirmbreite gleich),
   so passt auch das Familienfoto ohne abgeschnittene Personen */
.n27-terminkarten .n27-kartebild {
    height: auto;
    aspect-ratio: 16 / 10;
    object-position: center 45%;
}


/* ===== Formularseiten: das Formular ist der Hauptinhalt =====
   Wie bei grossen Anbietern (Probefahrt bei Tesla, Offertrechner der Versicherer):
   graue Bühne gleich unter der Navigation, kurzer Titel, links das Formular auf einer
   weissen Fläche, rechts «So geht es weiter» und Telefon (mitlaufend). Keine Infokarten darunter.
   Verwendet von Probefahrt, Auto verkaufen und Versicherung (DOG_Formular, DOG_FormHilfe). */
.n27-formbuehne {
    background: var(--flaeche);
    padding-bottom: 80px;
}

.n27-formkopf {
    max-width: 760px;
    padding: 24px 0 32px 0;
}

.n27-formkopf .n27-h1 {
    margin: 0;
}

.n27-formkopf .n27-lead {
    margin: 12px 0 0 0;
}

.n27-formraster {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    align-items: start;
}

.n27-formpanel {
    padding: 36px 44px 40px 44px;
    background: #FFF;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 48px rgba(0, 0, 0, 0.08);
}

.n27-formhilfe {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 8px;
}

.n27-formhilfe .n27-h3 {
    margin: 0;
}

.n27-formhilfe .n27-ablauf {
    margin: 0;
}

.n27-formhilfe .n27-checkliste {
    margin: 0;
    font-size: 16px;
}

.n27-formtel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 24px;
    border-top: 1px solid var(--linie);
}

.n27-formtel a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}

.n27-formtel a span {
    color: var(--grau);
    font-weight: 400;
}

.n27-formhilfe .n27-formlogo {
    margin: 0;
}

/* Endet die Seite mit der Formularbühne, schliesst der Seitenfuss direkt an (kein weisser Streifen) */
body:has(.n27-inhalt > .n27-formbuehne:last-child) .n27-fuss {
    margin-top: 0;
}

/* Ansprechperson auf grauer Fläche: weisse Karte */
.n27-flaeche .n27-berater {
    background: #FFF;
}

@media (max-width: 1000px) {
    .n27-formraster { grid-template-columns: 1fr; gap: 40px; }
    .n27-formhilfe { position: static; padding-top: 0; }
}

@media (max-width: 600px) {
    .n27-formbuehne { padding-bottom: 48px; }
    .n27-formkopf { padding: 16px 0 20px 0; }
    .n27-formpanel { padding: 20px 16px 24px 16px; border-radius: 12px; margin: 0 -8px; }
}


/* Telefonnummern unter der Checkliste neben einem Inline-Formular (z.B. bZ4X Touring) */
.n27-probefahrt .n27-formtel {
    margin-top: 28px;
}


/* Werkstatt: Links zur Garantie der Marken (offizielle Seiten der Importeure) */
.n27-garantie {
    margin-top: 40px;
}

.n27-garantielinks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.n27-garantielinks a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text) !important;
    text-decoration: none;
    background: var(--flaeche);
    border-radius: var(--r-gross);
}

.n27-garantielinks a:hover {
    color: var(--akzent) !important;
}

.n27-garantielinks img {
    height: 32px;
    width: auto;
}

.n27-garantielinks img[src*="kia_logo"] {
    height: 18px;
    margin: 7px 0;
}

@media (max-width: 560px) {
    .n27-garantielinks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* Zwei Ansprechpersonen nebeneinander (z.B. Lexus TZ: Baar und Küssnacht) */
.n27-beraterpaar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 32px;
}

.n27-beraterpaar .n27-berater {
    margin-top: 0;
    gap: 14px;
    padding: 16px;
}

.n27-beraterpaar .n27-berater img {
    width: 64px;
    height: 64px;
}

.n27-beraterpaar .n27-berater strong {
    font-size: 18px;
}

@media (max-width: 1100px) and (min-width: 761px) {
    .n27-beraterpaar { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    .n27-beraterpaar { grid-template-columns: 1fr; }
}
