/**
 * AS24 Fahrzeug Importer – Frontend Styles
 * Farben werden über CSS-Variablen gesteuert (via wp_add_inline_style).
 * Standardwerte hier als Fallback.
 */

:root {
    --as24-primary:   #000000;
    --as24-secondary: #2c2c2c;
}

/* =========================================================
   FAHRZEUGE LISTE (Shortcode: as24_fahrzeuge)
   ========================================================= */

.cvio-fahrzeuge-liste {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin: 20px 0;
}

.cvio-fahrzeug-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.cvio-fahrzeug-item:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    transform: translateY(-4px);
    border-color: var(--as24-primary);
}

.fahrzeug-bild {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%;
    overflow: hidden;
    background: #f5f5f5;
}

.fahrzeug-bild picture,
.fahrzeug-bild img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fahrzeug-bild-placeholder {
    background: #f0f0f0;
}

.fahrzeug-info {
    padding: 15px;
}

.fahrzeug-info h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
    transition: color 0.3s;
}

.fahrzeug-untertitel {
    margin: -5px 0 10px 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.cvio-fahrzeug-item:hover .fahrzeug-info h3 {
    color: var(--as24-primary);
}

.fahrzeug-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.fahrzeug-meta .preis {
    font-weight: bold;
    font-size: 20px;
    color: var(--as24-primary);
}

.fahrzeug-info .button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--as24-primary);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
    text-align: center;
}

.cvio-fahrzeug-item:hover .button {
    background: var(--as24-secondary);
}

/* =========================================================
   PAGINATION
   ========================================================= */

.cvio-pagination {
    margin-top: 30px;
    text-align: center;
}

.cvio-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    background: #f5f5f5;
    text-decoration: none;
    border-radius: 4px;
    color: #333;
    transition: all 0.3s;
}

.cvio-pagination .page-numbers:hover,
.cvio-pagination .page-numbers.current {
    background: var(--as24-primary);
    color: #fff;
}

/* =========================================================
   RESULTS WRAPPER (Sidebar + Grid)
   ========================================================= */

.cvio-results-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.cvio-sidebar {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ddd;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 20px;
}

.clear-filters {
    color: var(--as24-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.clear-filters:hover {
    text-decoration: underline;
}

.active-filters {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 6px;
}

.active-filters h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
}

.filter-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #e8f4f8;
    border-radius: 4px;
    margin: 4px;
    font-size: 13px;
    color: #333;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-section h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.filter-section select,
.filter-section input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.sidebar-submit {
    width: 100%;
    padding: 12px;
    background: var(--as24-primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.sidebar-submit:hover {
    background: var(--as24-secondary);
}

/* =========================================================
   FILTER FORM (Shortcode: as24_filter)
   ========================================================= */

.cvio-filter-form {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.cvio-filter-form form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--as24-primary);
}

.cvio-filter-form button[type="submit"],
.cvio-filter-form .button {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 14px;
}

.cvio-filter-form button[type="submit"] {
    background: var(--as24-primary);
    color: white;
}

.cvio-filter-form button[type="submit"]:hover {
    background: var(--as24-secondary);
}

.cvio-filter-form .button {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.cvio-filter-form .button:hover {
    background: #e5e5e5;
}

.cvio-filter-form.landing form {
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================================
   CAROUSEL (Shortcode: as24_carousel)
   ========================================================= */

/* =========================================================
   FAHRZEUG-KARUSSELL ([as24_carousel])
   ========================================================= */

/*
 * Overflow-Strategie:
 * – Äußerer Wrapper: overflow-x: clip → versteckt horizontal
 *   off-screen Slides, erlaubt aber vertikales Shadow-Bleed
 * – .swiper selbst: overflow: visible + padding auf allen Seiten
 *   → Shadows sichtbarer Cards bluten nicht ab
 *
 * Hover-Strategie v2.41.0:
 * – Kein scale() / translateY() mehr → null Clipping-Risiko
 * – Stattdessen: Akzentlinie oben (::before, opacity 0→1)
 *   + tiefere Box-Shadow + leicht stärkerer Border-Color
 * – Bild zoomt subtil (scale auf img innerhalb overflow:hidden)
 *   → wirkt visuell ohne die Card zu bewegen
 */

.cvio-vehicle-carousel {
    max-width: 1400px;
    margin: 40px auto;
    /* Horizontal padding = Platz für Nav-Arrows */
    padding: 0 10px;
    position: relative;
    overflow-x: hidden;
    /* BUG FIX: overflow-x:clip (nicht hidden) verhindert horizontale Overflow
     * der Slides vor Swiper-Init, ohne BFC zu erzeugen (kein Scroll-Snap-Konflikt) */
    overflow-x: clip;
}

/* Swiper-Track: visible + rundum Padding für Shadow-Bleed */
.cvio-vehicle-carousel .swiper {
    overflow: visible;
    padding: 12px 6px 24px;  /* top: Akzent-Bar / bottom: shadow */
}

/* ── Slide: Höhe auto damit alle Slides der Reihe gleich hoch ── */
.cvio-vehicle-carousel .swiper-slide {
    height: auto;
}

/* ── Card ─────────────────────────────────────────────── */
.vehicle-card {
    height: 100%;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
    border: 1.5px solid transparent;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

/*
 * Shimmer Sweep (v2.48.61) — diagonaler Lichtstrahl zieht bei Hover über die Card.
 * ::before = Shimmer-Layer (translateX -140% → +280%)
 * overflow: hidden auf .vehicle-card sorgt für sauberes Clipping des Sheens.
 * Akzentlinie (::before alt) entfernt — Shimmer ersetzt diesen Effekt vollständig.
 */
.vehicle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(255,255,255,0.55) 50%,
        transparent 80%
    );
    transform: translateX(-140%);
    transition: none; /* Reset: Animation nur on hover, nicht beim Verlassen */
    z-index: 2;
    pointer-events: none;
}

.vehicle-card:hover::before {
    transform: translateX(280%);
    transition: transform 0.52s ease;
}

.vehicle-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.13), 0 2px 6px rgba(0,0,0,0.07);
}

.card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

/* ── Carousel Loading Skeleton ────────────────────────── */

/*
 * BUG FIX: Doppelter Layout-Gap
 * Vor dem Init hat .cvio-vehicle-carousel opacity:0 — unsichtbar,
 * nimmt aber vollen Platz im Flow ein = Skeleton-Höhe + Carousel-Höhe = riesiger Leerraum.
 * Fix: cvio-pre-init kollabiert den Carousel auf height:0, sodass nur
 * das Skeleton im Layout-Fluss Höhe reserviert.
 */
.cvio-vehicle-carousel {
    opacity: 0;
    transition: opacity 0.35s ease;
}
.cvio-vehicle-carousel.cvio-pre-init {
    height: 0 !important;
    overflow: hidden !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}
.cvio-vehicle-carousel.swiper-ready {
    opacity: 1;
}

/* Skeleton: identisches Layout wie .cvio-vehicle-carousel + .swiper */
.cvio-carousel-skeleton {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 10px;
    display: flex;
    gap: 24px;        /* entspricht spaceBetween: 24 auf Desktop */
    box-sizing: border-box;
}
/* Wrapper simuliert swiper padding */
.cvio-carousel-skeleton::before {
    content: none;
}

.cvio-skeleton-card {
    flex: 1;
    min-width: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
    border: 1.5px solid transparent;
}
/* Bild: exakt aspect-ratio 4/3 wie .card-image */
.cvio-skeleton-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: caarvioSkeletonShimmer 1.4s ease-in-out infinite;
}
.cvio-skeleton-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cvio-skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: caarvioSkeletonShimmer 1.4s ease-in-out infinite;
}
.cvio-skeleton-line.short  { width: 55%; }
.cvio-skeleton-line.medium { width: 75%; }
.cvio-skeleton-line.long   { width: 90%; }
.cvio-skeleton-line.price  { width: 45%; height: 18px; margin-top: 6px; }

@keyframes caarvioSkeletonShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Mobile: 1 Card, gap wie Swiper mobile */
@media (max-width: 639px) {
    .cvio-carousel-skeleton {
        margin: 20px 0;
        padding: 0;
        gap: 16px;
    }
    .cvio-carousel-skeleton .cvio-skeleton-card:nth-child(n+2) { display: none; }
}
/* Tablet: 2 Cards */
@media (min-width: 640px) and (max-width: 1023px) {
    .cvio-carousel-skeleton { gap: 20px; }
    .cvio-carousel-skeleton .cvio-skeleton-card:nth-child(n+3) { display: none; }
}

/* ── Image ────────────────────────────────────────────── */
.card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f0f0f0;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Bild-Zoom entfernt (v2.48.61) — Shimmer Sweep ist der einzige Hover-Effekt */
}

/* Lazy-Placeholder: Shimmer solange data-src noch nicht geladen */
.card-image img.cvio-lazy-img[data-src] {
    object-fit: cover;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: caarvioSkeletonShimmer 1.4s ease-in-out infinite;
}

/* ── NEU Badge ────────────────────────────────────────── */
.cvio-neu-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: #22c55e;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: .5px;
    text-transform: uppercase;
    box-shadow: 0 3px 10px var(--badge-shadow, rgba(34,197,94,.45));
    animation: as24BadgePulse 2.4s ease-in-out infinite;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
}
/* Top-right variant — für vio_fahrzeuge Grid/List */
.cvio-neu-badge-topright {
    left: auto;
    right: 14px;
}
@keyframes as24BadgePulse {
    0%, 100% { box-shadow: 0 3px 10px var(--badge-shadow, rgba(34,197,94,.45)); }
    50%       { box-shadow: 0 3px 20px var(--badge-shadow-strong, rgba(34,197,94,.75)); }
}

