/* ============================================================
   TENDERTEAM DESIGN SYSTEM  —  tenderteam.css
   Gedeelde stijl voor alle interactieve tools & lead magnets.
   Eén bestand aanpassen = alle tools veranderen mee.
   Versie 1.1 — bijgewerkt naar de merkstem-huisstijl (§ Huisstijl
   van dit document, v1.2, 3 sept 2026): #FA921C oranje, zwarte
   koppen, #454545 body, #F5F5F5 blokken, #E8E8E8 lijnen, Lato als
   webfont, oranje topbalk + tagline-header, vinkjes-bullets,
   "Resultaat:"-labels, CTA-blok met oranje linkerbalk.
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Merkkleuren */
  --tt-orange:       #FA921C;
  --tt-orange-deep:  #DE800E;
  --tt-orange-soft:  #FCE9CE;
  --tt-cream:        #FFFFFF;
  --tt-cream-light:  #F5F5F5;
  --tt-ink:          #000000;
  --tt-ink-soft:     #454545;
  --tt-mute:         #979797;
  --tt-line:         #E8E8E8;

  /* Signaalkleuren */
  --tt-good:         #2C8E4A;
  --tt-ok:           #c89a3a;
  --tt-weak:         #c44a2e;
  --tt-accent-2:     #7a3a8a;   /* spreiding / verdeeldheid */

  /* Heatmap-schaal 1-5 */
  --tt-heat-1: #f2c8b5;
  --tt-heat-2: #f7dcc5;
  --tt-heat-3: #f5ecd0;
  --tt-heat-4: #dfe8c8;
  --tt-heat-5: #b8d19a;

  /* Typografie — Corbel voor Word/PDF; Lato voor web (Corbel is
     daar niet beschikbaar en valt anders stil terug op een
     systeemfont, dus we specificeren Lato direct). */
  --tt-font-display: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --tt-font-body:    'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Ruimte */
  --tt-radius-sm: 2px;
  --tt-radius:    3px;
  --tt-radius-lg: 3px;
  --tt-radius-xl: 3px;

  /* Schaduw */
  --tt-shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
  --tt-shadow:    0 8px 24px rgba(0,0,0,0.07);
  --tt-shadow-lg: 0 16px 40px rgba(0,0,0,0.10);

  /* Layout */
  --tt-maxw:        1000px;
  --tt-maxw-narrow: 720px;
}

/* ---------- 2. BASE ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--tt-cream);
  color: var(--tt-ink);
  font-family: var(--tt-font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.tt-gradient {
  background-image: none;
  min-height: 100vh;
}

.tt-container { max-width: var(--tt-maxw); margin: 0 auto; padding: 32px 24px 80px; }
.tt-container.narrow { max-width: var(--tt-maxw-narrow); }

/* ---------- 3. TYPOGRAFIE ---------- */
h1, h2, h3, h4, h5 { font-family: var(--tt-font-display); letter-spacing: normal; font-weight: 700; color: var(--tt-ink); }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.05; }
h2 { font-size: clamp(26px, 4.5vw, 40px); line-height: 1.1; }
h3 { font-size: clamp(20px, 3vw, 26px); line-height: 1.2; }
h4 { font-size: 17px; }
h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--tt-font-body); font-weight: 700; color: var(--tt-mute); }

/* Koppen: start zwart, eindig oranje — de oranje eindzin/woord in <em>. */
h1 em, h2 em, h3 em, h4 em { font-style: normal; color: var(--tt-orange); font-weight: 700; }

.tt-lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--tt-ink-soft); max-width: 62ch; }
.tt-small { font-size: 13px; color: var(--tt-mute); }
.tt-hint { font-size: 13px; color: var(--tt-mute); font-style: italic; }
.tt-muted { color: var(--tt-mute); }
.tt-center { text-align: center; }

/* ---------- 4. HEADER / LOGO / PILLS ---------- */

/* Oranje topbalk — het eerste visuele element op de pagina.
   Plaats <div class="tt-topband"></div> als eerste kind van <body>. */
.tt-topband { height: 20px; width: 100%; background: var(--tt-orange); }

