:root {
  --brand-primary: #2f6fed;
  --brand-primary-dark: #1e4fb3;
  --brand-primary-light: #eaf1ff;

  --text-main: #1f2937;
  --text-soft: #6b7280;
  --text-light: #94a3b8;

  --bg-page: #f6f8fc;
  --bg-card: #ffffff;
  --bg-soft: #f8fbff;
  --bg-hero: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);

  --border-soft: #e5eaf3;
  --border-strong: #d7e0ee;

  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;

  --transition-fast: 0.18s ease;
  --transition-normal: 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-page);
  color: var(--text-main);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
}

/* ---------- TYPOGRAFIE ---------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-main);
}

.text-muted,
.text-secondary,
.section-subtitle,
.prompt-note {
  color: var(--text-soft) !important;
}

/* ---------- NAVIGATIE ---------- */

.nav-link-main {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link-main:hover,
.nav-link-main--active {
  color: var(--brand-primary);
}

.nav-icon-link {
  color: var(--text-soft);
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.nav-icon-link:hover,
.nav-icon-link--active {
  color: var(--brand-primary);
}

/* ---------- TAALSWITCH (dropdown) ---------- */
.lang-dropdown {
  position: relative;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.lang-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--brand-primary-light);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  line-height: 1.4;
  transition: background-color var(--transition-fast);
}

.lang-dropdown__trigger:hover {
  background-color: var(--brand-primary-light);
}

.lang-dropdown__arrow {
  font-size: 0.6rem;
  margin-top: 1px;
}

.lang-dropdown__menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: #fff;
  border: 1px solid #e8edf6;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  list-style: none;
  margin: 0;
  padding: 10px 0 4px; /* padding-top overbrugt de gap tussen knop en menu */
  min-width: 60px;
  z-index: 200;
}

.lang-dropdown:hover .lang-dropdown__menu,
.lang-dropdown:focus-within .lang-dropdown__menu {
  display: block;
}

.lang-dropdown__item {
  display: block;
  padding: 5px 14px;
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.lang-dropdown__item:hover {
  color: var(--brand-primary);
  background-color: var(--brand-primary-light);
  text-decoration: none;
}

.lang-dropdown__item--active {
  color: var(--brand-primary);
  font-weight: 700;
}

/* ---------- OVER-PAGINA ---------- */

.about-hero {
  background: var(--bg-hero);
  border-bottom: 1px solid #e8edf6;
  padding: 4rem 0;
}

.about-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 4px solid white;
  box-shadow: var(--shadow-md);
}

.about-photo-sm {
  width: 200px;
  height: 240px;
  border-radius: 16px;
  object-fit: cover;
  object-position: top center;
  border: 3px solid white;
  box-shadow: var(--shadow-md);
}

/* ---------- ZOEKPAGINA ---------- */

.search-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3rem;
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: white;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.search-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.12);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  pointer-events: none;
}

.search-result-card {
  background: white;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
  display: block;
  color: inherit;
}

.search-result-card:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
  color: inherit;
}

.search-result-role {
  font-size: 0.8rem;
  color: var(--brand-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.search-result-task {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.search-result-desc {
  font-size: 0.875rem;
  color: var(--text-soft);
}

/* ---------- HERO ---------- */

.hero {
  background: var(--bg-hero);
  border-bottom: 1px solid #e8edf6;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto auto -80px -80px;
  width: 220px;
  height: 220px;
  background: rgba(47, 111, 237, 0.08);
  filter: blur(30px);
  border-radius: 999px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 40px -60px auto auto;
  width: 240px;
  height: 240px;
  background: rgba(47, 111, 237, 0.05);
  filter: blur(34px);
  border-radius: 999px;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #dfe8fb;
  color: var(--brand-primary-dark);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(47, 111, 237, 0.08);
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.06;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero p.lead {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.08rem;
}

/* ---------- ALGEMENE CARDS / SECTIES ---------- */

.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.section-card:hover {
  box-shadow: var(--shadow-md);
}

.section-title {
  margin-bottom: 0.35rem;
}

.section-subtitle {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.step-header {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1.25rem;
}

.step-label {
  width: 2.1rem;
  height: 2.1rem;
  min-width: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 10px 22px rgba(47, 111, 237, 0.22);
}

/* ---------- HULPBLOKKEN ---------- */

.mini-tip {
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
  border: 1px dashed #cfdcf7;
  border-radius: 16px;
  padding: 0.95rem 1rem;
  color: #466082;
  font-size: 0.95rem;
}

/* ---------- ROL- EN TAAKKAARTEN ---------- */

.role-card,
.task-card {
  border-radius: var(--radius-md) !important;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast);
  background: #fff;
  cursor: pointer;
  border: 1px solid transparent !important;
  overflow: hidden;
  position: relative;
}

.role-card::before,
.task-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: transparent;
  transition: background-color var(--transition-fast);
}

.role-card:hover,
.task-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md) !important;
  border-color: #dce6f7 !important;
}

.role-card:hover::before,
.task-card:hover::before {
  background: rgba(47, 111, 237, 0.45);
}

.role-card .card-body,
.task-card .card-body {
  padding: 1.25rem;
}

.role-card h3,
.task-card h3 {
  margin-bottom: 0.4rem;
}

.role-card p,
.task-card p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.active-role,
.active-task {
  background: linear-gradient(180deg, #fafdff 0%, #f2f7ff 100%);
  border-color: #bcd0ff !important;
  box-shadow: 0 18px 42px rgba(47, 111, 237, 0.12) !important;
}

.active-role::before,
.active-task::before {
  background: var(--brand-primary);
}

.active-role h3,
.active-task h3 {
  color: var(--brand-primary-dark);
}

/* ---------- FORMULIER ---------- */

.form-label {
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--text-main);
}

.form-control,
.form-select {
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text-main);
  padding: 0.82rem 0.95rem;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast);
}

