 .stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    font-family: sans-serif;
  }

  .step {
    display: flex;
    align-items: center;
    position: relative;
    /* Erlaubt den Steps, den verfügbaren Platz gleichmäßig zu füllen */
    flex: 1; 
  }

  /* Verhindert, dass der letzte Schritt sich unnötig dehnt */
  .step:last-child {
    flex: none;
  }

  .step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--permagrau);
    border: 2px solid var(--permagrau);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--permaweiss);
    z-index: 2;
    flex-shrink: 0; /* Kreis darf nicht gequetscht werden */
  }

  .step-label {
    margin-left: 10px;
    margin-right: 15px;
    white-space: nowrap;
    color: var(--permaweiss);
    font-size: 14px;
    z-index: 2;
  }

  /* Die Linie zwischen den Schritten */
  .step-line {
    flex-grow: 1;
    height: 2px;
    background-color: var(--permaweiss);
    margin-right: 15px;
    z-index: 1;
  }

  /* --- ZUSTÄNDE --- */

  /* Aktiv */
  .step.active .step-circle {
    border-color: #C99901;
    color: var(--permaweiss);
    box-shadow: 0 0 8px rgba(33, 150, 243, 0.3);
	background: #C99901;
  }
  .step.active .step-label {
    color: var(--permaweiss);
    font-weight: bold;
  }

  /* Erledigt */
  .step.done .step-circle {
    background-color: var(--braun1);
    border-color: var(--braun1);
    color: var(--permaweiss);
  }
  .step.done .step-label {
    color: var(--permaweiss);
  }
  .step.done .step-line {
    background-color: var(--braun1);
  }


@media (max-width: 760px) {
  .stepper {
    flex-direction: column; /* Alles untereinander */
    align-items: flex-start; /* Linksbündig */
    gap: 20px; /* Abstand zwischen den Schritten */
	margin-left: calc((100% - 140px)/ 2);
  }
  

  .step {
    width: 100%;
  }

  /* Die Linie muss jetzt vertikal verlaufen */
  .step-line {
    position: absolute;
    left: 17.5px; /* Mittig unter dem 32px Kreis */
    top: 32px;
    width: 2px;
    height: 20px; /* Feste Höhe für den vertikalen Abstand */
    margin: 0;
  }
  
  .step:last-child .step-line {
    display: none;
  }
}