/* ── Content ──────────────────────────────────────────── */
.card-content {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
}

.card-title {
    font-size: 19px;
    font-weight: 800;
    margin: 0 0 3px;
    color: #111;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Key Facts Grid ───────────────────────────────────── */
.card-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 12px;
    margin-bottom: 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: #374151;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.3;
}

.detail-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: #64748b;
}

/* ── Pricing Block ────────────────────────────────────── */
.card-pricing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 14px;
    border-top: 2px solid #f1f5f9;
    margin-top: auto;
}

.price-main,
.price-financing {
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
    text-align: center;
}

.price-main > span:first-child,
.price-financing > span:first-child {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 2px;
}

.price-main strong,
.price-financing strong {
    display: block;
    /* clamp: min 15px bei engen Karten, skaliert mit Viewport, max 20px */
    font-size: clamp(15px, 1.5vw, 20px);
    font-weight: 800;
    color: var(--as24-primary);
    line-height: 1.2;
    white-space: nowrap;       /* verhindert Umbruch im Preis */
}

.price-tax-note,
.price-financing-note {
    display: block;
    font-size: 10.5px;
    color: #94a3b8;
    margin-top: 3px;
    font-weight: 400;
}

/* ── Bild-Anzahl Badge (rechts unten im Thumbnail) ───────── */
.cvio-img-count-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 9px 5px 8px;
    pointer-events: none;
    letter-spacing: .2px;
    line-height: 1;
    transition: background 0.2s ease;
    z-index: 2;
}
/* Video-Counter-Badge: links neben dem Foto-Zähler, roter Akzent */
.cvio-video-counter-badge {
    right: auto;
    left: 0;
    background: rgba(0,0,0,.72);
    color: #fff;
}
.vehicle-card:hover .cvio-img-count-badge,
.cvio-fahrzeug-item:hover .cvio-img-count-badge {
    background: rgba(0, 0, 0, 0.82);
}

/* ── Swiper Nav Arrows — match detail page style ──────── */
.cvio-vehicle-carousel .swiper-button-prev,
.cvio-vehicle-carousel .swiper-button-next {
    width: 46px;
    height: 46px;
    background: rgba(0, 0, 0, 0.40);
    border-radius: 50%;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    /* Hidden until parent is hovered */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, background 0.2s ease, transform 0.2s ease;
    /* Centre the arrow icon */
    margin-top: -23px;
    box-shadow: none;
}

.cvio-vehicle-carousel .swiper-button-prev::after,
.cvio-vehicle-carousel .swiper-button-next::after {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

.cvio-vehicle-carousel .swiper-button-prev:hover,
.cvio-vehicle-carousel .swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.68);
    transform: scale(1.08);
}

/* Reveal arrows only on carousel hover */
.cvio-vehicle-carousel:hover .swiper-button-prev,
.cvio-vehicle-carousel:hover .swiper-button-next {
    opacity: 1;
    pointer-events: auto;
}

/* Arrow positions — inside the padding zone, not over cards */
.cvio-vehicle-carousel .swiper-button-prev { left: 12px; }
.cvio-vehicle-carousel .swiper-button-next { right: 12px; }

/* =========================================================
   DETAILSUCHE v2 — Modern Cards
   ========================================================= */

/* ── Wrapper ──────────────────────────────────────────────────── */
.cvio-detailsuche {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 0 20px;
}

/* ── Card ────────────────────────────────────────────────────── */
.cvio-ds-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.cvio-ds-card-head {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    background: none;
}

.cvio-ds-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.1px;
}

.cvio-ds-card-body {
    padding: 4px 20px 20px;
    border-top: 1px solid #f0f0f0;
}

/* ── Labels / Rows ───────────────────────────────────────────── */
.cvio-ds-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 8px;
    margin-top: 14px;
}

.cvio-ds-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cvio-ds-field {
    display: flex;
    flex-direction: column;
    container-type: inline-size;
}

/* ── Select ──────────────────────────────────────────────────── */
.cvio-ds-select-wrap {
    position: relative;
}

.cvio-ds-select-wrap::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #666;
    pointer-events: none;
}

.cvio-ds-select {
    width: 100%;
    padding: 10px 32px 10px 12px;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-size: 14px;
    color: #222;
    background: #fafafa;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    outline: none;
}

.cvio-ds-select:focus {
    border-color: var(--ds-primary, #111);
    background: #fff;
}

.cvio-ds-select:disabled {
    color: #bbb;
    cursor: not-allowed;
}

/* ── Pill Checkboxes ─────────────────────────────────────────── */
.cvio-ds-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 2px;
}

.cvio-ds-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    border: 1.5px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    user-select: none;
    white-space: nowrap;
}

.cvio-ds-pill input[type="checkbox"] {
    display: none;
}

.cvio-ds-pill:hover {
    border-color: #999;
    background: #f5f5f5;
}

