/* ============================================================
   HOMEPAGE MODERNIZE
   Premium, Apple-keynote-grade modernization for 6 sections:
   1. Pipeline (#network)
   2. 7-Schritt Growth (#growth-system)
   3. Funnel (#funnel)
   4. Showcase (#referenzen)
   5. FAQ (#faq)
   6. Process (#process)
   7. Bonus: Testimonials (#testimonials)

   Architecture: pure CSS, transform/opacity-only animations,
   reduced-motion respected, no JS dependencies.
   ============================================================ */

/* ---------- 0. Shared tokens & helpers (scoped) ---------- */
:root {
  --hm-red: #DC0018;
  --hm-red-soft: #ff4555;
  --hm-red-glow: 220, 0, 24;
  --hm-radius-card: 22px;
  --hm-radius-pill: 999px;
  --hm-ease-smooth: cubic-bezier(0.22, 0.61, 0.36, 1);
  --hm-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --hm-shadow-lift: 0 24px 60px -20px rgba(15, 16, 25, 0.22), 0 8px 20px -8px rgba(15, 16, 25, 0.10);
  --hm-shadow-card: 0 1px 2px rgba(15, 16, 25, 0.06), 0 8px 24px -10px rgba(15, 16, 25, 0.10);
  --hm-shadow-strong: 0 30px 80px -30px rgba(15, 16, 25, 0.35), 0 16px 32px -16px rgba(15, 16, 25, 0.18);
  --hm-shadow-red: 0 18px 50px -20px rgba(220, 0, 24, 0.45), 0 6px 14px -4px rgba(220, 0, 24, 0.25);
}

@keyframes hm-pulse-soft {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.06); }
}

@keyframes hm-dash-flow {
  to { stroke-dashoffset: -200; }
}

@keyframes hm-current-step {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--hm-red-glow), 0.4), 0 12px 28px -12px rgba(var(--hm-red-glow), 0.55); transform: scale(1); }
  50%      { box-shadow: 0 0 0 16px rgba(var(--hm-red-glow), 0), 0 18px 38px -14px rgba(var(--hm-red-glow), 0.75); transform: scale(1.04); }
}

@keyframes hm-flow-dot {
  0%   { top: 4%; opacity: 0; transform: translateX(-50%) scale(0.6); }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { top: 96%; opacity: 0; transform: translateX(-50%) scale(0.9); }
}

@keyframes hm-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hm-shimmer {
  to { background-position: 200% center; }
}


/* ============================================================
   1. PIPELINE SECTION  (#network)
   ============================================================ */

/* ---- Journey timeline: enhanced (bigger numbers, stronger rail, premium space) ---- */
/* Note: we ENHANCE existing pipeline.css; we do NOT overwrite the ::before color dot
   nor the existing auto-cycle 'pipeStepIdle' animation. */

#network .pipe-journey {
  margin: clamp(36px, 5vw, 56px) auto clamp(44px, 6vw, 64px) !important;
  max-width: 1180px !important;
}

#network .pipe-journey__rail {
  padding: 18px 20px !important;
  border-radius: 22px !important;
  gap: 4px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015)) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 30px 70px -20px rgba(0, 0, 0, 0.45) !important;
}

@media (min-width: 769px) {
  #network .pipe-journey__step {
    padding: 14px 16px 14px 36px !important;
    min-width: 116px !important;
    border-radius: 14px !important;
  }
  #network .pipe-journey__step::before {
    width: 12px !important;
    height: 12px !important;
    top: 18px !important;
    left: 16px !important;
  }
  #network .pipe-journey__num {
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.72) !important;
    letter-spacing: 0.16em !important;
  }
  #network .pipe-journey__label {
    font-size: 14px !important;
    letter-spacing: -0.01em !important;
  }
  #network .pipe-journey__arrow {
    font-size: 20px !important;
    color: rgba(255, 255, 255, 0.45) !important;
  }
}

/* ---- Static flow (mobile fallback): descriptors instead of numeric KPIs ---- */
#network .pipe-flow-static .pipe-flow__kpi {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  white-space: nowrap;
}

/* ---- Pipe-stage chips: softened descriptors ---- */
#network .pipe-stage__bot .pipe-stage__chip {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

