/* ==========================================================================
   leerlingstages.be — Hoofdstylesheet
   Licht/donker thema via CSS custom properties
   Geen framework, geen externe afhankelijkheden
   ========================================================================== */

/* -------------------------------------------------------------------------
   1. CSS Custom Properties — Licht thema (standaard)
   ------------------------------------------------------------------------- */
:root {
  --color-bg:              #ffffff;
  --color-surface:         #f5f7fa;
  --color-surface-alt:     #edf2f7;
  --color-primary:         #1a73e8;
  --color-primary-hover:   #1558b0;
  --color-primary-light:   #e8f0fe;
  --color-secondary:       #6b7280;
  --color-text:            #1a1a2e;
  --color-text-muted:      #6b7280;
  --color-border:          #e2e8f0;
  --color-border-focus:    #1a73e8;
  --color-success:         #16a34a;
  --color-success-bg:      #dcfce7;
  --color-warning:         #d97706;
  --color-warning-bg:      #fef3c7;
  --color-danger:          #dc2626;
  --color-danger-bg:       #fee2e2;
  --color-danger-hover:    #b91c1c;
  --shadow-sm:             0 1px 3px rgba(0, 0, 0, .08);
  --shadow-md:             0 4px 12px rgba(0, 0, 0, .10);
  --shadow-lg:             0 8px 24px rgba(0, 0, 0, .12);
  --radius:                8px;
  --radius-sm:             4px;
  --radius-lg:             12px;
  --radius-full:           9999px;
  --nav-height:            64px;
  --container-max:         1200px;
  --font-sans:             system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono:             ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace;
  --transition:            150ms ease;
}

/* -------------------------------------------------------------------------
   2. Donker thema
   ------------------------------------------------------------------------- */
[data-theme="dark"] {
  --color-bg:              #0f1117;
  --color-surface:         #1a1d2e;
  --color-surface-alt:     #252840;
  --color-primary:         #4f9cf9;
  --color-primary-hover:   #3b82f6;
  --color-primary-light:   #1e3a5f;
  --color-text:            #e8eaf0;
  --color-text-muted:      #9ca3af;
  --color-border:          #2d3148;
  --color-border-focus:    #4f9cf9;
  --color-success:         #4ade80;
  --color-success-bg:      #14532d;
  --color-warning:         #fbbf24;
  --color-warning-bg:      #451a03;
  --color-danger:          #f87171;
  --color-danger-bg:       #450a0a;
  --color-danger-hover:    #ef4444;
  --shadow-sm:             0 1px 3px rgba(0, 0, 0, .30);
  --shadow-md:             0 4px 12px rgba(0, 0, 0, .40);
  --shadow-lg:             0 8px 24px rgba(0, 0, 0, .50);
}

/* -------------------------------------------------------------------------
   3. Reset & normalize
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin:     0;
  padding:    0;
}

html {
  font-size:            16px;
  scroll-behavior:      smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family:      var(--font-sans);
  font-size:        1rem;
  line-height:      1.6;
  color:            var(--color-text);
  background-color: var(--color-bg);
  min-height:       100vh;
  display:          flex;
  flex-direction:   column;
  transition:       background-color var(--transition), color var(--transition);
}

img,
svg {
  display:    block;
  max-width:  100%;
  height:     auto;
}

a {
  color:           var(--color-primary);
  text-decoration: none;
  transition:      color var(--transition);
}

a:hover,
a:focus-visible {
  color:           var(--color-primary-hover);
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
}

input,
textarea,
select,
button {
  font: inherit;
}

/* -------------------------------------------------------------------------
   4. Typografie
   ------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  line-height:   1.2;
  font-weight:   700;
  color:         var(--color-text);
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.375rem, 3vw, 2rem);  }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem);}
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem;     }
h6 { font-size: 0.875rem; }

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

strong { font-weight: 600; }
em     { font-style: italic; }

code {
  font-family:     var(--font-mono);
  font-size:       0.875em;
  background:      var(--color-surface-alt);
  padding:         0.15em 0.4em;
  border-radius:   var(--radius-sm);
}

/* -------------------------------------------------------------------------
   5. Hulpklassen
   ------------------------------------------------------------------------- */
.sr-only {
  position:   absolute;
  width:      1px;
  height:     1px;
  padding:    0;
  margin:     -1px;
  overflow:   hidden;
  clip:       rect(0, 0, 0, 0);
  white-space: nowrap;
  border:     0;
}

