/* ==========================================================================
   Kinderplezier — Shared Components
   Fonts, tokens, header, footer, CTA, cards, stats, reviews, merken.
   Loaded by every standalone page template.
   ========================================================================== */

/* --- Nudica @font-face (standalone templates bypass fonts.css) --- */
@font-face {
    font-family: "Nudica";
    src: url("../fonts/nudica-regular-webfont.woff2") format("woff2"),
         url("../fonts/nudica-regular-webfont.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Nudica";
    src: url("../fonts/nudica-medium-webfont.woff2") format("woff2"),
         url("../fonts/nudica-medium-webfont.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Nudica";
    src: url("../fonts/nudica-bold-webfont.woff2") format("woff2"),
         url("../fonts/nudica-bold-webfont.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --- Design tokens --- */
:root {
    /* --- Brand colours --- */
    --color-primary: #FF5E00;      /* orange: buttons, CTAs, accents */
    --color-primary-dark: #e65300; /* orange hover/darker */
    --color-accent: #FFD400;       /* yellow: highlights, badges */
    --color-green: #00aa55;        /* green: success, positive */

    /* --- Neutrals --- */
    --color-bg: #fbfbf6;           /* page background (cream) */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-text: #1d1d1b;         /* body text (near-black) */
    --color-grey-warm: #e9e5e0;    /* card backgrounds, light boxes */
    --color-grey-mid: #a9a3a0;     /* secondary text, subtle borders */
    --color-grey-light: #f5f5f5;   /* very light bg, hover states */
    --color-border: #d9d9d9;       /* borders, dividers */

    /* --- Shadows --- */
    --color-shadow: rgba(0,0,0,0.12);
    --shadow-card: 4px 4px 12px var(--color-shadow);
    --shadow-soft: 0 2px 8px rgba(0,0,0,0.08);

    /* --- Shape --- */
    --radius-card: 16px;
    --radius-btn: 50px;
    --radius-sm: 8px;

    /* --- Layout --- */
    --max-width: 1440px;
    /* Horizontal inset of the page-header (kop/subkop) text container
       relative to the body box. One value for ALL pages (batch-1 item 8,
       Willem: ±30px wider per side than the old 60px). */
    --kp-pageheader-pad-x: 30px;

    /* --- Typography --- */
    --font-heading: "PeachyKeenJF", Helvetica, sans-serif;
    --font-body: "Nudica", Helvetica, sans-serif;
}

/* --- Reset for standalone templates --- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    /* `clip` (not `hidden`) stops horizontal scroll WITHOUT creating a scroll
       container — `overflow-x: hidden` on html/body silently breaks the sticky
       header (`position: sticky` needs a viewport-level containing block). (T7) */
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

@media (min-width: 1025px) {
    .kph-body { zoom: 0.9; }

    /* Q1-residu (gemeten oorzaak): binnen de 0.9-zoom wordt de sticky
       top-offset in GEZOOMDE px gerekend (32 × 0.9 = 28.8px visueel),
       terwijl core's html-margin de pagina 32 ECHTE px omlaag duwt — de
       header kroop dus 3.2px omhoog bij het vastklikken. Deel de offset
       door de zoomfactor zodat het vastklikpunt visueel exact op 32px
       ligt (= de bestaande content-naad). Uitgelogd: var afwezig →
       calc(0/0.9) = 0 → ongewijzigd. */
    .kph-body .kph-header {
        top: calc(var(--wp-admin--admin-bar--height, 0px) / 0.9);
    }
}

/* Mobile templates render at 1:1 regardless of viewport width. */
.kph-body-mobile.kph-body { zoom: 1 !important; }

/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  RESPONSIVE BLOCK VISIBILITY                                          ║
   ║  Blocks output both desktop and mobile HTML; these utility classes    ║
   ║  hide whichever is wrong for the current viewport. Gutenberg's        ║
   ║  preview-as-mobile button narrows the canvas → mobile HTML appears.   ║
   ╚════════════════════════════════════════════════════════════════════════╝ */
.kp-desktop-only { display: block; }
.kp-mobile-only  { display: none; }
@media (max-width: 767px) {
    .kp-desktop-only { display: none !important; }
    .kp-mobile-only  { display: block !important; }
}

/* Shared bottom-image inside the order form orange box.
   Overflows below the form's bottom edge so the books "sink into" the page bg. */
.kph-order-form__bottom-image {
    margin: 32px 0 -80px;
    position: relative;
    z-index: 1;
}
.kph-order-form__bottom-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Willem batch #6: NL-doorverwijzing als prominente tekstlink onder het
   bestelformulier (alleen .be). Tekstlink, geen knop. */
.kph-order-form__nl-redirect {
    margin: 16px auto 0;
    max-width: 480px;
    text-align: center;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.4;
}
.kph-order-form__nl-redirect a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Shared "Begin meteen met lezen" CTA block (kpm-eerste). */
.kpm-eerste {
    text-align: center;
    padding: 0 16px;
    margin-bottom: 36px;
    /* MISSED #1 (Willem "knop werkt niet op mobiel"): the prentenboek mobile image
       (width:115%, overflow:visible) + its item-3 .kph-link-overlay (z-index:6) bleed
       down over this "Begin direct" CTA, stealing the tap → /prentenboeken/ instead of
       /bestellen/. Lift the whole CTA section above the overlay so the button's rect
       responds to the button; the rest of the image stays clickable to /prentenboeken/. */
    position: relative;
    z-index: 7;
}
.kpm-btn.kpm-eerste__btn {
    background: var(--color-primary);
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.kpm-eerste__line1,
.kpm-eerste__line2 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 13px;
    color: var(--color-text);
    margin: 0;
}
.kpm-eerste__line1 {
    margin-top: 12px;
}

/* Shared mobile pill button used by [kp_nijntje_mobile], [kp_prentenboek_mobile] and other shortcodes. */
.kpm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 28px;
    background: #FF4000;
    border: 2px solid var(--color-white);
    border-radius: var(--radius-btn);
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 18px;
    color: var(--color-white);
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
    transition: background 0.2s;
}

/* --- Page wrapper --- */
.kph-page {
    background: var(--color-bg);
}


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  HEADER                                                               ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

.kph-header {
    position: sticky;
    /* Q1: ingelogd duwt de WP admin-bar de pagina omlaag (html-margin), maar
       een sticky top:0 plakt aan de viewport-top — bij scrollen kroop de
       header 32px achter de balk (bovenkant afgesneden, "oogt kleiner").
       Core's eigen variabele --wp-admin--admin-bar--height (32px desktop /
       46px ≤782px, alleen geladen mét admin-bar) levert de offset; uitgelogd
       is de var afwezig → fallback 0 → byte-identiek aan voorheen.
       body.admin-bar was hier GEEN optie: de standalone templates zetten een
       hardcoded <body class> zonder body_class(), dus die class bestaat niet. */
    top: var(--wp-admin--admin-bar--height, 0px);
    z-index: 100;
    background: var(--color-white);
    height: 80px;
}

.kph-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 0 60px;
    height: 100%;
}

.kph-header__left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.kph-header__logo {
    width: 126px;
    height: 61px;
    flex-shrink: 0;
}

.kph-header__logo a { display: block; }

.kph-header__logo img {
    width: 126px;
    height: 61px;
    object-fit: contain;
}

.kph-header__nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kph-header__nav a {
    background: #e9e8e3;
    border-radius: 32px;
    padding: 4px 16px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    color: var(--color-black);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.kph-header__nav a:hover { background: #dddcd7; }

.kph-header__trust {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    justify-content: center;
    margin: 0 24px;
    height: 20px;
}

.kph-header__trust-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    gap: 0;
}

.kph-header__trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    margin-right: 48px;
}

.kph-header__trust-item .star-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.kph-header__trust-item span {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    color: var(--color-text);
}

.kph-header__service {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.kph-header__service a {
    border: 1px solid var(--color-border);
    border-radius: 32px;
    padding: 4px 16px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 12px;
    color: var(--color-black);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.kph-header__service a:hover { background: var(--color-grey-light); }

.kph-header__service a.account-btn {
    background: var(--color-text);
    color: var(--color-white);
    border-color: var(--color-text);
}

.kph-header__service a.account-btn:hover { background: #333; }


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  MOBILE HEADER                                                        ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

@media (max-width: 767px) {
    .kph-header { height: 60px; }

    .kph-header__inner { padding: 0 16px; }

    .kph-header__logo { width: 90px; height: 44px; }
    .kph-header__logo img { width: 90px; height: 44px; }

    .kph-header__nav,
    .kph-header__trust { display: none; }

    .kph-header__service { gap: 6px; }
    .kph-header__service a { padding: 6px 10px; font-size: 11px; }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .kph-header__inner { padding: 0 24px; }
    .kph-header__nav { display: none; }
    .kph-header__trust { margin: 0 16px; }
}


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  CTA BUTTON                                                           ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

.kph-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border-radius: var(--radius-btn);
    padding: 10px 40px;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 32px;
    color: var(--color-white);
    text-decoration: none;
    box-shadow: 4px 4px 4px rgba(0,0,0,0.25);
    transition: background 0.2s;
}

.kph-cta-btn:hover { background: var(--color-primary-dark); }

@media (max-width: 767px) {
    .kph-cta-btn {
        font-size: 22px;
        padding: 14px 28px;
        width: 100%;
    }
}


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  CONTENT CARDS                                                        ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

.kph-card {
    flex: 1;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 48px;
}

.kph-card--white  { background: var(--color-white); }
.kph-card--orange { background: var(--color-primary); }

.kph-card h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 32px;
    margin: 0 0 16px;
}

.kph-card--white h3  { color: var(--color-text); }
.kph-card--orange h3 { color: var(--color-bg); }

.kph-card__body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
}

.kph-card--white .kph-card__body  { color: var(--color-text); }
.kph-card--orange .kph-card__body { color: var(--color-bg); }

.kph-card__body p { margin: 0 0 12px; }

.kph-card__btn {
    display: inline-block;
    border-radius: 25px;
    padding: 8px 20px;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 16px;
    text-decoration: none;
    margin-top: 24px;
    transition: opacity 0.2s;
}

.kph-card__btn:hover { opacity: 0.9; }

.kph-card--white .kph-card__btn  { background: var(--color-primary); color: var(--color-white); }
.kph-card--orange .kph-card__btn { background: var(--color-white); color: var(--color-primary); }

@media (max-width: 767px) {
    .kph-card { padding: 32px 24px; }
    .kph-card h3 { font-size: 26px; }
}


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  STATS BAR                                                            ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

.kph-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: center;
    padding: 32px 60px;
    background: var(--color-bg);
}

.kph-stats__pill {
    position: relative;
    background: var(--color-white);
    border: 1px solid var(--color-white);
    border-radius: 8px;
    padding: 10px 24px 10px 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: visible;
}

.kph-stats__pill-icon--protrude {
    position: absolute;
    top: -16px;
    width: 44px;
    height: 44px;
}

.kph-stats__pill:first-child .kph-stats__pill-icon--protrude {
    left: -8px;
}

.kph-stats__pill:last-child .kph-stats__pill-icon--protrude {
    right: -50px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 90px;
    height: 90px;
    overflow: visible;
}

.kph-stats__pill-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.kph-stats__pill-icon svg {
    width: 36px;
    height: 36px;
}

.kph-stats__pill span {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 15px;
    color: var(--color-text);
}

@media (max-width: 767px) {
    .kph-stats {
        flex-direction: column;
        gap: 12px;
        padding: 24px 16px;
    }
    .kph-stats__pill {
        min-width: 0;
        width: 100%;
    }
}


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  REVIEWS CAROUSEL                                                     ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

.kph-reviews {
    background: var(--color-grey-warm);
    border-radius: var(--radius-card);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px 0;
    position: relative;
}

.kph-reviews .kph-stats {
    background: transparent;
    /* Willem #11: nudge the "sinds 1997" stats up to meet the reviews (was 48px). */
    padding-top: 16px;
    padding-bottom: 0;
}

.kph-reviews__stage {
    position: relative;
}

.kph-reviews__cards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 60px;
}