#network .pipe-stage__bot .pipe-stage__chip--accent {
  background: linear-gradient(135deg, rgba(var(--hm-red-glow), 0.18), rgba(var(--hm-red-glow), 0.06));
  border-color: rgba(var(--hm-red-glow), 0.4);
  color: #ffaab2;
}

/* ---- The 5 process cards: Apple-style, bigger breathing room, brand accent ---- */
#network .pipe-process {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 16px !important;
  margin-top: clamp(32px, 4.5vw, 52px) !important;
}

@media (min-width: 640px) { #network .pipe-process { grid-template-columns: repeat(2, 1fr) !important; gap: 18px !important; } }
@media (min-width: 1024px) { #network .pipe-process { grid-template-columns: repeat(5, 1fr) !important; gap: 16px !important; } }

/* Reset tablet 3+2 override from pipeline.css for our premium grid */
@media (min-width: 769px) and (max-width: 1023px) {
  #network .pipe-process { grid-template-columns: repeat(2, 1fr) !important; gap: 18px !important; }
  #network .pipe-process .pipe-card { grid-column: auto !important; }
}

#network .pipe-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  padding: 28px 22px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.55s var(--hm-ease-smooth), border-color 0.4s var(--hm-ease-smooth), box-shadow 0.5s var(--hm-ease-smooth);
}

#network .pipe-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% -10%, var(--hm-card-c, rgba(255, 255, 255, 0.18)) 0%, transparent 65%);
  opacity: 0.55;
  z-index: -1;
  transition: opacity 0.5s var(--hm-ease-smooth);
}

#network .pipe-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--hm-card-c, var(--hm-red)) 50%, transparent);
  opacity: 0.35;
  transition: opacity 0.4s var(--hm-ease-smooth);
}

#network .pipe-card:hover {
  transform: translateY(-6px) scale(1.015) !important;
  border-color: rgba(var(--hm-red-glow), 0.5) !important;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.10) 0%, rgba(var(--hm-red-glow), 0.04) 100%) !important;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(var(--hm-red-glow), 0.18) !important;
}

#network .pipe-card:hover::before { opacity: 0.95; }
#network .pipe-card:hover::after { opacity: 0.85; }

#network .pipe-card:nth-child(1) { --hm-card-c: rgba(168, 178, 200, 0.45); }
#network .pipe-card:nth-child(2) { --hm-card-c: rgba(250, 204, 21, 0.45); }
#network .pipe-card:nth-child(3) { --hm-card-c: rgba(251, 146, 60, 0.45); }
#network .pipe-card:nth-child(4) { --hm-card-c: rgba(239, 68, 68, 0.55); }
#network .pipe-card:nth-child(5) { --hm-card-c: rgba(16, 185, 129, 0.45); }

#network .pipe-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

#network .pipe-card__num {
  font-family: var(--font-mono, monospace) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  color: rgba(255, 255, 255, 0.65) !important;
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  line-height: 1.2 !important;
}

#network .pipe-card:hover .pipe-card__num {
  color: white !important;
}

#network .pipe-card__dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--c, var(--hm-red));
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05), 0 0 16px var(--c, var(--hm-red));
}

#network .pipe-card__title {
  font-family: var(--font-display, ui-sans-serif, system-ui);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
  margin: 0 0 8px;
  line-height: 1.25;
}

#network .pipe-card__sub {
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
}

/* ---- Big-metrics row: REPLACE numerics with descriptors ---- */
#network .big-metrics {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
  margin-top: clamp(40px, 5vw, 64px) !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

@media (min-width: 560px) { #network .big-metrics { grid-template-columns: repeat(2, 1fr) !important; } }
@media (min-width: 1024px) { #network .big-metrics { grid-template-columns: repeat(4, 1fr) !important; gap: 16px !important; } }

#network .big-metric {
  position: relative;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 22px !important;
  padding: 32px 24px !important;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.5s var(--hm-ease-smooth), border-color 0.4s var(--hm-ease-smooth);
}

#network .big-metric::before {
  content: "";
  position: absolute;
  inset: -50% -10% auto -10%;
  height: 200%;
  background: radial-gradient(circle at 50% 30%, rgba(var(--hm-red-glow), 0.18) 0%, transparent 60%);
  opacity: 0.6;
  z-index: -1;
  transition: opacity 0.5s var(--hm-ease-smooth);
}

