/* ═══════════════════════════════════════════════════════════════
   TM24 Ankauf – Kategorie-Grid (inspiriert von tradein-group)
   Erstellt: 15.05.2026
   ═══════════════════════════════════════════════════════════════ */

.tm24-category-section {
    padding: 0 0 12px;
    margin: -8px 0 0;
}

.tm24-category-section__title {
    text-align: center;
    margin: 0 0 28px;
}

.tm24-category-section__title h2 {
    font-family: 'Figtree', 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #121a45;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.tm24-category-section__title p {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}

/* ── Grid ── */
.tm24-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ── Card ── */
.tm24-category-card {
    position: relative;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 18px;
    padding: 24px 16px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.tm24-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2E2BCB, #4f46e5);
    opacity: 0;
    transition: opacity 0.3s;
}

.tm24-category-card:hover {
    border-color: #2E2BCB;
    box-shadow: 0 8px 32px rgba(46, 43, 203, 0.12), 0 2px 8px rgba(0,0,0,0.04);
    transform: translateY(-4px);
}

.tm24-category-card:hover::before {
    opacity: 1;
}

.tm24-category-card:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(46, 43, 203, 0.08);
}

/* ── Bild ── */
.tm24-category-card__image {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.tm24-category-card__image img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.08));
}

.tm24-category-card:hover .tm24-category-card__image img {
    transform: scale(1.08);
}

/* ── Text ── */
.tm24-category-card__name {
    font-family: 'Figtree', 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #121a45;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}

.tm24-category-card__count {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: 0.02em;
}

/* ── Pfeil-Icon ── */
.tm24-category-card__arrow {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 12px;
    transition: all 0.3s;
}

.tm24-category-card:hover .tm24-category-card__arrow {
    background: #2E2BCB;
    color: #fff;
    transform: translateX(2px);
}

/* ── Umwelt-Badge ── */
.tm24-eco-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 520px;
    margin: 24px auto 0;
    padding: 18px 24px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1.5px solid #a7f3d0;
    border-radius: 16px;
    animation: tm24-eco-fadeIn 0.6s ease-out;
}

@keyframes tm24-eco-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.tm24-eco-badge__icon {
    font-size: 32px;
    flex-shrink: 0;
    line-height: 1;
}

.tm24-eco-badge__text {
    font-size: 14px;
    line-height: 1.5;
    color: #065f46;
    font-weight: 500;
}

.tm24-eco-badge__text strong {
    font-weight: 800;
    color: #047857;
}

@media (max-width: 480px) {
    .tm24-eco-badge {
        padding: 14px 16px;
        gap: 10px;
        margin: 16px 10px 0;
    }
    .tm24-eco-badge__icon { font-size: 26px; }
    .tm24-eco-badge__text { font-size: 13px; }
}

/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */

/* Tablets */
@media (max-width: 768px) {
    .tm24-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 12px;
    }

    .tm24-category-section__title h2 {
        font-size: 22px;
    }

    .tm24-category-card {
        padding: 20px 12px 16px;
    }

    .tm24-category-card__image {
        height: 120px;
    }

    .tm24-category-card__image img {
        max-height: 110px;
    }

    .tm24-category-card__name {
        font-size: 15px;
    }
}

/* Mobile klein */
@media (max-width: 480px) {
    .tm24-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 10px;
    }

    .tm24-category-section__title {
        margin-bottom: 20px;
    }

    .tm24-category-section__title h2 {
        font-size: 20px;
    }

    .tm24-category-card {
        padding: 16px 10px 14px;
        border-radius: 14px;
    }

    .tm24-category-card__image {
        height: 90px;
    }

    .tm24-category-card__image img {
        max-height: 85px;
    }

    .tm24-category-card__name {
        font-size: 14px;
    }

    .tm24-category-card__count {
        font-size: 11px;
    }

    .tm24-category-card__arrow {
        width: 22px;
        height: 22px;
        font-size: 10px;
        top: 10px;
        right: 10px;
    }
}
