/* Fortschrittsbalken (public/js/fortschritt.js) – eigene weiße Karte, passt
   deshalb in den Shop, ins Kundenkonto und auf /verfolgen */
.fs {
  --fs-orange: #e8651a;
  --fs-grau: #e4e4e7;
  --fs-leise: #71717a;
  background: #fff; color: #09090b; text-align: left;
  border: 1px solid #e4e4e7; border-radius: 14px; padding: 18px 16px 16px;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.fs-kopf { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; }
.fs-symbol { font-size: 1.7rem; line-height: 1; flex: none; }
.fs-titel { font-weight: 800; font-size: 1.15rem; line-height: 1.25; }
.fs-text { color: #3f3f46; font-size: .9rem; line-height: 1.45; margin-top: 3px; }

.fs-balken { position: relative; }
.fs-linie {
  position: absolute; top: 16px; height: 4px; border-radius: 2px; background: var(--fs-grau);
  left: calc(100% / var(--fs-n) / 2); right: calc(100% / var(--fs-n) / 2);
}
.fs-fuellung { position: relative; height: 100%; border-radius: 2px; background: var(--fs-orange); transition: width .8s ease; }
/* Unterwegs: Streifen laufen über die Linie, vorne fährt der Wagen */
.fs-fuellung.unterwegs {
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .45) 0 5px, transparent 5px 10px);
  background-size: 14px 14px;
  animation: fs-streifen .9s linear infinite;
}
.fs-wagen {
  position: absolute; right: -14px; top: 50%; font-size: 21px; line-height: 1;
  transform: translateY(-62%) scaleX(-1);       /* das Emoji schaut nach links */
  animation: fs-wackeln 1.1s ease-in-out infinite;
}

.fs .fs-schritte {
  position: relative; list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(var(--fs-n), minmax(0, 1fr));
}
.fs .fs-schritt { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; min-width: 0; padding: 0 2px; margin: 0; }
.fs-punkt {
  position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-size: 16px; line-height: 1;
  background: #fff; border: 2px solid var(--fs-grau);
}
.fs-schritt.fertig .fs-punkt { background: var(--fs-orange); border-color: var(--fs-orange); color: #fff; font-weight: 800; font-size: 17px; }
.fs-schritt.aktiv .fs-punkt { border-color: var(--fs-orange); box-shadow: 0 0 0 0 rgba(232, 101, 26, .5); animation: fs-puls 1.8s ease-out infinite; }
.fs-schritt.offen .fs-punkt { filter: grayscale(1); opacity: .5; }
.fs-name { font-size: .78rem; font-weight: 700; line-height: 1.2; -webkit-hyphens: auto; hyphens: auto; }
/* Fünf Schritte (Reparatur): jeder Pixel Breite zählt */
.fs.fs-viele .fs-schritt { padding: 0; }
.fs-schritt.aktiv .fs-name { color: var(--fs-orange); }
.fs-schritt.offen .fs-name { color: var(--fs-leise); font-weight: 600; }
.fs-datum { font-size: .7rem; color: var(--fs-leise); line-height: 1.2; }

.fs-sendung {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px;
  margin-top: 16px; padding-top: 12px; border-top: 1px solid #f1f1f3; font-size: .86rem; overflow-wrap: anywhere;
}
.fs-sendung a { color: var(--fs-orange); font-weight: 700; text-decoration: none; white-space: nowrap; }
.fs-sendung a:hover { text-decoration: underline; }

.fs-storniert { background: #fef2f2; border-color: #fecaca; }
.fs-storniert .fs-kopf { margin-bottom: 0; }

/* Kompakt (Kundenkonto) */
.fs-klein { padding: 12px 10px 12px; border-radius: 10px; }
.fs-klein .fs-kopf { margin-bottom: 14px; gap: 10px; }
.fs-klein .fs-symbol { font-size: 1.3rem; }
.fs-klein .fs-titel { font-size: .95rem; }
.fs-klein .fs-text { font-size: .8rem; }
.fs-klein .fs-punkt { width: 28px; height: 28px; font-size: 13px; }
.fs-klein .fs-schritt.fertig .fs-punkt { font-size: 14px; }
.fs-klein .fs-linie { top: 12px; }
.fs-klein .fs-wagen { font-size: 17px; right: -11px; }
.fs-klein .fs-name { font-size: .68rem; }
.fs-klein .fs-sendung { margin-top: 12px; padding-top: 10px; font-size: .8rem; }
/* Kompakt mit fünf Schritten: noch etwas enger, damit die Namen nicht aneinanderstoßen */
.fs-klein.fs-viele { padding-left: 4px; padding-right: 4px; }
.fs-klein.fs-viele .fs-kopf { padding: 0 6px; }
.fs-klein.fs-viele .fs-name { font-size: .62rem; letter-spacing: -.01em; }
.fs-klein.fs-viele .fs-datum { font-size: .56rem; }
.fs-klein.fs-viele .fs-sendung { padding-left: 6px; padding-right: 6px; }

.fs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@keyframes fs-puls { 70% { box-shadow: 0 0 0 10px rgba(232, 101, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(232, 101, 26, 0); } }
@keyframes fs-streifen { to { background-position: 14px 0; } }
@keyframes fs-wackeln { 50% { transform: translateY(-76%) scaleX(-1); } }

@media (max-width: 420px) {
  .fs { padding: 16px 10px 14px; }
  .fs-punkt { width: 30px; height: 30px; font-size: 14px; }
  .fs-linie { top: 13px; }
  .fs-name { font-size: .7rem; }
  .fs-viele .fs-name { font-size: .66rem; letter-spacing: -.01em; }
  .fs-datum { font-size: .62rem; }
  .fs-viele .fs-datum { font-size: .58rem; }
  .fs-wagen { font-size: 18px; right: -12px; }
}
@media (prefers-reduced-motion: reduce) {
  .fs-schritt.aktiv .fs-punkt, .fs-wagen, .fs-fuellung.unterwegs { animation: none; }
  .fs-fuellung { transition: none; }
}

/* Seite /verfolgen */
.verfolgen .fs { margin: 0 0 16px; }
.verfolgen-aktionen { display: grid; gap: 10px; margin: 0 0 16px; }
.verfolgen-aktionen .ankauf-knopf { text-align: center; text-decoration: none; }

/* Nur der Balken (Bestellkarten im Kundenkonto) */
.fs.fs-nur { border: none; background: none; padding: 0; border-radius: 0; }
