/* WOLF photographic heroes. Existing hero widths and heights are preserved. */
.hero-slider #hero-bau .hero-image { object-position:72% center; }
.hero-slider #hero-garten .hero-image { object-position:67% center; }
.hero-slider #hero-maschine .hero-image { object-position:74% center; }

.page-hero.page-hero-photo { isolation:isolate; background:#10231b; }
.page-hero-photo > .page-hero-image {
  position:absolute; inset:0; width:100%; height:100%; max-width:none;
  object-fit:cover; object-position:var(--hero-position,70% 50%); z-index:-2;
}
.page-hero-photo::before {
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(90deg,rgba(3,19,14,.91) 0%,rgba(3,19,14,.79) 36%,rgba(3,19,14,.40) 67%,rgba(3,19,14,.18) 100%);
}
.page-hero-photo h1 { color:#fff; text-shadow:0 2px 20px #04180f45; }
.page-hero-photo > .container > p:not(.eyebrow) { color:#ebf2ed; }
.page-hero-photo .eyebrow { color:#d2e7bd; }
.page-hero-photo .eyebrow span { background:#b0cf90; }
.page-hero-photo .breadcrumbs,
.page-hero-photo .breadcrumbs span[aria-current] { color:#e2eae2; }
.page-hero-photo .breadcrumbs a { color:#e2eae2; }
.page-hero-photo .breadcrumbs a:hover { color:#fff; }
.page-hero-photo .breadcrumbs > span:not([aria-current]) { color:#9fbaa7; }
.page-hero-photo .breadcrumbs a:focus-visible { outline-color:#cfecad; }

/* One shared full-width band and footer layout on every page. */
.trust-band, .home-cta-band, .site-footer.wolf-footer { width:100%; }
.trust-band { position:relative; }
.trust-band .trust-title { min-width:0; }
.filter-bar button { min-height:44px; }
.filter-bar button:focus-visible { outline:3px solid #7fb13a; outline-offset:3px; }
.service-card:focus-visible { outline:3px solid #7fb13a; outline-offset:5px; }

/* Retain banner spacing after the breadcrumb rows are removed. */
.page-hero.page-hero-photo { padding-top:80px; }

/* Service cards lead directly to normal article content, without a hero. */
.section.service-detail-section { padding-top:46px; }
.service-intro { margin:0 0 30px; }
.service-back {
  display:inline-flex; align-items:center; gap:9px; color:var(--green);
  font-size:13px; font-weight:700; margin-bottom:20px; min-height:32px;
}
.service-back:hover { text-decoration:underline; text-underline-offset:4px; }
.service-intro h1 {
  font-size:clamp(32px,3.6vw,50px); line-height:1.12; margin:0 0 16px;
  overflow-wrap:break-word; hyphens:auto;
}
.service-intro > p { font-size:16px; line-height:1.65; max-width:720px; }

@media(max-width:700px) {
  .page-hero.page-hero-photo { padding-top:64px; }
  .section.service-detail-section { padding-top:28px; }
  .service-intro { margin-bottom:24px; }
  .service-back { margin-bottom:14px; min-height:40px; }
  .service-intro > p { font-size:14px; }
  .page-hero-photo > .page-hero-image { object-position:var(--hero-position-mobile,74% 50%); }
  .page-hero-photo::before {
    background:linear-gradient(90deg,rgba(3,19,14,.91),rgba(3,19,14,.67) 65%,rgba(3,19,14,.48)),
      linear-gradient(0deg,rgba(3,19,14,.35),transparent 70%);
  }
  .hero-slider #hero-bau .hero-image { object-position:76% center; }
  .hero-slider #hero-garten .hero-image { object-position:72% center; }
  .hero-slider #hero-maschine .hero-image { object-position:76% center; }
  .trust-items span { min-width:0; }
}

/* Both photographs have their own composition and use the live slide controls. */
#hero-winterdienst {
  container: winter-hero / size;
}
#hero-winterdienst .winter-hero-art {
  display: block;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
#hero-winterdienst .hero-image {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 88% 51%;
}
#hero-winterdienst .hero-shade {
  background: linear-gradient(90deg,
    rgba(5,22,29,.84), rgba(7,25,32,.75) 24%, rgba(8,27,34,.56) 37%,
    rgba(8,27,34,.12) 54%, transparent 69%);
}
#hero-winterdienst .hero-inner {
  --copy-inset: max(4cqw, calc((100cqw - 1480px) / 2));
  width: 100%;
  padding-inline: var(--copy-inset);
  padding-bottom: 31px;
}
#hero-winterdienst .hero-copy {
  /* The front marker sits at 43% of the 2:1 panorama's width. */
  --blade-left: min(43cqw, calc(88cqw - 90cqh));
  width: clamp(175px, calc(var(--blade-left) - var(--copy-inset) - 18px), 510px);
  max-width: 100%;
  container-type: inline-size;
}
#hero-winterdienst .hero-heading {
  font-size: clamp(29px, 14cqi, 70px);
}
#hero-winterdienst .winter-location {
  white-space: nowrap;
}

/* The portrait artwork reserves the sky for copy and the lower half for the plough. */
@media (max-width: 860px), (max-width: 1200px) and (max-aspect-ratio: 6/5) {
  #hero-winterdienst .hero-image {
    object-position: 50% 73%;
  }
  #hero-winterdienst .hero-shade {
    background: linear-gradient(180deg,
      rgba(6,25,34,.76), rgba(8,28,37,.68) 25%, rgba(11,32,40,.42) 43%,
      rgba(11,32,40,.08) 56%, transparent 65%);
  }
  #hero-winterdienst .hero-inner {
    display: flex;
    align-items: flex-start;
    height: 100%;
    padding: clamp(48px, 9svh, 88px) clamp(18px, 5vw, 48px) 0;
  }
  #hero-winterdienst .hero-copy {
    width: 100%;
    container-type: normal;
  }
  #hero-winterdienst .hero-overline { margin-bottom: 12px; }
  #hero-winterdienst .hero-heading { font-size: clamp(35px, 7.5cqw, 48px); }
  #hero-winterdienst .hero-desc {
    max-width: 66ch;
    font-size: 15px;
    line-height: 1.5;
    margin-top: 12px;
  }
  #hero-winterdienst .button-row { margin-top: 18px; }

  @container winter-hero (min-aspect-ratio: 1/1) {
    #hero-winterdienst .hero-image { object-position: 50% 72%; }
    #hero-winterdienst .hero-inner { padding-top: clamp(21px, 3.6cqh, 30px); }
    #hero-winterdienst .hero-overline { margin-bottom: 6px; }
    #hero-winterdienst .hero-heading { font-size: clamp(32px, 4.6vw, 45px); }
    #hero-winterdienst .hero-desc { max-width: none; font-size: 14px; margin-top: 5px; }
    #hero-winterdienst .button-row { margin-top: 7px; }
  }
}
/* Continue the photographed sky on very tall screens without clipping the two implements. */
@container winter-hero (max-aspect-ratio: 53/100) {
  #hero-winterdienst .winter-hero-art {
    background: url("../heroes/winterdienst-hochformat.webp") center top / cover no-repeat;
  }
  #hero-winterdienst .hero-image {
    object-fit: contain;
    object-position: center bottom;
    mask-image: linear-gradient(180deg, transparent calc(100cqh - 180cqw),
      black calc(100cqh - 180cqw + 36px));
  }
}
/* Panoramic monitors retain the cab roof, wheels and road beneath the vehicle. */
@container winter-hero (min-aspect-ratio: 16/5) {
  #hero-winterdienst .winter-hero-art {
    background: url("../heroes/winterdienst-panorama.webp") left center / cover no-repeat;
  }
  #hero-winterdienst .hero-image {
    left: auto;
    width: 300cqh;
    mask-image: linear-gradient(90deg, transparent, black 20%);
  }
}
