/* IHB V44.2 | ausschließlich die Unterseite /leistungen/montage
   Ziel: grünen SPPB-Image-Overlay entfernen, ruhiges Premium-Layout, robustes Mobile-Raster.
   Wird nach montage-v44.css geladen und überschreibt keine anderen Leistungen-Seiten.
*/

/* Grundabstände und Inhaltsbreite */
body.ihb-page:has(.ihb-v44-page) .ihb-v44-page > .sppb-row-container,
body.ihb-page:has(.ihb-v44-page) .ihb-v44-page > .sppb-container-inner {
  width: min(1200px, calc(100% - 64px)) !important;
  max-width: 1200px !important;
  margin-inline: auto !important;
}
body.ihb-page:has(.ihb-v44-page) .ihb-v44-page .sppb-row-column,
body.ihb-page:has(.ihb-v44-page) .ihb-v44-page .sppb-addon-wrapper {min-width:0 !important;}

/* Kein grellgrünes Overlay – weder vom Bild-Addon noch als SPPB-Hover-Pseudoelement. */
.ihb-v44-page :is(.ihb-v44-hero-img,.ihb-v44-step-image) :is(
  .sppb-addon-single-image-container,
  .sppb-addon-single-image,
  .sppb-addon-content,
  a
) {background-color: transparent !important;}
.ihb-v44-page :is(.ihb-v44-hero-img,.ihb-v44-step-image) :is(
  .sppb-addon-single-image-container,
  .sppb-addon-single-image,
  .sppb-addon-content,
  a
)::before,
.ihb-v44-page :is(.ihb-v44-hero-img,.ihb-v44-step-image) :is(
  .sppb-addon-single-image-container,
  .sppb-addon-single-image,
  .sppb-addon-content,
  a
)::after {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.ihb-v44-page :is(.ihb-v44-hero-img,.ihb-v44-step-image) a {
  display: block !important;
  position: relative;
  line-height: 0;
  cursor: zoom-in;
}
.ihb-v44-page :is(.ihb-v44-hero-img,.ihb-v44-step-image) a:focus-visible {
  outline: 3px solid #c6a47e !important;
  outline-offset: -3px !important;
}
.ihb-v44-page :is(.ihb-v44-hero-img,.ihb-v44-step-image) a:hover img,
.ihb-v44-page :is(.ihb-v44-hero-img,.ihb-v44-step-image) a:focus-visible img {
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
}

/* Hero: Architektur lesbar statt unnötig hart angeschnitten. */
.ihb-v44-page.ihb-v44-hero {
  padding-block: clamp(78px, 8.5vw, 116px) !important;
}
.ihb-v44-hero .ihb-v44-hero-img,
.ihb-v44-hero .ihb-v44-hero-img .sppb-addon-content,
.ihb-v44-hero .ihb-v44-hero-img .sppb-addon-single-image-container,
.ihb-v44-hero .ihb-v44-hero-img .sppb-addon-single-image { height: auto !important; }
.ihb-v44-hero .ihb-v44-hero-img img {
  width: 100% !important;
  aspect-ratio: 5 / 4 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center 52% !important;
  box-shadow: 0 20px 48px rgba(4, 22, 34, .22) !important;
}
.ihb-v44-hero .ihb-v44-facts {
  display: flex !important;
  gap: 12px 26px !important;
  align-items: baseline;
  margin-block: 22px 28px !important;
}
.ihb-v44-hero .ihb-v44-facts span {white-space: normal !important;}

/* Ruhige Abschnittsfolge und optisch verbundene 14 Schritte. */
.ihb-v44-page.ihb-v44-gallery-heading {
  background: #f3f5f5 !important;
  padding-bottom: clamp(30px, 4vw, 55px) !important;
}
.ihb-v44-page.ihb-v44-pair,
.ihb-v44-page.ihb-v44-pair:nth-of-type(even) {
  background: #f3f5f5 !important;
  padding: 0 0 clamp(22px, 3vw, 38px) !important;
}
.ihb-v44-pair > .sppb-row-container > .sppb-row,
.ihb-v44-pair > .sppb-container-inner > .sppb-row {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(18px, 2.4vw, 30px) !important;
  align-items: stretch !important;
}
.ihb-v44-pair .sppb-row-column {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 1px solid #e2e9eb !important;
  border-bottom: 2px solid #c9aa85 !important;
  box-shadow: 0 9px 24px rgba(13, 45, 65, .045) !important;
  transition: box-shadow .2s ease, border-color .2s ease !important;
}
.ihb-v44-pair .sppb-row-column:hover {
  box-shadow: 0 13px 27px rgba(13, 45, 65, .085) !important;
  border-bottom-color: #ae8b68 !important;
}
.ihb-v44-pair .ihb-v44-step-image,
.ihb-v44-pair .ihb-v44-step-image .sppb-addon-content,
.ihb-v44-pair .ihb-v44-step-image .sppb-addon-single-image-container,
.ihb-v44-pair .ihb-v44-step-image .sppb-addon-single-image {
  width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
}
.ihb-v44-pair .ihb-v44-step-image img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 10 !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  transition: none !important;
}
.ihb-v44-pair .ihb-v44-step-content {padding: clamp(23px, 2.65vw, 34px) !important;}
.ihb-v44-pair .ihb-v44-step-index {
  color: #a57d54 !important;
  font-size: 10px !important;
  letter-spacing: .18em !important;
  margin-bottom: 17px !important;
}
.ihb-v44-pair .ihb-v44-step-text h3 {
  color: #17384b !important;
  font-size: clamp(27px, 2.55vw, 37px) !important;
  line-height: 1.16 !important;
  margin: 0 0 15px !important;
  overflow-wrap: anywhere !important;
}
.ihb-v44-pair .ihb-v44-step-text p {
  color: #58707e !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
  margin: 0 !important;
}

