/* =====================================================
   BetterPick Cards - Premium Frontend Styles
   Vertikal Layout, vollständig ausgeklappt, mit Collapse für Tech & FAQ
   ===================================================== */

:root {
    --bpv-primary: #0073aa;
    --bpv-secondary: #2c3e50;
    --bpv-accent: #e74c3c;
    --bpv-success: #27ae60;
    --bpv-warning: #f39c12;
    --bpv-light: #f8f9fa;
    --bpv-border: #e0e0e0;
    --bpv-text: #333;
    --bpv-text-light: #666;
    --bpv-radius: 8px;
    --bpv-shadow: 0 2px 8px rgba(0,0,0,0.1);
    --bpv-shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
    --bpv-transition: all 0.3s ease;
}

/* ========== CONTAINER ========== */

/* Fullshell – echter Viewport-Breakout, bricht aus jedem Theme-Container aus
   und zentriert sich exakt zur Bildschirmmitte */
.bpv-cards-fullshell,
.bpv-cards-fullshell * { box-sizing: border-box; }

.bpv-cards-fullshell {
    /* Klassischer Full-Width-Trick: 100vw breit, mit negativem margin
       der den Container an den Bildschirmrand bringt */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0;
    clear: both;
}

.bpv-cards-container {
    /* Innerer Container der zum Viewport zentriert ist */
    width: min(1500px, calc(100vw - 24px));
    max-width: 1500px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--bpv-text);
}

/* ========== H2 TITLE ========== */

.bpv-cards-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--bpv-primary);
    color: var(--bpv-secondary);
    line-height: 1.3;
    text-align: center;
}

.bpv-cards-subtitle {
    display: block;
    font-size: 18px;
    font-weight: 400;
    color: var(--bpv-text-light);
    margin-top: 8px;
    text-align: center;
}

/* ========== TRUST LINE ========== */

.bpv-cards-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 15px 0 25px 0;
    padding: 12px 16px;
    background: #f0f9ff;
    border-left: 3px solid var(--bpv-primary);
    border-radius: 4px;
    font-size: 14px;
    color: #334155;
}

.bpv-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bpv-trust-item svg {
    color: var(--bpv-primary);
    flex-shrink: 0;
}

.bpv-trust-item strong {
    font-weight: 700;
    color: #1e293b;
}

/* ========== INTRO ========== */

.bpv-cards-intro {
    background: linear-gradient(135deg, #f5f7fa 0%, #fff 100%);
    padding: 20px;
    border-radius: var(--bpv-radius);
    margin: 20px 0 30px 0;
    border-left: 4px solid var(--bpv-primary);
    font-size: 15px;
    line-height: 1.6;
}

/* ========== ITEMS CONTAINER ========== */

.bpv-cards-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 40px 0;
}

/* ========== CARD ========== */

.bpv-card {
    background: white;
    border: 1px solid var(--bpv-border);
    border-radius: var(--bpv-radius);
    padding: 30px;
    box-shadow: var(--bpv-shadow);
    transition: var(--bpv-transition);
    position: relative;
    overflow: visible;
}

.bpv-card:hover {
    box-shadow: var(--bpv-shadow-lg);
    border-color: var(--bpv-primary);
}

/* ========== 2-SPALTEN GRID (Desktop) ========== */

@media (min-width: 768px) {
    .bpv-card {
        display: grid;
        grid-template-columns: 300px 1fr;
        gap: 35px;
        align-items: start;
    }
    .bpv-card-badge,
    .bpv-card-position {
        z-index: 2;
    }
    .bpv-card-media {
        position: relative;
    }
    .bpv-card-content {
        min-width: 0; /* prevents grid-overflow */
    }
    /* Titel hat oben weniger Luft da Badge oben schon Platz einnimmt */
    .bpv-card-content .bpv-card-title {
        margin-top: 0;
    }
}

@media (min-width: 1024px) {
    .bpv-card {
        grid-template-columns: 340px 1fr;
        gap: 45px;
    }
}

@media (min-width: 1280px) {
    .bpv-card {
        grid-template-columns: 360px 1fr;
        gap: 50px;
    }
}

/* ========== BADGE ========== */

.bpv-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--bpv-accent) 0%, #c0392b 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
    z-index: 3;
}

.bpv-card-position {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--bpv-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 3;
}

/* ========== VERDICT BOX (Unsere Bewertung wie vergleich.org) ========== */