.tt-topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-bottom: 24px;
  border-bottom: 1px solid var(--tt-line); margin-bottom: 40px;
}
.tt-logo { font-family: var(--tt-font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; color: var(--tt-ink); }
.tt-logo span { color: var(--tt-orange); }

/* Tagline "Strategie./Creativiteit./Actie!" — rechts in de header,
   op elke pagina behalve de cover. */
.tt-tagline { font-family: var(--tt-font-display); font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.tt-tagline .t1 { color: var(--tt-orange); font-style: italic; }
.tt-tagline .t2 { color: var(--tt-ink-soft); }
.tt-tagline .t3 { color: var(--tt-orange); }

.tt-pill {
  display: inline-block; padding: 6px 14px;
  background: var(--tt-orange-soft); color: var(--tt-orange-deep);
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; border-radius: 2px;
}
.tt-pill.ghost { background: transparent; border: 1px solid var(--tt-line); color: var(--tt-mute); }
.tt-pill.accent2 { background: rgba(122,58,138,0.1); color: var(--tt-accent-2); }

/* ---------- 5. KNOPPEN ---------- */
.tt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; background: var(--tt-orange); color: #fff;
  border: 1px solid var(--tt-orange); font-family: inherit; font-size: 15px; font-weight: 700;
  border-radius: 3px; cursor: pointer; text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.tt-btn:hover { background: var(--tt-orange-deep); border-color: var(--tt-orange-deep); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(250,146,28,.3); }
.tt-btn:active { transform: translateY(0); }
.tt-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.tt-btn.ghost { background: transparent; color: var(--tt-ink); border-color: var(--tt-line); }
.tt-btn.ghost:hover { background: var(--tt-cream-light); border-color: var(--tt-ink-soft); box-shadow: none; }

.tt-btn.dark { background: var(--tt-ink); border-color: var(--tt-ink); }
.tt-btn.dark:hover { background: #262626; box-shadow: 0 8px 24px rgba(0,0,0,.3); }

.tt-btn.danger { background: transparent; color: var(--tt-weak); border-color: var(--tt-weak); }
.tt-btn.danger:hover { background: var(--tt-weak); color: #fff; box-shadow: none; }

.tt-btn.sm { padding: 8px 16px; font-size: 13px; }
.tt-btn.lg { padding: 17px 32px; font-size: 17px; }
.tt-btn.block { width: 100%; }

/* ---------- 6. FORMULIERELEMENTEN ---------- */
.tt-field { display: block; margin-bottom: 20px; }
.tt-field > span { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.tt-field > small { display: block; font-size: 12px; color: var(--tt-mute); margin-top: 5px; }

input[type=text], input[type=email], input[type=password], input[type=tel], select, textarea {
  width: 100%; padding: 12px 16px;
  background: var(--tt-cream-light); border: 1px solid var(--tt-line);
  border-radius: var(--tt-radius-sm);
  font-family: inherit; font-size: 15px; color: var(--tt-ink);
  transition: border-color .15s, background .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--tt-orange); background: #fff; }
input::placeholder, textarea::placeholder { color: #b5b5b5; }

.tt-error { color: var(--tt-weak); font-size: 13px; margin-top: 6px; }

/* ---------- 7. KAARTEN ---------- */
.tt-card {
  background: var(--tt-cream-light); border: 1px solid var(--tt-line);
  border-radius: var(--tt-radius-lg); padding: 24px 28px;
}
.tt-card.tight { padding: 18px 20px; }
.tt-card.hover { transition: transform .2s, box-shadow .2s, border-color .2s; }
.tt-card.hover:hover { transform: translateY(-2px); box-shadow: var(--tt-shadow); border-color: var(--tt-orange); }
.tt-card.accent { background: linear-gradient(135deg, var(--tt-orange-soft), var(--tt-cream-light)); border-color: var(--tt-orange); }

/* Resultaatblok met grote cijfers: donkergrijs (niet zwart) met
   witte tekst en oranje KPI-cijfers — zie .tt-card.dark .tt-stat
   in sectie 10 (Stat cards) hieronder. */
.tt-card.dark { background: var(--tt-ink-soft); color: var(--tt-cream); border-color: var(--tt-ink-soft); }
.tt-card.dark h1, .tt-card.dark h2, .tt-card.dark h3 { color: var(--tt-cream); }
.tt-card.dark p { color: rgba(255,255,255,.75); }

.tt-grid { display: grid; gap: 16px; }
.tt-grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tt-grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tt-grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

/* ---------- 7b. VINKJES-BULLETS, RESULTAATREGELS, CTA-BLOK ----------
   Herbruikbare merkpatronen uit § Vormgeving: oranje vinkjes i.p.v.
   ronde bullets, "Resultaat:" in oranje + cursieve uitkomst, en het
   CTA-blok met dikke oranje linkerbalk en contactgegevens. */
.tt-checklist { list-style: none; }
.tt-checklist li { position: relative; padding-left: 26px; margin-bottom: 8px; color: var(--tt-ink-soft); }
.tt-checklist li::before { content: '✓'; position: absolute; left: 0; color: var(--tt-orange); font-weight: 700; }
.tt-checklist.bold li { font-weight: 700; }

/* Genummerde lijsten: nummer oranje + vet, tekst donkergrijs. */
.tt-numlist { list-style: none; counter-reset: tt-num; }
.tt-numlist li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--tt-ink-soft); counter-increment: tt-num; }
.tt-numlist li::before { content: counter(tt-num) '.'; position: absolute; left: 0; color: var(--tt-orange); font-weight: 700; }

.tt-resultaat { margin-top: 10px; font-size: 14.5px; }
.tt-resultaat .res-label { color: var(--tt-orange); font-weight: 700; }
.tt-resultaat .res-text { color: var(--tt-ink-soft); font-style: italic; }

.tt-cta-block { background: var(--tt-cream-light); border-left: 6px solid var(--tt-orange); border-radius: 0 var(--tt-radius-xl) var(--tt-radius-xl) 0; padding: 32px 34px; }
.tt-cta-block h3 { font-size: 24px; margin-bottom: 10px; }
.tt-cta-block p { color: var(--tt-ink-soft); max-width: 520px; margin: 0 0 18px; }
.tt-cta-contact { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--tt-ink-soft); margin-bottom: 22px; }
.tt-cta-contact a { color: var(--tt-orange); font-weight: 700; text-decoration: none; }
.tt-cta-contact a:hover { text-decoration: underline; }

.footer-brand-link { color: var(--tt-orange) !important; font-weight: 700; }
.footer-brand-link:hover { text-decoration: underline; }

/* ---------- 8. VOORTGANGSBALK ---------- */
.tt-progress { position: sticky; top: 0; background: var(--tt-cream); padding: 18px 0; z-index: 20; }
.tt-progress-bar { height: 4px; background: var(--tt-line); border-radius: 100px; overflow: hidden; }
.tt-progress-fill { height: 100%; background: var(--tt-orange); border-radius: 100px; transition: width .4s ease; }
.tt-progress-text { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--tt-mute); margin-top: 9px; }

/* ---------- 9. LIKERT / SCHAAL (herbruikbaar in elke tool) ---------- */
.tt-question { padding: 18px 0; border-bottom: 1px solid var(--tt-line); }
.tt-question:last-child { border-bottom: none; }
.tt-question-text { font-size: 15px; font-weight: 500; margin-bottom: 12px; }

.tt-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.tt-scale.opts-2 { grid-template-columns: repeat(2, 1fr); }
.tt-scale.opts-3 { grid-template-columns: repeat(3, 1fr); }
.tt-scale.opts-4 { grid-template-columns: repeat(4, 1fr); }
.tt-scale-option { position: relative; }
.tt-scale-option input { position: absolute; opacity: 0; pointer-events: none; }
.tt-scale-option label {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 11px 4px; background: var(--tt-cream-light);
  border: 1px solid var(--tt-line); border-radius: var(--tt-radius-sm);
  cursor: pointer; text-align: center; transition: all .15s; height: 100%;
}
.tt-scale-option label .n { font-family: var(--tt-font-display); font-size: 19px; font-weight: 600; line-height: 1.1; }
.tt-scale-option label .l { font-size: 10px; color: var(--tt-mute); margin-top: 2px; line-height: 1.2; }
.tt-scale-option label:hover { border-color: var(--tt-orange); background: var(--tt-orange-soft); }
.tt-scale-option input:checked + label { background: var(--tt-orange); color: #fff; border-color: var(--tt-orange); }
.tt-scale-option input:checked + label .l { color: rgba(255,255,255,.85); }
.tt-scale-option input:focus-visible + label { outline: 2px solid var(--tt-ink); outline-offset: 2px; }

/* ---------- 10. STAT CARDS ---------- */
.tt-stat { background: var(--tt-cream-light); border: 1px solid var(--tt-line); border-radius: var(--tt-radius); padding: 20px; }
.tt-stat .label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--tt-mute); font-weight: 700; }
.tt-stat .val { font-family: var(--tt-font-display); font-size: 40px; font-weight: 700; font-style: normal; color: var(--tt-orange); line-height: 1; margin-top: 4px; }
.tt-stat .val small { font-size: 17px; color: var(--tt-mute); font-style: normal; }
.tt-stat .desc { font-size: 13px; color: var(--tt-ink-soft); margin-top: 6px; }

/* KPI-balk op donkergrijs (in .tt-card.dark): witte tekst, oranje cijfer. */
.tt-card.dark .tt-stat { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); }
.tt-card.dark .tt-stat .label { color: rgba(255,255,255,.7); }
.tt-card.dark .tt-stat .desc { color: rgba(255,255,255,.75); }

