/* Let’s Make Some Memories: licht, fris, met limoengroen als markeerstift. Lettertype Space Grotesk (koppen vet, tekst normaal), cijfers in Geist Mono.
   Vormregel: vlakken 20px, kleine vlakken 12px, knoppen, labels en navigatie volledig rond. */
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
}

:root {
  --bg: #fafbf8; --vlak: #ffffff; --vlak-2: #f1f3ee;
  --lijn: rgba(12,13,15,0.07); --lijn-sterk: rgba(12,13,15,0.14);
  --tekst: #0d0f10; --zacht: #4c535a; --vaag: #8a9096;
  --accent: #c8f73c; --accent-inkt: #0d0f10; --accent-zacht: rgba(200,247,60,0.42); --accent-tekst: #0d0f10;
  --rand-accent: #b4e62a; --getal: #0d0f10;
  --gloed-1: rgba(200,247,60,0.45); --gloed-2: rgba(120,200,255,0.30);
  --fout: #d0341f; --fout-zacht: rgba(208,52,31,0.10);
  --nav-vlak: rgba(255,255,255,0.84); --schaduw: 0 10px 34px rgba(30,40,20,0.10);
  --r-vlak: 20px; --r-klein: 12px;
  --sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --zacht-in: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans); background: var(--bg); color: var(--tekst);
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
  min-height: 100dvh; -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
svg { flex: none; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--accent-tekst); outline-offset: 2px; }

