/* ==========================================================================
   RUNDGANG BEENDEN

   Zwei Wege, klar getrennt: abschließen (groß, blau, oben) und verwerfen
   (ruhig, unten, mit Rückfrage). Niemand soll aus Versehen den falschen
   erwischen.
   ========================================================================== */

.abschluss { padding-bottom: calc(var(--s8) + var(--safe-b)); }

/* ------------------------------------------------------------ Prüfblöcke */
.pruef {
  margin-bottom: var(--s4); padding: var(--s4);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface);
}
.pruef h3 {
  display: flex; align-items: center; gap: var(--s2);
  font-size: 1rem; font-weight: 750; letter-spacing: -.015em;
}
.pruef p { margin-top: 4px; font-size: .88rem; color: var(--ink-2); line-height: 1.45; }

.pruef-rot {
  background: color-mix(in srgb, var(--bad) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--bad) 40%, transparent);
}
.pruef-rot h3 { color: var(--bad); }
.pruef-gelb {
  background: color-mix(in srgb, var(--orange) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--orange) 36%, transparent);
}
.pruef-gelb h3 { color: var(--orange); }
.pruef-gruen {
  background: color-mix(in srgb, var(--ok) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--ok) 36%, transparent);
}
.pruef-gruen h3 { color: var(--ok); }

/* Jede Lücke ist antippbar und führt direkt dorthin, wo sie zu beheben ist. */
.pruef-zeile {
  display: flex; align-items: center; gap: var(--s2);
  width: 100%; min-height: 52px; margin-top: var(--s2); padding: var(--s2) var(--s3);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--ink); text-align: left; font-size: .9rem; line-height: 1.35;
}
.pruef-zeile span { flex: 1; min-width: 0; }
.pruef-zeile .ic { color: var(--ink-3); flex: none; }
.pruef-zeile:active { background: var(--surface-3); }
.pruef-zeile[disabled] { opacity: .65; }

/* --------------------------------------------------- Vorschau je Abteilung */
.abt-block {
  margin-bottom: var(--s3); padding: var(--s3) var(--s4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
}
.abt-block-kopf {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2);
  padding-bottom: var(--s2); border-bottom: 1px solid var(--line);
}
.abt-block-kopf b { font-size: 1rem; font-weight: 750; letter-spacing: -.015em; }
.abt-block-kopf span { font-size: .8rem; color: var(--ink-3); }

.abt-punkt {
  display: flex; align-items: baseline; gap: var(--s2);
  padding: var(--s2) 0; border-bottom: 1px solid var(--line);
}
.abt-punkt:last-child { border-bottom: 0; padding-bottom: 0; }
.abt-punkt-t {
  flex: 1; min-width: 0; font-size: .92rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.abt-punkt-o { flex: none; font-size: .78rem; color: var(--ink-3); }

.abschluss-hinweis {
  margin-top: var(--s3); text-align: center;
  font-size: .82rem; color: var(--ink-3); line-height: 1.5;
}

/* ------------------------------------------------------------------ Fertig */
.fertig-kopf { text-align: center; padding: var(--s7) var(--s4) var(--s6); }
.fertig-haken {
  display: grid; place-items: center;
  width: 84px; height: 84px; margin: 0 auto var(--s4);
  border-radius: 50%; background: var(--ok); color: #fff;
}
.fertig-kopf h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.025em; }
.fertig-kopf p {
  margin-top: var(--s2); font-size: .94rem; color: var(--ink-2); line-height: 1.5;
}

.ticket-liste { display: flex; flex-direction: column; gap: var(--s2); }
.ticket {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4);
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--line-2); border-radius: var(--r-md);
}
.ticket.sofort { border-left-color: var(--bad); }
.ticket-nr {
  flex: none; font-size: .78rem; font-weight: 800;
  font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--brand);
}
.ticket-t { flex: 1; min-width: 0; }
.ticket-t b {
  display: block; font-size: .95rem; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ticket-t span { display: block; font-size: .8rem; color: var(--ink-3); margin-top: 2px; }

/* „Wird gerade ausgewertet …" im Abschluss: dieselbe kleine Bewegung wie an
   der Karte. Die Zeilen strecken sonst jedes span — die Animation nicht. */
.pruef-zeile .kw-bild, .pruef-zeile .kw-bild span { flex: none; }
.pruef-zeile .kw-bild .ic { color: var(--brand); }