.cvio-ds-pill-active {
    border-color: var(--ds-primary, #111) !important;
    background: var(--ds-primary, #111) !important;
    color: #fff !important;
}

/* Pill mit SVG-Icon (Karosserieform) */
.cvio-ds-pill--icon {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 12px 8px;
    min-width: 72px;
    text-align: center;
}
.cvio-ds-pill--icon svg {
    display: block;
    flex-shrink: 0;
}
.cvio-ds-pill--icon span {
    font-size: 11px;
    line-height: 1.2;
    white-space: normal;
    max-width: 72px;
}

/* ── Karosserieform Checkbox-Layout (1:1 mobile.de Ansatz) ─────────────
   container-type auf dem Wrapper → Container Queries für 4-Spalten-Grid
   Jede Spalte gleich breit (1fr), Label überragt Spaltengrenze wenn nötig */
.cvio-ds-body-type-grid {
    /* Container-Query fähig machen */
    container-type: inline-size;
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    width: 100%;
    /* Default: 1 Spalte (Mobile) */
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 12px;
    align-items: start;
}

/* Ab 432px: 2 Spalten */
@container (min-width: 432px) {
    .cvio-ds-body-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ab 600px: 4 Spalten wie mobile.de */
@container (min-width: 600px) {
    .cvio-ds-body-type-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cvio-ds-body-type-item {
    display: flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
    user-select: none;
    padding: 4px 0;
    /* overflow visible: Label darf in Nachbar-Freiraum hineinragen */
    overflow: visible;
    position: relative;
}

.cvio-ds-body-type-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 1.5px solid #ccc;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    flex-shrink: 0;
    margin-right: 8px;
    position: relative;
}

.cvio-ds-body-type-item input[type="checkbox"]:checked {
    background: var(--ds-primary, #111);
    border-color: var(--ds-primary, #111);
}

.cvio-ds-body-type-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 1px;
    width: 8px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

.cvio-ds-bti-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    /* nowrap: lässt Label über Spaltengrenze in Freiraum fließen */
    white-space: nowrap;
    overflow: visible;
}

.cvio-ds-bti-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: #666;
    transition: color 0.15s;
    margin-right: 6px;
}

.cvio-ds-body-type-item:hover .cvio-ds-bti-icon,
.cvio-ds-body-type-item input:checked ~ .cvio-ds-bti-inner .cvio-ds-bti-icon {
    color: var(--ds-primary, #111);
}

.cvio-ds-bti-label {
    font-size: 13px;
    color: #333;
    line-height: 1.3;
    white-space: nowrap;
}

/* ── Color Swatches ──────────────────────────────────────────── */
.cvio-ds-colors {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    gap: 12px 6px;
    margin-top: 4px;
}

.cvio-ds-color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    user-select: none;
}

.cvio-ds-color-item input[type="checkbox"] {
    display: none;
}

.cvio-ds-color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid transparent;
    display: block;
    transition: transform 0.12s, border-color 0.12s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.cvio-ds-color-light {
    border-color: #ddd !important;
}

.cvio-ds-color-item:hover .cvio-ds-color-swatch {
    transform: scale(1.1);
}

.cvio-ds-color-active .cvio-ds-color-swatch {
    border-color: var(--ds-primary, #111) !important;
    transform: scale(1.12);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.12);
}

.cvio-ds-color-label {
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

.cvio-ds-color-active .cvio-ds-color-label {
    color: #111;
    font-weight: 700;
}

/* ── Equipment ───────────────────────────────────────────────── */
.cvio-ds-equip-group {
    margin-bottom: 18px;
}

.cvio-ds-equip-cat {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #aaa;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 8px;
    padding-left: 2px;
}

.cvio-ds-equip-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
}

.cvio-ds-equip-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: background 0.12s;
    user-select: none;
}

.cvio-ds-equip-item input[type="checkbox"] {
    accent-color: var(--ds-primary, #111);
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    cursor: pointer;
}

.cvio-ds-equip-item:hover {
    background: #f5f5f5;
}

.cvio-ds-equip-active {
    background: #f0f0f0;
}
/* Equipment mit 0 Treffern: leicht ausgegraut */
.cvio-ds-equip-zero {
    opacity: 0.42;
}
.cvio-ds-equip-zero span {
    color: #aaa;
}

/* ── Sticky Footer Bar ───────────────────────────────────────── */
/* ── Sticky Footer Bar (vio_detailsuche) ─────────────────────── */
.cvio-ds-sticky {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9800;
    width: calc(100% - 40px);
    max-width: var(--wp--style--global--content-size, 980px);
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 16px;
    padding: 10px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.08);
    transition: opacity 0.2s, transform 0.2s;
}

@media (max-width: 767px) {
    .cvio-ds-sticky {
        bottom: 12px;
        width: calc(100% - 24px);
        border-radius: 14px;
        padding: 8px 12px;
    }
}

/* Innerer Wrapper: Layout */
.cvio-ds-sticky-inner-wrap {
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (min-width: 1024px) {
    .cvio-ds-sticky-inner-wrap {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 10px;
    }
}

/* Links: Chips — feste 1fr Column, auch wenn leer */
.cvio-ds-sticky-left {
    display: none;
    min-width: 0;
}

@media (min-width: 1024px) {
    .cvio-ds-sticky-left {
        display: flex;
        align-items: center;
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
}

/* Rechts: Submit oben, Reset unten */
.cvio-ds-sticky-right {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-block: 3px;
}

@media (max-width: 1023px) {
    .cvio-ds-sticky-right {
        flex-direction: row;
        gap: 10px;
        flex: 1;
    }
}

/* Chips Container */
.cvio-ds-sticky-chips {
    display: flex;
    flex-wrap: nowrap;       /* Overflow wird per JS gemessen */
    overflow: hidden;
    gap: 7px;
    align-items: center;
    min-width: 0;
    flex: 1;
}

/* Chip kompakter als results_header */
.cvio-ds-sticky-chip.cvio-chip {
    font-size: 12px;
    padding: 3px 8px 3px 10px;
}

/* "+X mehr" Button — Styling wie cvio-chip-more-btn (results_header) */
.cvio-ds-chips-mehr {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--ds-primary, #111);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
    outline: none;
}
.cvio-ds-chips-mehr:hover {
    opacity: 0.85;
}
.cvio-ds-chips-mehr:focus,
.cvio-ds-chips-mehr:focus-visible { outline: none; }

/* Submit Button */
.cvio-ds-submit {
    padding: 11px 28px;
    background: var(--ds-primary, #111);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    white-space: nowrap;
    transition: opacity 0.2s, background 0.2s;
}

@media (max-width: 1023px) {
    .cvio-ds-submit { flex: 1; }
}

.cvio-ds-submit:hover { opacity: 0.87; }
.cvio-ds-submit.cvio-ds-submit-loading { opacity: 0.6; }
.cvio-ds-submit.cvio-ds-submit-zero {
    background: #bf2819;
}
.cvio-ds-submit.cvio-ds-submit-zero:hover {
    background: #a6220f;
    opacity: 1;
}

/* Reset: Trash-Icon + "Reset" Label, in sticky-left neben Chips */
.cvio-ds-reset {
    display: none;              /* nur Desktop sichtbar via sticky-left Media Query */
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: none;
    padding: 3px 8px;
    background: none;
    font-size: 13px;
    font-weight: 600;
    color: #464646;
    cursor: pointer;
    outline: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.15s;
    margin-left: 4px;
}

.cvio-ds-reset:hover { color: #e00; }
.cvio-ds-reset:focus,
.cvio-ds-reset:focus-visible { outline: none; }

/* Desktop: Reset-Button einblenden (sticky-left ist ≥1024px sichtbar) */
@media (min-width: 1024px) {
    .cvio-ds-reset { display: inline-flex; }
    /* Nur einblenden wenn aktive Filter vorhanden */
    .cvio-ds-reset:not(.cvio-ds-reset-active) { display: none; }
}

@media (max-width: 1023px) {
    .cvio-ds-reset { display: none !important; }
}

/* Legacy — kann weg sobald kein alter Code mehr darauf zeigt */
.cvio-ds-sticky-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 820px;
}

/* ── Chips Popup Overlay ──────────────────────────────────────── */
.cvio-ds-chips-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cvio-ds-chips-popup {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    width: min(520px, 90vw);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cvio-ds-chips-popup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #eee;
}

.cvio-ds-chips-popup-title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.cvio-ds-chips-popup-close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.15s;
}

.cvio-ds-chips-popup-close:hover { color: #111; }

.cvio-ds-chips-popup-body {
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow-y: auto;
}

.cvio-ds-chip-pending-remove {
    opacity: 0.4;
    text-decoration: line-through;
}

.cvio-ds-chips-popup-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 20px 16px;
    border-top: 1px solid #eee;
}

.cvio-ds-popup-cancel {
    padding: 9px 18px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: border-color 0.15s;
}

.cvio-ds-popup-cancel:hover { border-color: #aaa; }

.cvio-ds-popup-save {
    padding: 9px 18px;
    background: #111;
    border: none;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.15s, background 0.15s;
}

.cvio-ds-popup-save.cvio-ds-popup-save-active { opacity: 1; }
.cvio-ds-popup-save:hover.cvio-ds-popup-save-active { opacity: 0.85; }

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .cvio-ds-row {
        grid-template-columns: 1fr;
    }
    .cvio-ds-equip-list {
        grid-template-columns: 1fr;
    }
    .cvio-ds-card-body {
        padding: 4px 14px 16px;
    }
    .cvio-ds-card-head {
        padding: 14px 16px;
    }
}

/* =========================================================
   BACK-BUTTON / BREADCRUMBS
   ========================================================= */

.cvio-breadcrumbs-wrapper {
    margin-bottom: 20px;
}

.fahrzeug-back-button-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 15px;
    padding: 12px 24px;
    background: var(--as24-primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
}

.fahrzeug-back-button-top:hover {
    background: var(--as24-secondary);
    transform: translateX(-3px);
}

/* =========================================================
   QUICKSEARCH
   ========================================================= */

/* Submit-Icon: kein schwarzer Block beim Hover */
#quicksearch-submit-icon {
    background: transparent !important;
    border: none;
}
#quicksearch-submit-icon:hover {
    background: transparent !important;
    opacity: 0.7;
}
#quicksearch-submit-icon svg {
    display: block;
    fill: none !important;
}

/* Search Suggestions */
#search-suggestions {
    border-radius: 0 0 8px 8px;
}
.suggestion-header {
    padding: 10px 20px 8px;
    font-size: 13px;
    color: #999;
    font-style: italic;
    border-bottom: 1px solid #f0f0f0;
    pointer-events: none;
    user-select: none;
}
.suggestion-header em {
    font-style: normal;
    color: #666;
    font-weight: 500;
}
/* No-results: klickbar, leicht hervorgehoben */
.suggestion-no-results {
    pointer-events: auto;
    cursor: pointer;
    padding: 14px 20px;
    color: #475569;
    border-bottom: none;
    transition: background 0.15s;
}
.suggestion-no-results:hover {
    background: #f5f7fa;
}
.suggestion-no-results em {
    color: #1e293b;
    font-weight: 600;
}
.suggestion-item {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}
.suggestion-item:last-child {
    border-bottom: none;
}
.suggestion-item:hover {
    background: #f5f7fa !important;
}
.suggestion-item strong {
    display: block;
    margin-bottom: 3px;
    font-size: 22px;
    color: #111111;
}
.suggestion-item small {
    font-size: 18.33px;
    color: #666666;
}

/* Desktop: 4 Spalten, Submit rechts in Spalte 4 (Reihe 2) */
@media (min-width: 1024px) {
    .quicksearch-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    .quicksearch-submit {
        grid-column: 4;
    }
    /* Desktop: Expand-Button verstecken, Extra-Filter immer sichtbar */
    .asf-expand-btn { display: none !important; }
    .asf-extra      { display: block !important; border-top: none; padding-top: 0; margin-top: 0; }
}

/* Tablet (640–1023px): 2-Spalten-Grid, Submit full-width */
@media (min-width: 640px) and (max-width: 1023px) {
    /* Expand-Button auf Tablet sichtbar */
    .asf-expand-btn { display: flex; }
    .quicksearch-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .quicksearch-submit {
        grid-column: 1 / -1;
        margin-top: 4px;
    }
    .quicksearch-submit button {
        width: 100%;
        padding: 16px 20px;
    }
}

/* Mobile (≤639px): 1-Spalten-Grid */
@media (max-width: 639px) {
    .quicksearch-grid {
        grid-template-columns: 1fr !important;
    }
    .cvio-quicksearch h2 {
        font-size: 22px !important;
    }
    .quicksearch-submit {
        grid-column: 1 / -1;
        margin-top: 10px;
    }
    .quicksearch-submit button {
        width: 100%;
        padding: 16px 20px;
    }
}

/* =========================================================
   RESPONSIVE (globale Breakpoints)
   ========================================================= */

