/* ============================================================
   MODERN SKIN — Effe centraal
   Geactiveerd via body.modern. Volledig gescoped: andere themes
   blijven onaangetast.
   ============================================================ */

/* Box-sizing reset — voorkomt overflow bij width:100% + padding */
body.modern *,
body.modern *::before,
body.modern *::after {
  box-sizing: border-box;
}

/* Modern-only UI elements blijven verborgen in andere themes. */
body:not(.modern) .card-icon,
body:not(.modern) .card-status {
  display: none;
}

body.modern {
  /* === Design tokens === */
  --bg: #fbfbfc;
  --text: #1f1f1f;
  --text-muted: #6f6f6f;
  --text-subtle: #9a9a9a;

  --card-bg: #ffffff;
  --card-border: rgba(0,0,0,0.08);
  --card-radius: 14px;

  --primary: #ff7a5c;          /* warm coral, matched aan logo */
  --primary-dark: #e56649;
  --primary-darker: #993C1D;
  --primary-soft: #FAECE7;
  --primary-softer: rgba(216,90,48,0.10);

  --secondary: #f4f4f6;
  --secondary-hover: #ebebee;

  --accent: var(--primary);
  --accent-soft: var(--primary-soft);
  --soft-accent: var(--primary-soft);

  --danger: #d64545;
  --success: #1f6f43;
  --warning: #b58300;
  --info: #2563ce;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 28px rgba(0,0,0,0.08);
  --shadow: var(--shadow-md);

  --icon-color: var(--text-muted);
  --chip-bg: var(--secondary);

  --alert-success-bg: #f3fbf6;
  --alert-success-border: rgba(0,0,0,0.05);
  --alert-success-text: #1f6f43;
  --alert-error-bg: #fff5f3;
  --alert-error-border: rgba(0,0,0,0.06);
  --alert-error-text: #8a2f2f;
  --alert-info-bg: #f3f7ff;
  --alert-info-border: rgba(0,0,0,0.06);
  --alert-info-text: #1f3a8a;

  /* === Type stack: snel + consistent in alle browsers === */
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   LAYOUT SHELL
   ============================================================ */
body.modern .main-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

body.modern .content {
  padding: 24px 0 80px;
  max-width: none;
  margin: 0;
}

body.modern .context-bar + main.content {
  padding-top: 0;
}

body.modern.homepage .content,
body.modern.muni-search .content {
  padding-top: 0;
}

/* ============================================================
   TOPBAR
   ============================================================ */
body.modern .topbar {
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  /* Breek uit main-shell zodat de balk altijd schermbreed loopt */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Topbar-inner heeft IDENTIEK dezelfde max-width + padding als .main-shell,
   zodat logo links en profielknop rechts perfect uitlijnen met de content. */
body.modern .topbar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

body.modern .brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

body.modern .header-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

body.modern .header-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

body.modern .brand-wordmark {
  display: none;
}

body.modern .brand-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #993C1D;
  line-height: 1.1;
}

body.modern .brand-tagline {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6f6f6f;
}

body.modern .topbar-spacer { flex: 1; }

body.modern .topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.modern .topbar-actions--public {
  gap: 8px;
}
body.modern .topbar-actions--public .secondary-btn,
body.modern .topbar-actions--public .primary-btn {
  padding: 7px 14px;
  font-size: 13px;
  white-space: nowrap;
}

/* ============================================================
   NAV BUTTONS
   ============================================================ */
body.modern .top-nav {
  display: flex;
  gap: 2px;
}

body.modern .topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  color: #4f4f4f;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  border: none;
  text-decoration: none;
  transition: background .12s ease, color .12s ease;
  cursor: pointer;
}

body.modern .topbar-btn:hover {
  background: rgba(0,0,0,0.04);
}

body.modern .topbar-btn.is-active {
  background: var(--primary-softer);
  color: var(--primary-darker);
}

body.modern .topbar-ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

body.modern .topbar-label {
  font-size: 13px;
  font-weight: 500;
}

/* ============================================================
   PROFILE BUTTON
   ============================================================ */
body.modern .profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: 12px;
  background: rgba(0,0,0,0.04);
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background .12s ease;
  font-family: inherit;
}

body.modern .profile-trigger:hover {
  background: rgba(0,0,0,0.07);
}

body.modern .profile-trigger.is-active {
  background: var(--primary-softer);
  color: var(--primary-darker);
}

body.modern .profile-trigger > .topbar-ico {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  padding: 5px;
  box-sizing: border-box;
}

body.modern .profile-trigger.is-active > .topbar-ico {
  background: var(--primary-darker);
}

body.modern .profile-trigger .topbar-name {
  font-weight: 500;
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
body.modern .mobile-menu {
  position: absolute;
  top: 64px;
  right: 20px;
  background: var(--card-bg);
  border: 0.5px solid var(--card-border);
  border-radius: 14px;
  padding: 8px;
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 100;
}

body.modern .mobile-menu.active { display: block; }

body.modern .mobile-menu a,
body.modern .mobile-menu button {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: background .12s ease;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

body.modern .mobile-menu a:hover,
body.modern .mobile-menu button:hover {
  background: rgba(0,0,0,0.05);
}

body.modern .mobile-menu .menu-group {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
  padding: 8px 14px 4px;
}

body.modern .mobile-menu .menu-sep {
  height: 0.5px;
  background: var(--card-border);
  margin: 6px 8px;
}

body.modern .mobile-menu .logout-btn { color: var(--danger); }

/* ============================================================
   CONTEXT BAR (settings sub-nav)
   ============================================================ */
body.modern .context-bar {
  background: var(--card-bg);
  border-bottom: 0.5px solid var(--card-border);
  padding: 12px 0;
  margin: 0 -20px;
}

body.modern .context-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

body.modern .context-form {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  flex-wrap: wrap;
}

body.modern .context-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-right: 4px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
body.modern h1 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: var(--text);
}

body.modern .appointment-titlebar {
  margin-top: 0;
}

/* Pagina-titels met icon rechts (bijv. Gesprekken, Afspraken) */
body.modern .page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: var(--text);
}

/* Plus-knop naast paginatitels */
body.modern .add-topic-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  color: var(--primary);
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
  text-decoration: none;
}

body.modern .add-topic-icon:hover {
  background: var(--primary-soft);
  transform: scale(1.08);
}

body.modern .add-topic-icon svg,
body.modern svg.add-topic-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

body.modern h2 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--text);
}

body.modern h3 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0 0 6px;
  color: var(--text);
}

body.modern p {
  margin: 0 0 12px;
}

body.modern .dashboard-intro {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 24px;
}

/* ============================================================
   PILOT STRIP
   ============================================================ */
