/* ============================================================
   JJ Internet Projects - ontwerp D "Index" (oktober 2026)
   Eén zelfstandige stylesheet: geen Bootstrap, geen template.
   Lettertype: Schibsted Grotesk (Google Fonts, geladen in Block_Css.php)
   ============================================================ */

:root {
  --jd-bg: #F2F2EF;
  --jd-paper: #FFFFFF;
  --jd-ink: #111111;
  --jd-muted: #55554F;
  --jd-line: #C8C8C2;
  --jd-line-strong: #111111;
  --jd-accent: #C2360C;
  --jd-accent-hover: #9A2A09;
  --jd-live: #1E7A46;
  --jd-new: #9A5B00;
  --jd-renew: #1A56B8;
  --jd-archive: #5F5F5A;
  --jd-max: 1240px;
  --jd-gutter: 24px;
  --jd-font: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--jd-bg);
  color: var(--jd-ink);
  font-family: var(--jd-font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--jd-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--jd-accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--jd-accent); outline-offset: 3px; }

h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.jd-wrap { max-width: var(--jd-max); margin: 0 auto; padding-left: var(--jd-gutter); padding-right: var(--jd-gutter); }

.jd-skip { position: absolute; left: -9999px; top: 0; }
.jd-skip:focus { left: 16px; top: 16px; background: var(--jd-paper); padding: 8px 12px; z-index: 10; }

/* Header ---------------------------------------------------- */

.jd-header { border-bottom: 1px solid var(--jd-line-strong); background: var(--jd-bg); }
.jd-header-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 18px; padding-bottom: 18px; }
.jd-brand { font-weight: 900; font-size: 22px; letter-spacing: -0.03em; text-decoration: none; }
.jd-brand span, .jd-mark span, .jd-accent { color: var(--jd-accent); }
.jd-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-size: 15px; font-weight: 500; }
.jd-nav a { text-decoration: none; display: inline-block; padding: 10px 0; }
.jd-nav a:hover { text-decoration: underline; color: var(--jd-ink); }
.jd-lang { display: flex; gap: 6px; align-items: center; color: var(--jd-muted); }
.jd-lang a[aria-current="true"] { font-weight: 800; color: var(--jd-ink); }

/* Algemene secties ----------------------------------------- */

.jd-section { padding-top: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--jd-line-strong); }
.jd-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 24px; font-size: 14px; }
.jd-label { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.jd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }

/* Hero ------------------------------------------------------ */

.jd-hero { padding-top: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--jd-line-strong); }
.jd-mark { font-size: clamp(96px, 24vw, 320px); font-weight: 900; line-height: 0.78; letter-spacing: -0.06em; margin-bottom: 40px; }
.jd-hero h1 { font-size: 30px; font-weight: 700; }
.jd-hero p { margin: 0; }

/* Index ----------------------------------------------------- */

.jd-index { border-top: 1px solid var(--jd-line-strong); }
.jd-index-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 2fr) minmax(0, 3fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--jd-line);
  text-decoration: none;
}
.jd-index-row:last-child { border-bottom-color: var(--jd-line-strong); }
.jd-index-head { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 10px 0; border-bottom-color: var(--jd-line-strong); }
a.jd-index-row:hover .jd-name { color: var(--jd-accent); }
.jd-nr { font-weight: 700; color: var(--jd-accent); }
.jd-name { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.jd-what, .jd-dom { font-size: 15px; line-height: 1.45; }

.jd-status { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.jd-status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.jd-status--live { color: var(--jd-live); }
.jd-status--new { color: var(--jd-new); }
.jd-status--renew { color: var(--jd-renew); }
.jd-status--archive { color: var(--jd-archive); }

/* Nu -------------------------------------------------------- */

.jd-now { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px 32px; }
.jd-now-item { display: flex; flex-direction: column; gap: 10px; }
.jd-now-letter { font-size: 48px; font-weight: 900; line-height: 1; color: var(--jd-accent); }
.jd-now-item h3 { font-size: 22px; font-weight: 700; }
.jd-now-item p { font-size: 16px; line-height: 1.6; margin: 0; }

/* Profiel en tijdlijn --------------------------------------- */

.jd-timeline { display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.55; }
.jd-timeline div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }

/* Opzet en onderhoud ---------------------------------------- */

.jd-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--jd-line-strong); }
.jd-spec { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--jd-line); display: flex; flex-direction: column; gap: 6px; }
.jd-spec-key { font-size: 13px; font-weight: 700; color: var(--jd-accent); }
.jd-spec-val { font-size: 20px; font-weight: 700; }
.jd-spec p { font-size: 15px; line-height: 1.5; margin: 0; }

