/* EWG Bouw: punten kwaliteitscontrole 27-10-2026 (zie controle27.py). Desktop en mobiel. */

/* logo leesbaar bovenin de hero: donkerdere waas achter de kop (het logo zelf blijft het originele bestand) */
#dm #hcontainer{background-image:linear-gradient(to bottom,rgba(0,0,0,.78) 0%,rgba(0,0,0,.5) 55%,rgba(0,0,0,0) 100%)!important}
body[data-ewg-mob][data-ewg-hero] #hamburger-header-container{background-image:linear-gradient(to bottom,rgba(0,0,0,.72),rgba(0,0,0,.25) 70%,rgba(0,0,0,0))!important}

/* menuknop: geen blijvende focusrand na het laden, wel bij toetsenbordgebruik */
#dm .layout-drawer-hamburger:focus:not(:focus-visible),#dm .hamburger-on-header:focus:not(:focus-visible){outline:none!important;box-shadow:none!important}

/* herotekst: meteen zichtbaar (geen half afgeronde animatie), wit met schaduw, kop en tekst dicht bij elkaar */
#dm .ewg-hero-rij .slide-inner,#dm .ewg-hero-rij .slide-inner *{animation:none!important;opacity:1!important}
#dm .ewg-hero-rij h1,#dm .ewg-hero-rij h1 *,#dm .ewg-hero-rij .slide-text,#dm .ewg-hero-rij .slide-text *{color:#fff!important;text-shadow:0 2px 16px rgba(0,0,0,.6)}
#dm .ewg-hero-rij .slide-text{margin-top:12px!important;padding-top:0!important}
#dm .ewg-hero-rij .slide-text p.ewg-leeg,#dm .ewg-hero-rij .slide-text p:empty{display:none!important}
html body[data-ewg-mob] #dm #dm_content .ewg-hero-rij .slide-text,html body[data-ewg-mob] #dm #dm_content .ewg-hero-rij .slide-text p,html body[data-ewg-mob] #dm #dm_content .ewg-hero-rij .slide-text p *{text-align:center!important}

/* projectkaarten: titel en knop gecentreerd, ook op desktop */
#dm .photoGalleryThumbs .caption-container,#dm .photoGalleryThumbs .caption-inner,#dm .photoGalleryThumbs .caption-text,#dm .photoGalleryThumbs .caption-text *{text-align:center!important}
#dm .photoGalleryThumbs a.caption-button{float:none!important;margin-left:auto!important;margin-right:auto!important}

/* blauwe afsluiter 'Heeft u bouwplannen?': geen lege witregel tussen kop en tekst */
#dm :is([id="1673583756"],[id="1036698767"],[id="1676793939"],[id="1843816316"],[id="1092169834"]) p.ewg-leeg{display:none!important}

/* logo boven de donkere hero: lichte gloed langs de randen zodat het blauw (EWG, timmerwerken) loskomt van de foto.
   Het logobestand en de kleuren blijven ongewijzigd; alleen de ondergrond krijgt licht. */
#dm #hcontainer .imageWidget img,body[data-ewg-mob] #hamburger-header-container .imageWidget img{filter:drop-shadow(0 0 1px rgba(255,255,255,.95)) drop-shadow(0 0 3px rgba(255,255,255,.55)) drop-shadow(0 0 10px rgba(255,255,255,.25))}

/* ---------- ronde 2 (27-10-2026) ---------- */
/* menuknop: nooit een blijvende focusrand in de kop */
#dm .layout-drawer-hamburger,#dm .layout-drawer-hamburger:focus,#dm .hamburger-on-header:focus{outline:none!important;box-shadow:none!important}

