/* =========================================================
   Boekhoudprogramma Eenmanszaak — stylesheet
   Handgeschreven CSS, geen frameworks, mobile-first.
   ========================================================= */

:root {
  --navy: #122b4d;
  --off-white: #fafaf8;
  --slate: #5b6b7c;
  --link: #2d4d75;
  --border: #e2e6ea;
  --max-width: 1120px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

body {
  background: var(--off-white);
  color: var(--navy);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 200;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand {
  display: flex;
  flex-direction: column;
  color: #fff;
}
.brand-name {
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand-tagline {
  display: none;
  font-size: 0.78rem;
  color: #c9d3de;
  font-weight: 400;
}

.nav-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  padding: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { stroke: #fff; }

.site-nav {
  display: none;
  width: 100%;
}
.site-nav.is-open { display: block; }
.site-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0 0.5rem;
}
.site-nav a {
  display: block;
  color: #e7ebf0;
  padding: 0.55rem 0.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.95rem;
}
.site-nav li:first-child a { border-top: none; }
.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
}

@media (min-width: 800px) {
  .brand-tagline { display: block; }
  .nav-toggle { display: none; }
  .site-header .container {
    flex-wrap: nowrap;
  }
  .site-nav {
    display: block;
    width: auto;
  }
  .site-nav ul {
    flex-direction: row;
    gap: 1.75rem;
    padding: 0;
  }
  .site-nav a {
    border-top: none;
    padding: 0.25rem 0;
  }
}

/* ---------- Main / generic sections ---------- */
main { display: block; }

.section {
  padding: 3rem 0;
}
.section--tight { padding: 2rem 0; }

/* ---------- Hero ---------- */
.hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 38ch;
  margin-bottom: 1.1rem;
}
.hero p {
  max-width: 62ch;
  color: var(--slate);
  font-size: 1.08rem;
}

/* ---------- Headings & text ---------- */
h1, h2, h3, h4 {
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}
h2 { font-size: 1.5rem; margin: 2.2rem 0 0.9rem; }
h3 { font-size: 1.15rem; margin: 1.6rem 0 0.6rem; }
p { margin-bottom: 1.05rem; color: var(--navy); }
.lede {
  font-size: 1.08rem;
  color: var(--slate);
}
a.inline-link {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a.inline-link:hover { color: var(--navy); }

.section-heading {
  font-size: 1.7rem;
  margin-bottom: 1.5rem;
}
.section-intro {
  color: var(--slate);
  max-width: 65ch;
  margin-bottom: 2rem;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 720px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}
.card {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}
.card p {
  color: var(--slate);
  font-size: 0.95rem;
  flex-grow: 1;
}
.card .card-link {
  color: var(--link);
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
}
.card .card-link svg { width: 14px; height: 14px; }
.card-link:hover { text-decoration: underline; }

/* ---------- Explainer / trust block ---------- */
.explainer {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
}
.explainer h2 { margin-top: 0; }
.check-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--navy);
}
.check-list svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  stroke: var(--link);
}

/* ---------- Blog listing ---------- */
.post-list {
  display: grid;
  gap: 1.5rem;
}
.post-item {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 1.75rem;
}
.post-item h2 {
  margin-top: 0;
  font-size: 1.3rem;
}
.post-item p { color: var(--slate); margin-bottom: 0.75rem; }
.post-item .card-link { color: var(--link); font-weight: 600; }

/* ---------- Article layout with TOC ---------- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2.5rem 0 3.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .article-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 3rem;
  }
}

.toc {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 1.25rem 1.25rem 1.4rem;
}
@media (min-width: 900px) {
  .toc {
    position: sticky;
    top: 1.5rem;
  }
}
.toc-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.toc ol {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  counter-reset: toc-counter;
}
.toc li {
  counter-increment: toc-counter;
}
.toc a {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--navy);
  line-height: 1.4;
}
.toc a::before {
  content: counter(toc-counter);
  color: var(--link);
  font-weight: 600;
  flex-shrink: 0;
}
.toc a:hover,
.toc a.is-active {
  color: var(--link);
  text-decoration: underline;
}

.article-content { min-width: 0; }
.article-meta {
  color: var(--slate);
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}
.article-content h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  margin-bottom: 1rem;
}
.article-content ul,
.article-content ol {
  margin: 0 0 1.05rem 1.3rem;
  color: var(--navy);
}
.article-content li { margin-bottom: 0.45rem; }
.article-content strong { color: var(--navy); }

.article-nav-links {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.6rem;
}
.article-nav-links a {
  color: var(--link);
  font-weight: 600;
  text-decoration: underline;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--link);
  color: #fff;
  padding: 0.7rem 1.3rem;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.95rem;
}
.btn:hover { background: var(--navy); }

/* ---------- Simple pages (over ons, contact, privacy) ---------- */
.prose { max-width: 70ch; }
.prose h1 { margin-bottom: 1.25rem; }
.prose h2 { margin-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #c9d3de;
  margin-top: 3rem;
}
.footer-inner {
  padding: 2.5rem 0 2rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 700px) {
  .footer-inner {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}
.footer-brand .brand-name { color: #fff; }
.footer-brand p {
  color: #aebdcd;
  font-size: 0.9rem;
  margin-top: 0.6rem;
  max-width: 32ch;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.9rem;
}
.footer-col ul { list-style: none; display: grid; gap: 0.55rem; }
.footer-col a {
  color: #c9d3de;
  font-size: 0.92rem;
}
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  font-size: 0.82rem;
  color: #97a7b8;
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
