:root {
  --hf-ink: #12082e;
  --hf-ink-soft: #6b5c80;
  --hf-paper: #fafaf8;
  --hf-orange: #ff5b2e;
  --hf-orange-dark: #d94218;
  --hf-lime: #c1ff47;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--hf-paper);
  color: var(--hf-ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
}
h1 { font-family: "Syne", "DM Sans", system-ui, sans-serif; font-weight: 800; letter-spacing: -0.01em; }
a { color: var(--hf-orange-dark); }
.hf-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--hf-ink);
  color: var(--hf-paper);
  border-bottom: 3px solid var(--hf-lime);
}
/* Logo als link naar home (besluit (fffff)): zelfde uiterlijk, zichtbare focus op de donkere header, ook op de loginpagina */
.hf-brand { display: inline-flex; align-items: baseline; gap: 0.75rem; color: var(--hf-paper); text-decoration: none; border-radius: 4px; }
.hf-brand:focus-visible, .hf-nav a:focus-visible, .hf-link-button:focus-visible { outline: 3px solid var(--hf-lime); outline-offset: 3px; }
.hf-logo { font-family: "Syne", "DM Sans", system-ui, sans-serif; font-weight: 800; font-size: 1.4rem; }
.hf-logo span { color: var(--hf-orange); }
.hf-product { color: var(--hf-lime); font-weight: 600; letter-spacing: 0.08em; }
.hf-main { flex: 1; width: 100%; max-width: 60rem; margin: 0 auto; padding: 2rem 1.5rem; }
.hf-footer { padding: 1rem 1.5rem; color: var(--hf-ink-soft); font-size: 0.85rem; border-top: 1px solid #e6e2da; }
.hf-nav { margin-left: auto; display: flex; align-items: baseline; gap: 1rem; font-size: 0.95rem; }
.hf-nav a { color: var(--hf-paper); }
.hf-user { color: var(--hf-lime); }
.hf-inline { display: inline; margin: 0; }
.hf-link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--hf-paper); text-decoration: underline; cursor: pointer; }
.hf-card { max-width: 26rem; margin: 2rem auto; padding: 2rem; background: #fff; border: 1px solid #e6e2da; border-top: 4px solid var(--hf-orange); border-radius: 6px; }
.hf-card h1 { margin-top: 0; }
.hf-form { display: flex; flex-direction: column; gap: 0.4rem; }
.hf-form label { font-weight: 600; margin-top: 0.6rem; }
.hf-form input { padding: 0.6rem 0.7rem; border: 1px solid #c9c3d4; border-radius: 4px; font: inherit; color: var(--hf-ink); background: #fff; }
.hf-form input:focus { outline: 3px solid var(--hf-lime); border-color: var(--hf-ink); }
.hf-button { display: inline-block; margin-top: 1rem; padding: 0.7rem 1.2rem; background: var(--hf-orange); color: #fff; border: 0; border-radius: 4px; font: inherit; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
.hf-button:hover { background: var(--hf-orange-dark); }
.hf-alert { padding: 0.7rem 0.9rem; background: #fdece7; border-left: 4px solid var(--hf-orange-dark); border-radius: 4px; }
.hf-notice { padding: 0.7rem 0.9rem; background: #f2fbd9; border-left: 4px solid var(--hf-lime); border-radius: 4px; }
.hf-hint { color: var(--hf-ink-soft); font-size: 0.9rem; }
.hf-titlebar { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.hf-titlebar .hf-button { margin-top: 0; }
.hf-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e6e2da; }
.hf-table th, .hf-table td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid #e6e2da; }
.hf-table th { font-size: 0.85rem; color: var(--hf-ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.hf-badge { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; background: #eceaf1; font-size: 0.85rem; }
.hf-badge-actief { background: #f2fbd9; }
.hf-badge-inactief, .hf-badge-geblokkeerd { background: #fdece7; }
.hf-panel { max-width: 26rem; margin: 1.5rem 0; padding: 1.25rem 1.5rem; background: #fff; border: 1px solid #e6e2da; border-left: 4px solid var(--hf-orange); border-radius: 6px; }
.hf-panel h2 { margin-top: 0; font-size: 1.1rem; }
.hf-form select { padding: 0.6rem 0.7rem; border: 1px solid #c9c3d4; border-radius: 4px; font: inherit; color: var(--hf-ink); background: #fff; }
.hf-secret { font-size: 1.5rem; letter-spacing: 0.04em; padding: 0.8rem 1rem; background: var(--hf-ink); color: var(--hf-lime); border-radius: 4px; text-align: center; }
.hf-secret code { font-family: ui-monospace, "SF Mono", Menlo, monospace; user-select: all; }
.hf-form textarea { padding: 0.6rem 0.7rem; border: 1px solid #c9c3d4; border-radius: 4px; font: inherit; color: var(--hf-ink); background: #fff; resize: vertical; }
.hf-form textarea:focus, .hf-form select:focus { outline: 3px solid var(--hf-lime); border-color: var(--hf-ink); }
/* Redenvak op de dealpagina alleen bij gekozen fase Verloren (geen JavaScript; zonder :has volgt het redenformulier). */
.hf-reason-field { display: none; flex-direction: column; gap: 0.4rem; }
.hf-form:has(select option[value="verloren"]:checked) .hf-reason-field { display: flex; }
.hf-wide { max-width: 34rem; }
.hf-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem 1rem; margin: 1rem 0; }
.hf-filters label { display: flex; flex-direction: column; gap: 0.2rem; font-weight: 600; font-size: 0.9rem; }
.hf-filters input[type="search"], .hf-filters select { padding: 0.5rem 0.6rem; border: 1px solid #c9c3d4; border-radius: 4px; font: inherit; background: #fff; color: var(--hf-ink); }
.hf-filters .hf-check { flex-direction: row; align-items: center; gap: 0.4rem; font-weight: 400; }
.hf-filters .hf-button { margin-top: 0; }
.hf-pager { color: var(--hf-ink-soft); font-size: 0.9rem; }
.hf-sort { color: inherit; text-decoration: none; }
.hf-sort:hover { text-decoration: underline; }
.hf-dl { display: grid; grid-template-columns: 9rem 1fr; gap: 0.4rem 1rem; max-width: 40rem; }
.hf-dl dt { color: var(--hf-ink-soft); font-size: 0.9rem; }
.hf-dl dd { margin: 0; overflow-wrap: anywhere; }
.hf-pre { white-space: pre-wrap; }
.hf-section { margin-top: 2rem; }
.hf-badge-prospect { background: #eceaf1; }
.hf-badge-klant { background: #f2fbd9; }
.hf-badge-niet_actief { background: #fdece7; }
/* Sprint 3: pipeline (kanban zonder JavaScript) en totalen */
.hf-board { display: grid; grid-template-columns: repeat(6, minmax(11rem, 1fr)); gap: 0.75rem; overflow-x: auto; padding-bottom: 0.5rem; }
.hf-column { background: #f6f4ef; border-radius: 6px; padding: 0.6rem; min-width: 0; }
.hf-column h2 { font-size: 1rem; margin: 0; }
.hf-column-head { margin: 0.2rem 0 0.6rem; font-weight: 600; font-size: 0.9rem; }
.hf-deal-card { margin: 0 0 0.6rem; padding: 0.6rem; overflow-wrap: anywhere; }
.hf-deal-card h3 { font-size: 0.95rem; margin: 0 0 0.3rem; }
.hf-deal-card p { margin: 0 0 0.3rem; font-size: 0.85rem; }
.hf-deal-card select { max-width: 100%; font: inherit; font-size: 0.85rem; padding: 0.25rem; }
.hf-deal-card .hf-button { margin-top: 0.3rem; padding: 0.3rem 0.6rem; font-size: 0.85rem; }
.hf-totals td { white-space: nowrap; }
.hf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Oogje bij wachtwoordvelden (hf.js) */
.hf-pw { position: relative; display: block; }
.hf-pw input { width: 100%; padding-right: 2.6rem; box-sizing: border-box; }
.hf-pw-toggle { position: absolute; right: 0.35rem; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 0.3rem; cursor: pointer; color: #5b5470; line-height: 0; }
.hf-pw-toggle:hover, .hf-pw-toggle:focus-visible { color: var(--hf-ink); }
.hf-pw-toggle:focus-visible { outline: 2px solid var(--hf-ink); outline-offset: 1px; border-radius: 4px; }

/* Home-dashboard (docs/ontwerp-dashboard.md v2) */
.hf-dash { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem 1.5rem; margin-top: 1rem; }
.hf-dash-block { padding: 1rem 1.25rem; background: #fff; border: 1px solid #e6e2da; border-left: 4px solid var(--hf-orange); border-radius: 6px; min-width: 0; overflow-wrap: anywhere; }
.hf-dash-block h2 { margin-top: 0; font-size: 1.05rem; }
.hf-dash-list { list-style: none; margin: 0 0 0.75rem; padding: 0; }
.hf-dash-list li { padding: 0.35rem 0; border-bottom: 1px solid #f0ede6; }
.hf-dash-list li:last-child { border-bottom: 0; }
.hf-dash .hf-table th, .hf-dash .hf-table td { padding: 0.35rem 0.5rem; }
.hf-switch { display: flex; gap: 0.75rem; }
.hf-switch a[aria-current="page"] { font-weight: 700; color: var(--hf-ink); text-decoration: none; }