@media (max-width: 1024px) {
    .cvio-results-wrapper {
        grid-template-columns: 1fr;
    }

    .cvio-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .cvio-fahrzeuge-liste {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .fahrzeug-info h3 {
        font-size: 16px;
    }

    .fahrzeug-meta {
        font-size: 13px;
    }

    .fahrzeug-meta .preis {
        font-size: 18px;
    }

    .cvio-filter-form form {
        grid-template-columns: 1fr;
    }

    .cvio-filter-form {
        padding: 20px 15px;
    }

    /* ── Carousel: full-width on mobile, swipe with finger ── */
    .cvio-vehicle-carousel {
        padding: 0;
        margin: 20px 0;
        overflow-x: clip;
    }
    .cvio-vehicle-carousel .swiper {
        overflow: visible;
        padding: 6px 0 12px;
    }
    /* Hide nav arrows — touch swipe sufficient */
    .cvio-vehicle-carousel .swiper-button-prev,
    .cvio-vehicle-carousel .swiper-button-next {
        display: none;
    }
    /* No hover effects on touch devices */
    .vehicle-card {
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        transition: none;
        border-color: transparent;
    }
    .vehicle-card:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        border-color: transparent;
    }
    .vehicle-card:hover::before {
        opacity: 0;
    }
    /* Mobile: Bild etwas kleiner, skaliert mit Kartenbreite */
    .cvio-img-count-badge {
        font-size: 11px;
        padding: 4px 7px 4px 6px;
    }

    .cvio-neu-badge { font-size: 11px; padding: 4px 10px; }
    .card-title  { font-size: 16px; }
    .price-main strong,
    .price-financing strong { font-size: 17px; }
    .card-details {
        grid-template-columns: 1fr 1fr;
        font-size: 12.5px;
    }
    .card-pricing {
        grid-template-columns: 1fr 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .equipment-checkboxes {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   SEARCHBAR ([as24_searchbar])
   ========================================================= */

.cvio-searchbar-wrap {
    position: relative;
}

.cvio-searchbar-form {
    position: relative;
}

.cvio-searchbar-inner {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    overflow: visible;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
}

.cvio-searchbar-inner:focus-within {
    border-color: var(--as24-primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.cvio-searchbar-icon {
    flex-shrink: 0;
    margin-left: 16px;
    color: #999;
}

.cvio-searchbar-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    background: transparent;
    padding: 18px 14px;
    font-size: 16px;
    color: #333;
    min-width: 0;
}

.cvio-searchbar-typewriter {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 16px;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 120px);
}

.cvio-searchbar-btn {
    flex-shrink: 0;
    margin: 6px;
    padding: 10px 18px;
    border: none;
    border-radius: 7px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    font-size: 15px;
    font-weight: 600;
}

.cvio-searchbar-btn:hover {
    opacity: 0.88;
}

.cvio-searchbar-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 9999;
    max-height: 280px;
    overflow-y: auto;
}

.cvio-sugg-item {
    padding: 12px 18px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s;
    font-size: 14px;
}

.cvio-sugg-item:last-child { border-bottom: none; }
.cvio-sugg-item:hover { background: #f9f9f9; }
.cvio-sugg-item small { color: #888; }

/* =========================================================
   RESULTS HEADER ([as24_results_header])
   ========================================================= */

.cvio-results-header {
    margin-bottom: 20px;
}

/* AI / Keyword Banner */
.cvio-ai-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 14px;
}

.cvio-year-note-banner {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fcd34d;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 14px;
}
.cvio-year-note-banner svg {
    flex-shrink: 0;
    stroke: #d97706;
    margin-top: 1px;
}
.cvio-year-note-lines {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.cvio-year-note-line {
    line-height: 1.4;
}
.cvio-year-note-line--indent {
    color: #b45309;
    font-weight: 400;
}
.cvio-year-note-arrow {
    margin-right: 4px;
    opacity: 0.6;
}

.cvio-ai-banner svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.cvio-keyword-edit {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: underline;
    text-decoration-style: dotted;
    padding: 0;
}

.cvio-keyword-edit:hover {
    opacity: 0.8;
}

/* Header Row: chips top full-width, sort+reset right on second row */
.cvio-results-header-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cvio-count-chips {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.cvio-count-row {
    display: flex;
    align-items: center;
}

.cvio-chips-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}

.cvio-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cvio-count {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
}

/* Filter Chips */
.cvio-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f3f3f3;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 5px 10px 5px 12px;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
}

.cvio-chip-label {
    color: #888;
    font-size: 12px;
}

.cvio-chip-value {
    font-weight: 600;
}

.cvio-chip-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 16px;
    line-height: 1;
    padding: 0 0 0 4px;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.cvio-chip-remove:hover {
    color: #e00;
}

.cvio-chip-remove:focus,
.cvio-chip-remove:focus-visible {
    outline: none;
}

/* Right Actions: sort + reset */
.cvio-sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cvio-sort-label {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.cvio-sort-select-wrap {
    position: relative;
}

.cvio-sort-select-wrap::after {
    content: '▾';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 12px;
    color: #666;
}

.cvio-sort-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 8px 30px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
    color: #333;
}

.cvio-reset-link,
button.cvio-reset-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.cvio-reset-link:hover,
button.cvio-reset-link:hover {
    color: var(--as24-primary);
    text-decoration: none;
}

/* Keyword Edit Overlay */
.cvio-keyword-edit-overlay {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.14);
    margin-bottom: 14px;
}

.cvio-keyword-edit-overlay form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cvio-keyword-edit-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 15px;
    outline: none;
}

.cvio-keyword-edit-input:focus {
    border-color: var(--as24-primary);
}

.cvio-keyword-edit-submit {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

.cvio-keyword-edit-cancel {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

/* Fix: as24-results-output ist nur ein passthrough wrapper */
.cvio-results-output {
    width: 100%;
}

/* ai-banner X button */
.cvio-ai-banner .cvio-chip-remove {
    color: rgba(255,255,255,0.6);
    margin-left: auto;
    font-size: 18px;
}

.cvio-ai-banner .cvio-chip-remove:hover {
    color: #fff;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
    .cvio-results-header-row {
        flex-direction: column;
        gap: 12px;
    }

    .cvio-header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .cvio-sort-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .cvio-searchbar-typewriter {
        display: none;
    }
}


/* =========================================================
   LIST VIEW  ([as24_fahrzeuge view="list"])
   ========================================================= */

.cvio-liste-view {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    grid-template-columns: unset !important;
}

.cvio-list-item {
    display: flex !important;
    flex-direction: row !important;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    color: inherit;
    min-height: 270px;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.cvio-list-item:hover {
    box-shadow: 0 6px 28px rgba(0,0,0,0.13);
    border-color: #bbb;
    transform: translateY(-2px);
}

/* ── Bild ───────────────────────────────────────────────── */
.list-item-image {
    flex-shrink: 0;
    width: 360px;
    min-height: 200px;
    align-self: stretch;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.list-item-image picture {
    position: absolute;
    inset: 0;
}

.list-item-image picture,
.list-item-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
}

.list-item-no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #bbb;
    font-size: 13px;
    gap: 8px;
    padding: 20px;
}

/* ── Body ───────────────────────────────────────────────── */
.list-item-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px 24px;
    min-width: 0;
    overflow: hidden;
    gap: 12px;
}

/* Titel + Untertitel */
.list-item-top {
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.list-item-title {
    margin: 0 0 3px 0;
    font-size: 30px;
    font-weight: 700;
    color: #111;
    line-height: 1.15;
    transition: color 0.2s;
}

.cvio-list-item:hover .list-item-title {
    color: var(--as24-primary, #000);
}

.list-item-subtitle {
    margin: 0;
    font-size: 15px;
    color: #777;
    line-height: 1.35;
}

/* Tech Specs — eine einzige Zeile, Überlauf abschneiden */
.list-item-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    flex-shrink: 0;
    align-items: center;
}

.list-spec-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    color: #555;
    white-space: nowrap;
    flex-shrink: 0;
}

.list-spec-item svg {
    flex-shrink: 0;
    color: #888;
    overflow: visible;    /* verhindert SVG-Clipping */
    vertical-align: middle;
}

/* Preis + CTA */
.list-item-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.list-item-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    justify-content: flex-end;
}

.list-price-value {
    font-size: 32px;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.5px;
    line-height: 1;
}

.list-price-note {
    font-size: 14px;
    color: #999;
    line-height: 1.3;
}

.list-item-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 28px;
    border-radius: 6px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.2s;
    flex-shrink: 0;
    align-self: flex-end;
}

.cvio-list-item:hover .list-item-btn {
    opacity: 0.85;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
    .list-item-image { width: 280px; }
}

@media (max-width: 900px) {
    .list-item-image { width: 220px; }
    .list-price-value { font-size: 26px; }
    .list-spec-item { font-size: 13px; gap: 4px; }
    .list-item-specs { gap: 0 12px; }
}

@media (max-width: 640px) {
    .cvio-list-item {
        flex-direction: column !important;
        height: auto !important;
    }
    .list-item-image {
        width: 100%;
        height: 200px;
        position: relative;
    }
    .list-item-body {
        padding: 14px 16px;
    }
    .list-item-specs {
        flex-wrap: wrap;
        overflow: visible;
        row-gap: 10px;
        column-gap: 16px;
    }
    .list-spec-item {
        font-size: 13px;
    }
    .list-item-bottom {
        flex-direction: column;
        align-items: stretch;   /* Kinder strecken volle Breite */
        gap: 10px;
    }
    .list-item-price {
        /* Preis läuft über volle Breite */
    }
    .list-item-btn {
        display: flex;          /* inline-flex → flex damit width:100% greift */
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        justify-content: center;
        padding: 13px 20px;
        font-size: 15px;
        border-radius: 8px;
    }
}

/* =========================================================
   AS24_FILTER — Neues sauberes Design
   ========================================================= */

