/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Child theme for GeneratePress
 Author:       Henk ten Dolle
 Author URI:   https://simmelink.nl
 Template:     generatepress
 Version:      0.1
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  generatepress-child
*/


/* Zet box-sizing consistent voor alle elementen, zet hem helemaal bovenaan */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}


.s-card-article-category {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.s-card-article-category a {
  display: inline-block;
  padding: 0.35rem 0.85rem;
	line-height: 1.4;
  background-color: #f0f2f5;
  color: #1a1a1a;
  font-size: clamp(0.75rem, 1vw + 0.1rem, 0.875rem);
	font-variant: small-caps;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.s-card-article-category a:hover {
  background-color: #e2e4e7;
}

.s-card-article-category  a[href="https://simmelink.nl/uit-de-praktijk/"],
.s-card-article-category  a[href="https://simmelink.nl/en/from-the-practice/"] {
  display: none !important;
	outline: 1px dotted red;
}





/* === 01. CSS VARIABLES (Design Tokens) === */
:root {
    --base-100: #FFF;	/* neutrale achtergronden voor cards, invulvelden en borders */ 
    --base-200: #FAFAFA;
    --base-300: #F5F5F5;
    --base-400: #E5E5E5;
    --base-500: #D4D4D4;
    --brand-1: #002a50;
    --brand-2: #005e8c;
    --brand-3: #ddebf9;			/* subtiele accenten of achtergrondgebruik */
    --action-1: #cc5c00;
    --action-2: #E65E00;
    --contrast-100: #FFF;
    --contrast-300: #404040;	/* secundaire tekst zoals labels */
    --contrast-500: #1a1a1a;	/* basistekstkleur */
    --checkmark-1: #007B33;
    --warm-1: #f7f5f1;
    --error: #C62828;
    --success: #2E7D32;
    --info: #0288D1;
    --warning: #EF6C00;

    --radius-default: 8px;
    --max-width: min(90vw, 1280px);  /* in principe niet nodig, definieer ik in s-section-wrapper */
}


/* === 02. GLOBAL STYLES === */

/* === 02.1. Typography === */

/* === 02.1.1. Font Families === */

.ff-body {
    font-family: var(--gp-font--body);
}

.ff-heading {
    font-family: var(--gp-font--headings);
}

/* Heading and utility class font assignment */
h1, h2, h3, h4, h5, h6,
[class^="fs-"] {
    font-family: var(--gp-font--headings);
    color: var(--brand-1);
}



.fs-p {
    font-family: var(--gp-font--body);
}

/* === 02.1.2. Font Sizes === */

h1, .fs-1 {
  font-size: clamp(2.2rem, 4vw + 1rem, 3.6rem); /* 35–58px */
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin-bottom: 32px;
}

h2, .fs-2 {
  font-size: clamp(1.92rem, 3vw + 0.5rem, 2.88rem); /* 31–46px */
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin-bottom: 28px;
}

h3, .fs-3 {
  font-size: clamp(1.54rem, 2.25vw + 0.4rem, 2.3rem); /* 25–37px */
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin-bottom: 24px;
}

h4, .fs-4 {
  font-size: clamp(1.23rem, 1.75vw + 0.3rem, 1.8rem); /* 20–29px */
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.005em;
  margin-bottom: 20px;
}

h5, .fs-5 {
  font-size: clamp(0.98rem, 1.25vw + 0.2rem, 1.44rem); /* 16–23px */
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0em;
  margin-bottom: 16px;
}

h6, .fs-6 {
  font-size: clamp(0.85rem, 1vw + 0.2rem, 1.15rem); /* 13–18px */
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0em;
  margin-bottom: 12px;
}


/* === 02.1.3. Paragraphs and Text === */
p, body, .fs-p {
    font-size: clamp(1.05rem, 0.9vw + 0.2rem, 1.2rem);
    font-weight: 400; /* lichtere, fijnere balans bij langere tekst */
    line-height: 1.7; /* iets ruimer voor rust */
    color: var(--contrast-500);
    margin-bottom: clamp(1rem, 1.5vw, 1.6rem);
}

/* === 02.1.4. Lists === */

ul, ol {
    margin-top: 0;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    padding-left: 1.5rem; 
}

li + li {   /* Witruimte tussen lijstitems */ /* let op: deze interfereert met menu main topics */
    margin-top: 0.5rem;
}

#primary-menu li + li {
  margin-top: 0;
}

/* === 02.1.5. Links === */

a {
    color: var(--brand-2);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--brand-1);
}
a:focus {
    outline: 2px solid var(--brand-1);
    outline-offset: 2px;
}