.kph-review-card {
    background: var(--color-white); /* H6 (Willem, email 2): white cards on the grey reviews section */
    border-radius: var(--radius-card);
    border: 1px solid #ccc;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.kph-review-card--side {
    width: 320px;
    height: 240px;
    flex: 0 0 320px;
    padding: 24px 20px;
    opacity: 0.75;
    box-shadow: 4px 4px 16px rgba(0,0,0,0.08);
}

.kph-review-card--side .kph-review-card__stars { margin-bottom: 10px; }
.kph-review-card--side .kph-review-stars-svg { height: 20px; }
.kph-review-card--side .kph-review-card__text  { font-size: 12px; line-height: 18px; }
.kph-review-card--side .kph-review-card__name  { font-size: 12px; }

.kph-review-card--center {
    width: 440px;
    height: 340px;
    flex: 0 0 440px;
    padding: 36px 32px;
    box-shadow: 4px 4px 24px rgba(0,0,0,0.12);
}

.kph-review-card--center .kph-review-card__stars { margin-bottom: 18px; }
.kph-review-card--center .kph-review-stars-svg { height: 32px; }
.kph-review-card--center .kph-review-card__text  { font-size: 16px; line-height: 26px; }
.kph-review-card--center .kph-review-card__name  { font-size: 16px; }

