/*
 * Animierte Illustrationen (zentral) – gehört zu assets/js/illu-anim.js.
 * Je Illustration (.illu--<name>) einmal definiert; Positionen der Stationen hängen an der Illustration.
 * Start, sobald ein umgebendes .reveal-Element .in bekommt; keine Bewegung bei prefers-reduced-motion.
 */
.illu { position: relative; }

/* ── Capturing-Hero: Kanäle laufen zusammen ───────────── */
.ch-anim { position: absolute; inset: 0; pointer-events: none; }
.ch-chip { position: absolute; left: 19%; top: 30%; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 10px; background: var(--paper); color: var(--ink); font-size: .78rem; font-weight: 600; white-space: nowrap; box-shadow: 0 12px 24px -12px rgba(0,0,0,.5); opacity: 0; }
.ch-pulse { position: absolute; left: 19%; top: 30%; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; }
@keyframes ch-pulse { 0%, 46% { opacity: 0; transform: scale(.3); } 50% { opacity: .9; } 58%, 100% { opacity: 0; transform: scale(1.6); } }
.ch-ok { position: absolute; left: 56%; top: 4%; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; background: var(--paper); color: var(--ink); font-size: .8rem; font-weight: 600; white-space: nowrap; box-shadow: 0 12px 24px -12px rgba(0,0,0,.5); opacity: 0; transform: translateX(-50%); }
@keyframes ch-ok-1 { 0%, 55% { opacity: 0; transform: translate(-50%, 8px); } 59%, 90% { opacity: 1; transform: translate(-50%, 0); } 95%, 100% { opacity: 0; transform: translate(-50%, 0); } }
@keyframes ch-ok-2 { 0%, 66% { opacity: 0; transform: translate(-50%, 8px); } 70%, 90% { opacity: 1; transform: translate(-50%, 0); } 95%, 100% { opacity: 0; transform: translate(-50%, 0); } }
@keyframes ch-ok-3 { 0%, 77% { opacity: 0; transform: translate(-50%, 8px); } 81%, 90% { opacity: 1; transform: translate(-50%, 0); } 95%, 100% { opacity: 0; transform: translate(-50%, 0); } }
/* leuchtender Punkt entlang der Stationen: Eingang -> Erkennung -> Dokumente -> Archiv */
.ch-dot { position: absolute; left: 19%; top: 30%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(26,161,226,.25), 0 0 16px 4px rgba(26,161,226,.6); opacity: 0; }
@keyframes ch-dot { 0%, 49% { opacity: 0; left: 19%; top: 30%; } 51% { opacity: 1; left: 19%; top: 30%; } 56% { left: 52%; top: 22%; } 67% { left: 46%; top: 70%; } 78% { opacity: 1; left: 82%; top: 50%; } 82%, 100% { opacity: 0; left: 82%; top: 50%; } }
.ch-ok--2 { left: 46%; top: auto; bottom: 0; }
.ch-ok--3 { left: 84%; top: 20%; }
@keyframes ch-fly-1 { 0%, 0% { opacity: 0; transform: translate(-260%, -40%) scale(1); } 5% { opacity: 1; } 18% { opacity: 1; transform: translate(-50%, -50%) scale(.55); } 23%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } }
.in .illu--documentsflow .ch-chip--1 { animation: ch-fly-1 10s ease-in-out infinite; }
@keyframes ch-fly-2 { 0%, 7% { opacity: 0; transform: translate(-150%, -300%) scale(1); } 12% { opacity: 1; } 25% { opacity: 1; transform: translate(-50%, -50%) scale(.55); } 30%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } }
.in .illu--documentsflow .ch-chip--2 { animation: ch-fly-2 10s ease-in-out infinite; }
@keyframes ch-fly-3 { 0%, 14% { opacity: 0; transform: translate(-280%, 160%) scale(1); } 19% { opacity: 1; } 32% { opacity: 1; transform: translate(-50%, -50%) scale(.55); } 37%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } }
.in .illu--documentsflow .ch-chip--3 { animation: ch-fly-3 10s ease-in-out infinite; }
@keyframes ch-fly-4 { 0%, 21% { opacity: 0; transform: translate(40%, -330%) scale(1); } 26% { opacity: 1; } 39% { opacity: 1; transform: translate(-50%, -50%) scale(.55); } 44%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } }
.in .illu--documentsflow .ch-chip--4 { animation: ch-fly-4 10s ease-in-out infinite; }
@keyframes ch-fly-5 { 0%, 28% { opacity: 0; transform: translate(-120%, 300%) scale(1); } 33% { opacity: 1; } 46% { opacity: 1; transform: translate(-50%, -50%) scale(.55); } 51%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } }
.in .illu--documentsflow .ch-chip--5 { animation: ch-fly-5 10s ease-in-out infinite; }
.in .illu--documentsflow .ch-pulse { animation: ch-pulse 10s ease-out infinite; }
.in .illu--documentsflow .ch-dot { animation: ch-dot 10s ease-in-out infinite; }
.in .illu--documentsflow .ch-ok { animation: ch-ok-1 10s ease-out infinite; }
.in .illu--documentsflow .ch-ok--2 { animation-name: ch-ok-2; }
.in .illu--documentsflow .ch-ok--3 { animation-name: ch-ok-3; }
@media (max-width: 520px) { .ch-chip, .ch-ok { font-size: .7rem; padding: 5px 8px; } }
@media (prefers-reduced-motion: reduce) { .ch-anim { display: none; } }
/* ── Ende Capturing-Hero ── */

