/* ==========================================================================================================
   70-content.css — contentpagina's (uit Elementor omgezet door tools/scripts/content-convert.php), contactformulier,
   klassieke pagina's (FAQ, retourbeleid), blog, berichten, zoeken en 404.
   Maten 1-op-1 uit de Elementor-instellingen van de oude site. Breekpunten (Elementor-kit):
   mobiel ≤767 · tablet 768–1024 · laptop 1025–1440 · desktop 1441–2399 · breedbeeld ≥2400.
   ========================================================================================================== */

/* Verbergen per apparaat (Elementor hide_*) — ook gebruikt op de homepage. */
@media (min-width: 2400px) { .aj-hide-widescreen { display: none !important; } }
@media (min-width: 1441px) and (max-width: 2399px) { .aj-hide-desktop { display: none !important; } }
@media (min-width: 1025px) and (max-width: 1440px) { .aj-hide-laptop { display: none !important; } }
@media (min-width: 768px) and (max-width: 1024px) { .aj-hide-tablet { display: none !important; } }
@media (max-width: 767px) { .aj-hide-mobile { display: none !important; } }

/* --- Omgezette inhoud: basis (zoals Elementor-widgets) ------------------------------------------------------ */
.aj-content { width: 100%; }
.aj-content :where(h1, h2, h3, h4, h5, h6):where(:not(.aj-text *)) { margin: 0; padding: 0; line-height: 1; color: var(--e-global-color-primary, #4077e3); }
.aj-content :where(h1, h2, h3, h4, h5, h6):where(:not(.aj-text *)) a { color: inherit; font-size: inherit; line-height: inherit; text-decoration: none; }
.aj-content :where(h1, h2, h3, h4, h5, h6):where(:not(.aj-text *)) a:hover { color: #153a83; }
.aj-content a { text-decoration: none; }
.aj-content .aj-text a { text-decoration: underline; }
.aj-content .wp-block-image { margin: 0; }
.aj-content .wp-block-image img { display: block; }
.aj-content figure { margin: 0; }

/* Paginakop (titel + lijn) */
.aj-content-head { display: flex; flex-direction: column; padding: 3% 4%; border-bottom: 1px solid var(--e-global-color-primary, #4077e3); }
.aj-content-title { font-size: 60px; font-weight: 800; }
.aj-content--legal .aj-content-title,
.aj-content--tracking .aj-content-title { font-size: 50px; }
@media (max-width: 1440px) {
	.aj-content--legal .aj-content-head,
	.aj-content--tracking .aj-content-head { padding: 4%; }
}
@media (max-width: 767px) {
	.aj-content .aj-content-head { padding: 12% 4%; }
	.aj-content .aj-content-title { font-size: 35px; }
	.aj-content--about .aj-content-title { font-size: 50px; }
	.aj-content--tracking .aj-content-title { font-size: 31px; line-height: 1.3; }
	html[lang^="en"] .aj-content--contact .aj-content-title { font-size: 50px; text-align: center; }
}

/* --- Contact ---------------------------------------------------------------------------------------------- */
.aj-content--contact .aj-content-body { display: flex; flex-direction: row; gap: 0; padding: 0 5% 0 4%; }
.aj-content--contact .aj-col--1 { display: flex; flex-direction: column; flex: none; width: 50.13%; gap: 30px; padding: 50px 0 30px; border-right: 1px solid var(--e-global-color-primary, #4077e3); box-sizing: border-box; }
.aj-content--contact .aj-col--2 { display: flex; flex-direction: column; width: 50%; padding: 30px 0 30px 30px; box-sizing: border-box; }
.aj-content--contact .aj-stack { display: flex; flex-direction: column; gap: 0; }
.aj-content--contact .aj-stack > h2:first-child { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.aj-content--contact .aj-stack > h2 + h2 { font-size: 22px; font-weight: 500; line-height: 32px; margin: 5px 0 15px; width: 357px; max-width: 100%; }
.aj-content--contact .aj-col--1 > .aj-stack:nth-child(1) > h2 + h2 { font-size: 23px; line-height: 1; }
.aj-content--contact .aj-col--1 > .aj-stack:nth-child(2) > h2 + h2 { width: 347px; }
.aj-content--contact .aj-text p { margin: 0 0 20px; }
.aj-content--contact .aj-text a { color: #cc3366; }
html[lang^="en"] .aj-content--contact .aj-stack { gap: 20px; }
html[lang^="en"] .aj-content--contact .aj-stack .aj-stack { gap: 0; }
html[lang^="en"] .aj-content--contact .aj-col--1 > .aj-stack > h2 + h2 { line-height: 1; width: 357px; }
@media (min-width: 768px) { html[lang^="en"] .aj-content--contact .aj-col--1 { width: 50%; gap: 20px; } }
@media (min-width: 1025px) { html[lang^="en"] .aj-content--contact .aj-col--1 > .aj-stack > h2 + h2 { font-size: 23px; } }
@media (max-width: 1024px) {
	.aj-content--contact .aj-stack > h2:first-child { font-size: 24px; }
	.aj-content--contact .aj-stack > h2 + h2,
	.aj-content--contact .aj-col--1 > .aj-stack:nth-child(1) > h2 + h2 { font-size: 24px; }
}
@media (max-width: 767px) {
	.aj-content--contact .aj-content-body { flex-direction: column; padding: 20px 0; }
	.aj-content--contact .aj-col--1 { width: 100%; padding: 4%; gap: 20px; border-right: 0; border-bottom: 1px solid var(--e-global-color-primary, #4077e3); }
	.aj-content--contact .aj-col--2 { width: 100%; padding: 9% 4% 10%; }
	/* oud (DE/FR, geen Turnstile): knop 25 px onder het tekstvak i.p.v. 24 (gemeten 390) */
	.aj-cf__field--textarea + .aj-cf__field--submit { margin-top: 1px; }
	.aj-content--contact .aj-stack > h2:first-child { font-size: 21px; }
	.aj-content--contact .aj-stack > h2 + h2,
	.aj-content--contact .aj-col--1 > .aj-stack:nth-child(1) > h2 + h2 { font-size: 17px; line-height: 1.7em; }
	.aj-content--contact .aj-col--1 > .aj-stack:nth-child(1) > h2 + h2 { line-height: 1; }
	html[lang^="en"] .aj-content--contact .aj-stack > h2:first-child { font-size: 28px; }
	html[lang^="en"] .aj-content--contact .aj-stack .aj-stack > h2:first-child { font-size: 21px; }
	html[lang^="en"] .aj-content--contact .aj-stack > h2 + h2,
	html[lang^="en"] .aj-content--contact .aj-col--1 > .aj-stack > h2 + h2 { font-size: 22px; line-height: 1; }
}

/* --- Contactformulier (aj/contact-form) — zoals het Elementor-formulier ------------------------------------ */
.aj-contact-form { width: 100%; }
.aj-cf { margin: 0; position: relative; }
.aj-cf__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.aj-cf .screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; white-space: nowrap; }
.aj-cf__fields { display: flex; flex-direction: column; gap: 24px; }
.aj-cf__field { margin: 0; }
.aj-cf .aj-cf__input { display: block; width: 100%; box-sizing: border-box; margin: 0; padding: 12px 24px; font-family: "Manrope", sans-serif; font-size: 19px; font-weight: 500; line-height: 1.4; color: #4077e3; background: #fff; border: 1px solid #4077e3; border-radius: 50px; outline: 0; min-height: 0; box-shadow: none; }
.aj-cf .aj-cf__input:focus { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.aj-cf .aj-cf__textarea { padding: 30px; resize: vertical; }
/* Zoals de Turnstile-integratie in het Elementor-formulier: 10px boven, widget 71px hoog, 16px tot de knop. */
.aj-cf__field--turnstile { padding-top: 10px; margin-bottom: -8.5px; }
.aj-cf__field--turnstile .cf-turnstile { min-height: 71px; }
.aj-cf__field--turnstile br { display: none; }
.aj-cf .aj-cf__button { display: flex; align-items: center; justify-content: center; width: 100%; margin: 0; padding: 16px 20px; font-family: "Manrope", sans-serif; font-size: 19px; font-weight: 500; line-height: 1; text-transform: none; background: #ffffd2; border: 1px solid #4077e3; border-radius: 50px; cursor: pointer; transition: background-color .3s; }
.aj-cf .aj-cf__button:hover,
.aj-cf .aj-cf__button:focus-visible { background: #f7f7df; }
.aj-cf .aj-cf__button[disabled] { opacity: .6; cursor: progress; }
.aj-cf__message { margin: 10px 0; font-size: 16px; line-height: 1.2; }
.aj-cf__message.is-success { color: #5cb85c; }
.aj-cf__message.is-error { color: #d9534f; }
html[lang^="en"] .aj-cf .aj-cf__button { padding: 10px 20px 9px; }

/* --- Over ons ---------------------------------------------------------------------------------------------- */
.aj-content--about .aj-content-body { display: flex; flex-direction: column; padding: 5% 4%; max-width: 2200px; margin: 0 auto; box-sizing: border-box; }
.aj-content--about .aj-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.aj-content--about .aj-col--1 { display: flex; flex-direction: column; gap: 30px; }
.aj-content--about .aj-col--1 .aj-text { width: 766px; max-width: 100%; font-size: 24px; font-weight: 500; line-height: 32px; }
.aj-content--about .aj-col--1 .aj-text p { margin: 0 0 15px; }
.aj-content--about .aj-col--1 > p { width: 534px; max-width: 100%; margin: 0 0 20px; font-size: 22px; font-weight: 700; line-height: 1.7em; }
.aj-content--about .aj-col--1 > .wp-block-image img { width: 100%; height: 500px; object-fit: cover; object-position: bottom center; }
.aj-content--about .aj-col--2 { display: flex; flex-direction: column; align-items: center; }
.aj-content--about .aj-col--2 .wp-block-image img { width: 500px; max-width: 100%; height: auto; object-fit: cover; object-position: bottom center; }
@media (min-width: 1441px) { html[lang^="en"] .aj-content--about .aj-col--1 .aj-text { font-size: 26px; line-height: 48px; } }
html[lang^="en"] .aj-content--about .aj-col--1 .aj-text p { margin-bottom: 9px; }
html[lang^="en"] .aj-content--about .aj-col--2 .wp-block-image img { width: 600px; }
@media (min-width: 2400px) { /* Elementor widescreen: body 2000px breed, padding 70px/4px; afbeelding rechts op ware grootte */
	.aj-content--about .aj-content-body { max-width: 2000px; padding: 70px 4px; }
	.aj-content--about .aj-col--2 .wp-block-image img,
	html[lang^="en"] .aj-content--about .aj-col--2 .wp-block-image img { width: auto; }
}
@media (max-width: 1440px) { /* Elementor: laptopwaarden gelden ook op tablet/mobiel tenzij daar overschreven */
	.aj-content--about .aj-col--1 .aj-text { width: auto; line-height: 39px; }
	.aj-content--about .aj-col--1 > p { width: auto; }
	.aj-content.aj-content--about .wp-block-social-links.aj-social { margin-top: 20px; margin-bottom: 10px; }
}
@media (max-width: 1024px) {
	.aj-content--about .aj-col--1 { gap: 25px; padding-right: 20px; }
	.aj-content--about .aj-col--1 > .wp-block-image img { height: 450px; }
}
@media (max-width: 767px) {
	.aj-content--about .aj-cols { grid-template-columns: minmax(0, 1fr); }
	.aj-content--about .aj-col--1 { padding-right: 0; }
	.aj-content--about .aj-col--1 .aj-text { font-size: 22px; }
	.aj-content--about .aj-col--1 > .wp-block-image img { height: auto; } /* prod 23-11 13:46: mobiel 340px → auto (nieuwe foto, geen uitsnede) */
	.aj-content.aj-content--about .wp-block-social-links.aj-social { margin: 0 0 40px; }
}

/* Sociale iconen (core/social-links) zoals Elementor social-icons: blauw vierkant, wit icoon. */
.aj-content .wp-block-social-links.aj-social { display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; list-style: none; }
.aj-content .aj-social .wp-social-link { margin: 0; padding: 0; background: var(--e-global-color-primary, #4077e3) !important; color: #fff !important; border-radius: 4px; transition: transform .3s; }
.aj-content .aj-social .wp-social-link:hover { transform: scale(.9); }
.aj-content .aj-social .wp-social-link a { display: flex; align-items: center; justify-content: center; width: 37.8px; height: 37.8px; padding: 0; color: #fff !important; }
.aj-content .aj-social .wp-social-link svg { width: 21px; height: 21px; fill: currentColor; }
@media (max-width: 767px) {
	.aj-content .wp-block-social-links.aj-social { gap: 11px; }
	.aj-content .aj-social .wp-social-link a { width: 30.6px; height: 30.6px; }
	.aj-content .aj-social .wp-social-link svg { width: 17px; height: 17px; }
}

/* --- Juridische pagina's (algemene voorwaarden, privacybeleid) ---------------------------------------------- */
.aj-content--legal .aj-content-body { padding: 0 4%; }
/* Elementor "boxed" container: verticale %-padding rekent met de binnenbreedte (viewport − 2×4%) → op de binnenkant. */
.aj-content--legal .aj-text { max-width: 2000px; margin: 0 auto; padding: 2% 0; font-size: 16px; line-height: 29px; }
.aj-content--privacy .aj-text { padding-bottom: 4%; }
.aj-content--legal .aj-text p { margin: 0 0 10px; }
.aj-content--privacy .aj-text { line-height: 24px; }
.aj-content--privacy .aj-text p { margin-bottom: 18px; }
.aj-content--legal .aj-text :where(ol, ul) { margin-top: 0; margin-bottom: 0; }

/* --- Klassieke pagina's (FAQ, retourbeleid, …): smalle kolom zoals hello-commerce .site-main --------------- */
body.aj-page-classic .aj-main--page { margin-inline: auto; width: 100%; }
@media (max-width: 575px) { body.aj-page-classic .aj-main--page { padding-inline: 10px; box-sizing: border-box; } }
@media (min-width: 576px) { body.aj-page-classic .aj-main--page { max-width: 500px; } }
@media (min-width: 768px) { body.aj-page-classic .aj-main--page { max-width: 600px; } }
@media (min-width: 992px) { body.aj-page-classic .aj-main--page { max-width: 800px; } }
@media (min-width: 1200px) { body.aj-page-classic .aj-main--page { max-width: 1140px; } }

/* --- hello-commerce-sjablonen (blog, bericht, zoeken, 404) -------------------------------------------------- */
/* --page-title-display kwam van Elementor; zonder die variabele werd de titel inline. */
.aj-main h1.entry-title { --page-title-display: block; }
/* Knoppen buiten Elementor hadden op de oude site de hello-commerce-knopstijl (--ehc-button-*). */
.aj-main .search-form .search-submit,
.aj-main .comment-form [type="submit"] { padding: 12px 24px; border: 0; border-radius: 0; font-size: 16px; font-weight: 500; line-height: 18px; text-transform: capitalize; background-color: #000; color: #fff; }

/* WP-layout ":root :where(.is-layout-flow) > * { margin-block: 0 }" weegt zwaarder dan de hello-/kitmarges (h* .5rem/1rem,
   p 0/20px). Op de oude site golden die marges wel: hier terugzetten voor lopende tekst. */
body.aj-page-classic .page-content > :is(h1, h2, h3, h4, h5, h6),
.aj-content .aj-text > :is(h1, h2, h3, h4, h5, h6) { margin-block: .5rem 1rem; }
body.aj-page-classic .page-content > p { margin-block: 0 20px; }
body.aj-page-classic .page-content > :is(ul, ol, dl) { margin-block: 0; }
.aj-main > .pagination { margin: 20px auto; }

/* Blokeditorpagina's (bv. Cadeaugids, prod 18-11): de oude site (klassiek thema) gaf geneste blokcontainers de
   WordPress-standaard blockGap 24px; dit thema zet blockGap globaal op 0 (nodig voor de omgezette Elementor-pagina's).
   Alleen binnen klassieke/blokpagina's en alleen geneste containers — de post-content-wrapper zelf blijft 0.
   Specificiteit (0,1,0) zoals de WP-regel ":root :where(.is-layout-flow) > *", zodat de eigen CSS van zo'n pagina blijft winnen. */
:root :where(body.aj-page-classic .page-content :is(.is-layout-flow, .is-layout-constrained)) > * { margin-block-start: 24px; margin-block-end: 0; }
:root :where(body.aj-page-classic .page-content :is(.is-layout-flow, .is-layout-constrained)) > :first-child { margin-block-start: 0; }
