/* Huisstijl The Frame (theframe.nl): zwart, mosgroen, amber en eikenhout, Playfair Display voor koppen. Variabelen heten nog --helder-* omdat de code gedeeld is. */
:root {
  --helder-blauw: #212121;
  --helder-blauw-donker: #000000;
  --helder-oranje: #2A9D6F;
  --helder-oranje-donker: #1F7F59;
  --helder-rood: #DD6420;
  --helder-grijs: #575756;
  --helder-lichtblauw: #7F97B9;
  --helder-zachtblauw: #B9C6D8;
  --helder-licht: #F6F2EA;
  --tf-amber: #E3A23A;
  --tf-hout: #C69A66;
  --tf-mos: #2A9D6F;

  --bs-body-font-family: "Montserrat", system-ui, sans-serif;
  --bs-body-color: #141414;
  --bs-primary: var(--helder-blauw);
  --bs-primary-rgb: 14, 101, 149;
  --bs-link-color: var(--helder-blauw);
  --bs-link-color-rgb: 14, 101, 149;
  --bs-link-hover-color: var(--helder-blauw-donker);
  --bs-link-hover-color-rgb: 11, 81, 120;
  --bs-border-radius: 3px;
  --bs-border-radius-sm: 2px;
  --bs-border-radius-lg: 4px;
}

body { background: #fff; }
h1, h2, h3, h4, .navbar-brand { font-weight: 700; }
.text-primary { color: var(--helder-blauw) !important; }
.bg-primary { background-color: var(--helder-blauw) !important; }
.bg-licht { background-color: var(--helder-licht); }

.btn-primary {
  --bs-btn-bg: var(--helder-blauw);
  --bs-btn-border-color: var(--helder-blauw);
  --bs-btn-hover-bg: var(--helder-blauw-donker);
  --bs-btn-hover-border-color: var(--helder-blauw-donker);
  --bs-btn-active-bg: var(--helder-blauw-donker);
  --bs-btn-active-border-color: var(--helder-blauw-donker);
}
.btn-outline-primary {
  --bs-btn-color: var(--helder-blauw);
  --bs-btn-border-color: var(--helder-blauw);
  --bs-btn-hover-bg: var(--helder-blauw);
  --bs-btn-hover-border-color: var(--helder-blauw);
  --bs-btn-active-bg: var(--helder-blauw);
}
.btn-accent {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--helder-oranje);
  --bs-btn-border-color: var(--helder-oranje);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--helder-oranje-donker);
  --bs-btn-hover-border-color: var(--helder-oranje-donker);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--helder-oranje-donker);
}
.btn { font-weight: 600; }
.form-control:focus, .form-select:focus {
  border-color: var(--helder-lichtblauw);
  box-shadow: 0 0 0 .25rem rgba(42, 157, 111, .25);
}

