/* Teamscan · gebruikt de kleuren en letters van site.css */
:root {
  --ts-gegrond: #639922;
  --ts-opgejaagd: #C15932;
  --ts-afgesloten: #378ADD;
  --ts-beide: #6B4E8A;
}

/* Stappen op de aanvraagpagina */
.ts-steps { margin: 0; padding: 0; list-style: none; counter-reset: ts; display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
.ts-steps li { counter-increment: ts; position: relative; padding: 1.1rem 0 1.1rem 3rem; border-bottom: 1px solid var(--line); margin: 0; }
.ts-steps li::before { content: counter(ts); position: absolute; left: 0; top: 1.1rem; font-family: var(--sans); font-size: 0.85rem; font-weight: 500; color: var(--terra-deep); width: 2rem; height: 2rem; border: 1.5px solid var(--terra); border-radius: 50%; display: grid; place-items: center; line-height: 1; }

/* Profielen */
.ts-profiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.5rem 2rem; }
.ts-profile { border-top: 1.5px solid var(--ink); padding-top: 1rem; min-width: 0; }
.ts-profile h3 { font-size: 1.5rem; font-weight: 500; margin: 0.6rem 0 0.4rem; }
.ts-profile p { color: var(--ink-soft); margin: 0; }
.ts-dot { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%; flex-shrink: 0; vertical-align: middle; }
.ts-dot--gegrond { background: var(--ts-gegrond); }
.ts-dot--opgejaagd { background: var(--ts-opgejaagd); }
.ts-dot--afgesloten { background: var(--ts-afgesloten); }
.ts-dot--beide { background: var(--ts-beide); }

/* Kaart met (voorbeeld)rapport */
.ts-card { background: var(--white); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); min-width: 0; }
.ts-eyebrow { font-family: var(--sans); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--terra-deep); margin: 0 0 0.5rem; }
.ts-meta { font-family: var(--sans); font-size: 0.9rem; color: var(--grey-text); margin: 0.25rem 0 0; }
.ts-report__title { font-size: clamp(1.6rem, 3.5vw, 2.1rem); font-weight: 500; line-height: 1.15; margin: 0; text-wrap: balance; }
.ts-report__head { margin-bottom: 1.5rem; }
.ts-h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 500; line-height: 1.1; margin: 0 0 1rem; text-wrap: balance; }

.ts-warn { background: #F3EDF8; border-left: 3px solid var(--ts-beide); padding: 0.9rem 1.1rem; margin: 0 0 1.5rem; border-radius: 0 10px 10px 0; }
.ts-warn strong { font-family: var(--sans); font-size: 0.85rem; font-weight: 500; color: var(--ts-beide); }
.ts-warn p { margin: 0.25rem 0 0; color: var(--ink); }

.ts-bars { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: 0.85rem; }
.ts-bar { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr) 3rem 2rem; align-items: center; gap: 0.75rem; margin: 0; }
.ts-bar__label { font-family: var(--sans); font-size: 0.9rem; color: var(--ink-soft); display: flex; align-items: center; gap: 0.5rem; }
.ts-bar__track { height: 8px; background: var(--sand); border-radius: 4px; overflow: hidden; }
.ts-bar__fill { display: block; height: 100%; border-radius: 4px; }
.ts-fill--gegrond { background: var(--ts-gegrond); }
.ts-fill--opgejaagd { background: var(--ts-opgejaagd); }
.ts-fill--afgesloten { background: var(--ts-afgesloten); }
.ts-fill--beide { background: var(--ts-beide); }
.ts-bar__pct { font-family: var(--sans); font-size: 0.95rem; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.ts-bar__n { font-family: var(--sans); font-size: 0.85rem; color: var(--grey-text); text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .ts-bar { grid-template-columns: minmax(0, 1fr) 3rem 2rem; row-gap: 0.35rem; }
  .ts-bar__label { grid-column: 1 / -1; }
}

.ts-conclusion { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.ts-conclusion h3 { font-size: 1.5rem; font-weight: 500; margin: 0 0 0.4rem; }
.ts-conclusion p { color: var(--ink-soft); margin: 0; }
.ts-note { font-family: var(--sans); font-size: 0.9rem; color: var(--grey-text); line-height: 1.55; margin: 1rem 0 0; }
.ts-error { font-family: var(--sans); font-size: 0.95rem; color: var(--terra-deep); margin: 1rem 0 0; }

/* Formulier en links */
.ts-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ts-created { background: var(--white); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.25rem; }
.ts-created h3 { font-size: 1.6rem; font-weight: 500; line-height: 1.2; margin: 0; }
.ts-link { min-width: 0; }
.ts-link label { display: block; font-family: var(--sans); font-size: 0.88rem; font-weight: 500; color: var(--ink-soft); margin-bottom: 0.35rem; }
.ts-link__row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.ts-link input, .ts-link textarea { flex: 1 1 14rem; min-width: 0; width: 100%; font-family: var(--sans); font-size: 0.95rem; color: var(--ink); background: var(--cream); border: 1.5px solid var(--line); border-radius: 10px; padding: 0.7rem 0.9rem; }
.ts-link textarea { resize: vertical; line-height: 1.5; }
.ts-copy { padding: 0.7em 1.2em; }
.ts-report .ts-link, .ts-next + .ts-link { margin-top: 2rem; }

/* Invullen */
.ts-take, .ts-report { max-width: 640px; margin: 0 auto; }
.ts-report { max-width: 760px; }
.ts-progress { height: 3px; background: var(--sand); border-radius: 2px; margin-bottom: 0.6rem; overflow: hidden; }
.ts-progress span { display: block; height: 100%; background: var(--terra); transition: width 0.35s ease; }
.ts-q { font-size: clamp(1.6rem, 3.6vw, 2.1rem); font-weight: 500; line-height: 1.25; margin: 1.5rem 0 1.75rem; text-wrap: balance; outline: none; }
.ts-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); gap: 0.6rem; margin-bottom: 1.75rem; }
.ts-opt { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; padding: 0.95rem 1rem; cursor: pointer; transition: border-color .15s, background .15s; }
.ts-opt:hover, .ts-opt.is-selected { border-color: var(--terra); background: #FDF3EE; }
.ts-opt:focus-visible, .ts-back:focus-visible, .ts-copy:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ts-back { background: transparent; border: 1.5px solid #D3D1C7; border-radius: 999px; padding: 0.6rem 1.3rem; font-family: var(--sans); font-size: 0.95rem; color: var(--grey-text); cursor: pointer; }
.ts-back:hover { border-color: var(--ink); color: var(--ink); }

.ts-badge { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--sans); font-size: 1rem; font-weight: 500; background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; padding: 0.45rem 1rem; margin: 0.5rem 0 1.25rem; }
.ts-result { font-size: 1.3rem; line-height: 1.6; color: var(--ink); border-left: 3px solid var(--terra); padding-left: 1rem; margin: 0; }
.ts-next { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1.5px solid var(--ink); }
.ts-next h3 { font-size: 1.5rem; font-weight: 500; margin: 0 0 0.4rem; }
.ts-next p { color: var(--ink-soft); margin: 0; }

/* Wachten op genoeg antwoorden */
.ts-wait { background: var(--white); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); margin-top: 1.5rem; }
.ts-wait__count { font-family: var(--sans); color: var(--grey-text); margin: 0 0 0.75rem; }
.ts-wait__count span { font-family: var(--serif); font-size: 2.6rem; color: var(--ink); margin-right: 0.35rem; font-variant-numeric: tabular-nums; }
.ts-wait p:last-child { margin: 1rem 0 0; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  .ts-progress span, .ts-opt { transition: none; }
}
