/* =========================================================
   HOME-APEX.CSS  ·  Apex Design Layer
   -----------------------------------------------------------
   Final transformative layer: dramatic typography scale,
   impact numbers strip, guarantee number magnets, maximum
   CTA pressure, precision-line signature motif, section
   rhythm variation, enhanced hover states.

   Load after: home-vision.css · Cascade wins by source order
   ========================================================= */

body.page-home {
  --apex-glow: rgba(11, 88, 118, 0.28);
  --apex-gold: #d6a35b;
  --apex-num: clamp(52px, 8vw, 88px);
  --apex-line: linear-gradient(90deg,
    transparent, rgba(214,163,91,0.3) 15%,
    rgba(94,184,204,0.3) 50%,
    rgba(214,163,91,0.3) 85%, transparent);
  --apex-ease: cubic-bezier(0.16, 0.84, 0.24, 1);
}


/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY — Dramatic scale increase
   Creates a stronger visual hierarchy with more contrast
   between headings, body text, and micro-copy.
   ═══════════════════════════════════════════════════════════ */

body.page-home .hero h1 {
  font-size: clamp(46px, 6vw, 76px) !important;
  letter-spacing: -0.04em;
  line-height: 0.95 !important;
}

body.page-home .hero-title-main {
  font-size: clamp(46px, 6vw, 76px) !important;
}

body.page-home .hero-title-label {
  font-size: clamp(12px, 1.3vw, 15px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  opacity: 0.5;
  margin-bottom: 16px;
  display: block;
}

body.page-home .section-head h2,
body.page-home .guarantee-editorial-copy h2,
body.page-home .mapcheck-editorial-copy h2,
body.page-home .measure-editorial-copy h2 {
  font-size: clamp(32px, 3.8vw, 54px);
  line-height: 1.04;
}

body.page-home .cta-final h2 {
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.06;
}


/* ═══════════════════════════════════════════════════════════
   HERO — CTA prominence & manifesto presence
   The primary conversion button gets ambient glow treatment,
   becoming the strongest visual anchor in the hero.
   ═══════════════════════════════════════════════════════════ */

body.page-home .hero-manifesto {
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 520px;
}

body.page-home .hero .hero-actions .btn-primary {
  padding: 20px 46px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.015em;
  box-shadow:
    0 18px 44px rgba(4, 26, 39, 0.28),
    0 0 80px var(--apex-glow);
}

body.page-home .hero .hero-actions .btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 24px 56px rgba(4, 26, 39, 0.32),
    0 0 0 6px rgba(11,88,118,0.12),
    0 0 110px rgba(11, 88, 118, 0.38);
}


/* ═══════════════════════════════════════════════════════════
   IMPACT STRIP — Full-bleed number anchors
   Three oversized statistics between hero and angebot
   serve as immediate fact anchors and visual magnets.
   The serif gradient-text numbers are the signature element.
   ═══════════════════════════════════════════════════════════ */

.apex-strip {
  position: relative;
  padding: 56px 0;
  background:
    radial-gradient(600px 300px at 50% 50%, rgba(11,88,118,0.10), transparent 70%),
    linear-gradient(180deg, #041a27, #072a3c 50%, #041a27);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
  z-index: 1;
}

/* Precision line accent across full width (signature motif) */
.apex-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--apex-line);
}

.apex-strip::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--apex-line);
}

.apex-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.apex-strip-stat {
  text-align: center;
  color: rgba(255,255,255,0.95);
  padding: 20px 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--apex-ease), transform 0.65s var(--apex-ease);
}

.apex-strip-stat.vision-visible {
  opacity: 1;
  transform: translateY(0);
}

.apex-strip-stat[data-vision-delay="1"] { transition-delay: 130ms; }
.apex-strip-stat[data-vision-delay="2"] { transition-delay: 260ms; }

/* Large serif numbers with vertical gradient → signature visual */
.apex-strip-num {
  display: block;
  font-family: "Newsreader", Georgia, serif;
  font-size: var(--apex-num);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,0.6));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}

.apex-strip-unit {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--apex-gold);
  margin-bottom: 8px;
}

.apex-strip-label {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.45;
}

/* Vertical divider between stats */
.apex-strip-stat + .apex-strip-stat {
  position: relative;
}
.apex-strip-stat + .apex-strip-stat::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.10), transparent);
}


/* ═══════════════════════════════════════════════════════════
   GUARANTEE — Large background number magnets
   Oversized semi-transparent numbers reinforce each tier
   visually before the text is even read. The numbers act
   as instant emotional anchors (✓ = safe, 30% = partial,
   100% = full coverage).
   ═══════════════════════════════════════════════════════════ */

body.page-home .guarantee-lane {
  position: relative;
  overflow: hidden;
}