.kph-review-card__stars {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.kph-review-stars-svg {
    height: 28px;
    width: auto;
}

.kph-review-card__text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    color: var(--color-text);
    line-height: 22px;
    text-align: center;
    margin: 0 0 12px;
}

.kph-review-card__name {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 16px;
    color: var(--color-text);
    margin: 0;
}

.kph-reviews__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-white);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 2;
}

.kph-reviews__arrow:hover { background: var(--color-grey-light); }

.kph-reviews__arrow--left  { left: 32px; }
.kph-reviews__arrow--right { right: 32px; }

.kph-reviews__arrow svg {
    width: 20px;
    height: 20px;
    fill: var(--color-text);
}

@media (max-width: 767px) {
    .kph-reviews {
        margin: 0 16px;
        padding: 40px 0;
    }
    .kph-reviews__cards {
        flex-direction: column;
        padding: 0 16px;
        gap: 16px;
    }
    .kph-review-card--side,
    .kph-review-card--center {
        flex: 1 1 auto;
        opacity: 1;
    }
    .kph-reviews__arrow { display: none; }
}


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  MERKEN (PUBLISHER LOGOS)                                             ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

.kph-merken {
    padding: 64px 0;
    position: relative;
    text-align: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

.kph-merken h2 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 32px;
    color: var(--color-black);
    margin: 0 0 32px;
}

/* H7 (Willem, email 2): keep the merken heading on ONE line on desktop. The shared
   merken_heading field carries a <br> for the mobile 2-line wrap; hide it on the
   desktop (.kph-merken) variant so it reads as one line. Mobile (.kpm-merken) keeps it. */
.kph-merken h2 br { display: none; }

.kph-merken__rows {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.kph-merken__track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.kph-merken__track img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .kph-merken { padding: 40px 0; }
    .kph-merken h2 { font-size: 24px; padding: 0 16px; }
    .kph-merken__track img { height: 40px; }
    .kph-merken__track { gap: 32px; }
}


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  FOOTER                                                               ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

.kph-footer {
    background: transparent;
    padding: 24px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

.kph-footer__copyright {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    color: var(--color-black);
}

.kph-footer__copyright a {
    color: var(--color-primary);
    text-decoration: none;
}

.kph-footer__copyright a:hover { text-decoration: underline; }

.kph-footer__nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kph-footer__nav a {
    background: var(--color-bg);
    border-radius: 24px;
    padding: 8px 12px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    color: var(--color-black);
    text-decoration: none;
    transition: background 0.2s;
}

.kph-footer__nav a:hover { background: #ece8e3; }

@media (max-width: 767px) {
    .kph-footer {
        flex-direction: column;
        gap: 16px;
        padding: 24px 16px;
        text-align: center;
    }
    .kph-footer__nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  BOOKSHELF                                                            ║
   ║  Row of overlapping book covers on a brown shelf edge.                ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

.kph-bookshelf {
    max-width: var(--max-width);
    margin: 0 auto;
}

.kph-bookshelf__books {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 48px 60px 0;
}

.kph-bookshelf__books img {
    height: 220px;
    width: auto;
    border-radius: 4px;
    filter: drop-shadow(2px 2px 6px rgba(0,0,0,0.2));
    margin-right: -16px;
    position: relative;
    transition: transform 0.2s, z-index 0s;
}

.kph-bookshelf__books img:last-child {
    margin-right: 0;
}

.kph-bookshelf__books img:nth-child(1) { z-index: 6; }
.kph-bookshelf__books img:nth-child(2) { z-index: 5; }
.kph-bookshelf__books img:nth-child(3) { z-index: 4; }
.kph-bookshelf__books img:nth-child(4) { z-index: 3; }
.kph-bookshelf__books img:nth-child(5) { z-index: 2; }
.kph-bookshelf__books img:nth-child(6) { z-index: 1; }

.kph-bookshelf__books img:hover {
    transform: translateY(-8px);
    z-index: 10;
}

.kph-bookshelf__edge {
    height: 16px;
    background: #68371a;
    border-radius: 10px;
    margin: 0 60px;
}

.kph-bookshelf__caption {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    color: #666;
    margin: 0 0 8px;
    text-align: center;
}

@media (max-width: 767px) {
    .kph-bookshelf__books {
        padding: 32px 16px 0;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    .kph-bookshelf__books img {
        height: 150px;
        flex-shrink: 0;
    }
    .kph-bookshelf__edge { margin: 0 16px; }
}


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  HOW IT WORKS (3 STEPS)                                              ║
   ║  Photo with overlay title + 3 step cards + footnote.                  ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

.kph-how {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
}

.kph-how__photo-wrap {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.kph-how__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kph-how__overlay {
    position: absolute;
    top: 12%;
    left: 6%;
    width: 36%;
}

.kph-how__overlay h2 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 56px;
    color: var(--color-bg);
    line-height: 62px;
    margin: 0;
}

.kph-how__overlay h2 span {
    display: block;
    line-height: 66px;
}

.kph-how__overlay-sub {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 34px;
    color: var(--color-bg);
    margin: 12px 0 0;
}

.kph-how__cards {
    display: flex;
    gap: 24px;
    padding: 0 80px 48px;
    position: relative;
    margin-top: -120px;
    z-index: 10;
}

.kph-how__card {
    background: var(--color-white);
    border-radius: var(--radius-card);
    box-shadow: 4px 4px 16px rgba(0,0,0,0.15);
    flex: 1;
    aspect-ratio: 1 / 1;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.kph-how__card-number {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    background: var(--color-white);
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 32px;
    color: var(--color-text);
    line-height: 1;
}

.kph-how__card-icon {
    width: 80px;
    height: 80px;
    margin: 8px auto;
}

.kph-how__card-icon svg,
.kph-how__card-icon img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.kph-how__card p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 20px;
    color: var(--color-text);
    line-height: 32px;
    margin: 8px 0 0;
}

.kph-how__note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 80px 48px;
    margin-top: -32px;
}

.kph-how__note-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0);
}

.kph-how__note p {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    color: var(--color-black);
    margin: 0;
}

@media (max-width: 767px) {
    .kph-how__photo-wrap { height: 300px; }
    .kph-how__overlay {
        top: 8%;
        left: 5%;
        width: 90%;
    }
    .kph-how__overlay h2 { font-size: 28px; line-height: 32px; }
    .kph-how__overlay h2 span { line-height: 36px; }
    .kph-how__overlay-sub { font-size: 20px; }
    .kph-how__cards {
        flex-direction: column;
        padding: 0 16px 32px;
        margin-top: -60px;
    }
    .kph-how__card { aspect-ratio: auto; }
    .kph-how__card p { font-size: 16px; line-height: 26px; }
    .kph-how__note { padding: 0 16px 32px; margin-top: -16px; }
    .kph-how__note p { font-size: 14px; }
    .kph-how__note-icon { width: 22px; height: 22px; }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .kph-how__overlay h2 { font-size: 36px; line-height: 40px; }
    .kph-how__overlay h2 span { line-height: 44px; }
    .kph-how__overlay-sub { font-size: 24px; }
    .kph-how__cards { padding: 0 32px 40px; margin-top: -80px; }
}


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  PAGE INTRO (title + subtitle block)                                  ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

.kph-intro {
    background: var(--color-bg);
    text-align: center;
    padding: 48px 60px 12px; /* H1: subtitle removed — tighter header→block gap */
}

.kph-intro h1 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 44px;
    color: var(--color-text);
    line-height: 1.1;
    margin: 0;
}