#network .big-metric:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--hm-red-glow), 0.45);
}

#network .big-metric:hover::before { opacity: 1; }

/* Hide the original numeric values, replace via ::after on label */
#network .big-metric .big-metric__value {
  font-family: var(--font-display, ui-sans-serif, system-ui);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: white;
  margin-bottom: 10px;
}

#network .big-metric .big-metric__value [data-count] {
  display: none;
}

#network .big-metric:nth-child(1) .big-metric__value::after { content: "Stabiler"; background: linear-gradient(135deg, #ffffff, #ffd6dc); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
#network .big-metric:nth-child(2) .big-metric__value::after { content: "Voll"; background: linear-gradient(135deg, #ffffff, #ffd6dc); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
#network .big-metric:nth-child(3) .big-metric__value::after { content: "Spürbar"; background: linear-gradient(135deg, var(--hm-red), #ff7a8a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
#network .big-metric:nth-child(4) .big-metric__value::after { content: "Mehrfach"; background: linear-gradient(135deg, var(--hm-red), #ff7a8a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

#network .big-metric .big-metric__label {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.45;
}

#network .big-metric:nth-child(1) .big-metric__label::after { content: " · Pro Monat"; opacity: 0.5; }
#network .big-metric:nth-child(2) .big-metric__label::after { content: " · Sales-Kalender"; opacity: 0.5; }
#network .big-metric:nth-child(3) .big-metric__label::after { content: " · Vor → Nach"; opacity: 0.5; }
#network .big-metric:nth-child(4) .big-metric__label::after { content: " · Auf Mediabudget"; opacity: 0.5; }


/* ============================================================
   2. GROWTH SYSTEM SECTION  (#growth-system)
   ============================================================ */

#growth-system { padding-block: clamp(48px, 7vw, 96px); }

/* ---- Iso-stack: bigger cards with depth + SVG illustrations + animated connectors ---- */
#growth-system .iso-stack {
  position: relative;
  max-width: 1080px !important;
  margin: clamp(28px, 4vw, 48px) auto clamp(40px, 5vw, 64px) !important;
}

#growth-system .iso-stack__inner {
  position: relative;
}

#growth-system .iso-stack__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}

@media (min-width: 820px) {
  #growth-system .iso-stack__row {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 14px;
    align-items: center;
  }
}

#growth-system .iso-stack__card {
  position: relative;
  background: white;
  border: 1px solid rgba(15, 16, 25, 0.08);
  border-radius: 22px;
  padding: 28px 24px 26px;
  text-align: center;
  box-shadow:
    0 1px 2px rgba(15, 16, 25, 0.05),
    0 8px 24px -12px rgba(15, 16, 25, 0.12),
    0 24px 60px -28px rgba(15, 16, 25, 0.18);
  transition: transform 0.5s var(--hm-ease-smooth), box-shadow 0.5s var(--hm-ease-smooth), border-color 0.4s var(--hm-ease-smooth);
  overflow: hidden;
  isolation: isolate;
}

#growth-system .iso-stack__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(var(--hm-red-glow), 0.08) 0%, transparent 45%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s var(--hm-ease-smooth);
}

#growth-system .iso-stack__card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--hm-red-glow), 0.25);
  box-shadow:
    0 1px 2px rgba(15, 16, 25, 0.05),
    0 14px 32px -10px rgba(15, 16, 25, 0.18),
    0 40px 80px -30px rgba(var(--hm-red-glow), 0.18);
}

#growth-system .iso-stack__card:hover::before { opacity: 1; }

/* Illustration on top of each card */
#growth-system .iso-stack__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(var(--hm-red-glow), 0.10), rgba(var(--hm-red-glow), 0.02));
  border: 1px solid rgba(var(--hm-red-glow), 0.15);
  border-radius: 16px;
  color: var(--hm-red);
}

#growth-system .iso-stack__icon svg {
  width: 28px;
  height: 28px;
}

#growth-system .iso-stack__label {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hm-red);
  margin-bottom: 10px;
}