/* ---------- 11. TABS ---------- */
.tt-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--tt-line); overflow-x: auto; margin-bottom: 24px; -webkit-overflow-scrolling: touch; }
.tt-tabs button {
  background: none; border: none; padding: 12px 18px; white-space: nowrap;
  font-family: inherit; font-size: 14px; font-weight: 500; color: var(--tt-mute);
  cursor: pointer; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.tt-tabs button:hover { color: var(--tt-ink); }
.tt-tabs button.active { color: var(--tt-orange); border-bottom-color: var(--tt-orange); }

.tt-view { display: none; }
.tt-view.active { display: block; animation: ttFade .3s ease; }

/* ---------- 12. TABELLEN ---------- */
.tt-table { width: 100%; border-collapse: collapse; background: var(--tt-cream-light); border: 1px solid var(--tt-line); border-radius: var(--tt-radius); overflow: hidden; }
.tt-table th, .tt-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--tt-line); font-size: 14px; }
.tt-table th { background: var(--tt-cream); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--tt-mute); }
.tt-table tr:last-child td { border-bottom: none; }
.tt-table tr.selected { background: var(--tt-orange-soft); }
.tt-table .num { font-family: var(--tt-font-display); font-weight: 600; text-align: center; }

.tt-heatmap { width: 100%; border-collapse: collapse; font-size: 13px; }
.tt-heatmap th, .tt-heatmap td { padding: 7px 9px; text-align: center; border: 1px solid var(--tt-line); }
.tt-heatmap th { background: var(--tt-cream); font-weight: 600; font-size: 11px; }
.tt-heatmap th:first-child, .tt-heatmap td:first-child { text-align: left; font-size: 12px; }
.tt-heat-cell { font-family: var(--tt-font-display); font-weight: 600; }
.tt-h1 { background: var(--tt-heat-1); } .tt-h2 { background: var(--tt-heat-2); }
.tt-h3 { background: var(--tt-heat-3); } .tt-h4 { background: var(--tt-heat-4); }
.tt-h5 { background: var(--tt-heat-5); }