/* === TEXT WRAPPING === */
:is(h1, h2, h3, h4, h5, h6, .fs-1, .fs-2, .fs-3, .fs-4, .fs-5, .fs-6) {
        text-wrap: balance;
}   

p, blockquote, li, .fs-p {
    text-wrap: pretty;
}



/* =========================
   NAVIGATION
========================= */
.inside-navigation {
    display: flex;
    justify-content: space-between !important;
    align-items: center;
}

#primary-menu,
.menu-bar-items {
    display: flex;
    align-items: center;
    gap: 1rem; /* ruimte tussen menu items en CTA-knop */
}

/* Ensuring the navigation is always on top */
/*
#site-navigation {

    /*position: relative;*/
  /*  z-index: 999;*/
/*}
*/
@media (min-width: 769px) {
    nav .main-nav .mega-menu {
        position: static;
    }

	nav .main-nav .mega-menu>ul {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 9999;
    width: clamp(300px, 90vw, 1200px);
    display: flex;
    transform: translateX(-50%);
    flex-wrap: wrap;
    padding: clamp(1rem, 4vw, 2.5rem);
    background: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
	
	
	/* oude code
    nav .main-nav .mega-menu>ul {
        position: absolute;
        top: 100%;
        left: 50%;
        z-index: 9999;
        width: 90%;
        display: flex;
        transform: translateX(-50%);
        max-width: 1200px;
        flex-wrap: wrap;
        padding: 2rem 2.5rem;
        background: #ffffff;
        border-radius: 0.5rem;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    }
	*/
	
    /* Hoofdmenu items - voorkom verspringen bij hover */
    nav .main-nav>ul>li>a {
        border-bottom: 3px solid transparent;
        transition: border-color 0.2s ease;
    }
    nav .main-nav>ul>li:hover>a,
    nav .main-nav>ul>li.focus>a {
        border-bottom-color: var(--brand-2);
    }

    /* Kolombreedtes per variant */
    nav .main-nav .mega-menu.mega-menu-col-2>ul>li {
        flex: 0 0 50%;
}
    nav .main-nav .mega-menu.mega-menu-col-3>ul>li {
        flex: 0 0 33.3333%;
}
    nav .main-nav .mega-menu.mega-menu-col-4>ul>li {
        flex: 0 0 25%;
}
    nav .main-nav .mega-menu.mega-menu-col-5>ul>li {
        flex: 0 0 20%;
}

    /* Top-level items in megamenu */
    nav .main-nav .mega-menu>ul>li>a {
        font-weight: 600;
        font-size: clamp(0.85rem, 1vw, 0.9375rem);
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--brand-1);
        cursor: default;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        margin-right: clamp(1rem, 3vw, 3rem);
        padding: clamp(0.25rem, 1vw, 0.5rem) 0;
        display: block;
        border-bottom: 2px solid var(--brand-2);
    }

    /* Voorkom dat groepstitel 'actief' wordt bij hover op subitems */
    nav .main-nav .mega-menu>ul>li>a[href="#"] {
        pointer-events: none;
        cursor: default;
        background-color: transparent !important;
        color: var(--brand-1);
    }

    /* Verwijder hover-effect op groepstitel ook als li:hover actief is */
    nav .main-nav .mega-menu>ul>li:hover>a[href="#"] {
        background-color: transparent !important;
        color: var(--brand-1) !important;
    }

    .main-navigation .mega-menu>ul>li {
        padding-bottom: 2rem;
    }

    nav .main-nav .mega-menu>ul>li>ul {
        margin-bottom: 2rem;
    }

    /* Submenu layout */
    nav .main-nav .mega-menu ul .sub-menu {

        position: static;
        display: block;
        opacity: 1;
        visibility: visible;
        width: 100%;
        box-shadow: none;
        left: 0;
        height: auto;
        pointer-events: auto;
        transform: none;
    }

    nav .main-nav .mega-menu .sub-menu .menu-item-has-children .dropdown-menu-toggle {
        display: none;
    }

    /* Standaard subitems */
    nav .main-nav .mega-menu ul ul {
        margin-top: 0.5rem;
        padding-left: 0;
    }

    nav .main-nav .mega-menu ul ul li {
        margin-bottom: 0.5rem;
    }

    nav .main-nav .mega-menu ul ul li a {
        font-size: 15px;
        color: var(--contrast-500);
        font-weight: 400;
        padding: 0.4rem 0;
        display: block;
        text-decoration: none;
        border-radius: var(--radius-default);
        transition: font-weight 0.2s ease, color 0.2s ease;
    }

    nav .main-nav .mega-menu ul ul li a:hover {
        color: var(--brand-2);
        background-color: var(--base-500);
        margin-right: 3rem; 
    }

    /* Actieve subitems, deze pakt de items op tweede-level submenu's, hier zitten Familierecht, etc */
    nav .main-nav .mega-menu>ul>li>ul>li[class*="current-"]>a {

        background-color: transparent;
        color: var(--brand-1);
        font-weight: 600;
    }
    /* Actieve subitems, deze pakt de items op tweede level submenu's, hier zit WPML-taalwissel */
    nav .main-nav > ul > li[class*="current-"] > a {
        color: var(--brand-2);
        font-weight: 600;
    }

    /* Hover top-level kopje */
    nav .main-nav .mega-menu>ul>li:hover>a:not([href="#"]) {
        color: var(--brand-2);
        background-color: transparent;
    }

    /* Submenu fade-in via JS, is een fix om te voorkomen dat latere menu's de focus stelen */
    /* Submenu's zijn standaard verborgen */
    nav .main-nav>ul>li.menu-item-has-children .sub-menu {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }
    /* Submenu's worden zichtbaar bij hover op het hoofdmenu item */
    nav .main-nav>ul>li.menu-item-has-children.hovering .sub-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

.main-navigation .s-menuitem-cta {
    background-color: var(--action-1);
    color: var(--contrast-100) !important;
    padding: clamp(0.3rem, 0.8vw, 0.6rem) clamp(0.75rem, 2vw, 1.5rem);
    border-radius: var(--radius-default);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.85rem, 1vw, 1rem);
    font-weight: 600;
    margin-left: clamp(0.5rem, 1vw, 1rem);
    line-height: 1;
}

