/* Schwarzberg IT Solutions – Motion-Ergänzungen
   Jeder Block ("MOTION 1" … "MOTION 9") ist eigenständig: Block löschen = Effekt weg.
   Zugehöriges Skript: js/motion.js (gleiche Nummerierung). Reduced Motion wird unten global respektiert. */

/* ─── MOTION 1: Datenfluss-Grafik in der Lokale-KI-Box ─── */
.dataflow{margin:44px auto 0;max-width:660px;}
.dataflow svg{width:100%;height:auto;display:block;overflow:visible;}
.df-line{fill:none;stroke:rgba(220,230,232,.2);stroke-width:1.5;stroke-dasharray:4 6;}
.df-shape{fill:none;stroke:var(--on-dark);stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round;}
.df-home{stroke:var(--cyan);}
.df-ghost{stroke:var(--subtle);stroke-dasharray:3 4;}
.df-x{fill:none;stroke:var(--muted);stroke-width:1.6;stroke-linecap:round;opacity:.35;}
.df-label{font-family:'JetBrains Mono',monospace;font-size:9.5px;letter-spacing:.14em;text-transform:uppercase;fill:var(--muted);}
.df-label.hl{fill:var(--cyan);}
.df-dot{fill:var(--cyan);opacity:0;filter:drop-shadow(0 0 4px rgba(79,200,220,.7));}
.df-leak{fill:var(--muted);opacity:0;}
.dataflow.in-view .df-dot{animation:df-move 3.9s linear infinite;}
.dataflow.in-view .df-d2{animation-delay:1.3s;}
.dataflow.in-view .df-d3{animation-delay:2.6s;}
.dataflow.in-view .df-leak{animation:df-leak 3.9s ease-in-out .6s infinite;}
.dataflow.in-view .df-x{animation:df-xhit 3.9s ease-in-out .6s infinite;}
@media (max-width:680px){.df-label{font-size:15px;letter-spacing:.06em;}}
@keyframes df-move{0%{transform:translateX(0);opacity:0;}10%{opacity:1;}78%{opacity:1;}100%{transform:translateX(350px);opacity:0;}}
@keyframes df-leak{0%{transform:translate(0,0);opacity:0;}15%{opacity:.9;}55%{transform:translate(12px,-26px);opacity:.9;}65%,100%{transform:translate(12px,-26px);opacity:0;}}
@keyframes df-xhit{0%,50%{opacity:.35;}60%{opacity:1;}100%{opacity:.35;}}

/* ─── MOTION 5: Scroll-Fortschritt – kleiner Gipfel-Marker am rechten Rand ─── */
.climb{position:fixed;right:20px;top:50%;height:36vh;width:1px;transform:translateY(-50%);z-index:90;pointer-events:none;
  background:rgba(220,230,232,.14);opacity:0;transition:opacity .5s;}
.climb.show{opacity:1;}
.climb::before{content:'';position:absolute;left:0;bottom:0;width:1px;height:calc(var(--sp,0) * 100%);background:var(--cyan);}
.climb-dot{position:absolute;left:-4px;width:9px;height:9px;bottom:calc(var(--sp,0) * 100%);margin-bottom:-4px;
  background:var(--cyan);clip-path:polygon(50% 0,100% 100%,0 100%);filter:drop-shadow(0 0 4px rgba(79,200,220,.7));}
@media (max-width:980px){.climb{display:none;}}

/* ─── MOTION 6: Navigation – aktiver Abschnitt ─── */
.nav-links a.is-active:not(.nav-cta){color:var(--snow);}
.nav-links a.is-active:not(.nav-cta)::after{transform:scaleX(1);transform-origin:left;}

/* ─── MOTION 7: Zähler im Vertrauensbereich (nur Skript) ─── */
.vert-stat b{font-variant-numeric:tabular-nums;}

/* ─── MOTION 8: Leistungs-Icons mit Hover-Animation ─── */
.leist-ico{width:44px;height:44px;margin-bottom:20px;display:block;}
.leist-ico *{fill:none;stroke:var(--cyan);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;}
.leist-ico .gear-teeth{stroke-width:5;stroke-dasharray:5.9 5.9;}
.leist-ico .ico-gear,.leist-ico .ico-needle{transform-box:fill-box;transform-origin:center;}
.leist-card:hover .ico-gear{animation:ico-spin 6s linear infinite;}
.leist-ico .ico-check{stroke-dasharray:1;stroke-dashoffset:0;}
.leist-card:hover .ico-check{animation:ico-draw .9s ease-out both;}
.leist-card:hover .ico-shield{animation:ico-pulse 1.6s ease-in-out infinite;}
.leist-card:hover .ico-needle{animation:ico-swing 2.4s ease-in-out infinite;}
@keyframes ico-spin{to{transform:rotate(360deg);}}
@keyframes ico-draw{from{stroke-dashoffset:1;}to{stroke-dashoffset:0;}}
@keyframes ico-pulse{0%,100%{opacity:1;}50%{opacity:.45;}}
@keyframes ico-swing{0%,100%{transform:rotate(-28deg);}50%{transform:rotate(32deg);}}

/* ─── MOTION 9: Formular-Feedback und Danke-Haken ─── */
.form-field label{transition:color var(--dur-fast,.3s);}
.form-field:focus-within label{color:var(--cyan);}
.form-field input,.form-field textarea,.form-field select{transition:border-color .3s,box-shadow .3s;}
.form-field input:focus,.form-field textarea:focus,.form-field select:focus{box-shadow:0 0 0 3px rgba(79,200,220,.14);}
.form-submit.is-sending{pointer-events:none;opacity:.85;}
.form-submit.is-sending::after{content:'';display:inline-block;width:12px;height:12px;margin-left:10px;vertical-align:-1px;
  border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .7s linear infinite;}
@keyframes spin{to{transform:rotate(360deg);}}
.ok-mark{width:76px;height:76px;display:block;margin:0 0 28px;}
.ok-mark circle,.ok-mark path{fill:none;stroke:var(--cyan);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:0;}
.ok-mark circle{animation:ok-draw .9s cubic-bezier(.65,0,.35,1) .1s both;}
.ok-mark path{animation:ok-draw .6s ease-out .8s both;}
@keyframes ok-draw{from{stroke-dashoffset:1;}to{stroke-dashoffset:0;}}

/* ─── REDUCED MOTION: alles in den Endzustand ─── */
@media (prefers-reduced-motion: reduce){
  .climb{display:none;}
}
