/* =====================================================================
   How It Works subpage — layers on top of styles-v17.css (tokens, header,
   footer, buttons, reveal, mobile all inherited from there).
   Shares the sub-hero / section / card / CTA language of the Why Us page.
   ===================================================================== */

/* nav current state */
.navlinks a.current{color:var(--magenta);font-weight:700;}

/* ---------- sub-hero ---------- */
/* Sections alternate light (white) / darker (#F0F0F3) bands so each reads as
   its own block: hero(white) · steps(grey) · case(white) · need(grey) ·
   more(white) · final(dark). Same in DE and EN — banding is language-neutral. */
.hw-hero{padding:66px 0 10px;background:var(--surface);}
.hw-eyebrow{display:inline-block;font-size:.78rem;letter-spacing:.16em;text-transform:uppercase;font-weight:800;color:var(--magenta);margin-bottom:16px;}
.hw-hero h1{font-family:var(--font-display);font-weight:600;font-size:clamp(1.9rem,3.9vw,2.25rem);line-height:1.08;letter-spacing:-.02em;color:var(--navy);max-width:none;}
.hw-hero .lede{margin-top:20px;font-size:clamp(1.05rem,1.6vw,1.2rem);line-height:1.6;color:var(--ink-muted);max-width:60ch;}
.hw-hero .lede .emph{color:var(--ink);font-weight:700;background:linear-gradient(transparent 62%, rgba(253,58,104,.22) 62%);padding:0 2px;}
/* ---------- generic section ---------- */
.hw-sec{padding:72px 0;}
.hw-sec h2{font-family:var(--font-display);font-weight:600;font-size:clamp(1.7rem,3.2vw,2.3rem);color:var(--navy);letter-spacing:-.01em;line-height:1.18;}
.hw-head{margin-bottom:44px;}
.hw-head .eyebrow{display:inline-block;font-size:.78rem;letter-spacing:.16em;text-transform:uppercase;font-weight:800;color:var(--magenta);margin-bottom:14px;}
.hw-head p{color:var(--ink-muted);margin-top:14px;font-size:1.02rem;line-height:1.7;max-width:66ch;}

/* On desktop, keep every main title on one line — extend into the right
   whitespace rather than shrinking mid-breakpoint. Wraps normally below
   1280px. The hero H1 is sized (2.25rem) so even the longer German title
   fits the content column on a 1280px screen. */
@media(min-width:1280px){
  .hw-hero h1,.hw-sec h2{white-space:nowrap;}
}

/* ---------- STEPS timeline ---------- */
.hw-steps{background:#F0F0F3;border-top:1px solid var(--border);border-bottom:1px solid var(--border);}

/* Data protection & security (moved from Why-CCC; white band after the grey steps) */
.hw-privacy{background:var(--surface);border-top:1px solid var(--border);border-bottom:1px solid var(--border);}
.hw-privacy-iso{margin-top:30px;font-style:italic;font-size:.85rem;line-height:1.62;color:var(--ink-muted);max-width:74ch;}

/* left: hover-reveal safeguard list; right: animated security symbol */
.dp-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,340px);gap:52px;align-items:center;}
.dp-list{list-style:none;margin:0;padding:0;}
.dp-item{padding:11px 0;border-bottom:1px solid var(--border);}
.dp-item:last-child{border-bottom:0;}
.dp-row{display:flex;align-items:center;gap:16px;}
.dp-bar-slot{flex:0 0 56px;display:flex;align-items:center;}
.dp-bar{height:3px;width:16px;border-radius:2px;background:var(--navy);opacity:.35;transition:width .3s var(--ease-out),background .3s,opacity .3s;}
.dp-num{flex:0 0 auto;min-width:22px;font-size:.8rem;font-weight:700;color:var(--ink-faint);font-variant-numeric:tabular-nums;transition:color .2s;}
.dp-title{font-size:1.05rem;font-weight:700;color:var(--navy);transition:color .2s;}
/* description keeps its space at all times, so hovering never reflows the
   list or shifts the shield; only its opacity animates on hover */
