/*

Theme Name: LeF-Scholen
Template: kadence
Version: 1.0.1
Text Domain: lef-scholen
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

:root{
    --groen:#95C23D;
    --blauw:#292358;
    --wit:#fff;
    --roze:#E6007E;
    --oranje: #EE7203;
    --rood:#E30613;
}
.kb-button.kt-button{
    position: relative;
    z-index:2;
    overflow:visible;
}
.kb-button.kt-button:before{
    content:'';
    background-color: var(--blauw);
    display:flex;
    align-items: center;
    justify-content: center;
    background-image: url(images/knoparrow.svg);
    background-repeat:no-repeat;
    background-position: center;
    position: absolute;
    width:37px;
    height:37px;
    right:0;
    top:0;
    left:auto;
    bottom:auto;
    opacity: 1;
    z-index:3;
}
.kb-button.kt-button:after{
    content:'';
    width:90%;
    height:26px;
    background-image: url(images/knop-achtergrond.png);
    background-size:contain;
    position:absolute;
    left:-10px;
    bottom:-10px;
    z-index:-1;
}

.kb-button.kt-button span{
    background-color:#fff;
    padding:10.5px 20px;
}

.c2aback{

    position: absolute;
    z-index:1;
    bottom: -113px;
    right: -85px;

    figure{
        width:558px;
        height:406px;
    }
}
.c2aback + *{
    z-index:2;
}

@media(max-width:768px){
    .c2aback{
        bottom: 0px;
        right:0;
        figure{
            width:325px;
            height:auto;
        }
    }
}

/* nieuws homepage */
article.category-nieuws .entry-meta{
    color:var(--oranje);
    font-size:14px;
    line-height:26px;
    font-weight:600;
}

article.category-nieuws .entry-header{
    display:flex;
    flex-direction: column;

    .entry-title{
        order:2;
    }

    .entry-meta{
        order:1;
    }
    
}

article.category-nieuws a.post-more-link{
    background-color:var(--rood);
    color:#fff;
    padding: 9.5px 45px 9.5px 20px;
    position: relative;
    text-transform: none;
    font-weight:400;
    font-size:13px;
    &:after{
        content:'';
        width:90%;
        height:26px;
        background-image: url(images/nieuwsknop-achtergrond.png);
        background-size:contain;
        background-repeat: no-repeat;
        position:absolute;
        left:-10px;
        bottom:-10px;
        z-index:-1;
    }
    &:before{
        content:'';
        background-color: var(--blauw);
        display:flex;
        align-items: center;
        justify-content: center;
        background-image: url(images/knoparrow.svg);
        background-repeat:no-repeat;
        background-position: center;
        position: absolute;
        width:37px;
        height:37px;
        right:0;
        top:0;
        left:auto;
        bottom:auto;
        opacity: 1;
        z-index:3;
    }
    svg{
        display: none;
    }
}

.nieuwsgroot a.post-thumbnail{
    overflow: visible;

    .post-thumbnail-inner{
        margin-left:-30px;

        &:after{
            content:'';
            background-image: url(images/Hoekvorm-streepjes.svg);
            width:153px;
            height:153px;
            background-repeat: no-repeat;
            background-size: contain;
            position: absolute;
            bottom:-20px;
            right:-20px;
        }

    }
}

.nieuwsgroot .entry-action{
    display: flex;
    justify-content: flex-end;
}

ul.nieuwsgroot .loop-entry > .entry-content-wrap{
    padding-top:30px;
}

 
.nieuwsklein a.post-thumbnail{
    width: 220px;
    height: 146px;
}



