@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&display=swap');

/* =====================================================================
   AIDG design system — single source of truth (light theme)
   Afgeleid van aidg/src/renderer/styles/globals.css (.light)
   Gebruikt door: www (publieke site), portal (app.css/portal.css importeren dit).
   WCAG: alle tekst >= 4.5:1; nooit muted tekst op accent-vlakken.
   ===================================================================== */

:root {
  /* Surfaces / achtergronden */
  --bg: #f0f7fb;
  --bg-2: #e8f2f7;
  --surface: #ffffff;
  --surface-hover: #f0f7fb;
  --surface-active: #e0eef5;
  --surface-muted: #f5fafb;

  /* Merk */
  --brand: #1a8fa5;
  --brand-hover: #157a8d;
  --brand-dark: #0f5a6a;
  --brand-soft: #e3f2f6;

  /* Accent (oranje) */
  --accent: #FF9500;
  --accent-hover: #FF8C00;
  --accent-soft: #fff0e6;

  /* Tekst */
  --text: #1a3a4a;
  --text-secondary: #2a5a6a;
  --text-muted: #4a6f7d;
  --text-on-brand: #ffffff;
  --text-on-accent: #3a2400;

  /* Randen */
  --border: #c5e2ed;
  --border-muted: #d8eaf2;
  --border-subtle: rgba(26, 143, 165, 0.10);

  /* Status */
  --success: #16a34a;
  --success-soft: #dcfce7;
  --success-text: #14532d;
  --warning: #ca8a04;
  --warning-soft: #fef9c3;
  --warning-text: #713f12;
  --error: #dc2626;
  --error-soft: #fee2e2;
  --error-text: #7f1d1d;

  /* Schaduw */
  --shadow-soft: 0 1px 4px rgba(26, 143, 165, 0.08);
  --shadow-card: 0 1px 3px rgba(26, 143, 165, 0.10), 0 1px 2px rgba(26, 143, 165, 0.06);
  --shadow-elevated: 0 4px 12px rgba(26, 143, 165, 0.15);

  /* Radius / maatvoering */
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --wrap: 1200px;
  --pad: clamp(16px, 2.6vw, 28px);

  /* Fonts */
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Aliassen voor oudere portal-variabelen (compat met bestaande markup) */
  --primary: var(--brand);
  --primary-dark: var(--brand-hover);
  --text-light: var(--text-secondary);
  --muted: var(--text-muted);
  --danger: var(--error);
  --info: var(--brand);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .4em;
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-hover); }

a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 8px;
}

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

::selection { background: rgba(26, 143, 165, .18); }

/* ===================== Layout ===================== */
.wrap, .container {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
  width: 100%;
}
.content { padding: 32px 0 48px; }
section { margin: 0; }

.muted, .text-muted { color: var(--text-muted); }
.center, .text-center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--text-secondary); margin: 0 0 1em; }
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}

