/* H&C Dachreinigung Kosten / v12: wider footer, linked Richter brand, bottom-boundary price folding */

/* Footer's CONTENT, not only its full-bleed background, spans the available width. */
@media(min-width:851px){
 html body footer#footer.dbr-premium-footer-root .dbr-ft-wrap{
  width:min(1360px,calc(100% - 84px))!important;
  max-width:1360px!important;
  padding:47px 0 28px!important;
 }
 html body footer#footer.dbr-premium-footer-root .dbr-ft-grid{
  display:grid!important;
  grid-template-columns:minmax(220px,1.4fr) minmax(130px,.84fr) minmax(148px,1fr) minmax(200px,1.1fr)!important;
  column-gap:clamp(26px,3.4vw,66px)!important;
  row-gap:22px!important;
  width:100%!important;
  min-height:0!important;
 }
 html body footer#footer.dbr-premium-footer-root .dbr-ft-brand img{
  width:194px!important;
  max-width:100%!important;
 }
 html body footer#footer.dbr-premium-footer-root .dbr-ft-col a{
  font-size:12px!important;line-height:20px!important;
 }
}

/* Clearly linked second brand, not an unlabelled logo on the roof. */
html body .dbrh-hero .hc-richter-hero-link {
 position:absolute!important;
 z-index:7!important;
 top:235px!important;
 right:10px!important;
 display:flex!important;
 align-items:center!important;
 justify-content:center!important;
 flex-direction:column!important;
 gap:2px!important;
 width:166px!important;
 min-height:82px!important;
 padding:10px 12px!important;
 margin:0!important;
 color:#fff!important;
 background:rgba(7,54,82,.90)!important;
 border:1px solid rgba(213,232,243,.48)!important;
 border-radius:9px!important;
 box-shadow:0 7px 20px rgba(5,39,60,.13)!important;
 text-decoration:none!important;
 transform:none!important;
 opacity:1!important;
 transition:none!important;
}
html body .dbrh-hero .hc-richter-hero-link img {
 display:block!important;
 width:120px!important;
 max-height:44px!important;
 height:auto!important;
 object-fit:contain!important;
 filter:none!important;
 opacity:1!important;
}
html body .dbrh-hero .hc-richter-hero-link span {
 display:block!important;
 color:#e2f3ff!important;
 font:700 10px/1.2 Inter,Arial,sans-serif!important;
 letter-spacing:.01em!important;
 text-align:center!important;
}
html body .dbrh-hero .hc-richter-hero-link:hover {
 box-shadow:0 7px 20px rgba(5,39,60,.13)!important;
 transform:none!important;
 filter:none!important;
}
html body .dbrh-hero .hc-richter-hero-link:focus-visible {
 outline:3px solid #ffcb72!important;
 outline-offset:3px!important;
}
@media(min-width:721px) and (max-width:1100px) {
 html body .dbrh-hero .hc-richter-hero-link{
  right:7px!important;top:252px!important;width:124px!important;min-height:69px!important;padding:9px!important;
 }
 html body .dbrh-hero .hc-richter-hero-link img {width:91px!important;max-height:39px!important;}
}
@media(max-width:720px){
 html body .dbrh-hero .hc-richter-hero-link {
  position:relative!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
  width:138px!important;min-height:59px!important;
  margin:12px 0 0 auto!important;
  padding:6px 10px!important;gap:0!important;
 }
 html body .dbrh-hero .hc-richter-hero-link img {width:99px!important;max-height:36px!important;}
 html body .dbrh-hero .hc-richter-hero-link span {font-size:9px!important;}
}

/* The roof photo is removed from the rendered calculator for all viewport widths. */
html body .dbrpf.hc-ref-calculator .hc-ref-price-photo {display:none!important;}

/* No arbitrary animation: only the benefit list folds at the bottom boundary of the form.
   The entire original price breakdown, 2x2 details and amount stay visible. */