/* Wrapper */
.cvio-filter-form {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
}

/* Header */
.asf-header {
    background: #111;
    padding: 14px 20px;
}

.asf-header-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* Mobile Toggle (Desktop: versteckt) */
.cvio-filter-mobile-toggle {
    display: none;
}

/* Panel */
.cvio-filter-panel {
    padding: 16px 20px 20px;
}

/* Filter-Group */
.asf-group {
    margin-bottom: 24px;
}

.asf-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    letter-spacing: 0.1px;
}

/* Select Wrapper */
.asf-select-wrap {
    position: relative;
}

.asf-select-wrap::after {
    content: "";
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #555;
    pointer-events: none;
}

.asf-select {
    width: 100%;
    padding: 9px 30px 9px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    line-height: 1.4;
}

.asf-select:focus {
    outline: none;
    border-color: var(--as24-primary, #333);
    background: #fff;
}

.asf-select:disabled {
    color: #bbb;
    background: #f5f5f5;
    cursor: not-allowed;
}

/* Von/Bis Pair */
.asf-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* Expand Button */
.asf-expand-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    margin-bottom: 14px;
    text-align: left;
}

.asf-expand-btn:hover {
    background: #ebebeb;
    border-color: #ccc;
}

.asf-expand-btn span {
    flex: 1;
}

.asf-expand-chevron {
    flex-shrink: 0;
    transition: transform 0.22s ease;
}

/* Extra Filter Bereich - nahtloser Übergang, kein Divider */
.asf-extra {
    padding-top: 0;
    margin-top: 0;
}
/* First group inside asf-extra: no extra gap, matches inter-group spacing */
.asf-extra > .asf-group:first-child,
.asf-extra > .asf-equipment-group:first-child {
    margin-top: 0;
}

/* Submit */
.asf-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background: #111;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    margin-top: 6px;
    margin-bottom: 0;
}

/* ── Floating Action Card (vio_filter) ───────────────────────────────────
   Eine schwebende Karte die sich horizontal an .cvio-filter-form ausrichtet
   (gleiche left-Position), erscheint wenn #asf-submit-btn nicht sichtbar.
   top via --vel-nav-h damit sie direkt unter der Velocity Navbar klebt.  */
#asf-floating-card {
    display: none;
    position: fixed;
    top: calc(var(--vel-nav-h, 77px) + 10px);
    z-index: 9800;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 14px;
    padding: 10px 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.13), 0 2px 8px rgba(0,0,0,0.07);
    min-width: 200px;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}

#asf-floating-card.asf-floating-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#asf-floating-card .asf-fc-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 9px 16px;
    background: var(--as24-primary, #111);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
    white-space: nowrap;
}

#asf-floating-card .asf-fc-submit:hover { opacity: 0.85; }
#asf-floating-card .asf-fc-submit.asf-btn-loading { opacity: 0.6; pointer-events: none; }
#asf-floating-card .asf-fc-submit.asf-btn-zero { background: #bf2819; }

#asf-floating-card .asf-fc-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 4px;
}

#asf-floating-card .asf-fc-actions a,
#asf-floating-card .asf-fc-actions button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 500;
    color: #888;
    background: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s;
    outline: none;
}

#asf-floating-card .asf-fc-actions a:hover,
#asf-floating-card .asf-fc-actions button:hover { color: #333; }

@media (max-width: 1023px) {
    #asf-floating-card { display: none !important; }
}
.asf-submit-btn * {
    color: #fff !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

.asf-submit-btn:hover {
    opacity: 0.85;
}

.asf-submit-btn.asf-btn-loading {
    opacity: 0.6;
}

.asf-submit-btn.asf-btn-zero {
    background: #c0392b;
}

.asf-submit-count {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    pointer-events: none;
}

/* ── Sekundäre Aktionen: Erweiterte Suche + Filter zurücksetzen ── */
.asf-secondary-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 2px;
}

.asf-detailsuche-link,
.asf-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #888;
    text-decoration: none;
    border: none;
    background: none;
    border-radius: 5px;
    outline: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.asf-detailsuche-link:hover,
.asf-reset-btn:hover {
    color: #333;
    text-decoration: none;
}

.asf-detailsuche-link:focus-visible,
.asf-reset-btn:focus-visible {
    outline: none;
}

/* Trennstrich: Detailsuche-Link behält optischen Abstand ohne Border */
.asf-secondary-actions .asf-reset-btn {
    padding-left: 10px;
    margin-left: 2px;
}

/* "Weitere Filter anzeigen" Link (Desktop: ausblenden) */
.cvio-filter-more-link {
    display: none;
}

/* Mobile Toggle Button */
.cvio-filter-mobile-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 13px 18px;
    background: #111;
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    text-align: left;
}

.cvio-filter-mobile-toggle:hover { background: #222; }
.cvio-filter-mobile-toggle span  { flex: 1; }

.cvio-filter-toggle-chevron {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.cvio-filter-badge {
    position: absolute;
    top: -6px; right: -6px;
    background: var(--as24-primary, #e00);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Mobile / Tablet < 1024px ───────────────────────────── */
@media (max-width: 1023px) {
    .cvio-filter-mobile-toggle {
        display: flex;
        border-radius: 0;
    }

    .cvio-filter-panel.cvio-panel-closed { display: none; }
    .cvio-filter-panel.cvio-panel-open {
        display: block;
        animation: asfSlideIn 0.22s ease;
    }

    @keyframes asfSlideIn {
        from { opacity: 0; transform: translateY(-6px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* Mobile (<640px): Expand-Button und Extra-Filter via JS gesteuert */
    .cvio-filter-more-link {
        display: block;
        text-align: center;
        margin: 4px 0;
    }
    .cvio-filter-more-link-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        color: #666;
        text-decoration: none;
        padding: 8px 14px;
        border-radius: 4px;
        transition: color 0.15s, background 0.15s;
    }
    .cvio-filter-more-link-btn:hover {
        color: var(--as24-primary, #000);
        background: #f5f5f5;
        text-decoration: none;
    }
}

/* ── Steuer-Hinweis Grid View ──────────────────────────────── */
.fahrzeug-tax-note {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    padding: 0 2px;
    line-height: 1.3;
}


/* ═══════════════════════════════════════════════════════════════
   FINANZIERUNGSRECHNER WIDGET
   ═══════════════════════════════════════════════════════════════ */

.cvio-financing-widget {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    padding: 28px 32px;
    margin: 30px 0;
    font-family: inherit;
}

/* Header */
.fin-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin-bottom: 24px;
}

/* Sliders */
.fin-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 24px;
}

.fin-control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fin-control-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.fin-value-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 17px;
    font-weight: 700;
    color: #111;
}

.fin-unit {
    font-size: 13px;
    color: #888;
    font-weight: 400;
}

/* Range Slider */
.fin-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    transition: background 0.1s;
}

.fin-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #111;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    transition: transform 0.1s;
}

.fin-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.fin-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #111;
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    cursor: pointer;
}

.fin-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #aaa;
    margin-top: 2px;
}

/* Rate Bar */
.fin-rate-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.fin-rate-label {
    font-size: 15px;
    font-weight: 600;
    color: #444;
    white-space: nowrap;
}

.fin-rate-value {
    font-size: 20px;
    font-weight: 800;
    color: #111;
    background: #f0f700;
    padding: 4px 14px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Details Toggle */
.fin-details-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--as24-primary, #000000);
    cursor: pointer;
    transition: opacity 0.15s;
    width: 100%;
    text-align: left;
}

.fin-details-toggle:hover { opacity: 0.75; }

.fin-chevron {
    transition: transform 0.22s ease;
    flex-shrink: 0;
}

/* Detail Table */
.fin-details {
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
    margin-bottom: 16px;
}

.fin-detail-table {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fin-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
    color: #555;
}

.fin-detail-row:last-child { border-bottom: none; }

.fin-detail-total {
    font-size: 13px;
    color: #888;
}

.fin-detail-highlight {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    padding-top: 14px;
}

/* Disclaimer */
.fin-disclaimer {
    border-top: 1px solid #f0f0f0;
    padding-top: 14px;
    margin-top: 8px;
}

.fin-disclaimer p {
    font-size: 12px;
    color: #999;
    line-height: 1.6;
    margin: 0 0 6px 0;
}

.fin-disclaimer-legal {
    font-size: 11px !important;
    color: #bbb !important;
}