.nieuwsklein article.category-nieuws .entry-content-wrap{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nieuwsklein article.category-nieuws h3{
    line-height: 22px;
}

.nieuwsklein .loop-entry  .entry-header .entry-meta{
    margin-top:0;
}

@media(max-width:768px){
    .nieuwsklein a.post-thumbnail{
        width: 100%;
    }
}


.imageoverlay{
        position: absolute;
    z-index:1;
    top:60px;
    right:100px;

    figure{
        width:720px;
    }
}

@media(max-width:768px){
    .imageoverlay{
        right:0;
        top:auto;
        bottom:0;

        figure{
            width:350px;
        }
    }

}



@media (min-width:1083px){
    .site-branding a.brand{
        margin-top:-75px;
        transition:0.3s;
    }

    .header-is-fixed .site-branding a.brand{
        margin-top:0;
    }

    .header-is-fixed .site-branding a.brand img.svg-logo-image{
        width:120px;
    }

    .search-toggle-open-container{
        position: relative;
    }

    .search-toggle-open-container:before{
        content:'';
        background-image:url('images/zoekveldstrepen.svg');
        background-size:contain;
        width:411px;
        height:100%;
        position: absolute;
        top:-20px;
        right:-20px;
        z-index:-1;
    }
}



.nieuwsarchive .entry-title{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}
.nieuwsarchive .entry-summary{
    height: 145px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}



/* =================================================================
   Cirkels (CTA, Werken bij, contactgegevens)
   Geef de Sectie (kadence/column) in de editor de extra CSS-klasse
   ctacircle, werkenbijcircle of locationcircle. Maten per school
   aanpassen via de variabelen in scholen/*.css.
   Bewust hier en niet in de Custom CSS van het blok: daar wordt '>'
   bij opslaan door een redacteur omgezet naar '&gt;' en breekt de CSS.
   ================================================================= */
:root{
    --cta-cirkel: 283px;
    --cta-cirkel-padding: 40px;
    --werkenbij-cirkel: 164px;
    --locatie-cirkel: 270px;
}

.wp-block-kadence-column.ctacircle > .kt-inside-inner-col,
.wp-block-kadence-column.werkenbijcircle > .kt-inside-inner-col,
.wp-block-kadence-column.locationcircle > .kt-inside-inner-col{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    flex-shrink: 0;
    /* geen automatische minimummaat op basis van de inhoud; scripts.js laat de cirkel zo nodig groeien */
    min-width: 0;
    min-height: 0;
}

.wp-block-kadence-column.ctacircle > .kt-inside-inner-col{
    width: var(--cta-cirkel);
    height: var(--cta-cirkel);
    padding: var(--cta-cirkel-padding);
}

.wp-block-kadence-column.werkenbijcircle > .kt-inside-inner-col{
    width: var(--werkenbij-cirkel);
    height: var(--werkenbij-cirkel);
}

.wp-block-kadence-column.locationcircle > .kt-inside-inner-col{
    width: var(--locatie-cirkel);
    height: var(--locatie-cirkel);
    position: relative;
    z-index: 4;
}

.site-footer-section{
    align-items: flex-end;
}

/* =================================================================
   Hover voor knoppen (alle scholen)
   Het tekstvlak kleurt mee met het pijlvlak, de pijl schuift iets
   op en de streepjes eronder verschuiven. De kleur komt uit
   --knop-accent; die zet elke school in zijn eigen scholen/*.css.
   ================================================================= */
:root{
    --knop-accent: var(--blauw);
}

.kb-button.kt-button span,
.kb-button.kt-button:before,
.kb-button.kt-button:after,
article.category-nieuws a.post-more-link,
article.category-nieuws a.post-more-link:before,
article.category-nieuws a.post-more-link:after,
article.vacature-card .vacature-card__button span,
article.vacature-card .vacature-card__button:before,
article.vacature-card .vacature-card__button:after{
    transition: background-color .2s ease, color .2s ease, background-position .2s ease, transform .2s ease;
}

/* tekstvlak kleurt mee met het pijlvlak */
.kb-button.kt-button:hover span,
.kb-button.kt-button:focus-visible span,
article.vacature-card .vacature-card__button:hover span,
article.vacature-card .vacature-card__button:focus-visible span{
    background-color: var(--knop-accent);
    color: var(--wit);
}
article.category-nieuws a.post-more-link:hover,
article.category-nieuws a.post-more-link:focus-visible{
    background-color: var(--knop-accent);
    color: var(--wit);
}

/* pijl schuift iets naar rechts */
.kb-button.kt-button:hover:before,
.kb-button.kt-button:focus-visible:before,
article.category-nieuws a.post-more-link:hover:before,
article.category-nieuws a.post-more-link:focus-visible:before,
article.vacature-card .vacature-card__button:hover:before,
article.vacature-card .vacature-card__button:focus-visible:before{
    background-position: calc(50% + 4px) center;
}

/* streepjes eronder verschuiven */
.kb-button.kt-button:hover:after,
.kb-button.kt-button:focus-visible:after,
article.category-nieuws a.post-more-link:hover:after,
article.category-nieuws a.post-more-link:focus-visible:after,
article.vacature-card .vacature-card__button:hover:after,
article.vacature-card .vacature-card__button:focus-visible:after{
    transform: translate(-4px, 4px);
}

@media (prefers-reduced-motion: reduce){
    .kb-button.kt-button:hover:before,
    .kb-button.kt-button:hover:after,
    article.category-nieuws a.post-more-link:hover:before,
    article.category-nieuws a.post-more-link:hover:after,
    article.vacature-card .vacature-card__button:hover:before,
    article.vacature-card .vacature-card__button:hover:after{
        transform: none;
        background-position: center;
    }
}


/* =================================================================
   Hoofdstukkleuren (zie lef_hoofdstuk_klassen() in functions.php)
   Zet in Weergave > Menu's op het bovenste menu-item een van deze klassen:
     hoofdstuk-blauw | hoofdstuk-paars | hoofdstuk-groen | hoofdstuk-oranje
   Optioneel erbij: hoofdstuk-alleen-header  (alleen de header kleurt mee)
   De tinten komen uit de kleurvariabelen van de school (scholen/*.css).
   ================================================================= */
.hoofdstuk-blauw { --hoofdstuk-kleur: var(--blauw); }
.hoofdstuk-paars { --hoofdstuk-kleur: var(--paars, #702283); }
.hoofdstuk-groen { --hoofdstuk-kleur: var(--donkergroen, var(--groen)); }
.hoofdstuk-oranje{ --hoofdstuk-kleur: var(--oranje); }

/* Pagina-inhoud: het standaard palet 10 wordt de hoofdstukkleur
   (header, boog, gekleurde vlakken en koppen in palet 10). Menu en footer blijven zoals ze zijn. */
body[class*="hoofdstuk-"]:not(.hoofdstuk-alleen-header) .entry-content{
    --global-palette10: var(--hoofdstuk-kleur);
}
body.hoofdstuk-alleen-header .entry-content > .kb-row-layout-wrap:first-child{
    --global-palette10: var(--hoofdstuk-kleur);
}

/* Hoofdmenu: elk hoofdstuk in zijn eigen kleur, ook het uitklapmenu */
#primary-menu > li.menu-item[class*="hoofdstuk-"] > a,
#primary-menu > li.menu-item[class*="hoofdstuk-"] > a:hover,
#primary-menu > li.menu-item[class*="hoofdstuk-"] > a:focus{
    color: var(--hoofdstuk-kleur);
}
#primary-menu > li.menu-item[class*="hoofdstuk-"] .dropdown-nav-toggle,
#primary-menu > li.menu-item[class*="hoofdstuk-"] .kadence-svg-iconset{
    color: var(--hoofdstuk-kleur);
}
#primary-menu li.menu-item[class*="hoofdstuk-"] > ul.sub-menu{
    background: var(--hoofdstuk-kleur);
}
#primary-menu li.menu-item[class*="hoofdstuk-"] > ul.sub-menu li.menu-item > a{
    background: transparent;
}
#primary-menu li.menu-item[class*="hoofdstuk-"] > ul.sub-menu li.menu-item > a:hover,
#primary-menu li.menu-item[class*="hoofdstuk-"] > ul.sub-menu li.menu-item.current-menu-item > a{
    background: rgba(0, 0, 0, .15);
}