/* ---- Balk en navigatie ---- */
.balk {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1180px; margin: 0 auto; height: calc(64px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 20px 0;
}
.merk { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.merk i { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.rond {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  background: transparent; border: 1px solid var(--lijn-sterk); color: var(--zacht);
  transition: color 0.2s, border-color 0.2s, transform 0.2s var(--zacht-in);
}
.rond:hover { color: var(--tekst); border-color: var(--zacht); }
.rond:active { transform: scale(0.94); }

/* Op een telefoon zweeft de navigatie onderin, binnen duimbereik. Het gekleurde vlakje schuift mee naar het gekozen tabblad. */
.nav {
  position: fixed; z-index: 5; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(calc(100% - 24px), 420px); padding: 6px; border-radius: 999px;
  background: var(--nav-vlak); border: 1px solid var(--lijn-sterk); box-shadow: var(--schaduw);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  view-transition-name: navigatie;
}
.nav::before {
  content: ""; position: absolute; top: 6px; bottom: 6px; left: 0; width: var(--w, 0);
  border-radius: 999px; background: var(--accent);
  transform: translateX(var(--x, 0));
}
.nav.is-klaar::before { transition: transform 0.45s var(--zacht-in), width 0.45s var(--zacht-in); }
.nav a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  height: 52px; border-radius: 999px; text-decoration: none; color: var(--zacht);
  font-size: 11px; font-weight: 500; letter-spacing: -0.005em;
  transition: color 0.25s, transform 0.2s var(--zacht-in);
}
.nav a:active { transform: scale(0.93); }
.nav a.is-aan { color: var(--accent-inkt); }
.nav .tel {
  position: absolute; top: 5px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; font-family: var(--mono); font-size: 10px; font-weight: 600; line-height: 1;
  background: var(--tekst); color: var(--bg);
}
.nav .tel[hidden] { display: none; }
@media (prefers-reduced-transparency: reduce) { .nav { background: var(--vlak); -webkit-backdrop-filter: none; backdrop-filter: none; } }

.raam { max-width: 1180px; margin: 0 auto; padding: 8px 20px calc(124px + env(safe-area-inset-bottom)); }
.titel { font-size: clamp(34px, 8vw, 48px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; margin: 16px 0 24px; }
.alleen-breed { display: none; }
.smal { max-width: 720px; }

/* ---- Vandaag: getal links, weekritme rechts ---- */
.boven { display: grid; gap: 28px; padding: 12px 0 8px; }
.kop { align-self: end; }
.datum { color: var(--zacht); display: flex; gap: 12px; align-items: baseline; }
.datum::first-letter { text-transform: uppercase; }
.datum span { font-family: var(--mono); font-size: 13px; color: var(--vaag); }
.kop h1 { display: flex; align-items: flex-end; gap: 18px; margin: 14px 0 20px; font-weight: 600; }
.getal { font-size: clamp(104px, 21vw, 200px); line-height: 0.8; letter-spacing: -0.06em; color: var(--getal); font-variant-numeric: tabular-nums; }
.zin { font-size: clamp(22px, 3.4vw, 30px); line-height: 1.1; letter-spacing: -0.03em; max-width: 9ch; padding-bottom: 4px; }
.zin.alleen { font-size: clamp(40px, 7vw, 72px); max-width: 12ch; letter-spacing: -0.045em; line-height: 1; }
.hierna { color: var(--zacht); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.hierna strong { color: var(--tekst); font-weight: 500; }
.hierna .mono { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--accent-zacht); color: var(--accent-tekst); }

.ritme { background: var(--vlak); border: 1px solid var(--lijn); border-radius: var(--r-vlak); padding: 16px 14px 14px; }
.rij { display: grid; grid-template-columns: minmax(112px, 2.4fr) repeat(7, minmax(0, 1fr)); align-items: stretch; }
.rij .naam { font-size: 13px; padding: 9px 8px 9px 6px; color: var(--tekst); line-height: 1.25; align-self: center; min-width: 0; }
.rij-kop .naam { color: var(--vaag); font-size: 12px; }
.dag { text-align: center; font-family: var(--mono); font-size: 12px; color: var(--vaag); padding: 6px 0 10px; }
.dag.is-vandaag { color: var(--accent-tekst); }
.cel { display: grid; place-items: center; padding: 4px 2px; min-height: 40px; }
.cel.is-vandaag { background: var(--accent-zacht); }
.rij:nth-child(2) .cel.is-vandaag { border-radius: 10px 10px 0 0; }
.rij:nth-last-child(2) .cel.is-vandaag { border-radius: 0 0 10px 10px; }
.run { display: grid; place-items: center; width: 12px; height: 12px; border-radius: 999px; border: 1.5px solid var(--lijn-sterk); }
.run b { display: none; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: -0.02em; }
.run svg { width: 9px; height: 9px; stroke-width: 3; }
.run.is-voorbij { border-color: var(--lijn); background: var(--lijn); }
.run.is-gedraaid { border-color: transparent; background: var(--tekst); color: var(--bg); }
.run.is-hierna { border-color: transparent; background: var(--accent); color: var(--accent-inkt); }
.legenda { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; padding: 12px 6px 0; border-top: 1px solid var(--lijn); font-size: 12px; color: var(--vaag); }
.legenda span { display: inline-flex; align-items: center; gap: 7px; }
.stip { width: 9px; height: 9px; border-radius: 999px; border: 1.5px solid var(--lijn-sterk); }
.stip.is-gedraaid { background: var(--tekst); border-color: transparent; }
.stip.is-hierna { background: var(--accent); border-color: transparent; }

/* ---- Blokken ---- */
.blok { margin-top: 48px; }
.blok-eerst { margin-top: 0; }
.blok h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 16px; }
.leeg { color: var(--zacht); padding: 20px 0; max-width: 46ch; }
.voetnoot { color: var(--vaag); font-size: 13px; margin-top: 14px; max-width: 62ch; }
.fout { color: var(--fout); }

.label { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--vlak-2); color: var(--zacht); white-space: nowrap; }
.label-accent { background: var(--accent-zacht); color: var(--accent-tekst); }

.knop {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: 14px; text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--zacht-in);
}
.knop:active { transform: scale(0.97); }
.knop:disabled { opacity: 0.45; cursor: default; }
.knop-vol { background: var(--accent); color: var(--accent-inkt); }
.knop-vol:hover { filter: brightness(1.06); }
.knop-rand { border-color: var(--lijn-sterk); color: var(--tekst); background: transparent; }
.knop-rand:hover { border-color: var(--zacht); }
.knop-kaal { padding: 0 4px; color: var(--zacht); background: transparent; }
.knop-kaal:hover { color: var(--tekst); }
.knop-kaal svg { transition: transform 0.25s var(--zacht-in); }
.knop-kaal.is-open svg { transform: rotate(180deg); }