/* Responsive */
@media (max-width: 680px) {
    .cvio-financing-widget {
        padding: 20px 16px;
    }
    .fin-controls {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .fin-rate-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ── Schlussrate Toggle + Balloon Hint ──────────────────────── */

.fin-balloon-toggle-row {
    margin: 4px 0 16px;
    padding: 14px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.fin-balloon-label-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.fin-balloon-label {
    font-size: 16px;
    font-weight: 600;
    color: #111;
}

/* iOS-style Toggle Switch */
.fin-toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 26px;
    flex-shrink: 0;
}

.fin-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.fin-toggle-track {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 26px;
    cursor: pointer;
    transition: background 0.2s;
}

.fin-toggle-track::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    transition: transform 0.2s;
}

.fin-toggle-switch input:checked + .fin-toggle-track {
    background: #1a73e8;
}

.fin-toggle-switch input:checked + .fin-toggle-track::after {
    transform: translateX(18px);
}

.fin-balloon-hint {
    font-size: 13px;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* ── Carousel: price-financing-note ─────────────────────────── */
.price-financing-note {
    display: block;
    font-size: 10px;
    color: #aaa;
    margin-top: 3px;
    font-weight: 400;
}

/* ── Karussell: MwSt./Differenzbesteuerung unter Preis ───── */
.price-tax-note {
    display: block;
    font-size: 10px;
    color: #999;
    margin-top: 3px;
    font-weight: 400;
    line-height: 1.3;
}

/* ── Finanzierungs-CTA Button ───────────────────────────────────────── */
.fin-cta-section {
    margin: 20px 0 12px 0;
    text-align: center;
}

.fin-cta-headline {
    font-size: 14px;
    color: #555;
    margin: 0 0 12px 0;
    font-weight: 500;
}

.fin-cta-button {
    display: inline-block;
    background-color: #2c6ecb;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 6px;
    text-decoration: none !important;
    letter-spacing: 0.2px;
    transition: background-color 0.18s ease;
    cursor: pointer;
}

.fin-cta-button:hover {
    background-color: #1e56a8;
    color: #fff !important;
    text-decoration: none !important;
}

.fin-cta-button:active {
    background-color: #174490;
}


/* ── Spacing Fix (ausgelagert) ─────────────────────────────── */
/*
         * WordPress Block-Themes setzen margin-top via inline style auf dem
         * <main>-Element: style="margin-top:var(--wp--preset--spacing--60)"
         * Inline-Styles haben Spezifität (1,0,0,0) — nur !important schlägt sie.
         *
         * Wir targeten spezifisch nur Fahrzeug-Detailseiten, damit andere
         * Seiten unberührt bleiben.
         */
        #wp--skip-link--target,
        main#wp--skip-link--target,
        .wp-block-group#wp--skip-link--target {
            margin-top: 0 !important;
            padding-top: 0 !important;
        }

        /*
         * Das WordPress-Post-Title-Block (wp-block-post-title) erzeugt ebenfalls
         * Spacing. Wir blenden es aus und entfernen seinen Platz komplett.
         */
        .wp-block-post-title {
            display: none !important;
            margin: 0 !important;
            padding: 0 !important;
            min-height: 0 !important;
            height: 0 !important;
        }

        /*
         * Manche Block-Themes wrappen den Titel in einen weiteren Group-Block
         * mit eigenem Padding. Ebenfalls nullen.
         */
        .entry-content > .wp-block-group:has(.wp-block-post-title),
        .wp-block-template-part + .wp-block-group {
            padding-top: 0 !important;
            margin-top: 0 !important;
        }

        /*
         * WordPress Block-Themes setzen via :root :where(.is-layout-constrained) > *
         * einen margin-block-start: 1.2rem auf alle direkten Kind-Elemente von
         * Layout-Containern. Spezifität: (0,1,0) — wird mit unserem (0,2,0) Selektor
         * überschrieben ohne !important.
         */
        :root :where(.is-layout-constrained) > .entry-content,
        :root :where(.is-layout-constrained) > .wp-block-post-content,
        :root :where(.is-layout-constrained) > main,
        :root :where(.is-layout-constrained) > #wp--skip-link--target {
            margin-block-start: 0 !important;
        }
        /* Alle direkten Kinder des Hauptinhalts-Containers */
        .wp-site-blocks :where(.is-layout-constrained) > *:first-child,
        .wp-block-post-content > *:first-child {
            margin-block-start: 0 !important;
        }

/* ── Desktop Fav Icon (ausgelagert) ────────────────────────── */
/* ── Desktop Favoriten-Icon in Navbar ──── */
        #as24-nav-fav-btn {
            display: none; /* JS aktiviert wenn Favs > 0 */
            align-items: center;
            gap: 5px;
            text-decoration: none;
            color: inherit;
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            transition: color 0.2s ease;
            white-space: nowrap;
            position: relative;
        }
        #as24-nav-fav-btn:hover { color: var(--as24-primary, #000000); }
        #as24-nav-fav-btn svg {
            width: 20px; height: 20px;
            stroke: currentColor; fill: rgba(232,160,0,0);
            stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
            transition: fill 0.2s ease;
        }
        #as24-nav-fav-btn.has-favs svg {
            fill: rgba(232,160,0,0.2);
            stroke: #e8a000;
        }
        #as24-nav-fav-btn.has-favs { color: #e8a000; }
        #as24-nav-fav-badge {
            position: absolute;
            top: -2px; right: 0px;
            min-width: 17px; height: 17px;
            background: #e8a000; color: #fff;
            font-size: 10px; font-weight: 800;
            border-radius: 9px; display: none;
            align-items: center; justify-content: center;
            padding: 0 3px; line-height: 1; box-sizing: border-box;
        }
        /* Nur Desktop (≥861px) */
        @media (max-width: 860px) {
            #as24-nav-fav-btn { display: none !important; }
        }
        @media print { #as24-nav-fav-btn { display: none !important; } }

/* ── Favoriten-Seite [vio_favorites] ────────────────────────── */
.cvio-fav-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: inherit;
}

.cvio-fav-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    color: #999;
}
.cvio-fav-empty p { font-size: 17px; margin: 0 0 20px; }

.cvio-fav-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 22px;
    background: var(--as24-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: background .15s;
}
.cvio-fav-back-btn:hover { background: var(--as24-secondary); color: #fff; }

.cvio-fav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.cvio-fav-title { font-size: 22px; font-weight: 700; margin: 0; }

.cvio-fav-clear-btn {
    background: none;
    border: 1px solid #d9534f;
    color: #d9534f;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.cvio-fav-clear-btn:hover { background: #d9534f; color: #fff; }

/* Cards Grid */
.cvio-fav-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.cvio-fav-card {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s ease, transform .2s ease;
}
.cvio-fav-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); transform: translateY(-2px); }

/* Nicht verfügbar – ausgegraut */
.cvio-fav-card--unavailable {
    opacity: .75;
    border-color: #e0e0e0;
}
.cvio-fav-card--unavailable:hover { transform: none; box-shadow: none; }

.cvio-fav-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.cvio-fav-card-img svg { width: 48px; height: 48px; opacity: .2; }

/* Badge "Nicht mehr verfügbar" über dem Bild */
.cvio-fav-unavailable-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,.65);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 4px;
    letter-spacing: .2px;
}

.cvio-fav-card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cvio-fav-card-title { font-size: 16px; font-weight: 700; color: #111; margin: 0; }
.cvio-fav-card-subtitle { font-size: 12px; color: #888; margin: 0; }
.cvio-fav-card-modelline {
    font-size: 11px;
    color: #777;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cvio-fav-card-date { font-size: 11px; color: #bbb; margin: 2px 0 0 0; }

/* Key Facts */
.cvio-fav-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
    margin: 6px 0 2px;
}
.cvio-fav-spec {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #555;
    white-space: nowrap;
}
.cvio-fav-spec svg { flex-shrink: 0; opacity: .65; }

/* Preis-Block */
.cvio-fav-price-block {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 8px 0 2px;
    padding: 8px 10px;
    background: #f8fafc;
    border-left: 3px solid var(--as24-primary);
    border-radius: 0 6px 6px 0;
}
.cvio-fav-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--as24-primary);
    line-height: 1.2;
}
.cvio-fav-tax-note { font-size: 10px; color: #888; }

/* Actions */
.cvio-fav-card-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
}
.cvio-fav-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    background: var(--as24-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    transition: background .15s;
}
.cvio-fav-card-link:hover { background: var(--as24-secondary); color: #fff; }

/* Disabled-Link wenn Fahrzeug nicht mehr verfügbar */
.cvio-fav-card-link--disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    background: #e5e7eb;
    color: #9ca3af;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: not-allowed;
    user-select: none;
}

