/* CMS v1.8 – Projektgalerien, Vorher-Nachher und verwandte Leistungen */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.project-gallery,.project-compare-section,.project-related{padding-block:clamp(2rem,5vw,4rem)}
.project-gallery h2,.project-compare-section h2,.project-related h2{font-size:clamp(1.75rem,3vw,2.8rem);margin:.25rem 0 1rem}
.project-section-head{display:flex;justify-content:space-between;align-items:end;gap:1rem;margin-bottom:1.3rem}
.project-section-head>span{font-size:.9rem;opacity:.7}
.project-photo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:1rem}
.project-photo{display:block;appearance:none;background:#f4f1ea;border:0;padding:0;border-radius:.6rem;position:relative;overflow:hidden;cursor:zoom-in;aspect-ratio:4/3;text-align:left}
.project-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s ease}
.project-photo:hover img{transform:scale(1.035)}
.project-photo span{position:absolute;right:.75rem;bottom:.75rem;background:#fff;border-radius:.25rem;padding:.2rem .55rem;font-size:1.4rem;color:#4b1c24}
.project-photo:focus-visible,.project-lightbox button:focus-visible,.project-compare input:focus-visible,.project-related-card:focus-visible{outline:3px solid #a12e39;outline-offset:3px}
.project-lightbox{position:fixed;inset:0;margin:auto;padding:1rem;border:0;border-radius:0;max-width:100vw;max-height:100vh;width:100vw;height:100vh;background:#101112;color:#fff;overscroll-behavior:contain}
.project-lightbox::backdrop{background:rgba(0,0,0,.9)}
.project-lightbox-toolbar{display:flex;align-items:center;justify-content:space-between;max-width:1400px;margin:0 auto;gap:1rem}
.project-lightbox button{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.3);border-radius:.45rem;min-width:2.75rem;min-height:2.75rem;cursor:pointer;font-size:1.5rem}
.project-lightbox-view{max-width:1400px;margin:.75rem auto;display:grid;grid-template-columns:3rem minmax(0,1fr) 3rem;gap:.5rem;align-items:center;height:calc(100% - 7rem)}
.project-lightbox-view img{max-width:100%;max-height:100%;height:100%;width:100%;object-fit:contain}
.project-lightbox-help{text-align:center;font-size:.85rem;color:#d5d5d5}
.project-compare{--split:50%;width:100%;max-width:1100px;margin:1.5rem auto 0;position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:.6rem;background:#21191a;isolation:isolate}
.project-compare img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.project-compare-before{position:absolute;inset:0;clip-path:inset(0 calc(100% - var(--split)) 0 0);z-index:1}
.project-compare-before img{width:100%;height:100%}
.project-compare-line{position:absolute;top:0;bottom:0;left:var(--split);width:3px;transform:translateX(-50%);background:#fff;z-index:2;pointer-events:none;filter:drop-shadow(0 1px 5px #111)}
.project-compare-line::after{content:'↔';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:white;color:#6b1c2c;border-radius:50%;width:3rem;height:3rem;display:grid;place-items:center;font-size:1.5rem}
.project-compare-label{position:absolute;top:1rem;z-index:2;background:rgba(15,15,15,.8);padding:.4rem .75rem;border-radius:.25rem;color:#fff;font-weight:700;font-size:.9rem;pointer-events:none}
.project-compare-label.is-before{left:1rem}.project-compare-label.is-after{right:1rem}
.project-compare input[type=range]{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:.015;cursor:ew-resize;z-index:3}
.project-related-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:1rem}
.project-related-card{display:flex;flex-direction:column;gap:.75rem;text-decoration:none;color:inherit;background:#f6f3ed;padding:1.4rem;border-radius:.5rem;min-height:11rem}
.project-related-card h3{margin:0}.project-related-card p{margin:0;opacity:.8}.project-related-card span{margin-top:auto;color:#7c2433;font-weight:700}
@media(max-width:650px){.project-lightbox{padding:.5rem}.project-lightbox-view{grid-template-columns:2.3rem minmax(0,1fr) 2.3rem}.project-lightbox button{min-width:2.2rem}.project-compare{aspect-ratio:4/3}}
@media(prefers-reduced-motion:reduce){.project-photo img{transition:none}}
.contact-project-reference{padding:.8rem 1rem;border-left:3px solid #982e39;background:#f6f3ed;margin:1rem 0}
.project-compare:focus-within{outline:3px solid #982e39;outline-offset:4px}