/* Sprunglinks und CTA im Farbsystem des Templates. */
.ihb-v44-page .ihb-v44-jump nav {display:flex;flex-wrap:wrap;gap:10px;margin-top:28px;}
.ihb-v44-page .ihb-v44-jump nav a {
  display: inline-flex !important;
  min-height: 42px;
  align-items: center;
  color: #18394d !important;
  border: 1px solid #d5c5ae !important;
  background: transparent !important;
  padding: 10px 16px !important;
  text-decoration: none !important;
  border-radius: 0 !important;
  transition: background-color .18s ease !important;
}
.ihb-v44-page .ihb-v44-jump nav a:hover,
.ihb-v44-page .ihb-v44-jump nav a:focus-visible {
  background: #ead8bf !important;
  color: #15364b !important;
}

@media(max-width: 950px) {
  .ihb-v44-page.ihb-v44-hero {padding-block: 74px !important;}
  .ihb-v44-hero .ihb-v44-hero-img img {aspect-ratio: 16/10 !important;}
}
@media(max-width: 700px) {
  body.ihb-page:has(.ihb-v44-page) .ihb-v44-page > .sppb-row-container,
  body.ihb-page:has(.ihb-v44-page) .ihb-v44-page > .sppb-container-inner {
    width: calc(100% - 36px) !important;
  }
  .ihb-v44-pair > .sppb-row-container > .sppb-row,
  .ihb-v44-pair > .sppb-container-inner > .sppb-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
  }
  .ihb-v44-hero .ihb-v44-hero-img img {aspect-ratio: 4/3 !important;}
  .ihb-v44-pair .ihb-v44-step-image img {aspect-ratio: 4/3 !important;}
  .ihb-v44-pair .ihb-v44-step-content {padding: 23px 22px 27px !important;}
  .ihb-v44-pair .ihb-v44-step-text h3 {font-size: clamp(27px, 8vw, 35px) !important;}
  .ihb-v44-page.ihb-v44-gallery-heading {padding-bottom: 28px !important;}
}
@media(prefers-reduced-motion:reduce) {
  .ihb-v44-page .sppb-row-column,
  .ihb-v44-page .ihb-v44-jump nav a {transition: none !important;}
}
