/* =============================================
   TM24 ANKAUF – HOW-IT-WORKS (Modern Cards)
   Google/Stripe Style – farbige Icons, Hover
   ============================================= */

/* ===== SECTION ===== */
.how-it-works-section {
    padding: 64px 0 56px;
    background: linear-gradient(180deg, #f8f9ff 0%, #f0f2ff 100%);
}

.how-it-works-section h2 {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.how-sub {
    font-size: 16px;
    color: #475569;
    margin-bottom: 44px;
}

/* ===== GRID: 3 Spalten ===== */
.how-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

/* ===== CARDS ===== */
.how-step {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px 28px 28px;
    text-align: left;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.6);
    cursor: default;
    transition:
        transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 280ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 280ms ease;
}

/* ===== FARBIGE ICON-BOXEN ===== */
.step-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 22px;
    color: #fff;
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.step-icon.purple {
    background: linear-gradient(135deg, #6a5cff 0%, #8b7fff 100%);
    box-shadow: 0 6px 16px rgba(106, 92, 255, 0.25);
}

.step-icon.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.25);
}

.step-icon.green {
    background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.25);
}

.step-icon i {
    font-size: 22px;
    color: #fff;
    background: none;
    box-shadow: none;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border-radius: 0;
    display: inline;
}

/* ===== TITEL ===== */
.how-step h5 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.3;
    transition: color 220ms ease;
}

/* ===== TEXT ===== */
.how-step p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* ===== HOVER: LEBENDIG ===== */
@media (hover: hover) and (pointer: fine) {
    .how-step:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
        border-color: rgba(99, 102, 241, 0.15);
    }

    .how-step:hover .step-icon {
        transform: scale(1.08);
    }

    .how-step:hover h5 {
        color: #0f172a;
    }
}

/* ===== ANIMATION ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.how-step {
    animation: fadeInUp 0.5s ease-out both;
}
.how-step:nth-child(2) { animation-delay: 0.06s; }
.how-step:nth-child(3) { animation-delay: 0.12s; }
.how-step:nth-child(4) { animation-delay: 0.18s; }
.how-step:nth-child(5) { animation-delay: 0.24s; }
.how-step:nth-child(6) { animation-delay: 0.30s; }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .how-step { animation: none; transition: none; }
    .how-step .step-icon { transition: none; }
}

/* ===== PREIS-HINWEIS BOX (Modern) ===== */
.price-hint-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 800px;
    margin: 48px auto 0;
    padding: 22px 28px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8efff 50%, #f5f0ff 100%);
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.12);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.06);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.price-hint-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.10);
}

.price-hint-box i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

.price-hint-box p {
    font-size: 13.5px;
    color: #374151;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .how-steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .how-it-works-section h2 {
        font-size: 26px;
    }
}

@media (max-width: 500px) {
    .how-steps-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .how-step {
        padding: 24px 20px 20px;
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
    }

    .step-icon {
        flex-shrink: 0;
        margin-bottom: 0;
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .how-step h5 {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .how-step p {
        font-size: 13px;
    }

    .price-hint-box {
        flex-direction: column;
        gap: 8px;
    }
}