.kph-intro__line2 {
    display: block;
    font-size: 32px;
}

.kph-intro__subtitle {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    color: var(--color-text);
    margin: 16px auto 0;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .kph-intro { padding: 32px 20px 16px; }
    .kph-intro h1 { font-size: 32px; }
    .kph-intro__subtitle { font-size: 16px; }
}


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  TWO-CARD ROW                                                         ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

.kph-two-cards {
    display: flex;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 60px;
}

.kph-two-cards--reversed {
    flex-direction: row-reverse;
}

@media (max-width: 767px) {
    .kph-two-cards {
        flex-direction: column;
        padding: 24px 20px;
    }
    .kph-two-cards--reversed {
        flex-direction: column;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .kph-two-cards { padding: 32px 40px; }
}


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  PAGE CONTENT AREA                                                    ║
   ║  Default spacing for inner page content (non-homepage).               ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

.kph-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 60px;
}

@media (max-width: 767px) {
    .kph-content { padding: 32px 16px; }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .kph-content { padding: 40px 32px; }
}


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  SHARED ORDER FORM                                                    ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

.kph-order-form {
    position: relative;
    background: var(--color-primary);
    border-radius: 20px;
    padding: 110px 80px 48px;
    color: var(--color-white);
    margin-top: 70px;
    max-width: 620px;
    margin-left: 0;
    margin-right: auto;
}

/* Autofill action links inherit the plugin's primary-orange color, which
   matches this card's background — making them invisible. Force white
   inside .kph-order-form so the toggle + Wijzig/Opnieuw zoeken are
   readable. Plugin defaults stay in autofill.css for other contexts. */
.kph-order-form .kpf-manual-toggle,
.kph-order-form .kpf-gevonden-adres__change,
.kph-order-form .kpf-gevonden-adres__reset {
    color: var(--color-white);
}

/* Circle badge straddling the top edge of the card, anchored top-left */
.kph-order-form__badge {
    position: absolute;
    top: -70px;
    left: 48px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--color-white);
    border: 4px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.28);
    z-index: 3;
}

.kph-order-form__badge span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    color: var(--color-text);
    line-height: 1.15;
}

.kph-order-form__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kph-order-form__section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.kph-order-form__section + .kph-order-form__section {
    margin-top: 16px;
}

.kph-order-form__section-title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 26px;
    color: var(--color-white);
    margin: 0;
    line-height: 1.1;
}

.kph-order-form__section-sub {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    color: var(--color-white);
    margin: 0 0 6px;
    line-height: 1.4;
}

.kph-order-form__label {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    color: var(--color-white);
    margin-top: 6px;
}

.kph-order-form__row {
    display: flex;
    gap: 10px;
}

.kph-order-form__address .kph-order-form__row + .kph-order-form__row {
    margin-top: 10px;
}

.kph-order-form__field {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.kph-order-form__field input,
.kph-order-form__field select {
    font-family: var(--font-body);
    font-size: 14px;
    padding: 12px 14px;
    border: none;
    border-radius: 8px;
    background: var(--color-white);
    color: var(--color-text);
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.kph-order-form__field input::placeholder {
    color: var(--color-grey-mid);
}

/* Inline format-validatie (e-mail/telefoon) op het bestelformulier — Willem.
   Melding onder het veld + rode rand; additieve klassen, los van de landing-
   validator (.kp-field-error). */
.kph-order-form__field-error {
    display: block;
    color: #b00020;
    font-size: 12px;
    line-height: 1.3;
    margin: 4px 2px 0;
}
.kph-order-form__field input.is-invalid {
    box-shadow: 0 0 0 2px #b00020;
}

.kph-order-form__field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23a9a3a0' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 7px;
    padding-right: 30px;
    color: var(--color-grey-mid);
}

.kph-order-form__field select:valid,
.kph-order-form__field select option:not(:disabled) {
    color: var(--color-text);
}

.kph-order-form__field input:focus,
.kph-order-form__field select:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.4);
}

/* Consent checkbox row */
.kph-order-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-white);
    line-height: 1.55;
    cursor: pointer;
}

.kph-order-form__consent input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background: var(--color-white);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 2px;
    position: relative;
}

