/* Dijkhost – huisstijl. Tokens komen uit het Dijkhost design system. */

@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --surface-100: #f8f4ec;
  --surface-200: #ffffff;
  --zand: #e8dcc4;
  --lijn: #d9cfbd;
  --ink: #0f2a3d;
  --ink-muted: #5c6b75;
  --dijk: #0f2a3d;
  --zee: #1d6a93;
  --zee-hover: #175a7e;
  --on-zee: #ffffff;
  --gras: #1f7a4a;
  --gras-merk: #1f9d5c;
  --boei: #c2410c;
  --fout: #b42318;

  --font-display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(15,42,61,.06), 0 4px 16px rgba(15,42,61,.06);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--surface-100); color: var(--ink);
  font: 400 16px/1.625 var(--font-sans); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--zee); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--zee); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 var(--space-4); text-wrap: balance; }
h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: 20px; font-weight: 600; font-family: var(--font-sans); letter-spacing: -0.01em; }
p { margin: 0 0 var(--space-4); text-wrap: pretty; }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; line-height: 22px; }
.mono { font-family: var(--font-mono); font-size: 14px; }
.label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--space-6); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--space-4); top: var(--space-4); background: var(--surface-200); padding: var(--space-2) var(--space-4); z-index: 10; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 10px var(--space-6); border-radius: var(--radius-md);
  font: 600 16px/24px var(--font-sans); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; background: var(--zee); color: var(--on-zee); white-space: nowrap;
}
.btn:hover { background: var(--zee-hover); color: var(--on-zee); }
.btn-secondary { background: transparent; color: var(--zee); border-color: var(--zee); }
.btn-secondary:hover { background: var(--zee); color: var(--on-zee); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--lijn); }
.btn-ghost:hover { background: var(--surface-200); color: var(--ink); }
.btn-accent { background: var(--boei); }
.btn-accent:hover { background: #a3360a; }
.btn-danger { background: var(--fout); }
.btn-danger:hover { background: #8f1c13; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; line-height: 20px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-link { background: none; border: 0; padding: 0; color: var(--zee); font: inherit; text-decoration: underline; cursor: pointer; min-height: 0; }

/* ---------- Header ---------- */
.site-header { background: var(--surface-100); border-bottom: 1px solid var(--lijn); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; gap: var(--space-8); min-height: 72px; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; gap: var(--space-6); margin-right: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: var(--space-2) 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gras-merk); }
.header-actions { display: flex; gap: var(--space-3); align-items: center; }
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .site-header .wrap { flex-wrap: wrap; gap: var(--space-4); padding-top: var(--space-3); padding-bottom: var(--space-3); }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .nav, .header-actions { display: none; width: 100%; }
  .site-header.open .nav { display: flex; flex-direction: column; gap: 0; }
  .site-header.open .nav a { padding: var(--space-3) 0; border-bottom: 1px solid var(--lijn); }
  .site-header.open .header-actions { display: flex; padding-bottom: var(--space-3); }
}

