/* Stijl Atelier (keuze Ali, 31-10-2026): crème papier, terracotta, bosgroen, oker en zand.
   Hoekig: geen afgeronde hoeken, geen kleurverlopen. Eén kolom, gemaakt voor de telefoon. */
:root {
  color-scheme: light;
  --creme: #F1E9DA;
  --papier: #FAF5EC;
  --zand: #E2D2B6;
  --zandlicht: #EFE4D2;
  --terra: #A9472A;
  --roest: #8F3B22;      /* terracotta als tekst op zand */
  --groen: #22402F;
  --oker: #D6A243;
  --inkt: #2A241D;
  --stil: #5E5143;
  --invoer: #8C7A5E;     /* rand van invoervelden */
  --licht: #F8F2E6;      /* tekst op terracotta en groen */
  --fout: #8F2416;
  --body: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0; }
html, body { height: 100%; }
body { font-family: var(--body); color: var(--inkt); background: var(--creme); -webkit-text-size-adjust: 100%; }
button, textarea, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--terra); }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.app { max-width: 460px; min-height: 100%; margin: 0 auto; display: flex; flex-direction: column; background: var(--creme); }
@media (min-width: 640px) {
  body { background: #D8C9AD; padding: 24px 0; }
  .app { min-height: calc(100% - 48px); }
}

/* Kop: groen met drie vlakjes als merkteken */
.kop { background: var(--groen); color: var(--creme); padding: 16px 20px 14px; }
.koprij { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.merk { display: flex; align-items: center; font-size: 16px; font-weight: 700; line-height: 1.2; }
.merk::before { content: ""; flex: none; width: 12px; height: 12px; margin-right: 42px; background: var(--terra); box-shadow: 15px 0 0 var(--oker), 30px 0 0 var(--zand); }
.ondertitel { margin-top: 6px; font-size: 14px; line-height: 1.3; color: var(--zand); }
.meer { display: flex; gap: 16px; flex: none; }
.meer a { font-size: 14px; color: var(--zand); text-decoration: none; padding: 6px 0; }
.meer a[aria-current="page"] { color: var(--licht); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.kop :focus-visible, nav.tabs :focus-visible { outline-color: var(--licht); }

main { flex: 1; padding: 22px 20px 32px; display: flex; flex-direction: column; gap: 20px; }
main:focus { outline: none; }
h1 { font-size: 32px; line-height: 1.1; color: var(--groen); text-wrap: balance; }
h2 { font-size: 23px; line-height: 1.2; color: var(--groen); text-wrap: balance; }
h3 { font-size: 17px; line-height: 1.3; color: var(--groen); }
p { font-size: 17px; line-height: 1.5; }
.klein { font-size: 14px; color: var(--stil); line-height: 1.45; }
.fout { font-size: 15px; font-weight: 700; color: var(--fout); line-height: 1.45; }
.melding { font-size: 15px; color: var(--groen); background: var(--zand); padding: 12px 14px; line-height: 1.45; }
.bovenkop { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--terra); margin-bottom: -10px; }

/* Inlogbeeld en kader */
.beeld { display: block; width: 100%; height: auto; }
.kader { margin-top: auto; display: flex; flex-direction: column; gap: 4px; background: var(--zand); padding: 14px 16px; }
.kaderkop { font-size: 15px; font-weight: 700; color: var(--roest); }
.kader .klein { color: var(--stil); }

/* Knoppen */
.knop { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 20px; font-size: 17px; font-weight: 700; text-decoration: none; }
.knop.vol { background: var(--terra); color: var(--licht); }
.knop.vol:hover { background: var(--roest); }
.knop.leeg { border: 2px solid var(--groen); color: var(--groen); }
.knop.leeg:hover { background: var(--zandlicht); }
.knop.klein-knop { min-height: 40px; padding: 0 14px; font-size: 15px; }
.knop:disabled { opacity: .5; cursor: default; }
.tekstknop { color: var(--terra); min-height: 44px; font-size: 15px; font-weight: 700; text-align: left; align-self: flex-start; }
.acties { display: flex; gap: 10px; flex-wrap: wrap; }
.acties .vol { flex: 1; }
.vink { flex: none; min-height: 36px; padding: 0 12px; background: var(--groen); color: var(--licht); font-size: 14px; font-weight: 700; }

/* Voortgang: blokjes per vraag, kleur per laag */
.stand { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--stil); }
.stand .nr b { color: var(--groen); }
.laag { font-size: 12px; font-weight: 700; padding: 4px 8px; background: var(--groen); color: var(--licht); }
.laag.l1 { background: var(--terra); }
.laag.l3 { background: var(--oker); color: var(--inkt); }
.blokjes { display: flex; gap: 4px; margin-top: -8px; }
.blokjes i { flex: 1; height: 8px; background: var(--zand); }
.blokjes i.l1.klaar { background: var(--terra); }
.blokjes i.l2.klaar { background: var(--groen); }
.blokjes i.l3.klaar { background: var(--oker); }
.blokjes i.nu { background: var(--creme); box-shadow: inset 0 0 0 2px var(--groen); }
.spoor, .meter { height: 10px; background: var(--zand); }
.spoor > div, .meter > div { height: 100%; background: var(--groen); }

/* Antwoordopties */
.opties { display: flex; flex-direction: column; gap: 8px; }
.optie { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; min-height: 56px; padding: 12px 16px; background: var(--zand); font-size: 17px; line-height: 1.3; color: var(--inkt); }
.optie:hover { background: #D9C6A5; }
.optie .vak { flex: none; width: 20px; height: 20px; border: 2px solid var(--groen); background: var(--creme); }
.optie[aria-checked="true"] { background: var(--groen); color: var(--licht); }
.optie[aria-checked="true"] .vak { background: var(--oker); border-color: var(--oker); }

.veld { display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--stil); }
textarea, input[type="text"], input[type="date"], input[type="number"], select {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--invoer); background: var(--papier); font-size: 17px; color: var(--inkt);
}
input[type="date"], select { -webkit-appearance: none; appearance: none; }
select { padding-right: 40px; background: var(--papier) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0h12L6 8z' fill='%2322402F'/%3E%3C/svg%3E") no-repeat right 14px center; }
textarea:focus, input:focus, select:focus { outline: 2px solid var(--groen); outline-offset: 0; border-color: var(--groen); }
textarea { min-height: 80px; line-height: 1.45; resize: vertical; }
textarea.groot { min-height: 160px; }
.opgeslagen { font-size: 13px; color: var(--stil); min-height: 18px; }

/* Groep of één op één, status, soort: gesegmenteerde knoppen */
.verdeel { display: flex; flex-direction: column; gap: 16px; }
.verdeel .rij { display: flex; flex-direction: column; gap: 8px; }
.verdeel .naam { font-size: 16px; color: var(--inkt); }
.segment { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--groen); background: var(--papier); }
.segment button { min-height: 44px; font-size: 16px; color: var(--groen); padding: 0 8px; }
.segment button + button { border-left: 2px solid var(--groen); }
.segment button[aria-checked="true"] { background: var(--groen); color: var(--licht); font-weight: 700; }