.bpv-card-verdict-box {
    margin-top: 16px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--bpv-border);
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.bpv-verdict-header {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.bpv-verdict-label {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Farb-Varianten wie vergleich.org */
.bpv-verdict-winner {
    background: #2596d1;
    box-shadow: 0 2px 4px rgba(37,150,209,0.25);
}

.bpv-verdict-price {
    background: #f0b429;
    box-shadow: 0 2px 4px rgba(240,180,41,0.3);
}

.bpv-verdict-top {
    background: #e74c3c;
    box-shadow: 0 2px 4px rgba(231,76,60,0.25);
}

.bpv-verdict-verygood {
    background: #d4a96a;
    box-shadow: 0 2px 4px rgba(212,169,106,0.25);
}

.bpv-verdict-good {
    background: #5cb85c;
    box-shadow: 0 2px 4px rgba(92,184,92,0.25);
}

.bpv-verdict-default {
    background: #6c757d;
}

.bpv-verdict-date {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 10px;
    font-weight: 500;
}

/* Den alten Top-Right Badge ausblenden, wenn Verdict-Box vorhanden ist
   (wir nutzen jetzt die schönere Box unter dem Bild) */
.bpv-card:has(.bpv-card-verdict-box) .bpv-card-badge {
    display: none;
}

/* ========== IMAGE ========== */

.bpv-card-image {
    margin: 0 0 20px 0;
    text-align: center;
    border-radius: var(--bpv-radius);
    overflow: hidden;
    background: var(--bpv-light);
    padding: 20px;
}

.bpv-card-image img {
    max-width: 100%;
    height: auto;
    display: block;
    max-height: 300px;
    object-fit: contain;
}

/* ========== HEADER (PREIS + BUTTONS) ========== */

.bpv-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 20px 0;
    padding: 15px;
    background: var(--bpv-light);
    border-radius: var(--bpv-radius);
    flex-wrap: wrap;
}

/* In linker Spalte (Desktop): Preis und Buttons untereinander */
@media (min-width: 768px) {
    .bpv-card-media .bpv-card-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .bpv-card-media .bpv-card-price {
        min-width: 0;
        text-align: center;
    }
    .bpv-card-media .bpv-card-buttons {
        flex-direction: column;
        min-width: 0;
    }
    .bpv-card-media .bpv-card-btn {
        width: 100%;
        text-align: center;
    }
}

.bpv-card-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--bpv-accent);
    min-width: 120px;
}

.bpv-card-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 200px;
}

/* ========== BUTTONS ========== */

.bpv-card-btn {
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--bpv-transition);
    display: inline-block;
    text-align: center;
    cursor: pointer;
    border: none;
}

.bpv-card-btn-primary {
    background: var(--bpv-primary);
    color: white;
}

.bpv-card-btn-primary:hover {
    background: #005a87;
    transform: translateY(-2px);
}

.bpv-card-btn-amazon {
    background: #FF9900;
    color: white;
}

.bpv-card-btn-amazon:hover {
    background: #FF7700;
    transform: translateY(-2px);
}

/* ========== H3 TITLE ========== */

.bpv-card-title {
    font-size: 22px;
    font-weight: 700;
    margin: 20px 0 15px 0;
    color: var(--bpv-secondary);
    line-height: 1.3;
}

/* ========== RATINGS ========== */

.bpv-card-rating {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    padding: 12px 16px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #856404;
    border-left: 4px solid var(--bpv-warning);
}

.bpv-card-amazon-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bpv-border);
    margin: 15px 0;
}

.bpv-card-stars {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--bpv-text);
}

.bpv-stars-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.bpv-stars-empty,
.bpv-stars-filled {
    display: inline-flex;
    gap: 2px;
}

.bpv-stars-empty svg,
.bpv-stars-filled svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.bpv-stars-empty {
    color: #e0e0e0;
}

.bpv-stars-filled {
    position: absolute;
    top: 0;
    left: 0;
    color: #ffb400;
    overflow: hidden;
    white-space: nowrap;
}

.bpv-stars-value {
    font-weight: 700;
    color: var(--bpv-text);
    margin-left: 2px;
}

/* ========== AFFILIATE-HINWEIS (Sternchen) ========== */

.bpv-affiliate-mark {
    color: var(--bpv-text-light);
    font-weight: normal;
    font-size: 0.6em;
    margin-left: 2px;
    vertical-align: super;
    line-height: 0;
}