/* Bloglijst (homepage, overzicht, meer artikelen) ----------- */

.jd-postlist { border-top: 1px solid var(--jd-line-strong); }
.jd-post {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(0, 3fr);
  gap: 8px 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--jd-line);
  text-decoration: none;
}
.jd-post-meta { font-size: 14px; font-weight: 600; color: var(--jd-accent); }
.jd-post-meta time { display: block; font-weight: 400; color: var(--jd-muted); }
.jd-post-title { font-size: 22px; font-weight: 700; line-height: 1.25; }
.jd-post-intro { grid-column: 2; font-size: 15px; line-height: 1.55; color: var(--jd-muted); margin: 0; }
a.jd-post:hover .jd-post-title { color: var(--jd-accent); }

/* Contact / footer ------------------------------------------ */

.jd-contact { padding-top: 56px; padding-bottom: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; align-items: end; }
.jd-contact-mail { font-size: clamp(30px, 4vw, 52px); font-weight: 800; letter-spacing: -0.02em; text-decoration: none; overflow-wrap: anywhere; }
.jd-small { font-size: 14px; line-height: 1.7; }

.jd-footer { border-top: 1px solid var(--jd-line-strong); padding-top: 24px; padding-bottom: 32px; font-size: 14px; }
.jd-footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.jd-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.jd-footer a { display: inline-block; padding: 6px 0; }

/* Blog: overzicht en artikel -------------------------------- */

.jd-page-head { padding-top: 56px; padding-bottom: 40px; border-bottom: 1px solid var(--jd-line-strong); }
.jd-page-head h1 { font-size: clamp(44px, 7vw, 96px); font-weight: 900; letter-spacing: -0.04em; line-height: 0.95; }
.jd-page-head p { max-width: 640px; margin: 20px 0 0; font-size: 18px; }

.jd-article { padding-top: 40px; padding-bottom: 64px; }
.jd-article-in { max-width: 760px; }
.jd-back { display: inline-block; font-size: 14px; font-weight: 600; margin-bottom: 32px; padding: 6px 0; }
.jd-article-meta { font-size: 14px; color: var(--jd-muted); display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 16px; }
.jd-article-meta .jd-cat { color: var(--jd-accent); font-weight: 700; }
.jd-article h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 28px; }
.jd-summary { border-top: 2px solid var(--jd-ink); border-bottom: 1px solid var(--jd-line); padding: 18px 0; margin: 0 0 32px; }
.jd-summary strong { display: block; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.jd-summary p { margin: 0; font-size: 18px; line-height: 1.55; }
.jd-figure { margin: 0 0 32px; }
.jd-figure img { width: 100%; border: 1px solid var(--jd-line); background: var(--jd-paper); }
.jd-prose { font-size: 18px; line-height: 1.7; }
.jd-prose h2 { font-size: 26px; font-weight: 700; margin: 40px 0 14px; }
.jd-prose h3 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; }
.jd-prose ul, .jd-prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.jd-prose li { margin-bottom: 0.4em; }
.jd-prose table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 16px; border-top: 2px solid var(--jd-ink); }
.jd-prose th { text-align: left; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--jd-ink); }
.jd-prose td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--jd-line); vertical-align: top; }
.jd-prose td:last-child, .jd-prose th:last-child { text-align: right; padding-right: 0; font-weight: 700; }
.jd-prose table + p { font-size: 14px; color: var(--jd-muted); }
.jd-prose a { color: var(--jd-ink); text-decoration: underline; text-decoration-color: var(--jd-accent); }
.jd-prose a:hover { color: var(--jd-accent); }
.jd-author { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--jd-line-strong); font-size: 15px; color: var(--jd-muted); }
.jd-author b { color: var(--jd-ink); }
.jd-more { padding-top: 40px; padding-bottom: 56px; border-top: 1px solid var(--jd-line-strong); }
.jd-empty { padding: 24px 0; color: var(--jd-muted); }

