/* gofirmhub — basisstijl. Geen externe fonts of CDN's. Mobile-first, WCAG 2.2 AA. */

:root {
  --bg: #ffffff;
  --surface: #f6f8fa;
  --surface-2: #eef1f5;
  --text: #14181f;
  --muted: #4a5568;
  --border: #d6dbe2;
  --brand: #0b5cad;
  --brand-dark: #084a8c;
  --brand-contrast: #ffffff;
  --accent: #0a7c66;
  --danger: #b02a37;
  --radius: 10px;
  --maxw: 1060px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10141a;
    --surface: #171c24;
    --surface-2: #1f2630;
    --text: #eaeef4;
    --muted: #a7b0bd;
    --border: #2b3340;
    --brand: #4aa3f0;
    --brand-dark: #2f89db;
    --brand-contrast: #05141f;
    --accent: #35c3a3;
  }
}

* { box-sizing: border-box; }

html { font-size: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

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

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 1.9rem; margin: 0.2em 0 0.4em; }
h2 { font-size: 1.4rem; margin: 1.6em 0 0.5em; }
h3 { font-size: 1.1rem; margin: 1em 0 0.3em; }

p { margin: 0.6em 0; }

.lead { font-size: 1.15rem; color: var(--text); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: var(--brand-contrast);
  padding: 8px 14px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--text);
}
.main-nav { flex: 1 1 auto; }
.main-nav ul, .lang-nav ul, .footer-links, .breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
}
.main-nav a { text-decoration: none; font-weight: 600; }
.lang-nav ul { gap: 6px 8px; }
.lang-nav a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
}
.lang-nav a[aria-current="true"] {
  background: var(--brand);
  color: var(--brand-contrast);
  border-color: var(--brand);
}

/* Breadcrumb */
.breadcrumb { margin: 16px 0 4px; font-size: 0.9rem; }
.breadcrumb ol { gap: 4px 8px; }
.breadcrumb li::after { content: "/"; margin-left: 8px; color: var(--muted); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { text-decoration: none; }

/* Main */
main { padding-bottom: 48px; padding-top: 8px; }

.prose { max-width: 68ch; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.3em 0; }

/* Hero (home) */
.hero {
  padding: 40px 0 8px;
}
.hero .lead { max-width: 60ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }

/* Cards */
.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 16px 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.card h3 { margin-top: 0; }
.card p { color: var(--muted); margin-bottom: 0; }
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { border-color: var(--brand); }

/* Buttons */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 11px 18px;
  text-decoration: none;
  line-height: 1.2;
}
.btn-primary { background: var(--brand); color: var(--brand-contrast); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); color: var(--brand-contrast); }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--brand); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); }

/* Formulier */
.invoice-form fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 16px 0;
  padding: 14px 16px 18px;
}
.invoice-form legend { font-weight: 700; padding: 0 6px; }
.invoice-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  margin: 10px 0;
}
.invoice-form input,
.invoice-form textarea,
.invoice-form select {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 9px 10px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.invoice-form textarea { resize: vertical; }

.checks {
  display: grid;
  gap: 8px 18px;
  grid-template-columns: 1fr;
  margin: 8px 0;
}
@media (min-width: 560px) { .checks { grid-template-columns: 1fr 1fr; } }
.invoice-form label.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text);
  margin: 0;
}
.invoice-form label.check input {
  width: auto;
  margin: 0;
}
.tool-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 16px 0;
  background: var(--surface);
}
.tool-card label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--muted); margin: 10px 0; }
.tool-card textarea, .tool-card input, .tool-card select {
  display: block; width: 100%; margin-top: 4px; padding: 9px 10px;
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px;
}
.tool-card textarea { resize: vertical; }