.kph-order-form__consent input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 0px;
    width: 6px;
    height: 11px;
    border: solid var(--color-primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.kph-order-form__consent a {
    color: var(--color-white);
    text-decoration: underline;
}

/* The wp_kses_post() output of the consent text (ACF wysiwyg) wraps the
   text in a <p>. Without these resets the <p>'s default 1em top margin
   pushes the first text line down past the checkbox, so the consent
   visually appears stacked even though the parent is flex-row. Mirrors
   the 43e10f4 fix on .kpreg-form__consent / .kpodm-form__consent. */
.kph-order-form__consent > span {
    flex: 1;
    min-width: 0;
}
.kph-order-form__consent p {
    margin: 0;
}

/* Submit button — pill, left aligned, not full width */
.kph-order-form__submit-wrap {
    margin-top: 22px;
}

.kph-order-form__submit {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 28px;
    color: var(--color-white);
    background: #ff4000;
    border: 3px solid var(--color-white);
    border-radius: 999px;
    padding: 4px 54px;
    cursor: pointer;
    transition: transform 0.2s;
    line-height: 1.2;
}

.kph-order-form__submit:hover {
    transform: scale(1.04);
}

@media (max-width: 767px) {
    .kph-order-form {
        padding: 90px 20px 32px;
        margin-top: 60px;
    }
    .kph-order-form__badge {
        width: 120px;
        height: 120px;
        top: -60px;
        left: 20px;
    }
    .kph-order-form__badge span { font-size: 15px; }
    .kph-order-form__section-title { font-size: 22px; }
    .kph-order-form__row {
        flex-wrap: wrap;
    }
    .kph-order-form__row .kph-order-form__field {
        flex: 1 1 100%;
    }
    .kph-order-form__row--two .kph-order-form__field {
        flex: 1 1 calc(50% - 5px);
    }
    .kph-order-form__row--two .kph-order-form__field--short {
        flex: 0 1 40%;
    }
    .kph-order-form__row--three .kph-order-form__field {
        flex: 1 1 calc(33.333% - 7px);
    }
    .kph-order-form__submit {
        width: 100%;
        font-size: 24px;
        padding: 14px 24px;
    }
}

.kph-order-form__date-label {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    color: var(--color-white);
    margin: 8px 0 0;
}


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  SHARED ORDER BLOCK — two columns (overlapping books + order form)   ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

/* Sentinel anchor used by "Bestellen" buttons on nijntje + prentenboek
   pages. Sits outside the dual-render wrappers so #bestellen has exactly
   one target per page regardless of viewport. scroll-margin-top covers
   the sticky header (80px desktop, 56px mobile). */
.kp-anchor {
    display: block;
    height: 0;
    scroll-margin-top: 100px;
}

.kph-form-block-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 60px 64px;
}

.kph-form-block {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.kph-form-block__images {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    /* Centred cluster (like the /prentenboeken/ composite, which renders via
       align-items:center) — the covers form a centred diagonal zigzag in the
       40% column, not a left-anchored stack (Dick 2026-06-14). */
    align-items: center;
    gap: 0;
    /* Drop the loose-cover stack down to match the /prentenboeken/ composite's
       vertical position (Dick 2026-06-14): the composite books sit ~100px below
       the order-form card top, not flush with it. Tuned against /prentenboeken/. */
    padding-top: 175px;
}

.kph-form-block__images img {
    /* Sized DOWN to match the book size in the /prentenboeken/ composite
       (Dick 2026-06-14) — the loose covers were too big. contain (not cover)
       shows the FULL cover, top-anchored — loose covers have varying ratios
       (≈0.65–0.99) so `cover` cropped them ("half, not on top"). drop-shadow
       (not box-shadow) hugs the actual cover, like .kph-form-block__main. */
    width: 220px;
    height: 280px;
    object-fit: contain;
    object-position: top;
    border-radius: 6px;
    filter: drop-shadow(5px 8px 18px rgba(0,0,0,0.22));
    display: block;
}

/* Square book variant (Nijntje) — preserve full cover, no crop, no shadow.
   Square box = match the loose-cover width (220) so it stays 1:1. */
.kph-form-block__images--square img {
    height: 220px;
    object-fit: contain;
    background: transparent;
    box-shadow: none;
    filter: none;
    border-radius: 0;
}

/* Centred zigzag fan: each cover is centred in the column (align-items:center),
   then offset symmetrically L/R so the diagonal is balanced around the column
   middle and fans out like the composite — not biased to one side. translateX
   keeps the centring math intact (unlike margin, which would shift it). */
/* Slight alternating tilt = the fanned look baked into the /prentenboeken/
   composite (Dick 2026-06-14). drop-shadow rotates with each cover, so they
   read as fanned-out books rather than an upright stack. */
.kph-form-block__images img:nth-child(1) {
    transform: translateX(-42px) rotate(-6deg);
    margin-bottom: -85px;
    z-index: 1;
}
.kph-form-block__images img:nth-child(2) {
    transform: translateX(42px) rotate(5deg);
    margin-bottom: -85px;
    z-index: 2;
}
.kph-form-block__images img:nth-child(3) {
    transform: translateX(-6px) rotate(-2deg);
    z-index: 3;
}

.kph-form-block__images--square img:nth-child(1),
.kph-form-block__images--square img:nth-child(2) {
    margin-bottom: -70px;
}

.kph-form-block__right {
    flex: 0 0 60%;
    min-width: 0;
}

/* Single composite image (replaces the 3-book stack) — overlaps onto form's left side */
.kph-form-block__main-wrap {
    flex: 0 0 40%;
    min-width: 0;
    padding-top: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
    position: relative;
    z-index: 2;
}
.kph-form-block__main-wrap > .kph-form-block__main {
    flex-shrink: 0;
}
.kph-form-block__main {
    width: 600px;
    max-width: none;
    height: auto;
    transform: translate(0, 80px);
    filter: drop-shadow(6px 10px 18px rgba(0,0,0,0.22));
}

@media (max-width: 767px) {
    .kph-form-block-wrap { padding: 0 16px 40px; }
    .kph-form-block {
        flex-direction: column;
        gap: 24px;
    }
    .kph-form-block__images {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 12px;
        padding-top: 0;
    }
    .kph-form-block__images img {
        width: calc(33.33% - 8px);
        height: auto;
        aspect-ratio: 284 / 362;
        margin: 0 !important;
    }
    .kph-form-block__images--square img {
        aspect-ratio: 1;
        object-fit: contain;
    }
}


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  SPECIALS BLOCK (shared-specials.php)                                 ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

.kph-specials {
    text-align: center;
    padding: 32px 0 100px;
    overflow: visible;
}

.kph-specials__heading {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 24px;
    color: var(--color-text);
    margin: 0 0 24px;
}

.kph-specials__cards {
    display: flex;
    gap: 16px;
    padding: 0;
    max-width: 1440px;
    margin: 0 auto;
    justify-content: center;
    overflow: visible;
}

.kph-special-card {
    width: 586px;
    height: 434px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: visible;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 20px 0;
    box-sizing: border-box;
}

.kph-special-card--nijntje     { background: var(--color-accent); }
.kph-special-card--prentenboek { background: var(--color-green); }

.kph-special-card h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 36px;
    text-align: center;
    margin: 0 0 16px;
}