.cvio-fav-remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 7px;
    cursor: pointer;
    color: #aaa;
    font-size: 18px;
    line-height: 1;
    transition: background .15s, color .15s;
}
.cvio-fav-remove-btn:hover { background: #fde8e8; color: #d9534f; border-color: #f5c6c6; }

/* Responsive */
@media (max-width: 600px) {
    .cvio-fav-list { grid-template-columns: 1fr; }
    .cvio-fav-card-img { aspect-ratio: 16/9; }
}
@media (max-width: 400px) {
    .cvio-fav-title { font-size: 18px; }
    .cvio-fav-price { font-size: 16px; }
}

/* ── Widget (ausgelagert) ──────────────────────────────────── */
.cvio-widget { font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
.cvio-widget-row { display:flex; align-items:center; justify-content:space-between; padding:8px 0; border-bottom:1px solid #f1f5f9; font-size:13px; }
.cvio-widget-row:last-child { border-bottom:none; }
.cvio-widget-label { color:#64748b; font-weight:600; }
.cvio-widget-value { color:#1e293b; font-weight:700; }
.cvio-badge { display:inline-flex; align-items:center; padding:2px 9px; border-radius:20px; font-size:11.5px; font-weight:700; }
.cvio-btn-widget { display:inline-flex; align-items:center; gap:6px; padding:9px 18px; background:var(--as24-primary, #000000); color:#fff; border:none; border-radius:8px; font-size:13px; font-weight:700; cursor:pointer; width:100%; justify-content:center; margin-top:12px; transition:opacity .15s; }
.cvio-btn-widget:hover { opacity:.85; }
.cvio-btn-widget:disabled { opacity:.55; cursor:not-allowed; }
#as24-import-spinner { display:none; }

/* ══════════════════════════════════════════════════════════════════════
   BEWERTUNGS-CARDS  [vio_as24bewertung] / [vio_googlebewertung]
   ══════════════════════════════════════════════════════════════════════ */
.cvio-bewertung-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px 24px 20px;
    max-width: 300px;
    min-width: 200px;
    font-family: inherit;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

/* Sterne-Zeile oben */
.cvio-bw-stars-row {
    display: flex;
    gap: 3px;
    justify-content: center;
    margin-bottom: 2px;
}
.cvio-bw-stars-row svg { width: 22px; height: 22px; }

/* Große Durchschnittszahl */
.cvio-bw-score-center { display: flex; align-items: baseline; gap: 0; }
.cvio-bw-avg-big {
    font-size: 28px;
    font-weight: 800;
    color: #111;
    letter-spacing: -.5px;
    line-height: 1.1;
}
.cvio-bw-score-max {
    font-size: 16px;
    color: #9ca3af;
    font-weight: 500;
}

/* Anzahl */
.cvio-bw-count-center {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 8px;
}

/* Logo unten */
.cvio-bw-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    width: 100%;
    margin-top: auto;
}
.cvio-as24-logo { width: 120px; height: auto; }
.cvio-google-logo { height: 32px; width: 32px; }

/* ══════════════════════════════════════════════════════════════════════
   BEWERTUNGS-KARUSSELL  [vio_bewertungen]
   ══════════════════════════════════════════════════════════════════════ */
:root { --bw-primary: var(--as24-primary, #000000); }

.cvio-bw-carousel-wrap { width: 100%; padding: 4px 0 8px;
    /* BUG FIX: Vor Swiper-Init liegen alle Review-Slides als flex-row = massiver overflow rechts.
     * overflow-x: clip schneidet horizontal ab ohne BFC zu erzeugen (kein vertikaler Clip = Shadows ok) */
    overflow-x: clip;
}

/* Swiper vor Init verstecken — verhindert Flash der ungekachelten Vollbreite-Slides */
.cvio-bw-swiper.cvio-bw-pre-init { visibility: hidden; }

/* ── Carousel Skeleton ──────────────────────────────────────────────────── */
.cvio-bw-carousel-skeleton {
    display: flex;
    gap: 20px;
    padding: 5px 4px 4px;
}
.cvio-bw-skel-card {
    flex: 1;
    min-width: 0;
    height: 240px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f2f5;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
/* Drittes Skeleton-Karte nur auf Desktop sichtbar */
.cvio-bw-skel-card--desktop {
    display: none;
}
@media (min-width: 1024px) {
    .cvio-bw-skel-card--desktop { display: flex; }
}
.cvio-bw-skel-badge,
.cvio-bw-skel-line,
.cvio-bw-skel-meta {
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 400% 100%;
    animation: cvio-shimmer 1.4s ease-in-out infinite;
    border-radius: 4px;
}
.cvio-bw-skel-badge  { width: 40px; height: 16px; align-self: flex-end; border-radius: 6px; }
.cvio-bw-skel-line.long   { height: 13px; width: 90%; }
.cvio-bw-skel-line.medium { height: 13px; width: 70%; }
.cvio-bw-skel-line.short  { height: 13px; width: 50%; }
.cvio-bw-skel-meta { height: 12px; width: 55%; margin-top: auto; }
.cvio-bw-swiper {
    overflow: visible;
    padding-top: 5px !important;
    padding-bottom: 4px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
}

@media (max-width: 639px) {
    /* Nav-Arrows auf Touch-Geräten ausblenden — Navigation via Swipe */
    .cvio-bw-swiper .swiper-button-prev,
    .cvio-bw-swiper .swiper-button-next {
        display: none !important;
    }
}

/* Prev/Next – identische Optik wie cvio-vehicle-carousel: blur, dunkel, versteckt bis Hover */
.cvio-bw-swiper .swiper-button-prev,
.cvio-bw-swiper .swiper-button-next {
    width: 46px;
    height: 46px;
    background: rgba(0, 0, 0, 0.40);
    border-radius: 50%;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    border: none;
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, background 0.2s ease, transform 0.2s ease;
    margin-top: -23px;
}
.cvio-bw-swiper .swiper-button-prev:hover,
.cvio-bw-swiper .swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.68);
    transform: scale(1.08);
    box-shadow: none;
}
.cvio-bw-swiper .swiper-button-prev::after,
.cvio-bw-swiper .swiper-button-next::after {
    font-size: 17px; font-weight: 700; color: #fff;
}
/* Arrows nur bei Hover auf den Carousel-Wrapper einblenden */
.cvio-bw-carousel-wrap:hover .swiper-button-prev,
.cvio-bw-carousel-wrap:hover .swiper-button-next {
    opacity: 1;
    pointer-events: auto;
}

/* Review-Kachel */
.cvio-bw-review-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px 18px 16px;
    color: #111;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    height: 240px; /* Feste Höhe — alle Kacheln gleich */
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    transition: box-shadow .2s, transform .15s;
}
.cvio-bw-review-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.09);
    transform: translateY(-2px);
}

/* Scrollbarer Textbereich — füllt verfügbaren Platz zwischen Sternen und Meta */
.cvio-bw-rc-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0; /* Wichtig: flex-child darf schrumpfen */
    position: relative;
    /* Fade-Gradient unten als Hinweis auf mehr Inhalt */
    mask-image: linear-gradient(to bottom, black calc(100% - 28px), transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 28px), transparent 100%);
    padding-right: 4px;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}
/* Wenn vollständig gescrollt → kein Fade mehr */
.cvio-bw-rc-body.scrolled-end {
    mask-image: none;
    -webkit-mask-image: none;
}
/* Custom Scrollbar (Webkit) */
.cvio-bw-rc-body::-webkit-scrollbar {
    width: 3px;
}
.cvio-bw-rc-body::-webkit-scrollbar-track {
    background: transparent;
}
.cvio-bw-rc-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 99px;
}
.cvio-bw-rc-body::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Quell-Badge oben rechts */
.cvio-bw-source-badge { position: absolute; top: 12px; right: 12px; }
.cvio-bw-src-as24 { display: inline-flex; align-items: center; }
.cvio-bw-src-google { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; }

.cvio-bw-rc-stars { display: inline-flex; gap: 2px; }
.cvio-bw-rc-stars svg { width: 15px; height: 15px; }

.cvio-bw-rc-text {
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: 0.01em;
    color: #1f2937;
    margin: 0;
    padding-bottom: 3px;
    flex: 1;
}

/* Original-Text (Fremdsprache) unter der Übersetzung */
.cvio-bw-rc-original {
    font-size: 12px;
    line-height: 1.5;
    color: #9ca3af;
    margin: 0;
    padding-top: 6px;
    border-top: 1px dashed #e5e7eb;
}
.cvio-bw-rc-translated-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #c0c7d1;
    margin-bottom: 2px;
    letter-spacing: 0.02em;
}

