/* V8 detail heroes: measured against Moneybird sector/function/accountant pages. */
.wg-page-v8 .dienst-page { position: relative; overflow: visible; }
.wg-page-v8 .dienst-hero-shell { position: relative; z-index: 0; height: min(calc(100svh - 32px), 688px); min-height: 620px; }

.wg-page-v8 .dienst-hero {
  --hero-progress: 0;
  position: fixed !important;
  z-index: 0;
  inset: 0 0 auto !important;
  display: block;
  width: 100%;
  height: min(calc(100svh - 32px), 688px) !important;
  min-height: 620px !important;
  max-height: 688px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 0 36px 36px !important;
}

.wg-page-v8 .wg-page-hero__image {
  object-position: center center;
  filter: saturate(1.01) contrast(1.025) blur(calc(var(--hero-progress) * 10px));
  transform: scale(calc(1.01 + var(--hero-progress) * .055));
  transition: filter .08s linear, transform .08s linear;
}

.wg-page-v8 .wg-page-hero__wash {
  background:
    linear-gradient(180deg, rgba(2,16,11,.42) 0%, rgba(2,16,11,.05) 30%, rgba(2,16,11,.05) 72%, rgba(2,16,11,.27) 100%),
    linear-gradient(90deg, rgba(2,20,14,.70) 0%, rgba(2,20,14,.50) 36%, rgba(2,20,14,.12) 68%, rgba(2,20,14,.04) 100%);
}

.wg-page-v8 .dienst-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(255,255,255,calc(var(--hero-progress) * .3));
  pointer-events: none;
}

.wg-page-v8 .dienst-hero .container {
  width: min(1212px, calc(100% - 68px)) !important;
  margin: 0 auto !important;
  padding: 260px 0 24px !important;
}

.wg-page-v8 .dienst-hero .case-back,
.wg-page-v8 .dienst-hero .section-eyebrow {
  display: inline !important;
  margin: 0 !important;
  color: rgba(255,255,255,.84) !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 20px !important;
  text-transform: none !important;
}
.wg-page-v8 .dienst-hero .case-back::after { content: " / "; color: rgba(255,255,255,.62); }

.wg-page-v8 .dienst-h1 {
  width: min(970px, 100%);
  max-width: 970px !important;
  margin: 24px 0 0 !important;
  color: #fff !important;
  font-size: clamp(48px, 4.7vw, 60px) !important;
  font-weight: 600 !important;
  letter-spacing: -.038em !important;
  line-height: 1.1 !important;
  text-wrap: balance;
}
.wg-page-v8 .dienst-sub { display: none !important; }
.wg-page-v8 .dienst-hero-cta { gap: 16px !important; margin-top: 26px !important; }
.wg-page-v8 .dienst-hero .btn-primary,
.wg-page-v8 .dienst-hero .btn-ghost {
  min-height: 40px !important;
  padding: 0 20px !important;
  border-radius: 10px !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}
.wg-page-v8 .dienst-hero .btn-primary { background: #0b805d !important; border-color: #0b805d !important; }
.wg-page-v8 .dienst-hero .btn-ghost { background: rgba(3,18,13,.12) !important; border-color: rgba(255,255,255,.62) !important; }

.wg-page-v8 .wg-page-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: rgba(255,255,255,.88);
  font-size: 14px;
  line-height: 1.35;
}
.wg-page-v8 .wg-page-proof__avatars { display: flex; padding-left: 8px; }
.wg-page-v8 .wg-page-proof__avatars img {
  width: 28px;
  height: 28px;
  margin-left: -8px;
  object-fit: cover;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.wg-page-v8 .dienst-hero-shell ~ section,
.wg-page-v8 .dienst-hero-shell ~ .site-footer-outer,
.wg-page-v8 .site-footer-outer {
  position: relative;
  z-index: 3;
}
.wg-page-v8 .dienst-hero-shell + .benefits-section { border-radius: 36px 36px 0 0; }

@media (max-width: 820px) {
  .wg-page-v8 .dienst-hero-shell { height: min(calc(100svh - 16px), 760px); min-height: 650px; }
  .wg-page-v8 .dienst-hero {
    height: min(calc(100svh - 16px), 760px) !important;
    min-height: 650px !important;
    max-height: 760px !important;
    border-radius: 0 0 30px 30px !important;
  }
  .wg-page-v8 .dienst-hero .container {
    width: calc(100% - 40px) !important;
    padding-top: clamp(250px, 39vh, 340px) !important;
  }
  .wg-page-v8 .dienst-h1 { margin-top: 18px !important; font-size: clamp(40px, 11.2vw, 52px) !important; line-height: 1.04 !important; }
  .wg-page-v8 .dienst-hero-cta { margin-top: 22px !important; }
  .wg-page-v8 .wg-page-proof { margin-top: 20px; font-size: 12px; }
}

@media (max-width: 560px) {
  .wg-page-v8 .dienst-hero .container { padding-top: clamp(220px, 35vh, 300px) !important; }
  .wg-page-v8 .dienst-h1 { font-size: clamp(36px, 10.8vw, 46px) !important; }
  .wg-page-v8 .dienst-hero-cta { flex-direction: row !important; align-items: center !important; }
  .wg-page-v8 .dienst-hero .btn-primary,
  .wg-page-v8 .dienst-hero .btn-ghost { width: auto !important; padding-inline: 16px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .wg-page-v8 .wg-page-hero__image { transition: none !important; }
}
