/* SiteNest Demo – huisstijl volgens brandboek v1.0, overgenomen uit sitenest.nl (assets/css/style.css).
   Navy #1E3A5F · Green #4CAF50 · Wit · Slate #A5B0BF · Poppins
   Groen nooit voor lopende tekst (contrast 2,8:1); primaire knoppen zijn groen met vette navy tekst. */

@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }

/* ---------- 1. Merktokens (brandboek) ---------- */
:root {
  --navy: #1E3A5F;
  --green: #4CAF50;
  --green-hover: #5DBB61;
  --green-dark: #3E9142;
  --slate: #A5B0BF;
  --text: #1E3A5F;
  --muted: #4A5D78;
  --bg: #FFFFFF;
  --bg-soft: #F3F6FA;
  --line: #DCE3EC;
  --radius: 16px;
  --radius-input: 12px;
  --shadow: 0 10px 30px rgba(30, 58, 95, .10);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wrap: 1120px;
  /* Aanvulling voor een applicatie: meldingskleuren, rustig en met voldoende contrast. */
  --ok-bg: #EEF8EE; --ok-line: var(--green);
  --warn-bg: #FFF7E0; --warn-line: #D99A00; --warn-text: #6B4B00;
  --error-bg: #FDE8E8; --error-line: #D63B3B; --error-text: #8F1D1D;
}