/* ===================== Topbar / Nav ===================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner, .topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px var(--pad);
  max-width: var(--wrap);
  margin: 0 auto;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand__logo, .brand-logo {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; font-weight: 800;
}
.brand__title, .brand-title { font-weight: 800; color: var(--brand); letter-spacing: .2px; }
.brand__sub, .brand-sub { font-size: 12px; color: var(--text-secondary); font-weight: 500; }
.brand.brand--col { flex-direction: column; align-items: flex-start; gap: 2px; }

.nav {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
.nav a:not(.btn) {
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all .15s ease;
}
.nav a:not(.btn):hover { background: var(--brand-soft); color: var(--brand); }
.nav-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.lang-toggle a {
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 8px;
}
.lang-toggle a:hover { background: var(--brand-soft); }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .08s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary, .btn-primary {
  background: var(--accent);
  color: var(--text-on-accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover, .btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: var(--shadow-elevated);
  color: var(--text-on-accent);
}

.btn--brand, .btn-brand {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: var(--shadow-soft);
}
.btn--brand:hover, .btn-brand:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }

.btn--secondary, .btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn--secondary:hover, .btn-secondary:hover { background: var(--surface-hover); border-color: var(--brand); color: var(--brand); }

.btn--ghost, .btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn--ghost:hover, .btn-ghost:hover { background: var(--surface-active); color: var(--brand); }

.btn--danger, .btn-danger {
  background: var(--error);
  color: #fff;
  border-color: var(--error);
}
.btn--danger:hover, .btn-danger:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }

.btn--lg, .btn-lg { padding: 14px 26px; font-size: 16px; border-radius: var(--radius-lg); }
.btn--sm, .btn-sm { padding: 7px 12px; font-size: 13px; }
.btn--block { width: 100%; }
.iconbtn { padding: 10px 12px; min-width: 44px; }

@media (max-width: 520px) {
  .btn.btn--icononly span { display: none; }
}

/* ===================== Cards ===================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 24px;
}
.card--inner, .card-inner {
  padding: 16px;
  border-radius: var(--radius-lg);
  box-shadow: none;
  background: var(--surface);
}
.card--flat { box-shadow: none; }
.card.featured, .card--featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow-elevated);
}
.card-hover, .feature-card { transition: transform .2s ease, box-shadow .2s ease; }
.card-hover:hover, .feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-elevated); }

.cardhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.cardhead__title { font-weight: 800; font-family: var(--font-serif); margin: 0; }

/* ===================== Hero ===================== */
.hero {
  padding: clamp(48px, 8vw, 96px) 0;
  background:
    radial-gradient(900px 420px at 80% -10%, var(--brand-soft), transparent 60%),
    radial-gradient(700px 360px at 0% 0%, var(--accent-soft), transparent 55%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  text-align: center;
}
.hero__inner, .hero-inner { max-width: 860px; margin: 0 auto; padding: 0 var(--pad); }
.hero h1, .hero__title {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.08;
}
.hero p, .hero__subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 32px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Portal hero variant (card-based) */
.card.hero { text-align: left; padding: clamp(20px, 3vw, 32px); background: linear-gradient(135deg, var(--brand-soft) 0%, var(--surface) 60%); }
.hero__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hero__meta { margin: 0; color: var(--text-secondary); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.card.hero h1, .card.hero .hero__title { font-size: clamp(1.6rem, 3vw, 2.1rem); }

/* ===================== Sections & grids ===================== */
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section--alt { background: var(--surface); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 48px; }

.grid, .feature-grid, .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 12px;
}
.grid-two, .grid-cols-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.grid-three, .grid-cols-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

.feature-card, .feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.feature__title, .feature-card h3 { font-family: var(--font-serif); font-weight: 700; margin: 0 0 8px; font-size: 1.2rem; }
.feature__text, .feature-card p { color: var(--text-secondary); margin: 0; }
.feature__icon, .feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand); font-size: 24px;
  margin-bottom: 14px;
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step {
  border: 1px solid var(--border);
  background: var(--surface-muted);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.step__title { font-weight: 800; margin-bottom: 6px; color: var(--text); }
.step__text { color: var(--text-secondary); font-size: 14px; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 10px;
}

/* ===================== Pills / badges / tags ===================== */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid var(--border);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
}
.pill.mono { font-family: var(--font-mono); }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text-secondary);
}
.badge--ok, .badge-ok { background: var(--success-soft); color: var(--success-text); border-color: rgba(22,163,74,.35); }
.badge--warn, .badge-warn { background: var(--warning-soft); color: var(--warning-text); border-color: rgba(202,138,4,.35); }
.badge--bad, .badge-bad { background: var(--error-soft); color: var(--error-text); border-color: rgba(220,38,38,.35); }
.badge--neutral, .badge-neutral { background: var(--surface-active); color: var(--text-secondary); }
.badge--rec, .badge--brand { background: var(--brand-soft); color: var(--brand-dark); border-color: var(--border); }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--text);
}

/* Trust row */
.trust-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; text-align: center; }
.trust-item { color: var(--text-secondary); }
.trust-item-icon { font-size: 2rem; margin-bottom: 8px; }

/* ===================== Forms ===================== */
.field, .input,
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="tel"], input[type="date"], input[type="search"],
textarea, select {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field::placeholder, input::placeholder, textarea::placeholder { color: var(--text-muted); }
.field:focus, .input:focus,
input:focus, textarea:focus, select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(26,143,165,.14);
}
.label, label { display: block; margin: 0 0 6px; font-weight: 600; font-size: 14px; color: var(--text-secondary); }
.form-group { margin-bottom: 18px; }
.textarea { min-height: 120px; resize: vertical; }
.checkline { display: flex; gap: 10px; align-items: flex-start; user-select: none; color: var(--text); }
.checkline input { margin-top: 3px; transform: scale(1.05); accent-color: var(--brand); }