body.modern .pilot-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  margin-bottom: 20px;
  background: var(--primary-soft);
  border: 1px solid rgba(196, 79, 40, 0.18);
  border-radius: 12px;
  text-decoration: none;
  color: var(--primary-darker);
  font-size: 13.5px;
  line-height: 1.45;
  transition: background .15s ease, border-color .15s ease;
}
body.modern .pilot-strip:hover {
  background: #f5ddd5;
  border-color: rgba(196, 79, 40, 0.32);
}
body.modern .pilot-strip__badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  padding: 2px 9px;
}
body.modern .pilot-strip__text {
  flex: 1 1 auto;
}
body.modern .pilot-strip__arrow {
  flex-shrink: 0;
  opacity: .6;
}

/* ============================================================
   DASHBOARD CARDS
   ============================================================ */
body.modern .dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

body.modern .dashboard-card {
  display: flex;
}

body.modern .dashboard-card > .card,
body.modern .card {
  background: var(--card-bg);
  border: 0.5px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease;
}

body.modern .dashboard-card > .card:hover {
  box-shadow: var(--shadow-md);
}

body.modern .card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  flex-shrink: 0;
}

body.modern .card-icon svg {
  width: 20px;
  height: 20px;
}

body.modern .card-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-darker);
  font-size: 11px;
  font-weight: 500;
  align-self: flex-start;
}

body.modern .card-status--actief {
  background: rgba(34,197,94,0.12);
  color: #15803d;
}

body.modern .card-status--bewerking {
  background: rgba(234,179,8,0.13);
  color: #92630a;
}

body.modern .card-status--afgesloten {
  background: rgba(0,0,0,0.07);
  color: rgba(0,0,0,0.45);
}

body.modern .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

body.modern .card-status--actief    .status-dot { background: #22c55e; }
body.modern .card-status--bewerking .status-dot { background: #eab308; }
body.modern .card-status--afgesloten .status-dot { background: rgba(0,0,0,0.30); }

body.modern .card p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
}

body.modern .card .primary-btn,
body.modern .card .secondary-btn {
  margin-top: auto;
  align-self: flex-start;
}

body.modern .card .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  align-self: stretch;
}

body.modern .card .btn-row .primary-btn,
body.modern .card .btn-row .secondary-btn {
  margin-top: 0;
  align-self: flex-start;
}

body.modern .card .small-note {
  font-size: 12px;
  color: var(--text-subtle);
  font-style: italic;
  margin: -4px 0 0;
}

/* ============================================================
   APPOINTMENTS — mobiel: kaartlijst / desktop: week-weergave
   ============================================================ */

/* Mobiel: kaartlijst zichtbaar, week-weergave verborgen */
body.modern .appointments-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
body.modern .week-appointments {
  display: none;
}

/* Desktop: kaartlijst verbergen, week-weergave tonen */
@media (min-width: 768px) {
  body.modern .appointments-list {
    display: none;
  }
  body.modern .week-appointments {
    display: block;
  }
}

/* ── Week-card ── */
body.modern .week-card {
  padding: 0;
  overflow: hidden;
  margin-bottom: 12px;
}

/* 7-kolommen dag-grid */
body.modern .week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

body.modern .week-day {
  padding: 8px;
  border-right: 1px solid rgba(0,0,0,.06);
  min-height: 72px;
}
body.modern .week-day:last-child {
  border-right: none;
}

/* Dag-header */
body.modern .week-day-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  text-align: center;
}
body.modern .week-day-name {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
}
body.modern .week-day-date {
  font-size: 11px;
  color: var(--text-muted);
}
body.modern .week-day--today .week-day-name,
body.modern .week-day--today .week-day-date {
  color: var(--primary);
}
body.modern .week-day--today {
  background: var(--primary-softer, rgba(216,90,48,.05));
}

/* Afspraak-chips in een dag-cel */
body.modern .week-day-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.modern .week-appt {
  display: block;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.3;
  text-decoration: none;
  color: var(--text);
  background: var(--secondary, #f1f5f9);
}
body.modern .week-appt {
  cursor: pointer;
}
body.modern .week-appt:hover {
  opacity: .8;
}
body.modern .week-appt--invite {
  background: rgba(234,179,8,.13);
  color: #92630a;
}
body.modern .week-appt--activity {
  background: rgba(34,197,94,.12);
  color: #15803d;
}

body.modern .week-appt-time {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 1px;
}
body.modern .week-appt--invite .week-appt-time,
body.modern .week-appt--activity .week-appt-time {
  color: inherit;
  opacity: .8;
}
body.modern .week-appt-title {
  font-weight: 500;
}
body.modern .week-appt-org {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}
body.modern .week-appt--invite .week-appt-org,
body.modern .week-appt--activity .week-appt-org {
  color: inherit;
  opacity: .7;
}
body.modern .week-appt-comment-icon {
  display: inline-flex;
  align-items: center;
  margin-top: 3px;
  opacity: .55;
}
body.modern .week-appt-comment-icon svg {
  width: 10px;
  height: 10px;
}

body.modern .week-appt-badge {
  display: inline-block;
  margin-top: 3px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
}

body.modern .card.appointment-item {
  flex-direction: row;
  align-items: stretch;
  gap: 16px;
  padding: 16px 18px;
}

body.modern .appointment-days {
  flex: 0 0 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary-darker);
  border-radius: 12px;
  padding: 10px 4px;
  gap: 2px;
  /* Strekt automatisch tot volledige cardhoogte (parent heeft align-items: stretch) */
}

body.modern .appointment-days .days-number {
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}

body.modern .appointment-days .days-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: lowercase;
  opacity: 0.85;
  letter-spacing: 0.02em;
}

body.modern .appointment-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

body.modern .appointment-content > .appointment-header:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.modern .appointment-content .appointment-header h3 {
  margin: 0;
}

body.modern .appointment-content .appointment-header .org-label {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--text-muted);
  font-weight: 500;
}

body.modern .appointment-content .appointment-header .days-label {
  /* Override de modern .days-label opacity binnen content (datum-regel) */
  font-size: 13px;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  opacity: 1;
  color: var(--text-muted);
  margin: 0;
}

body.modern .appointment-meta {
  margin-top: 4px;
}

body.modern .appointment-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

body.modern .appointment-actions .secondary-btn,
body.modern .appointment-actions .primary-btn {
  margin-top: 0;
}

/* Edit-only knoppen alleen tonen wanneer body in edit-mode staat */
body.modern .edit-only,
body.modern .appointment-actions.edit-only {
  display: none;
}
body.modern.edit-mode .edit-only,
body.modern.edit-mode .appointment-actions.edit-only {
  display: flex;
}

body.modern .activity-invite-link {
  text-decoration: none;
  color: var(--text);
  display: block;
}

body.modern .activity-invite-title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

body.modern .activity-invite-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

body.modern .activity-invite-stats {
  margin-top: 8px;
}

body.modern .activity-invite-statslink {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13px;
}

body.modern .statline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.modern .activity-alert {
  background: rgba(255, 200, 0, 0.15);
  border: 0.5px solid rgba(255, 200, 0, 0.35);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: #6a4a00;
}

body.modern .appt-comment {
  border-left: 2px solid var(--primary-soft);
  padding: 6px 0 6px 10px;
  margin: 6px 0;
}

