/* Wizard (Messplatz) – nutzt die Tokens aus static/css/app.css */

.wizard-step[hidden],
.wizard-nav [hidden] { display: none; }

/* Schrittanzeige: eine Zeile, jeder Schritt mit Nummer */
.wizard-steps {
  display: flex;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  counter-reset: wizard;
}
.wizard-steps li {
  counter-increment: wizard;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: -1px;
  padding: 10px 12px;
  font-weight: 500;
  color: var(--ink-muted);
  background: var(--surface);
  border: 1px solid var(--sand-line);
}
.wizard-steps li:first-child { margin-left: 0; }

.wizard-steps li::before {
  content: counter(wizard);
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 12px;
  color: var(--ink);
  background: var(--sand-light);
  border: 1px solid var(--sand-border);
  border-radius: 50%;
}

/* aktueller Schritt */
.wizard-steps li.is-current {
  color: #fff;
  background: var(--forest);
  border-color: var(--forest);
}
.wizard-steps li.is-current::before {
  color: var(--forest);
  background: #fff;
  border-color: #fff;
}

/* erledigte Schritte: Haken statt Nummer */
.wizard-steps li.is-done {
  color: var(--forest-dark);
  background: var(--green-pale);
}
.wizard-steps li.is-done::before {
  content: "\2713";
  color: #fff;
  background: var(--forest-light);
  border-color: var(--forest-light);
}

/* Fußleiste: Zurück links, Weiter rechts */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--sand-line);
}

/* Hinweis zwischen den Knöpfen: warum "Weiter" gesperrt ist */
.wizard-hint {
  flex: 1;
  align-self: center;
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ---------- Messschritt ---------- */

.measure-controls {
  display: flex;
  gap: 10px;
  margin: 12px 0;
}
.measure-progress {
  display: block;
  width: 100%;
  height: 14px;
  accent-color: var(--forest);
}
#measure-status {
  margin: 8px 0 14px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Live-Tabelle: wächst nach unten, scrollt ab einer festen Höhe, Kopfzeile bleibt stehen */
.measure-table-wrap {
  max-height: 320px;
  overflow-y: auto;
}
.measure-table-wrap thead th {
  position: sticky;
  top: 0;
  background: var(--surface);
}

@media (max-width: 700px) {
  .wizard-steps li {
    flex-direction: column;
    gap: 4px;
    padding: 8px 4px;
    font-size: 11px;
    text-align: center;
  }
}