.kph-special-card--nijntje h3      { color: var(--color-black); }
.kph-special-card--prentenboek h3  { color: var(--color-bg); }

.kph-special-card__text p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    text-align: center;
    max-width: 380px;
    margin: 0 auto 24px;
}

.kph-special-card--nijntje .kph-special-card__text p      { color: var(--color-black); }
.kph-special-card--prentenboek .kph-special-card__text p  { color: var(--color-bg); }

.kph-special-card__btn {
    background: var(--color-white);
    border-radius: 25px;
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 16px;
    color: var(--color-text);
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}

.kph-special-card__btn:hover { background: #f0f0f0; }

.kph-special-card__btn { position: absolute; bottom: 30px; }
.kph-special-card--nijntje .kph-special-card__btn { right: 40px; }
.kph-special-card--prentenboek .kph-special-card__btn { left: 40px; }

/* Item 3 (Willem 25 Jun): homepage package images/cards clickable to their
   pages — mirrors the proven /pakketten/ .kpp-card__link stretched overlay
   (pakketten.css). Transparent inset:0 anchor over a position:relative parent;
   zero visual change. Used on: .kph-hero__books (regular → /pakketten/),
   .kph-special-card (nijntje/prentenboek desktop), and the mobile books
   containers. The "Lees meer" button is raised above so it stays a real
   focusable link to the same target. */
.kph-link-overlay { position: absolute; inset: 0; z-index: 6; cursor: pointer; }
.kph-special-card__btn { z-index: 7; }
.kpm-nijntje__books,
.kpm-prentenboek__books { position: relative; }

/* Nijntje inner books */
.kph-nijntje-inner-books {
    display: flex;
    gap: 0;
    align-items: flex-end;
    justify-content: center;
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-40%);
}

.kph-nijntje-inner-books img {
    height: 70px !important;
    max-height: 70px !important;
    width: auto !important;
    max-width: 65px !important;
    object-fit: contain;
    filter: drop-shadow(2px 3px 5px rgba(0,0,0,0.25));
    margin-right: -12px;
}

.kph-nijntje-inner-books img:last-child {
    margin-right: 0;
}

.kph-nijntje-inner-books img:nth-child(1) { transform: rotate(-6deg); }
.kph-nijntje-inner-books img:nth-child(2) { transform: rotate(-3deg); }
.kph-nijntje-inner-books img:nth-child(3) { transform: rotate(-1deg); }
.kph-nijntje-inner-books img:nth-child(4) { transform: rotate(2deg); }
.kph-nijntje-inner-books img:nth-child(5) { transform: rotate(4deg); }
.kph-nijntje-inner-books img:nth-child(6) { transform: rotate(7deg); }

/* Prentenboek inner books */
.kph-prentenboek-inner-books,
.kph-special-card--prentenboek > div:not(.kph-special-card__text) {
    display: flex;
    align-items: flex-end !important;
    gap: 0 !important;
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
}

.kph-prentenboek-inner-books img,
.kph-special-card--prentenboek > div:not(.kph-special-card__text) img {
    height: 110px !important;
    max-height: 110px !important;
    width: auto !important;
    max-width: 95px !important;
    object-fit: contain;
    margin-right: -8px;
}

.kph-prentenboek-inner-books img:last-child,
.kph-special-card--prentenboek > div:not(.kph-special-card__text) img:last-child { margin-right: 0; }

.kph-prentenboek-inner-books img:nth-child(1),
.kph-special-card--prentenboek > div:not(.kph-special-card__text) img:nth-child(1) { transform: rotate(-4deg) translateY(0px); }
.kph-prentenboek-inner-books img:nth-child(2),
.kph-special-card--prentenboek > div:not(.kph-special-card__text) img:nth-child(2) { transform: rotate(-2deg) translateY(8px); }
.kph-prentenboek-inner-books img:nth-child(3),
.kph-special-card--prentenboek > div:not(.kph-special-card__text) img:nth-child(3) { transform: rotate(1deg)  translateY(-4px); }
.kph-prentenboek-inner-books img:nth-child(4),
.kph-special-card--prentenboek > div:not(.kph-special-card__text) img:nth-child(4) { transform: rotate(3deg)  translateY(6px); }
.kph-prentenboek-inner-books img:nth-child(5),
.kph-special-card--prentenboek > div:not(.kph-special-card__text) img:nth-child(5) { transform: rotate(5deg)  translateY(-2px); }

/* --- KPF form feedback messages --- */
.kpf-form-message:empty { display: none; }
.kpf-form-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    /* Clear vertical gap above the message so it doesn't crowd the submit
       button it sits below (forms.js positions it there). (item T4a) */
    margin-top: 24px;
    margin-bottom: 16px;
}
.kpf-form-message.kpf-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
.kpf-form-message.kpf-error {
    background: #fbe9e7;
    color: #c62828;
    border: 1px solid #ef9a9a;
}


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  NIJNTJE MOBILE (shared block — [kp_nijntje_mobile])                  ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

.kpm-nijntje {
    border-radius: var(--radius-card);
    margin: 0 16px -20px;
    padding: 32px 0 20px;
    text-align: center;
    position: relative;
    overflow: visible;
    isolation: isolate;
}

.kpm-nijntje::before {
    content: '';
    position: absolute;
    inset: 0;
    bottom: 150px;
    background: var(--color-accent);
    border-radius: var(--radius-card);
    z-index: -1;
}

.kpm-nijntje__heading {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 28px;
    line-height: 1.2;
    color: var(--color-text);
    margin: 0 0 12px;
    padding: 0 24px;
}

.kpm-nijntje__text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0 0 24px;
    padding: 0 24px;
}

.kpm-nijntje__books {
    text-align: center;
}