body.modern .appt-comment-author {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

body.modern .appt-comment-text {
  font-size: 13.5px;
  color: var(--text);
  font-style: normal;
}

/* Filterbalk voor afspraken */
body.modern .card.filter-bar {
  flex-direction: row;
  padding: 12px 14px;
}

body.modern .card.filter-bar .filter-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  width: 100%;
}

body.modern .card.filter-bar select,
body.modern .card.filter-bar input[type="date"] {
  display: inline-block;
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  padding: 7px 10px;
  font-size: 13px;
}

body.modern .card.filter-bar select {
  flex: 1 1 200px;   /* iets ruimer voor de organisatie-naam */
}

body.modern .card.filter-bar .secondary-btn,
body.modern .card.filter-bar .primary-btn {
  flex: 0 0 auto;
  margin-top: 0;
}

/* Mobiel: alles op één regel — select krimpt, datums worden compacte icoontjes */
@media (max-width: 640px) {
  body.modern .card.filter-bar .filter-form {
    flex-wrap: nowrap;
    gap: 6px;
  }
  body.modern .card.filter-bar select {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
  }
  body.modern .card.filter-bar input[type="date"] {
    flex: 0 0 36px;
    width: 36px;
    min-width: 36px;
    padding: 0;
    color: transparent;
    font-size: 0;
  }
}

/* Mobiel: dagen-teller iets compacter, blijft links */
@media (max-width: 540px) {
  body.modern .card.appointment-item {
    gap: 12px;
    padding: 14px;
  }
  body.modern .appointment-days {
    flex: 0 0 54px;
    padding: 8px 4px;
  }
  body.modern .appointment-days .days-number {
    font-size: 20px;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
body.modern .primary-btn,
body.modern .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, transform .05s ease;
  font-family: inherit;
}

body.modern .primary-btn:hover,
body.modern .btn-primary:hover { background: var(--primary-dark); }

body.modern .primary-btn:active,
body.modern .btn-primary:active { transform: scale(0.98); }

body.modern .secondary-btn,
body.modern .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--primary-darker);
  border: 0.5px solid var(--primary-soft);
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
  font-family: inherit;
}

body.modern .secondary-btn:hover,
body.modern .btn-ghost:hover {
  background: var(--primary-soft);
  border-color: #F5C4B3;
}

/* ============================================================
   FORMS
   ============================================================ */
body.modern .input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

body.modern .input-group label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

body.modern input[type="text"],
body.modern input[type="email"],
body.modern input[type="password"],
body.modern input[type="number"],
body.modern input[type="date"],
body.modern input[type="datetime-local"],
body.modern input[type="search"],
body.modern textarea,
body.modern select {
  padding: 10px 12px;
  border: 0.5px solid var(--card-border);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}

body.modern input:focus,
body.modern textarea:focus,
body.modern select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-softer);
}

/* ============================================================
   ALERTS
   ============================================================ */
body.modern .alert {
  border-radius: 10px;
  padding: 12px 14px;
  border: 0.5px solid;
  font-size: 14px;
  margin: 0 0 12px;
}
body.modern .alert-success,
body.modern .alert.success {
  background: var(--alert-success-bg);
  border-color: var(--alert-success-border);
  color: var(--alert-success-text);
}
body.modern .alert-error,
body.modern .alert-danger,
body.modern .alert.error,
body.modern .alert.danger {
  background: var(--alert-error-bg);
  border-color: var(--alert-error-border);
  color: var(--alert-error-text);
}
body.modern .alert-info,
body.modern .alert.info {
  background: var(--alert-info-bg);
  border-color: var(--alert-info-border);
  color: var(--alert-info-text);
}

/* ============================================================
   LANDING / HERO (publieke homepage)
   ============================================================ */
body.modern .hero {
  text-align: center;
  padding: 70px 20px 50px;
}
body.modern .hero h1 {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}
body.modern .hero-lead {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 28px;
  line-height: 1.45;
}
body.modern .hero-cta {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

body.modern .block,
body.modern .quote,
body.modern .cta-final {
  padding: 40px 20px;
  margin: 24px 0;
}
body.modern .block-inner,
body.modern .quote-inner,
body.modern .cta-inner {
  max-width: 720px;
  margin: 0 auto;
}
body.modern .block-accent {
  background: var(--primary-soft);
  border-radius: 18px;
}

body.modern .cta-final {
  background: var(--primary-soft);
  border-radius: 18px;
  text-align: center;
}
body.modern .block h2,
body.modern .cta-final h2 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
body.modern .quote {
  text-align: center;
}
body.modern .quote-text {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  font-style: italic;
  line-height: 1.45;
  color: var(--text);
  margin: 0;
}
body.modern .cta-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
body.modern .main-footer {
  border-top: 0.5px solid var(--card-border);
  padding: 24px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  margin: 40px -20px 0;
}

/* ============================================================
   CHAT PAGINA
   ============================================================ */

/* Hef de content padding-top op zodat de chat-header direct onder de topbar begint */
body.modern .chat-page {
  margin-top: -24px;
}

/* Chat-header breekt uit de main-shell zodat hij schermbreed loopt,
   net als de topbar. top: 60px = topbar hoogte (10px pad + 40px logo + 10px pad).
   z-index lager dan topbar (50) en mobile menu (100) zodat deze er gewoon overheen kunnen. */
body.modern .chat-header {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  top: 60px;
  z-index: 30;
  background: var(--card-bg);
  border-bottom: 0.5px solid var(--card-border);
  box-shadow: var(--shadow-sm);
}

/* Inner uitgelijnd met de rest van de content */
body.modern .chat-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
}

body.modern .chat-header-title .title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

body.modern .chat-header-title .subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

/* Icon buttons in chat header passend bij moderne stijl */
body.modern .chat-header .icon-btn {
  border-radius: 10px;
  background: transparent;
  border: 0.5px solid transparent;
}

body.modern .chat-header .icon-btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary-soft);
}

/* Composer: vast onderaan het scherm, boven de footer */
body.modern .chat-composer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 10px 20px calc(16px + env(safe-area-inset-bottom));
  box-sizing: border-box;
  background: linear-gradient(
    to top,
    var(--bg) 60%,
    transparent 100%
  );
}

body.modern .chat-composer .card {
  max-width: 1160px;
  margin: 0 auto;
}

/* ---- App-overschrijvingen voor chat (modern theme) ---- */
body.modern.is-native-app .chat-page {
  margin-top: 0; /* nav bar heeft al -24px, dubbel effect voorkomen */
}

body.modern.is-native-app .chat-header {
  background: var(--bg);
  top: 44px;
  box-shadow: none;
}

/* Footer verbergen op de chatpagina */
body.chat-open .main-footer { display: none; }
body.chat-open.modern .content { padding-bottom: 0; }


/* ============================================================
   PUBLIC HOMEPAGE — HERO
   ============================================================ */
body.modern .public-hero {
  text-align: center;
  padding: 72px 20px 56px;
  background: linear-gradient(180deg, #fff5f0 0%, transparent 100%);
  margin: 0 -20px;
}

body.modern .public-hero h1 {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--text);
}

