/* ==============================================
   TM24 NOVAChild – Listing: Catpills (Marken-Filter)
   Modul: modules/listing/catpills/catpills.css
   Scope: .tm24-catpills-*, .tm24-catpill, .tm24-catpill-chip
   Quelle: custom.css Zeilen 6834-7100
   UTF-8 ohne BOM
   ============================================== */

.tm24-catpills-wrap {
    background: #fff;
    border-bottom: 2px solid #f0f2f8;
    padding: 0;
    box-shadow: 0 2px 8px rgba(46,43,203,.05);
}

.tm24-catpills-label { display: none; }

.tm24-catpills-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 14px 24px 14px;
    max-width: 1400px;
    margin: 0 auto;
}

.tm24-catpill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    background: #f8f9ff;
    color: #374151;
    font-family: var(--f);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -.1px;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease;
}

.tm24-catpill:hover {
    border-color: #c7d2fe;
    background: #eef1ff;
    color: var(--p);
    box-shadow: 0 2px 12px rgba(46,43,203,.10);
    transform: translateY(-1px);
}

.tm24-catpill.is-open {
    border-color: var(--p);
    background: var(--p);
    color: #fff;
    box-shadow: 0 4px 18px rgba(46,43,203,.30);
    transform: translateY(-1px);
}

.tm24-catpill.is-open .tm24-catpill__count {
    background: rgba(255,255,255,.18);
    color: rgba(255,255,255,.95);
}

.tm24-catpill__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 8px;
    background: #e0e7ff;
    color: var(--p);
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

/* === Modell-Chip-Panel === */
.tm24-catpills-panel {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 14px 24px 16px;
    background: linear-gradient(0deg, #f4f6ff 0%, #f8f9ff 100%);
    border-top: 1.5px solid #e0e7ff;
    animation: tm24pillpanel .2s cubic-bezier(.22,.68,0,1);
}

.tm24-catpills-panel.is-visible { display: flex; }

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

.tm24-catpills-panel::before {
    content: 'Modelle:';
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #9ca3af;
    margin-right: 4px;
    flex-shrink: 0;
}

.tm24-catpill-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-family: var(--f);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease, transform .15s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.tm24-catpill-chip:hover {
    border-color: var(--p);
    background: #eef1ff;
    color: var(--p);
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(46,43,203,.12);
    transform: translateY(-1px);
}

.tm24-catpill-chip--all {
    border-color: #c7d2fe;
    background: #eef1ff;
    color: var(--p);
    font-weight: 800;
}

.tm24-catpill-chip--all::before {
    content: '←';
    margin-right: 4px;
    font-size: 14px;
}
