/* Praxis-Beispiele: wanderndes Dokument, tippender KI-Agent, Freigabe und Zeitersparnis (siehe agent.js) */
.flow-bahn { position: relative; height: 112px; margin: 28px 0 -12px; }
.flow-doc {
  position: absolute; left: 0; top: 0; width: 184px; padding: 10px 12px 12px; border-radius: 12px;
  background: var(--white); box-shadow: 0 10px 28px -12px rgba(15, 27, 51, .35); border: 1.5px solid transparent;
  font-size: .74rem; line-height: 1.3; color: var(--navy); opacity: 0;
  transition: transform .9s cubic-bezier(.45, 0, .2, 1), opacity .5s ease, border-color .4s ease;
}
.flow-doc.da { opacity: 1; }
.flow-doc.ok { border-color: var(--coral); }
.doc-kopf { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .78rem; margin-bottom: 6px; }
.doc-kopf::before { content: ""; width: 10px; height: 13px; border-radius: 2px; background: var(--coral); flex: none; }
.doc-zeile { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.doc-zeile i { font-style: normal; color: var(--muted); }
/* Noch leere Felder als graue Balken, die sich beim Auslesen füllen */
.doc-zeile b { font-weight: 700; color: transparent; background: rgba(15, 27, 51, .09); border-radius: 3px; transition: color .4s ease, background-color .4s ease; }
.doc-zeile.da b { color: var(--navy); background-color: transparent; }
.doc-ok { position: absolute; right: -8px; top: -10px; padding: 3px 9px; border-radius: 99px; background: var(--coral); color: var(--navy); font-weight: 700; font-size: .7rem; opacity: 0; transform: scale(.6); transition: opacity .3s ease, transform .45s cubic-bezier(.5, 1.6, .4, 1); }
.flow-doc.ok .doc-ok { opacity: 1; transform: none; }

/* Der KI-Agent „tippt“, was er gerade tut */
.flow-tippen { display: block; min-height: 1.4em; margin-top: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .74rem; color: var(--navy); }
.flow-tippen.tippt::after { content: "▍"; margin-left: 1px; color: var(--coral-dark); animation: cursor .7s steps(1) infinite; }
@keyframes cursor { 50% { opacity: 0; } }

/* Freigabe am Ende */
.flow-freigabe { display: inline-flex; align-items: center; margin-top: 8px; padding: 6px 14px; border-radius: 99px; background: var(--coral); color: var(--navy); font-weight: 700; font-size: .8rem; opacity: 0; transform: scale(.9); transition: opacity .4s ease, transform .4s ease, background-color .3s ease, color .3s ease; }
.flow-ziel.on .flow-freigabe { opacity: 1; transform: none; animation: freigabePuls 1.2s ease-out infinite; }
.flow-freigabe.geklickt { background: var(--navy); color: var(--auf-dunkel); animation: none !important; }
@keyframes freigabePuls { 0% { box-shadow: 0 0 0 0 rgba(255, 111, 97, .55); } 100% { box-shadow: 0 0 0 12px rgba(255, 111, 97, 0); } }

/* Zeitersparnis */
.flow-zeit { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 26px; font-size: .95rem; opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease; }
.flow-zeit.da { opacity: 1; transform: none; }
.zeit-hand { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(15, 27, 51, .35); }
.zeit-ki { font-weight: 700; color: var(--navy); }
.zeit-ki b { color: var(--coral-dark); }

/* Mit Zusatz-Animation am Computer: Dokument ersetzt die kleinen Etiketten */
@media (min-width: 681px) { .flow-plus .flow-packet { display: none; } }
@media (max-width: 680px) { .flow-bahn { display: none; } }
.no-js .flow-bahn, .no-js .flow-freigabe { display: none; }
.no-js .flow-zeit { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .flow-bahn { display: none; }
  .flow-freigabe { opacity: 1; transform: none; }
  .flow-zeit { opacity: 1; transform: none; }
}