body.modern .public-hero-lead {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* Search component */
body.modern .public-search {
  max-width: 520px;
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  background: var(--card-bg);
  border: 0.5px solid var(--card-border);
  border-radius: 14px;
  padding: 8px 8px 8px 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

body.modern .public-search-input {
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--text);
  padding: 4px 0;
  width: 100%;
  font-family: inherit;
}

body.modern .public-search-input:focus {
  outline: none;
  box-shadow: none;
  border-color: transparent;
}

body.modern .public-search-input::placeholder {
  color: var(--text-subtle);
}

body.modern .public-search-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s ease;
  white-space: nowrap;
}

body.modern .public-search-btn:hover { background: var(--primary-dark); }

/* Search container — wraps form + autocomplete dropdown */
body.modern .public-search-container {
  position: relative;
  max-width: 520px;
  margin: 0 auto 20px;
}

body.modern .public-search-container .public-search {
  max-width: none;
  margin: 0;
}

body.modern .public-autocomplete {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--card-bg);
  border: 0.5px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  overflow: hidden;
  z-index: 200;
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

body.modern .public-autocomplete.is-open {
  display: block;
}

body.modern .public-autocomplete-item {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: background .1s ease;
  text-align: left;
  border: none;
  background: transparent;
  width: 100%;
  font-family: inherit;
}

body.modern .public-autocomplete-item:hover,
body.modern .public-autocomplete-item.is-active {
  background: var(--primary-soft);
  color: var(--primary-darker);
}

/* Chips */
body.modern .public-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto 24px;
}

body.modern .public-chip-label {
  font-size: 13px;
  color: var(--text-muted);
  align-self: center;
  white-space: nowrap;
}

body.modern .public-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card-bg);
  border: 0.5px solid var(--card-border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background .12s ease, border-color .12s ease;
  cursor: pointer;
}

body.modern .public-chip:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-darker);
}

body.modern .public-trust {
  font-size: 12px;
  color: var(--text-subtle);
  margin: 0;
}

/* ============================================================
   PUBLIC HOMEPAGE — HOW IT WORKS (3 stappen)
   ============================================================ */
body.modern .public-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 0 0 40px;
}

body.modern .public-step {
  background: var(--card-bg);
  border: 0.5px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

body.modern .public-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-darker);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

body.modern .public-step h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 0;
}

body.modern .public-step p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   PUBLIC HOMEPAGE — PERSONA CARDS
   ============================================================ */
body.modern .public-personas-section {
  background: #fafafa;
  border-radius: 18px;
  padding: 32px 24px;
  margin: 0 0 40px;
}

body.modern .public-personas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

body.modern .public-persona {
  background: var(--card-bg);
  border: 0.5px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

body.modern .public-persona h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 0;
}

body.modern .public-persona p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   PUBLIC HOMEPAGE — FOOTER CTA BLOCK
   ============================================================ */
body.modern .public-cta-block {
  background: var(--primary-soft);
  border-radius: 18px;
  padding: 40px 24px;
  text-align: center;
  margin: 0 0 40px;
}

body.modern .public-cta-block h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}

body.modern .public-cta-block p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 20px;
}

body.modern .public-cta-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

body.modern .ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--primary-darker);
  border: 0.5px solid rgba(153, 60, 29, 0.30);
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s ease;
}

body.modern .ghost-btn:hover { background: rgba(153,60,29,0.06); }

/* ============================================================
   PUBLIC HOMEPAGE — LAYOUT HELPERS
   ============================================================ */
body.modern .public-hero-inner,
body.modern .public-section-inner {
  max-width: 760px;
  margin: 0 auto;
}

body.modern .public-steps-section {
  margin: 0 0 40px;
}

body.modern .public-steps-section h2,
body.modern .public-personas-section h2 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}

/* Search — icon + input flex child (1fr column in the grid) */
body.modern .public-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body.modern .public-search-icon {
  flex-shrink: 0;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
}

/* Trust line */
body.modern .public-trust-line {
  font-size: 12px;
  color: var(--text-subtle);
  margin: 0;
}

/* Persona icon block */
body.modern .public-persona-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* CTA primary button */
body.modern .public-cta-btn.primary {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s ease;
}

body.modern .public-cta-btn.primary:hover {
  background: var(--primary-dark);
  color: #fff;
  text-decoration: none;
}

/* Pilot note — subtle section at bottom */
body.modern .public-pilot-note {
  padding: 12px 0 32px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

body.modern .public-pilot-note p { margin: 0; }

body.modern .public-pilot-note a {
  color: var(--primary-darker);
  text-decoration: underline;
}

/* ============================================================
   PUBLIC TOPIC LANDING — SECTION HEADING
   ============================================================ */
body.modern .section-heading-label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-subtle);
  display: block;
  margin-bottom: 14px;
}

body.modern .public-meta-line {
  font-size: 13px;
  color: var(--text-muted);
  margin: -4px 0 20px;
}

/* ============================================================
   BREADCRUMB NAVIGATIE (publieke pagina's)
   ============================================================ */
body.modern .public-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 13px;
}
body.modern .public-breadcrumb-home {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  opacity: .7;
  text-decoration: none;
  transition: opacity .15s;
}
body.modern .public-breadcrumb-home:hover { opacity: 1; }
body.modern .public-breadcrumb-sep {
  color: var(--text-muted);
  opacity: .4;
  font-size: 14px;
}
body.modern .public-breadcrumb-link {
  color: var(--text-muted);
  text-decoration: none;
}
body.modern .public-breadcrumb-link:hover { text-decoration: underline; }
body.modern .public-breadcrumb-current {
  color: var(--text-muted);
  opacity: .6;
}

/* ============================================================
   FAVORIET KNOP (hartje op kaarten)
   ============================================================ */
body.modern .public-fav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--text-muted);
  opacity: .45;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity .15s, color .15s;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
body.modern .public-fav-btn:hover {
  opacity: 1;
  color: var(--primary, #ff7a5c);
}

body.modern .activity-meta-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
body.modern .activity-meta-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================================
   PUBLIC TOPIC LANDING — SUPPORT CARDS (open + locked)
   ============================================================ */
body.modern .support-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

body.modern .support-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: var(--card-radius);
  border: 0.5px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
}

body.modern .support-card.locked {
  background: #f8f8f8;
  border-style: dashed;
  border-color: rgba(0,0,0,0.14);
}

body.modern .support-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  flex-shrink: 0;
}

body.modern .support-card.locked .support-card-icon {
  background: rgba(0,0,0,0.06);
  color: var(--text-subtle);
}

body.modern .support-card-icon svg {
  width: 16px;
  height: 16px;
}

body.modern .count-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-darker);
  font-size: 12px;
  font-weight: 600;
  align-self: flex-start;
  margin-bottom: 8px;
}

body.modern .support-card.locked .count-pill {
  background: rgba(0,0,0,0.06);
  color: var(--text-muted);
}

body.modern .support-card-title {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-subtle);
  margin-bottom: 6px;
}

body.modern .support-card-text {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 14px;
}