/* ---- Het ochtendbericht, groot ---- */
.groot { margin-top: 32px; background: var(--vlak); border: 1px solid var(--lijn); border-radius: var(--r-vlak); padding: 22px 20px 18px; }
.groot.is-dringend { border-color: var(--rand-accent); }
.groot.is-dringend .label { background: var(--accent); color: var(--accent-inkt); }
.groot header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.groot time { font-size: 12px; color: var(--vaag); }
.groot h2 { font-size: clamp(24px, 4.6vw, 34px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.12; max-width: 22ch; }
.alineas { display: grid; gap: 20px 40px; margin-top: 20px; }
.alinea h4 { font-size: 12px; font-weight: 500; color: var(--vaag); margin-bottom: 6px; }
.alinea p, .alinea li { color: var(--zacht); max-width: 60ch; }
.alinea.is-eerst p { color: var(--tekst); font-size: 17px; line-height: 1.45; }
.alinea ol { list-style: none; counter-reset: nr; display: grid; gap: 8px; }
.alinea li { counter-increment: nr; display: grid; grid-template-columns: 26px 1fr; color: var(--tekst); }
.alinea li::before { content: counter(nr); font-family: var(--mono); font-size: 13px; color: var(--accent-tekst); padding-top: 1px; }
.groot footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }

/* ---- Berichten: vlakken in één rij zijn even hoog, knoppen staan altijd onderaan ---- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin: 0 -20px 16px; padding-left: 20px; padding-right: 20px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--lijn-sterk); background: transparent; color: var(--zacht); font-size: 14px; white-space: nowrap; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.chip span { font-family: var(--mono); font-size: 12px; color: var(--vaag); }
.chip:hover { color: var(--tekst); }
.chip.is-aan { background: var(--tekst); border-color: var(--tekst); color: var(--bg); }
.chip.is-aan span { color: var(--bg); opacity: 0.6; }

.berichten { display: grid; gap: 12px; align-items: stretch; }
.bericht { display: flex; flex-direction: column; background: var(--vlak); border: 1px solid var(--lijn); border-radius: var(--r-vlak); padding: 18px 20px 16px; transition: border-color 0.3s; }
.bericht header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.bericht time { font-size: 12px; color: var(--vaag); }
.bericht h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.bericht .tekst { margin-top: 8px; color: var(--zacht); white-space: pre-wrap; overflow-wrap: anywhere; max-width: 72ch; }
.bericht .tekst.is-ingeklapt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.bericht footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; }
.duw { flex: 1; }
.bericht.is-dringend { border-color: var(--rand-accent); }
.bericht.is-dringend .label { background: var(--accent); color: var(--accent-inkt); }
.bericht.is-klaar { background: transparent; }
.bericht.is-klaar h3 { color: var(--zacht); font-weight: 500; }
.bericht.is-klaar .tekst { color: var(--vaag); }
.bericht.is-gekozen, .groot.is-gekozen { border-color: var(--rand-accent); }

/* ---- Automatiseringen ---- */
.taken { display: grid; gap: 2px; border-radius: var(--r-vlak); overflow: hidden; }
.taak { display: grid; gap: 14px; padding: 18px 20px; background: var(--vlak); }
.taak-tijd { display: flex; align-items: baseline; gap: 10px; }
.taak-tijd .mono { font-size: 26px; font-weight: 500; letter-spacing: -0.04em; }
.taak-tijd small { color: var(--vaag); font-size: 13px; }
.taak-tekst h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.taak-tekst p { color: var(--zacht); margin-top: 2px; max-width: 52ch; }
.taak-stand { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.taak-stand dt { font-size: 12px; color: var(--vaag); margin-bottom: 3px; }
.taak-stand dd { font-size: 13px; }

/* ---- Instellingen ---- */
.vlak { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; background: var(--vlak); border: 1px solid var(--lijn); border-radius: var(--r-vlak); }
.vlak p { color: var(--zacht); max-width: 46ch; }
.keuze { display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: 999px; background: var(--vlak-2); }
.keuze button { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: var(--zacht); font-size: 14px; font-weight: 500; transition: background 0.2s, color 0.2s; }
.keuze button.is-aan { background: var(--tekst); color: var(--bg); }
.apparaten { margin-top: 12px; display: grid; gap: 2px; border-radius: var(--r-klein); overflow: hidden; }
.apparaten li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: var(--vlak); }
.apparaten small { display: block; color: var(--vaag); font-size: 13px; }

