/* Schaubild „Zwei Wege zur Reparatur“ (bau/schau/reparaturwege.js) */

.reparatur__lage { position: relative; }
.reparatur__lage[hidden] { display: none; }
.schau--reparaturwege .schau__schild--aus { background: var(--stahl600); }

/* Wer repariert, kommt einmal von der Mitte her zum Gerät */
.schau--reparaturwege[data-geht] .reparatur__gang { animation: reparatur-gang 1.3s cubic-bezier(0.3, 0.7, 0.3, 1) both; }
@keyframes reparatur-gang {
  from { transform: translateX(calc(-1 * var(--gang))); }
  to { transform: none; }
}
.schau--reparaturwege[data-geht] .reparatur__lage > .schau__schilder > :last-child { animation: reparatur-schild 0.3s 1.2s both; }
@keyframes reparatur-schild {
  from { opacity: 0; }
  to { opacity: 1; }
}
.schau--reparaturwege .schau__ergebnis p[hidden] { display: none; }

/* Am Handy ist die Zeichnung klein: Die Schilder stehen oben links und rechts, das mittlere entfällt
   (der Satz unter dem Bild sagt dasselbe). */
@media (max-width: 719px) {
  .schau--reparaturwege .reparatur__lage { padding-top: 34px; }
  .schau--reparaturwege .schau__schild { top: 8px !important; transform: none; font-size: 0.6875rem; }
  .schau--reparaturwege .schau__schild:first-child { left: 8px !important; }
  .schau--reparaturwege .schau__schild:last-child { left: auto !important; right: 8px; }
  .schau--reparaturwege .schau__schild:not(:first-child):not(:last-child) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .schau--reparaturwege[data-geht] .reparatur__gang,
  .schau--reparaturwege[data-geht] .reparatur__lage > .schau__schilder > :last-child { animation: none; }
}
