/* Kantoormaatjes — stijl C (Terracotta) */
:root {
  --zand: #F7F0E6; --zand-2: #EEE6DA; --zand-3: #ECE5D3; --rand: #E6D8C4;
  --roest: #8E3426; --roest-donker: #6B261B; --roest-licht: #A9563C;
  --abrikoos: #F2C29B; --perzik: #F7DEC6; --roze: #F0D5C6; --roze-2: #F6E3D8;
  --tekst: #3B2A22; --tekst-2: #5A4637; --tekst-3: #76604F; --wit: #FFFFFF;
  --kop: 'Cormorant Garamond', Georgia, serif; --body: 'Work Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--zand); color: var(--tekst); font-family: var(--body); font-size: 16px; line-height: 1.45; }
a { color: var(--roest); } a:hover { color: var(--roest-donker); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, .getal, .boog { font-variant-numeric: lining-nums; }
h1, h2, h3 { font-family: var(--kop); font-weight: 600; color: var(--roest); margin: 0; line-height: 1.08; }
h1 { font-size: clamp(36px, 6vw, 52px); }
h2 { font-size: clamp(26px, 3.5vw, 34px); }
.hand { font-family: var(--kop); font-style: italic; color: var(--roest-licht); font-size: 22px; margin: 0; }
.klein { font-size: 13px; color: var(--tekst-3); }
.kopje { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.verborgen { display: none !important; }

/* Bovenbalk */
.balk { border-bottom: 1px solid var(--rand); background: var(--zand); position: sticky; top: 0; z-index: 5; }
.balk-in { max-width: 1240px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.logo { font-family: var(--kop); font-weight: 600; font-size: 30px; color: var(--roest); text-decoration: none; }
.menu { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; }
.menu a { text-decoration: none; padding: 10px 18px; border-radius: 999px; color: var(--tekst); }
.menu a.aan { background: var(--roze); color: var(--roest); font-weight: 600; }
.knop { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; font-weight: 600; background: var(--roest); color: var(--zand); border: 0; border-radius: 999px; padding: 12px 20px; min-height: 44px; }
.knop:hover { background: var(--roest-donker); color: var(--zand); }
.knop.licht { background: var(--wit); color: var(--roest); border: 1px solid var(--roest); }
.knop.licht:hover { background: var(--roze-2); color: var(--roest); }
.knop.klein-k { padding: 8px 14px; min-height: 38px; font-size: 14px; }

main { max-width: 1240px; margin: 0 auto; padding: 32px 24px 96px; display: flex; flex-direction: column; gap: 28px; }

/* Blokken */
.blok { background: var(--wit); border: 1px solid var(--rand); border-radius: 20px; }
.blok-roze { background: var(--roze); border-radius: 28px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.blok-salie { background: var(--zand-3); border-radius: 28px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.rij2 { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.rij2 > .hoofd { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.rij2 > .zij { flex: 1 1 300px; min-width: 0; }

/* Boogje (avatar) */
.boog { flex: 0 0 auto; width: 44px; height: 54px; border-radius: 999px 999px 14px 14px; color: var(--zand); display: flex; align-items: center; justify-content: center; font-family: var(--kop); font-weight: 600; font-size: 20px; }
.boog.groot { width: 84px; height: 104px; border-radius: 999px 999px 24px 24px; font-size: 34px; }
.boog.mini { width: 30px; height: 38px; border-radius: 999px 999px 10px 10px; font-size: 14px; }

/* Wacht op jou */
.wacht-item { background: var(--wit); border-radius: 20px; padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.wacht-item .tekst { flex: 1 1 260px; min-width: 0; }
.wacht-item .titel { font-weight: 600; font-size: 17px; }
.wacht-item.alarm { background: var(--roest); color: var(--zand); }
.wacht-item.alarm .klein { color: var(--roze); }
.wacht-item.alarm .knop { background: var(--zand); color: var(--roest); }

/* Cijfers */
.cijfers { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.cijfer { border-radius: 20px; padding: 18px 20px; }
.cijfer .getal { font-family: var(--kop); font-weight: 600; font-size: 42px; color: var(--roest); line-height: 1.1; }

/* Maatjes */
.maatjes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.maatje { text-decoration: none; color: var(--tekst); background: var(--wit); border: 1px solid var(--rand); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.maatje:hover { border-color: var(--roest-licht); color: var(--tekst); }
.maatje .kop { display: flex; align-items: center; gap: 12px; }
.maatje .naam { font-weight: 800; font-size: 17px; }
.label { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.s-wacht { background: var(--abrikoos); color: var(--tekst); }
.s-bezig { background: var(--roze); color: var(--roest); }
.s-klaar { background: var(--zand-3); color: var(--tekst); }
.s-nieuw, .s-gepland { background: var(--zand-2); color: var(--tekst-2); }
.s-stil, .s-mislukt { background: var(--roest); color: var(--zand); }

/* Logboek */
.log { display: flex; flex-direction: column; gap: 12px; }
.log-r { display: flex; gap: 12px; }
.stip { width: 10px; height: 10px; border-radius: 999px; margin-top: 6px; flex: 0 0 auto; background: var(--tekst-3); }
.stip.wacht { background: #C9875F; } .stip.bezig, .stip.gestart { background: var(--roest-licht); } .stip.stil, .stip.mislukt { background: var(--roest); } .stip.klaar { background: var(--tekst); }
.tijdlijn .regel { border-left: 2px solid var(--roest); padding-left: 14px; }

/* Planning */
.raster { overflow-x: auto; }
.raster-in { min-width: 860px; }
.raster-r { display: grid; grid-template-columns: 210px repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--zand-2); }
.raster-r > div { padding: 12px 6px; display: flex; align-items: center; justify-content: center; }
.raster-r > div:first-child { justify-content: flex-start; padding-left: 16px; gap: 10px; font-weight: 600; }
.raster-kop > div { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.raster-kop .vandaag { background: var(--roest); color: var(--zand); }
.raster-r .vd { background: #FBF3EA; }
.chip { font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.chip.ok { background: var(--zand-3); } .chip.wacht { background: var(--abrikoos); } .chip.stil, .chip.mislukt { background: var(--roest); color: var(--zand); }
.chip.gepland { border: 1px dashed #B9A88E; color: var(--tekst-2); background: var(--wit); } .chip.bezig { background: var(--roze); color: var(--roest); }

/* Formulieren */
.veld { display: flex; flex-direction: column; gap: 6px; }
.veld label { font-weight: 600; }
.veld input, .veld select { font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--rand); background: var(--wit); color: var(--tekst); min-height: 44px; }
.dagen { display: flex; flex-wrap: wrap; gap: 6px; }
.dagen label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--rand); background: var(--wit); font-weight: 400; }
.kleurtje { width: 44px; height: 44px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border: 3px solid transparent; }
.kleurtje input { appearance: none; -webkit-appearance: none; margin: 0; width: 100%; height: 100%; border-radius: 999px; cursor: pointer; background: transparent; border: 0; }
.kleurtje:has(input:checked) { border-color: var(--tekst); box-shadow: inset 0 0 0 3px var(--zand); }
.kleurtje input:focus-visible { outline: 2px solid var(--tekst); outline-offset: 4px; }
.melding { padding: 12px 16px; border-radius: 14px; background: var(--roze); color: var(--roest-donker); }
.sleutel { font-family: ui-monospace, Consolas, monospace; font-size: 14px; word-break: break-all; background: var(--zand-2); padding: 12px; border-radius: 12px; }
.inlog { max-width: 440px; margin: 8vh auto; padding: 0 20px; display: flex; flex-direction: column; gap: 16px; }

/* Telefoon: onderbalk */
.onderbalk { display: none; }
@media (max-width: 760px) {
  .menu, .balk-in > .knop { display: none; }
  .logo { font-size: 26px; }
  .wacht-item { gap: 10px 12px; padding: 12px; }
  .wacht-item .boog { width: 36px; height: 44px; font-size: 16px; }
  .wacht-item .tekst { flex: 1 1 160px; }
  .wacht-item .titel { font-size: 16px; }
  .wacht-item .knop { flex: 1 1 auto; }
  .balk-in { padding: 12px 16px; }
  main { padding: 20px 16px 110px; gap: 22px; }
  .onderbalk { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; background: var(--wit); border-top: 1px solid var(--rand); padding: 6px 4px calc(10px + env(safe-area-inset-bottom)); z-index: 10; }
  .onderbalk a { text-align: center; text-decoration: none; color: var(--tekst); font-size: 13px; padding: 10px 0; }
  .onderbalk a.aan { color: var(--roest); font-weight: 800; }
  .blok-roze, .blok-salie { padding: 16px; border-radius: 22px; }
}
