/* ============================================================
   WPCS Vehicle Archive — vehicle.css
   Nur fahrzeugspezifische Styles.
   Struktur (Page, Sidebar, Topbar, Layout) → style.css
   Voraussetzung: style.css, form-elements.css, ui.css
   ============================================================ */


/* ============================================================
   AJAX LOADING STATE
   Nur #wpcs_vehicle_archive nötig — funktioniert in jedem Template
   ============================================================ */

#wpcs_vehicle_archive {
    position: relative;
}

#wpcs_vehicle_archive::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--wpcs-color-primary), var(--wpcs-color-primary-bright));
    border-radius: 2px;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    z-index: 10;
    pointer-events: none;
}

#wpcs_vehicle_archive.is-loading::after {
    opacity: 1;
    animation: wpcs-progress 1.2s ease-in-out infinite;
}

#wpcs_vehicle_archive.is-loading .wpcs-vehicle-list {
    opacity: 0.3;
    pointer-events: none;
    transition: opacity 200ms ease;
}

@keyframes wpcs-progress {
    0%   { transform: scaleX(0);   transform-origin: left;  }
    30%  { transform: scaleX(0.6); transform-origin: left;  }
    70%  { transform: scaleX(0.6); transform-origin: right; }
    100% { transform: scaleX(0);   transform-origin: right; }
}


/* ============================================================
   TEXT SEARCH
   ============================================================ */

.wpcs_textsearch {
    position: relative;
}

.wpcs_textsearch .searchInput {
    width: 100%;
    height: var(--wpcs-form-height);
    padding: 0 48px 0 var(--wpcs-space-md);
    font-family: var(--wpcs-font-body);
    font-size: var(--wpcs-text-base);
    color: var(--wpcs-color-text);
    background: var(--wpcs-form-bg-color);
    border: 1px solid var(--wpcs-color-border);
    border-radius: var(--wpcs-form-border-radius);
    transition: border-color var(--wpcs-transition);
}

.wpcs_textsearch .searchInput:focus {
    border-color: var(--wpcs-color-primary);
    outline: none;
}

.wpcs_textsearch .wpcs_textsearch_reset_btn {
    display: none;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--wpcs-color-text-dim);
    text-decoration: none;
    z-index: 2;
}

.wpcs_textsearch .wpcs_textsearch_reset_btn:hover {
    color: var(--wpcs-color-primary);
}

.wpcs_textsearch .wpcs_ajax_loader {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

/* Ergebnis-Dropdown */
.wpcs_search_results_default_wrapper {
    position: absolute;
    display: none;
    z-index: 10;
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    background: var(--wpcs-color-surface);
    border: 1px solid var(--wpcs-color-border);
    border-top: none;
    border-radius: 0 0 var(--wpcs-radius-md) var(--wpcs-radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Einzelnes Suchergebnis */
.wpcs_search_results_default_wrapper .vehicle {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid var(--wpcs-color-border);
    transition: background var(--wpcs-transition);
}

.wpcs_search_results_default_wrapper .vehicle:last-child {
    border-bottom: none;
}

.wpcs_search_results_default_wrapper .vehicle:hover {
    background: var(--wpcs-color-surface-3);
}

.wpcs_search_results_default_wrapper .vehicle .img {
    width: 80px;
    flex-shrink: 0;
}

.wpcs_search_results_default_wrapper .vehicle .img img {
    width: 100%;
    border-radius: var(--wpcs-radius-sm);
}

.wpcs_search_results_default_wrapper .vehicle .content {
    flex: 1;
    min-width: 0;
}

.wpcs_search_results_default_wrapper .vehicle .content h3 {
    font-family: var(--wpcs-font-label);
    font-size: var(--wpcs-text-base);
    font-weight: 600;
    color: var(--wpcs-color-text);
    margin: 0 0 2px;
}

.wpcs_search_results_default_wrapper .vehicle .content a {
    text-decoration: none;
    color: inherit;
}

.wpcs_search_results_default_wrapper .vehicle .content a:hover h3 {
    color: var(--wpcs-color-primary);
}

.wpcs_search_results_default_wrapper .vehicle .condition {
    font-family: var(--wpcs-font-mono);
    font-size: var(--wpcs-text-2xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--wpcs-color-text-muted);
}

.wpcs_search_results_default_wrapper .vehicle .specifics {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: 4px;
    font-size: var(--wpcs-text-xs);
    color: var(--wpcs-color-text-muted);
}

.wpcs_search_results_default_wrapper .vehicle .specifics .label {
    color: var(--wpcs-color-text-dim);
}

.wpcs_search_results_default_wrapper .vehicle .price_big {
    font-family: var(--wpcs-font-label);
    font-weight: 700;
    color: var(--wpcs-color-text);
}

.wpcs_search_results_default_wrapper .search_info {
    padding: 8px 16px;
    border-top: 1px solid var(--wpcs-color-border);
    font-size: var(--wpcs-text-xs);
    color: var(--wpcs-color-text-muted);
}


/* ============================================================
   VEHICLE LIST CONTAINER
   ============================================================ */

/* Default = Grid (Auto-Fill, 340px Mindestbreite). Toggle auf Listenansicht
   via .view-list. `:not([class*="wpcs-grid-"])` lässt explizite `grid="N"`-
   Vorgaben durch das zentrale `.wpcs-grid-N`-Pattern in style.css greifen. */
.wpcs-vehicle-list:not([class*="wpcs-grid-"]):not(.view-list) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 14px;
}

.wpcs-vehicle-list.view-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* ============================================================
   ACTIVE FILTERS (Chips über der Vehicle-Liste)
   ============================================================ */

.wpcs_filterform_active_filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.wpcs_filterform_active_filters:empty {
    display: none;
}

.wpcs_filterform_active_filters .active_filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px 6px 12px;
    background: var(--wpcs-color-primary-dim);
    color: var(--wpcs-color-primary);
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--wpcs-font-mono);
    font-size: var(--wpcs-text-2xs);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    line-height: 1.4;
    transition: background var(--wpcs-transition-fast), color var(--wpcs-transition-fast);
}