#growth-system .iso-stack__title {
  font-family: var(--font-display, ui-sans-serif, system-ui);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--viz-text, #0f1019);
  margin-bottom: 6px;
}

#growth-system .iso-stack__sub {
  font-size: 13px;
  line-height: 1.5;
  color: var(--viz-text-2, #4b5163);
}

/* Animated dash-flow connector arrows */
#growth-system .iso-stack__line {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#growth-system .iso-stack__line::before {
  content: "";
  width: 100%;
  max-width: 80px;
  height: 2px;
  background-image: linear-gradient(90deg, rgba(var(--hm-red-glow), 0.6) 50%, transparent 50%);
  background-size: 14px 2px;
  background-repeat: repeat-x;
  animation: hm-dash-flow 4s linear infinite;
}

#growth-system .iso-stack__line::after {
  content: "→";
  position: absolute;
  right: 0;
  color: var(--hm-red);
  font-size: 18px;
  font-weight: 700;
}

@media (min-width: 820px) {
  #growth-system .iso-stack__line {
    height: auto;
    width: 80px;
  }
  #growth-system .iso-stack__line::before {
    max-width: none;
  }
}

@media (max-width: 819px) {
  #growth-system .iso-stack__line {
    transform: rotate(90deg);
    height: 48px;
  }
}

#growth-system .iso-stack__base { display: none; }

#growth-system .iso-stack__caption {
  margin-top: 24px;
  text-align: center;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--viz-text-3, #6b7180);
  letter-spacing: 0.06em;
}

/* ---- The 7 flow-steps: premium number circles, icons, stagger reveal, mobile timeline ---- */
#growth-system .growth-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 18px !important;
  max-width: 1040px !important;
  margin: 0 auto !important;
  position: relative;
}

@media (min-width: 820px) {
  #growth-system .growth-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 22px !important;
  }
}

/* Mobile vertical timeline: connector line between steps */
@media (max-width: 819px) {
  #growth-system .growth-grid::before {
    content: "";
    position: absolute;
    left: 32px;
    top: 28px;
    bottom: 28px;
    width: 2px;
    background: linear-gradient(180deg,
      rgba(var(--hm-red-glow), 0.0) 0%,
      rgba(var(--hm-red-glow), 0.25) 8%,
      rgba(var(--hm-red-glow), 0.25) 92%,
      rgba(var(--hm-red-glow), 0.0) 100%);
    z-index: 0;
  }
}

#growth-system .growth-step {
  position: relative;
  background: white;
  border: 1px solid rgba(15, 16, 25, 0.08);
  border-radius: 22px;
  padding: 28px !important;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: flex-start;
  transition: transform 0.55s var(--hm-ease-smooth), box-shadow 0.5s var(--hm-ease-smooth), border-color 0.4s var(--hm-ease-smooth);
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
}

#growth-system .growth-step__body { min-width: 0; }

#growth-system .growth-step::before {
  content: "";
  position: absolute;
  inset: auto -30% -30% auto;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(var(--hm-red-glow), 0.06) 0%, transparent 60%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s var(--hm-ease-smooth);
}

#growth-system .growth-step:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--hm-red-glow), 0.3);
  box-shadow:
    0 1px 2px rgba(15, 16, 25, 0.04),
    0 20px 40px -16px rgba(15, 16, 25, 0.14),
    0 36px 80px -32px rgba(var(--hm-red-glow), 0.20);
}

#growth-system .growth-step:hover::before { opacity: 1; }

#growth-system .growth-step .flow-step__num {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hm-red) 0%, #ff5a6e 100%);
  color: white !important;
  font-family: var(--font-display, ui-sans-serif, system-ui) !important;
  font-size: 22px !important;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow:
    0 1px 2px rgba(var(--hm-red-glow), 0.15),
    0 12px 24px -8px rgba(var(--hm-red-glow), 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  letter-spacing: -0.02em;
  position: relative;
  flex-shrink: 0;
}

#growth-system .growth-step .flow-step__num::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(var(--hm-red-glow), 0.3), transparent);
  z-index: -1;
  filter: blur(8px);
  opacity: 0.6;
}

#growth-system .growth-step .flow-step__title {
  font-family: var(--font-display, ui-sans-serif, system-ui);
  font-size: 17px !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--viz-text, #0f1019);
  margin-bottom: 8px;
}