body.modern .support-card-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  transition: opacity .15s;
  align-self: flex-start;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

body.modern .support-card-btn.primary { background: var(--primary); color: #fff; }
body.modern .support-card-btn.primary:hover { background: var(--primary-dark); }
body.modern .support-card-btn.secondary {
  background: transparent;
  color: var(--primary-darker);
  border: 0.5px solid var(--primary-soft);
}
body.modern .support-card-btn.secondary:hover { background: var(--primary-soft); }

/* ============================================================
   PUBLIC TOPIC LANDING — CONVERSION BANNER
   ============================================================ */
body.modern .conversion-banner {
  background: var(--primary-soft);
  border-radius: 18px;
  padding: 32px 24px;
  text-align: center;
  margin: 28px 0;
}

body.modern .conversion-banner h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

body.modern .conversion-banner p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

body.modern .conversion-banner-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   PUBLIC TOPBAR — mini search (topic landing)
   ============================================================ */
body.modern .topbar-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.04);
  border-radius: 10px;
  padding: 6px 12px;
  flex: 1;
  max-width: 280px;
}

body.modern .topbar-search input {
  border: none;
  background: transparent;
  font-size: 13px;
  color: var(--text);
  padding: 0;
  width: 100%;
  font-family: inherit;
}

body.modern .topbar-search input:focus {
  outline: none;
  box-shadow: none;
  border-color: transparent;
}

body.modern .topbar-search input::placeholder { color: var(--text-subtle); }

body.modern .topbar-search svg {
  width: 14px;
  height: 14px;
  color: var(--text-subtle);
  flex-shrink: 0;
}

/* ============================================================
   HOMEPAGE REDESIGN — Split hero + activiteiten + gemeente-resultaten
   Alle klassen beginnen met hp- of muni- zodat ze nooit botsen
   met bestaande styles.
   ============================================================ */

/* --- Gedeelde layout helpers --- */
body.modern .hp-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Split hero --- */
body.modern .hp-split-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 32px;
}

/* Tekst in de jongeren-helft altijd wit, ongeacht globale h1/h2 kleur */
body.modern .hp-half--youth h1,
body.modern .hp-half--youth h2,
body.modern .hp-half--youth h3,
body.modern .hp-half--youth .hp-half-title,
body.modern .hp-half--youth .hp-badge {
  color: #fff;
}

body.modern .hp-half {
  padding: 60px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Jongeren-helft: warm donker */
body.modern .hp-half--youth {
  background: linear-gradient(145deg, #4a1505 0%, #8c2e0f 45%, #c94c25 100%);
  color: #fff;
}
body.modern .hp-half--youth::before {
  content: '';
  position: absolute;
  top: -100px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}
body.modern .hp-half--youth::after {
  content: '';
  position: absolute;
  bottom: -70px; left: -50px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

/* Begeleiders-helft: warm licht */
body.modern .hp-half--adult {
  background: linear-gradient(145deg, #fff8f5 0%, #fdf1ec 50%, #fae8e1 100%);
  color: var(--text);
  border-left: 0.5px solid rgba(0,0,0,0.06);
}
body.modern .hp-half--adult::before {
  content: '';
  position: absolute;
  top: -80px; right: -100px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,122,92,0.07);
  pointer-events: none;
}

/* Badge */
body.modern .hp-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 22px;
  width: fit-content;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.92);
}
body.modern .hp-badge--adult {
  background: var(--primary-softer);
  color: var(--primary-darker);
}

/* Titels en subtitel */
body.modern .hp-half-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
body.modern .hp-half-title--adult { color: var(--text); }
body.modern .hp-half-sub {
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 30px;
  max-width: 380px;
  color: rgba(255,255,255,0.78);
}
body.modern .hp-half-sub--adult { color: var(--text-muted); }

/* Formulier-indeling */
body.modern .hp-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 400px;
}
body.modern .hp-field { display: flex; flex-direction: column; }
body.modern .hp-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 9px;
  color: rgba(255,255,255,0.65);
}
body.modern .hp-label--adult { color: var(--text-muted); }
body.modern .hp-label-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  opacity: 0.7;
}

/* Select gemeente */
body.modern .hp-select-wrap {
  position: relative;
}
body.modern .hp-select {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border-radius: 11px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color .14s, background .14s;
}
body.modern .hp-half--youth .hp-select {
  border: 1.5px solid rgba(255,255,255,0.22);
  background-color: rgba(255,255,255,0.11);
  color: #fff;
}
body.modern .hp-half--youth .hp-select:focus {
  outline: none;
  border-color: rgba(255,255,255,0.5);
  background-color: rgba(255,255,255,0.16);
}
body.modern .hp-half--youth .hp-select option { background: #5c1f09; color: #fff; }
body.modern .hp-half--adult .hp-select,
body.modern .muni-select {
  border: 1.5px solid rgba(0,0,0,0.12);
  background-color: #fff;
  color: var(--text);
}
body.modern .hp-half--adult .hp-select:focus,
body.modern .muni-select:focus {
  outline: none;
  border-color: var(--primary);
}
body.modern .hp-select-caret {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
}

/* Leeftijdschips */
body.modern .hp-age-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
body.modern .hp-age-chip {
  padding: 9px 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.9);
  line-height: 1;
}
body.modern .hp-age-chip:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}
body.modern .hp-age-chip.is-selected {
  background: rgba(255,255,255,0.95);
  border-color: rgba(255,255,255,1);
  color: #8c2e0f;
}
/* Leeftijdschips in adult context (gemeente-resultaten) */
body.modern .muni-age-chips .hp-age-chip {
  background: var(--card-bg);
  border-color: rgba(0,0,0,0.12);
  color: var(--text-muted);
}
body.modern .muni-age-chips .hp-age-chip:hover {
  border-color: var(--primary);
  color: var(--primary-darker);
}
body.modern .muni-age-chips .hp-age-chip.is-selected {
  background: var(--primary-soft);
  border-color: rgba(201,76,37,0.3);
  color: var(--primary-darker);
}

/* Zoekbalk (adult helft) */
body.modern .hp-search-wrap { position: relative; z-index: 20; }
body.modern .hp-search-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  z-index: 1;
}
body.modern .hp-search-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 11px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--text);
  transition: border-color .14s;
  position: relative;
  z-index: 2;
}
body.modern .hp-search-input:focus {
  outline: none;
  border-color: var(--primary);
}
body.modern .hp-search-input::placeholder { color: var(--text-subtle); }

