/**
 * Basisopmaak: lettertype, koppen, tekst, links, lijsten en knoppen.
 * Geldt op de site en in de editor (.editor-styles-wrapper).
 */

/* ============================================================
   1. TEKST
   ============================================================ */
body,
.editor-styles-wrapper {
    font-family: var(--cw-font);
    font-size: var(--cw-tekst-size);
    line-height: var(--cw-tekst-lh);
    color: var(--cw-tekst);
    -webkit-font-smoothing: antialiased;
}

/* Grotere introtekst: klasse "intro" op een alinea of groep */
.intro,
.intro p,
.has-intro-font-size {
    font-size: var(--cw-intro-size);
}

/* Lange woorden en e-mailadressen niet buiten beeld laten lopen */
.entry-content,
.editor-styles-wrapper {
    overflow-wrap: break-word;
}

/* ============================================================
   2. KOPPEN
   ============================================================ */
h1, h2, h3, h4, h5, h6,
.editor-styles-wrapper :is(h1, h2, h3, h4, h5, h6) {
    font-family: var(--cw-font);
    font-weight: 700;
    letter-spacing: 0;
    margin-top: 0;
}

h1, .h1,
.editor-styles-wrapper h1,
.editor-styles-wrapper .editor-post-title {
    font-size: var(--cw-h1);
    line-height: var(--cw-h1-lh);
    color: var(--cw-kleur-kop);
}

h2, .h2,
.editor-styles-wrapper h2 {
    font-size: var(--cw-h2);
    line-height: var(--cw-h2-lh);
    color: var(--cw-kleur-kop);
}

h3, .h3,
.editor-styles-wrapper h3 {
    font-size: var(--cw-h3);
    line-height: var(--cw-h3-lh);
    color: var(--cw-kleur-subkop);
}

h4, h5, h6,
.editor-styles-wrapper :is(h4, h5, h6) {
    font-size: var(--cw-h4);
    line-height: var(--cw-h4-lh);
    color: var(--cw-kleur-kop);
}

/* ============================================================
   3. LINKS
   ============================================================ */
.entry-content a:not(.wp-block-button__link):not(.kb-button):not(.button),
.editor-styles-wrapper a:not(.wp-block-button__link):not(.kb-button) {
    color: var(--cw-kleur-link);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s ease;
}

.entry-content a:not(.wp-block-button__link):not(.kb-button):not(.button):hover {
    color: var(--cw-kleur-link-hover);
}

/* ============================================================
   4. LIJSTEN
   Opsomming met magenta bolletjes (vervolgpagina, design 02.0).
   ============================================================ */
.entry-content ul:not([class*="wp-block-kadence"]):not(.menu),
.editor-styles-wrapper ul.wp-block-list {
    list-style: none;
    padding-left: 0;
}

.entry-content ul:not([class*="wp-block-kadence"]):not(.menu) > li,
.editor-styles-wrapper ul.wp-block-list > li {
    position: relative;
    padding-left: 22px;
}

.entry-content ul:not([class*="wp-block-kadence"]):not(.menu) > li::before,
.editor-styles-wrapper ul.wp-block-list > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: calc(var(--cw-tekst-lh) / 2 - 5px);
    width: 10px;
    height: 10px;
    background: var(--cw-magenta);
    border-radius: 5px 0 5px 5px; /* Paraat-vorm: scherpe hoek rechtsboven */
}

/* ============================================================
   5. KNOPPEN
   Pil met één scherpe hoek, 49 px hoog, Comfortaa bold 15 px.
   Standaard magenta; stijl "Paars" via de knopstijl of klasse knop-paars.
   ============================================================ */
.wp-block-button__link,
.kb-button,
.button,
button.kb-forms-submit,
input[type="submit"],
.editor-styles-wrapper .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--cw-knop-hoogte);
    padding: var(--cw-knop-padding);
    border: 0;
    border-radius: var(--cw-knop-radius);
    background: var(--cw-magenta);
    color: var(--cw-wit);
    font-family: var(--cw-font);
    font-size: var(--cw-knop-size);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: none;
    transition: background-color .2s ease, transform .2s ease;
}

.wp-block-button__link:hover,
.kb-button:hover,
.button:hover,
button.kb-forms-submit:hover,
input[type="submit"]:hover {
    background: var(--cw-paars);
    color: var(--cw-wit);
}

.wp-block-button__link:focus-visible,
.kb-button:focus-visible,
.button:focus-visible {
    outline: 3px solid var(--cw-teal);
    outline-offset: 3px;
}

/* Variant paars (blokstijl "Paars" of klasse) */
.is-style-paars .wp-block-button__link,
.knop-paars .wp-block-button__link,
.kb-button.knop-paars {
    background: var(--cw-paars);
}

.is-style-paars .wp-block-button__link:hover,
.knop-paars .wp-block-button__link:hover,
.kb-button.knop-paars:hover {
    background: var(--cw-magenta);
}

/* Variant wit (op een gekleurde achtergrond) */
.is-style-wit .wp-block-button__link,
.knop-wit .wp-block-button__link,
.kb-button.knop-wit {
    background: var(--cw-wit);
    color: var(--cw-paars);
}

.is-style-wit .wp-block-button__link:hover,
.knop-wit .wp-block-button__link:hover,
.kb-button.knop-wit:hover {
    background: var(--cw-paars);
    color: var(--cw-wit);
}

/* ============================================================
   6. TOEGANKELIJKHEID
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