.container {
  width:     100%;
  max-width: var(--container-max);
  margin:    0 auto;
  padding:   0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

.text-muted    { color: var(--color-text-muted); }
.text-center   { text-align: center; }
.text-right    { text-align: right; }
.text-small    { font-size: 0.875rem; }
.font-bold     { font-weight: 700; }
.font-medium   { font-weight: 500; }
.mt-1          { margin-top: 0.25rem; }
.mt-2          { margin-top: 0.5rem;  }
.mt-4          { margin-top: 1rem;    }
.mt-8          { margin-top: 2rem;    }
.mb-4          { margin-bottom: 1rem; }
.mb-8          { margin-bottom: 2rem; }
.gap-2         { gap: 0.5rem;  }
.gap-4         { gap: 1rem;    }
.flex          { display: flex; }
.flex-wrap     { flex-wrap: wrap; }
.items-center  { align-items: center; }
.justify-between { justify-content: space-between; }

/* -------------------------------------------------------------------------
   6. Knoppen
   ------------------------------------------------------------------------- */
.btn {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  gap:             0.4em;
  padding:         0.6em 1.25em;
  border-radius:   var(--radius);
  border:          2px solid transparent;
  font-weight:     600;
  font-size:       0.9375rem;
  cursor:          pointer;
  text-decoration: none;
  transition:      background-color var(--transition),
                   color            var(--transition),
                   border-color     var(--transition),
                   box-shadow       var(--transition);
  white-space:     nowrap;
  line-height:     1.4;
}

.btn:focus-visible {
  outline:        2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--color-primary);
  color:      #ffffff;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background:      var(--color-primary-hover);
  color:           #ffffff;
  text-decoration: none;
}

.btn--secondary {
  background:   transparent;
  border-color: var(--color-border);
  color:        var(--color-text);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background:      var(--color-surface);
  text-decoration: none;
}

.btn--success {
  background: var(--color-success);
  color:      #ffffff;
}

.btn--success:hover,
.btn--success:focus-visible {
  background:      #15803d;
  color:           #ffffff;
  text-decoration: none;
}

.btn--danger {
  background: var(--color-danger);
  color:      #ffffff;
}

.btn--danger:hover,
.btn--danger:focus-visible {
  background:      var(--color-danger-hover);
  text-decoration: none;
}

.btn--ghost {
  background:   transparent;
  border-color: transparent;
  color:        var(--color-text);
}

.btn--ghost:hover {
  background:      var(--color-surface);
  text-decoration: none;
}

.btn--sm {
  padding:   0.4em 0.875em;
  font-size: 0.875rem;
}

.btn--lg {
  padding:   0.75em 1.75em;
  font-size: 1.0625rem;
}

.btn--full {
  width: 100%;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.6;
  cursor:  not-allowed;
}

/* -------------------------------------------------------------------------
   7. Formulieren
   ------------------------------------------------------------------------- */
.form__group {
  margin-bottom: 1.25rem;
}

.form__row {
  display: grid;
  gap:     1rem;
}

.form__row--2col {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .form__row--2col {
    grid-template-columns: 1fr 1fr;
  }
}

.form__label {
  display:       block;
  font-weight:   600;
  font-size:     0.9375rem;
  margin-bottom: 0.375rem;
  color:         var(--color-text);
}

.form__label-row {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  margin-bottom:   0.375rem;
}

.form__required {
  color:       var(--color-danger);
  margin-left: 0.2em;
  font-weight: 700;
}

.form__input,
.form__textarea,
.form__select {
  width:            100%;
  padding:          0.625em 0.875em;
  border:           2px solid var(--color-border);
  border-radius:    var(--radius);
  background:       var(--color-bg);
  color:            var(--color-text);
  font-size:        1rem;
  transition:       border-color var(--transition),
                    box-shadow   var(--transition);
  appearance:       none;
  -webkit-appearance: none;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline:      none;
  border-color: var(--color-border-focus);
  box-shadow:   0 0 0 3px rgba(26, 115, 232, 0.15);
}

.form__textarea {
  min-height: 120px;
  resize:     vertical;
}

.form__select {
  background-image:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat:   no-repeat;
  background-position: right 0.875rem center;
  padding-right:       2.5rem;
}

.form__hint {
  font-size:   0.8125rem;
  color:       var(--color-text-muted);
  margin-top:  0.3rem;
  margin-bottom: 0;
}

