/* Page-specific editorial sequence. Both flipbook components retain their existing rules. */
body.ri-owner-journey.kc-home.kc-refined #referenzobjekt .ew-reference-intro {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,480px);
  align-items:center;
  gap:clamp(32px,5vw,76px);
  margin-bottom:32px;
}
body.ri-owner-journey.kc-home.kc-refined #referenzobjekt .nh-case-heading {
  display:block;
  margin:0;
}
body.ri-owner-journey.kc-home.kc-refined #referenzobjekt .nh-case-heading h2 { margin:0 0 22px; }
body.ri-owner-journey.kc-home.kc-refined #referenzobjekt .nh-case-heading p { max-width:52ch; margin:0 0 12px; }
body.ri-owner-journey.kc-home.kc-refined #referenzobjekt .nh-case-heading p.ed-kicker {
  font-size:14px;
  letter-spacing:.09em;
  margin-bottom:16px;
}
body.ri-owner-journey.kc-home.kc-refined #referenzobjekt .nh-case-heading p:last-child { margin-bottom:0; }
body.ri-owner-journey.kc-home.kc-refined #referenzobjekt .nh-case-photo {
  display:block;
  width:100%;
  margin:0;
  position:relative;
  isolation:isolate;
  overflow:hidden;
}
body.ri-owner-journey.kc-home.kc-refined #referenzobjekt .nh-case-photo>img {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:3/2;
  object-fit:contain;
}
body.ri-owner-journey.kc-home.kc-refined #referenzobjekt .nh-case-photo figcaption {
  position:absolute;
  inset:auto 20px 16px;
  width:auto;
  margin:0;
  padding:0;
  border:0;
  z-index:1;
  color:#fff;
  font:400 16px/1.4 'Source Sans 3',sans-serif;
}
body.ri-owner-journey.kc-home.kc-refined #referenzobjekt .nh-case-photo figcaption span:first-child {
  margin:0 0 3px;
  color:#f0d594;
  font:600 16px/1.4 'Source Sans 3',sans-serif;
  letter-spacing:.055em;
  text-transform:uppercase;
}
body.ri-owner-journey.kc-home.kc-refined #referenzobjekt .nh-case-photo figcaption::before {
  content:"";
  position:absolute;
  inset:-38px -21px -17px;
  z-index:-1;
  pointer-events:none;
  background:linear-gradient(0deg,#031114e8,#031114b8 54%,#03111400);
  mask-image:none;
}
/* The credentials continue directly into the existing, dated proof band. */
body.ri-owner-journey.home-editorial.kc-home.kc-refined.ri-review-finish.ri-magazine-preview #qualitaetsnachweise {
  background:#f8f6f0;
  padding-block:28px 34px;
  border-top:1px solid #c8cdc4;
  border-bottom:2px solid #c9ac65;
}
/* Keep adjoining chapters close without shrinking their text or interactive content. */
body.ri-owner-journey.kc-home.kc-refined #regionaler-lageatlas { padding-bottom:32px; }
body.ri-owner-journey.home-editorial.kc-home.kc-refined.ri-review-finish.ri-magazine-preview #marktberichte { padding-top:40px; border-top:1px solid #c8cdc4; }
body.ri-owner-journey.kc-home.kc-refined #persoenlicher-ersttermin { padding-block:48px; }
@media(max-width:1100px) and (min-width:801px) {
  body.ri-owner-journey.kc-home.kc-refined #referenzobjekt .ew-reference-intro { grid-template-columns:minmax(0,1fr) minmax(0,40%); gap:32px; }
}
@media(max-width:800px) {
  body.ri-owner-journey.kc-home.kc-refined #referenzobjekt .ew-reference-intro { grid-template-columns:1fr; gap:24px; margin-bottom:28px; }
  body.ri-owner-journey.kc-home.kc-refined #referenzobjekt .nh-case-photo { width:min(100%,480px); justify-self:start; }
  body.ri-owner-journey.kc-home.kc-refined #referenzobjekt .nh-case-heading h2 { margin-bottom:18px; }
}
@media(max-width:540px) {
  body.ri-owner-journey.kc-home.kc-refined #referenzobjekt .nh-case-photo { width:min(100%,360px); }
  body.ri-owner-journey.kc-home.kc-refined #referenzobjekt .nh-case-photo figcaption { inset:auto 14px 12px; font-size:16px; }
  body.ri-owner-journey.kc-home.kc-refined #referenzobjekt .nh-case-photo figcaption::before { inset:-32px -15px -13px; }
  body.ri-owner-journey.kc-home.kc-refined #referenzobjekt .nh-case-heading p.ed-kicker { font-size:14px; letter-spacing:.055em; }
  body.ri-owner-journey.kc-home.kc-refined #persoenlicher-ersttermin { padding-block:32px; }
}