/* Gemeente autocomplete (jongeren-helft) */
body.modern .hp-muni-wrap { position: relative; z-index: 30; }
body.modern .hp-muni-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 11px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  background: rgba(255,255,255,0.11);
  color: #fff;
  transition: border-color .14s, background .14s;
  box-sizing: border-box;
}
body.modern .hp-muni-input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.16);
}
body.modern .hp-muni-input::placeholder { color: rgba(255,255,255,0.5); }
body.modern .hp-muni-results {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 11px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  max-height: 220px;
  overflow-y: auto;
  z-index: 100;
}
body.modern .hp-muni-results.is-open { display: block; }
body.modern .hp-muni-result-item {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
body.modern .hp-muni-result-item:last-child { border-bottom: none; }
body.modern .hp-muni-result-item:hover,
body.modern .hp-muni-result-item.is-active { background: var(--primary-soft); }

/* Situatie-chips (adult) */
body.modern .hp-situation-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
body.modern .hp-situation-chip {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-darker);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background .12s;
  line-height: 1;
  text-decoration: none;
}
body.modern .hp-situation-chip:hover { background: rgba(201,76,37,0.18); }

/* Hero-knoppen */
body.modern .hp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all .15s;
  align-self: flex-start;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
body.modern .hp-btn--youth {
  background: #fff;
  color: #8c2e0f;
}
body.modern .hp-btn--youth:hover {
  background: #fdf5f2;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
body.modern .hp-btn--adult {
  background: var(--primary);
  color: #fff;
}
body.modern .hp-btn--adult:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255,122,92,0.35);
}

/* --- Foto-strip --- */
body.modern .hp-photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 200px;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
body.modern .hp-photo-tile {
  position: relative;
  overflow: hidden;
}
body.modern .hp-photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
body.modern .hp-photo-tile:hover img { transform: scale(1.04); }
body.modern .hp-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 12px 14px;
}
body.modern .hp-photo-overlay span {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
body.modern .hp-photo-tile--placeholder {
  background: linear-gradient(135deg, #8c2e0f 0%, #c94c25 100%);
}
body.modern .hp-photo-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 12px;
}

/* --- Sectie-headers --- */
body.modern .hp-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}
body.modern .hp-section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
body.modern .hp-section-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}
body.modern .hp-section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-darker);
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
body.modern .hp-section-link:hover { text-decoration: underline; }

/* --- Activiteiten-sectie --- */
body.modern .hp-activities-section {
  padding: 60px 0;
}
body.modern .hp-activity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
body.modern .hp-activity-card {
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--card-bg);
  border: 0.5px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, transform .15s;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}
body.modern .hp-activity-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
body.modern .hp-activity-img-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  margin: 10px 0;
}
body.modern .hp-activity-body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
body.modern .hp-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-darker);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  align-self: flex-start;
}
body.modern .hp-activity-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 7px;
  line-height: 1.3;
}
body.modern .hp-activity-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
body.modern .hp-activity-meta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 0.5px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--text-subtle);
}
body.modern .hp-activity-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- Hoe werkt het --- */
body.modern .hp-how-section {
  background: linear-gradient(135deg, #fff8f5 0%, #fdf2ed 100%);
  padding: 60px 0;
  /* Breek uit shell */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
body.modern .hp-how-section > .hp-inner { padding: 0 24px; }
body.modern .hp-how-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
}
body.modern .hp-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
body.modern .hp-step-card {
  background: #fff;
  border-radius: var(--card-radius);
  padding: 28px 24px;
  text-align: center;
  border: 0.5px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-sm);
}
body.modern .hp-step-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--primary-darker);
}
body.modern .hp-step-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}
body.modern .hp-step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
body.modern .hp-step-card p  { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; }

/* --- Doelgroepen --- */
body.modern .hp-personas-section { padding: 60px 0; }
body.modern .hp-personas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
body.modern .hp-persona-card {
  border-radius: var(--card-radius);
  padding: 22px 18px;
  border: 0.5px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, transform .15s;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}
body.modern .hp-persona-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
body.modern .hp-persona-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
body.modern .hp-persona-icon--1 { background: linear-gradient(135deg, #4a1505, #c94c25); }
body.modern .hp-persona-icon--2 { background: linear-gradient(135deg, #1a4a8a, #2563ce); }
body.modern .hp-persona-icon--3 { background: linear-gradient(135deg, #1a5c31, #2d8f4e); }
body.modern .hp-persona-icon--4 { background: linear-gradient(135deg, #5c1a6e, #9b3fc0); }
body.modern .hp-persona-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
body.modern .hp-persona-card p  { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* --- CTA-block --- */
body.modern .hp-cta-section { padding: 0 0 72px; }
body.modern .hp-cta-card {
  background: linear-gradient(145deg, #4a1505 0%, #8c2e0f 45%, #c94c25 100%);
  border-radius: 24px;
  padding: 58px 52px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
body.modern .hp-cta-card::before {
  content: '';
  position: absolute; top: -90px; right: -90px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
body.modern .hp-cta-card::after {
  content: '';
  position: absolute; bottom: -70px; left: -70px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
body.modern .hp-cta-card h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
body.modern .hp-cta-card p {
  font-size: 16px;
  opacity: 0.78;
  margin-bottom: 30px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}
body.modern .hp-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
body.modern .hp-cta-btn {
  padding: 13px 26px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all .15s;
  display: inline-block;
  line-height: 1;
}
body.modern .hp-cta-btn--primary {
  background: #fff;
  color: #8c2e0f;
}
body.modern .hp-cta-btn--primary:hover { background: #fdf5f2; transform: translateY(-1px); }
body.modern .hp-cta-btn--ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
}
body.modern .hp-cta-btn--ghost:hover { background: rgba(255,255,255,0.2); }

/* --- Gemeente-resultaten (muni-) --- */
body.modern .muni-hero {
  background: linear-gradient(145deg, #fff8f5 0%, #fdf1ec 100%);
  padding: 40px 0;
  margin-bottom: 40px;
  /* Breek uit shell */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-bottom: 0.5px solid rgba(0,0,0,0.07);
}
body.modern .muni-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
body.modern .muni-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 16px;
}
body.modern .muni-back:hover { color: var(--text); }
body.modern .muni-hero-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  line-height: 1.2;
}
body.modern .muni-hero-accent { color: var(--primary-darker); }
body.modern .muni-hero-age {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-muted);
}
body.modern .muni-refine-form { margin-top: 4px; }
body.modern .muni-refine-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
body.modern .muni-select-wrap { min-width: 220px; max-width: 280px; flex-shrink: 0; }
body.modern .muni-refine-btn { font-size: 13px; padding: 10px 18px; align-self: center; }

/* Gemeente autocomplete op resultatenpagina */
body.modern .muni-ac-wrap {
  position: relative;
  min-width: 220px;
  max-width: 280px;
  flex-shrink: 0;
  z-index: 30;
}
body.modern .muni-ac-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--text);
  box-sizing: border-box;
  transition: border-color .14s;
}
body.modern .muni-ac-input:focus {
  outline: none;
  border-color: var(--primary);
}
body.modern .muni-ac-results {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  max-height: 220px;
  overflow-y: auto;
  z-index: 100;
}
body.modern .muni-ac-results.is-open { display: block; }
body.modern .muni-ac-item {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
body.modern .muni-ac-item:last-child { border-bottom: none; }
body.modern .muni-ac-item:hover,
body.modern .muni-ac-item.is-active { background: var(--primary-soft); }

body.modern .muni-results { padding-bottom: 72px; }
body.modern .muni-result-count {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

body.modern .muni-empty {
  text-align: center;
  padding: 60px 20px;
}
body.modern .muni-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary-darker);
}
body.modern .muni-empty h2 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
body.modern .muni-empty p  { font-size: 14px; color: var(--text-muted); max-width: 420px; margin: 0 auto 24px; }
body.modern .muni-empty-actions { display: flex; justify-content: center; }

body.modern .muni-also-search {
  margin-top: 48px;
  padding: 24px;
  border-radius: var(--card-radius);
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
body.modern .muni-also-search p {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-darker);
  margin: 0;
  white-space: nowrap;
}
body.modern .muni-also-search .hp-search-input {
  flex: 1;
  min-width: 180px;
  padding-left: 14px;
}

/* ============================================================
   ONDERWERP DETAILPAGINA
   ============================================================ */
body.modern .topic-detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
  margin-bottom: 48px;
}

/* Header-kaart: icoon + titel + beschrijving */
body.modern .topic-detail-header {
  background: var(--card-bg);
  border: 0.5px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  padding: 28px 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}
body.modern .topic-detail-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
body.modern .topic-detail-header-text { flex: 1; min-width: 0; }
body.modern .topic-detail-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 10px;
}
body.modern .topic-detail-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* Label boven de sectiekaarten */
body.modern .topic-sections-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-subtle);
  margin: 0 0 10px;
}

/* Drie-kolommen wrapper voor sectiekaarten */
body.modern .topic-sections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
body.modern .topic-sections-grid .topic-section-card,
body.modern .topic-sections-grid .topic-links-card {
  margin-bottom: 0;
}

/* Blok-kaarten: activiteiten / organisaties */
body.modern .topic-section-card {
  background: var(--card-bg);
  border: 0.5px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  padding: 22px 28px;
  margin-bottom: 16px;
}
body.modern .topic-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
body.modern .topic-section-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
body.modern .topic-section-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
body.modern .topic-section-count {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-darker);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
  text-decoration: none;
}
body.modern a.topic-section-count:hover { background: rgba(201,76,37,0.16); }
body.modern .topic-section-body {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 16px;
}
body.modern .topic-section-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary-darker);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 0.5px solid rgba(153,60,29,.25);
  transition: background .13s;
}
body.modern .topic-section-btn:hover { background: rgba(201,76,37,0.16); }

/* Externe links */
body.modern .topic-links-card {
  background: var(--card-bg);
  border: 0.5px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  padding: 22px 28px;
  margin-bottom: 16px;
}

body.modern .topic-links-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-subtle, var(--text-muted));
  margin: 14px 0 6px;
}
body.modern .topic-links-group-label:first-of-type {
  margin-top: 6px;
}
body.modern .topic-links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 14px;
}
body.modern .topic-ext-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.09);
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: border-color .14s, box-shadow .14s;
}
body.modern .topic-ext-link:hover {
  border-color: rgba(0,0,0,.18);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
body.modern .topic-ext-type {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-subtle);
}
body.modern .topic-ext-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  padding-right: 20px;
}
body.modern .topic-ext-arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  opacity: .35;
}