.grid-2 { display: grid; gap: 0 20px; grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: 0 16px; grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.table-scroll { overflow-x: auto; }
.items-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.items-table th, .items-table td { padding: 6px 8px; text-align: left; }
.items-table th.num, .items-table td.num { text-align: right; }
.items-table thead th { border-bottom: 2px solid var(--border); font-size: 0.85rem; }
.items-table input { margin-top: 0; }
.i-remove { padding: 4px 10px; font-size: 1.1rem; line-height: 1; }

@media (max-width: 560px) {
  .items-table { min-width: 0; }
  .items-table thead { display: none; }
  .items-table, .items-table tbody, .items-table tr, .items-table td { display: block; width: 100%; }
  .items-table tr { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; padding: 6px; }
  .items-table td { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: right; }
  .items-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--muted);
    text-align: left;
  }
  .items-table td input { width: auto; flex: 1 1 auto; }
}

.totals { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; margin: 0; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.totals .grand { font-weight: 700; font-size: 1.15rem; color: var(--text); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 6px; }

/* Pro-blok in de tools */
.pro-box { border-color: var(--accent) !important; }
.pro-box legend { color: var(--accent); }
.pro-status { color: var(--accent); font-weight: 600; margin: 6px 0 0; }
.license-key {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  display: inline-block;
}
.tool-msg { color: var(--danger); font-weight: 600; }
.privacy-note {
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
}

/* FAQ */
.faq {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 14px;
  margin: 8px 0;
  background: var(--surface);
}
.faq summary { font-weight: 600; cursor: pointer; padding: 8px 0; }
.faq p { margin-top: 0; color: var(--muted); }

/* Checklist (self-assessment) */
.checklist { margin: 16px 0; }
.cl-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  background: var(--bg);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  z-index: 5;
}
.cl-progress-label { font-weight: 600; }
.cl-track {
  flex: 1 1 160px;
  height: 10px;
  background: var(--surface-2);
  border-radius: 6px;
  overflow: hidden;
  min-width: 120px;
}
.cl-bar { height: 100%; width: 0; background: var(--accent); transition: width 0.2s; }
#cl-pct { font-variant-numeric: tabular-nums; font-weight: 700; }
.cl-count { color: var(--muted); font-size: 0.9rem; }
.cl-group { margin: 18px 0; }
.cl-items { list-style: none; margin: 0; padding: 0; }
.cl-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cl-text { flex: 1 1 260px; }
.cl-title { font-weight: 600; display: block; }
.cl-desc { color: var(--muted); font-size: 0.92rem; }
.cl-status { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.cl-opt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.88rem;
  white-space: nowrap;
}
.cl-opt input { margin: 0; }

/* Callouts (deadlines etc.) */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  margin: 16px 0;
}
.callout.warn { border-left-color: var(--danger); }

table.data {
  border-collapse: collapse;
  width: 100%;
  margin: 14px 0;
  font-size: 0.95rem;
}
table.data th, table.data td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
table.data thead th { background: var(--surface-2); }

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 28px 0;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-brand { font-weight: 700; color: var(--text); font-size: 1.1rem; margin: 0 0 4px; }
.footer-links { margin: 10px 0; gap: 6px 18px; }
.footer-links a { text-decoration: none; }
.footer-note { font-size: 0.85rem; margin: 6px 0 0; }

/* Mijn documenten */
.docs-group { margin: 1.5rem 0; }
.docs-list { list-style: none; padding: 0; margin: 0; }
.docs-item { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .75rem 0; border-bottom: 1px solid var(--border); }
.docs-item-title { flex: 1 1 16rem; font-weight: 600; overflow-wrap: anywhere; }
.docs-item-date { color: var(--muted); font-size: .9rem; }
.docs-item-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
/* Startersdossier */
.dossier-section { margin: 1.5rem 0; }
.dossier-list, .dossier-next { list-style: none; padding: 0; margin: 0; }
.dossier-list li { padding: .5rem 0; border-bottom: 1px solid var(--border); }
.dossier-step { padding: .75rem 0; border-bottom: 1px solid var(--border); }
.dossier-step p { margin: 0 0 .5rem; }
#docs-backup label:focus-within, #docs-backup .btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.my-docs-link { align-self: center; }

/* Verborgen velden echt verbergen (label/div met display:block overschreef [hidden]). */
[hidden] { display: none !important; }