.cvio-bw-rc-meta {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: auto; padding-top: 10px;
    border-top: 1px solid #f3f4f6; gap: 8px;
}
.cvio-bw-rc-translated {
    font-size: 10.5px;
    color: #9ca3af;
    margin-top: -4px;
    display: block;
}
.cvio-bw-rc-name { font-size: 12px; font-weight: 700; color: #374151; }
.cvio-bw-rc-date { font-size: 11px; color: #9ca3af; white-space: nowrap; }

/* Mobile: aufgeklappte Karte */
@media (hover: none) {
    /* Tap-Hinweis auf dem Original-Text-Block */
    .cvio-bw-rc-original {
        cursor: pointer;
    }
    .cvio-bw-rc-original::after {
        content: ' ▾';
        font-size: 9px;
        opacity: .5;
    }
    /* Aufgeklappter Zustand */
    .cvio-bw-review-card.cvio-bw-expanded {
        height: auto;
        min-height: 240px;
        z-index: 10;
        box-shadow: 0 12px 32px rgba(0,0,0,.15);
    }
    .cvio-bw-review-card.cvio-bw-expanded .cvio-bw-rc-body {
        overflow-y: visible;
        max-height: none;
        mask-image: none;
        -webkit-mask-image: none;
    }
    .cvio-bw-review-card.cvio-bw-expanded .cvio-bw-rc-original::after {
        content: ' ▴';
    }
}

/* Pagination-Bar — außerhalb des Swipers, kein Overlap */
.cvio-bw-pagination-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    padding: 0 4px;
    min-height: 20px;
}

/* Swiper-Pagination: position zurücksetzen da jetzt im normalen Flow */
.cvio-bw-pagination.swiper-pagination {
    position: static !important;
    bottom: auto !important;
    width: auto !important;
    flex-shrink: 0;
}

/* Zähler „3 / 20" */
.cvio-bw-counter {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    white-space: nowrap;
    letter-spacing: 0.03em;
    min-width: 36px;
    text-align: right;
}

/* Dots */
.cvio-bw-pagination .swiper-pagination-bullet {
    background: #d1d5db;
    opacity: 1;
    width: 6px;
    height: 6px;
    transition: width .3s, background .2s;
}
.cvio-bw-pagination .swiper-pagination-bullet-active {
    background: var(--bw-primary, #000000);
    width: 18px;
    border-radius: 99px;
}

/* Mobile: Dots komplett ausblenden, nur Counter */
@media (max-width: 639px) {
    .cvio-bw-pagination.swiper-pagination {
        display: none !important;
    }
    /* Counter mittig auf Mobile */
    .cvio-bw-pagination-bar {
        justify-content: center;
    }
    .cvio-bw-counter {
        font-size: 10px;
        text-align: center;
        min-width: auto;
    }
    /* Nav-Arrows auf Touch-Geräten ausblenden — Navigation via Swipe */
    .cvio-bw-swiper .swiper-button-prev,
    .cvio-bw-swiper .swiper-button-next {
        display: none !important;
    }
}

/* ── Skeleton für vio_as24bewertung + vio_googlebewertung ──────────────── */
.cvio-bewertung-lazy-wrap {
    position: relative;
}

/* Content startet unsichtbar — JS blendet ein wenn sichtbar */
.cvio-bewertung-lazy-wrap .cvio-lazy-content {
    opacity: 0;
}

/* Skeleton überlagert den Content-Bereich */
.cvio-bewertung-skel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    border-radius: inherit;
    background: #fff;
    z-index: 2;
}

/* Shimmer-Animation (wiederverwendet cvio-shimmer aus Standort-Block) */
.cvio-bewertung-skel > div {
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 400% 100%;
    animation: cvio-shimmer 1.4s ease-in-out infinite;
    border-radius: 6px;
}
.cvio-bw-skel-stars  { width: 110px; height: 18px; }
.cvio-bw-skel-score  { width: 72px;  height: 36px; border-radius: 8px; }
.cvio-bw-skel-count  { width: 88px;  height: 13px; }
.cvio-bw-skel-logo   { width: 80px;  height: 30px; margin-top: 4px; border-radius: 4px; }

@media print {
    .cvio-bw-carousel-wrap,
    .cvio-video-counter-badge,
    .cvio-video-info-badge { display: none !important; }
}

/* ── Popularity / Social Proof ─────────────────────────────────────────── */
.cvio-popularity {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #9ca3af;
    margin-top: 8px;
    flex-wrap: wrap;
}
.cvio-pop-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.cvio-pop-item svg {
    flex-shrink: 0;
    opacity: .7;
}
.cvio-pop-divider {
    opacity: .4;
}
@media print {
    .cvio-popularity { display: none !important; }
}

/* ── Equipment Checkboxes in vio_filter ──────────────────────── */
.asf-equipment-group {
    margin-bottom: 12px;
    padding-left: 5px;
    padding-top: 5px;
    border-left: 2px solid #eee;
}

/* Auf Mobile/Tablet ausblenden — Scroll-Konflikt mit Filter-Slider */
@media (max-width: 1023px) {
    .asf-equipment-group {
        display: none;
    }
}
.asf-equipment-title {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    margin-bottom: 7px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.asf-equipment-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 10px;
}
.asf-equipment-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #444;
    line-height: 1.3;
    padding: 3px 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}
.asf-equipment-item:focus,
.asf-equipment-item:focus-visible {
    outline: none;
}
.asf-equipment-item input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--as24-primary, #111);
    width: 14px;
    height: 14px;
    cursor: pointer;
    outline: none;
}
.asf-equipment-item input[type="checkbox"]:focus,
.asf-equipment-item input[type="checkbox"]:focus-visible {
    outline: none;
}
/* Parent "alle Varianten" Checkbox */
.asf-equipment-parent {
    font-weight: 700;
    color: #222;
    margin-top: 4px;
    padding-bottom: 2px;
    border-bottom: 1px solid #eee;
    margin-bottom: 2px;
}
.asf-equipment-parent.is-checked {
    color: var(--as24-primary, #111);
}
/* Children die durch Parent ausgegraut sind */
.asf-equipment-child.asf-child-greyed {
    opacity: 0.45;
    pointer-events: none;
    padding-left: 18px;
}
.asf-equipment-child.asf-child-greyed input[type="checkbox"] {
    cursor: not-allowed;
}
/* Normale Children: leicht eingerückt wenn ein Parent existiert */
.asf-equipment-child:not(.asf-child-greyed) {
    padding-left: 18px;
}

.asf-equipment-mehr {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--as24-primary, #333);
    font-weight: 600;
    padding: 4px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.asf-equipment-mehr:hover { text-decoration: underline; }

/* ── Equipment Kompakt: Parent wie normale Checkbox (kein Bold/Divider) ── */
.asf-eq-compact { display: flex; flex-direction: column; gap: 0; }
.asf-eq-compact .asf-equipment-parent {
    font-weight: 400;
    color: #444;
    border-bottom: none;
    padding: 3px 0;
    margin: 0;
    font-size: 13px;
}
/* Im Modal: Parents als klare Abschnitts-Header */
.asf-eq-modal-body .asf-equipment-parent {
    font-weight: 700;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 6px;
    margin-top: 12px;
    padding-top: 0;
    font-size: 13px;
}
.asf-eq-modal-body .asf-equipment-parent:first-child { margin-top: 0; }

/* ── Equipment Modal ─────────────────────────────────────────── */
.asf-eq-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(2px);
}
.asf-eq-modal-inner {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    width: min(480px, 96vw);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.asf-eq-modal-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.asf-eq-modal-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    flex: 1;
}
.asf-eq-modal-search {
    width: 160px;
    padding: 6px 10px;
    font-size: 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    transition: border-color .15s;
}
.asf-eq-modal-search:focus { border-color: var(--as24-primary, #333); }
.asf-eq-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color .15s;
}
.asf-eq-modal-close:hover { color: #1e293b; }
.asf-eq-modal-body {
    overflow-y: auto;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.asf-eq-modal-body .asf-equipment-parent {
    border-bottom: 1px solid #e2e8f0;
    margin-top: 10px;
    padding-bottom: 6px;
}
.asf-eq-modal-body .asf-equipment-parent:first-child { margin-top: 0; }


/* ── No-results Alternativen Banner ─────────────────────────── */
.cvio-no-results-alt {
    background: #fff8f0;
    border: 1px solid #ffd5a8;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 20px;
}
.cvio-no-results-alt h4 {
    margin: 0 0 6px;
    font-size: 15px;
    color: #b45309;
}
.cvio-no-results-alt p {
    margin: 0 0 4px;
    font-size: 13px;
    color: #78350f;
}

/* ─── QUICKSEARCH LIVE COUNT ───────────────────────────────────────────── */
#qs-submit-count {
    font-weight: 700;
}
#qs-submit-label {
    font-weight: 600;
}

/* ─── SANTANDER WIDGET: SCROLL-LOCK + PRINT FIX ─────────────────────────────
   Wenn Santander Fullscreen offen: body scrollen verhindern.
   touch-action:none verhindert iOS Rubber-Banding.
   Eigene Klasse statt body.style.overflow direkt — kein Konflikt mit
   Santanders eigenem overflow-Management.
   ─────────────────────────────────────────────────────────────────────────── */
body.cvio-san-open {
    overflow: hidden !important;
    touch-action: none;
}

/* Print: alle Santander Floating-Elemente ausblenden */
@media print {
    .san-widget-floating,
    #san-float-widget-btn,
    [class*="san-floating"],
    [class*="FloatingWidgetButton"],
    [class*="san-expandable"],
    [class*="ExpandableModal"] {
        display: none !important;
        visibility: hidden !important;
    }
}

/* ── Antriebsart-Filter (vio_filter + vio_detailsuche) ──────────────────────
   Radio-Buttons die wie Equipment-Checkboxen aussehen.
   Nutzen bewusst die selben asf-equipment-item Basisklassen.
   ─────────────────────────────────────────────────────────────────────────── */
.asf-drivetrain-pills {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
}
.asf-drivetrain-item input[type="radio"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--as24-primary, #111);
    width: 14px;
    height: 14px;
    cursor: pointer;
    outline: none;
}
.asf-drivetrain-item input[type="radio"]:focus,
.asf-drivetrain-item input[type="radio"]:focus-visible {
    outline: none;
}
.asf-drivetrain-all {
    opacity: 0.55;
    font-style: italic;
    font-size: 12px;
}

/* ── Dual Range Slider (KM / Preis in vio_filter) ────────────────────── */
.asf-dual-slider {
    position: relative;
    height: 36px;
    margin: 4px 0 0;
}
.asf-dual-track {
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    height: 4px;
    background: #e0e0e0;
    border-radius: 4px;
    transform: translateY(-50%);
    pointer-events: none;
}
.asf-dual-fill {
    position: absolute;
    height: 100%;
    background: var(--as24-primary, #333);
    border-radius: 4px;
}
.asf-range-input {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0; width: 100%;
    height: 4px;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    pointer-events: none;
    margin: 0; padding: 0;
    outline: none;
}
.asf-range-input::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    pointer-events: all;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--as24-primary, #333);
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
    cursor: pointer;
    transition: transform .12s, box-shadow .12s;
}
.asf-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.18);
    box-shadow: 0 3px 10px rgba(0,0,0,.3);
}
.asf-range-input::-webkit-slider-thumb:active {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.asf-range-input::-moz-range-thumb {
    pointer-events: all;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--as24-primary, #333);
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
    cursor: pointer;
}
.asf-range-display {
    float: right;
    font-size: 12px;
    font-weight: 700;
    color: var(--as24-primary, #333);
    font-variant-numeric: tabular-nums;
}
.asf-range-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 10px;
    color: #aaa;
    letter-spacing: -.2px;
}
