/* BodyTalk — layout naar voorbeeld van de oude GeneratePress-site */
:root {
    --text: #222;
    --muted: #575760;
    --bg: #f7f8f9;
    --box: #fff;
    --link: #1e73be;
    --nav: #515151;
    --nav-hover: #7a8896;
    --footer: #55555e;
    --pad: 40px;
    --gap: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.5;
}

a { color: var(--link); text-decoration: none; }
a:hover, a:focus { color: #000; }

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

h1, h2, h3, h4, h5, h6 { font-weight: 400; line-height: 1.2; margin: 0 0 20px; }
h1 { font-size: 42px; }
h2 { font-size: 35px; }
h3 { font-size: 29px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
p, ul, ol, figure, blockquote { margin: 0 0 1.5em; }
ul, ol { padding-left: 3em; }
li { margin-bottom: .3em; }
strong, b { font-weight: 700; }
hr { border: 0; height: 1px; background: rgba(0,0,0,.1); margin: 40px 0; }
iframe { max-width: 100%; }

.container { max-width: 1280px; margin: 0 auto; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; background: #fff; padding: 10px; z-index: 100; }

/* ---------- Header ---------- */
.site-header { background: #fff; }
.inside-header { padding: 20px var(--pad) 0; }
.main-title { margin: 0; font-size: 25px; font-weight: 700; line-height: 1.2; }
.main-title a { color: var(--text); }

.main-navigation { background: #fff; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation .menu { display: flex; flex-wrap: wrap; margin-left: -20px; }
.main-navigation li { position: relative; margin: 0; }
.main-navigation .menu > li > a {
    display: block;
    padding: 0 20px;
    line-height: 60px;
    font-size: 15px;
    color: var(--nav);
}
.main-navigation li > a:hover,
.main-navigation li.current > a { color: var(--nav-hover); }

.main-navigation .menu > li.has-children > a { padding-right: 34px; }
.sub-toggle {
    position: absolute; right: 8px; top: 21px;
    width: 18px; height: 18px; padding: 0;
    border: 0; background: none; cursor: pointer;
}
.sub-toggle::before {
    content: ""; display: block; width: 7px; height: 7px; margin: 3px auto 0;
    border-right: 2px solid var(--nav); border-bottom: 2px solid var(--nav);
    transform: rotate(45deg);
}
.sub-menu {
    position: absolute; left: 0; top: 100%; z-index: 99;
    width: 200px; background: #eaeaea;
    box-shadow: 1px 1px 0 rgba(0,0,0,.1);
    opacity: 0; visibility: hidden; transition: opacity 80ms;
}
.sub-menu a { display: block; padding: 10px 20px; font-size: 14px; color: var(--nav); }
.has-children:hover > .sub-menu,
.has-children:focus-within > .sub-menu,
.has-children.sub-open > .sub-menu { opacity: 1; visibility: visible; }

.menu-toggle {
    display: none;
    border: 0; background: transparent; color: var(--nav);
    font: inherit; font-size: 15px; padding: 0 20px; line-height: 60px; cursor: pointer;
}
.menu-toggle .bars,
.menu-toggle .bars::before,
.menu-toggle .bars::after {
    display: inline-block; width: 16px; height: 2px; background: currentColor;
    position: relative; vertical-align: middle;
}
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle .bars::before { top: -5px; }
.menu-toggle .bars::after { top: 5px; }

/* ---------- Content + sidebar ---------- */
.site {
    display: flex;
    gap: var(--gap);
    align-items: flex-start;
    margin-top: var(--gap);
    margin-bottom: var(--gap);
}
.content-area { flex: 0 0 calc(70% - var(--gap) / 2); min-width: 0; }
.sidebar { flex: 0 0 calc(30% - var(--gap) / 2); font-size: 17px; }

.inside-article { background: var(--box); padding: var(--pad); }
.entry-content::after { content: ""; display: table; clear: both; }

.widget { background: var(--box); padding: var(--pad); margin-bottom: var(--gap); overflow-wrap: break-word; }
.widget p:last-child { margin-bottom: 0; }
.widget-title { font-size: 20px; margin-bottom: 30px; }
.widget.center { text-align: center; }
.widget.links a { color: #000; font-weight: 700; }

/* WordPress-uitlijning in de content */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; clear: both; }
.alignnone { margin-bottom: 1em; }
.wp-block-columns { display: flex; gap: 2em; flex-wrap: wrap; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
.wp-block-image img, .wp-block-embed iframe { max-width: 100%; }
.wp-block-embed__wrapper iframe,
.isVideo iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.has-text-align-center { text-align: center; }
.color_19 { color: inherit; }

/* PDF-weergave */
.pdf-embed object { width: 100%; height: 80vh; min-height: 500px; border: 1px solid #ddd; display: block; margin-bottom: 1em; }

/* ---------- Formulieren ---------- */
.bt-form { margin: 1.5em 0; max-width: 560px; }
.bt-form .field { margin-bottom: 20px; }
.bt-form label, .bt-form .label { display: block; font-weight: 700; margin-bottom: 5px; font-size: 15px; }
.bt-form .req { color: #b94a48; }
.bt-form input[type=text], .bt-form input[type=email], .bt-form input[type=tel], .bt-form textarea {
    width: 100%; padding: 10px 15px; font: inherit; font-size: 16px;
    color: #666; background: #fafafa; border: 1px solid #ccc; border-radius: 0;
}
.bt-form input:focus, .bt-form textarea:focus { background: #fff; border-color: #bfbfbf; color: #666; outline: none; }
.bt-form label.check { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.bt-form label.check input { margin-top: 5px; flex: none; }
.bt-form .has-error input, .bt-form .has-error textarea { border-color: #b94a48; }
.bt-form .error { color: #b94a48; font-size: 14px; }
.bt-form .hp { position: absolute; left: -9999px; }
.form-msg { padding: 12px 15px; }
.form-msg.ok { background: #dff0d8; color: #3c763d; }
.form-msg.err { background: #f2dede; color: #a94442; }

button, .button {
    display: inline-block; border: 0; cursor: pointer;
    background: var(--footer); color: #fff; font: inherit; font-size: 17px;
    padding: 10px 20px; line-height: 1.5;
}
button:hover, .button:hover { background: #3f4047; color: #fff; }
.menu-toggle:hover, .sub-toggle:hover { background: transparent; color: var(--nav-hover); }

/* ---------- Footer ---------- */
.site-info { background: var(--footer); color: #fff; font-size: 15px; }
.site-info a { color: #fff; }
.site-info a:hover { color: #d3d3d3; }
.inside-site-info { padding: 20px var(--pad); display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.footer-bar p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .main-navigation .menu > li > a { padding: 0 12px; }
}

@media (max-width: 768px) {
    :root { --pad: 30px; }
    h1 { font-size: 31px; }
    h2 { font-size: 27px; }
    h3 { font-size: 24px; }
    h4 { font-size: 22px; }

    .inside-header { text-align: center; }
    .main-navigation .menu { margin-left: 0; }
    .main-navigation { width: 100%; }
    .menu-toggle { display: block; width: 100%; }
    .main-navigation .menu { display: none; flex-direction: column; text-align: left; }
    .main-navigation.toggled .menu { display: flex; }
    .main-navigation .menu > li { border-top: 1px solid rgba(0,0,0,.05); }
    .main-navigation .menu > li > a { line-height: 50px; }
    .sub-toggle { top: 8px; right: 0; width: 50px; height: 34px; }
    .sub-menu { position: static; width: auto; box-shadow: none; display: none; opacity: 1; visibility: visible; }
    .has-children.sub-open > .sub-menu { display: block; }
    .has-children:hover > .sub-menu { display: none; }
    .has-children.sub-open:hover > .sub-menu { display: block; }

    .site { flex-direction: column; margin: 10px 0; gap: 10px; }
    .content-area, .sidebar { flex-basis: auto; width: 100%; }
    .widget { margin-bottom: 10px; }

    .alignleft, .alignright { float: none; display: block; margin: 0 auto 1em; }
    .inside-site-info { flex-direction: column; align-items: flex-start; }
}