.wpcs_filterform_active_filters .active_filter .label {
    order: 1;
}

.wpcs_filterform_active_filters .active_filter .reset {
    order: 2;
    cursor: pointer;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: currentColor;
    opacity: 0.7;
    transition: opacity var(--wpcs-transition-fast), background var(--wpcs-transition-fast);
    font-size: 14px;
    line-height: 1;
}

.wpcs_filterform_active_filters .active_filter .reset:hover,
.wpcs_filterform_active_filters .active_filter .reset:focus-visible {
    opacity: 1;
    background: var(--wpcs-color-primary);
    color: #fff;
    outline: none;
}


/* ============================================================
   ARCHIVE PAGINATION WRAPPER
   ============================================================ */

.wpcs-archive-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
}

/* Grid-Items gleich hoch: Article-Wrapper → flex, Card → flex:1.
   Im List-Mode kein Flex-Wrapper, die Card streckt sich von selbst. */
.wpcs-vehicle-list:not(.view-list) > * {
    display: flex;
}

.wpcs-vehicle-list:not(.view-list) > * > .wpcs-vehicle-card {
    flex: 1;
}

/* Suchauftrag im Grid: als normale Card, gleiche Größe wie Fahrzeugkarten */
.wpcs-vehicle-list .wpcs_save_search_request_wrapper {
    display: flex;
}

.wpcs-vehicle-list .wpcs-vsr-archive-card {
    flex: 1;
    flex-direction: column;
    border: 1px solid var(--wpcs-color-border);
    border-radius: var(--wpcs-radius-md);
    background: var(--wpcs-color-surface);
    margin: 0;
}

/* Script-Tags im Grid verstecken (Flex macht sie sonst sichtbar) */
.wpcs-vehicle-list script {
    display: none !important;
}



/* ============================================================
   VEHICLE CARD — BASE
   ============================================================ */

.wpcs-vehicle-card {
    background: var(--wpcs-color-surface);
    border: 1px solid var(--wpcs-color-border);
    border-radius: var(--wpcs-radius-md);
    overflow: hidden;
    cursor: pointer;
    transition:
        box-shadow 220ms ease,
        transform 220ms ease,
        border-color 220ms ease;
    container-type: inline-size;
}

.wpcs-vehicle-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.09);
    transform: translateY(-2px);
    border-color: var(--wpcs-color-border-hover);
}

.wpcs-vehicle-card__image {
    position: relative;
    overflow: hidden;
    background: var(--wpcs-color-surface-3);
    flex-shrink: 0;
}

.wpcs-vehicle-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 500ms ease;
}

.wpcs-vehicle-card:hover .wpcs-vehicle-card__image img {
    transform: scale(1.04);
}