.form__error {
  font-size:   0.8125rem;
  color:       var(--color-danger);
  margin-top:  0.3rem;
  font-weight: 500;
  margin-bottom: 0;
}

.form__group--error .form__input,
.form__group--error .form__textarea,
.form__group--error .form__select {
  border-color: var(--color-danger);
}

.form__group--error .form__input:focus,
.form__group--error .form__textarea:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.form__forgot-link {
  font-size:   0.875rem;
  font-weight: 400;
}

/* Checkbox & radio */
.form__check {
  display:     flex;
  align-items: center;
  gap:         0.5rem;
  cursor:      pointer;
}

.form__check-input {
  width:        1rem;
  height:       1rem;
  accent-color: var(--color-primary);
  cursor:       pointer;
}

/* -------------------------------------------------------------------------
   8. Kaarten (cards)
   ------------------------------------------------------------------------- */
.card {
  background:    var(--color-surface);
  border:        1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow:      hidden;
  transition:    box-shadow var(--transition);
}

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

.card__body {
  padding: 1.25rem;
}

.card__footer {
  padding:        0.875rem 1.25rem;
  border-top:     1px solid var(--color-border);
  display:        flex;
  align-items:    center;
  justify-content: space-between;
  gap:            0.75rem;
  background:     var(--color-surface);
}

/* -------------------------------------------------------------------------
   9. Navigatie
   ------------------------------------------------------------------------- */
.site-header {
  position:   sticky;
  top:        0;
  z-index:    100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  height:     var(--nav-height);
  display:    flex;
  align-items: center;
}

.nav {
  width: 100%;
}

.nav__inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             1rem;
  height:          var(--nav-height);
}

.nav__logo {
  display:         flex;
  align-items:     center;
  gap:             0.5rem;
  font-size:       1.25rem;
  font-weight:     700;
  color:           var(--color-text);
  text-decoration: none;
  flex-shrink:     0;
}

.nav__logo:hover {
  color:           var(--color-primary);
  text-decoration: none;
}

.nav__logo-icon {
  font-size: 1.5rem;
}

.nav__logo-dot {
  color: var(--color-primary);
}

.nav__logo-img {
  height:     40px;
  width:      auto;
  max-width:  180px;
  object-fit: contain;
  display:    block;
}

.nav__links {
  display:     flex;
  align-items: center;
  gap:         0.25rem;
}

.nav__link {
  padding:         0.4em 0.75em;
  border-radius:   var(--radius);
  color:           var(--color-text);
  font-weight:     500;
  font-size:       0.9375rem;
  text-decoration: none;
  transition:      background-color var(--transition),
                   color            var(--transition);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  background:      var(--color-surface);
  color:           var(--color-primary);
  text-decoration: none;
}

.nav__actions {
  display:     flex;
  align-items: center;
  gap:         0.5rem;
  flex-shrink: 0;
}

.nav__lang {
  display:     flex;
  align-items: center;
  gap:         0.2rem;
  font-size:   0.875rem;
}

.nav__lang-btn {
  padding:         0.2em 0.4em;
  border-radius:   var(--radius-sm);
  color:           var(--color-text-muted);
  text-decoration: none;
  font-weight:     600;
  transition:      color var(--transition);
}

.nav__lang-btn--active,
.nav__lang-btn:hover {
  color:           var(--color-primary);
  text-decoration: none;
}

.nav__lang-sep {
  color: var(--color-border);
}

.nav__darkmode-btn {
  background:    transparent;
  border:        none;
  cursor:        pointer;
  font-size:     1.25rem;
  padding:       0.35em;
  border-radius: var(--radius);
  line-height:   1;
  transition:    background-color var(--transition);
}

.nav__darkmode-btn:hover {
  background: var(--color-surface);
}

.nav__user {
  display:     flex;
  align-items: center;
  gap:         0.5rem;
}