/* 404 ------------------------------------------------------- */

.jd-404 { padding-top: 80px; padding-bottom: 96px; }
.jd-404 h1 { font-size: clamp(64px, 14vw, 180px); font-weight: 900; letter-spacing: -0.05em; line-height: 0.9; margin-bottom: 24px; }

/* Juridische pagina's (bestaande HTML in Document, klassen jjip-*) */

.jjip-page .jjip-container { max-width: var(--jd-max); margin: 0 auto; padding: 0 var(--jd-gutter); }
.jjip-page.jjip-legal { padding: 48px 0 80px; }
.jjip-legal-header, .jjip-legal-body { max-width: 820px; }
.jjip-legal-header { margin: 0 0 40px; }
.jjip-legal-header h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 900; letter-spacing: -0.04em; margin: 0 0 24px; }
.jjip-legal-header p, .jjip-legal-body p, .jjip-legal-body li { line-height: 1.7; }
.jjip-legal-version { color: var(--jd-muted); font-size: 15px; margin-top: 24px !important; }
.jjip-legal-body h2 { font-size: 26px; font-weight: 700; margin: 56px 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--jd-line-strong); }
.jjip-legal-body h3 { font-size: 20px; font-weight: 700; margin: 32px 0 10px; }
.jjip-legal-body h4 { font-size: 17px; font-weight: 700; margin: 24px 0 8px; }
.jjip-legal-body ul, .jjip-legal-body ol { padding-left: 1.5rem; margin: 0 0 1rem; }
.jjip-legal-body li { margin-bottom: 0.45rem; }
.jjip-legal-body a { text-decoration: underline; text-decoration-color: var(--jd-accent); }
.jjip-legal-body em { color: var(--jd-muted); }
.jjip-legal-body code { background: var(--jd-paper); padding: 0.1rem 0.35rem; font-size: 0.92em; }
.jjip-legal-body table { width: 100%; border-collapse: collapse; margin: 20px 0 24px; font-size: 15px; border-top: 1px solid var(--jd-line-strong); }
.jjip-legal-body th { text-align: left; font-weight: 700; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--jd-line-strong); }
.jjip-legal-body td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--jd-line); vertical-align: top; }
.jjip-legal-toc { border-top: 1px solid var(--jd-line-strong); border-bottom: 1px solid var(--jd-line-strong); padding: 24px 0; margin: 32px 0 48px; }
.jjip-legal-toc h3 { font-size: 13px !important; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--jd-muted) !important; margin: 0 0 12px !important; }
.jjip-legal-toc h3:not(:first-child) { margin-top: 24px !important; }
.jjip-legal-toc ol, .jjip-legal-toc ul { margin: 0; padding-left: 1.25rem; }
.jjip-legal-toc li { margin-bottom: 0.4rem; font-size: 16px; }
.jjip-legal-toc a { text-decoration: none; }
.jjip-legal-toc a:hover { text-decoration: underline; }

/* Contactformulier (shortcode [contactform]) ---------------- */

#contactform { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
#contactform .form-control { width: 100%; font: inherit; padding: 12px; border: 1px solid var(--jd-line-strong); background: var(--jd-paper); }
#contactform .btn { font: inherit; font-weight: 700; padding: 12px 20px; min-height: 44px; border: 0; background: var(--jd-ink); color: #FFFFFF; cursor: pointer; }
#contactform .alert { padding: 10px 0; }

/* Telefoon -------------------------------------------------- */

@media (max-width: 720px) {
  body { font-size: 16px; }
  .jd-index-head { display: none; }
  .jd-index-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    grid-template-areas: "nr name name" ". what what" ". dom status";
    gap: 4px 12px;
  }
  .jd-nr { grid-area: nr; }
  .jd-name { grid-area: name; font-size: 21px; overflow-wrap: normal; }
  .jd-status { grid-area: status; font-size: 13px; }
  .jd-what { grid-area: what; }
  .jd-dom { grid-area: dom; color: var(--jd-muted); font-size: 13px; }
  .jd-post { grid-template-columns: 1fr; }
  .jd-post-intro { grid-column: 1; }
  .jd-hero h1 { font-size: 26px; }
  .jd-prose { font-size: 17px; }
}