/* ---------- Hero ---------- */
.hero { padding: var(--space-16) 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-12); align-items: end; }
.hero-text { padding-bottom: var(--space-16); }
.hero-text p.lead { font-size: 20px; line-height: 30px; color: var(--ink-muted); max-width: 34ch; }
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-6); }
.hero-art svg { width: 100%; height: auto; }
.hero-art .a-zand { fill: var(--zand); } .hero-art .a-dijk { fill: var(--dijk); }
.hero-art .a-gras { fill: var(--gras-merk); } .hero-art .a-zee { fill: var(--zee); } .hero-art .a-boei { fill: var(--boei); }
.hero-art .a-slot { fill: var(--dijk); } .hero-art .a-led { fill: #7fe0a8; }
.proof { display: flex; gap: var(--space-4) var(--space-8); flex-wrap: wrap; margin-top: var(--space-8); font-size: 14px; color: var(--ink-muted); }
.proof strong { display: block; color: var(--ink); font-size: 15px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-text { padding-bottom: 0; } .hero { padding-top: var(--space-12); } }

/* ---------- Secties ---------- */
.section { padding: var(--space-16) 0; }
.section-alt { background: var(--surface-200); border-top: 1px solid var(--lijn); border-bottom: 1px solid var(--lijn); }
.section-dark { background: var(--dijk); color: #f3ede2; }
.section-dark h2 { color: #fff; }
.section-dark .muted { color: #b9c6cf; }
.section-head { max-width: 640px; margin-bottom: var(--space-8); }
.grid { display: grid; gap: var(--space-6); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--surface-200); border: 1px solid var(--lijn); border-radius: var(--radius-lg); padding: var(--space-6); }
.card h3 { margin-bottom: var(--space-2); }
.feature-icon { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--surface-100); border: 1px solid var(--lijn); display: grid; place-items: center; margin-bottom: var(--space-4); color: var(--zee); }
.feature-icon svg { width: 22px; height: 22px; }

/* ---------- Prijzen ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-6); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface-200); border: 1px solid var(--lijn); border-radius: var(--radius-lg); padding: var(--space-8) var(--space-6) var(--space-6); }
.plan.highlight { border: 2px solid var(--zee); box-shadow: var(--shadow-card); }
.plan .ribbon { position: absolute; top: -13px; left: var(--space-6); background: var(--boei); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: var(--radius-pill); }
.plan h3 { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 40px; letter-spacing: -0.03em; line-height: 1; margin: var(--space-4) 0 var(--space-1); }
.price small { font-family: var(--font-sans); font-size: 15px; font-weight: 400; color: var(--ink-muted); letter-spacing: 0; }
.checks { list-style: none; padding: 0; margin: var(--space-6) 0; display: grid; gap: var(--space-2); flex: 1; }
.checks li { display: flex; gap: var(--space-2); align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--gras-merk) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ---------- Domeinchecker ---------- */
.domain-search { display: flex; gap: var(--space-2); background: var(--surface-200); border: 1px solid var(--lijn); border-radius: var(--radius-lg); padding: var(--space-2); max-width: 640px; box-shadow: var(--shadow-card); }
.domain-search input[type=text] { flex: 1; border: 0; min-height: 0; border-radius: 0; font: 400 18px/28px var(--font-sans); padding: var(--space-2) var(--space-3); background: transparent; color: var(--ink); min-width: 0; }
.domain-search input[type=text]:focus { outline: none; }
.domain-search:focus-within { outline: 3px solid var(--zee); outline-offset: 2px; }
.results { margin-top: var(--space-6); display: grid; gap: var(--space-2); max-width: 760px; }
.result { display: flex; align-items: center; gap: var(--space-4); background: var(--surface-200); border: 1px solid var(--lijn); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); }
.result .name { font-weight: 600; flex: 1; }
.result .state-free { color: var(--gras); font-weight: 600; }
.result .state-taken { color: var(--ink-muted); }
.tld-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.chip { background: var(--surface-200); border: 1px solid var(--lijn); border-radius: var(--radius-pill); padding: 4px 12px; font-size: 14px; }

/* ---------- Formulieren ---------- */
.form { display: grid; gap: var(--space-4); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: var(--space-1); }
.field .hint { font-size: 13px; color: var(--ink-muted); margin-top: var(--space-1); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=url], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; min-height: 44px; padding: 10px var(--space-3); border: 1px solid #b9ad97; border-radius: var(--radius-md);
  background: var(--surface-200); color: var(--ink); font: 400 16px/22px var(--font-sans);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--zee); outline-offset: 1px; border-color: var(--zee); }
.checkbox { display: flex; gap: var(--space-2); align-items: flex-start; font-size: 15px; }
.checkbox input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--zee); }
.auth-box { max-width: 460px; margin: var(--space-12) auto; }
.auth-box .card { padding: var(--space-8); }

