/* Bounded addition for the October 2026 Doppelhaus reference. */
.reference-row-kfw40 { scroll-margin-top: 110px; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); }
.reference-gallery-kfw40 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-content: center; padding: clamp(24px,3vw,50px); background: #e8edf0; }
.reference-gallery-kfw40 figure { margin: 0; min-width: 0; background: #fff; border: 1px solid #d2dce3; }
.reference-gallery-kfw40 img { display: block; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
.reference-gallery-kfw40 figcaption { padding: 15px 16px; color: #24394b; font-size: 13px; line-height: 1.5; }
.reference-gallery-kfw40 figcaption strong { display: block; color: #07131f; font-size: 14px; }
.reference-row-kfw40 .reference-copy { min-width: 0; }
.reference-row-kfw40 .reference-copy h2 { font-size: clamp(35px,4.5vw,68px); }
.reference-row-kfw40 .approval-facts strong { font-size: clamp(20px,2.2vw,32px); }
.reference-row-kfw40 .service-link { display: inline-block; margin-top: 16px; }
.home-reference-card-kfw40 { grid-column: 1/-1; min-height: 550px; }
.home-reference-card-kfw40 > .kfw40-home-photos { position: absolute; z-index: 0; inset: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; }
.home-reference-card-kfw40 .kfw40-home-photos img { position: relative; inset: auto; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.home-reference-card-kfw40 .kfw40-home-photos img:first-child { object-position: center 52%; }
.home-reference-card-kfw40 > span { color: #79d5ee; }
.home-reference-card-kfw40::after { background: linear-gradient(0deg,rgba(4,12,20,.97) 0%,rgba(4,12,20,.72) 25%,rgba(4,12,20,.03) 70%,rgba(4,12,20,.3) 100%); }
@media(max-width:900px) {
  .reference-row-kfw40 { grid-template-columns: 1fr; }
  .reference-gallery-kfw40 { padding: 24px; }
}
@media(max-width:540px) {
  .reference-gallery-kfw40 { gap: 12px; padding: 20px; grid-template-columns: 1fr; }
  .reference-gallery-kfw40 img { max-height: 540px; aspect-ratio: auto; object-fit: contain; }
  .reference-gallery-kfw40 figcaption { padding: 12px 14px; }
  .home-reference-card-kfw40 { min-height: 420px; }
  .home-reference-card-kfw40 strong { font-size: 31px; }
  .home-reference-card-kfw40 > .kfw40-home-photos { gap: 2px; }
}
