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

:root {
    --as24-primary:   #0073aa;
    --as24-secondary: #005a87;
}

/* =========================================================
   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));
    gap: 20px;
    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 */
}

/* ── 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 (Shortcode: as24_detailsuche)
   ========================================================= */

.cvio-detailsuche {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.detailsuche-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.detailsuche-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.section-heading {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-equipment {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 5px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

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

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #555;
}

.form-group select,
.form-group input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.equipment-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.equipment-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px;
    background: white;
    border-radius: 4px;
    transition: background 0.2s;
}

.equipment-checkbox:hover {
    background: #e8f4f8;
}

.equipment-checkbox input[type="checkbox"] {
    cursor: pointer;
}

.detailsuche-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 20px;
}

.button-primary,
.button-secondary {
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.button-primary {
    background: var(--as24-primary);
    color: white;
}

.button-primary:hover {
    background: var(--as24-secondary);
}

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

.button-secondary:hover {
    background: #e5e5e5;
}

/* Detailsuche override – spezifischer Selektor für Theme-Kompatibilität */
.detailsuche-form .button-primary,
.detailsuche-form button[type="submit"] {
    background: var(--as24-primary) !important;
    border-color: var(--as24-primary) !important;
}

.detailsuche-form .button-primary:hover,
.detailsuche-form button[type="submit"]:hover {
    background: var(--as24-secondary) !important;
    border-color: var(--as24-secondary) !important;
}

/* =========================================================
   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;
}

/* 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 {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s;
}

.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;
    }
    .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: 14px;
}

.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 */
.asf-extra {
    border-top: 1px dashed #e8e8e8;
    padding-top: 14px;
    margin-top: -6px;
}

/* Submit */
.asf-submit-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 6px;
    margin-bottom: 8px;
}

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

/* Reset */
.asf-reset-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px;
    font-size: 13px;
    color: #888;
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.asf-reset-btn:hover {
    color: #333;
    background: #f5f5f5;
    text-decoration: none;
}

/* "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, #0073aa);
    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, #0073aa); }
        #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 (ausgelagert) ─────────────────────────── */
.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(--primary-color); color: #fff;
            text-decoration: none; border-radius: 8px; font-weight: 600; font-size: 14px;
        }
        .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); }
        .cvio-fav-card-img {
            width: 100%; aspect-ratio: 4/3; background: #f5f5f5;
            display: flex; align-items: center; justify-content: center;
        }
        .cvio-fav-card-img svg { width: 48px; height: 48px; opacity: .2; }
        .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 Specs ─────────────────── */
        .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(--primary-color);
            border-radius: 0 6px 6px 0;
        }
        .cvio-fav-price {
            font-size: 18px; font-weight: 700;
            color: var(--primary-color);
            line-height: 1.2;
        }
        .cvio-fav-tax-note {
            font-size: 10px; color: #888;
        }

        .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(--primary-color); color: #fff;
            text-decoration: none; border-radius: 7px; font-size: 13px; font-weight: 600;
        }
        .cvio-fav-card-link:hover { background: var(--secondary-color); }
        .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; }
        @media (max-width: 500px) {
            .cvio-fav-list { grid-template-columns: 1fr; }
        }

/* ── 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, #0073aa); 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(--primary-color, #0073aa); }

.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, #0073aa);
    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; }
}