/* vinkjesbalk direct onder de hero: altijd helemaal zichtbaar, ook op lage schermen */
#dm .ewg-checkbalk{position:relative!important;z-index:6!important;overflow:visible!important}
#dm .ewg-checkbalk span{min-height:48px;box-sizing:border-box;padding-top:13px!important;padding-bottom:13px!important}
@media (min-width:768px){
 html body.dmDesktopBody #dm #dm_content .ewg-hero-rij{padding-bottom:0!important}
 html body.dmDesktopBody #dm #dm_content .ewg-hero-rij .flexslider,html body.dmDesktopBody #dm #dm_content .ewg-hero-rij .slides,html body.dmDesktopBody #dm #dm_content .ewg-hero-rij .slides>li{height:max(520px,calc(100vh - 52px))!important;min-height:520px!important;max-height:none!important}
 #dm .ewg-oude-hero{min-height:calc(100vh - 52px)!important;max-height:calc(100vh - 52px)!important;box-sizing:border-box}
}
/* mobiel: compacte balk op één rij, de hero laat ruimte zodat de zwevende knoppen er niet overheen vallen */
@media (max-width:767px){
 html body[data-ewg-mob] #dm .ewg-checkbalk{flex-direction:row!important;padding:0!important;margin:0!important}
 html body[data-ewg-mob] #dm .ewg-checkbalk span{flex:1 1 0!important;flex-direction:column!important;gap:3px!important;margin:0 0 0 -1px!important;padding:9px 4px!important;min-height:0;font-size:12px!important;line-height:1.2!important;text-align:center!important}
 html body[data-ewg-mob][data-ewg-hero] #dm_content .ewg-hero-rij .dmImageSlider,html body[data-ewg-mob][data-ewg-hero] #dm_content .ewg-hero-rij .flexslider,html body[data-ewg-mob][data-ewg-hero] #dm_content .ewg-hero-rij .slides,html body[data-ewg-mob][data-ewg-hero] #dm_content .ewg-hero-rij .slides>li{min-height:calc(100svh - 140px)!important}
 html body[data-ewg-mob] #dm .ewg-oude-hero{min-height:calc(100svh - 140px)!important}
}

/* oude hero (Renovatie e.a.) op mobiel net als de rest: gecentreerd, zelfde maten en afstanden */
@media (max-width:767px){
 html body[data-ewg-mob] #dm .ewg-oude-hero .ewg-oh-binnen{text-align:center!important;margin:0 auto!important;padding:96px 26px 40px!important;max-width:none!important}
 html body[data-ewg-mob] #dm .ewg-oude-hero h1{font-size:26px!important;line-height:1.15!important;margin:0 0 12px!important;text-align:center!important}
 html body[data-ewg-mob] #dm .ewg-oude-hero p{font-size:15px!important;line-height:1.5!important;margin:0 auto 22px!important;max-width:330px;text-align:center!important}
 html body[data-ewg-mob] #dm .ewg-oude-hero .ewg-oh-knop{display:inline-block!important;margin:0 auto!important}
}

/* projectkaarten: een onvolle laatste rij vult de hele breedte, geen leeg vak */
#dm .photogallery-row:not(:has(~ .photogallery-row)){display:flex!important}
/* (ronde 4) de kaarten in de laatste rij houden de gewone breedte en staan samen gecentreerd */
#dm .photogallery-row:not(:has(~ .photogallery-row)){justify-content:center!important}

/* bij een sprong naar een anker valt de vaste kop niet over de kop van de sectie */
html{scroll-padding-top:90px}
/* lege opvulkolommen in de laatste galerijrij niet meetellen */
#dm .photogallery-column:not(:has(.photoGalleryThumbs)){display:none!important}
#dm .photoGalleryThumbs .caption-inner{align-items:center!important;justify-content:center!important;text-align:center!important}
#dm .photoGalleryThumbs .caption-text{width:100%!important;margin-left:auto!important;margin-right:auto!important}

/* ---------- ronde 3 (27-10-2026) ---------- */
/* vinkjesbalk mobiel: drie compacte regels, vinkje links naast de tekst, alles op één regel */
@media (max-width:767px){
 html body[data-ewg-mob] #dm .ewg-checkbalk{flex-direction:column!important;padding:4px 0!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
 html body[data-ewg-mob] #dm .ewg-checkbalk span{flex-direction:row!important;justify-content:center!important;gap:7px!important;margin:0!important;padding:6px 10px!important;border:0!important;font-size:13px!important;line-height:1.25!important;white-space:nowrap!important;flex:0 0 auto!important;height:auto!important;min-height:0!important}
 html body[data-ewg-mob][data-ewg-hero] #dm_content .ewg-hero-rij .dmImageSlider,html body[data-ewg-mob][data-ewg-hero] #dm_content .ewg-hero-rij .flexslider,html body[data-ewg-mob][data-ewg-hero] #dm_content .ewg-hero-rij .slides,html body[data-ewg-mob][data-ewg-hero] #dm_content .ewg-hero-rij .slides>li{min-height:calc(100svh - 170px)!important}
 html body[data-ewg-mob] #dm .ewg-oude-hero{min-height:calc(100svh - 170px)!important}
}