#growth-system .growth-step .flow-step__desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--viz-text-2, #4b5163);
}

/* Stagger reveal */
#growth-system .growth-step { animation: hm-rise 0.7s var(--hm-ease-smooth) both; }
#growth-system .growth-step:nth-child(1) { animation-delay: 0.05s; }
#growth-system .growth-step:nth-child(2) { animation-delay: 0.15s; }
#growth-system .growth-step:nth-child(3) { animation-delay: 0.25s; }
#growth-system .growth-step:nth-child(4) { animation-delay: 0.35s; }
#growth-system .growth-step:nth-child(5) { animation-delay: 0.45s; }
#growth-system .growth-step:nth-child(6) { animation-delay: 0.55s; }
#growth-system .growth-step:nth-child(7) { animation-delay: 0.65s; }


/* ============================================================
   3. FUNNEL SECTION  (#funnel)
   ============================================================ */

/* Hide the WebGL canvas on mobile, show pure-CSS funnel */
#funnel .webgl-stage {
  position: relative !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
}

#funnel #funnel-3d {
  opacity: 0.35;
}

/* Pure CSS funnel overlay (visible on top of WebGL) */
#funnel .hm-funnel-css {
  position: absolute;
  inset: 8% 12% 8% 12%;
  z-index: 3;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

#funnel .hm-funnel-css__shape {
  width: 100%;
  height: 100%;
  position: relative;
  filter: drop-shadow(0 30px 60px rgba(var(--hm-red-glow), 0.35));
}

#funnel .hm-funnel-css__stage {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(var(--hm-red-glow), 0.85) 0%, rgba(var(--hm-red-glow), 0.55) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}

#funnel .hm-funnel-css__stage--top {
  top: 0;
  width: 100%;
  height: 28%;
  clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%);
  background: linear-gradient(180deg, rgba(var(--hm-red-glow), 0.55) 0%, rgba(var(--hm-red-glow), 0.7) 100%);
}

#funnel .hm-funnel-css__stage--mid {
  top: 33%;
  width: 70%;
  height: 30%;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
  background: linear-gradient(180deg, rgba(var(--hm-red-glow), 0.7) 0%, rgba(var(--hm-red-glow), 0.88) 100%);
}

#funnel .hm-funnel-css__stage--bot {
  bottom: 0;
  width: 40%;
  height: 28%;
  clip-path: polygon(0 0, 100% 0, 70% 100%, 30% 100%);
  background: linear-gradient(180deg, rgba(var(--hm-red-glow), 0.88) 0%, var(--hm-red) 100%);
  box-shadow: 0 0 30px rgba(var(--hm-red-glow), 0.5);
}

/* Animated dots flowing top→bottom */
#funnel .hm-funnel-css__dot {
  position: absolute;
  top: 4%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 999px;
  box-shadow: 0 0 12px white, 0 0 24px rgba(255, 255, 255, 0.6);
  animation: hm-flow-dot 3.6s linear infinite;
  pointer-events: none;
  transform: translateX(-50%);
}

#funnel .hm-funnel-css__dot:nth-child(2) { animation-delay: 0.4s; }
#funnel .hm-funnel-css__dot:nth-child(3) { animation-delay: 0.8s; }
#funnel .hm-funnel-css__dot:nth-child(4) { animation-delay: 1.4s; }
#funnel .hm-funnel-css__dot:nth-child(5) { animation-delay: 1.9s; }
#funnel .hm-funnel-css__dot:nth-child(6) { animation-delay: 2.5s; }
#funnel .hm-funnel-css__dot:nth-child(7) { animation-delay: 3.1s; }

/* ---- Replace KPI numerics with descriptors ---- */
#funnel .hm-kpi-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: transform 0.4s var(--hm-ease-smooth), border-color 0.3s var(--hm-ease-smooth);
}

#funnel .hm-kpi-row:hover {
  transform: translateX(4px);
  border-color: rgba(var(--hm-red-glow), 0.4);
}

#funnel .hm-kpi-row--accent {
  background: linear-gradient(135deg, rgba(var(--hm-red-glow), 0.14), rgba(var(--hm-red-glow), 0.03));
  border-color: rgba(var(--hm-red-glow), 0.30);
}