/* Rechter CTA-paneel */
body.modern .topic-cta-panel {
  background: linear-gradient(160deg, #7a1e04 0%, #b5420f 55%, #d85a22 100%);
  border-radius: 20px;
  padding: 28px 24px 32px;
  color: #fff;
  position: sticky;
  top: 80px;
}
body.modern .topic-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  margin-bottom: 16px;
}
body.modern .topic-cta-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.25;
  margin: 0 0 8px;
  color: #fff;
}
body.modern .topic-cta-sub {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,.8);
  margin: 0 0 20px;
}
body.modern .topic-cta-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.18);
  margin: 20px 0;
}

/* Geïnteresseerden blok in CTA */
body.modern .topic-cta-community {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
body.modern .topic-cta-community-count {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  flex-shrink: 0;
}
body.modern .topic-cta-community-label {
  font-size: 12.5px;
  color: rgba(255,255,255,.75);
  line-height: 1.4;
}

/* Bewaar-knop in CTA */
body.modern .topic-cta-save-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,.14);
  border: 1.5px solid rgba(255,255,255,.28);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .14s;
  margin-bottom: 16px;
}
body.modern .topic-cta-save-btn:hover { background: rgba(255,255,255,.22); }

/* Registreer / login knoppen in CTA */
body.modern .topic-cta-reg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff;
  color: #8c2e0f;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  font-family: inherit;
  transition: background .14s;
  margin-bottom: 10px;
}
body.modern .topic-cta-reg-btn:hover { background: #fdf5f2; }
body.modern .topic-cta-login-btn {
  display: block;
  text-align: center;
  color: rgba(255,255,255,.8);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  font-family: inherit;
  padding: 4px 0;
}
body.modern .topic-cta-login-btn:hover { color: #fff; }

/* Responsive */
@media (max-width: 860px) {
  body.modern .topic-detail-grid { grid-template-columns: 1fr; }
  body.modern .topic-cta-panel { position: static; }
  body.modern .topic-detail-header { flex-direction: column; gap: 14px; }

}
@media (max-width: 680px) {
  body.modern .topic-sections-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body.modern .topic-detail-header { padding: 20px; }
  body.modern .topic-section-card,
  body.modern .topic-links-card { padding: 18px 20px; }
}

/* ============================================================
   ACTIVITEIT DETAILPAGINA
   ============================================================ */
body.modern .act-detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
}

/* Linker kolom: detail */
body.modern .act-detail-card {
  background: var(--card-bg);
  border: 0.5px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
body.modern .act-detail-img-wrap {
  width: 100%;
  max-height: 340px;
  overflow: hidden;
}
body.modern .act-detail-img-wrap img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: cover;
  display: block;
}
body.modern .act-detail-body {
  padding: 28px 32px 32px;
}
body.modern .act-detail-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 12px;
}
body.modern .act-detail-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
}
body.modern .act-detail-meta {
  border-top: 0.5px solid var(--card-border);
  padding-top: 16px;
  gap: 10px;
}
body.modern .act-detail-fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary-darker);
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: background .14s;
}
body.modern .act-detail-fav-btn:hover { background: rgba(201,76,37,0.18); }
body.modern .act-detail-fav-btn svg { flex-shrink: 0; }

