/*
 * Darstellung der Diagnoseseite.
 * Bewusst schlicht: sie ist ein Messinstrument, keine Oberflaeche.
 */

.zeile {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: 4px 16px;
  padding: 8px 0;
  border-top: 1px solid var(--linie);
}
.zeile:first-of-type { border-top: 0; }

.zeile dt, .zeile .bez {
  color: var(--ink-schwach);
  font-size: 0.9rem;
}
.zeile dd, .zeile .wert {
  margin: 0;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .zeile { grid-template-columns: 1fr; }
}

.marke {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.marke-ok      { background: color-mix(in srgb, var(--ok) 18%, transparent);     color: var(--ok); }
.marke-warn    { background: color-mix(in srgb, var(--warn) 20%, transparent);   color: var(--warn); }
.marke-fehler  { background: color-mix(in srgb, var(--fehler) 18%, transparent); color: var(--fehler); }
.marke-neutral { background: color-mix(in srgb, var(--ink) 10%, transparent);    color: var(--ink-schwach); }

.hinweise {
  margin: 12px 0 0;
  padding-left: 1.2em;
}
.hinweise li { margin: 4px 0; color: var(--ink-schwach); }

.tabelle {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.tabelle th, .tabelle td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--linie);
}
.tabelle th { color: var(--ink-schwach); font-weight: 600; }
.tabelle td.zahl { text-align: right; font-variant-numeric: tabular-nums; }

.scroll { overflow-x: auto; }

.pruefpunkt {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 6px 0;
  border-top: 1px solid var(--linie);
}
.pruefpunkt:first-child { border-top: 0; }
.pruefpunkt .text { flex: 1; }
.pruefpunkt .dauer { color: var(--ink-schwach); font-size: 0.8rem; font-variant-numeric: tabular-nums; }

.vorbehalt {
  margin: 12px 0 0;
  padding: 12px;
  border-left: 4px solid var(--warn);
  background: color-mix(in srgb, var(--warn) 8%, transparent);
  font-size: 0.9rem;
}

/* ------------------------------------------------------------------ *
 * Gefuehrter Geraetetest
 * ------------------------------------------------------------------ */

.hinweis-klein {
  margin: -4px 0 12px;
  color: var(--ink-schwach);
  font-size: 0.88rem;
}

button.sekundaer {
  background: transparent;
  color: var(--akzent);
  border: 1px solid var(--linie);
}
@media (prefers-color-scheme: dark) {
  button.sekundaer { color: var(--akzent); }
}

.schrittliste {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  counter-reset: schritt;
}

.schritt {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 4px 12px;
  padding: 12px 0;
  border-top: 1px solid var(--linie);
}
.schritt:first-child { border-top: 0; }

.schritt .nr {
  grid-row: 1 / span 4;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink-schwach);
  padding-top: 2px;
}

.schritt .titel { font-weight: 600; }

.schritt .marke-zeile { margin: 2px 0; }

.schritt .anleitung,
.schritt .meldung {
  font-size: 0.9rem;
  color: var(--ink-schwach);
  overflow-wrap: anywhere;
}
.schritt .meldung { color: var(--ink); }

.schritt-bestanden      { background: color-mix(in srgb, var(--ok) 6%, transparent); }
.schritt-fehlgeschlagen { background: color-mix(in srgb, var(--fehler) 8%, transparent); }
.schritt-fehlgeschlagen .meldung { color: var(--fehler); }

.schritt .aktion { margin: 8px 0 0; }
.schritt button { min-height: 40px; padding: 0 14px; font-size: 0.95rem; }

.zaehlerzeile {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}

#geraetetest-bericht {
  margin: 12px 0 0;
  padding: 12px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  border-radius: var(--radius);
  font-size: 0.8rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-x: auto;
}