.kpm-nijntje__books img {
    width: 100%;
    height: auto;
}

.kpm-nijntje__books--wide {
    margin: 0 -50px;
}

/* Mobiele nijntje-cover-strip — Willem 2026-06-13 (re-verify item 2): toont de
   "Nijntje boeken"-galerij (max 4, grotere covers) ipv de oude composiet-hero,
   zodat Willems galerij-edits ook op mobiel terugkomen. Nieuwe selector (additief
   — raakt geen bestaande regel). Centrale rij, licht overlappend zoals desktop. */
.kpm-nijntje__gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
    padding: 0 16px;
    position: relative;
    z-index: 2;
}

.kpm-nijntje__gallery img {
    height: 132px;
    width: auto;
    border-radius: 4px;
    box-shadow: 4px 4px 12px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.kpm-btn.kpm-btn--nijntje {
    position: relative;
    z-index: 2;
    background: var(--color-white);
    color: var(--color-text);
    border: none;
    font-size: 14px;
    min-height: 28px;
    padding: 0 44px;
    /* Willem #8: was margin-top:20px + translateY(-10px), which pulled the
       button up so the overlap cover (below) rode over it. Sit the button
       clear between the two covers — no overlap.
       Willem #3 (2026-06-23): vertical spacing now lives on .kpm-nijntje__btn-wrap. */
    margin: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Willem #3 (2026-06-23): nijntje "lees meer" rechts uitlijnen (zoals de
   prentenboek-knop) en de ruimte erboven/eronder verkleinen. De knop zit in een
   eigen wrap die de centrering van .kpm-nijntje overschrijft (text-align:right);
   spacing op de wrap i.p.v. op de knop. Mirror van .kpm-prentenboek__btn-wrap. */
.kpm-nijntje__btn-wrap {
    text-align: right;
    padding: 0 24px;
    margin: 6px 0 10px;
}

.kpm-btn--nijntje:active {
    background: #f0f0f0;
}

.kpm-nijntje__books--overlap {
    position: relative;
    z-index: 1;
    /* Willem #8: was margin-top:-66px, which pulled this cover up over the
       "Lees meer" button. Let it sit below the button, clear of it. */
    margin: 8px 10px 0;
}


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  PRENTENBOEK MOBILE (shared block — [kp_prentenboek_mobile])          ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

.kpm-prentenboek {
    border-radius: var(--radius-card);
    margin: 0 16px -55px;
    padding: 32px 0 20px;
    text-align: center;
    overflow: visible;
    position: relative;
    isolation: isolate;
}

.kpm-prentenboek::before {
    content: '';
    position: absolute;
    inset: 0;
    bottom: 185px;
    background: var(--color-green);
    border-radius: var(--radius-card);
    z-index: -1;
}

.kpm-prentenboek__heading {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 24px;
    line-height: 1.2;
    color: var(--color-white);
    margin: 0 0 12px;
    padding: 0 24px;
    overflow-wrap: break-word;
}

.kpm-prentenboek__text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-white);
    margin: 0 0 24px;
    padding: 0 24px;
}

.kpm-prentenboek__books {
    text-align: center;
    overflow: visible;
}

.kpm-prentenboek__books img {
    width: 115%;
    height: auto;
    margin-left: -7.5%;
}

/* Mobiele prentenboek-cover-strip — Willem 2026-06-13 (re-verify item 3): toont de
   "Prentenboek covers"-galerij (lidmaatschap + volgorde) ipv de oude composiet,
   zodat een toegevoegd boek verschijnt en Dikkie Dik verwijderd kan worden. Nieuwe
   selector (additief — raakt geen bestaande regel). */
.kpm-prentenboek__gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    padding: 0 16px 8px;
    position: relative;
    z-index: 2;
}

.kpm-prentenboek__gallery img {
    height: 120px;
    width: auto;
    border-radius: 4px;
    box-shadow: 4px 4px 12px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.kpm-prentenboek__btn-wrap {
    text-align: right;
    padding: 0 24px;
    margin-bottom: 20px;
}

.kpm-btn.kpm-btn--prentenboek {
    background: var(--color-white);
    color: var(--color-text);
    border: none;
    font-size: 15px;
    min-height: 30px;
    padding: 0 44px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.kpm-btn--prentenboek:active {
    background: #f0f0f0;
}


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  HOW MOBILE (shared block — [kp_how_mobile])                          ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

.kpm-how {
    margin: 0 16px 60px;
    position: relative;
}

.kpm-how__photo {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 60px;
    border-radius: var(--radius-card);
    overflow: hidden;
}

.kpm-how__photo > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 64% -78px;
    display: block;
}

.kpm-how__overlay {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    text-align: center;
}

.kpm-how__overlay h2 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 34px;
    color: var(--color-bg);
    line-height: 1.15;
    margin: 0;
}

.kpm-how__overlay h2 span {
    display: block;
}

.kpm-how__overlay p {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 22px;
    color: var(--color-bg);
    margin: 8px 0 0;
}

.kpm-how__steps {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding-top: 450px;
}

.kpm-how__step {
    width: 80%;
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-card);
    box-shadow: 4px 4px 16px rgba(0,0,0,0.15);
    padding: 32px 16px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 115px;
}

.kpm-how__step-num {
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    background: var(--color-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--color-text);
}

.kpm-how__step-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
}

.kpm-how__step-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.kpm-how__step p {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text);
    margin: 0;
}

.kpm-how__note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 80%;
    margin: 28px auto 0;
}

/* Willem #5 (2026-06-23): de "Profiteer van veel voordeel … jouw pakket"-voetnoot
   was op mobiel te prominent (icoon 54px, tekst 16px). Teruggebracht naar de
   desktop-verhouding (.kph-how__note: icoon 28px, tekst 14px op smal scherm) zodat
   hij net zo bescheiden oogt als op desktop. */
.kpm-how__note img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(0);
}

.kpm-how__note p {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    color: var(--color-black);
    margin: 0;
}


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  REVIEWS MOBILE                                                       ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

.kpm-reviews {
    background: var(--color-grey-warm);
    padding: 36px 0 36px;
    margin: 0 16px 36px;
    overflow: hidden;
}

.kpm-reviews__track {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 0 16px;
    transition: transform 0.3s ease;
}

