/* =========================================================
   Hero: Projektweg in fünf Kacheln
   Ohne JavaScript ist alles sofort sichtbar.
   ========================================================= */
.flow{position:relative;width:min(100% - 2rem,1320px);margin:clamp(36px,5vw,64px) auto 0;text-align:left}
.flow__list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));column-gap:clamp(26px,3vw,48px);align-items:start;position:relative;z-index:1}
.flow__svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.flow__line{fill:none;stroke:var(--brand);stroke-width:2.5;stroke-linecap:round;opacity:.75}
.flow__dot{fill:var(--brand);stroke:#fff;stroke-width:3;filter:drop-shadow(0 0 7px rgba(0,127,255,.8))}

.flow__step{--c:#007fff;margin-top:var(--y,0);position:relative}
.flow__step:nth-child(1){--y:56px}
.flow__step:nth-child(2){--y:0px;--c:#7c3aed}
.flow__step:nth-child(3){--y:72px;--c:#4f46e5}
.flow__step:nth-child(4){--y:10px;--c:#0e7490}
.flow__step:nth-child(5){--y:62px;--c:#15803d}

.flow__card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:1.05rem 1rem 1rem;
  transition:opacity .55s var(--ease),transform .55s var(--ease),border-color .4s,box-shadow .4s}
.flow__top{display:flex;align-items:center;gap:.55rem;font-size:.7rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--ink-3)}
.flow__ico{width:26px;height:26px;border-radius:8px;background:var(--c);color:#fff;display:grid;place-items:center;flex:none}
.flow__ico svg{width:15px;height:15px}
.flow__card .flow__title{font-family:Raleway,sans-serif;font-weight:800;font-size:1.04rem;line-height:1.25;margin:.75rem 0 .35rem;color:var(--ink);letter-spacing:0;}
.flow__card p:not(.flow__title){font-size:.84rem;line-height:1.5;color:var(--ink-3);margin:0 0 .8rem}
.flow__chip{display:inline-block;font-size:.7rem;font-weight:700;line-height:1.3;padding:.3rem .65rem;border-radius:999px;color:var(--c);background:var(--surface-3);background:color-mix(in srgb,var(--c) 11%,#fff)}

/* Zustände – nur wenn das Skript läuft */
.flow.is-anim .flow__card{opacity:.16;transform:translateY(18px) scale(.97)}
.flow.is-anim .is-on .flow__card{opacity:1;transform:none}
.flow.is-anim .is-active .flow__card{border-color:var(--c);box-shadow:0 22px 44px -18px rgba(0,127,255,.45);transform:translateY(-5px)}
.flow__step:last-child.is-active .flow__chip::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;margin-right:.4rem;vertical-align:1px;animation:flowpulse 1.6s infinite}
@keyframes flowpulse{50%{opacity:.25}}

.flow__confetti{position:absolute;width:7px;height:11px;border-radius:2px;pointer-events:none;z-index:2}

/* Schmale Bildschirme: senkrechter Weg */
@media (max-width:1059px){
  .flow__list{grid-template-columns:minmax(0,340px);justify-content:center;row-gap:46px;padding:0 12px}
  .flow__step,.flow__step:nth-child(n){--y:0px}
  .flow__step:nth-child(odd){left:-12px}
  .flow__step:nth-child(even){left:12px}
}

/* ---------- Kompakter Hero: Kacheln rücken nach oben ---------- */
.hero{padding-top:clamp(24px,3vw,36px)}
.hero__ticker{margin-bottom:.4rem}
.hero h1{max-width:22ch;font-size:clamp(2rem,1.1rem + 3.2vw,3.6rem);margin-bottom:.8rem;text-wrap:balance}
.hero h1 .hl{display:inline-block}
.hero .lead{max-width:66ch;margin-bottom:1.3rem}
.hero .trustbar{margin-top:1.2rem}
.hero .flow{margin-top:28px}
.hero .hero__logo{max-width:min(420px,82%);height:auto;margin:0 auto 1rem}

/* ---------- Textslider: jeder Satz kommt von unten ---------- */
.hero .hero__ticker{position:relative;height:2.1em;overflow:hidden}
.hero .hero__ticker ul{position:relative;height:100%;animation:none;transform:none}
.hero .hero__ticker li{position:absolute;inset:0;margin:0;height:2.1em;line-height:2.1em;opacity:0;transform:translateY(100%);animation:tickerUp 9s var(--ease) infinite backwards}
.hero .hero__ticker li:nth-child(2){animation-delay:3s}
.hero .hero__ticker li:nth-child(3){animation-delay:6s}
@keyframes tickerUp{
  0%{opacity:0;transform:translateY(100%)}
  7%,29%{opacity:1;transform:translateY(0)}
  34%,100%{opacity:0;transform:translateY(-100%)}
}
/* lange Sätze auf schmalen Handys einzeilig halten */
@media (max-width:400px){.hero .hero__ticker{font-size:1rem}}
@media (prefers-reduced-motion:reduce){
  .hero .hero__ticker li{animation:none}
  .hero .hero__ticker li:first-child{opacity:1;transform:none}
}