/* ── Archive-Hero: Dokumente fliegen ins Archiv ───────────── */
.ah-anim { position: absolute; inset: 0; pointer-events: none; }
.ah-doc, .ah-ok { position: absolute; left: 41%; top: 30%; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; font-size: .8rem; font-weight: 600; white-space: nowrap; opacity: 0; }
.ah-doc { background: var(--paper); color: var(--ink); box-shadow: 0 12px 24px -12px rgba(0,0,0,.5); }
.ah-ok { left: 50%; top: auto; bottom: 4%; background: var(--paper); color: var(--ink); box-shadow: 0 12px 24px -12px rgba(0,0,0,.5); transform: translateX(-50%); }
@keyframes ah-fly-1 { 0% { opacity: 0; transform: translate(-190%, -330%) scale(1); } 8% { opacity: 1; } 30% { opacity: 1; transform: translate(-50%, -50%) scale(.55); } 36%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } }
@keyframes ah-fly-2 { 0%, 10% { opacity: 0; transform: translate(-50%, -420%) scale(1); } 18% { opacity: 1; } 40% { opacity: 1; transform: translate(-50%, -50%) scale(.55); } 46%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } }
@keyframes ah-fly-3 { 0%, 20% { opacity: 0; transform: translate(90%, -330%) scale(1); } 28% { opacity: 1; } 50% { opacity: 1; transform: translate(-50%, -50%) scale(.55); } 56%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } }
@keyframes ah-ok { 0%, 56% { opacity: 0; transform: translate(-50%, 8px); } 62%, 88% { opacity: 1; transform: translate(-50%, 0); } 96%, 100% { opacity: 0; transform: translate(-50%, 0); } }
.in .illu--repository .ah-doc--1 { animation: ah-fly-1 7s ease-in-out infinite; }
.in .illu--repository .ah-doc--2 { animation: ah-fly-2 7s ease-in-out infinite; }
.in .illu--repository .ah-doc--3 { animation: ah-fly-3 7s ease-in-out infinite; }
.in .illu--repository .ah-ok { animation: ah-ok 7s ease-out infinite; }
@media (max-width: 520px) { .ah-doc, .ah-ok { font-size: .72rem; padding: 5px 9px; } }
@media (prefers-reduced-motion: reduce) { .ah-anim { display: none; } }
/* ── Ende Archive-Hero ── */