#funnel .hm-kpi-row__label {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

#funnel .hm-kpi-row--accent .hm-kpi-row__label { color: rgba(255, 180, 186, 0.85); }

#funnel .hm-kpi-row__desc {
  font-family: var(--font-display, ui-sans-serif, system-ui);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: white;
  text-align: right;
}

#funnel .hm-kpi-row--accent .hm-kpi-row__desc {
  background: linear-gradient(135deg, #ff8a98, #ff5566);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#funnel .hm-kpi-row__icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(var(--hm-red-glow), 0.15);
  display: grid;
  place-items: center;
  color: #ff8a98;
  margin-right: 12px;
  flex-shrink: 0;
}

#funnel .hm-kpi-row__main {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 4px;
}


/* ============================================================
   4. SHOWCASE SECTION  (#referenzen)
   ============================================================ */

#referenzen .showcase-card {
  transition: transform 0.6s var(--hm-ease-smooth), box-shadow 0.5s var(--hm-ease-smooth) !important;
  perspective: 1200px;
  transform-style: preserve-3d;
}

#referenzen .showcase-card:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-2deg) !important;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.15),
    0 30px 60px -20px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(var(--hm-red-glow), 0.18) !important;
}

#referenzen .showcase-card__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Stronger "external link" arrow indicator in URL bar */
#referenzen .showcase-card__url {
  display: flex !important;
  align-items: center;
  gap: 8px;
  transition: color 0.3s var(--hm-ease-smooth);
}

#referenzen .showcase-card__url::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8a98' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M7 17L17 7'/><path d='M9 7h8v8'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.45;
  transform: translate(0, 0);
  transition: transform 0.4s var(--hm-ease-spring), opacity 0.3s var(--hm-ease-smooth);
}

#referenzen .showcase-card:hover .showcase-card__url::after {
  opacity: 1;
  transform: translate(3px, -3px);
}

/* Premium disclaimer */
#referenzen .showcase-disclaimer {
  margin-top: clamp(32px, 4vw, 56px) !important;
  text-align: center;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.6;
  max-width: 720px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 18px 24px;
  background: linear-gradient(135deg, rgba(var(--hm-red-glow), 0.05), rgba(var(--hm-red-glow), 0.01));
  border: 1px solid rgba(var(--hm-red-glow), 0.18);
  border-radius: 14px;
}

#referenzen .showcase-disclaimer::before {
  content: "ⓘ ";
  color: var(--hm-red-soft);
  font-weight: 700;
  margin-right: 4px;
}


/* ============================================================
   5. FAQ SECTION  (#faq)
   ============================================================ */

#faq .faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 920px;
  margin: clamp(28px, 4vw, 48px) auto 0;
}

#faq .faq-item {
  position: relative;
  background: white;
  border: 1px solid rgba(15, 16, 25, 0.08);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.4s var(--hm-ease-smooth), box-shadow 0.4s var(--hm-ease-smooth), transform 0.4s var(--hm-ease-smooth);
}

#faq .faq-item:hover {
  border-color: rgba(var(--hm-red-glow), 0.3);
  box-shadow: 0 16px 40px -16px rgba(15, 16, 25, 0.12);
  transform: translateY(-2px);
}

#faq .faq-item[open] {
  border-color: rgba(var(--hm-red-glow), 0.45);
  box-shadow: 0 20px 50px -20px rgba(var(--hm-red-glow), 0.18);
  background: linear-gradient(135deg, white, rgba(var(--hm-red-glow), 0.025));
}

#faq .faq-item > summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 56px 20px 22px;
  font-family: var(--font-display, ui-sans-serif, system-ui);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--viz-text, #0f1019);
  cursor: pointer;
  list-style: none;
  line-height: 1.4;
  transition: background 0.3s var(--hm-ease-smooth), color 0.3s var(--hm-ease-smooth);
}

#faq .faq-item > summary::-webkit-details-marker { display: none; }

#faq .faq-item > summary:hover {
  background: linear-gradient(135deg, rgba(var(--hm-red-glow), 0.04), transparent);
}

