/* ===== AHSW Frontend ===== */
.preview-bar{background:#2d2d2d;color:#ffd;padding:.5rem 1rem;text-align:center;font-size:.9rem}
.preview-bar a{color:#fff;font-weight:600;margin-left:.5rem}

.fe-header{background:var(--dunkel-2);box-shadow:var(--schatten);position:sticky;top:0;z-index:50}
.fe-header-inner{display:flex;flex-direction:column;align-items:center;gap:.5rem;padding:1.1rem 1rem}
.fe-brand{display:block}
.fe-brand img{max-height:88px;max-width:100%}
.fe-brand span{font-size:1.5rem;color:#fff}
.fe-brand strong{color:var(--rot)}
.fe-mainsite{color:#fff;font-weight:600;font-size:.95rem;text-align:center}
.fe-mainsite:hover{color:var(--rot);text-decoration:none}
.fe-tel{font-weight:700;color:#ddd;white-space:nowrap;font-size:.95rem}
.fe-main{min-height:60vh;padding-top:1.5rem;padding-bottom:2rem}
.fe-h1{font-size:1.7rem;margin:0 0 1rem;color:var(--dunkel)}
.fe-back{display:inline-block;margin-bottom:1rem;color:var(--grau);font-weight:600}

.fe-footer{background:var(--dunkel-2);color:#bbb;padding:1.5rem 1rem;margin-top:2rem}
.fe-footer .container{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem}
.fe-footer-links a{color:#ddd;margin-right:1rem}
.fe-footer-copy{color:#888}

/* Filter */
.filter-bar{background:#fff;border-radius:var(--radius);box-shadow:var(--schatten);padding:1rem;margin-bottom:1rem}
.filter-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:.75rem}
.filter-bar label{display:flex;flex-direction:column;font-size:.8rem;font-weight:600;color:var(--grau);gap:.25rem}
.filter-bar select{padding:.55rem;border:2px solid var(--grau-hell);border-radius:var(--radius);font-size:.95rem;font-family:inherit;color:var(--dunkel)}
.filter-actions{display:flex;align-items:flex-end;gap:.75rem;margin-top:.85rem;flex-wrap:wrap}
.sort-label{margin-right:auto}
.result-count{color:var(--grau);font-size:.9rem;margin:.5rem 0 1rem}

/* Fahrzeugraster */
.vehicle-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.25rem}
.vcard{background:#fff;border-radius:var(--radius);box-shadow:var(--schatten);overflow:hidden;display:flex;flex-direction:column;transition:transform .12s,box-shadow .12s}
.vcard:hover{transform:translateY(-3px);box-shadow:0 8px 22px rgba(0,0,0,.13);text-decoration:none}
/* Top-Angebot dezent hervorheben: zarter roter Rand + leichter roter Schimmer
   (höhere Spezifität, damit die allgemeine .vcard-Rahmenregel nicht gewinnt) */
.vcard.vcard--featured{border-color:var(--rot);box-shadow:0 0 0 1px rgba(199,8,27,.12),0 1px 3px rgba(16,24,40,.06)}
.vcard-img{position:relative;aspect-ratio:4/3;background:#eee}
.vcard-img img{width:100%;height:100%;object-fit:cover}
.vcard-noimg{display:flex;align-items:center;justify-content:center;height:100%;color:var(--grau);background:#e9e9e9}
.vcard-badge{position:absolute;top:8px;left:8px;padding:.2rem .6rem;border-radius:4px;font-size:.8rem;font-weight:700;color:#fff}
.vcard-badge.reserved{background:#b8860b}
.vcard-badge.featured{background:var(--rot);left:auto;right:8px}
.vcard-body{padding:.85rem 1rem 1rem;display:flex;flex-direction:column;flex:1}
.vcard-title{font-size:1.1rem;margin:0;color:var(--dunkel)}
.vcard-variant{color:var(--grau);font-size:.85rem;min-height:1.1em;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.vcard-specs{display:flex;flex-wrap:wrap;gap:.4rem .8rem;margin:.6rem 0;color:var(--dunkel);font-size:.85rem}
.vcard-specs span{position:relative}
.vcard-specs span+span::before{content:"·";position:absolute;left:-.5rem;color:var(--grau)}
.vcard-price{margin-top:auto;color:var(--rot);font-weight:700;font-size:1.25rem}

.pagination{display:flex;align-items:center;justify-content:center;gap:1rem;margin-top:1.5rem;color:var(--grau)}

/* Detailseite */
.detail-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:1.5rem;margin-bottom:1.5rem}
.gallery-main{position:relative;background:#eee;border-radius:var(--radius);overflow:hidden;aspect-ratio:4/3}
.gallery-main img{width:100%;height:100%;object-fit:cover}
.gallery-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:.4rem;margin-top:.5rem}
.gthumb{border:2px solid transparent;border-radius:4px;overflow:hidden;padding:0;cursor:pointer;background:none;aspect-ratio:4/3}
.gthumb img{width:100%;height:100%;object-fit:cover}
.gthumb.active{border-color:var(--rot)}
.detail-head{background:#fff;border-radius:var(--radius);box-shadow:var(--schatten);padding:1.25rem}
.detail-variant{color:var(--grau);margin:.2rem 0 1rem}
.detail-price{color:var(--rot);font-weight:700;font-size:1.9rem;margin-bottom:1rem}
.detail-price .vat{display:block;font-size:.8rem;color:var(--grau);font-weight:400}
.detail-quick{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin-top:1.25rem}
.detail-quick div{background:#f6f6f6;border-radius:var(--radius);padding:.6rem .75rem;font-weight:600;color:var(--dunkel)}
.detail-quick span{display:block;font-size:.75rem;color:var(--grau);font-weight:400}

/* Teilen */
.share-row{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;margin-top:1rem;padding-top:.9rem;border-top:1px solid var(--grau-hell)}
.share-lbl{font-size:.8rem;color:var(--grau);text-transform:uppercase;letter-spacing:.04em;width:100%}
.btn--share{padding:.42rem .8rem;font-size:.85rem}

/* Verbrauch/Label in der Seitenspalte (kleiner) */
.detail-consumption{margin-top:1rem}
.detail-consumption .energy-label{font-size:.85rem}
.detail-consumption .el-cn{display:block}
.el-rows--extra{background:#fff;border:1px solid #e0e3e7;border-radius:10px;padding:.6rem .8rem;margin-bottom:.6rem}

/* Technische Daten zweispaltig (Desktop) */
.spec-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 2.2rem;margin:0}
.spec-grid .sp{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;
  padding:.5rem 0;border-bottom:1px solid #f0f1f3}
.spec-grid dt{color:var(--grau);font-size:.92rem}
.spec-grid dd{margin:0;font-weight:600;text-align:right;white-space:nowrap}
@media (max-width:700px){.spec-grid{grid-template-columns:1fr}}

.detail-section{background:#fff;border-radius:var(--radius);box-shadow:var(--schatten);padding:1.25rem;margin-bottom:1.25rem}
.detail-section h2{margin:0 0 1rem;font-size:1.3rem;border-bottom:2px solid var(--grau-hell);padding-bottom:.5rem}
.spec-table{width:100%;border-collapse:collapse}
.spec-table th{text-align:left;color:var(--grau);font-weight:600;padding:.5rem .5rem .5rem 0;width:45%;vertical-align:top;font-size:.95rem}
.spec-table td{padding:.5rem 0;border-bottom:1px solid #f0f0f0}
.feature-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:.4rem}
.feature-list li{padding-left:1.4rem;position:relative}
.feature-list li::before{content:"✓";position:absolute;left:0;color:var(--rot);font-weight:700}
.detail-desc{white-space:pre-line;line-height:1.7}
.wltp-note{margin-top:1rem;padding-top:.85rem;border-top:1px solid var(--grau-hell);
  font-size:.78rem;line-height:1.5;color:var(--grau)}
.wltp-note a{color:var(--grau);text-decoration:underline}

/* Anfrageformular */
/* Honeypot — für ALLE Formulare unsichtbar (nicht nur das Anfrageformular) */
.hp{position:absolute;left:-9999px;height:0;width:0;overflow:hidden}
.inquiry-form .consent{font-weight:400;font-size:.9rem;align-items:flex-start;margin-top:.5rem}
.inquiry-form .consent input{margin-top:.2rem}

@media (max-width:820px){
  .detail-grid{grid-template-columns:1fr}
}
@media (max-width:600px){
  .fe-footer .container{flex-direction:column}
  .detail-quick{grid-template-columns:1fr 1fr}
}

/* ---------- Streichpreis (gesenkter Preis) ---------- */
.price-old{text-decoration:line-through;color:#8a8a8a;font-weight:500}
.vcard-price .price-old{display:block;font-size:.8rem;line-height:1.2;margin-bottom:.05rem}
.detail-price-old{display:flex;flex-wrap:wrap;align-items:baseline;gap:.5rem;margin-bottom:.15rem}
.detail-price-old .price-old{font-size:1.05rem}
.price-save{background:#c7081b;color:#fff;border-radius:4px;padding:.05rem .4rem;font-size:.8rem;font-weight:700;white-space:nowrap}

.price-low30{display:block;font-size:.72rem;line-height:1.35;color:#6b7280;font-weight:400;margin-top:.25rem}
.detail-price .price-low30{font-size:.75rem;margin-top:.35rem}

/* ---------- Energielabel in der Trefferliste (Pflichtangaben-Minimum) ---------- */
.el-list{display:flex;flex-wrap:wrap;align-items:center;gap:.3rem .45rem;margin-top:.55rem;
  padding-top:.5rem;border-top:1px solid #ececef}
.el-badge{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;
  min-width:1.35rem;height:1.35rem;padding:0 .3rem;border-radius:3px;
  font-size:.78rem;font-weight:700;color:#fff;line-height:1}
.el-figures{font-size:.72rem;line-height:1.35;color:#5b6270}
.el-figures--dis,.el-figures--src{flex:0 0 100%;color:#8b9099;font-size:.68rem}
.el-badge.el-c--C,.el-badge.el-c--D{color:#2d2d2d}

/* PDF-Exposé-Button */
.btn--pdf{display:flex;align-items:center;justify-content:center;gap:.45rem;margin-top:.75rem}
.btn--pdf svg{width:17px;height:17px;flex:0 0 auto}

/* ==========================================================================
   Frontend-Überarbeitung: ruhigeres, moderneres Erscheinungsbild
   ========================================================================== */

/* Weichere Karten, feinere Rahmen statt harter Schatten */
.filter-bar,.vcard,.detail-head,.detail-section,.card-tile{
  border:1px solid #e6e8ec;
  box-shadow:0 1px 2px rgba(16,24,40,.04),0 1px 3px rgba(16,24,40,.05);
}
.fe-h1{font-size:1.85rem;font-weight:700;letter-spacing:-.015em}
.fe-main{padding-top:1.25rem}

/* ---------- Blätter-Leiste (oben + unten) ---------- */
.fe-nav{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;margin-bottom:1.15rem}
.fe-nav--bottom{margin:1.5rem 0 .5rem;justify-content:center}
.fe-nav-pager{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-left:auto}
.fe-nav--bottom .fe-nav-pager{margin:0}
.fe-nav-count{display:flex;flex-direction:column;align-items:center;line-height:1.2;
  padding:0 .7rem;color:var(--dunkel);font-size:.95rem;white-space:nowrap}
.fe-nav-count .cnt{white-space:nowrap}
.fe-nav-count strong{font-weight:800}
.fe-nav-count small{color:var(--grau);font-size:.7rem;text-transform:uppercase;letter-spacing:.04em}
.btn--ico{display:inline-flex;align-items:center;gap:.4rem;padding:.5rem .9rem;font-size:.9rem}
.btn--ico svg{width:16px;height:16px;flex:0 0 auto}
.btn--ico.is-off{opacity:.4;cursor:default;pointer-events:none}
@media (max-width:620px){
  .fe-nav{flex-direction:column;align-items:stretch}
  .fe-nav-pager{margin-left:0;justify-content:space-between}
  .btn--ico span{display:none}
  .btn--ico.js-keep span,.fe-nav>.btn--ico span{display:inline}
}

/* ---------- Detail-Raster: 2 Spalten × 2 Reihen ---------- */
.detail-grid{align-items:start;gap:1.25rem}
.detail-gallery{grid-column:1;grid-row:1}
.detail-head{grid-column:2;grid-row:1}
.detail-specs{grid-column:1;grid-row:2}
.detail-side{grid-column:2;grid-row:2;display:flex;flex-direction:column;gap:1.25rem}

.card-tile{background:#fff;border-radius:var(--radius);padding:1.15rem 1.25rem}
.card-tile h2{margin:0 0 .8rem;font-size:1.12rem;font-weight:700;letter-spacing:-.01em;
  padding-bottom:.5rem;border-bottom:1px solid #eceef1}
.tile-note{margin:.7rem 0 0;font-size:.72rem;line-height:1.45;color:var(--grau)}

/* Kompakte Datenzeilen */
.spec-grid--tight .sp{padding:.34rem 0;font-size:.9rem}
.spec-grid--tight dt{font-size:.85rem}
.spec-grid--one{grid-template-columns:1fr;gap:0}
.spec-grid--one dd{white-space:normal}

/* ---------- Kopf-/Preiskachel ---------- */
.detail-head{padding:1.4rem}
.detail-head .fe-h1{font-family:var(--font-display);font-size:2rem;font-weight:900;letter-spacing:.005em;text-transform:uppercase;margin:0;line-height:1.1}
.detail-variant{margin:.1rem 0 1.1rem;font-size:1rem;color:#6b7280}
.detail-price{color:var(--dunkel);font-weight:800;font-size:2.1rem;letter-spacing:-.02em;margin-bottom:1.1rem}
.detail-price .vat{font-weight:400;font-size:.78rem;margin-top:.2rem}
.detail-quick div{background:#f7f8fa;border:1px solid #eef0f3}

/* Teilen-Buttons mit Icon */
.btn--share{display:inline-flex;align-items:center;gap:.4rem;padding:.45rem .8rem;font-size:.85rem}
.btn--share svg{width:15px;height:15px;flex:0 0 auto}

/* Energielabel-Kachel */
.detail-consumption{margin-top:0}
.detail-consumption .energy-label{font-size:.88rem}

/* Kachel-Typografie in der Liste */
.vcard-body{padding:.9rem 1rem 1.05rem}
.vcard-title{font-size:1.12rem;font-weight:800;letter-spacing:-.01em;line-height:1.25}
.vcard-variant{margin-top:.05rem;font-size:.84rem}
.vcard-price{color:var(--dunkel);font-family:var(--font-display);font-weight:900;font-size:calc(1.55rem + 2px);letter-spacing:0;padding-top:.55rem}

@media (max-width:820px){
  .detail-gallery,.detail-head,.detail-specs,.detail-side{grid-column:1;grid-row:auto}
}

/* ==========================================================================
   Fahrzeugkacheln in der Liste: nur so hoch wie der Inhalt, engere Zeilen
   ========================================================================== */
.vehicle-grid{align-items:start}
.vcard{height:auto}
.vcard-body{display:block;flex:none;padding:.7rem .85rem .8rem;line-height:1.15}

.vcard-title{font-size:1.08rem;line-height:1.15;margin:0}
.vcard-variant{margin:.05rem 0 .45rem;font-size:.82rem;line-height:1.15;min-height:0}

/* EZ – km  /  Antriebsart – PS (kW) */
.vcard-specs{display:grid;grid-template-columns:1fr 1fr;gap:.1rem .6rem;margin:0 0 .45rem;
  font-size:.84rem;line-height:1.15;color:var(--dunkel)}
.vcard-specs span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vcard-specs span+span::before{content:none}

/* Preis direkt unter den Eckdaten */
.vcard-price{margin:0;padding:.15rem 0 0;line-height:1.1;font-size:calc(1.55rem + 2px);font-family:'Source Sans 3',var(--font);font-weight:900;letter-spacing:-.02em}
.vcard-price .price-old{font-size:.78rem;line-height:1.15;margin-bottom:0}
.vcard-price .price-low30{font-size:.68rem;line-height:1.25;margin-top:.12rem}

/* Verbrauchsblock: farbiger Buchstabe links, Angaben rechts bündig */
.el-list{display:flex;align-items:flex-start;gap:.5rem;margin-top:.5rem;
  padding-top:.45rem;border-top:1px solid #ececef}
/* Ohne Klassen-Buchstaben: Platzhalter, damit die Angaben über alle Kacheln fluchten */
.el-list--noclass::before{content:"";flex:0 0 1.5rem}
.el-badge{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;
  width:1.5rem;height:1.5rem;border-radius:4px;font-size:.85rem;font-weight:800;color:#fff;line-height:1}
.el-figures{display:flex;flex-direction:column;min-width:0;flex:1}
.el-fig{font-size:.72rem;line-height:1.25;color:#5b6270}
.el-fig--src{color:#9aa0a8;font-size:.66rem;margin-top:.1rem}

/* ==========================================================================
   Kacheln: gleiche Höhe je Zeile (freier Raum unten), große Top-Angebot-Kachel
   ========================================================================== */
.vehicle-grid{align-items:stretch}
.vcard{height:100%;display:flex;flex-direction:column}
.vcard-img{flex:0 0 auto}
.vcard-body{flex:0 0 auto}   /* Inhalt oben, Luft bleibt unten */

/* Top-Angebot in doppelter Größe: 2 Spalten × 2 Zeilen, oben links */
.vcard--xl{grid-column:span 2;grid-row:span 2}
.vcard--xl .vcard-img{flex:1 1 auto;aspect-ratio:auto;min-height:16rem}
.vcard--xl .vcard-body{padding:1rem 1.15rem 1.15rem}
.vcard--xl .vcard-title{font-size:1.6rem}
.vcard--xl .vcard-variant{font-size:.95rem;margin-bottom:.6rem}
.vcard--xl .vcard-specs{font-size:.95rem;gap:.15rem 1.2rem;margin-bottom:.6rem}
.vcard--xl .vcard-price{font-size:1.9rem}
.vcard--xl .vcard-badge.featured{font-size:.9rem;padding:.3rem .8rem}
.vcard--xl .el-fig{font-size:.78rem}
.vcard--xl .el-badge{width:1.8rem;height:1.8rem;font-size:1rem}

/* Auf schmalen Bildschirmen wieder normale Kachelgröße */
@media (max-width:700px){
  .vcard--xl{grid-column:span 1;grid-row:span 1}
  .vcard--xl .vcard-img{flex:0 0 auto;aspect-ratio:4/3;min-height:0}
  .vcard--xl .vcard-title{font-size:1.08rem}
  .vcard--xl .vcard-price{font-size:1.3rem}
}

/* Große Top-Angebot-Kachel: Hauptbild voll + drei kleinere darunter */
.vcard--xl .vcard-img{display:flex}
.xl-gallery{display:flex;flex-direction:column;width:100%;min-height:0}
.xl-main{flex:1 1 auto;min-height:14rem;background:#eee}
.xl-main img{width:100%;height:100%;object-fit:cover;display:block}
.xl-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;background:#fff;padding-top:3px}
.xl-strip img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;background:#eee}
@media (max-width:700px){
  .vcard--xl .xl-main{min-height:0;aspect-ratio:4/3}
  .vcard--xl .xl-strip{display:none}
}

/* ==========================================================================
   Kachel-Textbereich: leicht grau hinterlegt, Eckdaten mit Bezeichnern
   ========================================================================== */
.vcard-body{background:linear-gradient(180deg,#fbfbfc 0%,#f1f2f5 100%);border-top:1px solid #ebedf0}
.vcard--xl .vcard-body{background:linear-gradient(180deg,#fbfbfc 0%,#eef0f3 100%)}

/* EZ / Laufleistung mit Bezeichner, Werte fett */
.vcard-specs span{display:flex;flex-wrap:wrap;align-items:baseline;gap:.05rem .35rem;white-space:normal}
.vcard-specs .lbl{font-style:normal;font-size:.72rem;color:var(--grau);line-height:1.15}
.vcard-specs b{font-weight:700;white-space:nowrap}
.vcard--xl .vcard-specs .lbl{font-size:.82rem}

/* Trennlinien im Textbereich an den grauen Grund anpassen */
.vcard-body .el-list{border-top-color:#dfe2e6}

/* Nachjustierung: grauer Grund etwas sichtbarer, Eckdaten-Zeilen umbruchsicher */
.vcard-body{background:linear-gradient(180deg,#f7f8fa 0%,#eceef2 100%)}
.vcard--xl .vcard-body{background:linear-gradient(180deg,#f7f8fa 0%,#e8ebef 100%)}
.vcard-specs{grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:.1rem .5rem}
.vcard-specs .lbl{font-size:.68rem;flex:0 0 auto}
.vcard-specs span{flex-wrap:nowrap}
.vcard-specs b{font-size:.86rem;min-width:0;overflow:hidden;text-overflow:ellipsis}
.vcard--xl .vcard-specs b{font-size:1rem}

/* Der graue Textbereich füllt die Restfläche der Kachel (Inhalt bleibt oben) */
.vcard-body{flex:1 1 auto}

/* Teilen-Buttons auf volle Breite — drei gleiche Spalten wie der PDF-Button darunter */
.share-row{display:grid;grid-template-columns:repeat(3,1fr);gap:.4rem;align-items:stretch}
.share-lbl{grid-column:1 / -1}
.share-row .btn--share{width:100%;justify-content:center;padding:.42rem .5rem;font-size:.82rem}
.share-row .btn--share span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:420px){
  .share-row{grid-template-columns:1fr 1fr}
  .share-row .btn--share:first-of-type{grid-column:1 / -1}
}

/* ==========================================================================
   Preis im grauen Kasten · Untertitel (Kurzausstattung)
   ========================================================================== */
.detail-subtitle{margin:.15rem 0 0;font-size:.88rem;line-height:1.35;color:#6b7280}
.detail-head .detail-variant{margin-bottom:.15rem}

.price-box{background:#f6f7fa;border:1px solid #e6e8ec;border-radius:var(--radius);
  padding:.75rem .9rem;margin:.9rem 0 1.1rem}
.price-box .detail-price{margin:0;font-family:'Source Sans 3',var(--font);font-weight:900;letter-spacing:-.02em;line-height:1.05;font-size:2.2rem}
.price-box .vat{display:block;font-size:.78rem;color:var(--grau);font-weight:400;margin-top:.1rem}
.price-box .detail-price-old{margin-bottom:.1rem}
.price-box .price-low30{margin-top:.35rem}

/* Untertitel in der Trefferliste */
.vcard-subtitle{font-size:.78rem;line-height:1.3;color:#6b7280;margin:0 0 .4rem;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* ==========================================================================
   Such-/Filtermaske — ruhiger, edler, großzügiger
   ========================================================================== */
.filter-bar{
  background:linear-gradient(180deg,#ffffff 0%,#fafbfc 100%);
  border:1px solid #e3e6ea;border-radius:14px;
  box-shadow:0 1px 2px rgba(16,24,40,.03),0 6px 20px rgba(16,24,40,.05);
  padding:1.35rem 1.5rem 1.15rem;margin-bottom:1.5rem
}

/* Kopfzeile im Filterblock */
.filter-head{display:flex;align-items:center;gap:.6rem;margin:0 0 1.1rem;
  padding-bottom:.85rem;border-bottom:1px solid #ebeef1}
.filter-head-ic{display:inline-flex;align-items:center;justify-content:center;
  width:30px;height:30px;flex:0 0 30px;border-radius:9px;
  background:#f2f4f7;color:var(--rot)}
.filter-head-ic svg{width:17px;height:17px}
.filter-head h2{margin:0;font-size:1rem;font-weight:700;letter-spacing:-.01em;color:var(--dunkel)}
.filter-head-count{margin-left:auto;font-size:.82rem;color:var(--grau);
  background:#f2f4f7;border-radius:999px;padding:.2rem .75rem;font-weight:300;white-space:nowrap}
.filter-head-count strong{font-weight:700;font-size:calc(1em + 2px)}

.filter-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:.85rem 1rem}

.filter-bar label{gap:.35rem;font-size:.7rem;font-weight:700;
  text-transform:uppercase;letter-spacing:.07em;color:#8b9099}

/* Auswahlfelder: eigener Pfeil, mehr Luft, dezenter Rahmen */
.filter-bar select{
  -webkit-appearance:none;appearance:none;
  padding:.72rem 2.3rem .72rem 2.45rem;
  border:1px solid #dde1e6;border-radius:10px;
  background-color:#fff;
  background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b9099' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"),var(--fic,none);
  background-repeat:no-repeat,no-repeat;background-position:right .8rem center,left .82rem center;background-size:15px 15px,15px 15px;
  font-size:.94rem;font-family:inherit;color:var(--dunkel);line-height:1.35;
  cursor:pointer;transition:border-color .12s,box-shadow .12s,background-color .12s
}
.filter-bar select:hover{border-color:#c3c9d1}
.filter-bar select:focus{outline:none;border-color:var(--rot);
  box-shadow:0 0 0 3px rgba(199,8,27,.12)}

/* Aktionszeile abgesetzt */
.filter-actions{margin-top:1.15rem;padding-top:.95rem;border-top:1px solid #ebeef1;
  align-items:center;gap:.6rem}
/* Höhere Spezifität nötig: .filter-bar label setzt sonst column durch */
.filter-bar .sort-label{flex-direction:row;align-items:center;gap:.7rem;margin-right:auto}
.filter-bar .sort-label select{min-width:12rem}
.filter-actions .btn{padding:.6rem 1.2rem .6rem 1.05rem;font-size:.92rem}

@media (max-width:600px){
  .filter-bar{padding:1.1rem 1rem 1rem}
  .filter-bar .sort-label{flex-direction:column;align-items:flex-start;width:100%;margin-right:0}
  .filter-bar .sort-label select{width:100%}
  .filter-actions .btn{flex:1}
}

/* Dankesseite nach abgeschickter Kaufanfrage */
.thanks{text-align:center;padding:1.5rem .5rem 1rem}
.thanks-lead{margin:0;font-size:1.35rem;font-weight:800;color:var(--dunkel);letter-spacing:-.01em}
.thanks-sub{margin:.5rem auto 0;max-width:34rem;color:var(--grau);font-size:.95rem;line-height:1.6}
.thanks-thumb{display:block;margin:1.5rem auto .5rem;width:96px;height:96px;color:#1faa4b}
.thanks-back{margin:1.25rem 0 0}
@media (max-width:600px){.thanks-thumb{width:76px;height:76px}}

/* ==========================================================================
   „Dieses Fahrzeug merken“ — Button und modales Fenster
   ========================================================================== */
.btn--remember{display:flex;align-items:center;justify-content:center;gap:.45rem;margin-top:.5rem}
.btn--remember svg{width:17px;height:17px;flex:0 0 auto}

.rm-backdrop{position:fixed;inset:0;z-index:200;background:rgba(20,22,26,.55);
  display:flex;align-items:center;justify-content:center;padding:1rem;overflow-y:auto}
.rm-backdrop[hidden]{display:none}
.rm-box{position:relative;background:#fff;border-radius:14px;max-width:33rem;width:100%;
  padding:1.6rem 1.6rem 1.4rem;box-shadow:0 20px 50px rgba(0,0,0,.28)}
.rm-close{position:absolute;top:.5rem;right:.7rem;background:none;border:0;font-size:1.7rem;
  line-height:1;color:var(--grau);cursor:pointer;padding:.2rem .4rem}
.rm-close:hover{color:var(--dunkel)}
.rm-title{margin:0 0 .6rem;font-size:1.3rem;font-weight:800;letter-spacing:-.01em}
.rm-lead{margin:0 0 .8rem;font-size:.95rem;line-height:1.6;color:#4a4f57}
.rm-points{margin:0 0 1.1rem;padding:0;list-style:none;background:#f6f7fa;
  border:1px solid #e6e8ec;border-radius:10px;padding:.75rem .9rem}
.rm-points li{position:relative;padding-left:1.5rem;font-size:.92rem;line-height:1.55}
.rm-points li+li{margin-top:.3rem}
.rm-points li::before{content:"✓";position:absolute;left:0;color:#1faa4b;font-weight:700}
.rm-msg{margin:.2rem 0 .8rem;padding:.6rem .8rem;border-radius:8px;font-size:.9rem;line-height:1.5}
.rm-msg--ok{background:#e9f7ee;color:#14682f;border:1px solid #bfe6cd}
.rm-msg--error{background:#fdecee;color:#8a1020;border:1px solid #f3c4cb}
.rm-note{margin:1rem 0 0;font-size:.76rem;line-height:1.55;color:var(--grau)}
.rm-note a{color:var(--grau);text-decoration:underline}
@media (max-width:600px){.rm-box{padding:1.3rem 1.1rem 1.1rem}}

/* ==========================================================================
   Fahrzeug nicht mehr verfügbar
   ========================================================================== */
.gone{background:#fff;border:1px solid #e6e8ec;border-radius:14px;
  box-shadow:0 1px 2px rgba(16,24,40,.03),0 6px 20px rgba(16,24,40,.05);
  max-width:40rem;margin:1.5rem auto 2.5rem;padding:2.5rem 1.75rem 2rem;text-align:center}
.gone-face{display:block;width:130px;height:130px;margin:0 auto 1.4rem;color:var(--rot)}
.gone-title{margin:0;font-size:1.5rem;font-weight:800;letter-spacing:-.015em;line-height:1.25;color:var(--dunkel)}
.gone-text{margin:.85rem auto 0;max-width:32rem;color:#5b6270;font-size:.98rem;line-height:1.65}
.gone-actions{margin:1.6rem 0 0}
.gone-actions .btn{padding:.6rem 1.4rem .6rem 1.25rem;font-size:.98rem}
@media (max-width:600px){
  .gone{padding:2rem 1.1rem 1.6rem;margin-top:1rem}
  .gone-face{width:104px;height:104px}
  .gone-title{font-size:1.28rem}
}

/* Vorschau-Hinweis bei unveröffentlichten Fahrzeugen (nur für Angemeldete sichtbar) */
.draft-note{background:#fff8e6;border:1px solid #f0dCA6;border-left:4px solid #d9a441;
  border-radius:10px;padding:.75rem 1rem;margin:0 0 1.1rem;font-size:.92rem;line-height:1.55;color:#6b5320}
.draft-note strong{color:#4a3a12}
.draft-note a{margin-left:.4rem;font-weight:600;color:#8a6a1a;text-decoration:underline}

/* ==========================================================================
   Lightbox-Diashow (nur Desktop)
   ========================================================================== */
.gallery-zoom{position:absolute;right:10px;bottom:10px;display:none;
  width:34px;height:34px;align-items:center;justify-content:center;
  background:rgba(20,22,26,.6);color:#fff;border-radius:8px;pointer-events:none}
.gallery-zoom svg{width:18px;height:18px}
/* Hinweis + Zeigefinger nur, wo die Lightbox auch wirklich funktioniert */
@media (min-width:821px) and (pointer:fine){
  .gallery-main{cursor:zoom-in}
  .gallery-main .gallery-zoom{display:flex}
}

.lb{position:fixed;inset:0;z-index:100000;background:rgba(12,14,18,.94);
  display:flex;flex-direction:column;align-items:center;justify-content:center}
.lb[hidden]{display:none}
.lb-stage{position:relative;flex:1;width:100%;display:flex;align-items:center;
  justify-content:center;min-height:0;padding:3rem 1.5rem .5rem}
.lb-img{max-width:100%;max-height:100%;object-fit:contain;border-radius:4px;
  box-shadow:0 10px 40px rgba(0,0,0,.5)}
.lb-close{position:fixed;top:.6rem;right:1rem;z-index:10;background:none;border:0;color:#fff;
  font-size:2.3rem;line-height:1;cursor:pointer;opacity:.85;padding:.1rem .55rem}
.lb-close:hover{opacity:1}
/* Navigationsleiste unter dem Bild */
.lb-bar{flex:0 0 auto;display:flex;align-items:center;justify-content:center;gap:1.25rem;
  padding:.35rem 1rem .15rem}
.lb-btn{background:rgba(255,255,255,.14);border:0;color:#fff;font:inherit;font-size:.92rem;
  font-weight:600;padding:.55rem 1.1rem;border-radius:8px;cursor:pointer;transition:background .12s;
  display:inline-flex;align-items:center}
.lb-btn:hover{background:rgba(255,255,255,.28)}
.lb-counter{color:#cfd2d8;font-size:.9rem;letter-spacing:.04em;min-width:4.5rem;text-align:center}
.lb-strip{flex:0 0 auto;display:flex;gap:.4rem;padding:.7rem 1rem 1rem;max-width:100%;
  overflow-x:auto;justify-content:center}
.lb-thumb{flex:0 0 auto;width:78px;height:56px;padding:0;border:2px solid transparent;
  border-radius:5px;overflow:hidden;background:none;cursor:pointer;opacity:.6;transition:opacity .12s}
.lb-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.lb-thumb:hover{opacity:.9}
.lb-thumb.is-cur{opacity:1;border-color:var(--rot)}
/* Sicherheitsnetz: Lightbox auf schmalen Bildschirmen nie zeigen */
@media (max-width:820px){ .lb{display:none !important} }

/* ==========================================================================
   Wasserzeichen als Overlay (statt eingebrannt) — sitzt immer sichtbar unten rechts
   ========================================================================== */
.vcard-img,.gallery-main,.xl-main{position:relative}
/* img.img-wm + Container-Scope schlagen die generische .gallery-main img / .vcard-img img Regel */
.gallery-main img.img-wm,.xl-main img.img-wm,.vcard-img img.img-wm{
  position:absolute;right:3.2%;bottom:3.2%;width:18%;max-width:112px;height:auto;
  object-fit:contain;pointer-events:none;user-select:none;opacity:.92;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.4));z-index:2}
.vcard-img img.img-wm{width:24%;max-width:76px;right:4%;bottom:4%}
/* Lightbox: über dem eingepassten Bild, an der Bühne unten rechts */
.lb-wm{position:absolute;right:1.5rem;bottom:1.2rem;width:12%;max-width:143px;height:auto;
  object-fit:contain;pointer-events:none;opacity:.92;filter:drop-shadow(0 1px 3px rgba(0,0,0,.5));z-index:2}

/* ==========================================================================
   Verkaufte Fahrzeuge: Stempel übers Bild + Hinweis statt Anfrage-Button
   ========================================================================== */
.sold-stamp{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotate(-9deg);
  z-index:3;pointer-events:none;
  background:rgba(199,8,27,.92);color:#fff;font-weight:800;letter-spacing:.06em;
  text-transform:uppercase;font-size:1.7rem;padding:.35rem 1.6rem;border-radius:8px;
  border:3px solid rgba(255,255,255,.9);box-shadow:0 4px 18px rgba(0,0,0,.35)}
.sold-stamp--card{font-size:1.05rem;padding:.25rem 1rem;border-width:2px}
/* Bild verkaufter Fahrzeuge leicht zurücknehmen */
.gallery-main:has(.sold-stamp) #gmain,
.vcard-img:has(.sold-stamp--card) img{filter:grayscale(.35) brightness(.94)}

.sold-note{background:#fdecee;border:1px solid #f3c4cb;border-left:4px solid var(--rot);
  border-radius:10px;padding:.8rem 1rem;color:#8a1020;font-size:.95rem;line-height:1.5;margin-top:.25rem}
.sold-note strong{color:var(--rot)}

/* ==========================================================================
   Fahrzeugkachel — Titel fett/Groß, graues Band, Icon-Fakten
   ========================================================================== */
/* Titel gemeinsam mit Untertitel auf dem grauen Band, kompakter Abstand */
.vcard-title{font-family:var(--font-display);font-weight:800;letter-spacing:.005em;text-transform:uppercase;
  font-size:calc(1.12rem + 4px);line-height:1.12;
  background:#eef0f3;margin:0 -.85rem 0;padding:.42rem .85rem .16rem}
/* Kürzung im inneren span, damit der Titel selbst voll überlaufen darf
   (Firefox lässt negative Ränder bei overflow:hidden sonst nicht bleeden). */
.vcard-title span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Graues Band schließt direkt an den Titel an (durchgehender grauer Block) */
.vcard-band{background:#eef0f3;margin:0 -.85rem .55rem;padding:0 .85rem .42rem;min-height:0}
.vcard-band .vcard-variant{margin:0;font-size:.86rem;line-height:1.25;color:var(--dunkel);
  font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vcard-band .vcard-subtitle{margin:.06rem 0 0;font-size:.76rem;line-height:1.3;color:#6b7280;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* Fakten: zwei Spalten, je zwei Zeilen, linksbündig */
.vcard-facts{display:flex;flex-direction:column;gap:.32rem;margin:.1rem 0 .6rem}
.vf{display:flex;align-items:flex-start;gap:.4rem;font-size:calc(.85rem - 1px);color:var(--dunkel);min-width:0}
.vf-ic{flex:0 0 15px;width:15px;height:15px;color:inherit;display:inline-flex;margin-top:.05rem}
.vf-ic svg{width:15px;height:15px;display:block}
.vf b{font-weight:700;line-height:1.25;min-width:0}

/* Große Top-Angebot-Kachel: etwas größer */
.vcard--xl .vcard-title{font-size:1.7rem;margin-left:-1.15rem;margin-right:-1.15rem;padding-left:1.15rem;padding-right:1.15rem}
.vcard--xl .vcard-band{margin-left:-1.15rem;margin-right:-1.15rem;padding-left:1.15rem;padding-right:1.15rem}
.vcard--xl .vf{font-size:.95rem}
.vcard--xl .vf-ic{flex-basis:18px;width:18px;height:18px}
.vcard--xl .vf-ic svg{width:18px;height:18px}

/* ==========================================================================
   Icons in Filter-Labels + Buttons mit Icon
   ========================================================================== */
.filter-bar .fic--car{--fic:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7081b' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l1.6-4.4A2 2 0 0 1 8.5 7.3h7a2 2 0 0 1 1.9 1.3L19 13'/%3E%3Cpath d='M4 13h16v4h-2.2a1.8 1.8 0 0 1-3.6 0H9.8a1.8 1.8 0 0 1-3.6 0H4z'/%3E%3C/svg%3E")}
.filter-bar .fic--tag{--fic:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7081b' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4l-7.2 7.2a2 2 0 0 1-2.8 0l-6.2-6.2A2 2 0 0 1 3.8 13V6a2 2 0 0 1 2-2h7a2 2 0 0 1 1.4.6l6.4 6.4a2 2 0 0 1 0 2.8z'/%3E%3Ccircle cx='8' cy='8' r='1.1' fill='%23c7081b' stroke='none'/%3E%3C/svg%3E")}
.filter-bar .fic--tacho{--fic:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7081b' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cline x1='12' y1='12' x2='15.4' y2='9.2'/%3E%3Ccircle cx='12' cy='12' r='1.3' fill='%23c7081b' stroke='none'/%3E%3Cline x1='12' y1='3.5' x2='12' y2='5'/%3E%3Cline x1='20.5' y1='12' x2='19' y2='12'/%3E%3Cline x1='3.5' y1='12' x2='5' y2='12'/%3E%3C/svg%3E")}
.filter-bar .fic--cal{--fic:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7081b' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='17' rx='2'/%3E%3Cline x1='3' y1='9' x2='21' y2='9'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3C/svg%3E")}
.filter-bar .fic--fuel{--fic:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7081b' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V5a2 2 0 0 1 2-2h5a2 2 0 0 1 2 2v16'/%3E%3Cline x1='3' y1='21' x2='14' y2='21'/%3E%3Cline x1='6' y1='10' x2='11' y2='10'/%3E%3Cpath d='M13 7l3.2 3.2V17a1.8 1.8 0 0 0 3.6 0V9l-2.8-2.8'/%3E%3C/svg%3E")}
.filter-bar .fic--badge{--fic:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7081b' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 7.6-7 9-4-1.4-7-4.5-7-9V6z'/%3E%3Cpath d='M9 12l2.2 2.2L15.5 10'/%3E%3C/svg%3E")}
.filter-bar .fic--sort{--fic:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7081b' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4v16'/%3E%3Cpath d='M4 8l3-4 3 4'/%3E%3Cpath d='M17 20V4'/%3E%3Cpath d='M14 16l3 4 3-4'/%3E%3C/svg%3E")}
.btn--ic{display:inline-flex;align-items:center;justify-content:center;gap:.5rem}
.btn--ic svg{width:16px;height:16px;flex:0 0 auto}
.btn--block.btn--ic{display:flex;width:100%}

/* Nettopreis unter dem Bruttopreis (nur bei ausweisbarer MwSt.) */
.detail-price-net{font-size:.98rem;color:var(--dunkel);font-weight:600;line-height:1.3;margin-top:.2rem}
.detail-price-net .vat-add{color:var(--grau);font-weight:400}

/* Ausstattung nach Kategorien */
.feature-cat-title{font-size:.95rem;font-weight:700;color:var(--dunkel);margin:1.1rem 0 .5rem;letter-spacing:.01em}
.feature-cat-title:first-of-type{margin-top:.2rem}

/* Spaltenzahl der Fahrzeugliste (Desktop) – einstellbar im Backend.
   Darunter (≤820px) greift wieder das responsive auto-fill. */
@media (min-width:821px){
  .vehicle-grid--cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
  .vehicle-grid--cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
}