/* Schakelaar */
.schakel { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; background: var(--papier); border: 1px solid var(--zand); }
.schakel span { font-size: 16px; color: var(--inkt); line-height: 1.4; }
.switch { flex: none; width: 52px; height: 30px; border: 2px solid var(--groen); background: var(--zand); position: relative; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: var(--groen); transition: left .15s; }
.switch[aria-checked="true"] { background: var(--groen); }
.switch[aria-checked="true"]::after { left: 25px; background: var(--oker); }

.feiten { display: flex; flex-direction: column; gap: 10px; padding-left: 20px; list-style: square; }
.feiten li { font-size: 16px; line-height: 1.45; }
.feiten li::marker { color: var(--terra); }
.regels { display: flex; flex-direction: column; gap: 14px; padding-left: 24px; }
.regels li { font-size: 17px; line-height: 1.45; color: var(--inkt); }
.regels li::marker { color: var(--roest); font-weight: 700; }

.vinkje { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--inkt); line-height: 1.45; }
.vinkje input { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: 1px; flex: none; border: 2px solid var(--groen); background: var(--papier); cursor: pointer; }
.vinkje input:checked { background: var(--oker); box-shadow: inset 0 0 0 3px var(--papier); }

/* Kaarten */
.sectie { display: flex; flex-direction: column; gap: 12px; }
.sectiekop { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--terra); margin-top: 6px; }
.kaart { background: var(--papier); border: 1px solid var(--zand); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.kaart.tint { background: var(--zand); border-color: var(--zand); }
.kaart.tint .klein, .kaart.tint .veld { color: #574A3C; }

/* Staafjes: spoor = alle keuzes, vulling = het deel; de grootste (als die alleen staat) in terracotta */
.staven { display: flex; flex-direction: column; gap: 10px; }
.staaf .label { font-size: 15px; color: var(--inkt); margin-bottom: 4px; line-height: 1.35; }
.staaf .baan { display: flex; align-items: center; gap: 10px; }
.staaf .spoorlijn { flex: 1; height: 12px; background: var(--zandlicht); }
.staaf .vulling { height: 100%; background: var(--groen); }
.staaf.top .vulling { background: var(--terra); }
.staaf .waarde { min-width: 18px; text-align: right; font-size: 15px; font-weight: 700; color: var(--groen); font-variant-numeric: tabular-nums; }

/* Deel van het geheel: groep tegenover één op één */
.meterrij { display: flex; flex-direction: column; gap: 6px; }
.meterrij .boven { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--inkt); line-height: 1.35; }
.meterrij .boven b { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 400; color: var(--stil); }

details { border-top: 1px solid var(--zand); padding-top: 12px; }
summary { font-size: 15px; font-weight: 700; color: var(--terra); cursor: pointer; min-height: 30px; }
details.minderheid { border-top: 0; background: var(--zand); padding: 12px 14px; }
details.minderheid summary { color: var(--roest); }
details.minderheid .wie { color: #574A3C; }
.citaten { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.citaat { font-size: 15px; line-height: 1.5; color: var(--inkt); white-space: pre-line; }
.citaat .wie { color: var(--stil); font-size: 13px; }
.optiekop { font-size: 13px; font-weight: 700; color: var(--groen); margin-top: 6px; }

.statusregel { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--stil); line-height: 1.4; }
.statusletter { flex: none; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; background: var(--oker); color: var(--inkt); font-size: 14px; font-weight: 700; }
.status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.status .segment { grid-template-columns: repeat(3, 48px); }
.status .segment button { min-height: 40px; }
.status .uitleg { font-size: 14px; color: var(--stil); line-height: 1.4; }
.statusvorm { display: flex; flex-direction: column; gap: 10px; }

.regel { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 16px; color: var(--inkt); padding: 10px 0; border-bottom: 1px solid var(--zand); line-height: 1.4; }
.regel:last-child { border-bottom: 0; }
.regel .aantal { color: var(--stil); white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 15px; }
.laat { color: var(--terra); font-weight: 700; }

/* Peiling */
.stelling { display: flex; flex-direction: column; gap: 12px; }
.schaal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.schaal button { min-height: 52px; background: var(--zand); font-size: 18px; font-weight: 700; color: var(--groen); }
.schaal button:hover { background: #D9C6A5; }
.schaal button[aria-checked="true"] { background: var(--groen); color: var(--licht); }
.ankers { display: flex; justify-content: space-between; font-size: 13px; color: var(--stil); margin-top: -4px; }
.wn { align-self: flex-start; min-height: 40px; padding: 0 14px; background: var(--zand); font-size: 15px; color: var(--groen); }
.wn[aria-checked="true"] { background: var(--groen); color: var(--licht); font-weight: 700; }

/* Teamgemiddelde: de eerste stelling groot op terracotta, de rest op zand */
.tegel { border: 0; background: var(--zand); }
.tegel .rij { display: flex; align-items: baseline; gap: 8px 10px; flex-wrap: wrap; }
.tegel .waarde { font-size: 44px; font-weight: 700; color: var(--groen); line-height: 1; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.tegel .van { font-size: 15px; color: #574A3C; }
.tegel .delta { font-size: 14px; color: #574A3C; }
.tegel .bijschrift { color: #574A3C; }
.tegel.groot { background: var(--terra); }
.tegel.groot h3, .tegel.groot .van, .tegel.groot .delta, .tegel.groot .bijschrift { color: var(--licht); }
.tegel.groot .waarde { font-size: 86px; color: var(--licht); line-height: .9; letter-spacing: -3px; }
.tegel.groot :focus-visible { outline-color: var(--licht); }
.spark { width: 100%; height: auto; display: block; }
.spark text { font-family: var(--body); font-size: 11px; fill: #574A3C; }
.spark .as { stroke: #C9B594; stroke-width: 1; }
.spark .lijn { fill: none; stroke: var(--groen); stroke-width: 2.5; stroke-linejoin: miter; }
.spark .punt { fill: var(--groen); }
.spark .punt.laatst { fill: var(--terra); }
.tegel.groot .spark text { fill: var(--licht); }
.tegel.groot .spark .as { stroke: #C9765A; }
.tegel.groot .spark .lijn { stroke: var(--licht); }
.tegel.groot .spark .punt { fill: var(--licht); }
.tegel.groot .spark .punt.laatst { fill: var(--oker); }
.spark .hit { cursor: pointer; }
.bijschrift { font-size: 14px; color: var(--stil); min-height: 20px; line-height: 1.4; }

/* Werkgroep: kerncijfer en mijlpalen */
.kerncijfer { display: flex; align-items: center; gap: 14px; }
.kerncijfer .waarde { font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -1px; color: var(--terra); font-variant-numeric: tabular-nums; }
.kerncijfer .bij { font-size: 15px; line-height: 1.4; color: var(--inkt); }
.mijlpaal { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 10px 0; font-size: 16px; line-height: 1.35; border-bottom: 1px solid var(--zand); }
.mijlpaal:last-child { border-bottom: 0; }
.mijlpaal .dag { font-weight: 700; color: var(--terra); font-variant-numeric: tabular-nums; }

/* Beheer */
.persoon { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--zand); }
.persoon:last-child { border-bottom: 0; }
.persoon .boven { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.persoon .naam { font-size: 17px; font-weight: 700; color: var(--groen); }
.persoon .info { font-size: 14px; color: var(--stil); }
.knoppenrij { display: flex; column-gap: 18px; row-gap: 0; flex-wrap: wrap; }
.knoppenrij .tekstknop { min-height: 36px; font-size: 14px; }
.linkvak { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--zand); }
.linkvak .klein { color: #574A3C; }
.linkvak code { font-family: var(--body); font-size: 14px; color: var(--groen); word-break: break-all; line-height: 1.45; }
.bevestig { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 2px solid var(--terra); background: var(--papier); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 36px; padding: 0 12px; background: var(--zand); font-size: 14px; color: var(--groen); }
.chip[aria-pressed="true"] { background: var(--groen); color: var(--licht); font-weight: 700; }
.thema-kop { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 15px; color: var(--inkt); }
.antwoordblok { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--zand); }
.antwoordblok:last-child { border-bottom: 0; }
.rij-invoer { display: flex; gap: 8px; }
.rij-invoer input { flex: 1; }
.rij-invoer .knop { min-height: 50px; }
.groepje { font-size: 16px; color: var(--inkt); padding: 8px 0; border-bottom: 1px solid var(--zand); }
.groepje:last-child { border-bottom: 0; }

/* Onderste navigatie: groene balk, actief tabblad op papier */
nav.tabs { position: sticky; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--groen); z-index: 2; }
nav.tabs a { display: flex; align-items: center; justify-content: center; min-height: 58px; font-size: 14px; color: var(--zand); text-decoration: none; }
nav.tabs a[aria-current="page"] { background: var(--creme); color: var(--groen); font-weight: 700; }
nav.tabs a[aria-current="page"]:focus-visible { outline-color: var(--terra); outline-offset: -5px; }

@media (prefers-reduced-motion: reduce) { .switch::after { transition: none; } }

/* ---------- Werkgroepkant: kop in terracotta ---------- */
.werkgroepkant .wg-kop { background: var(--terra); }
.werkgroepkant .wg-kop .merk::before { background: var(--groen); box-shadow: 15px 0 0 var(--oker), 30px 0 0 var(--creme); }
.werkgroepkant .wg-kop .meer a { color: var(--licht); }
.wg-leden { font-size: 16px; font-weight: 700; color: var(--licht); margin-top: 6px; min-height: 20px; }

nav.tabs.vijf { grid-template-columns: repeat(5, 1fr); }
nav.tabs.vijf a { font-size: 13px; }

a.tekstknop { display: inline-flex; align-items: center; text-decoration: none; }
.tekstknop.inline { min-height: 0; display: inline; font-size: 13px; padding: 0; }
.segment.drie { grid-template-columns: repeat(3, 1fr); }
.segment.drie button { min-height: 40px; font-size: 15px; }

.kaart.klaar { opacity: .65; }
.kaart.klaar h3 { text-decoration: line-through; text-decoration-thickness: 1px; }
.notitie { display: flex; flex-direction: column; gap: 6px; }
div.notitie + div.notitie { border-top: 1px solid var(--zand); padding-top: 10px; margin-top: 10px; }
.kaart.notitie + .kaart.notitie { border-top: 1px solid var(--zand); padding-top: 16px; margin-top: 0; }
.wie { font-size: 13px; color: var(--stil); }
.regel .klein { font-size: 13px; }

.weeknav { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; text-align: center; font-size: 16px; color: var(--groen); font-weight: 700; }
.weeknav .klein { font-weight: 400; }
details .citaten + textarea, details .notitie + textarea, details > textarea { margin-top: 12px; }
details > .knop { margin-top: 10px; }