.dp-desc{margin:7px 0 0;padding-left:110px;color:var(--ink-muted);font-size:.98rem;line-height:1.6;opacity:0;transition:opacity .3s ease;}
@media (hover:hover){
  .dp-item:hover .dp-title{color:var(--magenta);}
  .dp-item:hover .dp-num{color:var(--magenta);}
  .dp-item:hover .dp-bar{width:40px;background:var(--magenta);opacity:1;}
  .dp-item:hover .dp-desc{opacity:1;}
}
@media (hover:none){
  .dp-desc{opacity:1;}
}

/* animated data-protection & security symbol
   (layered navy shield + glowing magenta rim + scanner ring + pulsing field + CCC bird) */
.dp-visual{display:flex;justify-content:center;}
.dp-shield{width:100%;max-width:300px;height:auto;overflow:visible;}
.dp-shield .dp-pulse{fill:none;stroke:var(--magenta);stroke-width:2;transform-box:fill-box;transform-origin:center;animation:dpPulse 3.4s ease-out infinite;}
.dp-shield .dp-pulse-2{animation-delay:1.7s;}
.dp-shield .dp-ring{fill:none;stroke:var(--magenta);stroke-width:1.5;stroke-dasharray:5 12;stroke-linecap:round;opacity:.5;transform-box:fill-box;transform-origin:center;animation:dpSpin 20s linear infinite;}
.dp-shield .dp-rim{fill:url(#dpRim);}
.dp-shield .dp-body{fill:url(#dpBody);stroke:rgba(255,255,255,.16);stroke-width:1;stroke-linejoin:round;}
.dp-shield .dp-sheen{fill:#ffffff;opacity:.07;}
.dp-shield .dp-birdglow{opacity:.9;}
@keyframes dpPulse{0%{transform:scale(1);opacity:.5;}100%{transform:scale(1.7);opacity:0;}}
@keyframes dpSpin{to{transform:rotate(360deg);}}
@media (prefers-reduced-motion:reduce){
  .dp-shield .dp-pulse{animation:none;opacity:0;}
  .dp-shield .dp-ring{animation:none;}
}
@media(max-width:820px){
  .dp-grid{grid-template-columns:1fr;gap:26px;}
  .dp-desc{padding-left:110px;}
  .dp-shield{max-width:230px;}
}.hw-timeline{display:flex;flex-direction:column;gap:0;}
.hw-step{position:relative;display:grid;grid-template-columns:96px 1fr;gap:30px;padding:0 0 44px;}
.hw-step:last-child{padding-bottom:0;}
/* connecting rail down the number column */
.hw-step::before{content:"";position:absolute;left:47px;top:70px;bottom:-6px;width:2px;background:linear-gradient(var(--border),var(--border));}
.hw-step:last-child::before{display:none;}
.hw-step-num{position:relative;width:70px;height:70px;border-radius:50%;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:center;font-family:var(--font-display);font-weight:600;font-size:1.7rem;line-height:1;box-shadow:0 14px 30px -16px rgba(36,69,104,.9);z-index:1;}
.hw-step-body{padding-top:6px;}
.hw-step-tag{display:inline-block;font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;font-weight:800;color:var(--magenta);margin-bottom:8px;}
.hw-step-body h3{font-family:var(--font-display);font-weight:600;font-size:clamp(1.25rem,2.1vw,1.55rem);color:var(--navy);line-height:1.2;margin-bottom:12px;}
.hw-step-body p{color:var(--ink-muted);font-size:1.02rem;line-height:1.72;max-width:62ch;}
.hw-step-list{list-style:none;margin:16px 0 0;display:flex;flex-direction:column;gap:10px;max-width:62ch;}
.hw-step-list li{position:relative;padding-left:26px;color:var(--ink-muted);font-size:.98rem;line-height:1.55;}
.hw-step-list li::before{content:"";position:absolute;left:2px;top:9px;width:8px;height:8px;border-radius:2px;background:var(--magenta);}
.hw-step-list li strong{color:var(--ink);font-weight:700;}

/* ---------- "What we need from you" panel ---------- */
.hw-need{background:#F0F0F3;}
.hw-need-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px;margin-top:8px;}
.hw-need-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:28px 26px;display:flex;gap:18px;align-items:flex-start;}
.hw-need-card .ico{flex:0 0 auto;width:46px;height:46px;border-radius:11px;display:flex;align-items:center;justify-content:center;color:#fff;background:linear-gradient(135deg,var(--navy) 0%,#1a3350 100%);box-shadow:0 8px 18px -10px rgba(36,69,104,.7);}
.hw-need-card .ico svg{width:22px;height:22px;}
.hw-need-card h3{font-size:1.08rem;color:var(--navy);font-weight:700;margin-bottom:6px;}
.hw-need-card p{color:var(--ink-muted);font-size:.96rem;line-height:1.62;}

/* ---------- "What else we can do" cards ---------- */
.hw-more{background:var(--surface);border-top:1px solid var(--border);border-bottom:1px solid var(--border);}
.hw-mgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
.hw-card{background:var(--bg);border:1px solid var(--border);border-radius:14px;padding:28px 26px;transition:transform .4s cubic-bezier(.2,.8,.2,1),box-shadow .4s ease,border-color .4s ease;}
.hw-card:hover{transform:translateY(-6px);box-shadow:0 24px 46px -30px rgba(15,23,42,.45);border-color:rgba(253,58,104,.45);}
.hw-card .ico{width:46px;height:46px;border-radius:11px;display:flex;align-items:center;justify-content:center;color:#fff;background:linear-gradient(135deg,var(--magenta) 0%,var(--magenta-deep) 100%);margin-bottom:16px;box-shadow:0 8px 18px -8px rgba(253,58,104,.55);transition:transform .45s cubic-bezier(.2,.8,.2,1);}
.hw-card:hover .ico{transform:translateY(-2px) scale(1.07) rotate(-3deg);}
.hw-card .ico svg{width:22px;height:22px;}
.hw-card h3{font-size:1.1rem;color:var(--navy);font-weight:700;margin-bottom:8px;position:relative;display:inline-block;}
.hw-card h3::after{content:"";position:absolute;left:0;bottom:-5px;height:2px;width:0;background:var(--magenta);border-radius:2px;transition:width .45s cubic-bezier(.2,.8,.2,1);}
.hw-card:hover h3::after{width:100%;}
.hw-card p{color:var(--ink-muted);font-size:.95rem;line-height:1.62;}
/* fee-crediting card spans the trailing gap on a 3-col grid for balance */
.hw-card.hw-card-wide{grid-column:span 1;}

/* ---------- CTA (uses the home page .final video section) ---------- */
.final .btn-ghost{color:#fff;border-color:rgba(255,255,255,.4);}
.final .btn-ghost:hover{border-color:#fff;color:#fff;background:rgba(255,255,255,.1);}

@media(prefers-reduced-motion:reduce){
  .hw-card,.hw-card .ico,.hw-card h3::after{transition:none;}
  .hw-card:hover{transform:none;}
  .hw-card:hover .ico{transform:none;}
}

/* ---------- responsive ---------- */
@media(max-width:860px){
  .hw-mgrid{grid-template-columns:1fr 1fr;}
  .hw-need-grid{grid-template-columns:1fr;}
}
@media(max-width:640px){
  .hw-mgrid{grid-template-columns:1fr;}
  .hw-step{grid-template-columns:60px 1fr;gap:20px;}
  .hw-step::before{left:29px;top:56px;}
  .hw-step-num{width:56px;height:56px;font-size:1.35rem;}
}