/* Wit knopvlak: dunne rand in de knopkleur, zodat de knop ook op een witte achtergrond
   herkenbaar is. Inset-schaduw, dus de knop wordt er niet groter van. */
.kb-button.kt-button span,
article.vacature-card .vacature-card__button span{
    box-shadow: inset 0 0 0 1px var(--knop-accent);
}

/* Knoppen binnen een hoofdstuk: pijlvlak, streepjes, tekst en hover in de hoofdstukkleur */
body[class*="hoofdstuk-"]:not(.hoofdstuk-alleen-header) .entry-content{
    --knop-accent: var(--hoofdstuk-kleur);
}
body[class*="hoofdstuk-"]:not(.hoofdstuk-alleen-header) .entry-content .kb-button.kt-button:before{
    background-color: var(--hoofdstuk-kleur);
    background-image: url(images/knoparrow-wit.svg);
}
body[class*="hoofdstuk-"]:not(.hoofdstuk-alleen-header) .entry-content .kb-button.kt-button:after{
    background-image: none;
    background-color: var(--hoofdstuk-kleur);
    -webkit-mask: url(images/knop-strepen-masker.svg) left bottom / contain no-repeat;
    mask: url(images/knop-strepen-masker.svg) left bottom / contain no-repeat;
}
body[class*="hoofdstuk-"]:not(.hoofdstuk-alleen-header) .entry-content .kb-button.kt-button span{
    color: var(--hoofdstuk-kleur);
}
body[class*="hoofdstuk-"]:not(.hoofdstuk-alleen-header) .entry-content .kb-button.kt-button:hover span,
body[class*="hoofdstuk-"]:not(.hoofdstuk-alleen-header) .entry-content .kb-button.kt-button:focus-visible span{
    color: var(--wit);
}