.wpcs-vehicle-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(10, 12, 18, 0.72);
    color: white;
    font-family: var(--wpcs-font-label);
    font-size: var(--wpcs-text-2xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 3px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.wpcs-vehicle-card__fav {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wpcs-color-text-muted);
    backdrop-filter: blur(4px);
    transition: all var(--wpcs-transition);
}

.wpcs-vehicle-card__fav:hover {
    background: white;
    color: #e53935;
}

.wpcs-vehicle-card__title {
    font-family: var(--wpcs-font-label);
    font-weight: 700;
    color: var(--wpcs-color-text);
    line-height: 1.2;
}

.wpcs-vehicle-card__subline {
    color: var(--wpcs-color-text-muted);
    font-size: var(--wpcs-text-md);
    line-height: 1.4;
}

.wpcs-vehicle-card__specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 20px;
}

/* Card-Spec: Label + Value (wie Detail-Seite, kompakt ohne Icons) */
.wpcs-card-spec {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.wpcs-card-spec__label {
    font-family: var(--wpcs-font-mono);
    font-size: var(--wpcs-text-2xs);
    color: var(--wpcs-color-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.wpcs-card-spec__value {
    font-family: var(--wpcs-font-label);
    font-size: var(--wpcs-text-sm);
    font-weight: 600;
    color: var(--wpcs-color-text);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Rückwärtskompatibilität */
.wpcs-spec-chip {
    font-family: var(--wpcs-font-mono);
    font-size: var(--wpcs-text-xs);
    color: var(--wpcs-color-text);
    background: var(--wpcs-color-surface-3);
    border: 1px solid var(--wpcs-color-border);
    padding: 3px 7px;
    border-radius: 3px;
    white-space: nowrap;
}

.wpcs-vehicle-card__price-value {
    font-family: var(--wpcs-font-label);
    font-weight: 700;
    color: var(--wpcs-color-text);
    line-height: 1;
}

.wpcs-vehicle-card__price-note {
    font-size: var(--wpcs-text-xs);
    color: var(--wpcs-color-text-muted);
    margin-top: 2px;
}

.wpcs-vehicle-card__price-rate {
    display: block;
    font-family: var(--wpcs-font-mono);
    font-size: var(--wpcs-text-xs);
    color: var(--wpcs-color-primary);
    text-decoration: none;
    margin-top: 4px;
}

.wpcs-vehicle-card__price-rate:hover {
    text-decoration: underline;
}


/* ============================================================
   EMISSION
   ============================================================ */

.wpcs-emission {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wpcs-emission__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 3px;
    font-family: var(--wpcs-font-label);
    font-weight: 700;
    font-size: var(--wpcs-text-sm);
    flex-shrink: 0;
}

.wpcs-emission__data {
    font-family: var(--wpcs-font-mono);
    font-size: var(--wpcs-text-xs);
    color: var(--wpcs-color-text-muted);
    line-height: 1.5;
}

/* Effizienzklassen A+ bis G */
.eff-A-plus { background: #00a651; color: #fff; }
.eff-A      { background: #4caf50; color: #fff; }
.eff-B      { background: #8bc34a; color: #fff; }
.eff-C      { background: #c6d422; color: #333; }
.eff-D      { background: #f5d500; color: #333; }
.eff-E      { background: #ed7d00; color: #fff; }
.eff-F      { background: #e63700; color: #fff; }
.eff-G      { background: #c50000; color: #fff; }

/* Dual Emission (Plug-in Hybride: 2 Label + 2 Datenzeilen) */
.wpcs-emission--dual {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.wpcs-emission__row {
    display: flex;
    align-items: center;
    gap: 6px;
}


/* ============================================================
   VEHICLE CARD — LIST VIEW
   ============================================================ */

.wpcs-vehicle-list .wpcs-vehicle-card {
    display: flex;
    flex-wrap: wrap;
}

.wpcs-vehicle-list .wpcs-vehicle-card__image {
    width: 260px;
    height: 178px;
}

.wpcs-vehicle-list .wpcs-vehicle-card__body {
    flex: 1;
    display: flex;
    padding: 20px 24px;
    gap: 20px;
    min-width: 0;
}

.wpcs-vehicle-list .wpcs-vehicle-card__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wpcs-vehicle-list .wpcs-vehicle-card__title {
    font-size: var(--wpcs-text-xl);
}

.wpcs-vehicle-list .wpcs-vehicle-card__subline {
    margin-top: -4px;
}

.wpcs-vehicle-list .wpcs-vehicle-card__aside {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    min-width: 148px;
    max-width: 220px;
    overflow: hidden;
}

.wpcs-vehicle-list .wpcs-vehicle-card__aside-price {
    text-align: right;
}

.wpcs-vehicle-list .wpcs-vehicle-card__aside-foot {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

/* CTA im __aside nur in Grid-Views sichtbar, nicht in Listenansicht */
.wpcs-vehicle-list .wpcs-vehicle-card__aside .wpcs-vehicle-card__cta {
    display: none;
}

/* Langer Emissionstext: auf 2 Zeilen begrenzen */
.wpcs-vehicle-list .wpcs-emission__data {
    text-align: right;
    word-break: break-word;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Dual-Emission in Listenansicht: rechtsbündig */
.wpcs-vehicle-list .wpcs-emission--dual {
    align-items: flex-end;
}

.wpcs-vehicle-list .wpcs-vehicle-card__price-value {
    font-size: var(--wpcs-text-4xl);
    text-align: right;
}

.wpcs-vehicle-list .wpcs-vehicle-card__price-note {
    text-align: right;
}

.wpcs-vehicle-list .wpcs-vehicle-card__footer {
    display: none;
}


.wpcs-vehicle-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 14px;
    background: var(--wpcs-color-primary);
    color: white;
    font-family: var(--wpcs-font-label);
    font-size: var(--wpcs-text-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--wpcs-transition);
    text-decoration: none;
}

.wpcs-vehicle-card__cta:hover {
    background: var(--wpcs-color-primary-bright);
}

.wpcs-vehicle-list .wpcs-vehicle-card__cta {
    display: none;
}


/* ============================================================
   VEHICLE CARD ACTIONS (Ansehen / Parken / Vergleichen)
   ============================================================ */

.wpcs-vehicle-card__actions {
    display: flex;
    border-top: 1px solid var(--wpcs-color-border);
}

.wpcs-vehicle-card__action {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 12px;
    font-family: var(--wpcs-font-label);
    font-size: var(--wpcs-text-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--wpcs-color-text-muted);
    background: none;
    border: none;
    border-right: 1px solid var(--wpcs-color-border);
    cursor: pointer;
    text-decoration: none;
    transition: color var(--wpcs-transition), background var(--wpcs-transition);
    /* Override wpcs-btn defaults */
    height: auto;
    border-radius: 0;
}

.wpcs-vehicle-card__action:last-child {
    border-right: none;
}

.wpcs-vehicle-card__action:hover {
    color: var(--wpcs-color-text);
    background: var(--wpcs-color-surface-3);
}

.wpcs-vehicle-card__action--primary {
    color: var(--wpcs-color-primary);
    font-weight: 700;
}

.wpcs-vehicle-card__action--primary:hover {
    color: var(--wpcs-color-primary-bright);
    background: var(--wpcs-color-primary-dim);
}

.wpcs-vehicle-card__action svg {
    flex-shrink: 0;
}

/* Aktiv-Zustand: Parken / Vergleichen */
.wpcs-vehicle-card__action.wpcs_is_parked,
.wpcs-vehicle-card__action.wpcs_in_comparison {
    color: var(--wpcs-color-primary);
}

.wpcs-vehicle-card__action.wpcs_is_parked svg,
.wpcs-vehicle-card__action.wpcs_in_comparison svg {
    fill: var(--wpcs-color-primary);
}

/* Legacy-Spinner (gesteuert von wpcs.js) */
.wpcs-vehicle-card__action .wpcs_icon_spinner {
    display: none;
    animation: wpcs-spin 0.8s linear infinite;
    font-size: 14px;
}

@keyframes wpcs-spin {
    to { transform: rotate(360deg); }
}

/* Listenansicht: Actions-Bar volle Breite */
.wpcs-vehicle-list .wpcs-vehicle-card__actions {
    flex-basis: 100%; flex-wrap:wrap;
}


/* ============================================================
   PAGINATION
   ============================================================ */

.wpcs-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--wpcs-color-border);
}

.wpcs-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 6px;
    border: 1px solid var(--wpcs-color-border);
    border-radius: var(--wpcs-radius-sm);
    background: var(--wpcs-color-surface);
    color: var(--wpcs-color-text-muted);
    font-family: var(--wpcs-font-mono);
    font-size: var(--wpcs-text-md);
    cursor: pointer;
    transition: all var(--wpcs-transition);
    text-decoration: none;
}

.wpcs-pagination__btn:hover {
    border-color: var(--wpcs-color-primary);
    color: var(--wpcs-color-primary);
}

.wpcs-pagination__btn.active {
    background: var(--wpcs-color-primary);
    border-color: var(--wpcs-color-primary);
    color: white;
    font-weight: 600;
}

.wpcs-pagination__btn.disabled {
    opacity: 0.35;
    pointer-events: none;
}

.wpcs-pagination__dots {
    font-family: var(--wpcs-font-mono);
    font-size: var(--wpcs-text-md);
    color: var(--wpcs-color-text-dim);
    padding: 0 4px;
}

.wpcs-pagination__arrow {
    gap: 6px;
    padding: 0 14px;
    font-family: var(--wpcs-font-label);
    font-size: var(--wpcs-text-sm);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}


/* ============================================================
   CONTAINER QUERIES — Vehicle Card
   Reagiert auf die Breite der Karte, nicht des Viewports.
   ============================================================ */

/* Specs auf 1 Spalte wenn Card zu schmal für 2-Spalten-Layout */
@container (max-width: 600px) {
    .wpcs-vehicle-card__specs {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* ============================================================
   Einzige Stelle die das Card-Layout steuert — kein Duplikat
   in @media oder .view-grid-* Selektoren.
   ============================================================ */

@container (max-width: 800px) {
    /* Card vertikal: Bild oben, Body unten */
    .wpcs-vehicle-card {
        flex-direction: column;
    }

    .wpcs-vehicle-card__image {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 10;
    }

    .wpcs-vehicle-card__body {
        flex: 1;
        flex-direction: column;
        padding: 16px;
        gap: 10px;
    }

    .wpcs-vehicle-card__title {
        font-size: var(--wpcs-text-lg);
    }

    .wpcs-vehicle-card__footer {
        display: none;
    }

    /* Aside als Footer: volle Breite, List-View Einschränkungen aufheben */
    .wpcs-vehicle-card__aside {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        max-width: none !important;
        min-width: 0 !important;
        overflow: visible !important;
        padding-top: 10px;
        border-top: 1px solid var(--wpcs-color-border);
        margin-top: auto;
    }

    .wpcs-vehicle-card__aside-price {
        text-align: right;
    }

    .wpcs-vehicle-card__aside-foot {
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 8px;
    }

    .wpcs-vehicle-card__price-value {
        font-size: var(--wpcs-text-2xl);
        text-align: right;
        white-space: nowrap;
    }

    .wpcs-vehicle-card__price-note {
        text-align: right;
    }

    .wpcs-emission__data {
        text-align: left;
        display: block;
        overflow: visible;
        -webkit-line-clamp: unset;
    }

    .wpcs-emission--dual {
        align-items: flex-start;
    }

    /* CTA im Aside sichtbar */
    .wpcs-vehicle-card__aside .wpcs-vehicle-card__cta {
        display: inline-flex;
        flex-shrink: 0;
    }
}


/* ============================================================
   RESPONSIVE — Fallback für ältere Browser
   Breakpoints:  --wpcs-bp-lg: 1024px  |  --wpcs-bp-md: 768px
   ============================================================ */


/* ============================================================
   1024px — Tablet Landscape
   ============================================================ */

@media (max-width: 768px) {

    /* Pagination: kompakter */
    .wpcs-pagination {
        gap: 2px;
        margin-top: 28px;
        padding-top: 24px;
    }

    .wpcs-pagination__arrow {
        padding: 0 10px;
        letter-spacing: 0;
    }

}


/* ============================================================
   ARCHIVE DESCRIPTION (Brand/Model Header)
   ============================================================ */

.wpcs-archive-description {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 28px 32px;
    background: var(--wpcs-color-surface);
    border: 1px solid var(--wpcs-color-border);
    border-radius: var(--wpcs-radius-lg);
    margin-bottom: 24px;
}

.wpcs-archive-description__text {
    flex: 1;
    min-width: 0;
}

.wpcs-archive-description__title {
    font-family: var(--wpcs-font-label);
    font-size: var(--wpcs-text-2xl);
    font-weight: 700;
    color: var(--wpcs-color-text);
    margin: 0 0 8px;
}

.wpcs-archive-description__excerpt {
    font-family: var(--wpcs-font-body);
    font-size: var(--wpcs-text-base);
    line-height: 1.7;
    color: var(--wpcs-color-text-muted);
    margin: 0 0 16px;
}

.wpcs-archive-description__logo {
    width: 100px;
    flex-shrink: 0;
}

.wpcs-archive-description__logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .wpcs-archive-description {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .wpcs-archive-description__logo {
        order: -1;
        width: 72px;
    }
}
