:root {
  --inkt: #14213d;
  --tekst: #2b2f38;
  --zacht: #6a7080;
  --lijn: #dde1e8;
  --accent: #8a6a24;       /* donker goud: leesbaar als tekst op wit */
  --goud: #c8a252;         /* goud voor lijntjes en details */
  --vlak: #f3f5f8;
  --rood: #c2372f;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 17px/1.65 "Public Sans", system-ui, sans-serif;
  color: var(--tekst);
  background: #fff;
}
a { color: var(--inkt); text-decoration-color: var(--goud); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
img { max-width: 100%; height: auto; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Kop van de site */
header.site { background: var(--inkt); color: #fff; border-bottom: 2px solid var(--goud); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; padding-top: 16px; padding-bottom: 16px; }
.logo { color: #fff; font-weight: 800; font-size: 22px; text-decoration: none; letter-spacing: -0.02em; }
header.site nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
header.site nav a { color: #c9d2e3; text-decoration: none; font-size: 15px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
header.site nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
header.site nav a.actief { color: var(--inkt); background: #fff; }

/* Mobiel: menu op één regel, zijwaarts te vegen */
@media (max-width: 700px) {
  header.site .wrap { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 14px; padding-bottom: 0; }
  .logo { font-size: 21px; }
  header.site nav {
    flex-wrap: nowrap; overflow-x: auto; gap: 4px;
    width: calc(100% + 40px); max-width: none; margin: 0 -20px; padding: 0 20px 12px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-padding: 0 20px;
  }
  header.site nav::-webkit-scrollbar { display: none; }
  header.site nav a { flex: none; white-space: nowrap; font-size: 15px; padding: 6px 13px; }
  /* Vervagen aan de rand laat zien dat er meer categorieën zijn */
  header.site nav.meer-rechts { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
  header.site nav.meer-links { -webkit-mask-image: linear-gradient(to left, #000 82%, transparent); mask-image: linear-gradient(to left, #000 82%, transparent); }
  header.site nav.meer-links.meer-rechts { -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent); }
}

main.wrap { padding-top: 36px; padding-bottom: 64px; }
.sectie { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; color: var(--inkt); margin: 0 0 28px; }
.leeg { color: var(--zacht); }

/* Overzicht */
.lijst { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 40px 28px; }
.kaart .beeld { display: block; }
.kaart .beeld img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.meta { display: flex; gap: 12px; font-size: 14px; margin: 14px 0 6px; }
.meta a { color: var(--accent); font-weight: 600; text-decoration: none; }
.meta time { color: var(--zacht); }
.kaart h2 { font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 8px; color: var(--inkt); }
.kaart h2 a { color: inherit; text-decoration: none; }
.kaart h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.kaart p { margin: 0; font-size: 16px; color: var(--zacht); }
.kaart .inhoud > p:last-child { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* Eerste artikel groot */
.kaart.groot { grid-column: 1 / -1; padding-bottom: 40px; border-bottom: 1px solid var(--lijn); }
.kaart.met-beeld.groot { display: grid; grid-template-columns: 3fr 2fr; gap: 32px; align-items: center; }
.kaart.groot h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -0.03em; }
.kaart.groot p { font-size: 17px; }
@media (max-width: 760px) { .kaart.met-beeld.groot { display: block; } }

/* Verder klikken */
.paginering { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--lijn); }
.paginering .teller { color: var(--zacht); font-size: 14px; }

/* Artikel */
.artikel { max-width: 720px; margin: 0 auto; }
.artikel .header { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; margin-bottom: 8px; }
.artikel h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; color: var(--inkt); margin: 4px 0 20px; }
.inleiding { font-size: 19px; line-height: 1.5; font-weight: 600; color: var(--inkt); margin: 0 0 28px; }
.tekst p { margin: 0 0 1.3em; }
figure { margin: 36px 0; }
figure img { display: block; width: 100%; border-radius: 6px; }
figcaption { font-size: 14px; color: var(--zacht); margin-top: 8px; }
.concept { background: #fff4d6; padding: 8px 14px; border-radius: 6px; font-size: 14px; }

.paginas { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--lijn); }
.teller { color: var(--zacht); font-size: 15px; }

/* Voet met het weer */
footer.site { background: var(--inkt); color: #c9d2e3; font-size: 14px; padding: 32px 0 20px; border-top: 2px solid var(--goud); }
.voet { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.voet-naam { display: flex; flex-direction: column; gap: 2px; }
.voet-naam strong { color: #fff; font-size: 18px; font-weight: 800; }
.voet-zin { color: #c9d2e3; }
.voet-klein { color: #7f8aa3; font-size: 12px; margin-top: 6px; }
.weer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 16px 22px; }
.weer-icoon { width: 56px; height: 56px; flex: none; }
.weer-hoofd { display: grid; grid-template-columns: auto auto; column-gap: 12px; align-items: baseline; }
.weer-plaats { grid-column: 1 / -1; font-size: 12px; color: #9aa6bd; }
.weer-temp { color: #fff; font-size: 36px; font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.weer-tekst { color: #fff; font-weight: 600; }
.weer-details { display: grid; grid-template-columns: repeat(2, auto); gap: 4px 22px; margin: 0; padding-left: 24px; border-left: 1px solid rgba(255,255,255,.12); }
.weer-details dt { font-size: 12px; color: #9aa6bd; }
.weer-details dd { margin: 0; color: #fff; font-weight: 600; }
.weer-bron { font-size: 12px; color: #7f8aa3; margin-top: 18px; }
.weer-bron a { color: inherit; }
@media (max-width: 700px) {
  .weer { width: 100%; }
  .weer-details { grid-template-columns: repeat(2, auto); padding-left: 0; border-left: 0; width: 100%; }
}

/* Beheer */
body.beheer { font-size: 15px; background: var(--vlak); }
.beheer h1 { color: var(--inkt); letter-spacing: -0.02em; }
.balk { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.knop { display: inline-block; background: var(--inkt); color: #fff; border: 1px solid var(--inkt); border-radius: 6px; padding: 8px 16px; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; }
.knop.licht { background: #fff; color: var(--inkt); border: 1px solid var(--lijn); }
.knop.rood { background: #fff; color: var(--rood); border: 1px solid #f0c9c6; }
.knop.rood:hover { background: var(--rood); color: #fff; }
.tabel { overflow-x: auto; background: #fff; border: 1px solid var(--lijn); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--lijn); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th { font-size: 13px; color: var(--zacht); font-weight: 600; }
td a { color: var(--inkt); text-decoration: none; }
td.acties { text-align: right; white-space: nowrap; }
td.acties form { display: inline; margin-left: 6px; }
td.datum { white-space: nowrap; }
td form { margin: 0; }
.status { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: #dff3e4; color: #1b6b34; }
.status.gepland { background: #fff4d6; color: #8a5a00; }
.status.concept { background: #eceef2; color: var(--zacht); }
.melding, .fout { padding: 10px 14px; border-radius: 6px; margin: 0 0 18px; }
.melding { background: #dff3e4; }
.fout { background: #fbe4e2; }
form.veld { max-width: 760px; }
form.veld.smal { max-width: 360px; margin: 40px auto; }
form.veld > label, .blok > label:first-child, .kolommen label { display: block; font-weight: 600; margin: 20px 0 6px; color: var(--inkt); }
.blok > label:first-child { margin-top: 0; }
input[type=text], input[type=password], input[type=datetime-local], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #c8cdd6; border-radius: 6px; font: inherit; background: #fff; color: var(--tekst);
}
textarea { resize: vertical; }
textarea.lang { min-height: 360px; }
input[type=file] { display: block; margin: 8px 0; }
.blok { background: #fff; border: 1px solid var(--lijn); border-radius: 8px; padding: 16px; margin-top: 20px; }
.blok input[type=text] { margin-top: 6px; }
.voorbeeld { display: block; max-width: 240px; border-radius: 4px; margin-bottom: 8px; }
.vink { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 6px 0; }
.vink.groot { margin-top: 24px; font-weight: 600; }
.hint { color: var(--zacht); font-size: 13px; margin: 6px 0 0; }
.kolommen { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .kolommen { grid-template-columns: 1fr; } }
.rij { display: flex; gap: 10px; align-items: center; }
.rij input[type=text] { flex: 1; min-width: 0; }
.knoppen { display: flex; gap: 10px; margin-top: 24px; }

/* Werkbalk boven de tekst */
.werkbalk { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: #fff; border: 1px solid #c8cdd6; border-bottom: 0; border-radius: 6px 6px 0 0; padding: 6px; }
.werkbalk button { font: inherit; font-size: 14px; background: var(--vlak); border: 1px solid var(--lijn); border-radius: 4px; padding: 5px 11px; cursor: pointer; color: var(--inkt); }
.werkbalk button:hover { background: #e4e8ef; }
.werkbalk .scheiding { width: 1px; height: 22px; background: var(--lijn); margin: 0 4px; }
.werkbalk + textarea { border-radius: 0 0 6px 6px; }
.tekst strong { color: var(--inkt); }

/* Onderaan het artikel: tags, delen en meer lezen */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 0; }
.tags a { font-size: 14px; color: var(--inkt); background: var(--vlak); border: 1px solid var(--lijn); border-radius: 999px; padding: 4px 12px; text-decoration: none; }
.tags a::before { content: "#"; color: var(--zacht); margin-right: 2px; }
.tags a:hover { border-color: var(--goud); color: var(--accent); }
.sectie-label { display: block; font-size: 14px; font-weight: 600; color: var(--zacht); letter-spacing: 0; }

.delen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; padding: 20px 0; border-top: 1px solid var(--lijn); border-bottom: 1px solid var(--lijn); }
.delen-label { font-size: 14px; font-weight: 600; color: var(--inkt); margin-right: 6px; }
.deel { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: #fff; text-decoration: none; padding: 7px 14px; border-radius: 999px; }
.deel:hover { filter: brightness(1.1); }
.deel.whatsapp { background: #1c9e55; }
.deel.x { background: #111; }
.deel.facebook { background: #1877f2; }

.meer { margin-top: 36px; }
.meer h2 { font-size: 18px; color: var(--inkt); margin: 0 0 14px; }
.meer-lijst { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.meer-item { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--inkt); }
.meer-item img, .meer-item .geen-beeld { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; background: var(--vlak); display: block; }
.meer-tekst { display: flex; flex-direction: column; gap: 2px; }
.meer-tekst strong { font-size: 15px; line-height: 1.3; }
.meer-tekst time { font-size: 13px; color: var(--zacht); }
.meer-item:hover strong { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .delen-label { width: 100%; }
  .meer-lijst { grid-template-columns: 1fr; }
  .meer-item { flex-direction: row; align-items: center; gap: 12px; }
  .meer-item img, .meer-item .geen-beeld { width: 96px; flex: none; }
}

/* Voorbeeld van Google in het beheer */
.google { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--lijn); border-radius: 8px; padding: 14px 16px; margin-top: 12px; font-family: Arial, sans-serif; }
.google-label { font-size: 12px; color: var(--zacht); font-family: "Public Sans", system-ui, sans-serif; margin-bottom: 6px; }
.google-adres { font-size: 13px; color: #4d5156; }
.google-titel { font-size: 19px; color: #1a0dab; line-height: 1.3; }
.google-tekst { font-size: 14px; color: #4d5156; line-height: 1.5; }

/* Alleen voor schermlezers en Google */
.verborgen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.auteur { color: var(--zacht); font-size: 14px; margin: -8px 0 20px; }

/* Gouden lijntje onder de titels */
.artikel h1::after,
.sectie::after,
.kaart.groot h2::after,
.meer h2::after,
.beheer h1::after {
  content: ""; display: block; width: 56px; height: 3px; margin-top: 14px; border-radius: 2px; background: var(--goud);
}
.meer h2::after { width: 40px; margin-top: 10px; }
.voet-naam strong::after { content: ""; display: block; width: 32px; height: 2px; margin: 8px 0 6px; background: var(--goud); }

/* Importeren */
table.import td { vertical-align: top; }
table.import tr.rij-dubbel td, table.import tr.rij-fout td { opacity: .55; }
table.import input[type=datetime-local] { min-width: 190px; }