.apex-tier-num {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(60px, 12vw, 110px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
}

body.page-home .guarantee-lane-success .apex-tier-num {
  color: rgba(46, 204, 113, 0.06);
}

body.page-home .guarantee-lane-partial .apex-tier-num {
  color: rgba(243, 156, 18, 0.06);
}

body.page-home .guarantee-lane-full .apex-tier-num {
  color: rgba(231, 76, 60, 0.06);
}

/* Enlarge the badge pills for more impact */
body.page-home .guarantee-lane-rule span {
  font-size: 15px;
  padding: 12px 24px;
  font-weight: 700;
}


/* ═══════════════════════════════════════════════════════════
   CTA FINAL — Maximum conversion pressure
   The final CTA gets the largest button treatment with
   an expanded ambient glow to draw the eye.
   ═══════════════════════════════════════════════════════════ */

body.page-home .cta-final .btn-primary.btn-lg {
  padding: 22px 54px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.015em;
  box-shadow:
    0 20px 50px rgba(4, 26, 39, 0.25),
    0 0 90px var(--apex-glow);
}

body.page-home .cta-final .btn-primary.btn-lg:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 26px 64px rgba(4, 26, 39, 0.30),
    0 0 0 6px rgba(11,88,118,0.15),
    0 0 130px rgba(11, 88, 118, 0.38);
}


/* ═══════════════════════════════════════════════════════════
   SIGNATURE MOTIF — Gold/teal precision line
   The gradient line appears on sig-dividers throughout the
   page, creating a recognizable recurring visual motif
   that echoes the measurement/precision theme.
   ═══════════════════════════════════════════════════════════ */

body.page-home .sig-divider {
  height: 1px;
  background: var(--apex-line);
}


/* ═══════════════════════════════════════════════════════════
   SECTION RHYTHM — Varied vertical spacing
   Dense sections alternate with breathing sections to
   prevent scroll fatigue and create a sense of visual
   pacing (tension → release → tension).
   ═══════════════════════════════════════════════════════════ */

body.page-home #messung {
  padding-top: 96px;
  padding-bottom: 104px;
}

body.page-home #garantie {
  padding-top: 88px;
  padding-bottom: 96px;
}

body.page-home .cta-final {
  padding-top: 100px;
  padding-bottom: 108px;
}


/* ═══════════════════════════════════════════════════════════
   HOVER & INTERACTION — Refined lift effects
   Cards lift on hover with smooth easing, creating a
   consistent interaction language across the entire page.
   ═══════════════════════════════════════════════════════════ */

body.page-home .offer-path {
  transition: transform 0.4s var(--apex-ease), box-shadow 0.4s var(--apex-ease);
}
body.page-home .offer-path:hover {
  transform: translateY(-5px);
}

body.page-home .measure-lane {
  transition: transform 0.4s var(--apex-ease), box-shadow 0.4s var(--apex-ease);
}
body.page-home .measure-lane:hover {
  transform: translateY(-4px);
}

body.page-home .guarantee-lane {
  transition: transform 0.4s var(--apex-ease), box-shadow 0.35s var(--apex-ease);
}
body.page-home .guarantee-lane:hover {
  transform: translateY(-4px);
}

body.page-home .hero-bench-card {
  transition: transform 0.35s var(--apex-ease), box-shadow 0.35s var(--apex-ease),
              border-color 0.35s var(--apex-ease);
}
body.page-home .hero-bench-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.14);
}


/* ═══════════════════════════════════════════════════════════
   OFFER-PATH STATUS ICONS — Instant visual coding
   Each path gets a thematic SVG icon that communicates
   the outcome type in < 0.5 seconds: ✓ = fit, ✗ = no, → = alt.
   ═══════════════════════════════════════════════════════════ */

.apex-path-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.apex-path-icon svg {
  width: 20px;
  height: 20px;
}

.offer-path-fit .apex-path-icon {
  background: rgba(46, 204, 113, 0.12);
  color: #2ecc71;
}

.offer-path-no .apex-path-icon {
  background: rgba(243, 156, 18, 0.12);
  color: #f39c12;
}

.offer-path-alt .apex-path-icon {
  background: rgba(94, 184, 204, 0.12);
  color: #5eb8cc;
}

/* Dark card inversion for alt path */
.offer-path-alt .apex-path-icon {
  background: rgba(94, 184, 204, 0.15);
  color: #86cad4;
}


/* ═══════════════════════════════════════════════════════════
   STEP ICONS — Process scanability
   Thematic icons on timeline steps make the 4-step process
   recognizable without reading the headlines.
   ═══════════════════════════════════════════════════════════ */

.apex-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(214, 163, 91, 0.10);
  color: var(--apex-gold);
  margin-top: 8px;
}

