/* ══════════════════════════════════════════════════════════════════
   Fortschrittsanzeige: Warenkorb → Bestellübersicht → Zahlung

   Verwendet in checkout.php, order_review.php, pay_bank.php und
   payment_success.php. Einbinden in header.php:

       <link rel="stylesheet" href="/assets/css/steps.css">

   Zustände:
     (ohne)      noch nicht erreicht  — grau
     .is-active  aktueller Schritt    — blau
     .is-done    erledigt             — grün mit Haken
   ══════════════════════════════════════════════════════════════════ */

.mhs-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 720px;
    margin: 0 auto 16px;
    padding: 12px 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.mhs-step {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.mhs-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.mhs-step-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    max-width: 60px;
}

.mhs-step.is-done { color: #15803D; }
.mhs-step.is-done .mhs-step-num {
    background: #DCFCE7;
    color: #15803D;
    font-size: 0;
}
.mhs-step.is-done .mhs-step-num::before {
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", FontAwesome;
    font-weight: 900;
    content: "\f00c";
    font-size: 0.7rem;
}

.mhs-step.is-active { color: #1565C0; }
.mhs-step.is-active .mhs-step-num {
    background: #1565C0;
    color: #ffffff;
}

/* Auf schmalen Bildschirmen bleibt nur die Beschriftung des
   aktuellen Schritts stehen, sonst bricht die Zeile um. */
@media (max-width: 575.98px) {
    .mhs-step-text { display: none; }
    .mhs-step.is-active .mhs-step-text { display: inline; }
}