.main-navigation .s-menuitem-cta:hover,
.main-navigation .s-menuitem-cta:focus {
    background-color: var(--action-2);
    outline: none;
}


}



/* === Simmelink Button Styles === */

/* === Algemene knopstijl (basis) === */
.gb-button, 
button, 
.wp-block-button__link {
    will-change: box-shadow, transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}


/* === Primaire knop (accentkleur, gebruikt voor call-to-action) === */
.s-btn-primary {
	background: linear-gradient(to bottom, var(--action-1), #b54d00);
    border-radius: var(--radius-default);
    border: none !important;  /* zonder important krijgt de knop toch een rand */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    color: var(--contrast-100);
    font-size: clamp(1rem, 1vw + 0.25rem, 1.125rem);
    font-weight: 600;
    min-height: clamp(54px, 6vw, 64px);
    padding: clamp(0.85rem, 1vw, 1.25rem) clamp(1.6rem, 2vw, 2rem);
    transition:
        background 0.3s ease,
        box-shadow 0.3s ease,
        opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.s-btn-primary:hover {
    background: linear-gradient(to bottom, var(--action-2), #b04b00);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    color: var(--contrast-100) !important;
}
.s-btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(204, 92, 0, 0.3);
}
.s-btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

/* === Secundaire knop (brandkleur) === */
.s-btn-secondary {
    background: linear-gradient(to bottom, var(--brand-2), var(--brand-1));
    border-radius: var(--radius-default);
    border: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    color: var(--contrast-100);
    font-size: clamp(1rem, 1vw + 0.25rem, 1.125rem);
    font-weight: 600;
    min-height: clamp(54px, 6vw, 64px);
    padding: clamp(0.85rem, 1vw, 1.25rem) clamp(1.6rem, 2vw, 2rem);
    transition:
        background 0.3s ease,
        box-shadow 0.3s ease,
        opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover-interactie */
.s-btn-secondary:hover {
    background: linear-gradient(to bottom, var(--brand-1), var(--brand-2));
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
	color: var(--contrast-100) !important;
}

/* Focus met toetsenbord */
.s-btn-secondary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 89, 153, 0.35);
}

/* Active (klik) */
.s-btn-secondary:active {
    transform: scale(0.98);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* === Outline knop (transparant met rand) === */

.s-btn-outline {
    background-color: transparent !important;
    color: var(--brand-1);
    border: 2px solid var(--brand-1);
    border-radius: var(--radius-default);
    padding: clamp(0.85rem, 1vw, 1.25rem) clamp(1.6rem, 2vw, 2rem);
    min-height: clamp(54px, 6vw, 64px);
    font-size: clamp(1rem, 1vw + 0.25rem, 1.125rem);
    font-weight: 600;
    box-shadow: none;
    transition:
        background 0.3s ease,
        box-shadow 0.3s ease,
        opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.s-btn-outline:hover {
    background-color: var(--brand-3) !important;
    color: var(--brand-1) !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

/* Focus met toetsenbord */
.s-btn-outline:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 89, 153, 0.3);
}

/* Active (klik) */
.s-btn-outline:active {
    transform: scale(0.98);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.s-btn-outline-small {
    background-color: transparent !important;
    color: var(--brand-1);
    border: 1px solid var(--brand-1);
    border-radius: var(--radius-default);
    padding: clamp(0.4rem, 0.75vw, 0.8rem) clamp(1rem, 1.5vw, 1.25rem);
    min-height: clamp(38px, 5vw, 44px);
    font-size: clamp(0.875rem, 0.75vw + 0.2rem, 1rem);
    font-weight: 600;
    box-shadow: none;
    transition:
        background 0.3s ease,
        box-shadow 0.3s ease,
        opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.s-btn-outline-small:hover {
    background-color: var(--brand-3) !important;
    color: var(--brand-1) !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.s-btn-outline-small:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 89, 153, 0.3);
}

.s-btn-outline-small:active {
    transform: scale(0.98);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}


/* === Tekstknop (linkstijl, voor minder belangrijke acties) === */
.s-btn-link {
    background: none !important;
    color: var(--brand-2) !important;
    border: none;
    padding: 0;
    font-weight: 500;
    font-size: clamp(1rem, 1vw + 0.25rem, 1.125rem);
    line-height: 1.4;
    text-decoration: underline !important;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition:
        background 0.3s ease,
        box-shadow 0.3s ease,
        opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover-interactie */
.s-btn-link:hover {
    color: var(--brand-1) !important;
    text-decoration: none;
    cursor: pointer;
}

/* Focus met toetsenbord */
.s-btn-link:focus-visible {
    outline: none;
    box-shadow: 0 2px 0 0 var(--brand-2);
}

/* Active (klik) */
.s-btn-link:active {
    color: var(--brand-1);
    text-decoration: none;
    transform: scale(0.98);
}





/* === Simmelink Button Size Variants === */

/* Kleine knop */
.s-btn-primary.s-btn-make-small,
.s-btn-secondary.s-btn-make-small,
.s-btn-outline.s-btn-make-small,
.s-btn-link.s-btn-make-small {
    padding: clamp(0.4rem, 0.6vw, 0.6rem) clamp(1rem, 2vw, 1.2rem);
    min-height: clamp(40px, 5vw, 46px);
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    font-weight: 500;
    letter-spacing: 0.25px;
}

/* Grote knop */
.s-btn-primary.s-btn-make-large,
.s-btn-secondary.s-btn-make-large,
.s-btn-outline.s-btn-make-large,
.s-btn-link.s-btn-make-large {
    padding: clamp(0.9rem, 1.5vw, 1.25rem) clamp(1.5rem, 3vw, 2.25rem);
    min-height: clamp(60px, 8vw, 70px);
    font-size: clamp(1.05rem, 1.2vw, 1.2rem);
    font-weight: 600;
    letter-spacing: 0.5px;
}


/* === COMPONENT STYLES === */

/* === Easy Table of Contents === */
#ez-toc-container {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--contrast-500);
    width: 100%;
    }
.ez-toc-title-container {
    display: none;
    }
.ez-toc-list, .ez-toc-list li {
    list-style: none;
    margin: 0;
    padding: 0;
    }
.ez-toc-list li::marker, .ez-toc-list li::before {
    display: none;
    content: none;
    }
.ez-toc-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0;
    margin: 0;
    }
.ez-toc-list a {
    display: block;
    padding: 0.4rem 0.75rem;
    border-left: 3px solid transparent;
    text-decoration: none;
    font-weight: 500;
    color: var(--contrast-500);
    background-color: transparent;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    }
.ez-toc-list a:hover, .ez-toc-list a:focus {
    background-color: var(--base-200);
    border-left-color: var(--brand-2);
    color: var(--brand-1);
    outline: none;
    }
.ez-toc-list a.is-active {
    font-weight: 600;
    border-left-color: var(--action-1);
    background-color: var(--base-300);
    color: var(--brand-1);
    }



    /* === The SEO Framework === */

.tsf-breadcrumb {
    font-size: clamp(0.75rem, 1vw, 0.9rem);
    color: var(--contrast-300);
    line-height: 1.4;
    }
.tsf-breadcrumb a {
    color: var(--contrast-300);
    text-decoration: none;
    }
.tsf-breadcrumb a:hover {
    color: var(--brand-2);
    text-decoration: underline
    }
.tsf-breadcrumb ol li:not(:last-child)::after {
    color: var(--contrast-300);
    font-size: 0.85em
    }
.tsf-breadcrumb li:last-child span {
    font-weight: 500;
    }


/* === HTML Forms === */

.hf-form input,
.hf-form textarea {
    font-family: inherit;
}
.hf-form {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--base-300);
  padding: clamp(0.75rem, 4vw, 2.5rem);
  border: 1px solid var(--base-500);
  border-radius: var(--radius-default);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: left;
}
@media (max-width: 1024px) {
  .hf-form {
    max-width: 90%;
  }
}


.hf-form .submit-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    }
@media (max-width: 480px) {
  .hf-form .submit-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .hf-form .privacy-text {
    margin-left: 0;
  }
}
.hf-form input[type="submit"] {
    padding: 0.95rem 2.9rem;
    background-color: var(--action-1);
    color: white;
    border: none;
    box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-default);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: auto;
    display: inline-block;
    will-change: transform, box-shadow;
    }


