/* HAACK: photographs without source bars; embedded logos stay fully visible. */
.bildrahmen{position:relative;min-width:0;border:0;border-radius:10px;background:transparent;box-shadow:none}
.bildrahmen>img{display:block;max-width:100%;width:100%;border-radius:10px}
.bildrahmen.haack-photo{display:block!important;overflow:visible!important;background:transparent!important}
.bildrahmen.haack-photo::after{display:none!important}
.area-card{border-radius:0!important;background:transparent!important;overflow:visible}
.area-card>.bildrahmen{height:260px}
.service-card>.bildrahmen{height:280px;padding:0!important}
.area-grid .area-card>.bildrahmen{height:210px}
.compact-service .service-gallery>.bildrahmen{height:260px}
html body main .area-card>.bildrahmen>img,
html body main .service-card>.bildrahmen>img,
html body main .service-gallery>.bildrahmen>img{width:100%;height:100%!important;display:block;padding:0!important;object-fit:cover;border-radius:10px}
.haack-photo-image{box-sizing:border-box!important;padding:0!important;transform:none!important;clip-path:none!important}
/* No cropping or rounded-corner mask for an original manufacturer's logo. */
html body main img.haack-embedded-logo{object-fit:contain!important;object-position:center!important;border-radius:0!important;background:transparent!important}
.bildrahmen[data-embedded="true"]{overflow:visible!important;background:transparent!important}
/* Small marks on the photograph, without a white stripe or badge. */
.bildquelle.haack-credit-overlay{position:absolute;right:10px;bottom:10px;z-index:2;display:block;width:auto;height:auto;margin:0;padding:0;background:transparent;border:0;pointer-events:none;opacity:.72;filter:drop-shadow(0 1px 2px rgba(0,0,0,.5))}
.bildquelle-logo{display:block;width:54px;height:23px;background:center/contain no-repeat}
.bildrahmen[data-brand="KADECO"]>.haack-credit-overlay{opacity:1;filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 1px #fff)}
.bildrahmen[data-brand="KADECO"]>.haack-credit-overlay .bildquelle-logo{width:82px;height:24px}
.bildrahmen[data-brand="JAB ANSTOETZ"]>.haack-credit-overlay{opacity:.9;filter:drop-shadow(0 0 2px #fff)}
.bildquelle-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
/* Brillux originals remain unmarked: a small text credit, without a bar. */
.bildquelle.haack-credit-text{display:block;margin:0;padding:4px 0 0;text-align:right;background:transparent;color:#52605a;font:11px/1.4 Arial,sans-serif}
.bildrahmen:has(>.haack-credit-text){margin-bottom:22px}
.hero-credit{position:absolute;right:16px;bottom:16px;z-index:2;display:block;margin:0;padding:3px 5px;border-radius:3px;background:rgba(255,255,255,.72);color:#26332d;font:400 10px/1.4 Arial,Helvetica,sans-serif;pointer-events:none}
.compact-service .service-gallery[hidden],.service-gallery [hidden],.handwerk-lightbox [hidden],.bildrahmen[hidden]{display:none!important}
.compact-service .service-gallery[data-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.compact-service .service-gallery[data-count="1"]{grid-template-columns:minmax(0,1fr)}
.service-gallery .bildrahmen>img[role="button"]{cursor:zoom-in}
.service-gallery .bildrahmen:focus-within{outline:3px solid #0676b1;outline-offset:3px}
.handwerk-lightbox .lightbox-watermark{display:none!important}
.handwerk-lightbox figure{position:relative}
.handwerk-lightbox figure>img{object-fit:contain!important;border-radius:0!important}
.handwerk-lightbox button svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
#preview>.bildrahmen img{height:210px}#preview.mobile>.bildrahmen img{height:200px}
#catalog button[hidden]{display:none}#catalog .bildrahmen{border-radius:0}.catalog-filters{display:flex;gap:12px;align-items:end}.catalog-filters label{flex:1;margin:12px 0 0}.catalog-filters input,.catalog-filters select{margin-top:6px}#catalog-count{font-size:13px}
@media(max-width:760px){#preview:not(.mobile)>.bildrahmen img{height:130px}.catalog-filters{display:block}}
@media(max-width:700px){.compact-service .service-gallery[data-count]{grid-template-columns:1fr}.compact-service .service-gallery>.bildrahmen{height:240px}.hero-credit{right:14px;bottom:51px}}

/* Full 3:2 preview: the relocated logo always stays inside the image. */
main .bildrahmen.haack-ifasol-preview-frame {
 aspect-ratio:3 / 2!important;height:auto!important;padding:0!important;
 overflow:hidden;border-radius:10px!important;align-self:start;
}
main .bildrahmen > img.haack-ifasol-preview {
 display:block;width:100%!important;height:100%!important;aspect-ratio:3 / 2;
 object-fit:contain!important;object-position:center!important;
 border-radius:10px!important;padding:0!important;
}

/* All public preview frames use the same 3:2 format, regardless of brand. */
html body main :is(.area-card,.service-card,.service-gallery,.gallery-thumb) > :is(.bildrahmen,img) {
 width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
 aspect-ratio:3 / 2!important;box-sizing:border-box!important;padding:0!important;
 display:block;border-radius:10px!important;align-self:start;flex:none!important;
}
html body main :is(.area-card,.service-card,.service-gallery,.gallery-thumb) > .bildrahmen > img {
 width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;
 aspect-ratio:3 / 2!important;display:block;box-sizing:border-box!important;
 padding:0!important;border-radius:10px;
}
/* Keep the external Brillux credit without shifting that card's heading. */
html body main :is(.area-grid,.service-grid):has(.haack-credit-text) :is(.area-card,.service-card) > :is(.bildrahmen,img) {margin-bottom:22px!important}
html body main :is(.area-card,.service-card,.service-gallery,.gallery-thumb) > .bildrahmen > .haack-credit-text {
 position:absolute;top:100%;right:0;left:0;height:22px;box-sizing:border-box;
}