.kpm-reviews__card {
    background: var(--color-white); /* H6 (Willem, email 2): white cards on the grey reviews section */
    border-radius: var(--radius-card);
    padding: 28px 24px;
    width: calc(100vw - 72px);
    min-width: calc(100vw - 72px);
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.kpm-reviews__stars {
    margin-bottom: 16px;
    text-align: center;
}

.kpm-reviews__stars img {
    height: 24px;
    width: auto;
}

.kpm-reviews__text {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0 0 16px;
    text-align: center;
}

.kpm-reviews__name {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 20px;
    color: var(--color-text);
    margin: 0;
    text-align: center;
}

.kpm-reviews__nav {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding: 0 16px;
}

.kpm-reviews__arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--color-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    color: var(--color-grey-warm);
}

.kpm-reviews__arrow svg {
    width: 22px;
    height: 22px;
}


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  STATS BANNERS MOBILE                                                 ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

.kpm-stats {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px 16px 0;
}

.kpm-stats__pill {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    background: var(--color-white);
    border-radius: 5px;
    padding: 6px 16px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: var(--color-text);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    position: relative;
    overflow: visible;
    white-space: nowrap;
}

/* First pill — beker protrudes ABOVE the pill on the left (like desktop) */
.kpm-stats__pill:first-child .kpm-stats__icon {
    position: absolute;
    top: -16px;
    left: 10px;
    width: 42px;
    height: 42px;
}
.kpm-stats__pill:first-child .kpm-stats__icon img {
    height: 42px;
    width: auto;
    display: block;
}
.kpm-stats__pill:first-child > span:not(.kpm-stats__icon) {
    margin-left: 44px;
}

/* Second pill — fireworks float to the right, smaller + lighter than before */
.kpm-stats__pill:last-child {
    justify-content: space-between;
    padding-right: 40px;
}
.kpm-stats__pill:last-child .kpm-stats__icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
}
.kpm-stats__pill:last-child .kpm-stats__icon svg {
    height: 30px;
    width: auto;
    display: block;
}
.kpm-stats__pill:last-child .kpm-stats__icon svg path[stroke] {
    stroke-width: 1.4;
}


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  MERKEN MOBILE                                                        ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

.kpm-merken {
    margin: 0 16px 36px;
    text-align: center;
    overflow: hidden;
}

.kpm-merken__title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 20px;
    color: var(--color-text);
    margin: 0 0 44px;
}

.kpm-merken__row {
    overflow: hidden;
    margin-bottom: 12px;
}

.kpm-merken__track {
    display: flex;
    gap: 24px;
    animation: kpm-marquee 40s linear infinite;
    width: max-content;
}

.kpm-merken__track--reverse {
    animation: kpm-marquee-reverse 40s linear infinite;
}

.kpm-merken__track img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
}

@keyframes kpm-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes kpm-marquee-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  FOOTER MOBILE                                                        ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

.kpm-footer {
    padding: 32px 16px 24px;
    text-align: center;
}

.kpm-footer__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.kpm-footer__nav a {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-black);
    text-decoration: none;
}

.kpm-footer__copyright {
    font-family: var(--font-body);
    font-size: 12px;
    color: #999;
}

.kpm-footer__copyright a {
    color: #999;
    text-decoration: none;
}

.kpm-footer__hosted {
    font-family: var(--font-body);
    font-size: 11px;
    color: #bbb;
    margin-top: 8px;
}

.kpm-footer__hosted a {
    color: #bbb;
    text-decoration: none;
}


/* ╔════════════════════════════════════════════════════════════════════════╗
   ║  MOBILE HEADER + NAV (parts/mobile-header.php)                        ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

.kpm-nav-open { overflow: hidden; }

/* Q1 — admin-bar <600px is position:absolute en scrolt weg; offset terug
   naar 0 zodat de header geen 46px-gat overhoudt (geen stotteren: op
   scrollpositie 0 staat de header al onder de balk via de html-margin).
   Alleen-ingelogd gedrag; bezoekers hebben de variabele niet. */
@media (max-width: 600px) {
    .kph-header, .kpm-header { top: 0; }
}


.kpm-header {
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0px);   /* Q1 — zie .kph-header */
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    background: var(--color-white);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.kpm-header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.kpm-header__logo img {
    height: 44px;
    width: auto;
}

.kpm-header__burger {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.kpm-header__burger span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.kpm-header__burger.is-open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.kpm-header__burger.is-open span:nth-child(2) {
    opacity: 0;
}

.kpm-header__burger.is-open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Willem (email 2): mobile menu is a centered card over a dimmed page — not
   full-screen. Backdrop dims the page (header stays above it so the X closes it);
   the panel fades/scales in centered. Big full-width rows keep it finger-friendly. */
.kpm-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.kpm-nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.kpm-nav {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    width: calc(100% - 56px);
    max-width: 320px;
    z-index: 99;
    background: var(--color-white);
    border-radius: var(--radius-card);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.kpm-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.kpm-nav a {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--color-text);
    text-decoration: none;
    text-align: center;
    padding: 13px 16px;          /* ~48px tap target */
    border-radius: var(--radius-sm);
}

.kpm-nav a:not(.kpm-nav__account):active {
    background: var(--color-grey-light);
}

.kpm-nav__account {
    margin-top: 6px;
    background: var(--color-primary);
    color: var(--color-white) !important;
    border-radius: var(--radius-btn);
    font-size: 20px !important;
}

/* Voorwaarden popup (Willem 25-Jun MISSED #2) — the shared .kp-tc-modal, here in
   shared.css so it is styled wherever the form_voorwaarden popup renders (the
   pakket order pages via shared-order-form, plus /bestellen/ which also has a copy
   in registreren.css and the landing pages in landing.css — identical rules). */
.kp-tc-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.5); padding: 20px; }
.kp-tc-modal.is-open { display: flex; }
.kp-tc-modal__box {
    position: relative; background: var(--color-white); color: var(--color-black);
    max-width: 560px; width: 100%; max-height: 85vh; overflow-y: auto;
    border-radius: 8px; padding: 28px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
    font-family: var(--font-body, sans-serif); font-size: 14px; line-height: 1.5;
}
.kp-tc-modal__box h3 { font-family: var(--font-body); font-size: 16px; font-weight: 700; margin: 16px 0 4px; color: var(--color-black); }
.kp-tc-modal__box h3:first-child { margin-top: 0; }
.kp-tc-modal__box p { margin: 0 0 10px; }
.kp-tc-modal__close { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--color-black); }