.bpv-card-rating-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    flex-wrap: wrap;
}

.bpv-card-rating-link:hover {
    text-decoration: none;
}

.bpv-card-rating-link:hover .bpv-card-reviews {
    color: var(--bpv-primary);
    text-decoration: underline;
}

.bpv-card-price-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.bpv-card-price-link:hover {
    text-decoration: none;
}

.bpv-card-price-link:hover .bpv-card-price {
    text-decoration: underline;
    text-decoration-color: var(--bpv-accent);
    text-underline-offset: 4px;
}

.bpv-card-reviews {
    font-size: 13px;
    color: var(--bpv-text-light);
}

/* ========== DESCRIPTION ========== */

.bpv-card-description {
    margin: 20px 0;
    padding: 15px;
    background: var(--bpv-light);
    border-radius: var(--bpv-radius);
    line-height: 1.7;
    font-size: 15px;
}

.bpv-card-for-who {
    margin: 15px 0;
    padding: 12px 15px;
    background: #f0f8ff;
    border-left: 4px solid var(--bpv-primary);
    border-radius: 4px;
    font-size: 14px;
}

/* ========== SECTIONS (VORTEILE, NACHTEILE, etc) ========== */

.bpv-card-section {
    margin: 25px 0;
    padding: 0;
    border-radius: var(--bpv-radius);
    overflow: hidden;
}

.bpv-card-section-title {
    padding: 15px 20px;
    font-weight: 700;
    font-size: 16px;
    background: var(--bpv-light);
    border-bottom: 2px solid var(--bpv-border);
    cursor: pointer;
    user-select: none;
}

.bpv-card-section-toggle {
    width: 100%;
    padding: 16px 22px;
    text-align: left;
    font-weight: 700;
    font-size: 16px;
    color: #1e293b;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.bpv-card-section-toggle:hover {
    background: #e2e8f0;
    border-color: var(--bpv-primary);
    color: var(--bpv-primary);
}

.bpv-card-section-toggle[aria-expanded="true"] {
    background: #e0f2fe;
    border-color: var(--bpv-primary);
    color: #0c4a6e;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.bpv-toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 14px;
    color: var(--bpv-primary);
}

.bpv-card-section-toggle[aria-expanded="true"] .bpv-toggle-icon {
    transform: rotate(90deg);
}

.bpv-card-section-content {
    animation: slideDown 0.3s ease;
    overflow: hidden;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

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

/* ========== ADVANTAGES & DISADVANTAGES ========== */

.bpv-advantages-section,
.bpv-disadvantages-section {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    margin-top: 12px;
}

.bpv-advantages-section .bpv-card-section-title,
.bpv-disadvantages-section .bpv-card-section-title {
    padding: 14px 22px;
    background: #f1f5f9;
    border-bottom: 1px solid #cbd5e1;
    border-radius: 8px 8px 0 0;
    font-weight: 700;
    font-size: 16px;
    color: #1e293b;
}

.bpv-advantages-list,
.bpv-disadvantages-list {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.bpv-advantages-list li,
.bpv-disadvantages-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    line-height: 1.6;
    font-size: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.bpv-advantages-list li:last-child,
.bpv-disadvantages-list li:last-child {
    border-bottom: none;
}

.bpv-advantages-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--bpv-success);
    font-weight: 700;
    font-size: 18px;
}

.bpv-disadvantages-list li::before {
    content: '✕';
    position: absolute;
    left: 0;
    color: var(--bpv-accent);
    font-weight: 700;
    font-size: 18px;
}

/* ========== TECHNICAL DETAILS ========== */

.bpv-tech-section {
    border: 1px solid var(--bpv-border);
}