/* Rechter kolom: CTA-paneel */
body.modern .act-detail-cta {
  background: linear-gradient(160deg, #7a1e04 0%, #b5420f 55%, #d85a22 100%);
  border-radius: 20px;
  padding: 32px 28px 36px;
  color: #fff;
  position: sticky;
  top: 80px;
}
body.modern .act-detail-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}
body.modern .act-detail-cta-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 10px;
  color: #fff;
}
body.modern .act-detail-cta-sub {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  margin: 0 0 24px;
}
body.modern .act-detail-cta-label {
  color: rgba(255,255,255,0.85) !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Gemeente autocomplete in CTA */
body.modern .act-detail-muni-wrap {
  position: relative;
  z-index: 30;
}
body.modern .act-detail-muni-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 11px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  background: rgba(255,255,255,0.12);
  color: #fff;
  box-sizing: border-box;
  transition: border-color .14s, background .14s;
}
body.modern .act-detail-muni-input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.18);
}
body.modern .act-detail-muni-input::placeholder { color: rgba(255,255,255,0.5); }
body.modern .act-detail-muni-results {
  display: none;
  position: absolute;
  top: calc(100% + 4px); left: 0; right: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 11px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  max-height: 220px; overflow-y: auto;
  z-index: 100;
}
body.modern .act-detail-muni-results.is-open { display: block; }
body.modern .act-detail-muni-item {
  padding: 10px 14px; font-size: 14px; color: var(--text);
  cursor: pointer; border-bottom: 1px solid rgba(0,0,0,0.05);
}
body.modern .act-detail-muni-item:last-child { border-bottom: none; }
body.modern .act-detail-muni-item:hover,
body.modern .act-detail-muni-item.is-active { background: var(--primary-soft); }

/* Leeftijdschips in CTA-paneel (wit op donker) */
body.modern .act-detail-age-chips .hp-age-chip {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.9);
}
body.modern .act-detail-age-chips .hp-age-chip:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}
body.modern .act-detail-age-chips .hp-age-chip.is-selected {
  background: rgba(255,255,255,0.95);
  border-color: #fff;
  color: #8c2e0f;
}

/* Zoekknop in CTA */
body.modern .act-detail-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 11px;
  background: #fff;
  color: #8c2e0f;
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: background .14s, transform .1s;
  margin-top: 4px;
}
body.modern .act-detail-cta-btn:hover {
  background: #fdf5f2;
  transform: translateY(-1px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  body.modern .topbar-inner {
    flex-wrap: wrap;
    gap: 6px;
  }
  body.modern .topbar-label {
    display: none;
  }
  /* Iconen-only knoppen krijgen een ruimer touch-target (min ~44px) */
  body.modern .topbar-btn {
    padding: 12px;
    border-radius: 12px;
  }
  body.modern .topbar-ico {
    width: 22px;
    height: 22px;
  }
  body.modern .profile-trigger .topbar-name {
    display: none;
  }
  body.modern .profile-trigger {
    padding: 6px;
  }
  body.modern .profile-trigger > .topbar-ico {
    width: 32px;
    height: 32px;
    padding: 6px;
  }
  body.modern .dashboard-cards {
    grid-template-columns: 1fr;
  }
  body.modern .hero { padding: 40px 20px 30px; }
  body.modern .hero h1 { font-size: 32px; }
  body.modern .hero-lead { font-size: 16px; }
  body.modern .block h2,
  body.modern .cta-final h2 { font-size: 22px; }

  /* Public hero */
  body.modern .public-hero { padding: 44px 20px 36px; }
  body.modern .public-hero h1 { font-size: 26px; }
  body.modern .public-hero-lead { font-size: 15px; }
  body.modern .public-search { max-width: 100%; }
  body.modern .public-search-btn { padding: 10px 14px; }
  body.modern .topbar-search { display: none; }
  body.modern .brand-wordmark { display: none; }
  body.modern .header-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
  }
  body.modern .public-cta-block { padding: 28px 16px; }
  body.modern .conversion-banner { padding: 24px 16px; }
  body.modern .support-cards-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   IMAGE DROP ZONE
   ============================================================ */
body.modern .img-drop-zone {
  border: 2px dashed rgba(0,0,0,0.14);
  border-radius: 14px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  outline: none;
  background: rgba(0,0,0,0.02);
  user-select: none;
}

body.modern .img-drop-zone:hover,
body.modern .img-drop-zone:focus-within {
  border-color: var(--primary);
  background: rgba(255,122,69,0.04);
}

body.modern .img-drop-zone.drag-over {
  border-color: var(--primary);
  background: rgba(255,122,69,0.09);
}

body.modern .img-drop-zone.has-image {
  padding: 12px;
  border-style: solid;
  border-color: rgba(0,0,0,0.09);
}

body.modern .img-drop-zone.has-image .img-drop-empty { display: none; }

body.modern .img-drop-icon-wrap {
  color: rgba(0,0,0,0.30);
  margin-bottom: 10px;
  line-height: 1;
}

body.modern .img-drop-main {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

body.modern .img-drop-link { color: var(--primary); text-decoration: underline; }

body.modern .img-drop-sub {
  font-size: 12px;
  color: var(--text-subtle);
}

body.modern .img-drop-preview {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 10px;
  display: none;
  margin: 0 auto;
}

body.modern .img-drop-replace {
  font-size: 12px;
  color: var(--text-subtle);
  margin-top: 8px;
  display: none;
}

body.modern .img-drop-zone.has-image .img-drop-replace { display: block; }

/* ============================================================
   RESPONSIVE — homepage redesign
   ============================================================ */
@media (max-width: 900px) {
  /* Split hero stapelt op mobiel */
  body.modern .hp-split-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  body.modern .hp-half { padding: 44px 28px; }
  body.modern .hp-half--adult { border-left: none; border-top: 0.5px solid rgba(0,0,0,0.08); }

  /* Foto-strip: 2 kolommen op tablet */
  body.modern .hp-photo-strip { grid-template-columns: repeat(2, 1fr); height: 160px; }

  /* 2-koloms activiteitengrid op tablet */
  body.modern .hp-activity-grid { grid-template-columns: repeat(2, 1fr); }


  /* Stappen 1 kolom */
  body.modern .hp-steps-grid { grid-template-columns: 1fr; max-width: 480px; }

  /* 2-koloms persona op tablet */
  body.modern .hp-personas-grid { grid-template-columns: repeat(2, 1fr); }

  /* CTA */
  body.modern .hp-cta-card { padding: 44px 28px; }

  /* Gemeente-resultaten refine rij stapelt */
  body.modern .muni-refine-row { flex-direction: column; align-items: flex-start; }
  body.modern .muni-select-wrap { max-width: 100%; width: 100%; }
  body.modern .muni-ac-wrap { max-width: 100%; width: 100%; }
}

@media (max-width: 560px) {
  body.modern .hp-half-title { font-size: 24px; }
  body.modern .hp-form { max-width: 100%; }
  body.modern .hp-activity-grid { grid-template-columns: 1fr; }
  body.modern .hp-personas-grid { grid-template-columns: 1fr; }
  body.modern .hp-photo-strip { height: 130px; grid-template-columns: repeat(2, 1fr); }
  body.modern .muni-hero-title { font-size: 20px; }
  body.modern .hp-section-head { flex-direction: column; align-items: flex-start; }
  body.modern .muni-also-search { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 840px) {
  body.modern .act-detail-grid {
    grid-template-columns: 1fr;
  }
  body.modern .act-detail-cta {
    position: static;
  }
}
@media (max-width: 560px) {
  body.modern .act-detail-body { padding: 20px; }
  body.modern .act-detail-title { font-size: 19px; }
  body.modern .act-detail-age-chips { flex-wrap: wrap; }
}