.hf-form input[type="submit"]:hover {
    background-color: var(--action-2);
    transform: translatey(-2px);
    }
.hf-form input[type="submit"]:focus-visible {
    outline: 3px solid var(--brand-2);
    background-color: var(--action-1);
    color: var(--contrast-100);
    box-shadow: 0 0 5px rgba(0, 94, 140, 0.3);
    transform: translatey(0);
    }
.hf-form .privacy-text {
    font-size: 0.875rem;
    color: var(--contrast-500);
    margin-left: 20px;
    }
.hf-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    text-align: left;
    color: var(--contrast-500);
    font-size: 1.1rem;
    }
.hf-form input[type="text"], .hf-form input[type="email"], .hf-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--base-400);
    border-radius: var(--radius-default);
    font-size: 16px;
    background-color: var(--base-100);
    color: var(--contrast-500);
    text-align: left;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
.hf-form input[type="text"]::placeholder, .hf-form input[type="email"]::placeholder, .hf-form textarea::placeholder {
    color: var(--contrast-300);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
.hf-form input:focus::placeholder, .hf-form textarea:focus::placeholder {
    opacity: 0.5;
    }
.hf-form input:invalid {
    border-color: red;
    }
.hf-form input[type="text"]:hover, .hf-form input[type="email"]:hover, .hf-form textarea:hover {
    background-color: var(--base-200);
    }
.hf-form input:focus-visible, .hf-form textarea:focus-visible {
    border-color: var(--brand-2);
    box-shadow: 0 0 5px rgba(0, 94, 140, 0.2);
    background-color: var(--base-100);
    outline: none;
    }
.contact-info {
    display: flex;
    gap: clamp(1rem, 2vw, 2rem);
    }
.contact-info p {
    flex: 1;
    }
.hf-form .response-message {
    font-size: 0.875rem;
    color: var(--contrast-500);
    margin-top: 10px;
    line-height: 1.5;
    list-style: none;
    padding-left: 0;
    margin-left: 0;
    }
@media (max-width: 768px) {
  .contact-info {
    flex-direction: column;
    gap: 1rem;
  }
}
.hf-form .response-message li {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    padding-left: 0;
    }

.hf-form .response-message li::before {
    content: "✓";
    color: green;
    font-size: 1.2rem;
    margin-right: 8px;
    flex-shrink: 0;
    }


    /* === Search Form === */

.wp-block-search__input:focus {
    border: 2px solid #0073e6;
    background-color: #f9f9f9;
    outline: none;
    border-radius: var(--radius-default);
    }
.wp-block-search__input {
    border: 2px solid #ccc;
    border-radius: var(--radius-default);
    padding-left: 30px;
    width: 100%;
    background-color: white;
    transition: border 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
.wp-block-search__button {
    background-color: #0073e6;
    border: none;
    border-radius: var(--radius-default);
    color: white;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
.wp-block-search__button:hover {
    background-color: #005bb5;
    }
.wp-block-search__button svg.search-icon {
    fill: white;
    }
.wp-block-search {
    text-align: center;
    margin: 0 auto;
    max-width: 600px;
    padding: 40px 20px;
    }


.search-results {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    }
.search-results h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: bold;
    }
.search-results p {
    font-size: 0.9rem;
    max-width: 80ch;
    line-height: 1.5;
    margin-bottom: 15px;
    }
.search-results .entry-summary {
    margin-top: 0;
    margin-bottom: 20px;
    }
.search-results .search-result-item {
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    border-radius: var(--radius-default);
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
.search-results .search-result-item:hover {
    background-color: #f0f0f0;
    }



/* === Accordion === */


/* === Alimony calculator === */

#alimony_results table td, #alimony_results table th {
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: #f4f4f4;
    padding: 10px;
    }
#alimony_results table td {
    text-align: center;
    }
#alimony_results table th {
    text-align: left;
    width: 50%;
    }