/* ---------- 13. LIJSTITEMS / ADVIESBLOKKEN ---------- */
.tt-item {
  background: var(--tt-cream-light); border: 1px solid var(--tt-line);
  border-left: 3px solid var(--tt-orange); border-radius: var(--tt-radius);
  padding: 20px 24px;
}
.tt-item.good { border-left-color: var(--tt-good); }
.tt-item.accent2 { border-left-color: var(--tt-accent-2); }
.tt-item .tag {
  display: inline-block; padding: 4px 10px; background: var(--tt-orange-soft);
  color: var(--tt-orange-deep); font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; border-radius: 2px; margin-bottom: 8px;
}
.tt-item h4 { margin-bottom: 6px; }
.tt-item p { font-size: 14px; color: var(--tt-ink-soft); }

/* ---------- 14. RANGE-BALK (min / gemiddelde / max) ---------- */
.tt-range { position: relative; height: 30px; margin: 8px 0; }
.tt-range .track { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); height: 4px; background: var(--tt-line); border-radius: 100px; }
.tt-range .active { position: absolute; top: 50%; transform: translateY(-50%); height: 6px; background: var(--tt-orange-soft); border: 1px solid var(--tt-orange); border-radius: 100px; }
.tt-range .dot { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 10px; height: 10px; border-radius: 50%; background: var(--tt-mute); z-index: 2; }
.tt-range .dot.main { width: 18px; height: 18px; background: var(--tt-orange); border: 3px solid var(--tt-cream-light); z-index: 3; }
.tt-range-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--tt-mute); }

