/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #1a1a2e; background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: #2563eb; text-decoration: none; }
a:hover { color: #1d4ed8; }
ul { list-style: none; }

/* === Layout === */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 560px; }

/* === Header === */
#header_wrapper { background: #fff; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 100; }
#header_wrapper .container { display: flex; align-items: center; height: 64px; gap: 24px; }
#header_logo a { text-decoration: none; }
.logo-img { display: block; height: 40px; width: auto; }

#header_menu { flex: 1; }
#header_menu ul { display: flex; gap: 8px; justify-content: flex-end; }
#header_menu li a { padding: 8px 14px; border-radius: 6px; font-size: 0.9rem; font-weight: 500; color: #4b5563; transition: background 0.15s, color 0.15s; }
#header_menu li a:hover { background: #f3f4f6; color: #1a1a2e; }
#header_menu li.active a { color: #2563eb; background: #eff6ff; }

#header_languages { display: flex; gap: 6px; align-items: center; }
#header_languages a { display: flex; align-items: center; padding: 3px; border-radius: 3px; line-height: 1; text-decoration: none; opacity: 0.7; transition: opacity 0.15s; }
#header_languages a:hover { opacity: 1; background: #eff6ff; }
#header_languages svg { display: block; border-radius: 2px; }

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #1a1a2e; border-radius: 2px; transition: 0.2s; }
.hamburger.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === System messages === */
.system-message { padding: 12px 0; font-size: 0.9rem; }
.message-success { background: #ecfdf5; color: #065f46; }
.message-error { background: #fef2f2; color: #991b1b; }

/* === Buttons === */
.btn { display: inline-block; padding: 10px 24px; border-radius: 8px; font-size: 0.95rem; font-weight: 500; cursor: pointer; border: none; transition: background 0.15s, box-shadow 0.15s; }
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; color: #fff; }
.btn-secondary { background: #f3f4f6; color: #374151; }
.btn-secondary:hover { background: #e5e7eb; color: #1a1a2e; }
.btn-demo { background: #059669; color: #fff; }
.btn-demo:hover { background: #047857; color: #fff; }
.btn-full { width: 100%; text-align: center; }

/* === Forms === */
.form-section { padding: 48px 0; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 500; color: #374151; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
	width: 100%; padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 8px;
	font-size: 0.95rem; font-family: inherit; color: #1a1a2e; background: #fff; transition: border-color 0.15s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
	outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-group textarea { resize: vertical; }
.dropzone {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
	position: relative; padding: 28px 16px; text-align: center; cursor: pointer;
	border: 2px dashed #d1d5db; border-radius: 8px; background: #f9fafb; color: #6b7280;
	transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone:focus-within { border-color: #2563eb; }
.dropzone.is-dragover { border-color: #2563eb; background: #eff6ff; }
.dropzone.has-file { border-style: solid; }
.dropzone .dropzone-input { position: absolute; width: 1px; height: 1px; opacity: 0; padding: 0; border: 0; overflow: hidden; }
.dropzone-text { display: flex; flex-direction: column; gap: 2px; font-size: 0.9rem; }
.dropzone-text strong { color: #374151; font-weight: 500; }
.dropzone-preview { max-width: 100%; max-height: 180px; border-radius: 4px; }
.dropzone-name { font-size: 0.85rem; color: #374151; word-break: break-all; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 44px; }
.password-toggle {
	position: absolute; top: 0; right: 0; height: 100%; width: 44px; padding: 0;
	display: flex; align-items: center; justify-content: center;
	background: none; border: 0; cursor: pointer; color: #6b7280;
}
.password-toggle:hover, .password-toggle.is-visible { color: #2563eb; }
.form-row { display: flex; gap: 16px; }
.form-group-half { flex: 1; }
.form-group.form-terms label { display: flex; align-items: flex-start; gap: 8px; }
.form-group.form-terms input[type="checkbox"] { width: auto; margin-top: 4px; flex-shrink: 0; }
.form-group.form-check { padding: 14px 16px; border: 1px solid #e5e7eb; border-radius: 8px; background: #f9fafb; }
.form-group.form-check label { display: flex; align-items: center; gap: 10px; margin-bottom: 0; font-size: 0.95rem; cursor: pointer; }
.form-group.form-check input[type="checkbox"] { width: 20px; height: 20px; padding: 0; flex-shrink: 0; accent-color: #2563eb; cursor: pointer; }
.form-group.form-check .form-hint { margin: 8px 0 0 30px; }
.form-hint { font-weight: 400; color: #9ca3af; font-size: 0.85rem; }
.form-section h3 { font-size: 1.05rem; font-weight: 600; color: #1a1a2e; margin: 24px 0 12px; }
.form-section h3:first-of-type { margin-top: 0; }
.form-errors { background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 12px 16px; margin-bottom: 20px; }
.form-errors p { color: #991b1b; font-size: 0.9rem; margin: 4px 0; }

/* === StatusLine (ingelogd) === */
#statusLine { display: flex; justify-content: flex-end; align-items: center; padding: 8px 20px; background: #f9fafb; border-top: 1px solid #e5e7eb; font-size: 0.8rem; }
#languageSelect a { color: #6b7280; margin: 0 4px; font-weight: 600; }
#languageSelect a:hover { color: #2563eb; }

/* === Footer === */
#footer { background: #f9fafb; border-top: 1px solid #e5e7eb; padding: 24px 0; text-align: center; font-size: 0.85rem; color: #9ca3af; }

/* === CMS content === */
.cms-content { padding: 48px 0; }
.cms-content h1 { font-size: 1.8rem; margin-bottom: 16px; }
.cms-content p { margin-bottom: 12px; color: #4b5563; }

/* === Responsive === */
@media (max-width: 768px) {
	.hamburger { display: flex; }

	#header_menu { position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid #e5e7eb; display: none; padding: 16px 0; }
	#header_menu.open { display: block; }
	#header_menu ul { flex-direction: column; padding: 0 20px; gap: 4px; }

}

/* Footer-links */
#footer .footer-links { margin-bottom: 8px; font-size: 0.9em; }
#footer .footer-links a { color: #6b7280; text-decoration: underline; }

/* Algemene voorwaarden */
#algemeneVoorwaarden .centered { text-align: center; }
#algemeneVoorwaarden h2 { font-size: 1.4rem; margin: 16px 0 8px; }
.cms-content .cursief, #algemeneVoorwaarden .cursief { font-style: italic; }
.cms-content hr { border: 0; border-top: 1px solid #e5e7eb; margin: 24px 0; }

/* Submenu "Voor wie" */
#header_menu li.has-submenu { position: relative; }
#header_menu li.has-submenu > a::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; vertical-align: middle; }
#header_menu li.has-submenu.active > a { color: #2563eb; background: #eff6ff; }
#header_menu .submenu { display: none; position: absolute; top: 100%; left: 0; min-width: 270px; flex-direction: column; gap: 2px; padding: 8px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); z-index: 110; }
#header_menu li.has-submenu:hover > .submenu,
#header_menu li.has-submenu:focus-within > .submenu { display: flex; }
#header_menu .submenu li a { display: block; white-space: nowrap; }
@media (max-width: 768px) {
	#header_menu .submenu { display: flex; position: static; min-width: 0; border: 0; box-shadow: none; padding: 0 0 0 16px; }
	#header_menu li.has-submenu > a::after { display: none; }
}
#header_menu li.has-submenu.active .submenu li a { color: #4b5563; background: transparent; }
#header_menu li.has-submenu.active .submenu li a:hover { background: #f3f4f6; color: #1a1a2e; }
#header_menu li.has-submenu.active .submenu li.active a { color: #2563eb; background: #eff6ff; }

/* === Inloggen als gebruiker (superuser) === */
.impersonation-banner { background: #b45309; color: #fff; font-size: 0.9rem; position: sticky; top: 0; z-index: 200; }
.impersonation-banner .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.impersonation-banner form { margin: 0; }
.impersonation-banner button { background: #fff; color: #92400e; border: 0; border-radius: 6px; padding: 5px 12px; font-weight: 600; cursor: pointer; }
.impersonation-banner button:hover { background: #fef3c7; }
.impersonation-banner ~ #header_wrapper { top: 42px; }