#alimony_results table .currency {
    text-align: right;
    }
#alimony_results .highlighted td, #alimony_results .highlighted th {
    background: #cde9ff;
    }




/* === Algemene stijlen === */

.wp-block-image .aligncenter > figcaption, .wp-block-image figcaption {
    display: none;
    }

/* === Mobiele CTA Knop === */

    /* dit is de knop cta die altijd onderaan de pagina staat op mobiel.
    deze knop wordt toegevoegd als Element  */
.s-cta-mobile-fixed {
    position: fixed;
    bottom: 80px; /* genoeg ruimte voor de back-to-top knop */
    right: 20px;
    background-color: var(--action-1);
    color: var(--contrast-100) !important;
    padding: clamp(0.6rem, 2vw, 0.8rem) clamp(1rem, 3vw, 1.5rem);
    border-radius: var(--radius-default);
    text-decoration: none;
    font-size: clamp(0.85rem, 1vw, 1rem);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: all 0.3s ease;
}

/* even omgekeerd denken: 
   op desktop is deze knop niet zichtbaar, maar wel op mobiel.
   Dus we verbergen de knop op desktop en tonen 'm alleen op mobiel */
@media (min-width: 768px) {
    .s-cta-mobile-fixed, 
    .generate-back-to-top {
        display: none;
    }
}


/* === Knop voor scroll naar boven === */

/* Knop gegenereerd door Elements */
.generate-back-to-top,
.generate-back-to-top:visited {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--brand-1) !important; 
    color: var(--contrast-100) !important; 
    width: 50px;
    height: 50px;
    border-radius: var(--radius-default);
    border: 1px solid white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 997;
    transition:
        background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.2s ease;
    text-decoration: none;
}

.generate-back-to-top:hover,
.generate-back-to-top:focus {
    background-color: var(--brand-2);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    outline: none;
}

/* Extra voor kleinere schermen */
@media (max-width: 600px) {
    .generate-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}


/* === WPML Language Switcher === */

.wpml-language-switcher-block {
    width: 100px;
    }


    