.apex-step-icon svg {
  width: 16px;
  height: 16px;
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Tablet  (≤ 980px)
   Bridges home-vision's 980px breakpoint so apex h1/padding
   values are consistent across the tablet range.
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 980px) {
  /* Section spacing: scaled down for tablet */
  body.page-home #messung { padding: 72px 0 80px; }
  body.page-home #garantie { padding: 68px 0 76px; }
  body.page-home .cta-final { padding: 76px 0 84px; }
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (< 768px)
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* Impact strip: vertical stacking with side-by-side layout */
  .apex-strip { padding: 36px 0; }

  .apex-strip-inner {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .apex-strip-stat {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0 16px;
    text-align: left;
    padding: 14px 16px;
  }

  .apex-strip-num {
    grid-row: 1 / 3;
    font-size: clamp(40px, 11vw, 56px);
    align-self: center;
  }

  .apex-strip-unit { margin: 0; align-self: end; }
  .apex-strip-label { align-self: start; }

  .apex-strip-stat + .apex-strip-stat::before {
    left: 10%;
    right: 10%;
    top: -4px;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  }

  /* Hero typography */
  body.page-home .hero h1,
  body.page-home .hero-title-main {
    font-size: clamp(32px, 6vw, 48px) !important;
  }

  body.page-home .hero h1 {
    line-height: 0.92 !important;
  }

  body.page-home .hero-manifesto {
    font-size: 17px;
  }

  body.page-home .hero .hero-actions .btn-primary {
    padding: 18px 36px;
    font-size: 16px;
    width: 100%;
    justify-content: center;
  }

  /* Section headlines */
  body.page-home .section-head h2,
  body.page-home .guarantee-editorial-copy h2,
  body.page-home .mapcheck-editorial-copy h2,
  body.page-home .measure-editorial-copy h2 {
    font-size: clamp(26px, 7vw, 38px);
  }

  body.page-home .cta-final h2 {
    font-size: clamp(25px, 6.5vw, 36px);
  }

  /* CTA button mobile */
  body.page-home .cta-final .btn-primary.btn-lg {
    padding: 18px 40px;
    font-size: 16px;
    width: 100%;
    justify-content: center;
  }

  /* Guarantee number magnets: smaller */
  .apex-tier-num {
    font-size: clamp(48px, 12vw, 68px);
    right: 12px;
  }

  /* Section spacing: tighter on mobile */
  body.page-home #messung { padding: 64px 0 72px; }
  body.page-home #garantie { padding: 60px 0 68px; }
  body.page-home .cta-final { padding: 64px 0 72px; }

  /* Icons: slightly smaller on mobile */
  .apex-path-icon { width: 30px; height: 30px; }
  .apex-path-icon svg { width: 16px; height: 16px; }
  .apex-step-icon { width: 28px; height: 28px; }
  .apex-step-icon svg { width: 14px; height: 14px; }

  /* hero-bench-card: no hover on touch, add :active feedback */
  body.page-home .hero-bench-card:hover { transform: none; }
  body.page-home .hero-bench-card:active {
    transform: scale(0.98);
    background: rgba(255,255,255,0.04);
    transition-duration: 0.1s;
  }

  /* Offer-path / measure-lane / guarantee-lane: :active tap feedback */
  body.page-home .offer-path:active,
  body.page-home .measure-lane:active,
  body.page-home .guarantee-lane:active {
    transform: scale(0.985);
    transition-duration: 0.1s;
  }
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Small Mobile (< 480px)
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
  .apex-strip-num {
    font-size: clamp(34px, 10vw, 44px);
  }

  body.page-home .hero h1,
  body.page-home .hero-title-main {
    font-size: clamp(28px, 7vw, 38px) !important;
  }

  .apex-tier-num {
    font-size: clamp(40px, 12vw, 56px);
    right: 8px;
  }

  /* Section spacing: compact on small phones */
  body.page-home #messung { padding: 48px 0 52px; }
  body.page-home #garantie { padding: 44px 0 48px; }
  body.page-home .cta-final { padding: 48px 0 52px; }
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Tiny phones (< 360px)
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 360px) {
  .apex-strip-num {
    font-size: clamp(30px, 9vw, 38px);
  }

  .apex-tier-num {
    font-size: clamp(36px, 11vw, 48px);
    right: 6px;
  }

  body.page-home .hero h1,
  body.page-home .hero-title-main {
    font-size: clamp(26px, 7.5vw, 32px) !important;
  }
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (769–1024px)
   ═══════════════════════════════════════════════════════════ */

@media (min-width: 769px) and (max-width: 1024px) {
  .apex-strip-inner { gap: 20px; }
  .apex-strip-num { font-size: clamp(44px, 6vw, 64px); }

  /* Smooth tier-num transition for tablet */
  .apex-tier-num {
    font-size: clamp(56px, 9vw, 90px);
  }

  body.page-home .hero h1,
  body.page-home .hero-title-main {
    font-size: clamp(42px, 5.8vw, 62px) !important;
  }
}


/* ═══════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .apex-strip-stat {
    opacity: 1;
    transform: none;
    transition: none;
  }

  body.page-home .offer-path:hover,
  body.page-home .measure-lane:hover,
  body.page-home .guarantee-lane:hover,
  body.page-home .hero-bench-card:hover {
    transform: none;
  }
}