.navbar { border-bottom: 1px solid #212121; }
.navbar-brand img { height: 24px; }
.nav-link { font-weight: 500; color: var(--helder-grijs); }
.nav-link:hover, .nav-link.active { color: var(--helder-blauw); }

.hero {
  background: linear-gradient(rgba(20, 20, 20, .10), rgba(20, 20, 20, .70)),
              url("https://plaatjes.helder.cloud/plaatjes/theframe/zonnebril-stel.jpg") center 30%/cover no-repeat;
  color: #fff;
  padding: 7rem 0 5rem;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
}
.hero h1 { font-size: 3.4rem; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero .lead { color: rgba(255,255,255,.9); }

.vacature-kaart { border-top: 4px solid var(--tf-amber); transition: transform .15s, box-shadow .15s; }
.vacature-kaart:hover { transform: translateY(-2px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.08); }
.vacature-kaart .meta { color: var(--helder-grijs); font-size: .9rem; }
.vacature-kaart .meta i { color: var(--tf-amber); width: 1.2em; }

.omschrijving { white-space: pre-line; line-height: 1.7; }

footer { background: var(--helder-grijs); color: #fff; }
footer a { color: #fff; }
footer img { height: 22px; filter: brightness(0) invert(1); }

/* Beheer */
.admin-nav { background: var(--helder-blauw); }
.admin-nav .nav-link { color: rgba(255,255,255,.85); }
.admin-nav .nav-link:hover, .admin-nav .nav-link.active { color: #fff; }
.status-tegel { border: 0; border-left: 4px solid var(--bs-border-color); }
.status-tegel.actief { background: var(--helder-licht); }
.table a { text-decoration: none; }

/* Live e-mailcontrole (MailHub) */
.email-feedback { display: none; font-size: .85rem; margin-top: .35rem; }
.email-feedback.checking { display: block; color: var(--helder-grijs); }
.email-feedback.invalid { display: block; color: var(--helder-rood); }
.email-feedback.valid { display: block; color: #198754; }

/* Funnelbord */
.funnel { display: flex; gap: .75rem; overflow-x: auto; padding-bottom: .75rem; align-items: flex-start; min-height: 60vh; }
.funnel-kolom { flex: 0 0 260px; width: 260px; background: var(--helder-licht); border-radius: 6px; display: flex; flex-direction: column; max-height: calc(100vh - 220px); transition: flex-basis .15s, width .15s; }
.funnel-kop { display: flex; align-items: center; gap: .4rem; padding: .6rem .6rem .5rem; font-weight: 600; font-size: .9rem; position: sticky; top: 0; background: var(--helder-licht); border-radius: 6px 6px 0 0; }
.funnel-stip { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.funnel-titel { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.funnel-aantal { font-weight: 600; }
.funnel-toggle { border: 0; background: transparent; color: var(--helder-grijs); padding: 0 .2rem; line-height: 1; font-size: .8rem; }
.funnel-toggle:hover { color: var(--helder-blauw); }
.funnel-kaarten { padding: 0 .5rem .5rem; overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; min-height: 80px; flex: 1 1 auto; }
.funnel-kaart { position: relative; background: #fff; border: 1px solid #e3e8ee; border-radius: 5px; padding: .55rem .65rem; cursor: grab; transition: box-shadow .15s, opacity .15s; }
.funnel-kaart:hover { box-shadow: 0 .25rem .6rem rgba(0,0,0,.08); border-color: var(--helder-zachtblauw); }
.funnel-kaart.sleept { opacity: .4; }
.funnel-kaart.bezig { opacity: .6; }
.funnel-kaart:active { cursor: grabbing; }
.funnel-kolom.doel { outline: 2px dashed var(--helder-blauw); outline-offset: -2px; background: #e8f1f7; }
.funnel-afgewezen { background: #ececec; }
.funnel-afgewezen .funnel-kop { background: #ececec; }

/* Ingeklapte kolom: smalle strook met verticale titel */
.funnel-kolom.dicht { flex-basis: 44px; width: 44px; cursor: pointer; }
.funnel-kolom.dicht .funnel-kaarten { display: none; }
.funnel-kolom.dicht .funnel-kop { flex-direction: column; align-items: center; gap: .5rem; padding: .5rem .25rem .75rem; height: 100%; }
.funnel-kolom.dicht .funnel-toggle i { transform: rotate(180deg); }
.funnel-kolom.dicht .funnel-titel { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; overflow: visible; flex: 0 0 auto; }
.funnel-kolom.dicht .funnel-aantal { order: 1; }
.funnel-kolom.dicht .funnel-stip { order: 2; }
.funnel-kolom.dicht .funnel-titel { order: 3; }
.funnel-kolom.dicht .funnel-toggle { order: 0; }
.werving .kanalen td { font-size: .875rem; }
.werving .kanalen td:first-child { white-space: nowrap; }
.werving .bronnen a { word-break: break-word; }


/* ---- The Frame ---- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400&display=swap');
h1, h2, .h1, .h2, .hero h1 { font-family: "Playfair Display", Georgia, serif; font-weight: 500; letter-spacing: -.02em; }
.hero .lead { color: #fff; font-size: 1.25rem; max-width: 36rem; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.btn-accent { color: #fff; border-radius: 4px; padding: .7rem 1.6rem; letter-spacing: .02em; }
.btn-accent:hover { color: #fff; }

/* Fotostrip onder de hero: drie foto's die de hero overlappen */
.fotostrip { margin-top: -3rem; position: relative; z-index: 2; }
.fotostrip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.18); border: 4px solid #fff; }

/* USP's in warm offwhite met houtstreep */
.usps { background: var(--helder-licht); border-top: 6px solid var(--tf-hout); margin-top: 3rem; }
.usp-icoon { display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: var(--tf-amber); font-size: 1.6rem; margin-bottom: .75rem; box-shadow: 0 .25rem .75rem rgba(0,0,0,.08); }
.usp-icoon.groen { color: var(--tf-mos); }

/* Quote op moswand */
.quote { background: linear-gradient(rgba(20,40,30,.55), rgba(20,40,30,.55)), url("https://plaatjes.helder.cloud/plaatjes/theframe/mos.jpg") center/cover no-repeat; color: #fff; padding: 4rem 0; }
.quote-tekst { font-family: "Playfair Display", Georgia, serif; font-size: 1.7rem; font-style: italic; max-width: 42rem; margin: 0 auto 1.5rem; }

/* Vacaturekaarten en detail */
.vacature-kaart { border-top-width: 5px; }
.vacature-kaart .card-title a { color: #212121; }
.bg-licht { background-color: var(--helder-licht) !important; }
footer { background: #212121; }
.admin-nav { background: #212121; }
.status-tegel.actief { background: #fff; border-left-color: var(--tf-mos); }
.funnel-kolom.doel { outline-color: var(--tf-mos); background: #eaf6f0; }