.bpv-tech-list {
    padding: 20px;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.bpv-tech-item {
    background: var(--bpv-light);
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid var(--bpv-primary);
}

.bpv-tech-item dt {
    font-weight: 700;
    color: var(--bpv-primary);
    margin-bottom: 5px;
    font-size: 14px;
}

.bpv-tech-item dd {
    margin: 0;
    color: var(--bpv-text-light);
    font-size: 14px;
}

/* ========== FAQ ========== */

.bpv-faq-section {
    border: 1px solid var(--bpv-border);
}

/* ========== FAQ-Sektion mit semantischer Struktur (h4/h5) ========== */

.bpv-faq-section {
    margin-top: 12px;
}

.bpv-faq-heading {
    /* Reset für h4 – Button übernimmt das Styling */
    margin: 0;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
}

.bpv-faq-heading .bpv-card-section-toggle {
    font-size: 16px;
    font-weight: 700;
    width: 100%;
    text-align: left;
}

.bpv-faq-list {
    padding: 20px;
    list-style: none;
    margin: 0;
    counter-reset: bpv-faq-counter;
}

.bpv-faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    padding-left: 0;
    border-bottom: 1px solid var(--bpv-border);
    counter-increment: bpv-faq-counter;
}

.bpv-faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.bpv-faq-question {
    /* h5-Styling */
    font-weight: 700;
    color: var(--bpv-primary);
    margin: 0 0 10px 0;
    font-size: 15px;
    line-height: 1.4;
    padding: 0;
}

.bpv-faq-answer {
    color: var(--bpv-text-light);
    line-height: 1.7;
    font-size: 14px;
}

.bpv-faq-answer p {
    margin: 0 0 8px 0;
}

.bpv-faq-answer p:last-child {
    margin-bottom: 0;
}

/* ========== FOOTER ========== */

.bpv-cards-footer {
    margin-top: 40px;
    padding: 20px;
    background: var(--bpv-light);
    border-left: 4px solid var(--bpv-primary);
    border-radius: var(--bpv-radius);
    font-size: 13px;
    color: var(--bpv-text-light);
    line-height: 1.6;
}

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

@media (max-width: 768px) {
    .bpv-cards-title {
        font-size: 24px;
    }

    .bpv-cards-subtitle {
        font-size: 16px;
    }

    .bpv-card {
        padding: 20px;
    }

    .bpv-card-header {
        flex-direction: column;
        align-items: stretch;
    }

    .bpv-card-price {
        width: 100%;
        text-align: center;
    }

    .bpv-card-buttons {
        flex-direction: column;
    }

    .bpv-card-btn {
        width: 100%;
    }

    .bpv-card-badge,
    .bpv-card-position {
        position: static;
        margin-bottom: 10px;
        display: inline-block;
    }

    .bpv-tech-list {
        grid-template-columns: 1fr;
    }

    .bpv-card-title {
        font-size: 18px;
    }
}

/* ========== FAZIT-BOX ========== */

.bpv-card-conclusion {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--bpv-primary);
    border-radius: var(--bpv-radius);
    padding: 16px 20px;
    margin: 20px 0;
}

.bpv-card-conclusion-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--bpv-secondary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.bpv-card-conclusion .bpv-card-description {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
}

/* ========== TEST-DATUM (pro Karte) ========== */

