#produkte  {
    list-style: none;
    padding: 0;
}
.card {
    background: inherit;
    border: none;
    word-wrap: break-word;
}
.card-body {
    background-color: #ffffff;
    padding: 20px 20px 15px 20px;
    border-radius: 0 0 15px 15px;
}
.card h5, .card .h5 {
    font-size: 16px;
    font-weight: 300;
}
.price-container {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}
ul.description {
    font-size: 13px;
    opacity: 0.75;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 15px;
    border-top: 1px solid rgba(0,0,0,.1);
    border-bottom: 1px solid rgba(0,0,0,.1);
    margin: 0px;
}
.card-body .h5 {
    margin-bottom: 0 !important;
}
.color-container {
    margin-top: 5px;
    display: flex;
    flex-wrap: wrap;
}
.color-bg-holder {
    width: 25px;
    height: 25px;
    display: block;
    font-weight: bold;
    font-size: 10px;
    line-height: 22px;
    text-align: center;
    color: #666666;
    background-color: #DCDCDC;
    padding: 1px;

    margin-right: 7px;
    margin-bottom: 7px;
}
.color-bg-holder span {
    width: 23px;
    height: 23px;
    display: block;
}

.color-container .color-bg-holder {
    position: relative;
}

.color-container .color-bg-holder::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    border: 1px solid #aaa;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

/* sichtbar bei Hover ODER aktiv */
.color-container .color-bg-holder:hover::before,
.color-container .color-bg-holder.is-active::before {
    opacity: 1;
}


.filter-active {
    background: #000 !important;
}
.div-filter {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f5f5f5;
}
#button-filter {
    width: 100%;
}
.card-image {
    position: relative;
}
/* Listing-Artikel als weiße, gerundete Card (hebt sich vom grauen Hintergrund ab) */
.card-inner {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: none;
    border: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.pic-1 {
    opacity: 1;
    transition: all .5s ease-out 0s;
}
.pic-2 {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: all .5s ease-out 0s;

    max-width: 100%;
    height: auto;
}
.pic-1:hover {
    opacity: 0;
}
.pic-2:hover {
    opacity: 1;
}
/* ===== Filter horizontal über den Produkten (Desktop) statt linke Sidebar ===== */
@media (min-width: 576px) {
    #filter {
        display: flex !important;
        flex: 0 0 100%;
        max-width: 100%;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 8px;
    }
    #filter #faceted { display: contents; }
    #produkte { flex: 0 0 100%; max-width: 100%; }
    #filter .options:has(.h5) { flex: 1 1 200px; margin-bottom: 0; }
    #filter .options:not(:has(.h5)) { flex: 0 0 100%; order: 99; }
}
/* Jede Filtergruppe als weiße Card */
#filter .options:has(.h5) {
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
#filter .options .card-title,
#filter .options .h5 {
    font-weight: 500;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
/* Reset-Links (ohne Titel) schlicht, keine Card */
#filter .options:not(:has(.h5)) {
    background: none;
    box-shadow: none;
    padding: 0;
    margin: 4px 0 0;
    text-align: center;
}
#filter .options:not(:has(.h5)) .link {
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

/* ===== Filter-Toggle-Button (Filterleiste ein-/ausklappen) ===== */
#filter-toggle { display: none; }
@media (min-width: 576px) {
    #filter-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        flex: 0 0 auto;
        order: -1;
        margin: 0 0 12px;
        padding: 9px 16px;
        background: #fff;
        border: 1px solid rgba(0, 0, 0, 0.12);
        border-radius: 8px;
        font-size: 14px;
        font-weight: 500;
        color: #000;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        transition: background 0.15s ease;
    }
    #filter-toggle:hover { background: #f5f5f5; }
    #filter-toggle svg { transition: transform 0.3s ease; }
    #filter-toggle.is-expanded svg { transform: rotate(180deg); }

    /* Filter standardmäßig geschlossen; öffnet per .filter-expanded */
    #filter {
        transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
        max-height: 0;
        opacity: 0;
        margin-bottom: 0;
        overflow: hidden;
        pointer-events: none;
    }
    #filter.filter-expanded {
        max-height: 600px;
        opacity: 1;
        margin-bottom: 8px;
        pointer-events: auto;
    }
}

/* ============================================================
   g21 EQUIVA-Produktkarte (Akzentfarbe Schwarz #111)
   ============================================================ */
.g21-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    overflow: hidden;
}

/* --- Medien / Bild --- */
.g21-card__media {
    position: relative;
    aspect-ratio: 1 / 1.26;
    background: #fff;
    overflow: hidden;
}
.g21-card__imglink { display: block; width: 100%; height: 100%; }
.g21-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.g21-card__img--alt { opacity: 0; transition: opacity 0.4s ease; }
.g21-card:hover .g21-card__img--alt { opacity: 1; }

/* --- Badge oben links --- */
.g21-card__badge {
    position: absolute;
    top: 12px; left: 12px;
    z-index: 3;
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #fff;
}
.g21-card__badge--sale { background: #e02b2b; }
.g21-card__badge--new  { background: #111; }
.g21-card__badge--ship { background: #111; }

/* --- Merkzettel-Herz oben rechts --- */
.g21-card__wish {
    position: absolute;
    top: 10px; right: 10px;
    z-index: 3;
    width: 38px; height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #111;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    transition: background 0.15s ease, color 0.15s ease;
}
.g21-card__wish:hover { background: #111; color: #fff; }
/* Icons (Herz + Warenkorb): Stroke direkt setzen (umgeht den <a>-Farb-Cascade) */
.g21-card__wish svg,
.g21-card__cart svg { stroke: #111; }
.g21-card__wish:hover svg,
.g21-card__cart:hover svg { stroke: #fff; }

/* --- Highlight-Streifen --- */
.g21-card__ribbon {
    position: relative;
    z-index: 2;
    margin-top: -16px;
    background: #111;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    padding: 9px 12px;
    border-radius: 16px 16px 0 0;
}

/* --- Body --- */
.g21-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px 14px;
    flex: 1 1 auto;
}
.g21-card__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    color: #111;
    text-decoration: none;
}
.g21-card__title:hover { color: #111; text-decoration: underline; }
.g21-card__desc {
    margin: 0;
    font-size: 13px;
    color: #777;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Preis (price_box wiederverwendet) --- */
.g21-card__price {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin-top: 2px;
}
.g21-card__price .small_price { font-size: 13px; font-weight: 600; color: #555; }
.g21-card__price .price[style] { color: #999 !important; }

/* --- Aktionszeile --- */
.g21-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 2px;
}
.g21-card__chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.g21-card__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border: 1px solid #ddd;
    border-radius: 8px;
}
.g21-card__chip:hover { border-color: #111; }
.g21-card__chip--more {
    font-size: 11px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
}
.g21-card__chip--more:hover { color: #111; }
.g21-card__chip-dot {
    display: block;
    width: 16px; height: 16px;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.12);
}
.g21-card__cart {
    flex: 0 0 auto;
    width: 42px; height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    color: #111;
    background: rgb(250, 201, 80);
    transition: background 0.15s ease, color 0.15s ease;
}
.g21-card__cart:hover { background: #111; color: #fff; }

@media (prefers-reduced-motion: reduce) {
    .g21-card__img--alt,
    .g21-card__wish,
    .g21-card__cart { transition: none; }
}
