:root {
  --brand: #650500;
  --brand-dark: #3D0300;
  --green: #4F8F3D;
  --green-tint: #EAF2E4;
  --green-tint-2: #DCEBD3;
  --bg: #FBFAF6;
  --text: #2A1F1C;
  --text-muted: #6B5F58;
  --border: #E1E6DC;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }

html { overflow-x: hidden; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Header */
.site-header {
  background: var(--white);
  padding: 18px 0;
  position: relative;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header__logo { flex-shrink: 0; }
.site-header__logo img { width: 180px; height: auto; display: block; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #4A3B34;
  flex-wrap: nowrap;
}
.site-nav a { white-space: nowrap; }
.site-header .btn { flex-shrink: 0; white-space: nowrap; }
.site-header__accent { height: 4px; background: var(--green); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-shrink: 0; color: var(--brand); }

.account-menu { position: relative; flex-shrink: 0; }
.account-menu__trigger {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  border: none;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}
.account-menu__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(36, 23, 19, .12);
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease;
  z-index: 50;
}
.account-menu--open .account-menu__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.account-menu__label {
  font-size: 12px;
  color: var(--text-muted);
  padding-bottom: 8px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.account-menu__label strong { color: var(--brand); }
.account-menu__dropdown a { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; }
.link-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: inherit;
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: 1.5px solid transparent;
}
.btn--primary { background: var(--brand); color: var(--white); }
.btn--secondary { background: var(--white); color: var(--brand); border-color: var(--brand); }
.btn--small { padding: 10px 18px; font-size: 14px; }

/* Sections */
.section { padding: 72px 0; }
.section--tint { background: var(--green-tint); }
.section--white { background: var(--white); }
.section__title { font-size: 32px; font-weight: 800; color: var(--brand); text-align: center; }

/* Hero */
.hero { padding: 96px 0; }
.hero__inner { display: flex; gap: 56px; align-items: center; }
.hero__col { flex: 1 1 0; display: flex; flex-direction: column; gap: 22px; }
.hero__eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--green); }
.hero__title { font-size: 46px; line-height: 1.18; font-weight: 800; max-width: 560px; }
.hero__text { font-size: 17px; line-height: 1.7; color: var(--text-muted); max-width: 480px; }
.hero__actions { display: flex; gap: 16px; margin-top: 8px; }
.hero__media { flex-shrink: 0; position: relative; width: 460px; height: 420px; }
.hero__media .img-edit-wrap { width: 100%; height: 100%; border-radius: 28px; box-shadow: 0 16px 40px rgba(101,5,0,.16); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Problem / solution */
.ps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 56px;
  row-gap: 20px;
  align-items: start;
}
.ps-grid__label { font-size: 17px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ps-grid__label--probleem { color: #8A6A5E; }
.ps-grid__label--oplossing { color: var(--green); }
.ps-item__row { display: flex; align-items: flex-start; gap: 10px; }
.ps-item__dot { width: 8px; height: 8px; border-radius: 999px; margin-top: 8px; flex-shrink: 0; }
.ps-item__dot--probleem { background: #8A6A5E; }
.ps-item__dot--oplossing { background: var(--green); }
.ps-item p { font-size: 18px; line-height: 1.6; color: #4A3B34; font-weight: 600; }
.ps-item__taglabel { display: none; }

/* Gallery */
.gallery { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.gallery__item { display: flex; flex-direction: column; gap: 8px; }
.gallery__item .img-edit-wrap { width: 250px; height: 190px; border-radius: 20px; box-shadow: 0 8px 20px rgba(42,31,28,.1); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__caption { font-size: 12px; color: #6B7A63; text-align: center; font-weight: 600; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.step__num { width: 42px; height: 42px; border-radius: 999px; background: var(--green-tint-2); color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.step__title { font-size: 17px; font-weight: 800; margin-top: 12px; }
.step__text { font-size: 14px; line-height: 1.6; color: var(--text-muted); margin-top: 8px; }

/* Testimonial */
.testimonial { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.testimonial__quote { font-size: 22px; line-height: 1.6; font-weight: 700; color: #2E4326; }
.testimonial__author { display: flex; align-items: center; gap: 12px; }
.testimonial__avatar { width: 44px; height: 44px; border-radius: 999px; background: var(--white); display: flex; align-items: center; justify-content: center; color: var(--brand); font-weight: 800; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.price-card { border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 16px; background: var(--green-tint); }
.price-card--uitgelicht { background: var(--white); border: 2px solid var(--brand); position: relative; }
.price-card__badge { position: absolute; top: -15px; left: 32px; background: var(--green); color: var(--white); font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; }
.price-card__naam { font-size: 20px; font-weight: 800; }
.price-card__prijs { font-size: 32px; font-weight: 800; color: var(--brand); }
.price-card__periode { font-size: 15px; font-weight: 600; color: var(--text-muted); }
.price-card__pakketregel { font-size: 13px; font-weight: 700; color: var(--brand); background: var(--white); padding: 6px 12px; border-radius: 999px; display: inline-block; width: fit-content; }
.price-card--uitgelicht .price-card__pakketregel { background: var(--green-tint); }
.price-card__beschrijving { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.price-card__btn { margin-top: auto; text-align: center; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; text-align: center; }
.stat__getal { font-size: 36px; font-weight: 800; color: var(--brand); }
.stat__label { font-size: 14px; color: #4A5D42; font-weight: 600; }

/* Info cards (werkgroepen / melkput) */
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.info-card { background: var(--green-tint); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.info-card__title { font-size: 19px; font-weight: 800; }
.info-card__text { font-size: 14px; line-height: 1.6; color: #4A5D42; }
.info-card__link { font-size: 14px; font-weight: 700; color: var(--brand); }

/* CTA */
.cta { text-align: center; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; align-items: center; }

/* Newsletter */
.newsletter { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 720px; margin: 0 auto; }
.newsletter form { display: flex; gap: 12px; }
.newsletter input[type="email"] { padding: 12px 18px; border-radius: 999px; border: 1px solid var(--border); font-size: 14px; width: 220px; font-family: inherit; }
.newsletter button { background: var(--brand); color: #FAF3EC; border: none; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 14px; font-family: inherit; cursor: pointer; }

/* Footer */
.site-footer { background: var(--brand); color: #E9D9CE; padding: 48px 0 32px; }
.site-footer a { color: inherit; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; align-items: start; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; font-weight: 600; }
.site-footer__col-title { font-weight: 800; color: #FAF3EC; }
.site-footer__logo img { width: 170px; height: auto; display: block; }
.site-footer__bottom { border-top: 1px solid var(--brand-dark); margin-top: 40px; padding-top: 20px; font-size: 12px; display: flex; justify-content: space-between; }

/* Portal layout */
.portal { display: flex; min-height: 100vh; }
.portal__sidebar { width: 260px; flex-shrink: 0; background: var(--white); color: #4A3B34; display: flex; flex-direction: column; padding: 24px 16px; gap: 4px; border-right: 1px solid var(--green-tint); position: relative; transition: width .15s ease; }
.portal__sidebar-topbar { display: flex; align-items: center; justify-content: space-between; }
.portal__sidebar-nav { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; }
.portal__logo { padding: 8px 8px 28px; overflow: hidden; }
.portal__logo img { width: 160px; height: auto; display: block; }
.portal-nav-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: #4A3B34; }
.portal-nav-link--active { background: var(--green-tint); color: var(--brand); font-weight: 700; }
.portal-nav-link svg { flex-shrink: 0; }
.portal-nav-link__label { white-space: nowrap; }
.portal__sidebar-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }

.portal-sidebar-collapse-toggle { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--brand); cursor: pointer; }
.portal-sidebar-collapse-toggle svg { transition: transform .15s ease; }

.portal--ingeklapt .portal__sidebar { width: 76px; padding-left: 10px; padding-right: 10px; }
.portal--ingeklapt .portal__sidebar-topbar { flex-direction: column; gap: 10px; }
.portal--ingeklapt .portal__logo { padding: 0; width: 32px; }
.portal--ingeklapt .portal__logo img { width: 32px; }
.portal--ingeklapt .portal-nav-link__label { display: none; }
.portal--ingeklapt .portal-nav-link { justify-content: center; padding: 10px; }
.portal--ingeklapt .portal-sidebar-collapse-toggle svg { transform: rotate(180deg); }
.portal__main { flex: 1 1 0; padding: 40px; display: flex; flex-direction: column; gap: 28px; }
.portal__topbar { display: flex; align-items: center; justify-content: space-between; }
.portal-card { background: var(--white); border: 1px solid var(--green-tint); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.portal-card--uitgifte { flex-direction: row; align-items: center; gap: 20px; }
.portal-card__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--green-tint); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.portal-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.portal-grid__col { display: flex; flex-direction: column; gap: 24px; }
.werkgroep-row { display: flex; align-items: center; justify-content: space-between; padding: 12px; background: var(--green-tint); border-radius: 12px; }

.leden-tabel { width: 100%; border-collapse: collapse; font-size: 13px; }
.leden-tabel th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); padding: 8px 14px; border-bottom: 2px solid var(--green-tint); white-space: nowrap; }
.leden-tabel td { padding: 12px 14px; border-bottom: 1px solid var(--green-tint); vertical-align: top; }
.leden-tabel tbody tr:last-child td { border-bottom: none; }
.leden-tabel tfoot td { padding: 10px 14px; }
.leden-tabel tfoot tr:first-child td { border-top: 2px solid var(--green-tint); }
.leden-tabel__muted { color: var(--text-muted); }
.leden-tabel__badge { font-size: 12px; font-weight: 700; color: var(--brand); background: var(--green-tint); padding: 3px 10px; border-radius: 999px; display: inline-block; white-space: nowrap; }
.leden-tabel__knop-rand { background: none; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; color: var(--text-muted); }

.pakket-stepper { display: flex; align-items: center; gap: 10px; }
.pakket-stepper__knop { width: 36px; height: 36px; flex-shrink: 0; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-size: 18px; font-weight: 800; color: var(--brand); cursor: pointer; font-family: inherit; line-height: 1; }
.pakket-stepper__input { width: 32px !important; text-align: center; padding: 8px 4px; }
.pakket-stepper__knop:hover { background: var(--green-tint); }

.vee-dagtabs { display: none; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.vee-dagtab { background: var(--green-tint); border: none; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 700; color: var(--text-muted); cursor: pointer; font-family: inherit; }
.vee-dagtab--actief { background: var(--brand); color: #fff; }

@media (max-width: 900px) {
  .vee-dagtabs { display: flex; }
  .vee-tabel th[data-dag], .vee-tabel td[data-dag] { display: none; }
  .vee-tabel th[data-dag].vee-dag--actief, .vee-tabel td[data-dag].vee-dag--actief { display: table-cell; }
  .vee-tabel th, .vee-tabel td { font-size: 13px; padding: 10px 8px; }
  .vee-tabel input[type="text"], .vee-tabel input[type="number"], .vee-tabel select { min-width: 0; width: 100%; }
}
.lidstatus-bar { height: 8px; border-radius: 999px; background: #D5E2CE; overflow: hidden; }
.lidstatus-bar__fill { height: 100%; background: var(--brand); }

.portal-card form input[type="date"],
.portal-card form input[type="time"],
.portal-card form input[type="text"],
.portal-card form input[type="email"],
.portal-card form input[type="password"],
.portal-card form input[type="number"],
.portal-card form input[type="file"],
.portal-card form select,
.portal-card form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  resize: vertical;
}

/* Quill rich-text editor (vervangt een textarea, zie static/js/richtext-editor.js) */
.ql-toolbar.ql-snow { border-color: var(--border); border-radius: 10px 10px 0 0; font-family: inherit; }
.ql-container.ql-snow { border-color: var(--border); border-radius: 0 0 10px 10px; font-size: 14px; }
.ql-editor { min-height: 160px; }

/* Login form */
.login-page { max-width: 420px; margin: 96px auto; display: flex; flex-direction: column; gap: 24px; padding: 0 20px; }
.login-form { display: flex; flex-direction: column; gap: 16px; background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 32px; }
.login-form label { font-size: 14px; font-weight: 700; }
.login-form input { padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border); font-size: 15px; font-family: inherit; }
.login-form button { background: var(--brand); color: #fff; border: none; padding: 12px; border-radius: 999px; font-weight: 700; font-size: 15px; cursor: pointer; }
.login-form__error { color: var(--brand); font-size: 13px; }

/* Frontend (inline) tekstbewerking */
.editable {
  outline: 1px dashed transparent;
  outline-offset: 2px;
  border-radius: 4px;
  cursor: text;
  transition: outline-color .15s ease, background-color .15s ease;
}
.editable:hover { outline-color: var(--green); }
.editable:focus { outline: 2px dashed var(--brand); background: rgba(101, 5, 0, 0.04); }

.inline-edit-bar {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  display: none;
  align-items: center;
  gap: 12px;
  background: var(--brand);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  font-family: 'Nunito', sans-serif;
}
.inline-edit-bar__save {
  background: #fff;
  color: var(--brand);
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.inline-edit-bar__status { font-size: 13px; }

.img-edit-wrap { position: relative; overflow: hidden; display: block; }
.img-edit-wrap[data-edit-image-path] { cursor: pointer; }
.img-edit-overlay {
  position: absolute;
  inset: 0;
  background: rgba(36, 23, 19, 0.55);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .15s ease;
  pointer-events: none;
}
.img-edit-wrap:hover .img-edit-overlay { opacity: 1; }
.img-edit-wrap--uploading .img-edit-overlay { opacity: 1; }

.img-picker-modal { position: fixed; inset: 0; z-index: 1100; }
.img-picker-modal[hidden] { display: none; }
.img-picker-modal__backdrop { position: absolute; inset: 0; background: rgba(36, 23, 19, 0.5); }
.img-picker-modal__dialog {
  position: relative;
  max-width: 640px;
  max-height: 80vh;
  margin: 8vh auto;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  font-family: 'Nunito', sans-serif;
}
.img-picker-modal__header { display: flex; align-items: center; justify-content: space-between; }
.img-picker-modal__header h3 { margin: 0; font-size: 18px; font-weight: 800; color: var(--text); }
.img-picker-modal__close {
  border: none;
  background: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}
.img-picker-modal__upload-btn {
  align-self: flex-start;
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.img-picker-modal__status { font-size: 13px; color: var(--text-muted); min-height: 18px; }
.img-picker-modal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}
.img-picker-modal__thumb {
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--green-tint);
  aspect-ratio: 4 / 3;
}
.img-picker-modal__thumb:hover { border-color: var(--green); }
.img-picker-modal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Recept-foto's: kleine thumbnails die uitklappen naar een lightbox */
.recept-foto-thumb {
  width: 280px;
  height: 210px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: opacity 0.15s ease;
}
.recept-foto-thumb:hover { opacity: 0.85; }

.recept-lightbox { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 40px; box-sizing: border-box; overflow: auto; }
.recept-lightbox[hidden] { display: none; }
.recept-lightbox__backdrop { position: absolute; inset: 0; background: rgba(36, 23, 19, 0.85); }
.recept-lightbox__img {
  position: relative;
  width: min(90vw, 900px);
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.recept-lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

/* Vervolgpagina's: richtext, nieuws, agenda, FAQ */
.richtext { font-size: 16px; line-height: 1.7; color: var(--text); display: flex; flex-direction: column; gap: 16px; }
.richtext h2 { font-size: 24px; font-weight: 800; color: var(--brand); }
.richtext h3 { font-size: 19px; font-weight: 800; }
.richtext p { margin: 0; }
.richtext ul, .richtext ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.richtext a { color: var(--brand); font-weight: 700; }

.nieuws-item, .agenda-item {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 20px;
  border-radius: 16px;
  background: var(--green-tint);
}
.nieuws-item { flex-direction: column; gap: 6px; align-items: flex-start; }
.nieuws-item__datum, .agenda-item__datum { font-size: 13px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .03em; }
.nieuws-item__titel, .agenda-item__titel { font-size: 19px; font-weight: 800; color: var(--text); }
.nieuws-item__intro { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.agenda-item__datum { flex-shrink: 0; min-width: 70px; font-size: 18px; }
.agenda-item__locatie { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.faq-item { border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.faq-item__vraag { font-size: 17px; font-weight: 800; margin: 0 0 8px; }
.faq-item__antwoord { font-size: 15px; color: var(--text-muted); line-height: 1.6; margin: 0; }

@media (max-width: 900px) {
  .hero__inner { flex-direction: column; }
  .hero__media { width: 100%; height: 320px; }
  .ps-grid, .steps-grid, .pricing-grid, .stats-grid, .info-grid, .site-footer__grid { grid-template-columns: 1fr; }
  .ps-grid__label { display: none; }
  .ps-item { margin-bottom: 4px; }
  .ps-item__taglabel {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
  }
  .ps-item__taglabel--probleem { color: #8A6A5E; }
  .ps-item__taglabel--oplossing { color: var(--green); }
  .portal { flex-direction: column; }
  .portal__sidebar, .portal--ingeklapt .portal__sidebar { width: 100%; padding: 16px; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal__sidebar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 8px 16px 16px;
    box-shadow: 0 16px 24px rgba(42, 31, 28, 0.12);
    z-index: 200;
  }
  .portal__sidebar-nav--open { display: flex; }
  .portal-sidebar-collapse-toggle { display: none; }
  .portal--ingeklapt .portal__logo { padding: 8px 8px 28px; width: auto; }
  .portal--ingeklapt .portal__logo img { width: 160px; }
  .portal--ingeklapt .portal-nav-link__label { display: inline; }
  .portal--ingeklapt .portal-nav-link { justify-content: flex-start; padding: 10px 12px; }

  .site-header__logo img { width: 140px; }
  .menu-toggle { display: flex; }
  .site-header__cta { display: none; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--white);
    padding: 16px 20px 20px;
    box-shadow: 0 16px 24px rgba(42, 31, 28, 0.12);
    z-index: 200;
  }
  .site-nav--open { display: flex; }
  .site-nav a { padding: 8px 0; width: 100%; }
  .site-nav .account-menu { width: 100%; }
  .site-nav .account-menu__dropdown { position: static; box-shadow: none; padding: 8px 0 0; }

  .newsletter { flex-direction: column; align-items: stretch; gap: 16px; }
  .newsletter form { flex-direction: column; }
  .newsletter input[type="email"] { width: 100%; }
  .newsletter button { width: 100%; }
}

/* Telefoons: rijen met vaste breedtes (kolom-uitlijning, stat-tegels, knoppengroepen)
   mogen niet meer naast elkaar passen — laat ze dan onder elkaar vallen in plaats
   van de pagina breder te maken dan het scherm. */
@media (max-width: 600px) {
  .portal__main { padding: 20px 16px; gap: 20px; }
  .portal-card { padding: 16px; }
  .portal__topbar { flex-wrap: wrap; row-gap: 10px; }
  .portal-card--uitgifte { flex-direction: column; align-items: flex-start; }
  .werkgroep-row, .bestand-rij, .pakket-rij { flex-wrap: wrap; row-gap: 8px; }
}