.bpv-card-test-date {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 10px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

@media (min-width: 768px) {
    .bpv-card-media .bpv-card-test-date {
        display: block;
        text-align: center;
    }
}

/* ========== TOGGLE-BUTTON & KOLLABIERTE KARTE ========== */

.bpv-card-toggle {
    position: absolute;
    top: -14px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1px solid var(--bpv-border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bpv-text-light);
    transition: var(--bpv-transition);
    z-index: 5;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.bpv-card-toggle:hover {
    background: var(--bpv-primary);
    color: #fff;
    border-color: var(--bpv-primary);
    transform: scale(1.08);
}

.bpv-card-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
}

.bpv-card-toggle[aria-expanded="false"] svg {
    transform: rotate(-90deg);
}

/* Im eingeklappten Zustand bleibt der Toggle an seiner Position */
.bpv-card--collapsed .bpv-card-toggle {
    top: -14px;
    right: 20px;
    left: auto;
}

/* ========================================
   EINGEKLAPPTER ZUSTAND – VARIANTE 2
   Layout: Bild | (Platz X + Titel) | Preis | Details-Button
   ======================================== */

.bpv-card--collapsed {
    display: grid !important;
    grid-template-columns: 56px 1fr auto auto;
    grid-template-rows: auto auto;
    grid-template-areas:
        "image position price details"
        "image title    price details";
    column-gap: 18px;
    row-gap: 2px;
    align-items: center;
    padding: 16px 22px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--bpv-primary);
    border-radius: 8px;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.bpv-card--collapsed:hover {
    border-color: var(--bpv-primary);
    border-left-color: var(--bpv-primary);
    box-shadow: 0 4px 14px rgba(37, 150, 209, 0.12);
    transform: translateY(-1px);
}

/* Alles ausblenden was nicht gebraucht wird */
.bpv-card--collapsed .bpv-card-header,
.bpv-card--collapsed .bpv-card-test-date,
.bpv-card--collapsed .bpv-card-rating,
.bpv-card--collapsed .bpv-card-amazon-rating,
.bpv-card--collapsed .bpv-card-conclusion,
.bpv-card--collapsed .bpv-card-for-who,
.bpv-card--collapsed .bpv-card-advantages,
.bpv-card--collapsed .bpv-card-disadvantages,
.bpv-card--collapsed .bpv-card-section,
.bpv-card--collapsed .bpv-card-verdict-box,
.bpv-card--collapsed .bpv-card-badge,
.bpv-card--collapsed .bpv-card-price-link,
.bpv-card--collapsed .bpv-card-buttons,
.bpv-card--collapsed .bpv-card-sticky-buy {
    display: none !important;
}

/* Bild */
.bpv-card--collapsed .bpv-card-media {
    grid-area: image;
    display: block !important;
    width: 56px;
    height: 56px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
}

.bpv-card--collapsed .bpv-card-image {
    width: 56px;
    height: 56px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.bpv-card--collapsed .bpv-card-image img {
    width: 100%;
    height: 100%;
    max-width: 56px;
    max-height: 56px;
    object-fit: contain;
}

/* Platz-Caption oben */
.bpv-card--collapsed .bpv-card-position {
    grid-area: position;
    align-self: end;
    display: block !important;
    position: static !important;
    background: transparent !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 0 !important;
    margin: 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
    line-height: 1.2 !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

/* Titel */
.bpv-card--collapsed .bpv-card-content {
    grid-area: title;
    align-self: start;
    display: block !important;
    min-width: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
}

.bpv-card--collapsed .bpv-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    margin: 0;
    padding: 0;
    border: none;
    text-align: left;
}

/* Preis-Anzeige */
.bpv-card-collapsed-price {
    display: none; /* standardmäßig versteckt, nur in collapsed sichtbar */
}

.bpv-card--collapsed .bpv-card-collapsed-price {
    grid-area: price;
    align-self: center;
    display: flex !important;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1;
    margin-right: 4px;
}

.bpv-card-collapsed-price-label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 3px;
}

.bpv-card-collapsed-price-value {
    font-size: 17px;
    font-weight: 700;
    color: var(--bpv-accent);
}

/* Preispfeil in collapsed-Karte */
.bpv-card-collapsed-price .bpv-price-arrow {
    font-size: 11px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 3px;
    margin-top: 3px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    align-self: flex-end;
}

.bpv-card-collapsed-price .bpv-price-down {
    color: #15803d;
    background: #dcfce7;
}

.bpv-card-collapsed-price .bpv-price-up {
    color: #b91c1c;
    background: #fef2f2;
}

/* Details-Button */
.bpv-card--collapsed .bpv-card-toggle {
    grid-area: details;
    align-self: center;
    display: flex !important;
    position: static !important;
    width: auto;
    height: auto;
    padding: 10px 20px;
    background: var(--bpv-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    margin: 0;
    pointer-events: none; /* Klick wird vom .bpv-card abgefangen */
}

.bpv-card--collapsed .bpv-card-toggle::after {
    content: 'Details';
}

.bpv-card--collapsed .bpv-card-toggle svg {
    display: none;
}

.bpv-card--collapsed:hover .bpv-card-toggle {
    background: #1d7ab0;
}

/* Mobile: Layout vereinfachen */
@media (max-width: 600px) {
    .bpv-card--collapsed {
        grid-template-columns: 48px 1fr auto;
        grid-template-areas:
            "image position details"
            "image title    details"
            "image price    details";
        column-gap: 12px;
        padding: 12px 16px;
    }
    .bpv-card--collapsed .bpv-card-media,
    .bpv-card--collapsed .bpv-card-image,
    .bpv-card--collapsed .bpv-card-image img {
        width: 48px;
        height: 48px;
        max-width: 48px;
        max-height: 48px;
    }
    .bpv-card--collapsed .bpv-card-collapsed-price {
        align-items: flex-start;
        flex-direction: row;
        gap: 4px;
        margin-top: 2px;
    }
    .bpv-card--collapsed .bpv-card-toggle {
        padding: 8px 14px;
        font-size: 12px;
    }
    .bpv-card--collapsed .bpv-card-title {
        font-size: 14px;
    }
}

/* Hinweis: Kein automatischer Dark-Mode mehr.
   Grund: Browser-Dark-Mode (prefers-color-scheme) würde nur funktionieren wenn auch
   das umgebende Theme dark ist. Da betterpick.de ein helles Theme nutzt, würde ein
   Browser-Dark-Mode nur Kontrast-Probleme erzeugen (unleserliche Texte).
   Stattdessen: Karten rendern immer in konsistentem Light-Design. */

/* ========================================
   STICKY CTA BAR (Mobile only)
   ======================================== */

.bpv-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
    border-top: 1px solid var(--bpv-border);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: none;
    visibility: hidden;
    pointer-events: none;
}

.bpv-sticky-cta.is-visible {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.bpv-sticky-cta-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    max-width: 600px;
    margin: 0 auto;
}

.bpv-sticky-cta-image {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    background: #f8fafc;
    border-radius: 6px;
    padding: 4px;
}

.bpv-sticky-cta-image[src=""],
.bpv-sticky-cta-image:not([src]) {
    display: none;
}

.bpv-sticky-cta-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.bpv-sticky-cta-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bpv-sticky-cta-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--bpv-accent);
    margin-top: 2px;
}