/* ── Inbound-Hero-Animation ── */
.ib-anim { position: absolute; inset: 0; pointer-events: none; }
.ib-doc { position: absolute; left: 50%; top: 40%; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 10px; background: var(--paper); color: var(--ink); font-size: .78rem; font-weight: 600; white-space: nowrap; box-shadow: 0 12px 24px -12px rgba(0,0,0,.5); opacity: 0; }
.ib-list { position: absolute; right: -2%; top: 8%; display: flex; flex-direction: column; gap: 8px; }
.ib-step { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 10px; background: var(--paper); color: var(--ink); font-size: .78rem; font-weight: 600; white-space: nowrap; box-shadow: 0 12px 24px -12px rgba(0,0,0,.5); opacity: 0; }
@keyframes ib-fly-1 { 0%, 0% { opacity: 0; transform: translate(-230%, -260%) scale(1); } 5% { opacity: 1; } 20% { opacity: 1; transform: translate(-50%, -50%) scale(.55); } 25%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } }
.in .illu--invoice .ib-doc--1 { animation: ib-fly-1 9s ease-in-out infinite; }
@keyframes ib-fly-2 { 0%, 9% { opacity: 0; transform: translate(-60%, -380%) scale(1); } 14% { opacity: 1; } 29% { opacity: 1; transform: translate(-50%, -50%) scale(.55); } 34%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } }
.in .illu--invoice .ib-doc--2 { animation: ib-fly-2 9s ease-in-out infinite; }
@keyframes ib-fly-3 { 0%, 18% { opacity: 0; transform: translate(-300%, 60%) scale(1); } 23% { opacity: 1; } 38% { opacity: 1; transform: translate(-50%, -50%) scale(.55); } 43%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } }
.in .illu--invoice .ib-doc--3 { animation: ib-fly-3 9s ease-in-out infinite; }
@keyframes ib-step-1 { 0%, 52% { opacity: 0; transform: translateX(10px); } 56%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
.in .illu--invoice .ib-step--1 { animation: ib-step-1 9s ease-out infinite; }
@keyframes ib-step-2 { 0%, 62% { opacity: 0; transform: translateX(10px); } 66%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
.in .illu--invoice .ib-step--2 { animation: ib-step-2 9s ease-out infinite; }
@keyframes ib-step-3 { 0%, 72% { opacity: 0; transform: translateX(10px); } 76%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
.in .illu--invoice .ib-step--3 { animation: ib-step-3 9s ease-out infinite; }
@media (max-width: 520px) { .ib-doc, .ib-step { font-size: .7rem; padding: 5px 8px; } }
@media (prefers-reduced-motion: reduce) { .ib-anim { display: none; } }
/* ── /Inbound-Hero-Animation ── */

/* ── Billing-Hero-Animation ── */
.bl-anim { position: absolute; inset: 0; pointer-events: none; }
.bl-fmt { position: absolute; left: 40%; top: 30%; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 10px; background: var(--paper); color: var(--ink); font-size: .78rem; font-weight: 600; white-space: nowrap; box-shadow: 0 12px 24px -12px rgba(0,0,0,.5); opacity: 0; }
.bl-dot { position: absolute; left: 37%; top: 56%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(26,161,226,.25), 0 0 16px 4px rgba(26,161,226,.6); opacity: 0; }
@keyframes bl-dot { 0%, 4% { opacity: 0; top: 56%; } 8% { opacity: 1; top: 56%; } 26% { opacity: 1; top: 32%; } 32%, 100% { opacity: 0; top: 32%; } }
.bl-ok { position: absolute; left: 50%; bottom: 2%; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 10px; background: var(--paper); color: var(--ink); font-size: .78rem; font-weight: 600; white-space: nowrap; box-shadow: 0 12px 24px -12px rgba(0,0,0,.5); opacity: 0; transform: translateX(-50%); }
@keyframes bl-ok { 0%, 74% { opacity: 0; transform: translate(-50%, 8px); } 78%, 92% { opacity: 1; transform: translate(-50%, 0); } 97%, 100% { opacity: 0; transform: translate(-50%, 0); } }
.in .illu--billing .bl-dot { animation: bl-dot 9s ease-in-out infinite; }
.in .illu--billing .bl-ok { animation: bl-ok 9s ease-out infinite; }
@keyframes bl-fly-1 { 0%, 30% { opacity: 0; transform: translate(-50%, -50%) scale(.5); } 34% { opacity: 1; } 48% { opacity: 1; transform: translate(120%, -330%) scale(1); } 54%, 100% { opacity: 0; transform: translate(120%, -330%) scale(1); } }
.in .illu--billing .bl-fmt--1 { animation: bl-fly-1 9s ease-in-out infinite; }
@keyframes bl-fly-2 { 0%, 38% { opacity: 0; transform: translate(-50%, -50%) scale(.5); } 42% { opacity: 1; } 56% { opacity: 1; transform: translate(230%, -150%) scale(1); } 62%, 100% { opacity: 0; transform: translate(230%, -150%) scale(1); } }
.in .illu--billing .bl-fmt--2 { animation: bl-fly-2 9s ease-in-out infinite; }
@keyframes bl-fly-3 { 0%, 46% { opacity: 0; transform: translate(-50%, -50%) scale(.5); } 50% { opacity: 1; } 64% { opacity: 1; transform: translate(250%, 60%) scale(1); } 70%, 100% { opacity: 0; transform: translate(250%, 60%) scale(1); } }
.in .illu--billing .bl-fmt--3 { animation: bl-fly-3 9s ease-in-out infinite; }
@keyframes bl-fly-4 { 0%, 54% { opacity: 0; transform: translate(-50%, -50%) scale(.5); } 58% { opacity: 1; } 72% { opacity: 1; transform: translate(-260%, -260%) scale(1); } 78%, 100% { opacity: 0; transform: translate(-260%, -260%) scale(1); } }
.in .illu--billing .bl-fmt--4 { animation: bl-fly-4 9s ease-in-out infinite; }
@media (max-width: 520px) { .bl-fmt, .bl-ok { font-size: .7rem; padding: 5px 8px; } }
@media (prefers-reduced-motion: reduce) { .bl-anim { display: none; } }
/* ── /Billing-Hero-Animation ── */