/* ===================== Alerts / status ===================== */
.alert { padding: 14px 18px; border-radius: var(--radius); border-left: 4px solid; margin-bottom: 18px; }
.alert-success, .alert--ok { background: var(--success-soft); border-color: var(--success); color: var(--success-text); }
.alert-warning, .alert--warn { background: var(--warning-soft); border-color: var(--warning); color: var(--warning-text); }
.alert-danger, .alert--bad, .errorBox { background: var(--error-soft); border-color: var(--error); color: var(--error-text); }
.alert-info, .alert--info { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); }
.errorBox { border: 1px solid rgba(220,38,38,.35); border-left-width: 4px; border-radius: var(--radius); padding: 12px 14px; white-space: pre-wrap; word-break: break-word; }

.status {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ===================== Tables ===================== */
table, .table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}
thead, .table thead { background: var(--surface-muted); }
th, .table th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  font-size: .9rem;
  color: var(--text);
  border-bottom: 2px solid var(--border);
}
td, .table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-muted);
  font-size: .95rem;
  color: var(--text);
  vertical-align: top;
}
tr:last-child td, .table tr:last-child td { border-bottom: none; }
tbody tr:hover, .table tbody tr:hover { background: var(--surface-hover); }
.tableWrap {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
}
.col-small { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

/* ===================== Misc utilities ===================== */
.divider { height: 1px; background: var(--border); margin: 18px 0; border: 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.row--end { align-items: flex-end; }
.stack { display: flex; gap: 10px; align-items: center; }
.stack--wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 240px; }
.meta { color: var(--text-secondary); font-size: 13px; }
.sep { opacity: .55; }
.mono { font-family: var(--font-mono); }
.hint { border: 1px solid var(--border); background: var(--surface-muted); border-radius: var(--radius); padding: 12px 14px; color: var(--text-secondary); font-size: 14px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.pagehead { padding: 20px 24px; margin-top: 18px; }
.pagehead__title { font-weight: 800; font-size: 20px; font-family: var(--font-serif); margin-bottom: 6px; }
.pagehead__meta { color: var(--text-secondary); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-muted); padding: 12px; }
.details summary { cursor: pointer; font-weight: 700; }
.sideTop { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.logo { width: 140px; height: auto; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-soft); padding: 10px; }

/* CTA banner */
.cta-section {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-hover) 100%);
  color: #fff;
  padding: clamp(48px, 8vw, 88px) 0;
  text-align: center;
}
.cta-section h2 { color: #fff; }
.cta-section p { color: rgba(255,255,255,.92); font-size: 1.1rem; max-width: 620px; margin: 0 auto 28px; }
.cta-section .btn--primary { background: #fff; color: var(--brand-dark); border-color: #fff; }
.cta-section .btn--primary:hover { background: var(--accent); color: var(--text-on-accent); border-color: var(--accent); }

/* Inhuur / hire strip */
.hire-strip {
  border: 1px dashed var(--brand);
  background: var(--brand-soft);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.hire-strip__text { color: var(--brand-dark); font-weight: 600; }

/* ===================== Footer ===================== */
.site-footer, footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px var(--pad) 32px;
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 48px;
}
.footer-grid { max-width: var(--wrap); margin: 0 auto 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; }
.footer-col h4 { font-family: var(--font); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--text); margin-bottom: 12px; }
.footer-col a { display: block; color: var(--text-secondary); padding: 4px 0; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { max-width: var(--wrap); margin: 0 auto; padding-top: 20px; border-top: 1px solid var(--border-muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--text-muted); font-size: 13px; }

/* ===================== Responsive ===================== */
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; }
  .grid, .feature-grid, .features-grid, .grid-two, .grid-three, .grid-cols-2, .grid-cols-3 { grid-template-columns: 1fr; }
  .field, .input, textarea, select, input { font-size: 16px; }
}
@media (max-width: 768px) {
  .topbar__inner, .topbar-inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .nav { order: 3; width: 100%; justify-content: center; }
  .nav-actions { justify-content: center; }
  .hero__head { flex-direction: column; }
  .actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