/* Vinkjes naast hun tekst */
label.check { display: flex; align-items: center; gap: .5rem; font-weight: normal; }
label.check input { width: auto; margin: 0; flex: none; }

/* Bruto-netto: opbouwtabel */
.bn-table { width: 100%; border-collapse: collapse; margin-top: .5rem; }
.bn-table th { text-align: left; font-weight: normal; padding: .4rem .5rem .4rem 0; border-bottom: 1px solid var(--border); }
.bn-table td { text-align: right; white-space: nowrap; padding: .4rem 0; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }

/* Contractgenerator: voorbeeld */
.ct-preview { background: var(--surface, #fff); border: 1px solid var(--border); border-radius: 12px; padding: 24px; max-height: 70vh; overflow-y: auto; }
.ct-preview .ct-title { text-align: center; margin-top: 0; }
.ct-preview h4 { margin: 1.2em 0 .4em; }
.ct-preview p { white-space: pre-line; margin: 0 0 .6em; }
.ct-doc { background: var(--surface, #fff); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.ct-doc .ct-doctitle { text-align: center; margin-top: 0; }
.ct-doc h3 { font-size: 1.05rem; margin: 1.2em 0 .4em; }
.ct-doc .ct-opt { margin: .6em 0 .2em; font-size: .9rem; color: var(--muted, #555); }
.ph { background: var(--surface-2, #eef2f7); border-radius: 4px; padding: 0 3px; }
.ct-signatures { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 2em; }
.ct-sign br { display: none; }
.ct-sign div { margin-top: .5em; }

/* Vendor risk register */
.vrr-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 8px 0 16px; }
.vrr-stat { background: var(--surface-2, #eef2f7); border-radius: 10px; padding: 12px; }
.vrr-stat strong { display: block; font-size: 1.5rem; }
.vrr-stat span { font-size: .85rem; color: var(--muted); }
.vrr-table-wrap { overflow-x: auto; }
.vrr-table td, .vrr-table th { white-space: nowrap; }
.vrr-table td:first-child { white-space: normal; min-width: 140px; }
.vrr-badge { display: inline-block; border-radius: 999px; padding: 1px 10px; font-size: .85rem; font-weight: 600; }
.vrr-l0 { background: #e3f4e8; color: #17603a; }
.vrr-l1 { background: #fff4d6; color: #7a5600; }
.vrr-l2 { background: #ffe3cc; color: #8a3b00; }
.vrr-l3 { background: #fbdcdc; color: #9b1c1c; }
.vrr-due { color: var(--danger); font-weight: 600; }
.vrr-flag { color: var(--danger); font-size: .85rem; }
.vrr-core { font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.vrr-group { border: 1px solid var(--border); border-radius: 10px; padding: 8px 14px 4px; margin: 0 0 12px; }
.vrr-group legend { font-weight: 700; padding: 0 6px; }
.vrr-q { display: grid; grid-template-columns: 1fr 150px; gap: 12px; align-items: center; padding: 6px 0; border-top: 1px solid var(--border); }
.vrr-q:first-of-type { border-top: 0; }
.vrr-notes { display: block; margin: 12px 0; }
.vrr-notes textarea { width: 100%; }
.vrr-live { font-weight: 600; }
.vrr-app-sub, #vrr-app .sub { color: var(--muted); font-size: .92rem; }
.vrr-plans { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 14px; }
.vrr-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.vrr-file { position: relative; cursor: pointer; }
.btn-sm { padding: 4px 10px; font-size: .85rem; }
@media (max-width: 560px) { .vrr-q { grid-template-columns: 1fr; gap: 4px; } }
@media (prefers-color-scheme: dark) {
  .vrr-l0 { background: #173d27; color: #b7ebc9; }
  .vrr-l1 { background: #3d3212; color: #f5df9c; }
  .vrr-l2 { background: #46270f; color: #ffc999; }
  .vrr-l3 { background: #4a1818; color: #f7b4b4; }
}
