/* =============================================
   TM24 ANKAUF – WARUM TM24 (TM24 Flyer-Design)
   ============================================= */

.why-tm24-section {
    background: #ffffff;
    padding: 72px 0 80px;
    position: relative;
}

.why-tm24-section .container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEAD ===== */
.why-tm24-head {
    text-align: center;
    margin-bottom: 34px;
}

.why-tm24-head h2 {
    margin: 0;
    color: #061b3a;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.why-tm24-head h2::after {
    content: "";
    display: block;
    width: 72px;
    height: 5px;
    margin: 14px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #003b95 0%, #e30613 100%);
}

.why-tm24-head p {
    margin: 14px 0 0;
    color: #66748a;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 500;
}

/* ===== GRID ===== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

/* ===== CARDS ===== */
.why-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dce5f2;
    border-radius: 24px;
    padding: 30px 24px 28px;
    min-height: 250px;
    text-align: center;
    box-shadow: 0 18px 42px rgba(6, 27, 58, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.why-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, #003b95 0%, #e30613 100%);
    opacity: 0;
    transition: opacity 0.22s ease;
}

/* ===== ICON-BOXEN – ALLE kräftiges TM24-Blau ===== */
.why-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 20px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #003b95 !important;
    color: #ffffff !important;
    font-size: 25px;
    box-shadow: 0 14px 28px rgba(0, 59, 149, 0.24);
    transition: transform 0.22s ease;
}

.why-icon i {
    color: #ffffff !important;
    opacity: 1 !important;
    font-size: 25px;
}

/* Alle Farbklassen auf TM24-Blau überschreiben */
.why-icon.purple,
.why-icon.blue,
.why-icon.green {
    background: #003b95 !important;
    box-shadow: 0 14px 28px rgba(0, 59, 149, 0.24) !important;
}

/* ===== TITEL ===== */
.why-card h5 {
    margin: 0 0 12px;
    color: #061b3a;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -0.02em;
}

/* ===== TEXT ===== */
.why-card p {
    margin: 0;
    color: #5f6f86;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 500;
}

/* ===== HOVER ===== */
@media (hover: hover) and (pointer: fine) {
    .why-card:hover {
        transform: translateY(-5px);
        border-color: rgba(0, 59, 149, 0.28);
        box-shadow: 0 24px 55px rgba(6, 27, 58, 0.14);
    }

    .why-card:hover::before {
        opacity: 1;
    }

    .why-card:hover .why-icon {
        transform: scale(1.06);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .why-card {
        min-height: 230px;
    }
}

@media (max-width: 640px) {
    .why-tm24-section {
        padding: 48px 0 56px;
    }

    .why-tm24-section .container {
        padding: 0 16px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .why-card {
        padding: 26px 20px;
        min-height: auto;
    }

    .why-icon {
        width: 56px;
        height: 56px;
        font-size: 22px;
        border-radius: 16px;
    }

    .why-card h5 {
        font-size: 15px;
    }
}