/* Keuzelijst-wrapper met pijltje naar beneden */
.select-wrapper {
  position: relative;
}

.select-wrapper .form-select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.5rem;
  cursor: pointer;
}

.select-wrapper__icon {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-soft);
  flex-shrink: 0;
}

.form-control::placeholder {
  color: #98a4b8;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.22rem rgba(47, 111, 237, 0.12);
  background: #fff;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-text {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.form-check-input {
  border-color: #c7d3e4;
}

.form-check-input:checked {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.checkboxgroup {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0.5rem 0;
}

.invalid-feedback {
  font-size: 0.88rem;
}

.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: none !important;
}

/* ---------- PROMPT OUTPUT ---------- */

#promptOutput {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.94rem;
  line-height: 1.6;
  background: linear-gradient(180deg, #fbfcff 0%, #f7faff 100%);
  border: 1px solid #dbe5f2;
  min-height: 300px;
}

.prompt-note {
  font-size: 0.95rem;
}

/* ---------- CTA BOX ---------- */

.cta-box {
  background: linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}

/* ---------- BUTTONS ---------- */

.btn {
  border-radius: 14px;
  padding: 0.78rem 1.05rem;
  font-weight: 600;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  box-shadow: 0 12px 24px rgba(47, 111, 237, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
  box-shadow: 0 14px 30px rgba(30, 79, 179, 0.24);
}

.btn-outline-secondary {
  border-color: #cfd9e8;
  color: #41556f;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: #f4f7fb;
  border-color: #bac8da;
  color: #2c3e56;
}

.btn-outline-dark {
  border-color: #d4dbe6;
  color: #233247;
  background: #fff;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
  background: #f7f9fc;
  border-color: #b9c6d8;
  color: #162536;
}

/* ---------- FOOTER ---------- */

.site-footer {
  background: #fff;
  border-top: 1px solid var(--border-soft);
  padding-block: 2.5rem;
  margin-top: 4rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-brand { min-width: 160px; }
.footer-brand .nav-brand { margin-bottom: .35rem; display: block; font-weight: 700; color: var(--text-main); text-decoration: none; }
.footer-tagline { font-size: .85rem; color: var(--text-light); }

.footer-links h4 {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: .75rem;
}

.footer-links ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.footer-links a {
  font-size: .88rem;
  color: var(--text-soft);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--brand-primary); text-decoration: none; }

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: .82rem;
  color: var(--text-light);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
  margin-top: 1rem;
}

/* ---------- JURIDISCHE PAGINA'S ---------- */

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: .5rem;
}

.legal-content h2 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: .5rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-soft);
  line-height: 1.8;
}

.legal-content ul {
  padding-left: 1.4rem;
}

.legal-content code {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: .1em .4em;
  font-size: .88em;
}

.legal-last-updated {
  display: inline-block;
  font-size: .83rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* ---------- BOOKMARK CTA ---------- */

.bookmark-cta {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--bg-soft);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
}

.bookmark-cta__icon {
  font-size: 1.2rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.bookmark-cta__text {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.bookmark-cta__text strong {
  color: var(--text-main);
}

.bookmark-cta__hint {
  display: inline;
  font-size: 0.82rem;
  color: var(--text-light);
  white-space: nowrap;
}

kbd {
  display: inline-block;
  padding: 0.1em 0.35em;
  font-size: 0.78rem;
  font-family: ui-monospace, monospace;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  color: var(--text-main);
}

/* ---------- UTILITIES ---------- */

.shadow-soft {
  box-shadow: var(--shadow-sm);
}

.rounded-soft {
  border-radius: var(--radius-md);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 991.98px) {
  .section-card,
  .cta-box {
    padding: 1.35rem !important;
  }

  .role-card .card-body,
  .task-card .card-body {
    padding: 1.05rem;
  }
}

@media (max-width: 767.98px) {
  .hero {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .step-header {
    align-items: flex-start;
  }

  .step-label {
    margin-top: 0.15rem;
  }

  .btn {
    width: 100%;
  }

  #promptActions .btn {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .hero-badge {
    font-size: 0.84rem;
    padding: 0.48rem 0.85rem;
  }

  .section-card,
  .cta-box {
    border-radius: 18px;
  }

  .role-card,
  .task-card {
    border-radius: 16px !important;
  }

  .form-control,
  .form-select,
  .btn {
    font-size: 1rem;
  }
}