/* Coaching — shell en gedeelde onderdelen, bovenop de huisstijl (/thema/huisstijl.css). */

.laden { color: var(--ink-3); padding: 24px 0; }

.shell { display: flex; min-height: 100vh; }
/* UX-3: groene band over de volle paginahoogte; de navigatie zelf blijft sticky. */
@media (min-width: 901px) {
  .shell { background: linear-gradient(to right, var(--groen) var(--sidebar-w), transparent var(--sidebar-w)); }
}
.kolom { flex: 1; min-width: 0; }

/* Zijbalk (desktop) */
.zij {
  width: var(--sidebar-w); flex-shrink: 0; background: var(--groen); color: var(--creme);
  padding: 28px 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
}
.zij-merk { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; padding-left: 4px; }
.zij-merk-icoon { width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0; }
.zij .logo { font-weight: 700; font-size: 20px; line-height: 1.1; }
.zij .sub { font-size: 12px; opacity: .6; margin-top: 2px; letter-spacing: .08em; text-transform: uppercase; }
.zij-link {
  display: block; color: var(--creme); text-decoration: none; padding: 10px 14px;
  border-radius: var(--r-pill); margin-bottom: 4px; font-weight: 500; opacity: .8;
  transition: background .15s var(--ease), opacity .15s var(--ease);
}
.zij-link:hover { background: rgba(255,255,255,.06); opacity: 1; }
.zij-link[aria-current="page"] { background: rgba(255,255,255,.12); opacity: 1; font-weight: 600; }
.zij-link:focus-visible, .mobiel-link:focus-visible, .menu-knop:focus-visible { outline: 2px solid var(--oranje); outline-offset: 2px; }
.zij-voet { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
.zij-naam { padding: 10px 14px 0; font-size: 12px; opacity: .6; }

/* Terug naar de Werkplek (hub) */
.hub-link {
  display: inline-flex; align-items: center; gap: 10px; color: var(--creme); text-decoration: none;
  font-weight: 500; border-radius: var(--r-pill); transition: background .15s var(--ease), opacity .15s var(--ease);
}
.hub-link img { flex-shrink: 0; }
.hub-link:hover { background: rgba(255,255,255,.06); opacity: 1; }
.hub-link:focus-visible { outline: 2px solid var(--oranje); outline-offset: 2px; }
.zij-hub { display: flex; padding: 10px 14px; opacity: .8; }

/* Compacte topbalk (mobiel) */
.top, .mobiel-menu { display: none; }

main { padding: 36px 40px 56px; max-width: 1180px; outline: none; }
.kop { margin-bottom: 24px; }
.kop .intro { margin-top: 8px; max-width: 62ch; }
.blok { margin-bottom: 36px; }
.blok > h2 { font-size: 20px; margin-bottom: 14px; }

.melding.fout { background: var(--rood-licht); color: var(--rood); padding: 12px 16px; border-radius: var(--r-sm); font-weight: 500; }
.nowrap { white-space: nowrap; }
.r { text-align: right; }

/* Uitleg-ⓘ bij getallen */
.info { color: var(--ink-3); text-decoration: none; font-size: 14px; margin-left: 6px; cursor: help; }
.info:hover, .info:focus-visible { color: var(--oranje-donker); }

/* Tabellen */
.tabel-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; position: relative; } /* relative: ook absoluut gepositioneerde (sr-only) kinderen blijven binnen de scrollcontainer */
.tabel-scroll table { min-width: 100%; }
table.definities th[scope="row"] { background: transparent; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); width: 230px; vertical-align: top; }
table.definities td { max-width: 70ch; }
table.definities tr:hover td, table.definities tr:hover th[scope="row"] { background: transparent; }

.voorbeelden { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.voorbeeld h4 { margin-bottom: 8px; }
.voorbeeld p { font-variant-numeric: tabular-nums; }

/* Mijn coaching */
.jaarkeuze { max-width: 160px; }
.totaal-tegel { margin-bottom: 20px; }
.totaal-getal { font-size: 36px; font-weight: 700; color: var(--groen); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.totaal-label { font-size: 16px; color: var(--ink-2); }
.leeg .card-body { text-align: center; padding: 40px 22px; }
.leeg h3 { margin-bottom: 6px; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; background: var(--groen-50); color: var(--groen); border-radius: var(--r-pill); padding: 2px 10px; margin: 2px 4px 2px 0; }
.mijn-tabel .onderwerp { min-width: 240px; }

@media (max-width: 900px) {
  .zij { display: none; }
  .top {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--groen); color: var(--creme); padding: 12px 16px; position: sticky; top: 0; z-index: 10;
  }
  .top-merk { display: flex; align-items: center; font-weight: 700; font-size: 18px; min-width: 0; }
  .top-merk-icoon { width: 30px; height: 30px; border-radius: 7px; margin-right: 10px; flex-shrink: 0; }
  .top-acties { display: flex; align-items: center; gap: 6px; }
  .top-hub { padding: 8px 12px; min-height: 40px; font-size: 14px; font-weight: 600; gap: 8px; }
  .menu-knop {
    background: rgba(255,255,255,.12); color: var(--creme); border: 0; border-radius: var(--r-pill);
    padding: 8px 18px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; min-height: 40px;
  }
  .mobiel-menu { display: block; background: var(--groen); padding: 4px 12px 14px; position: sticky; top: 64px; z-index: 10; }
  .mobiel-menu.hidden { display: none !important; }
  .mobiel-link { display: block; color: var(--creme); text-decoration: none; padding: 12px 14px; border-radius: var(--r-pill); font-weight: 500; opacity: .85; }
  .mobiel-link[aria-current="page"] { background: rgba(255,255,255,.12); opacity: 1; font-weight: 600; }
  main { padding: 20px 16px 40px; }
  h1 { font-size: 26px; }
  .voorbeelden { grid-template-columns: 1fr; }
  table.definities th[scope="row"] { width: 120px; }
  table.definities th, table.definities td { padding: 12px 14px; }
}

/* Mijn coaching als kaartjes op smalle schermen: geen horizontaal scrollen */
@media (max-width: 600px) {
  .mijn-tabel thead { display: none; }
  .mijn-tabel, .mijn-tabel tbody, .mijn-tabel tr, .mijn-tabel td { display: block; width: 100%; }
  .mijn-tabel tr { padding: 12px 14px; border-bottom: 1px solid var(--rule); }
  .mijn-tabel tr:last-child { border-bottom: 0; }
  .mijn-tabel td { border: 0; padding: 3px 0; display: flex; gap: 10px; justify-content: space-between; text-align: right; }
  .mijn-tabel td::before { content: attr(data-label); color: var(--ink-3); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; text-align: left; flex: none; padding-top: 2px; }
  .mijn-tabel td.onderwerp { min-width: 0; }
  .mijn-tabel tr:hover td { background: transparent; }
  .totaal-getal { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Smal: de Werkplek-link alleen als icoon, de naam blijft voor schermlezers. */
@media (max-width: 420px) {
  .top-hub span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
