/* Tempo-Simulation auf der Startseite: Prüfregel wird geschrieben, Daten werden bereinigt. */
.tempo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 36px;
  align-items: stretch;
}
@media (max-width: 820px) {
  .tempo { grid-template-columns: minmax(0, 1fr); }
}
.tempo-col { min-width: 0; display: flex; flex-direction: column; }
.tempo-col .demo-term { flex: 1; display: flex; flex-direction: column; }
.tempo-code {
  flex: 1;
  margin: 0;
  padding: 18px 20px;
  min-height: 220px;
  color: #0b1220;
  font: 0.88rem/1.75 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
}
.tempo-code .caret {
  display: inline-block;
  width: .55em;
  height: 1.1em;
  vertical-align: -.2em;
  background: #1d4ed8;
  animation: blink 1s steps(1) infinite;
}
.tempo-card {
  background: #f3f6fb;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tempo-col .demo-term { background: #f3f6fb; }
.tempo-count {
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1.1;
}
.tempo-count small {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-faint);
  margin-left: 6px;
}
.tempo-bar {
  height: 8px;
  margin: 14px 0 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border);
  overflow: hidden;
}
.tempo-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #1d4ed8, #3b82f6);
  transition: width .5s ease;
}
.tempo-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  flex: 1;
  align-content: space-evenly;
  gap: 12px;
  font-size: .92rem;
}
.tempo-log li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 4px 8px;
  align-items: start;
  animation: tempoIn .35s ease both;
}
.tempo-log .haken { color: var(--text-faint); font-weight: 700; }
.tempo-log li.wartet { opacity: .45; animation: none; }
.tempo-log li.fertig .haken { color: #1f7a52; }
.tempo-log li.fertig { animation: tempoIn .35s ease both; }
.tempo-log .hinweis { grid-column: 2; color: var(--text-faint); font-size: .85rem; }
.tempo-log .delta { color: var(--text-faint); font-variant-numeric: tabular-nums; }
.tempo-result {
  margin: 18px 0 0;
  font-weight: 600;
  min-height: 1.5em;
}
.tempo-replay { margin-top: 14px; align-self: flex-start; }@keyframes tempoIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tempo-log li { animation: none; }
  .tempo-code .caret { animation: none; }
  .tempo-bar i { transition: none; }
}
