/* ================================================================================ 
                                  GENERAL SETTINGS
   ================================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&display=swap');
@font-face {
  font-family: "Arialrounded";
  src:
    local("Arial Rounded MT Bold"),
    url("../fonts/arialroundedmtbold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root{
	--wit:#fff;
	--zwart:#000;
	--donkergrijs:#aaa;
	--grijs:#ccc;
	--geel:#FFDD00;
	--lichtblauw:#A1DAF7;
	--blauw:#00AEE6;
	--textblauw:#5BC5F2;
	--donkerblauw:#1F3C95;
	--paars:#BCA3CE;
	--donkerroze:#EB2C8E;
	--roze:#F29DB7;
	--lichtroze:#FCE5F2;
	--lichtblauwvlak:#E5F7FC;

	--primair:#00AEE6;          /* footer en accentvlakken */
	--headerachtergrond:#EB2C8E; /* gekleurde banner */
	--headertekst:#ffffff;

	--bloklinks:#EB2C8E;
	--blokmidden:#1F3C95;
	--blokrechts:#00AEE6;
	--buttonachtergrond:#5BC5F2;
	--buttontekst:#1F3C95;
	--headerkleur:#EB2C8E;

	/* namen uit het Dok-sjabloon, gekoppeld aan Lusthof-kleuren */
	--donkergroen:var(--donkerblauw);
	--groen:var(--blauw);
	--lichtgroen:var(--lichtblauwvlak);

	--font: "Inter", sans-serif;
	--headerfont: "Arialrounded", "Arial Rounded MT Bold", sans-serif;
}   

.headerblock--green {
    background-color: var(--headerachtergrond);
    color: var(--headertekst);

    h1{
        font-weight:700;
        color:#fff;
    }
}

.headerblock--green .headerblock__wave{
    background-image:url(../images/lusthof/header-groen.svg)
}

.background-holder{
    background-image: url(../images/lusthof/homebg.svg);
    background-position: calc(50% - 92px) 60px !important;
    background-repeat: no-repeat;
    padding-top:60px;
}

#mobile-header{
    padding-left:25px;
    padding-right:25px;
}

body.page p,
body.page span,
body.page div,
body.page a,
body.page{
    font-family: var(--font) !important;
}
h1,h2,h3,h4,h5{
    font-family: var(--headerfont) !important;
}


.nieuwsblok article > div{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

@media(max-width:1500px){
    .home #primary:after{
        display:none
    }
}



.nieuwsblok article,
.archive-container article,
#archive-container li article{
    background-color: var(--bloklinks) !important;
    color: #fff;
    border: 1px solid var(--bloklinks);
    transition: 0.2s;
    padding:20px;
    border-radius:20px;

    .entry-header{
        display: flex;
        flex-direction: column;
        margin-bottom:0;

        h2{
            margin-bottom:10px;
        }

        h2, h2 a{
            color: #fff;;
            order:2;
            font-size: 32px;
            min-height:64px;
            line-height: 1;
            font-family: var(--headerfont) !important;
            font-weight:400;
            text-transform: uppercase;
        }

        .entry-meta{
            order:1;
        }
    }
    .entry-summary{
        margin-bottom:10px;
    }
    
    .entry-footer a{
        display: inline-block;
        line-height: 44px;
        font-size: 16px;
        padding: 0 20px;
        border-radius: 5px;
        font-weight: 600;
        transition: all 0.3s ease;
        margin: 0 16px 0px 0;
        background-color:#fff;
        color:var(--bloklinks);
    }
    p{
        margin-top:0;
    }
    .entry-summary{
        margin-top:0;
    }
}


.nieuwsblok li:nth-of-type(2) article,
.block-editor-iframe__body .nieuwsblok article:nth-of-type(2),
#archive-container li:nth-of-type(5n+2) article{
    background-color: #1F3C95 !important;
    color: #fff;
    border: 1px solid #1F3C95;
    transition: 0.2s;
    padding:20px;

    h2, h2 a{
        color:#fff;

    }

    .entry-footer a{
       color:#1F3C95;
    }
}

.nieuwsblok li:nth-of-type(3) article,
.block-editor-iframe__body .nieuwsblok article:nth-of-type(3),
#archive-container li:nth-of-type(5n+3) article{
    background-color: #00AEE6 !important;
    color: #fff;
    border: 1px solid #00AEE6;
    transition: 0.2s;
    padding:20px;

    h2{
        color:#fff;
    }

    .entry-footer a{
       color:#00AEE6;
    }



}

.nieuwsblok.groot article,
#archive-container li:nth-of-type(5n+4) article {
    background-color:#00AEE6 !important;
    color: #fff;
    border: 1px solid #00AEE6 ;

    .entry-footer a{
        color:#00AEE6 ;
    }



}

.nieuwsblok.groot li:nth-of-type(2)  article,
.block-editor-iframe__body .nieuwsblok.groot article:nth-of-type(2),
#archive-container li:nth-of-type(5n+5) article {
    background-color: #1F3C95 !important;
    border: 1px solid #1F3C95;

    .entry-footer a{
        color:#1F3C95;
    }
}