/* carouselpijlen (fotoslider): ronde knoppen binnen de foto, in de huisstijl */
#dm .d-ext-mediaSlider-slidesContainer button:has([class*="icon-double-angle"]){width:44px!important;height:44px!important;border-radius:50%!important;background:rgba(255,255,255,.92)!important;box-shadow:0 6px 16px -6px rgba(0,0,0,.45)!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;top:50%!important;transform:translateY(-50%)!important;bottom:auto!important;z-index:3!important}
#dm .d-ext-mediaSlider-slidesContainer button:has(.icon-double-angle-left){left:12px!important;right:auto!important}
#dm .d-ext-mediaSlider-slidesContainer button:has(.icon-double-angle-right){right:12px!important;left:auto!important}
#dm .d-ext-mediaSlider-slidesContainer button [class*="icon-double-angle"]{color:rgb(35,76,151)!important;font-size:20px!important;line-height:1!important;width:auto!important;height:auto!important;position:static!important}
#dm .d-ext-mediaSlider-slidesContainer button:has([class*="icon-double-angle"])>*{position:static!important;width:auto!important;height:auto!important;left:auto!important;top:auto!important}

/* ---------- ronde 4 (27-10-2026) ---------- */
/* oude hero's (Renovatie, verbouwing-aannemer-gelderland e.a.): donkerder waas en subtekst even groot als op de andere hero's */
#dm .ewg-oude-hero:not(.ewg-oude-hero--effen)::before{background:linear-gradient(90deg,rgba(0,0,0,.66),rgba(0,0,0,.5))!important}
#dm .ewg-oude-hero h1,#dm .ewg-oude-hero p{text-shadow:0 2px 14px rgba(0,0,0,.65),0 1px 3px rgba(0,0,0,.6)!important}
@media (min-width:768px){html body.dmDesktopBody #dm .ewg-oude-hero p{font-size:19px!important;line-height:1.55!important}}
/* nieuwe hero's: iets donkerder waas zodat ook een lichte foto de tekst niet wegdrukt */
#dm .ewg-hero-rij .color-overlay{background-color:rgba(0,0,0,.56)!important}

/* homepage 'Wat wij doen': titel, tekst en link onder elke kaart altijd zichtbaar (geen witte strook tot de animatie
   start) en minder lucht onder de stippen */
#dm .d-ext-mediaSlider-slide__contentContainer{animation:none!important;opacity:1!important;visibility:visible!important;transform:none!important}
#dm .dmRespRow.u_1377708253{padding-bottom:28px!important}

/* projectkaarten op mobiel: de knop 'Bekijk ...' staat in elke kaart op dezelfde hoogte (titel altijd twee regels ruimte) */
@media (max-width:767px){
 html body[data-ewg-mob] #dm .photoGalleryThumbs .caption-text{min-height:2.7em!important;display:flex!important;align-items:center!important;justify-content:center!important}
 html body[data-ewg-mob] #dm .photoGalleryThumbs .caption-text p{margin:0!important}
}
@media (max-width:767px){html body[data-ewg-mob] #dm .ewg-oude-hero:not(.ewg-oude-hero--effen)::before{background:linear-gradient(180deg,rgba(0,0,0,.6),rgba(0,0,0,.66))!important}}

/* ---------- ronde 5 (27-10-2026) ---------- */
/* kop na het scrollen helemaal dekkend: niets van de pagina schemert erdoorheen */
html body.dmDesktopBody.ewg-gescrold #dm .dmInner div#hcontainer.dmHeader.p_hfcontainer.u_hcontainer.scroll-responder_set,html body.dmDesktopBody.ewg-gescrold #dm .dmInner div#hcontainer.dmHeader.p_hfcontainer.u_hcontainer,html body.dmDesktopBody.ewg-gescrold #dm div#hcontainer.dmHeader{background-color:rgb(16,34,72)!important}
:root{--ewg-donker:rgb(16,34,72)!important}

/* Google-reviewkaart op mobiel: lange tekst netjes afgekort met ... (zoals op desktop) */
@media (max-width:767px){
 html body #dm .ti-widget .ti-review-item .ti-review-content{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:4!important;line-clamp:4;overflow:hidden!important;height:auto!important;max-height:none!important}
 html body #dm .ti-widget .ti-review-item .ti-review-content *{display:inline!important}
}

/* homepage 'Wat wij doen': tekst onder de kaarten in dezelfde donkere tekstkleur als de rest */
#dm [id="1327848198"] .d-ext-mediaSlider-slide__contentContainer p,#dm [id="1327848198"] .d-ext-mediaSlider-slide__contentContainer p *{color:rgb(17,17,17)!important}

/* Projecten: 27 kaarten (volle rijen), de rest achter de knop 'Bekijk meer projecten' */
#dm .photogallery-row.ewg-extra,#dm .photogallery-row:has(.photoGalleryThumbs):not(:has(.photoGalleryThumbs:not([data-ewg-extra]))){display:none!important}
#dm .photogallery-column:has(>.photoGalleryThumbs[data-ewg-extra]){display:none!important}
#dm .dmPhotoGallery:has(.ewg-meer-vink:checked) .layout-container .photogallery-row:has(.photoGalleryThumbs){display:flex!important}
#dm .dmPhotoGallery:has(.ewg-meer-vink:checked) .layout-container .photogallery-column:has(>.photoGalleryThumbs){display:block!important}
#dm .dmPhotoGallery:has(.ewg-meer-vink:checked) .ewg-meer-wrap{display:none!important}
#dm .ewg-meer-wrap{text-align:center;padding:28px 0 8px}
#dm .ewg-meer-knop{display:inline-block;cursor:pointer;background:rgb(35,76,151);color:#fff;font-weight:700;font-size:16px;line-height:1.2;padding:14px 28px;border-radius:4px;transition:background-color .4s ease}
#dm .ewg-meer-knop:hover,#dm .ewg-meer-knop:focus-visible{background:rgb(16,34,72)}

/* schuur Doorn: bovenkant van de foto (mansardedak) in beeld */
#dm img.ewg-hero-boven{object-position:50% 12%!important}

/* ---------- ronde 6 (27-10-2026) ---------- */
/* WhatsApp-knop op desktop: bovenaan de pagina boven de vinkjesbalk, na het scrollen weer in de hoek */
body.dmDesktopBody .ewg-wa{transition:transform .3s ease,bottom .4s ease}
body.dmDesktopBody:not(.ewg-gescrold) .ewg-wa{bottom:78px!important}

/* oude hero's (Renovatie, verbouwing-aannemer-gelderland, vacatures, privacy): exact dezelfde maten als de andere hero's
   (gemeten op /dakopbouw: kop 55px, tekst 19px, zelfde afstanden, balk direct onder het scherm) */
@media (min-width:768px){
 html body.dmDesktopBody #dm #dm_content .ewg-oude-hero{height:max(520px,calc(100vh - 52px))!important;min-height:520px!important;max-height:none!important;padding:180px 0 40px!important;align-items:center!important}
 html body.dmDesktopBody #dm #dm_content .ewg-oude-hero .ewg-oh-binnen{max-width:none!important;padding:0 144px!important}
 html body.dmDesktopBody #dm #dm_content .ewg-oude-hero h1{font-size:55px!important;line-height:62px!important;margin:0 0 53px!important;max-width:880px}
 html body.dmDesktopBody #dm #dm_content .ewg-oude-hero p{font-size:19px!important;line-height:29px!important;max-width:640px!important;margin:0 0 110px!important}
 html body.dmDesktopBody #dm #dm_content .ewg-oude-hero .ewg-oh-knop{font-size:18px!important;padding:17px 22px!important;line-height:18px!important}
}
@media (max-width:767px){
 html body[data-ewg-mob] #dm #dm_content .ewg-oude-hero{align-items:flex-start!important;padding:186px 0 0!important}
 html body[data-ewg-mob] #dm #dm_content .ewg-oude-hero .ewg-oh-binnen{padding:0 28px!important}
 html body[data-ewg-mob] #dm #dm_content .ewg-oude-hero h1{font-size:26px!important;line-height:1.12!important;margin:0 0 47px!important}
 html body[data-ewg-mob] #dm #dm_content .ewg-oude-hero p{font-size:15px!important;line-height:23px!important;margin:0 auto 110px!important;max-width:330px!important}
 html body[data-ewg-mob] #dm #dm_content .ewg-oude-hero .ewg-oh-knop{font-size:16px!important;min-height:62px!important;padding:12px 30px!important;display:inline-flex!important;align-items:center!important}
}