/* Question icon (chat-bubble style) before each question */
#faq .faq-item > summary::before {
  content: "";
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(var(--hm-red-glow), 0.10), rgba(var(--hm-red-glow), 0.02));
  border: 1px solid rgba(var(--hm-red-glow), 0.18);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DC0018' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/></svg>"),
                    linear-gradient(135deg, rgba(var(--hm-red-glow), 0.10), rgba(var(--hm-red-glow), 0.02));
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: 16px 16px, cover;
}

#faq .faq-item[open] > summary::before {
  background-color: var(--hm-red);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3'/><line x1='12' y1='17' x2='12.01' y2='17'/></svg>");
  border-color: var(--hm-red);
}

/* Plus icon — smoother rotation */
#faq .faq-item > summary .faq-icon,
#faq .faq-item > summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 999px;
  background: rgba(15, 16, 25, 0.06);
  display: grid;
  place-items: center;
  transition: transform 0.45s var(--hm-ease-spring), background 0.3s var(--hm-ease-smooth);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1019' stroke-width='2.6' stroke-linecap='round'><path d='M12 5v14M5 12h14'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

/* hide the inline span variant if present, use ::after instead for control */
#faq .faq-item > summary .faq-icon { display: none; }

#faq .faq-item[open] > summary::after {
  transform: rotate(135deg);
  background-color: var(--hm-red);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'><path d='M12 5v14M5 12h14'/></svg>");
}

#faq .faq-item .faq-body {
  padding: 0 22px 24px 68px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--viz-text-2, #4b5163);
  animation: hm-rise 0.4s var(--hm-ease-smooth) both;
}

@media (max-width: 640px) {
  #faq .faq-item > summary {
    padding: 18px 50px 18px 18px;
    gap: 12px;
    font-size: 15px;
  }
  #faq .faq-item > summary::before {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }
  #faq .faq-item > summary::after {
    right: 18px;
    width: 22px;
    height: 22px;
  }
  #faq .faq-item .faq-body {
    padding: 0 18px 20px 58px;
    font-size: 14px;
  }
}

#faq .faq-item .faq-body a {
  color: var(--hm-red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

/* Footer CTA */
#faq .faq-foot {
  margin-top: clamp(32px, 4vw, 48px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

#faq .faq-foot p {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--viz-text-3, #6b7180);
  margin: 0;
}

#faq .faq-foot__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--viz-text, #0f1019);
  color: white !important;
  border-radius: 999px;
  font-family: var(--font-display, ui-sans-serif, system-ui);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.4s var(--hm-ease-smooth), background 0.3s var(--hm-ease-smooth);
}

#faq .faq-foot__cta:hover {
  transform: translateY(-2px);
  background: var(--hm-red);
}


/* ============================================================
   6. PROCESS SECTION  (#process)
   ============================================================ */

#process .flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 1080px;
  margin: clamp(28px, 4vw, 48px) auto 0;
  position: relative;
}

@media (min-width: 720px) {
  #process .flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (min-width: 960px) {
  #process .flow {
    grid-template-columns: repeat(4, 1fr);
  }
}

#process .flow-step {
  position: relative;
  background: white;
  border: 1px solid rgba(15, 16, 25, 0.08);
  border-radius: 22px;
  padding: 28px 24px 26px;
  text-align: center;
  transition: transform 0.55s var(--hm-ease-smooth), box-shadow 0.5s var(--hm-ease-smooth), border-color 0.4s var(--hm-ease-smooth);
  overflow: hidden;
  isolation: isolate;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#process .flow-step::before {
  content: "";
  position: absolute;
  inset: -20% -20% auto auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(var(--hm-red-glow), 0.06) 0%, transparent 60%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s var(--hm-ease-smooth);
}

#process .flow-step:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--hm-red-glow), 0.3);
  box-shadow: 0 28px 60px -22px rgba(var(--hm-red-glow), 0.18), 0 8px 20px -10px rgba(15, 16, 25, 0.10);
}

#process .flow-step:hover::before { opacity: 1; }

/* Connector arrow between cards (horizontal on desktop) */
#process .flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 2;
  display: none;
}