/* ---------- 15. RADAR ---------- */
.tt-radar { display: flex; justify-content: center; margin: 24px 0; }
.tt-radar svg { width: 100%; max-width: 500px; height: auto; }
.tt-legend { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; font-size: 13px; margin-top: 12px; }
.tt-legend-item { display: flex; align-items: center; gap: 6px; }
.tt-legend-swatch { width: 14px; height: 14px; border-radius: 3px; }

/* ---------- 16. LEGE STATEN / LADEN / MODALS ---------- */
.tt-empty { text-align: center; padding: 56px 20px; background: var(--tt-cream-light); border: 1px dashed var(--tt-line); border-radius: var(--tt-radius-lg); }
.tt-empty h3 { color: var(--tt-mute); font-weight: 500; }
.tt-empty p { color: var(--tt-mute); font-size: 14px; margin-top: 8px; }

.tt-loading { text-align: center; padding: 40px; color: var(--tt-mute); font-size: 14px; }
.tt-spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--tt-line); border-top-color: var(--tt-orange); border-radius: 50%; animation: ttSpin .7s linear infinite; vertical-align: -3px; margin-right: 8px; }
@keyframes ttSpin { to { transform: rotate(360deg); } }

.tt-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.tt-modal-overlay.active { display: flex; }
.tt-modal { background: var(--tt-cream); border-radius: var(--tt-radius-lg); padding: 30px; max-width: 440px; width: 100%; box-shadow: var(--tt-shadow-lg); }
.tt-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ---------- 17. STAPPEN / ANIMATIE ---------- */
.tt-step { display: none; }
.tt-step.active { display: block; animation: ttFade .35s ease; }
@keyframes ttFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 18. NAVIGATIE ONDERIN ---------- */
.tt-nav-buttons { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--tt-line); }
.tt-footer { text-align: center; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--tt-line); font-size: 13px; color: var(--tt-mute); }
.tt-footer a, .tt-footer button { color: var(--tt-mute); background: none; border: none; font: inherit; cursor: pointer; text-decoration: none; padding: 0 8px; }
.tt-footer a:hover, .tt-footer button:hover { color: var(--tt-orange); text-decoration: underline; }

/* ---------- 19. UTILITIES ---------- */
.tt-mt-0 { margin-top: 0 !important; }   .tt-mt-1 { margin-top: 8px !important; }
.tt-mt-2 { margin-top: 16px !important; } .tt-mt-3 { margin-top: 24px !important; }
.tt-mt-4 { margin-top: 32px !important; } .tt-mt-5 { margin-top: 48px !important; }
.tt-mb-0 { margin-bottom: 0 !important; } .tt-mb-1 { margin-bottom: 8px !important; }
.tt-mb-2 { margin-bottom: 16px !important; } .tt-mb-3 { margin-bottom: 24px !important; }
.tt-mb-4 { margin-bottom: 32px !important; }
.tt-hidden { display: none !important; }
.tt-scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- 20. RESPONSIVE ---------- */
@media (max-width: 700px) {
  .tt-container { padding: 24px 16px 60px; }
  .tt-scale { gap: 4px; }
  .tt-scale-option label { padding: 9px 2px; }
  .tt-scale-option label .n { font-size: 16px; }
  .tt-scale-option label .l { font-size: 9px; }
  .tt-nav-buttons { flex-direction: column-reverse; }
  .tt-nav-buttons .tt-btn { width: 100%; }
  .tt-card { padding: 20px; }
  .tt-table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media print {
  body { background: #fff; }
  .tt-no-print, .tt-progress, .tt-nav-buttons, .tt-footer, .tt-tabs { display: none !important; }
  .tt-view { display: block !important; page-break-inside: avoid; }
  .tt-card, .tt-item, .tt-stat { break-inside: avoid; }
}
