/* =========================================================
   MPHB Progress – HARD OVERRIDE (stabil gegen Theme/Elementor)
   Anpassungen:
   - Active circle pulsiert wieder (blink)
   - Nicht erreichte Steps (z.B. Schritt 3) = schwarz
   - Untertitel-Zeile näher an Schritt-Titel (höher)
========================================================= */

:root{
  --mphb-accent: #E1C3B4;
  --mphb-line-grey: #e6e6e6;

  --mphb-title-inactive: #111111;  /* ✅ NICHT grau: schwarz */
  --mphb-sub-inactive: #111111;    /* ✅ NICHT grau: schwarz */

  --mphb-sub-active: #666;
  --mphb-circle-inactive: #d9d9d9;
  --mphb-circle-inactive-text: #8f8f8f;
}

.progress-container{
  width: 100% !important;
  margin: 40px 0 60px !important;
  padding: 0 15px !important;
  box-sizing: border-box !important;
}

.progress-container .safar-mphb-step-progress{
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  position: relative !important;
  max-width: 980px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

/* Basislinie (grau) */
.progress-container .safar-mphb-step-progress::before{
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 56px !important; /* Linie durch Kreismitte */
  height: 2px !important;
  background: var(--mphb-line-grey) !important;
  z-index: 1 !important;
  opacity: 1 !important;
}

/* Aktive Linie (deine Farbe) */
.progress-container .safar-mphb-progress-line{
  position: absolute !important;
  left: 0 !important;
  top: 56px !important;
  height: 2px !important;
  width: 0;
  background: var(--mphb-accent) !important;
  z-index: 2 !important;
  opacity: 1 !important;
  transition: width .6s ease !important;
}

.progress-container .safar-mphb-step{
  width: 33.333% !important;
  text-align: center !important;
  position: relative !important;
  z-index: 3 !important;
  opacity: 1 !important;
}

/* ✅ Titel näher ran (weniger Abstand) */
.progress-container .safar-mphb-step-title{
  font-size: 13px !important;
  font-weight: 700 !important;
  margin: 0 0 4px 0 !important;  /* vorher 10px -> jetzt 4px */
  line-height: 1.1 !important;
  color: var(--mphb-title-inactive) !important; /* schwarz für inactive */
  opacity: 1 !important;
  filter: none !important;
}

/* ✅ Untertitel höher rücken */
.progress-container .safar-mphb-step-description,
.progress-container .safar-mphb-step-subtitle{
  font-size: 14px !important;
  font-weight: 500 !important;
  margin: 0 0 6px 0 !important;  /* vorher 0 -> jetzt 6px, damit Kreis näher an Linie bleibt */
  line-height: 1.2 !important;
  color: var(--mphb-sub-inactive) !important; /* schwarz für inactive */
  opacity: 1 !important;
  filter: none !important;
}

/* Kreis + Zahl: perfekt mittig */
.progress-container .safar-mphb-step-circle{
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  margin: 0 auto 0 !important;   /* ✅ keine Extra-Luft nach unten */
  background: var(--mphb-circle-inactive) !important;
  border: 2px solid var(--mphb-circle-inactive) !important;
  color: var(--mphb-circle-inactive-text) !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;

  box-shadow: none !important;
  animation: none !important;
  opacity: 1 !important;
  filter: none !important;
}

/* Zahl-Span */
.progress-container .safar-mphb-step-number{
  display: inline-block !important;
  line-height: 1 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: inherit !important;
}

/* Completed: gefüllt in Accent, Zahl weiß */
.progress-container .safar-mphb-step.completed .safar-mphb-step-circle{
  background: var(--mphb-accent) !important;
  border-color: var(--mphb-accent) !important;
  color: #fff !important;
}

/* Active: Ring + Pulse, innen weiß, Zahl Accent */
.progress-container .safar-mphb-step.active .safar-mphb-step-circle{
  background: #fff !important;
  border-color: var(--mphb-accent) !important;
  color: var(--mphb-accent) !important;

  /* ✅ Grundring */
  box-shadow: 0 0 0 8px rgba(225,195,180,.22) !important;

  /* ✅ Pulse erzwingen */
  animation: mphbPulse 1.2s ease-in-out infinite !important;
}

/* ✅ Pulse stärker sichtbar */
@keyframes mphbPulse{
  0%   { box-shadow: 0 0 0 6px rgba(225,195,180,.10); }
  50%  { box-shadow: 0 0 0 14px rgba(225,195,180,.32); }
  100% { box-shadow: 0 0 0 6px rgba(225,195,180,.10); }
}

/* Titel für completed/active = Accent */
.progress-container .safar-mphb-step.completed .safar-mphb-step-title,
.progress-container .safar-mphb-step.active .safar-mphb-step-title{
  color: var(--mphb-accent) !important;
}

/* Untertitel für completed/active = dunkler grau (wie vorher) */
.progress-container .safar-mphb-step.completed .safar-mphb-step-description,
.progress-container .safar-mphb-step.active .safar-mphb-step-description,
.progress-container .safar-mphb-step.completed .safar-mphb-step-subtitle,
.progress-container .safar-mphb-step.active .safar-mphb-step-subtitle{
  color: var(--mphb-sub-active) !important;
}

/* Mobile */
@media (max-width: 600px){
  .progress-container{
    margin: 20px 0 28px !important;
    padding: 0 10px !important;
  }

  .progress-container .safar-mphb-step-progress::before,
  .progress-container .safar-mphb-progress-line{
    top: 48px !important;
  }

  .progress-container .safar-mphb-step-title{
    font-size: 11px !important;
    margin-bottom: 3px !important;
  }

  .progress-container .safar-mphb-step-description,
  .progress-container .safar-mphb-step-subtitle{
    font-size: 12px !important;
    margin-bottom: 5px !important;
    max-width: 150px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .progress-container .safar-mphb-step-circle{
    width: 22px !important;
    height: 22px !important;
    font-size: 12px !important;
  }

  .progress-container .safar-mphb-step-number{
    font-size: 12px !important;
  }

  /* Pulse Mobile */
  .progress-container .safar-mphb-step.active .safar-mphb-step-circle{
    animation: mphbPulseMobile 1.2s ease-in-out infinite !important;
  }

  @keyframes mphbPulseMobile{
    0%   { box-shadow: 0 0 0 5px rgba(225,195,180,.12); }
    50%  { box-shadow: 0 0 0 10px rgba(225,195,180,.30); }
    100% { box-shadow: 0 0 0 5px rgba(225,195,180,.12); }
  }
}