.nav__user-name {
  font-size:   0.8125rem;
  color:       var(--color-text-muted);
  max-width:   160px;
  overflow:    hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav__logout-form {
  display: flex;
}

/* Hamburger menu (mobiel) */
.nav__hamburger {
  display:       none;
  flex-direction: column;
  gap:           5px;
  background:    transparent;
  border:        none;
  cursor:        pointer;
  padding:       0.5rem;
  border-radius: var(--radius);
}

.nav__hamburger-line {
  display:      block;
  width:        22px;
  height:       2px;
  background:   var(--color-text);
  border-radius: 2px;
  transition:   transform var(--transition);
}

@media (max-width: 768px) {
  .nav__hamburger {
    display: flex;
  }

  .nav__links {
    display:        none;
    position:       absolute;
    top:            var(--nav-height);
    left:           0;
    right:          0;
    background:     var(--color-bg);
    border-bottom:  1px solid var(--color-border);
    flex-direction: column;
    align-items:    stretch;
    padding:        1rem;
    gap:            0.25rem;
  }

  .nav__links.nav__links--open {
    display: flex;
  }

  .nav__user-name {
    display: none;
  }
}

/* -------------------------------------------------------------------------
   10. Vacaturegrid
   ------------------------------------------------------------------------- */
.vacature-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   1.25rem;
}

@media (max-width: 1024px) {
  .vacature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .vacature-grid {
    grid-template-columns: 1fr;
  }
}

.vacature-card {
  display:        flex;
  flex-direction: column;
}

.vacature-card .card__body {
  display: flex;
  gap:     1rem;
  flex:    1;
}

.vacature-card__logo {
  width:         60px;
  height:        60px;
  border-radius: var(--radius);
  object-fit:    cover;
  flex-shrink:   0;
}

.vacature-card__logo--placeholder {
  display:         flex;
  align-items:     center;
  justify-content: center;
  background:      var(--color-primary-light);
  color:           var(--color-primary);
  font-weight:     700;
  font-size:       1.125rem;
}

.vacature-card__content {
  flex: 1;
  min-width: 0;
}

.vacature-card__title {
  font-size:     1rem;
  margin-bottom: 0.25rem;
}

.vacature-card__link {
  color:           var(--color-text);
  text-decoration: none;
}

.vacature-card__link:hover {
  color:           var(--color-primary);
  text-decoration: underline;
}

.vacature-card__bedrijf {
  font-size:     0.875rem;
  color:         var(--color-text-muted);
  margin-bottom: 0.5rem;
  font-weight:   500;
}

.vacature-card__meta {
  display:   flex;
  flex-wrap: wrap;
  gap:       0.375rem;
}

.vacature-card__tag {
  display:       inline-flex;
  align-items:   center;
  gap:           0.25rem;
  font-size:     0.75rem;
  background:    var(--color-surface-alt);
  color:         var(--color-text-muted);
  padding:       0.2em 0.6em;
  border-radius: var(--radius-full);
}

.vacature-card__datum {
  font-size: 0.8125rem;
  color:     var(--color-text-muted);
}

/* -------------------------------------------------------------------------
   11. Flash berichten
   ------------------------------------------------------------------------- */
.flash {
  padding:       0.875rem 1rem;
  border-radius: var(--radius);
  border-left:   4px solid;
  margin-bottom: 1.25rem;
  font-size:     0.9375rem;
}

.flash--success {
  background:   var(--color-success-bg);
  border-color: var(--color-success);
  color:        var(--color-success);
}

.flash--error {
  background:   var(--color-danger-bg);
  border-color: var(--color-danger);
  color:        var(--color-danger);
}

.flash--warning {
  background:   var(--color-warning-bg);
  border-color: var(--color-warning);
  color:        var(--color-warning);
}

/* -------------------------------------------------------------------------
   12. Hero sectie
   ------------------------------------------------------------------------- */
.hero {
  background:  linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-surface) 100%);
  padding:     4rem 0 3rem;
  text-align:  center;
}

.hero__content {
  max-width: 720px;
  margin:    0 auto;
}