.bpv-sticky-cta-btn {
    flex-shrink: 0;
    background: #ff9900;
    color: #fff !important;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(255,153,0,0.3);
    transition: transform 0.15s ease;
}

.bpv-sticky-cta-btn:hover,
.bpv-sticky-cta-btn:focus {
    transform: translateY(-1px);
    color: #fff !important;
    text-decoration: none;
}

.bpv-sticky-cta-btn:active {
    transform: translateY(0);
}

/* Nur auf Mobile anzeigen */
@media (max-width: 767px) {
    .bpv-sticky-cta {
        display: block;
    }
    /* Body bekommt Padding unten, damit Sticky Bar keine Inhalte verdeckt wenn visible */
    body.bpv-has-sticky-cta {
        padding-bottom: 80px;
    }
}

/* ── Nicht verfügbar: Produktkarten ───────────────── */

/* Collapsed Karte: rote Akzentlinie + ausgegraut */
.bpv-card--unavailable.bpv-card--collapsed {
    opacity: 0.55;
    border-left: 3px solid #e24b4a;
    border-radius: 0;
}

/* Expanded Karte: leicht ausgegraut, rote Akzentlinie */
.bpv-card--unavailable:not(.bpv-card--collapsed) {
    opacity: 0.7;
    border-left: 3px solid #e24b4a;
}

/* Warnbox und Badge NICHT ausgegraut */
.bpv-card--unavailable .bpv-card-unavail-warn,
.bpv-card--unavailable .bpv-unavail-badge-small {
    opacity: 1;
}

/* Kleiner Badge neben dem Preis in collapsed-Karte */
.bpv-unavail-badge-small {
    display: inline-block;
    background: #fef2f2;
    color: #791f1f;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    margin-top: 2px;
    white-space: nowrap;
    align-self: flex-end;
}

/* Warnbox in expandierter Karte */
.bpv-card-unavail-warn {
    display: none;
    background: #fef2f2;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 0 0 16px 0;
    align-items: flex-start;
    gap: 10px;
    grid-column: 1 / -1;
}

.bpv-card:not(.bpv-card--collapsed) .bpv-card-unavail-warn {
    display: flex;
}

.bpv-card-unavail-warn-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: #e24b4a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.bpv-card-unavail-warn-text {
    font-size: 13px;
    color: #791f1f;
    line-height: 1.5;
}

/* Grauer CTA-Button */
.bpv-card-btn-unavail {
    background: #9ca3af !important;
    color: #fff !important;
    border-color: #9ca3af !important;
}

.bpv-card-btn-unavail:hover {
    background: #6b7280 !important;
}

/* Durchgestrichener Preis in Karten */
.bpv-card--unavailable .bpv-card-price,
.bpv-card--unavailable .bpv-card-price-link .bpv-card-price {
    text-decoration: line-through;
    opacity: 0.6;
}

/* Mobile Sticky Buy Bar – nur auf kleinen Screens */
@media (min-width: 768px) {
    #bpv-mobile-sticky-buy { display: none !important; }
}