.nieuwsblok.groot li:nth-of-type(2)  article:after {
    content: '';
    background-image: url(../images/essesteijn/vliegtuigje.svg);
    position: absolute;
    bottom: -70px;
    right: 0;
    background-repeat: no-repeat;
    background-size: contain;
    width: 494px;
    height: 158px;
}

/* Agenda */
.agenda-wrapper.grid{
    .agenda-item{
        background-color:var(--lichtgroen);
    }
}

/* Footer */
.site-middle-footer-wrap{
    position: relative;
}
.site-middle-footer-wrap:after{
    content:'';
    position: absolute;
    top:0;
    left:0;
    height:50%;
    width:100%;
    background-color:var(--primair);
}

footer.site-footer{
    position: relative;
    
    margin-top:60px;
    .site-top-footer-inner-wrap{
        padding-top:230px;
    }

    h3{
        color:#fff !important;
        font-weight:700;
    }
    p, a{
        color:#fff;
    }
    .site-footer-middle-section-1{
        p, a{
            color:#000
        }
    }

}

footer.site-footer:after{
    content: '';
    background-image: url('../images/lusthof/footer-wave.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top;
    position: absolute;
    top: -2px;
    right: 0;
    height: 150px;
    width: 100%;
    transform:rotate(180deg)
}


/* zijmenu */
.wp-block-lazyblock-zijmenu{

    h3{
        color:var(--donkergroen);
        font-weight: 700;
        text-transform: uppercase;
    }

  ul{
    list-style-type:none;
    margin-left:0;
    padding-left:0;

    li a{
      font-size: 18px;
      color:var(--donkergroen);

      &.current{
        color:var(--paars);
      }

      &:hover{
        color:var(--paars);
      }
    }
  }
}

/* quicklinks */

.quicklinksrow .kt-row-column-wrap .wp-block-kadence-column .wp-block-heading,
.quicklinksrow .kt-row-column-wrap .wp-block-kadence-column p{
    transition:0.3s;
}

.quicklinksrow .quicklink_item svg{
    transition:0.3s;
}

.quicklinksrow .quicklink_item:hover svg{
    transform:scale(1.1)
}

.quicklink-text{
    font-weight:400;
}

.quicklink_item > div{
    min-height:320px;
    display: flex;
    gap:40px;
    flex-direction: column;

    > div:first-child{
        height:105px;
    }
}

.lamp img{
    position: absolute;
        bottom: 80px;
    right: 135px;
}

.line-image{
    position: absolute;
    top: 403px;
    right: 106px;
}

/* Agenda */
.wp-block-lazyblock-agenda-lijst .agenda-date-box{
    background-color: var(--groen);
    color:#fff;
}

.wp-block-lazyblock-agenda-lijst .agenda-content h3{
    color:var(--donkergroen)
}

.wp-block-lazyblock-agenda-lijst .agenda-list-item{border-color: var(--paars);}
.wp-block-lazyblock-agenda-lijst .agenda-list-item:last-child{border:none}


.polaroid{
	background-color: #EDEDED;
	height:200px !important;
	width:170px !important;
	-webkit-box-shadow: -6px 2px 11px 1px #8C8C8C; 
	box-shadow: -6px 2px 11px 1px #8C8C8C;
	padding:10px;
}
.polaroid img{
	height:170px !important;
    width:150px !important;
	object-fit: cover;
}


.afbeelding1.polaroid{
	transform: rotate(-10deg);
    position: absolute;
    right: 15%;
    top: 32%;
    z-index: 2;
}
.afbeelding2.polaroid{
	transform: rotate(12deg);
        position: absolute;
    right: 25%;
    top: 61%;
    z-index: 1;
}

.quicklink-content h2{
    font-size:30px;
    line-height:36px
}

div.quote{
    padding: 90px 0 60px 0;
}

div.quote p{
    font-family:var(--headerfont) !important;
    font-size:38px;
    text-align: center;
    max-width:900px;
    margin:0 auto;
}

/* ================================================================
                         LUSTHOF AANVULLINGEN
   ================================================================ */

/* Tekst in de gekleurde banner */
.headerblock h1,
.headerblock h2,
.headerblock p{
    color: var(--headertekst);
}

/* Links in de tekst */
.entry-content a:not(.kb-button):not(.wp-block-button__link){
    color: #000;
}

/* Knoppen (Kadence) in Lusthof-stijl: lichtblauw met donkerblauwe tekst */
.entry-content .kb-button.kb-btn-global-fill,
.entry-content .wp-block-button__link{
    background: var(--buttonachtergrond);
    color: var(--buttontekst);
    border-color: var(--buttonachtergrond);
}
.entry-content .kb-button.kb-btn-global-fill:hover,
.entry-content .wp-block-button__link:hover{
    background: var(--buttontekst);
    color: var(--buttonachtergrond);
    border-color: var(--buttontekst);
}

/* Footer: tekst wit, adresbalk zwart */
footer.site-footer .widget h3,
footer.site-footer .widget p,
footer.site-footer .widget a{
    color: var(--wit) !important;
}
footer.site-footer .site-middle-footer-wrap .widget p,
footer.site-footer .site-middle-footer-wrap .widget a{
    color: var(--zwart) !important;
}

/* Lijst om afbeeldingen in de tekst van vervolgpagina's */
body:not(.home) .entry-content .wp-block-kadence-image:not(.image-is-svg):not(:has(.kb-is-ratio-image)){
    position: relative;
    width: fit-content;
    max-width: min(700px, 100%);
    margin-top: 40px !important;
    margin-bottom: 40px !important;

    img{
        display: block;
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 560px;
    }

    &::after{
        content: "";
        position: absolute;
        inset: -20px;
        background-image: url("../images/lusthof/Afbeeldingkader1.svg#svgView(preserveAspectRatio(none))");
        background-repeat: no-repeat;
        background-size: 100% 100%;
        pointer-events: none;
    }
}

/* Iconen in de vakken: zwart, lichtblauw, zwart */
.home .quicklink_item:nth-of-type(1) svg *,
.home .quicklink_item:nth-of-type(3) svg *{ fill:#000 !important; }
.home .quicklink_item:nth-of-type(2) svg *{ fill:var(--textblauw) !important; }

/* Roze kop bij het tekstblok en roze quote, zoals op de oude site */
.home .wp-block-kadence-advancedheading,
div.quote p{ color: var(--headerkleur) !important; }

/* Decoraties zoals op de oude site */
.site{ overflow-x: clip; } /* voorkomt horizontaal scrollen door decoraties */

/* Homepage: raster + paperclips bij de drie vakken */
.home .quicklinksrow{ position: relative; }
.home .quicklinksrow > .kt-row-column-wrap{ position: relative; z-index: 1; }
.home .quicklinksrow::after{
    content: ""; position: absolute; right: -200px; bottom: -150px;
    width: 340px; aspect-ratio: 524/485;
    background: url(../images/lusthof/ruitjesrechtsboven.svg) no-repeat center / contain;
    z-index: 0; pointer-events: none;
}
.home .quicklinksrow::before{
    content: ""; position: absolute; right: -25px; bottom: -70px;
    width: 70px; height: 110px;
    background: url(../images/lusthof/paperclips.svg) no-repeat center / contain;
    z-index: 2; pointer-events: none;
}

/* Vervolgpagina's: raster rechtsboven */
body:not(.home) .entry-content > .kb-row-layout-wrap:first-of-type{ position: relative; }
body:not(.home) .entry-content > .kb-row-layout-wrap:first-of-type::after{
    content: ""; position: absolute; right: -260px; top: -160px;
    width: 420px; aspect-ratio: 524/485;
    background: url(../images/lusthof/ruitjesrechtsboven.svg) no-repeat center / contain;
    z-index: 0; pointer-events: none;
}

@media (max-width: 1024px){
    .home .quicklinksrow::after,
    body:not(.home) .entry-content > .kb-row-layout-wrap:first-of-type::after{ display: none; }
}

/* Zijmenu zoals op de oude Lusthof-site */
.wp-block-lazyblock-zijmenu .SubpagesListTitle{
    font-family: var(--headerfont) !important;
    color: var(--headerkleur) !important;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: none;
    margin: 0 0 48px;
}
.wp-block-lazyblock-zijmenu .SubpagesList{
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 230px;
}
.wp-block-lazyblock-zijmenu .SubpagesListItem{
    padding: 0;
    margin: 0;
}
.entry-content .wp-block-lazyblock-zijmenu .SubpagesListItem a{
    font-size: 18px;
    line-height: 36px;
    color: var(--zwart) !important;
    text-decoration: underline;
}
.entry-content .wp-block-lazyblock-zijmenu .SubpagesListItem a:hover,
.entry-content .wp-block-lazyblock-zijmenu .SubpagesListItem.current > a,
.entry-content .wp-block-lazyblock-zijmenu .SubpagesListItem.current-parent > a{
    color: #0090D7 !important;
}
.entry-content .wp-block-lazyblock-zijmenu .SubpagesListItem.current > a{
    font-weight: 600;
}
/* derde niveau (bv. onder Regels en afspraken) */
.wp-block-lazyblock-zijmenu .SubpagesList--sub{
    margin: 0 0 6px 18px;
}
.entry-content .wp-block-lazyblock-zijmenu .SubpagesList--sub a{
    font-size: 16px;
    line-height: 30px;
}
@media (max-width: 768px){
    .wp-block-lazyblock-zijmenu .SubpagesListTitle{ font-size: 28px; margin-bottom: 20px; }
    .wp-block-lazyblock-zijmenu .SubpagesList{ max-width: none; }
}