/* ---- Laden ---- */
.skelet { background: var(--vlak); border-radius: var(--r-klein); }
.skelet-regel { width: 180px; height: 18px; }
.skelet-groot { width: min(320px, 80%); height: 150px; margin-top: 18px; border-radius: var(--r-vlak); }
.skelet-vlak { height: 240px; border-radius: var(--r-vlak); }
.skelet-los { margin-top: 32px; }

/* ---- Toasts ---- */
#toasts { position: fixed; left: 0; right: 0; bottom: calc(92px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; z-index: 10; }
.toast { background: var(--tekst); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; max-width: 100%; }
.toast-error { background: var(--fout); color: #14100f; }

/* ---- Tablet en breder ---- */
@media (min-width: 720px) {
  .balk, .raam { padding-left: 32px; padding-right: 32px; }
  .chips { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .ritme { padding: 20px 20px 16px; }
  .rij { grid-template-columns: minmax(150px, 1.6fr) repeat(7, minmax(0, 1fr)); }
  .rij .naam { font-size: 14px; }
  .run { width: auto; height: 26px; min-width: 52px; padding: 0 8px; }
  .run b { display: block; }
  .run svg { width: 13px; height: 13px; stroke-width: 2.5; }
  .run.is-voorbij { background: transparent; color: var(--vaag); }
  .run.is-gepland { color: var(--zacht); }
  .berichten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bericht:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .groot { padding: 28px 28px 22px; }
  .alineas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alinea.is-eerst { grid-column: 1 / -1; }
  .taak { grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 20px 24px; }
  .taak-tijd { flex-direction: column; gap: 0; }
  .taak-stand { grid-template-columns: 136px 112px 124px; gap: 20px; }
}

/* ---- Breed scherm: de navigatie verhuist naar de balk ---- */
@media (min-width: 900px) {
  .balk { display: grid; grid-template-columns: 1fr auto 1fr; }
  .balk .rond { justify-self: end; }
  .nav {
    position: relative; left: auto; bottom: auto; transform: none;
    display: inline-flex; gap: 2px; width: auto; padding: 4px;
    background: var(--vlak); box-shadow: 0 1px 2px rgba(0,0,0,0.04); -webkit-backdrop-filter: none; backdrop-filter: none; border-color: var(--lijn);
  }
  .nav::before { top: 4px; bottom: 4px; }
  .nav a { flex-direction: row; gap: 8px; height: 38px; padding: 0 16px; font-size: 14px; line-height: 1; }
  .nav a svg { width: 16px; height: 16px; }
  .nav .tel { position: static; margin: 0; }
  .nav a.is-aan .tel { background: var(--accent-inkt); color: var(--accent); }
  .raam { padding-bottom: 72px; }
  #toasts { bottom: 24px; }
}
@media (min-width: 1040px) {
  .alleen-breed { display: block; }
  .boven { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: end; padding: 28px 0 8px; }
}

/* ---- Beweging: bij het openen, bij het wisselen van tabblad, en de eerstvolgende run ademt zacht ---- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes in-beeld { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes adem { 0%, 100% { box-shadow: 0 0 0 0 var(--accent-zacht); } 50% { box-shadow: 0 0 0 6px var(--accent-zacht); } }
  .is-nieuw > * { animation: in-beeld 0.7s var(--zacht-in) both; }
  .is-nieuw > :nth-child(2) { animation-delay: 0.08s; }
  .is-nieuw > :nth-child(3) { animation-delay: 0.16s; }
  .is-nieuw > :nth-child(4) { animation-delay: 0.24s; }
  .run.is-hierna { animation: adem 2.8s ease-in-out infinite; }
  ::view-transition-old(root) { animation: 0.16s ease-out both verdwijn; }
  ::view-transition-new(root) { animation: 0.36s var(--zacht-in) both verschijn; }
  @keyframes verdwijn { to { opacity: 0; } }
  @keyframes verschijn { from { opacity: 0; transform: translateY(10px); } }
}

/* ---- Het ochtendbericht in vlakken ---- */
.ochtend { margin-top: 32px; display: grid; gap: 14px; }
.ochtend-kop { display: grid; gap: 10px; padding: 0 2px 4px; }
.ochtend-kop > div { display: flex; align-items: center; justify-content: space-between; }
.ochtend-kop time { font-size: 12px; color: var(--vaag); }
.ochtend-kop h2 { font-size: clamp(26px, 5vw, 38px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.08; max-width: 20ch; }
.ochtend-rij { display: grid; gap: 12px; }
.tegel { background: var(--vlak); border: 1px solid var(--lijn); border-radius: var(--r-vlak); padding: 18px 20px; display: grid; gap: 8px; align-content: start; }
.tegel-kop { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--vaag); }
.tegel .klein { font-size: 13px; color: var(--zacht); }
.temp { display: flex; align-items: baseline; gap: 12px; }
.temp b { font-size: clamp(52px, 12vw, 72px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.temp span { color: var(--zacht); }
.tegel-weer.is-koud { background: var(--accent); border-color: transparent; color: var(--accent-inkt); }
.tegel-weer.is-koud .tegel-kop, .tegel-weer.is-koud .temp span, .tegel-weer.is-koud .klein { color: var(--accent-inkt); opacity: 0.72; }
.actie { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 12px; border-radius: 999px; background: var(--accent-zacht); color: var(--accent-tekst); font-weight: 500; font-size: 14px; justify-self: start; }
.tegel-weer.is-koud .actie { background: var(--accent-inkt); color: var(--accent); }
.actie.is-let { background: var(--fout-zacht); color: var(--fout); }
.tegel-agenda ul { display: grid; gap: 2px; margin-top: 4px; }
.tegel-agenda li { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--lijn); }
.tegel-agenda li:first-child { border-top: 0; }
.tegel-agenda li .mono { color: var(--zacht); font-size: 13px; padding-top: 1px; }
.tegel-agenda li.is-eerst .mono { color: var(--accent-tekst); }
.tegel-agenda.is-leeg p { color: var(--zacht); max-width: 34ch; }

.ochtend-deel h3 { display: flex; align-items: baseline; gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: -0.015em; margin: 10px 2px 10px; }
.ochtend-deel h3 .mono { font-size: 12px; color: var(--vaag); font-weight: 400; }
.top { display: grid; gap: 10px; }
.topkaart { position: relative; display: grid; align-content: start; gap: 6px; padding: 18px 20px 16px; border-radius: var(--r-vlak); background: var(--vlak); border: 1px solid var(--lijn); text-decoration: none; transition: border-color 0.2s, transform 0.2s var(--zacht-in); }
a.topkaart:hover { border-color: var(--lijn-sterk); }
a.topkaart:active { transform: scale(0.985); }
.topkaart .nr { font-family: var(--mono); font-size: 34px; font-weight: 500; line-height: 1; letter-spacing: -0.05em; color: var(--accent-tekst); margin-bottom: 6px; }
.topkaart small { font-size: 12px; color: var(--vaag); }
.topkaart strong { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.topkaart .onder { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.prio { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--vlak-2); color: var(--zacht); }
.prio.is-urgent { background: var(--tekst); color: var(--bg); }
.wanneer { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-family: var(--mono); font-size: 12px; white-space: nowrap; background: var(--vlak-2); color: var(--zacht); }
.wanneer.is-laat { background: var(--fout-zacht); color: var(--fout); }
.wanneer.is-vandaag { background: var(--accent-zacht); color: var(--accent-tekst); }

.ochtend-twee { display: grid; gap: 4px; }
.regels { display: grid; gap: 2px; border-radius: var(--r-vlak); overflow: hidden; }
.taakregel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 18px; background: var(--vlak); text-decoration: none; transition: background 0.2s; }
a.taakregel:hover { background: var(--vlak-2); }
.taakregel .wat { display: grid; min-width: 0; }
.taakregel .wat small { font-size: 12px; color: var(--vaag); }
.taakregel .wat span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ochtend-voet { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 4px; padding: 16px 20px; border-radius: var(--r-vlak); border: 1px dashed var(--lijn-sterk); }
.verlopen { display: flex; align-items: baseline; gap: 10px; color: var(--zacht); }
.verlopen b { font-size: 28px; font-weight: 500; color: var(--tekst); letter-spacing: -0.04em; }
.knoppen { display: flex; flex-wrap: wrap; gap: 8px; }

@media (min-width: 720px) {
  .ochtend-rij { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ochtend-twee { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

/* ---- Het grote getal: limoen vlak, cijfer precies in het midden ---- */
.getal {
  display: inline-grid; place-items: center; box-sizing: content-box;
  min-width: 0.62em; padding: 0.2em 0.26em; border-radius: 0.2em;
  background: var(--accent); color: var(--getal); line-height: 1;
  font-weight: 700; font-stretch: 88%; letter-spacing: -0.04em;
  text-box: trim-both cap alphabetic;
}
.kop h1 { align-items: center; gap: 22px; }
.nav a.is-aan .tel { background: var(--tekst); color: var(--accent); }

/* ---- Gloed: een zachte kleurwolk boven aan de pagina, per stijl ---- */
body::before {
  content: ""; position: fixed; z-index: -1; inset: -20vh -10vw auto -10vw; height: 80vh; pointer-events: none;
  background:
    radial-gradient(38% 50% at 18% 30%, var(--gloed-1), transparent 70%),
    radial-gradient(34% 46% at 82% 18%, var(--gloed-2), transparent 70%);
  filter: blur(10px);
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes drijf { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(3vw, 2vh, 0) scale(1.06); } }
  body::before { animation: drijf 22s ease-in-out infinite; }
  @keyframes getal-in { from { opacity: 0; transform: translateY(18px) scale(0.92); } to { opacity: 1; transform: none; } }
  .is-nieuw .getal { animation: getal-in 0.8s var(--zacht-in) both; }
}

/* ---- Space Grotesk: koppen vet en strak, tekst rustig en goed leesbaar ---- */
body { font-synthesis: none; letter-spacing: -0.005em; }
h1, h2, h3, h4, strong, b, .titel, .merk { font-weight: 700; }
.titel { font-size: clamp(36px, 8.5vw, 56px); letter-spacing: -0.04em; line-height: 1; }
.kop h1 .zin { font-size: clamp(24px, 3.4vw, 32px); font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; }
.getal { font-family: var(--sans); font-weight: 700; letter-spacing: -0.06em; }
.ochtend-kop h2 { font-size: clamp(30px, 5.6vw, 46px); line-height: 1.02; letter-spacing: -0.04em; max-width: 20ch; }
.blok h2 { font-size: 22px; letter-spacing: -0.03em; }
.ochtend-deel h3 { font-size: 16px; letter-spacing: -0.01em; }
.temp b { font-weight: 700; letter-spacing: -0.05em; }
.topkaart .nr { font-family: var(--sans); font-weight: 700; font-size: 44px; letter-spacing: -0.04em; }
.topkaart strong { font-size: 18px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.bericht h3 { font-size: 19px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.taak-tekst h3 { font-size: 17px; font-weight: 600; }
.verlopen b { font-family: var(--sans); font-weight: 700; }
.merk { font-size: 15px; letter-spacing: -0.02em; }
.nav a, .knop, .chip, .label, .prio { font-weight: 500; }
.beurt { font-size: 17px; }

/* ---- Inlogscherm ---- */
.inlog { max-width: 460px; margin: 8vh auto 0; display: grid; gap: 18px; justify-items: start; }
.inlog-slot { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--accent); color: var(--accent-inkt); }
.inlog-slot svg { width: 28px; height: 28px; }
.inlog .titel { margin: 6px 0 0; }
.inlog-tekst { color: var(--zacht); font-size: 17px; line-height: 1.45; }
.knop-groot { height: 52px; padding: 0 22px; font-size: 16px; }
.inlog .fout { font-size: 14px; }
.inlog code, .vlak-code code { font-family: var(--mono); font-size: 13px; }
.vlak-code { margin-top: 10px; }
.vlak-code code { display: block; width: 100%; padding: 10px 12px; border-radius: var(--r-klein); background: var(--vlak-2); overflow-wrap: anywhere; }

.nav[hidden] { display: none; }

/* ---- Praten met Claude ---- */
.praat { display: flex; flex-direction: column; min-height: calc(100dvh - 64px - 140px - env(safe-area-inset-bottom)); gap: 12px; }
.praat .gesprek { flex: 1; }
.praat-kop { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.praat-kop .titel { margin-bottom: 0; }
.brug { font-size: 13px; color: var(--vaag); padding: 4px 10px; border-radius: 999px; background: var(--vlak-2); }
.brug.is-aan { background: var(--accent); color: var(--accent-inkt); }
.gesprek { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 52dvh; padding: 4px 0; }
.beurt { max-width: 86%; padding: 12px 16px; border-radius: 20px; font-size: 17px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.beurt-jij { align-self: flex-end; background: var(--tekst); color: var(--bg); border-bottom-right-radius: 6px; }
.beurt-claude { align-self: flex-start; background: var(--vlak); border: 1px solid var(--lijn); border-bottom-left-radius: 6px; }
.beurt.is-fout { color: var(--fout); }
.denkt { display: inline-flex; gap: 5px; padding: 4px 0; }
.denkt i { width: 8px; height: 8px; border-radius: 999px; background: var(--vaag); }
@media (prefers-reduced-motion: no-preference) {
  @keyframes stip { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
  .denkt i { animation: stip 1.2s ease-in-out infinite; }
  .denkt i:nth-child(2) { animation-delay: 0.15s; } .denkt i:nth-child(3) { animation-delay: 0.3s; }
  @keyframes golf { 0% { box-shadow: 0 0 0 0 var(--accent-zacht); } 100% { box-shadow: 0 0 0 26px rgba(200,247,60,0); } }
  .mic.is-luistert { animation: golf 1.2s ease-out infinite; }
}
.praat-onder { display: grid; justify-items: center; gap: 12px; padding-bottom: 8px; }
.mic { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-inkt); box-shadow: var(--schaduw); transition: transform 0.2s var(--zacht-in), background 0.2s; }
.mic:active { transform: scale(0.95); }
.mic.is-luistert { background: var(--tekst); color: var(--accent); }
.mic:disabled { opacity: 0.55; }
.praat-status { font-size: 15px; color: var(--zacht); min-height: 22px; }
.typ { display: flex; gap: 8px; width: 100%; max-width: 560px; }
.typ input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--lijn-sterk); background: var(--vlak); color: var(--tekst); font: inherit; font-size: 16px; }
.typ input:focus { outline: 2px solid var(--rand-accent); outline-offset: 1px; }
.praat-knoppen { display: flex; gap: 14px; }
.nav a span { white-space: nowrap; }
@media (max-width: 400px) { .nav a { font-size: 10px; } }

.brug.is-uit { background: var(--fout-zacht); color: var(--fout); }
.offline { padding: 14px 16px; border-radius: var(--r-vlak); background: var(--fout-zacht); }
.offline strong { display: block; color: var(--fout); font-weight: 400; font-size: 17px; margin-bottom: 4px; }
.offline p { color: var(--zacht); }
.typ input:disabled { opacity: 0.5; }

/* ---- Auto ---- */
.actie-knop { border: 0; cursor: pointer; font: inherit; font-size: 15px; height: 44px; padding: 0 16px; }
.actie-knop.is-aan { background: var(--accent-inkt); color: var(--accent); }
.actie-knop:disabled { opacity: 0.6; cursor: default; }
.vlak .actie-knop { margin-top: 0; background: var(--accent); color: var(--accent-inkt); }
.auto-melding { font-size: 14px; color: var(--zacht); margin-top: 6px; width: 100%; }
.auto-melding.is-fout { color: var(--fout); }