.hero__title {
  font-size:     clamp(1.875rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size:     1.125rem;
  color:         var(--color-text-muted);
  margin-bottom: 2rem;
}

.hero__search {
  margin-bottom: 2rem;
}

.search__wrapper {
  display:       flex;
  gap:           0;
  border-radius: var(--radius);
  overflow:      hidden;
  box-shadow:    var(--shadow-md);
  max-width:     600px;
  margin:        0 auto;
}

.search__input {
  flex:         1;
  padding:      0.75em 1rem;
  border:       2px solid var(--color-border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  background:   var(--color-bg);
  color:        var(--color-text);
  font-size:    1rem;
  min-width:    0;
}

.search__input:focus {
  outline:      none;
  border-color: var(--color-border-focus);
}

.search__btn {
  border-radius: 0 var(--radius) var(--radius) 0;
  white-space:   nowrap;
}

.hero__stats {
  display:     flex;
  justify-content: center;
  gap:         2rem;
  flex-wrap:   wrap;
}

.hero__stat {
  display:    flex;
  align-items: center;
  gap:        0.4rem;
  font-size:  0.9375rem;
  color:      var(--color-text-muted);
  font-weight: 500;
}

.hero__stat-icon {
  font-size: 1.25rem;
}

/* -------------------------------------------------------------------------
   13. Secties
   ------------------------------------------------------------------------- */
.section {
  padding: 3rem 0;
}

.section--alt {
  background: var(--color-surface);
}

.section__header {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  margin-bottom:   1.5rem;
  gap:             1rem;
  flex-wrap:       wrap;
}

.section__title {
  margin-bottom: 0;
}

.section__link {
  font-size:   0.9375rem;
  font-weight: 600;
  white-space: nowrap;
}

.section__cta {
  text-align: center;
  margin-top: 2rem;
}

/* -------------------------------------------------------------------------
   14. Call-to-action blok
   ------------------------------------------------------------------------- */
.cta-block {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  gap:             2rem;
  flex-wrap:       wrap;
}

.cta-block__title {
  font-size:     1.5rem;
  margin-bottom: 0.5rem;
}

.cta-block__text {
  color:         var(--color-text-muted);
  margin-bottom: 0;
}

/* -------------------------------------------------------------------------
   15. Auth kaarten
   ------------------------------------------------------------------------- */
.auth-wrapper {
  display:         flex;
  justify-content: center;
  padding:         2rem 0 4rem;
}

.auth-card {
  width:     100%;
  max-width: 480px;
}

.auth-card .card__body {
  padding: 2rem;
}

.auth-card__header {
  text-align:    center;
  margin-bottom: 1.75rem;
}

.auth-card__icon {
  font-size:     3rem;
  margin-bottom: 0.5rem;
}

.auth-card__title {
  font-size: 1.5rem;
}

.auth-card__subtitle {
  color:         var(--color-text-muted);
  font-size:     0.9375rem;
  margin-top:    0.375rem;
  margin-bottom: 0;
}

.auth-card__footer {
  text-align:  center;
  padding:     1.5rem 2rem;
  border-top:  1px solid var(--color-border);
  font-size:   0.9375rem;
  color:       var(--color-text-muted);
  display:     flex;
  flex-direction: column;
  gap:         0.5rem;
}

.auth-card__actions {
  padding: 0 2rem 2rem;
  text-align: center;
}

.auth-card__register-links {
  display:   flex;
  gap:       0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.auth-form {
  padding: 0 2rem 1.5rem;
}

/* -------------------------------------------------------------------------
   16. Leeg resultaat
   ------------------------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding:    3rem 1rem;
  color:      var(--color-text-muted);
}

.empty-state__text {
  font-size: 1.0625rem;
}

/* -------------------------------------------------------------------------
   17. Footer
   ------------------------------------------------------------------------- */
.site-footer {
  margin-top:    auto;
  background:    var(--color-surface);
  border-top:    1px solid var(--color-border);
  padding:       3rem 0 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
}

.footer__grid {
  display:               grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap:                   2rem;
  padding-bottom:        2rem;
}

.footer__brand {
  grid-column: 1;
}

.footer__logo {
  display:         flex;
  align-items:     center;
  gap:             0.4rem;
  font-size:       1.1rem;
  font-weight:     700;
  color:           var(--color-text);
  text-decoration: none;
  margin-bottom:   0.75rem;
}

.footer__logo:hover {
  color:           var(--color-primary);
  text-decoration: none;
}

.footer__logo-img {
  height:     40px;
  width:      auto;
  max-width:  160px;
  object-fit: contain;
  display:    block;
}

.footer__tagline {
  font-size:   0.875rem;
  color:       var(--color-text-muted);
  margin:      0;
  line-height: 1.5;
}

.footer__company {
  font-size:  0.8rem;
  color:      var(--color-text-muted);
  margin:     0.75rem 0 0;
  line-height: 1.6;
}

.footer__nav-title {
  font-size:     0.75rem;
  font-weight:   700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color:         var(--color-text-muted);
  margin-bottom: 0.875rem;
}

.footer__nav ul {
  display:        flex;
  flex-direction: column;
  gap:            0.5rem;
}

.footer__nav a {
  font-size:       0.9rem;
  color:           var(--color-text-muted);
  text-decoration: none;
  transition:      color var(--transition);
}

.footer__nav a:hover {
  color:           var(--color-text);
  text-decoration: none;
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding:    1.25rem 0;
  text-align: center;
  font-size:  0.8125rem;
  color:      var(--color-text-muted);
}

/* -------------------------------------------------------------------------
   18. Hoofd content
   ------------------------------------------------------------------------- */
.main-content {
  flex: 1;
}

/* -------------------------------------------------------------------------
   19. Badge
   ------------------------------------------------------------------------- */
.badge {
  display:       inline-block;
  padding:       0.2em 0.6em;
  border-radius: var(--radius-full);
  font-size:     0.75rem;
  font-weight:   600;
  line-height:   1.4;
}

.badge--success { background: var(--color-success-bg); color: var(--color-success); }
.badge--danger  { background: var(--color-danger-bg);  color: var(--color-danger);  }
.badge--warning { background: var(--color-warning-bg); color: var(--color-warning); }
.badge--muted   { background: var(--color-surface-alt); color: var(--color-text-muted); }

/* -------------------------------------------------------------------------
   20. Tabel
   ------------------------------------------------------------------------- */
.table-wrapper {
  overflow-x: auto;
}

table {
  width:           100%;
  border-collapse: collapse;
  font-size:       0.9375rem;
}

th, td {
  padding:     0.75rem 1rem;
  text-align:  left;
  border-bottom: 1px solid var(--color-border);
}

th {
  font-weight: 600;
  background:  var(--color-surface);
  color:       var(--color-text-muted);
  font-size:   0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:hover td {
  background: var(--color-surface);
}

/* -------------------------------------------------------------------------
   21. Responsiviteit overige
   ------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .hero {
    padding: 2.5rem 0 2rem;
  }

  .cta-block {
    flex-direction: column;
    text-align:     center;
  }

  .section__header {
    flex-direction: column;
    align-items:    flex-start;
  }
}

/* -------------------------------------------------------------------------
   22. Responsiviteit — tablet (≤ 1024px)
   ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* -------------------------------------------------------------------------
   24. Responsiviteit — mobiel (≤ 640px)
   ------------------------------------------------------------------------- */
@media (max-width: 640px) {
  /* Sectie-padding verkleinen */
  .section {
    padding: 1.75rem 0;
  }

  /* Auth-kaart padding verkleinen */
  .auth-card .card__body {
    padding: 1.5rem 1.25rem;
  }

  .auth-card__footer {
    padding: 1.25rem 1.5rem;
  }

  .auth-card__actions {
    padding: 0 1.25rem 1.5rem;
  }

  .auth-form {
    padding: 0 1.25rem 1.25rem;
  }

  /* Hero zoekbalk stapelen */
  .search__wrapper {
    flex-direction: column;
  }

  .search__input {
    border-right:        2px solid var(--color-border);
    border-bottom:       none;
    border-radius:       var(--radius) var(--radius) 0 0;
  }

  .search__btn {
    border-radius: 0 0 var(--radius) var(--radius);
    width:         100%;
    justify-content: center;
  }

  /* Hero statistieken */
  .hero__stats {
    gap: 1rem;
  }

  /* Footer — één kolom */
  .footer__grid {
    grid-template-columns: 1fr;
    gap:                   1.5rem;
  }

  /* Tabel — compacte padding */
  th, td {
    padding:   0.5rem 0.625rem;
    font-size: 0.8125rem;
  }

  /* Card body — iets minder padding */
  .card__body {
    padding: 1rem;
  }

  .card__footer {
    padding: 0.75rem 1rem;
  }

  /* Nav-logo tekstkort houden */
  .nav__logo-text {
    font-size: 1rem;
  }
}

/* -------------------------------------------------------------------------
   25. Responsiviteit — kleine telefoons (≤ 480px)
   ------------------------------------------------------------------------- */
@media (max-width: 480px) {
  /* Vacature-detail definitielijst stapelen */
  .detail-list {
    grid-template-columns: 1fr;
  }

  .detail-list dt {
    margin-top:  0.625rem;
    margin-bottom: 0;
  }

  .detail-list dt:first-child {
    margin-top: 0;
  }

  /* Dashboard-grid minimale breedte verlagen */
  .dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  /* Stats-grid in admin */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Hero-titre */
  .hero__title {
    font-size: 1.625rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  /* Tabel horizontale scroll altijd zichtbaar als nodig */
  .table-wrapper {
    -webkit-overflow-scrolling: touch;
  }
}