@media (min-width: 720px) {
  #process .flow-step:not(:last-child)::after {
    display: block;
    right: -12px;
    top: 50px;
    width: 24px;
    height: 2px;
    background-image: linear-gradient(90deg, rgba(var(--hm-red-glow), 0.5) 50%, transparent 50%);
    background-size: 6px 2px;
  }
  #process .flow-step:not(:last-child) {
    --hm-connector-arrow: "→";
  }
  #process .flow-step:not(:last-child)::after::before {
    content: "→";
    color: var(--hm-red);
  }
}

#process .flow-step .flow-step__num {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hm-red) 0%, #ff5a6e 100%);
  color: white !important;
  font-family: var(--font-display, ui-sans-serif, system-ui) !important;
  font-size: 26px !important;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  box-shadow:
    0 1px 2px rgba(var(--hm-red-glow), 0.15),
    0 14px 28px -10px rgba(var(--hm-red-glow), 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  letter-spacing: -0.02em;
  position: relative;
}

#process .flow-step .flow-step__num::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(var(--hm-red-glow), 0.3) 0%, transparent 70%);
  z-index: -1;
  filter: blur(10px);
}

/* SVG icon per phase */
#process .flow-step .hm-phase-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  color: var(--hm-red);
  opacity: 0.85;
}

#process .flow-step .flow-step__title {
  font-family: var(--font-display, ui-sans-serif, system-ui);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--viz-text, #0f1019);
  margin-bottom: 10px;
  line-height: 1.3;
}

#process .flow-step .flow-step__desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--viz-text-2, #4b5163);
}


/* ============================================================
   7. TESTIMONIALS  (#testimonials)
   ============================================================ */

#testimonials > .stage__inner > div[style*="grid-template-columns"] {
  gap: 18px !important;
  margin-top: clamp(28px, 4vw, 48px);
}

#testimonials .scene-element {
  position: relative !important;
  padding: 36px 28px 28px !important;
  border-radius: 22px !important;
  box-shadow:
    0 1px 2px rgba(15, 16, 25, 0.04),
    0 12px 32px -14px rgba(15, 16, 25, 0.12) !important;
  transition: transform 0.55s var(--hm-ease-smooth), box-shadow 0.5s var(--hm-ease-smooth), border-color 0.4s var(--hm-ease-smooth) !important;
  overflow: hidden;
  isolation: isolate;
}

#testimonials .scene-element::before {
  content: "\201C";
  position: absolute;
  top: -8px;
  left: 16px;
  font-family: var(--font-serif, Georgia, serif);
  font-size: 110px;
  line-height: 1;
  font-weight: 700;
  color: var(--hm-red);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

#testimonials .scene-element::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--hm-red) 50%, transparent);
  opacity: 0;
  transition: opacity 0.4s var(--hm-ease-smooth);
}

#testimonials .scene-element:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(var(--hm-red-glow), 0.35) !important;
  box-shadow:
    0 1px 2px rgba(15, 16, 25, 0.04),
    0 28px 60px -24px rgba(var(--hm-red-glow), 0.25),
    0 12px 24px -12px rgba(15, 16, 25, 0.15) !important;
}

#testimonials .scene-element:hover::after { opacity: 1; }

#testimonials .scene-element p {
  position: relative;
  z-index: 1;
  font-size: 19px !important;
  line-height: 1.5 !important;
}

/* Bigger avatar with gradient + initial */
#testimonials .scene-element > div:last-child > div:first-child {
  width: 48px !important;
  height: 48px !important;
  background: linear-gradient(135deg, var(--hm-red), #ff6a7c) !important;
  box-shadow:
    0 1px 2px rgba(var(--hm-red-glow), 0.2),
    0 8px 18px -6px rgba(var(--hm-red-glow), 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  font-size: 18px !important;
  font-family: var(--font-display, ui-sans-serif, system-ui);
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

/* alternate avatars: dark variant */
#testimonials .scene-element:nth-child(odd) > div:last-child > div:first-child {
  background: linear-gradient(135deg, var(--viz-ink, #0f1019), #2a2c3d) !important;
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  #network .pipe-journey__step::before,
  #funnel .hm-funnel-css__dot,
  #growth-system .iso-stack__line::before,
  #growth-system .growth-step {
    animation: none !important;
  }
}