/* ---------- Meldingen ---------- */
.alert { border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); margin-bottom: var(--space-4); border: 1px solid; font-size: 15px; }
.alert-success { background: #e7f5ed; border-color: #a9d8bc; color: #14532d; }
.alert-error { background: #fdecea; border-color: #f2b8b2; color: #7a1a12; }
.alert-info { background: #e8f1f7; border-color: #b4d0e2; color: #0f3b55; }
.alert-warning { background: #fdf0e6; border-color: #f0c39f; color: #7a2e06; }

/* ---------- Badges en tabellen ---------- */
.badge { display: inline-block; padding: 2px 10px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600; line-height: 20px; white-space: nowrap; }
.badge-ok { background: #e1f3e8; color: #14532d; }
.badge-wait { background: #fdf0e6; color: #7a2e06; }
.badge-bad { background: #fdecea; color: #7a1a12; }
.badge-off { background: #eceae5; color: #4a5560; }
.table-wrap { overflow-x: auto; background: var(--surface-200); border: 1px solid var(--lijn); border-radius: var(--radius-lg); }
table.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--lijn); background: var(--surface-100); white-space: nowrap; }
.table td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid #eee6d8; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table a { font-weight: 600; }
.empty { padding: var(--space-8); text-align: center; color: var(--ink-muted); }
dl.details { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-2) var(--space-6); margin: 0; }
dl.details dt { color: var(--ink-muted); }
dl.details dd { margin: 0; font-weight: 600; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dijk); color: #c9d4db; padding: var(--space-12) 0 var(--space-8); font-size: 15px; }
.site-footer a { color: #f3ede2; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-8); }
.footer-grid h4, .footer-grid .footer-h { font-family: var(--font-sans); font-size: 14px; color: #fff; margin-bottom: var(--space-3); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.footer-bottom { border-top: 1px solid #24485f; margin-top: var(--space-8); padding-top: var(--space-6); display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; font-size: 13px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Portaal en beheer ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: var(--dijk); color: #c9d4db; padding: var(--space-6) var(--space-4); display: flex; flex-direction: column; gap: var(--space-6); }
.sidebar .brand img { height: 30px; }
.sidebar nav { display: grid; gap: 2px; }
.sidebar nav a { display: flex; align-items: center; gap: var(--space-3); color: #dfe6ea; text-decoration: none; padding: 10px var(--space-3); border-radius: var(--radius-md); font-weight: 600; font-size: 15px; }
.sidebar nav a svg { width: 18px; height: 18px; flex: none; }
.sidebar nav a:hover { background: #18405c; color: #fff; }
.sidebar nav a[aria-current="page"] { background: #18405c; color: #fff; box-shadow: inset 3px 0 0 var(--gras-merk); }
.sidebar .side-foot { margin-top: auto; font-size: 13px; }
.sidebar .side-foot .btn-link { color: #dfe6ea; }
.main { padding: var(--space-8) var(--space-8) var(--space-16); max-width: 1180px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-6); }
.page-head h1 { font-size: 32px; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-4); margin-bottom: var(--space-8); }
.stat { background: var(--surface-200); border: 1px solid var(--lijn); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-6); }
.stat .value { font-family: var(--font-display); font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.stack { display: grid; gap: var(--space-6); }
.actions { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }
.inline { display: inline; }
.secret { display: flex; gap: var(--space-2); align-items: center; }
.secret code { background: var(--surface-100); border: 1px solid var(--lijn); border-radius: var(--radius-sm); padding: 2px 8px; font-family: var(--font-mono); font-size: 14px; }
.admin-tag { background: var(--boei); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: var(--radius-pill); }
.mobile-bar { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .app.nav-open .sidebar { display: flex; }
  .mobile-bar { display: flex; justify-content: space-between; align-items: center; background: var(--dijk); padding: var(--space-3) var(--space-4); }
  .mobile-bar img { height: 28px; }
  .main { padding: var(--space-6) var(--space-4) var(--space-12); }
}

/* ---------- Factuur (scherm + print) ---------- */
.invoice-sheet { background: #fff; border: 1px solid var(--lijn); border-radius: var(--radius-lg); padding: 56px 64px; position: relative; overflow: hidden; max-width: 860px; }
.invoice-sheet::before { content: ""; position: absolute; left: 0; top: 0; width: 8px; height: 150px; background: var(--gras-merk); }
.inv-head { display: flex; justify-content: space-between; gap: var(--space-6); align-items: flex-start; margin-bottom: var(--space-12); }
.inv-head img { height: 44px; width: auto; }
.inv-meta { display: grid; grid-template-columns: auto auto; gap: 4px var(--space-4); font-size: 14px; }
.inv-meta dt { color: var(--ink-muted); } .inv-meta dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.inv-parties { display: flex; justify-content: space-between; gap: var(--space-8); margin-bottom: var(--space-8); font-size: 14px; }
.inv-total { margin-left: auto; width: 300px; display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-top: var(--space-4); font-variant-numeric: tabular-nums; font-size: 15px; }
.inv-total .grand { border-top: 2px solid var(--ink); padding-top: var(--space-2); font-weight: 700; font-size: 18px; }
.inv-foot { margin-top: var(--space-12); padding-top: var(--space-4); border-top: 1px solid var(--lijn); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); font-size: 12px; color: var(--ink-muted); }
@media (max-width: 700px) { .invoice-sheet { padding: var(--space-8) var(--space-6); } .inv-head, .inv-parties { flex-direction: column; } .inv-foot { grid-template-columns: 1fr; } }
@media print {
  .sidebar, .mobile-bar, .no-print, .site-header, .site-footer { display: none !important; }
  .app { display: block; } .main { padding: 0; max-width: none; }
  body { background: #fff; }
  .invoice-sheet { border: 0; border-radius: 0; padding: 0 0 0 24px; max-width: none; }
}

/* ---------- Illustraties ---------- */
.ill { width: 100%; height: auto; border-radius: var(--radius-lg); display: block; }
.media-head { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--space-12); align-items: center; margin-bottom: var(--space-8); }
.media-head .section-head { margin-bottom: 0; }
.media-head > .ill { max-width: 440px; justify-self: end; }
.card-media { margin: calc(var(--space-6) * -1) calc(var(--space-6) * -1) var(--space-6); border-bottom: 1px solid var(--lijn); border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; }
.card-media .ill { border-radius: 0; aspect-ratio: 3 / 2; object-fit: cover; }
.cta-split { display: grid; grid-template-columns: 1fr 340px; gap: var(--space-12); align-items: center; }
@media (max-width: 860px) { .media-head, .cta-split { grid-template-columns: 1fr; gap: var(--space-6); } .media-head > .ill { justify-self: start; } }

/* ---------- Contracten ---------- */
.contract-sheet { font-size: 15px; line-height: 1.6; }
.contract-sheet .inv-head { margin-bottom: var(--space-8); }
.contract-body h1 { font-size: 28px; margin-bottom: var(--space-6); }
.contract-body h3 { font-size: 16px; margin: var(--space-6) 0 var(--space-2); }
.contract-body p { margin-bottom: var(--space-3); }
.contract-body ol.parties { padding-left: 20px; margin: 0 0 var(--space-4); display: grid; gap: var(--space-2); }
.contract-watermark { position: absolute; top: 140px; right: 64px; transform: rotate(-8deg); border: 3px solid var(--boei); color: var(--boei); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 14px; border-radius: 8px; }
.sign-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); margin-top: var(--space-6); }
.sign-box .signed { font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 26px; color: var(--zee); margin: var(--space-3) 0 var(--space-1); }
.sign-line { border-bottom: 1px solid var(--ink); height: 56px; margin-bottom: var(--space-1); }
@media (max-width: 700px) { .sign-grid { grid-template-columns: 1fr; } }
@media print { .contract-sheet h3 { break-after: avoid; } .contract-watermark { position: static; display: inline-block; } }

/* Medewerkersportaal */
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li:first-child { border-top: 0 !important; }
.privacy-info details { border-top: 1px solid var(--lijn); padding: 12px 0; }
.privacy-info details:first-child { border-top: 0; }
.privacy-info summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.privacy-info p, .privacy-info ul { margin: 8px 0 0; color: var(--ink-muted); font-size: 15px; }
.privacy-info ul { padding-left: 20px; }
.nav-group { margin: 14px 12px 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8fa6b6; font-weight: 600; }
.deadline-late { color: var(--fout); font-weight: 600; }
.plain-list .badge, .stack article .badge { align-self: flex-start; white-space: nowrap; flex: none; }
.nowrap { white-space: nowrap; }

/* Instellingen */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--lijn); margin: 0 0 24px; }
.tabs a { padding: 10px 14px; color: var(--ink-muted); text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gras-merk); }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; max-width: 1100px; }
@media (max-width: 960px) { .settings-layout { grid-template-columns: 1fr; } }
.src { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .02em; padding: 1px 7px; border-radius: 999px; background: #eceae5; color: #4a5560; vertical-align: 1px; margin-left: 4px; }
.src-db { background: #e1f3e8; color: #14532d; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--lijn); border-right: 0; border-radius: var(--radius-md) 0 0 var(--radius-md); background: var(--surface-100); color: var(--ink-muted); }
.input-prefix input { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }

/* Personeelsportaal */
.portal-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--zee); transform: translateY(-2px); }
.tile-icon { width: 40px; height: 40px; border-radius: 10px; background: #e1f3e8; color: var(--gras); display: grid; place-items: center; margin-bottom: 6px; }
.tile-icon svg { width: 22px; height: 22px; }
.tile-big { font: 700 32px/1.1 var(--font-display); letter-spacing: -.02em; }
.tile-cta { margin-top: auto; padding-top: 10px; color: var(--zee); font-weight: 600; font-size: 15px; }
.nav-sep { height: 1px; background: #24485f; margin: 12px 8px; }
.admin-tag-portal { background: var(--gras-merk); }
.access-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 12px; }
.access-box { border: 1px solid var(--lijn); border-radius: var(--radius-md); padding: 14px 16px; background: var(--surface-100); }
.checkbox input { flex: none; }
.work-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.work-tile { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); padding: 18px; transition: border-color .15s; }
.work-tile:hover { border-color: var(--zee); }
.tile-icon-sm { width: 32px; height: 32px; border-radius: 8px; background: #e8f1f7; color: var(--zee); margin-bottom: 4px; }
.tile-icon-sm svg { width: 18px; height: 18px; }
.work-big { font: 700 24px/1.15 var(--font-display); letter-spacing: -.01em; }

/* Juridische pagina's */
.legal h2 { font-size: 24px; margin: 40px 0 12px; scroll-margin-top: 90px; }
.legal h3 { font-size: 17px; margin: 0 0 8px; }
.legal p, .legal li { line-height: 1.65; }
.legal ul { padding-left: 20px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.legal-toc a { font-size: 14px; padding: 6px 12px; border: 1px solid var(--lijn); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--surface-200); }
.legal-toc a:hover { border-color: var(--zee); }
.legal-card { border: 1px solid var(--lijn); border-radius: var(--radius-md); background: var(--surface-200); padding: 16px 20px; margin: 12px 0; }
.legal-card dl { display: grid; grid-template-columns: 130px 1fr; gap: 6px 16px; margin: 0; font-size: 15px; }
.legal-card dt { color: var(--ink-muted); }
.legal-card dd { margin: 0; }
@media (max-width: 640px) { .legal-card dl { grid-template-columns: 1fr; } .legal-card dd { margin-bottom: 6px; } }
.legal .lead { font-size: 19px; line-height: 1.6; color: var(--ink-muted); }
.register-table td { font-size: 13px; vertical-align: top; min-width: 120px; }
input[type=datetime-local] { width: 100%; }
.viewas-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: var(--boei); color: #fff; border-radius: var(--radius-md); padding: 10px 16px; margin-bottom: 20px; font-size: 15px; }
.viewas-bar svg { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.viewas-bar .btn { background: #fff; color: var(--boei); border-color: #fff; }
.or-line { display: flex; align-items: center; gap: 12px; margin: 20px 0 12px; color: var(--ink-muted); font-size: 13px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--lijn); }
.ms-btn { display: flex; align-items: center; justify-content: center; gap: 10px; }
.contract-body blockquote.motivation, .agreement-body blockquote.motivation { margin: 8px 0 16px; padding: 12px 16px; border-left: 3px solid var(--zee); background: var(--surface-100); border-radius: 0 8px 8px 0; }
.nav-count { margin-left: auto; background: var(--boei); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.order-legal { display: grid; gap: 12px; margin-top: 8px; }
.callout { background: rgba(31,111,148,.07); border-left: 3px solid var(--zee, #1f6f94); border-radius: 8px; padding: 12px 14px; }

/* ---------- Toegankelijkheid (WCAG 2.2 AA) ---------- */
h2.h3 { font-size: 20px; font-weight: 600; font-family: var(--font-sans); letter-spacing: -0.01em; line-height: 1.15; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; }
.skip:focus { left: var(--space-4); top: var(--space-4); background: var(--surface-200); color: var(--ink); padding: var(--space-3) var(--space-4); border: 3px solid var(--zee); border-radius: var(--radius-md); font-weight: 600; }
/* Standaard ziet alles er normaal uit. Pas als iemand de knop "Weergave" gebruikt, verandert de weergave. */
/* Donkerdere randen van invoervelden (3:1) bij aangepaste weergave */
html.a11y-on input:not([type=checkbox]):not([type=radio]), html.a11y-on select, html.a11y-on textarea { border-color: #847a6b !important; }
/* Focus ook zichtbaar op donkere achtergronden (2.4.7, 2.4.11) */
:focus-visible { outline: 3px solid var(--zee); outline-offset: 2px; }
.sidebar :focus-visible, .site-footer :focus-visible, .mobile-bar :focus-visible, .section-dark :focus-visible { outline-color: #ffd166; }
/* Grotere klikdoelen bij aangepaste weergave */
html.a11y-on .btn-link, html.a11y-on .nav a, html.a11y-on .sidebar nav a { min-height: 24px; }
.checkbox input { min-width: 20px; }
/* Minder beweging als de gebruiker dat wil (2.3.3) */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
/* Windows-contrastthema's: randen en focus blijven zichtbaar */
@media (forced-colors: active) {
  .btn, .badge, .card, .alert, .table-wrap, .callout { border: 1px solid CanvasText; }
  :focus-visible { outline: 3px solid Highlight; }
  .checks li::before { forced-color-adjust: auto; background: CanvasText; }
}

/* Weergave-instellingen (knop "Weergave") */
html.a11y-text-125 { zoom: 1.25; }
html.a11y-text-150 { zoom: 1.5; }
/* Grotere tekst: alles onder elkaar, zodat niets wordt afgesneden (1.4.10) */
html.a11y-text-125 .grid, html.a11y-text-150 .grid, html.a11y-text-150 .grid-2, html.a11y-text-150 .form-row { grid-template-columns: minmax(0, 1fr) !important; }
html.a11y-text-125 .grid > *, html.a11y-text-150 .grid > * { min-width: 0; }
html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; }
html.a11y-spacing body { letter-spacing: .12em; word-spacing: .16em; line-height: 1.8; }
html.a11y-spacing p, html.a11y-spacing li { margin-bottom: 2em; }
html.a11y-contrast {
  --surface-100: #ffffff; --surface-200: #ffffff; --zand: #ffffff; --lijn: #000000;
  --ink: #000000; --ink-muted: #1a1a1a; --zee: #0b3d91; --zee-hover: #000000; --gras: #0b5d1e; --boei: #8a2a00; --fout: #8b0000;
}
html.a11y-contrast .card, html.a11y-contrast .table-wrap, html.a11y-contrast .alert, html.a11y-contrast .badge, html.a11y-contrast .btn-ghost { border: 2px solid #000 !important; }
html.a11y-contrast .sidebar, html.a11y-contrast .site-footer, html.a11y-contrast .mobile-bar, html.a11y-contrast .section-dark { background: #000; color: #fff; }
html.a11y-contrast .sidebar nav a, html.a11y-contrast .site-footer a { color: #fff; text-decoration: underline; }
html.a11y-contrast .muted, html.a11y-contrast .hint, html.a11y-contrast .label { color: #000 !important; }
html.a11y-contrast .sidebar .muted, html.a11y-contrast .site-footer .muted { color: #fff !important; }
html.a11y-contrast :focus-visible { outline: 4px solid #000 !important; outline-offset: 2px; box-shadow: 0 0 0 7px #fff; }
html.a11y-contrast .sidebar :focus-visible, html.a11y-contrast .site-footer :focus-visible, html.a11y-contrast .mobile-bar :focus-visible { outline-color: #ffd166 !important; box-shadow: none; }
.a11y-panel { position: fixed; right: 16px; bottom: 16px; z-index: 50; }
.a11y-panel > button { box-shadow: var(--shadow-card); }
.a11y-panel [role=dialog] { position: absolute; right: 0; bottom: 52px; width: min(320px, calc(100vw - 32px)); background: #fff; color: #000; border: 2px solid var(--ink); border-radius: var(--radius-md); padding: var(--space-4); box-shadow: var(--shadow-card); }
.a11y-panel [role=dialog] h2 { font-size: 18px; margin: 0 0 var(--space-3); font-family: var(--font-sans); letter-spacing: 0; }
.a11y-panel fieldset { border: 0; padding: 0; margin: 0 0 var(--space-3); }
.a11y-panel legend { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.a11y-panel .opts { display: flex; gap: 6px; flex-wrap: wrap; }
.a11y-panel .opts button { min-height: 36px; padding: 4px 12px; border: 2px solid var(--ink); background: #fff; color: #000; border-radius: var(--radius-sm); font: 600 14px var(--font-sans); cursor: pointer; }
.a11y-panel .opts button[aria-pressed=true] { background: var(--ink); color: #fff; }
.pw-toggle { margin-left: 8px; }
html.a11y-on .pw-toggle { margin-top: 6px; }
@media print { .a11y-panel, .skip { display: none !important; } }
/* Onzichtbaar: bij tabben scrolt de pagina zo dat de knop "Weergave" de focus nooit bedekt (2.4.11) */
html { scroll-padding-bottom: 80px; }

/* ---------- Hulp en support ---------- */
.help-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 4px; }
.help-list li { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--lijn); }
.help-list a { font-weight: 600; }
.help-article h2 { font-size: 24px; margin-top: 32px; }
.help-article h3 { margin-top: 24px; }
.help-article li { margin-bottom: 6px; }
.help-article code, .ticket-body code { background: var(--surface-100); border: 1px solid var(--lijn); border-radius: 4px; padding: 1px 6px; font-family: var(--font-mono); font-size: 14px; }
pre.code { background: var(--dijk); color: #e8f1f6; padding: 12px 14px; border-radius: 10px; overflow-x: auto; font-size: 14px; }
pre.code code { background: none; border: 0; color: inherit; padding: 0; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tile { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
.tile:hover { border-color: var(--zee); }
.ticket-msg { border: 1px solid var(--lijn); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-6); background: var(--surface-200); }
.ticket-msg.staff { border-left: 4px solid var(--zee); }
.ticket-msg.internal { background: #fff8e1; border-color: #e7c66a; }
.ticket-msg header { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; font-size: 14px; }
.ticket-body p:last-child { margin-bottom: 0; }