/* ---------- 2. Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--text); background: var(--bg-soft); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 2px; text-decoration-color: var(--green); }
a:hover { text-decoration-color: var(--navy); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
h1, h2 { font-weight: 700; line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.25rem); }
h2 { font-size: 1.25rem; }
main > h2 { margin-top: 2.25rem; }
p { margin: 0 0 1em; }
code { background: rgba(30, 58, 95, .08); padding: .05em .35em; border-radius: 4px; font-size: .9em; overflow-wrap: anywhere; }
small { display: block; font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.strong { font-weight: 600; }
.muted { color: var(--muted); }
.hint { font-size: .9rem; color: var(--muted); margin: .35rem 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .75rem 1.25rem; z-index: 100; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
.eyebrow { display: inline-block; font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .75rem; padding-bottom: .3rem; border-bottom: 3px solid var(--green); }

/* ---------- 3. Knoppen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 600 1.2rem/1.2 var(--font); padding: .9rem 1.7rem; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--green); color: var(--navy); }
.btn-primary:hover { background: var(--green-hover); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-danger { background: #fff; color: var(--error-text); border-color: var(--error-line); }
.btn-danger:hover { background: var(--error-bg); }
.btn-small { font-size: 1rem; padding: .55rem 1.15rem; min-height: 44px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- 4. Kop, navigatie en voet ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.brand-sub { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; border-bottom: 3px solid var(--green); line-height: 1.6; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav ul a { font-weight: 500; font-size: .95rem; text-decoration: none; padding: .4rem 0; border-bottom: 3px solid transparent; }
.nav ul a:hover, .nav ul a[aria-current="page"] { border-bottom-color: var(--green); }
.nav-toggle { display: none; background: none; border: 2px solid var(--navy); border-radius: 10px; padding: .5rem .8rem; min-height: 44px; cursor: pointer; color: var(--navy); font: 600 1rem var(--font); }
main { flex: 1; padding-block: 2rem 3rem; }
.site-footer { background: var(--navy); color: #D6DEE9; padding: 1.25rem 0; font-size: .85rem; }
.site-footer a { color: #fff; text-decoration-color: var(--green); }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-head h1 { margin: 0; overflow-wrap: anywhere; }
.page-head .eyebrow { display: table; }

/* ---------- 5. Kaarten, meldingen, badges ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card > :last-child { margin-bottom: 0; }
.empty { text-align: center; color: var(--muted); padding: 2rem 1.5rem; }
.empty h2 { color: var(--navy); }
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.demo-card { display: flex; flex-direction: column; gap: .25rem; border-top: 5px solid var(--green); }
.demo-card .btn { margin-top: auto; align-self: flex-start; }
.alert { border: 1px solid; border-left-width: 6px; border-radius: var(--radius-input); padding: .85rem 1.1rem; margin-bottom: 1.25rem; }
.alert-ok { background: var(--ok-bg); border-color: var(--ok-line); }
.alert-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-text); }
.alert-error { background: var(--error-bg); border-color: var(--error-line); color: var(--error-text); }
.badge { display: inline-block; font-size: .8rem; font-weight: 600; padding: .15rem .7rem; border-radius: 99px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--navy); }
.badge-development { background: #E8EEF6; border-color: var(--slate); }
.badge-review { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-text); }
.badge-approved { background: var(--ok-bg); border-color: var(--green); }
.badge-live { background: var(--navy); border-color: var(--navy); color: #fff; }
.badge-archived { color: var(--muted); border-style: dashed; border-color: var(--slate); }

/* ---------- 6. Dashboard, tabellen, lijsten ---------- */
.stats { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; text-decoration: none; }
.stat:hover { box-shadow: var(--shadow); }
.stat-n { font-size: 2rem; font-weight: 700; line-height: 1.2; }
.stat-l { color: var(--muted); font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.chips a { font-size: .9rem; font-weight: 600; padding: .45rem .95rem; border-radius: 99px; background: #fff; border: 1px solid var(--line); text-decoration: none; }
.chips a[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.table tbody tr:last-child td { border-bottom: 0; }
.row-actions { text-align: right; white-space: nowrap; }
.row-actions .btn + .btn { margin-left: .4rem; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; overflow-wrap: anywhere; }
.access-list { list-style: none; margin: 0; padding-block: .25rem; }
.access-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.access-list li:last-child { border-bottom: 0; }
.access-list li > span { min-width: 0; }
.inline-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; margin-top: 1rem; }
.inline-add .field { flex: 1 1 260px; margin: 0; }
.danger-zone { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* ---------- 7. Formulieren ---------- */
.field { margin-bottom: 1.1rem; min-width: 0; }
label { font-weight: 600; font-size: .95rem; display: block; margin-bottom: .3rem; }
input:not([type="checkbox"]):not([type="hidden"]), select { width: 100%; font: inherit; color: var(--text); background: #fff; border: 2px solid var(--slate); border-radius: var(--radius-input); padding: .65rem .9rem; min-height: 48px; }
input:focus, select:focus { outline: 3px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
input[aria-invalid="true"] { border-color: var(--error-line); }
.field-error { color: var(--error-text); font-size: .9rem; font-weight: 500; margin: .35rem 0 0; }
.check { display: flex; align-items: center; gap: .6rem; }
.check input { width: 1.2rem; height: 1.2rem; accent-color: var(--navy); }
.form-grid { display: grid; gap: 0 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
form.card > .field { max-width: 32rem; }
form.inline { margin: 0; }

/* ---------- 8. Inlogscherm ---------- */
body.auth { justify-content: center; }
.auth-box { flex: 0 0 auto; width: min(100% - 2rem, 440px); margin: 0 auto; padding-block: 2rem; }
.auth-logo { margin: 0 auto 1.5rem; height: 80px; width: auto; }
.auth-card { border-top: 5px solid var(--green); box-shadow: var(--shadow); padding: 2rem; }
.auth-card h1 { font-size: 1.7rem; margin-bottom: .3em; }
.auth-foot { text-align: center; font-size: .9rem; color: var(--muted); margin-top: 1.25rem; }

/* ---------- 9. Mobiel ---------- */
@media (max-width: 900px) {
  /* Zonder JavaScript blijft het menu gewoon zichtbaar. */
  .header-inner { flex-wrap: wrap; }
  .nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 1rem; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav ul a[aria-current="page"] { border-bottom: 3px solid var(--green); }
  .nav form { margin-top: 1rem; }
  .nav .btn { width: 100%; }
  .js .site-header { position: relative; }
  .js .nav-toggle { display: inline-flex; align-items: center; }
  .js .nav { display: none; }
  .js .nav.open { display: flex; }
  .nav.nav-simple { flex-basis: auto; padding: 0; }
  .nav.nav-simple form { margin: 0; }
}
@media (max-width: 760px) {
  /* Tabelrijen worden kaartjes: niet zijwaarts scrollen op de telefoon. */
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table, .table tbody, .table tr, .table td { display: block; }
  .table tr { padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
  .table tbody tr:last-child { border-bottom: 0; }
  .table td { border: 0; padding: .2rem 0; }
  .table td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; color: var(--muted); font-size: .85rem; }
  .row-actions { text-align: left; white-space: normal; display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .6rem !important; }
  .row-actions .btn + .btn { margin: 0; }
  .details { grid-template-columns: 1fr; gap: 0; }
  .details dd { margin-bottom: .7rem; }
  .card { padding: 1.15rem; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 1.5rem); }
  .stats { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .access-list li { flex-wrap: wrap; }
  .demo-card .btn { align-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .btn:hover { transform: none; }
}
