/* Stannek, Unterseite „Premium Partnerschaft Factorial“.
   Baut auf site.css, datev-solution.css und stannekteam.css auf. */

/* ---------- Einstieg ---------- */
.fx-hero {
  position: relative; overflow: hidden; color: var(--white); background: var(--night);
  min-height: calc(100svh - var(--header-h)); display: grid; align-items: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.fx-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(45% 55% at 78% 45%, rgba(46, 230, 176, 0.22), transparent 70%),
    radial-gradient(55% 60% at 70% 40%, rgba(39, 82, 236, 0.55), transparent 70%),
    linear-gradient(180deg, #0c1a44 0%, #07112e 100%);
}
.fx-hero-grid { position: relative; z-index: 1; display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) { .fx-hero-grid { grid-template-columns: 1fr 1.05fr; } }
.fx-hero-copy { display: grid; gap: 1.35rem; max-width: 36rem; }
.fx-hero h1 { color: var(--white); font-size: clamp(2.5rem, 5.4vw, 4.6rem); font-weight: 700; letter-spacing: -0.024em; line-height: 1.02; }
.fx-hero h1 span { background: linear-gradient(90deg, #8ff5d6, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-hero-sub { color: var(--on-night-muted); font-size: clamp(1.05rem, 1.35vw, 1.25rem); }
.fx-badges { list-style: none; margin: 0.4rem 0 0; padding: 0; display: flex; gap: 0.8rem; }
.fx-badges li { width: 92px; height: 82px; display: grid; place-items: center; padding: 0.5rem; border-radius: 14px; background: var(--white); }
.fx-badges img { max-width: 100%; max-height: 100%; object-fit: contain; }

.fx-bridge { margin: 0; width: 100%; max-width: 640px; justify-self: center; }
.fx-bridge svg { width: 100%; height: auto; overflow: visible; }
.fx-path { fill: none; stroke: url(#fxLine); stroke-width: 2.5; stroke-dasharray: 6 8; opacity: 0.7; }
.js-motion .fx-path { animation: fx-dash 1.4s linear infinite; }
@keyframes fx-dash { to { stroke-dashoffset: -28; } }
.fx-node rect { fill: #1a3184; stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.5; }
.fx-node-l rect { stroke: var(--accent); }
.fx-node text, .fx-hub text, .fx-packet text { text-anchor: middle; fill: var(--white); font-family: var(--font-display); }
.fx-node-k { font-size: 24px; font-weight: 700; }
.fx-node-s { font-size: 13px; fill: #c9d4fb !important; font-family: var(--font-body) !important; }
.fx-hub circle { fill: var(--blue); stroke: var(--accent); stroke-width: 2.5; filter: drop-shadow(0 0 18px rgba(46, 230, 176, 0.55)); }
.fx-hub text { font-size: 15px; font-weight: 700; }
.js-motion .fx-hub circle { animation: fx-pulse 2.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes fx-pulse { 50% { transform: scale(1.06); } }
.fx-packet rect { fill: #0c1a44; stroke: var(--accent); stroke-width: 1.5; }
.fx-packet text { font-size: 13px; font-weight: 600; }
html:not(.js-motion) .fx-packets { display: none; }

/* ---------- Datenfluss (Scroll-Szene) ---------- */
.fx-flow { padding: var(--section-y) 0; background: var(--white); }
.fx-flow-head { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.fx-stations { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: st; }
@media (min-width: 900px) { .fx-stations { grid-template-columns: repeat(5, 1fr); gap: 1.2rem; } }
.fx-station {
  display: grid; gap: 0.5rem; align-content: start; padding: 1.3rem; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line);
  transition: background-color 0.4s, border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s;
}
.fx-station b { font-family: var(--font-display); font-size: 1.15rem; }
.fx-station > span:last-child { color: var(--muted); font-size: 0.97rem; }
.fx-st-dot { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--light); transition: background-color 0.4s; }
.fx-st-dot svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.4s; }
.fx-track, .fx-flow-note { display: none; }

.js-motion .fx-flow { height: calc(100svh - var(--header-h) + 220vh); padding: 0; }
.js-motion .fx-flow-stage { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); display: flex; align-items: center; overflow: hidden; }
.js-motion .fx-flow-stage > .wrap { width: 100%; }
.js-motion .fx-station { opacity: 0.45; transform: translateY(10px); }
.js-motion .fx-station.is-on { opacity: 1; transform: none; background: var(--white); border-color: var(--blue); box-shadow: 0 18px 40px -22px rgba(39, 82, 236, 0.6); }
.js-motion .fx-station.is-on .fx-st-dot { background: var(--blue); }
.js-motion .fx-station.is-on .fx-st-dot svg { stroke: var(--white); }
.js-motion .fx-station.is-now { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46, 230, 176, 0.3), 0 18px 40px -22px rgba(39, 82, 236, 0.6); }
.js-motion .fx-track { display: block; position: relative; height: 6px; margin: 1.6rem 0 0; border-radius: 3px; background: var(--line); }
.fx-track-fill { position: absolute; inset: 0; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--blue)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.fx-track-dot { position: absolute; top: 50%; left: calc(var(--p, 0) * 100%); width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(46, 230, 176, 0.25), 0 0 20px rgba(46, 230, 176, 0.8); }
.js-motion .fx-flow-note { display: block; margin-top: 1rem; color: var(--muted); font-family: var(--font-display); font-weight: 600; }
.fx-flow-count { color: var(--blue); font-size: 1.3em; }

@media (max-width: 899px) {
  .js-motion .fx-flow-stage { align-items: flex-start; padding-top: 1.2rem; }
  .js-motion .fx-flow-head { margin-bottom: 1rem; gap: 0.5rem; }
  .js-motion .fx-flow-head h2 { font-size: 1.7rem; }
  .js-motion .fx-stations { gap: 0.5rem; }
  .js-motion .fx-station { grid-template-columns: auto 1fr; column-gap: 0.8rem; padding: 0.7rem 0.85rem; border-radius: 14px; }
  .js-motion .fx-st-dot { grid-row: span 2; width: 38px; height: 38px; border-radius: 11px; }
  .js-motion .fx-station > span:last-child { font-size: 0.86rem; line-height: 1.35; }
  .js-motion .fx-station b { font-size: 1rem; }
  .js-motion .fx-track { margin-top: 0.9rem; }
}

/* ---------- Module ---------- */
.fx-modules { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 640px) { .fx-modules { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .fx-modules { grid-template-columns: repeat(4, 1fr); } }
.fx-modules li { display: grid; gap: 0.45rem; align-content: start; padding: 1.4rem; border-radius: 20px; background: var(--white); border: 1px solid var(--line); }
.fx-modules b { font-family: var(--font-display); font-size: 1.12rem; }
.fx-modules span { color: var(--muted); }
.fx-modules li.is-key { background: var(--blue); border-color: var(--blue); }
.fx-modules li.is-key b, .fx-modules li.is-key span { color: var(--white); }

/* ---------- Schnittstellen ---------- */
.fx-roadmap { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 900px) { .fx-roadmap { grid-template-columns: repeat(3, 1fr); } }
.fx-roadmap li { position: relative; display: grid; gap: 0.6rem; align-content: start; padding: 1.6rem; border-radius: 20px; border: 1px solid var(--line-night); background: rgba(255, 255, 255, 0.04); }
.fx-roadmap li:last-child { border-color: var(--accent); background: linear-gradient(150deg, rgba(39, 82, 236, 0.35), rgba(11, 122, 128, 0.25)); }
.fx-rm-k { justify-self: start; padding: 0.25rem 0.7rem; border-radius: 999px; background: rgba(46, 230, 176, 0.15); color: var(--accent); font: 600 0.8rem var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; }
.fx-roadmap b { color: var(--white); font-family: var(--font-display); font-size: 1.25rem; }
.fx-roadmap p { color: var(--on-night-muted); }

/* ---------- Ablauf ---------- */
.fx-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: fx; }
@media (min-width: 700px) { .fx-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .fx-steps { grid-template-columns: repeat(3, 1fr); } }
.fx-steps li { counter-increment: fx; display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; padding: 1.3rem; border-radius: 18px; background: var(--surface); }
.fx-steps li::before { content: counter(fx, decimal-leading-zero); grid-row: span 2; font: 700 1.6rem/1 var(--font-display); color: var(--blue); }
.fx-steps b { font-family: var(--font-display); font-size: 1.1rem; }
.fx-steps span { color: var(--muted); }

/* ---------- Team ---------- */
@media (min-width: 800px) { .fx-people { grid-template-columns: repeat(3, 1fr); } }
.fx-people .st-avatar { background: linear-gradient(135deg, var(--blue), var(--petrol)); }

@media (prefers-reduced-motion: reduce) {
  .fx-path, .fx-hub circle { animation: none !important; }
}