@media(min-width:751px) {
 html body .dbrpf.hc-ref-calculator .dbrpf__price-card > .hc-ref-price-footer {
  display:block!important;
  max-height:200px!important;
  overflow:hidden!important;
  opacity:1!important;
  transition:max-height .24s cubic-bezier(.2,.8,.2,1), opacity .18s ease,margin .24s ease,padding .24s ease!important;
 }
 html body .dbrpf.hc-ref-calculator .dbrpf__price-column.hc-price-condensed .dbrpf__price-card > .hc-ref-price-footer{
  display:block!important;
  max-height:0!important;
  height:auto!important;
  opacity:0!important;
  overflow:hidden!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  pointer-events:none!important;
 }
 html body .dbrpf.hc-ref-calculator .dbrpf__price-column.hc-price-condensed .dbrpf__price-card {
  transition:box-shadow .2s ease,border-color .2s ease!important;
 }
}
@media(prefers-reduced-motion:reduce){
 html body .dbrpf.hc-ref-calculator .dbrpf__price-card > .hc-ref-price-footer {
  transition:none!important;
 }
}

/* Final adjustments: alignment with the 1188px calculator and a delicate white partner-style rule. */
@media(min-width:851px){
 html body footer#footer.dbr-premium-footer-root .dbr-ft-wrap {
  width:min(1188px,calc(100% - 36px))!important;
  max-width:1188px!important;
 }
 html body footer#footer.dbr-premium-footer-root .dbr-ft-grid {
  grid-template-columns:minmax(205px,1.42fr) minmax(136px,.9fr) minmax(152px,1fr) minmax(195px,1.13fr)!important;
  column-gap:clamp(22px,3.2vw,53px)!important;
 }
}
html body footer#footer.dbr-premium-footer-root{
 position:relative!important;
 isolation:isolate!important;
}
html body footer#footer.dbr-premium-footer-root::before {
 content:""!important;
 display:block!important;
 position:absolute!important;
 top:0!important;
 left:50%!important;
 transform:translateX(-50%)!important;
 width:min(1188px,calc(100% - 36px))!important;
 height:2px!important;
 background:linear-gradient(90deg,
   rgba(255,255,255,0) 0%,
   rgba(255,255,255,.40) 11%,
   rgba(255,255,255,.79) 50%,
   rgba(255,255,255,.40) 89%,
   rgba(255,255,255,0) 100%)!important;
 box-shadow:0 1px 3px rgba(255,255,255,.09)!important;
 z-index:2!important;
 pointer-events:none!important;
}
html body .dbrh-hero .hc-richter-hero-link {
 background:rgba(247,251,253,.94)!important;
 border:1px solid rgba(64,119,148,.26)!important;
 box-shadow:0 4px 14px rgba(9,52,80,.11)!important;
 color:#102d3a!important;
}
html body .dbrh-hero .hc-richter-hero-link img {
 filter:brightness(0)!important;
 opacity:.96!important;
}
html body .dbrh-hero .hc-richter-hero-link span {
 color:#152e39!important;
}
html body .dbrh-hero .hc-richter-hero-link:hover {
 background:rgba(247,251,253,.94)!important;
 border:1px solid rgba(64,119,148,.26)!important;
 box-shadow:0 4px 14px rgba(9,52,80,.11)!important;
}
/* Four promise bullets and the photo are retired for this reference price card. */
html body .dbrpf.hc-ref-calculator .hc-ref-price-footer,
html body .dbrpf.hc-ref-calculator .hc-ref-checks,
html body .dbrpf.hc-ref-calculator .hc-ref-price-photo {display:none!important;}


/* Final pixel alignment: the parent preview applies 0.9 global scaling. */
@media(min-width:851px) {
 html body footer#footer.dbr-premium-footer-root .dbr-ft-wrap{
   width:min(1320px,calc(100% - 40px))!important;
   max-width:1320px!important;
 }
 html body footer#footer.dbr-premium-footer-root::before{
   width:min(1320px,calc(100% - 40px))!important;
 }
}
@media(min-width:1121px){
 html body .dbrh-hero .hc-richter-hero-link{
   left:1103px!important;
   right:auto!important;
 }
}
@media(min-width:721px) and (max-width:1120px){
 html body .dbrh-hero .hc-richter-hero-link{
   left:auto!important;
   right:-225px!important;
 }
}
