/* Opmaak van Gezinsacties: schermen, panelen, taakrijen, sheets en de vier-blokjes-viering. */

/* ---------- Kolom en schermen ---------- */
.iconen { position: absolute; }
.app { max-width: var(--kolom); margin: 0 auto; min-height: 100dvh; position: relative; }
.scherm-app { padding-bottom: calc(var(--tabbalk-hoogte) + 80px + var(--veilig-onder)); }
.scherm-app.zonder-invoer { padding-bottom: calc(var(--tabbalk-hoogte) + 28px + var(--veilig-onder)); }

/* ---------- Woordmerk en kopregel ---------- */
.woordmerk { display: flex; align-items: flex-end; gap: 4px; }
.woordmerk__naam { font-family: var(--font-kop); font-weight: 600; font-size: 21px; line-height: 1; }
.woordmerk__blok { width: 9px; height: 9px; background: var(--koraal); border-radius: 2px; margin-bottom: 3px; flex: none; }
.woordmerk--groot .woordmerk__naam { font-size: clamp(30px, 11.5vw, 44px); }
.woordmerk--groot .woordmerk__blok { width: 18px; height: 18px; margin-bottom: 7px; border-radius: 4px; }

.kop { display: flex; align-items: center; justify-content: space-between; gap: var(--ruimte-3); padding: 18px var(--ruimte-5) 14px; }
.kop__links { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.kop__gezin { font-size: 12px; color: var(--grijs-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aanwezig { display: flex; align-items: center; gap: var(--ruimte-2); min-width: 0; }
.aanwezig__tekst { font-size: 12px; color: var(--grijs-navy); white-space: nowrap; }
.stip { width: 8px; height: 8px; border-radius: 999px; background: var(--teal); flex: none; display: inline-block; }

/* ---------- Avatars: zes gezinskleuren uit de huisstijl ---------- */
.avatars { display: flex; }
.avatar {
  --maat: 28px;
  width: var(--maat); height: var(--maat); border-radius: 999px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: calc(var(--maat) * 0.43); font-weight: 700; line-height: 1;
  background: var(--navy); color: var(--blush);
}
.avatars .avatar { box-shadow: 0 0 0 2px var(--blush); }
.avatars .avatar + .avatar { margin-left: -7px; }
.avatar--k0 { background: var(--navy); color: var(--blush); }
.avatar--k1 { background: var(--koraal); color: var(--navy); }
.avatar--k2 { background: var(--teal); color: var(--navy); }
.avatar--k3 { background: #e7c3c5; color: var(--navy); }
.avatar--k4 { background: var(--op-navy); color: var(--navy); }
.avatar--k5 { background: var(--vlak); color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.avatar--klein { --maat: 22px; }
.avatar--groot { --maat: 44px; }
.avatar--leeg { background: transparent; color: var(--grijs-navy); box-shadow: inset 0 0 0 1.5px var(--grijs-navy); }
.avatar--leeg svg { width: 60%; height: 60%; }

/* ---------- Tabje + paneel (kenmerk van de huisstijl) ---------- */
.blok { display: flex; flex-direction: column; }
.blok__kop { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--ruimte-2); }
.tabje { display: inline-flex; align-items: center; gap: 6px; background: var(--vlak); font-size: 12px; font-weight: 600; padding: 7px 14px; border-radius: var(--radius-tab) var(--radius-tab) 0 0; }
.tabje__tel { color: var(--grijs-navy); font-weight: 500; }
.tabje--navy { background: var(--navy); color: var(--blush); }
.tabje--navy .tabje__tel { color: var(--op-navy); }
.tabje__blok { width: 7px; height: 7px; border-radius: 2px; background: var(--koraal); }
.paneel { background: var(--vlak); border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md); }
.paneel--rijen { padding: 0 12px; }
.paneel--ruim { padding: var(--ruimte-4); display: flex; flex-direction: column; gap: var(--ruimte-3); }
.paneel--navy { background: var(--navy); color: var(--blush); border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg); }
.paneel--rond { border-radius: var(--radius-lg); }
.blok__meer { font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 6px 2px; }

.inhoud { padding: 0 var(--ruimte-5); display: flex; flex-direction: column; gap: 18px; }

/* ---------- Wie-filter op Vandaag ---------- */
.wie-filter { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--ruimte-5) * -1); padding: 2px var(--ruimte-5) 4px; }
.wie-filter::-webkit-scrollbar { display: none; }
.wie-knop {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  min-height: 40px; padding: 4px 14px 4px 5px; border-radius: 999px;
  background: var(--vlak); font-size: 13px; font-weight: 600;
}
.wie-knop--tekst { padding-left: 14px; }
.wie-knop[aria-pressed="true"] { background: var(--navy); color: var(--blush); }
.wie-knop[aria-pressed="true"] .avatar { box-shadow: 0 0 0 2px var(--navy); }
.wie-knop__tel { font-weight: 500; opacity: 0.7; }

/* ---------- Titelblok op Vandaag ---------- */
.titelblok__paneel { padding: 20px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.titelblok__cijfer { font-family: var(--font-kop); font-weight: 500; font-size: 42px; line-height: 1; }
.titelblok__sub { font-size: 13px; color: var(--op-navy); }
.titelblok__rij { display: flex; align-items: center; justify-content: space-between; gap: var(--ruimte-3); }
.voortgang { height: 8px; background: var(--navy-vlak); border-radius: 999px; overflow: hidden; }
.voortgang__balk { height: 100%; width: 0; background: var(--blush); border-radius: 999px; transition: width 0.5s cubic-bezier(.2, .8, .2, 1); }
.titelblok--klaar .voortgang__balk { background: var(--koraal); }
.titelblok__beurt { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--op-navy); }
.titelblok__beurt strong { color: var(--blush); font-weight: 600; }

/* ---------- Knoppen ---------- */
.pill-knop {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--blush); color: var(--navy); text-decoration: none;
  border-radius: var(--radius-pill); padding: 6px 6px 6px 18px; min-height: 48px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.pill-knop__pijl { width: 36px; height: 36px; border-radius: 999px; background: var(--koraal); color: var(--navy); flex: none; display: flex; align-items: center; justify-content: center; }
.pill-knop--navy { background: var(--navy); color: var(--blush); }
.pill-knop--breed { width: 100%; min-height: 56px; padding-left: 22px; font-size: 15px; }
.pill-knop--breed .pill-knop__pijl { width: 44px; height: 44px; }
.pill-knop--vlak { background: var(--vlak); }
.pill-knop:disabled { opacity: 0.5; cursor: default; }

.knop {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600; background: var(--blush); border: 1px solid var(--lijn); text-decoration: none;
}
.knop--navy { background: var(--navy); color: var(--blush); border-color: var(--navy); }
.knop--klein { min-height: 36px; padding: 0 14px; font-size: 13px; }
.knop--tekst { background: none; border: none; text-decoration: underline; text-underline-offset: 3px; padding: 0 6px; }
.knop--icoon { width: 44px; padding: 0; flex: none; }
.knop--gevaar { background: none; border-color: var(--lijn); }
.knop:disabled { opacity: 0.5; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 13px;
  border-radius: var(--radius-pill); background: var(--vlak); border: 1px solid var(--lijn);
  font-size: 13px; font-weight: 600;
}
.chip[aria-pressed="true"] { background: var(--navy); color: var(--blush); border-color: var(--navy); }
.chip .avatar { --maat: 22px; margin-left: -8px; }
.chip--avatar { padding-left: 13px; }
.label-klein { font-size: 12px; color: var(--grijs-navy); }

/* ---------- Taakrijen ---------- */
.taken { display: flex; flex-direction: column; }
.taak {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 60px; border-top: 1px solid var(--lijn); margin-top: -1px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.taak:first-child { border-top-color: transparent; }
.taak__vink {
  width: 44px; height: 44px; margin-left: -9px; flex: none; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.vink {
  width: 26px; height: 26px; border-radius: 999px; border: 2px solid var(--navy); color: var(--blush);
  display: flex; align-items: center; justify-content: center; transition: background 0.15s, transform 0.15s;
}
.vink svg { opacity: 0; transform: scale(0.4); transition: opacity 0.15s, transform 0.25s cubic-bezier(.3, 1.6, .5, 1); }
.taak__vink:active .vink { transform: scale(0.88); }
.taak--af .vink { background: var(--navy); }
.taak--af .vink svg { opacity: 1; transform: none; }
.taak--belangrijk .vink { border-width: 2.5px; }
.taak__open { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 11px 0; text-align: left; }
.taak__titel { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; display: flex; align-items: baseline; gap: 7px; }
.taak__prio { width: 8px; height: 8px; border-radius: 2px; background: var(--koraal); flex: none; transform: translateY(-1px); }
.taak__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--grijs-navy); }
.taak__meta span { display: inline-flex; align-items: center; gap: 4px; }
.taak__meta svg { flex: none; }
.taak__laat { color: var(--navy); font-weight: 700; }
.taak__notitie-teken { opacity: 0.8; }
.taak__wie { flex: none; display: flex; align-items: center; }
.taak--af .taak__titel { font-weight: 500; color: var(--grijs-navy); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.taak--weg { opacity: 0; transform: translateX(24px); }
.taak--nieuw { animation: oplichten 1.4s ease; }
@keyframes oplichten { from { background: var(--lijn); } to { background: transparent; } }

/* Viering: vier blokjes in de huisstijlkleuren schieten uit het vinkje */
.blokje {
  position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-radius: 2px; pointer-events: none;
  animation: wegspringen 0.65s cubic-bezier(.15, .7, .3, 1) forwards;
}
@keyframes wegspringen {
  0% { transform: translate(-50%, -50%) scale(0.4) rotate(0); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(var(--draai)); opacity: 0; }
}
/* Grote viering in het titelblok als alles voor vandaag klaar is */
.feest { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.feest .blokje { width: 9px; height: 9px; animation-duration: 1.4s; }

.leeg-melding { padding: 26px 16px; text-align: center; color: var(--grijs-navy); font-size: 14px; line-height: 1.6; }
.leeg-melding strong { display: block; color: var(--navy); font-family: var(--font-kop); font-weight: 500; font-size: 21px; margin-bottom: 6px; }
.leeg-melding .knop { margin-top: 14px; }

/* ---------- Lijsten ---------- */
.paginakop { padding: 4px var(--ruimte-5) 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--ruimte-3); }
.paginakop h1 { font-size: 30px; }
.paginakop__links { display: flex; align-items: center; gap: 10px; min-width: 0; }
.paginakop__terug { width: 44px; height: 44px; margin-left: -12px; border-radius: 999px; display: flex; align-items: center; justify-content: center; flex: none; }

.lijst-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 var(--ruimte-5); }
.lijst-kaart { display: flex; flex-direction: column; text-align: left; min-width: 0; }
.lijst-kaart .tabje { align-self: flex-start; max-width: 100%; }
.lijst-kaart .tabje svg { flex: none; }
.lijst-kaart__naam { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lijst-kaart .paneel { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 6px; min-height: 104px; }
.lijst-kaart__getal { font-family: var(--font-kop); font-weight: 500; font-size: 32px; line-height: 1; }
.lijst-kaart__getal small { font-family: var(--font-tekst); font-size: 12px; font-weight: 500; color: var(--grijs-navy); margin-left: 4px; }
.lijst-kaart__eerst { font-size: 12px; color: var(--grijs-navy); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lijst-kaart--nieuw .paneel { background: transparent; border: 1.5px dashed var(--grijs-navy); align-items: center; justify-content: center; color: var(--grijs-navy); font-size: 13px; font-weight: 600; border-radius: var(--radius-md); }
.lijst-kaart--nieuw { justify-content: flex-end; }
.lijst-icoon { width: 40px; height: 40px; border-radius: 12px; background: var(--blush); display: flex; align-items: center; justify-content: center; flex: none; }

/* ---------- Gezin ---------- */
.week-samen { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.week-samen__kop { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.week-samen__getal { font-family: var(--font-kop); font-weight: 500; font-size: 42px; line-height: 1; }
.week-samen__tekst { font-size: 13px; color: var(--op-navy); }
.balken { display: flex; flex-direction: column; gap: 10px; }
.balk { display: grid; grid-template-columns: 28px minmax(0, 1fr) 28px; align-items: center; gap: 10px; font-size: 13px; }
.balk .avatar { box-shadow: 0 0 0 1.5px var(--op-navy); }
.balk__spoor { height: 10px; background: var(--navy-vlak); border-radius: 999px; overflow: hidden; }
.balk__vulling { height: 100%; background: var(--blush); border-radius: 999px; width: 0; transition: width 0.6s cubic-bezier(.2, .8, .2, 1); }
.balk__getal { text-align: right; font-weight: 600; }

.lid-rij { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 0; border-top: 1px solid var(--lijn); margin-top: -1px; width: 100%; text-align: left; }
.lid-rij:first-child { border-top-color: transparent; }
.lid-rij__tekst { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lid-rij__naam { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.lid-rij__sub { font-size: 12px; color: var(--grijs-navy); }
.label-ik { font-size: 11px; font-weight: 600; background: var(--blush); border-radius: 999px; padding: 2px 8px; }
.lid-rij__online { font-size: 11px; color: var(--grijs-navy); display: inline-flex; align-items: center; gap: 5px; }

.uitnodiging { display: flex; gap: 16px; align-items: center; }
.uitnodiging__tekst { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.uitnodiging__code { font-family: var(--font-kop); font-size: 28px; font-weight: 500; letter-spacing: 0.06em; }
.qr { width: 112px; height: 112px; flex: none; background: var(--blush); border-radius: 12px; padding: 8px; }
.qr svg { width: 100%; height: 100%; display: block; }

.activiteit { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 0; border-top: 1px solid var(--lijn); margin-top: -1px; }
.activiteit:first-child { border-top-color: transparent; }
.activiteit__tekst { flex: 1; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.activiteit__tijd { font-size: 12px; color: var(--grijs-navy); white-space: nowrap; }

.instelling { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 0; border-top: 1px solid var(--lijn); margin-top: -1px; width: 100%; text-align: left; text-decoration: none; }
.instelling:first-child { border-top-color: transparent; }
.instelling__tekst { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.instelling__titel { font-size: 14px; font-weight: 600; }
.instelling__uitleg { font-size: 12px; color: var(--grijs-navy); }

/* ---------- Seintje ---------- */
.seintje { padding: 14px 14px 14px 16px; display: flex; align-items: center; gap: 12px; animation: schud 0.6s ease; }
.seintje__tekst { flex: 1; font-size: 14px; line-height: 1.45; }
.seintje__tekst strong { font-weight: 700; }
@keyframes schud { 0%, 100% { transform: none; } 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }

/* ---------- Invoerbalk en tabbalk ---------- */
.onderkant { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; max-width: var(--kolom); margin: 0 auto; background: var(--blush); }
.invoerbalk { padding: 10px 16px; }
.invoerbalk__veld {
  display: flex; align-items: center; min-height: 54px; gap: 6px;
  background: var(--vlak); border: 1px solid var(--lijn); border-radius: var(--radius-pill); padding: 6px 6px 6px 18px;
}
.invoerbalk__open { flex: 1; text-align: left; font-size: 14px; color: var(--grijs-navy); min-height: 40px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rond-knop { width: 42px; height: 42px; border-radius: 999px; flex: none; display: flex; align-items: center; justify-content: center; }
.rond-knop--navy { background: var(--navy); color: var(--blush); }
.rond-knop--luistert { background: var(--koraal); color: var(--navy); animation: luisteren 1.2s ease-in-out infinite; }
@keyframes luisteren { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 106, 118, 0.5); } 50% { box-shadow: 0 0 0 9px rgba(245, 106, 118, 0); } }

.tabbalk {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--vlak); border-top: 1px solid var(--lijn);
  padding: 4px 8px calc(10px + var(--veilig-onder)); height: calc(var(--tabbalk-hoogte) + var(--veilig-onder));
}
.tabbalk__knop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; color: var(--grijs-navy); border-top: 2px solid transparent; margin: 0 14px; position: relative; }
.tabbalk__knop[aria-current="page"] { color: var(--navy); font-weight: 600; border-top-color: var(--navy); }
.tabbalk__stip { position: absolute; top: 8px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 2px; background: var(--koraal); }

/* ---------- Sheets (onderpanelen) ---------- */
.sheet-achtergrond { position: fixed; inset: 0; background: rgba(28, 53, 114, 0.45); z-index: 40; animation: vervagen 0.2s ease; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41;
  max-width: var(--kolom); margin: 0 auto; max-height: 92dvh;
  background: var(--vlak); border-radius: 22px 22px 0 0;
  display: flex; flex-direction: column;
  padding: 10px var(--ruimte-5) calc(18px + var(--veilig-onder));
  animation: omhoog 0.25s cubic-bezier(.2, .8, .2, 1);
}
.sheet__greep { align-self: center; width: 40px; height: 5px; border-radius: 999px; background: var(--lijn); flex: none; }
.sheet__kop { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 14px; flex: none; }
.sheet__kop h2 { font-size: 24px; }
.sheet__sluit { width: 44px; height: 44px; border-radius: 999px; background: var(--blush); display: flex; align-items: center; justify-content: center; flex: none; }
.sheet__inhoud { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; padding-bottom: 4px; margin: 0 -4px; padding-left: 4px; padding-right: 4px; }
.sheet__voet { flex: none; padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.sheet .paneel, .sheet .tabje, .sheet .chip:not([aria-pressed="true"]), .sheet .lijst-icoon { background: var(--blush); }
.sheet .veld { background: var(--blush); }
@keyframes omhoog { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes vervagen { from { opacity: 0; } to { opacity: 1; } }

/* Snel toevoegen: wat Gezinsacties uit je zin haalt */
.snel-veld { position: relative; }
.snel-veld .veld { padding-right: 60px; min-height: 58px; resize: none; line-height: 1.45; }
.snel-veld .rond-knop { position: absolute; right: 8px; bottom: 8px; }
.voorbeeld { display: flex; flex-direction: column; gap: 10px; }
.voorbeeld-kaart { background: var(--blush); border-radius: var(--radius-md); padding: 14px; display: flex; flex-direction: column; gap: 10px; animation: vervagen 0.2s ease; }
.voorbeeld-kaart__kop { display: flex; align-items: flex-start; gap: 10px; }
.voorbeeld-kaart__titel { flex: 1; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.herkend { display: flex; flex-wrap: wrap; gap: 6px; }
.herkend__chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 11px; border-radius: 999px; background: var(--vlak); font-size: 12px; font-weight: 600; }
.herkend__chip .avatar { --maat: 20px; margin-left: -6px; }
.herkend__chip--nieuw { animation: opploppen 0.35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes opploppen { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.voorbeelden { display: flex; flex-direction: column; gap: 6px; }
.voorbeelden button { text-align: left; font-size: 13px; color: var(--grijs-navy); padding: 6px 0; }
.voorbeelden button::before { content: "“"; }
.voorbeelden button::after { content: "”"; }

/* ---------- Formulieren ---------- */
fieldset { border: none; }
.label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 8px; }
.veld {
  width: 100%; font-size: 16px; background: var(--vlak); border: 1.5px solid var(--lijn);
  border-radius: var(--radius-md); padding: 13px 16px; outline: none;
}
.veld:focus { border-color: var(--navy); }
.veld--code { font-family: var(--font-kop); font-size: 24px; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; }
textarea.veld { resize: vertical; min-height: 90px; line-height: 1.5; }
.hulptekst { font-size: 12px; color: var(--grijs-navy); line-height: 1.5; margin-top: 8px; }
.foutmelding { font-size: 13px; color: var(--navy); background: var(--lijn); border-radius: var(--radius-sm); padding: 10px 12px; line-height: 1.45; }
.knoppenrij { display: flex; gap: 8px; }
.knoppenrij > * { flex: 1; }
.kleuren { display: flex; gap: 10px; flex-wrap: wrap; }
.kleur-knop { width: 44px; height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
.kleur-knop .avatar { --maat: 36px; transition: transform 0.15s; }
.kleur-knop[aria-checked="true"] { box-shadow: 0 0 0 2.5px var(--navy); }
.iconen-keuze { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.icoon-knop { aspect-ratio: 1; border-radius: 12px; background: var(--blush); display: flex; align-items: center; justify-content: center; }
.icoon-knop[aria-checked="true"] { background: var(--navy); color: var(--blush); }
.datum-rij { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.datum-invoer { font-size: 14px; font-weight: 600; background: var(--blush); border: 1px solid var(--lijn); border-radius: 999px; padding: 0 12px; min-height: 36px; }
.schakel-rij { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; width: 100%; text-align: left; }
.schakel-rij__tekst { display: flex; flex-direction: column; gap: 2px; }
.schakel-rij__titel { font-size: 14px; font-weight: 600; }
.schakel-rij__uitleg { font-size: 12px; color: var(--grijs-navy); }
.schakelaar { width: 48px; height: 28px; border-radius: 999px; flex: none; padding: 3px; background: var(--lijn); display: flex; align-items: center; transition: background 0.15s; }
.schakelaar::after { content: ""; width: 22px; height: 22px; border-radius: 999px; background: var(--vlak); transition: transform 0.2s cubic-bezier(.3, 1.4, .5, 1); }
[aria-checked="true"] > .schakelaar { background: var(--navy); }
[aria-checked="true"] > .schakelaar::after { transform: translateX(20px); background: var(--blush); }
.beurt-volgorde { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--grijs-navy); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabbalk-hoogte) + 88px + var(--veilig-onder)); z-index: 70;
  width: calc(100% - 32px); max-width: calc(var(--kolom) - 32px);
  background: var(--navy); color: var(--blush); border-radius: var(--radius-md);
  padding: 10px 10px 10px 16px; display: flex; align-items: center; gap: 12px;
  font-size: 14px; animation: omhoog 0.2s ease;
}
.sheet-open .toast { bottom: auto; top: calc(12px + env(safe-area-inset-top, 0px)); }
.toast__tekst { flex: 1; line-height: 1.4; }
.toast__knop { color: var(--blush); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 40px; padding: 0 8px; flex: none; }

/* ---------- Laden en welkom ---------- */
.laden { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.laden__tekst { font-size: 13px; color: var(--grijs-navy); text-align: center; max-width: 30em; padding: 0 var(--ruimte-6); line-height: 1.5; }
.laden .woordmerk__blok { animation: hupje 1s ease-in-out infinite; }
@keyframes hupje { 0%, 100% { transform: none; } 50% { transform: translateY(-8px); } }

.welkom { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 32px var(--ruimte-5); }
.welkom__intro { font-size: 16px; line-height: 1.6; color: var(--grijs-navy); max-width: 28em; }
.welkom__keuze, .welkom__form { display: flex; flex-direction: column; gap: 14px; }
.welkom__beeld { width: 168px; }
.huisje { width: 100%; display: block; overflow: visible; }
.huisje__dak { fill: var(--navy); }
.huisje__muur { fill: var(--navy); }
.huisje__schoorsteen { fill: var(--koraal); }
.huisje__rook { fill: var(--teal); opacity: 0; animation: rook 3.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.huisje__rook--2 { fill: var(--koraal); animation-delay: 1.6s; }
.huisje__vink { fill: none; stroke: var(--blush); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 120; stroke-dashoffset: 120; animation: tekenen 0.9s 0.3s cubic-bezier(.6, 0, .2, 1) forwards; }
@keyframes tekenen { to { stroke-dashoffset: 0; } }
@keyframes rook { 0% { opacity: 0; transform: translate(0, 10px) scale(0.6); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(10px, -26px) scale(1.1) rotate(25deg); } }

@media (min-width: 600px) {
  .titelblok__cijfer { font-size: 48px; }
}
.chip[aria-pressed="true"] .avatar { box-shadow: 0 0 0 1.5px var(--blush); }

/* ---------- Handleiding ---------- */
.handleiding { max-width: 640px; margin: 0 auto; padding: 28px var(--ruimte-5) 64px; display: flex; flex-direction: column; gap: 26px; }
.handleiding h1 { font-size: clamp(34px, 9vw, 46px); }
.handleiding h2 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.handleiding p, .handleiding li { font-size: 15px; line-height: 1.65; }
.handleiding ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.handleiding__intro { color: var(--grijs-navy); font-size: 16px; }
.handleiding__stap { display: flex; flex-direction: column; gap: 12px; }
.handleiding h2, .handleiding .voorbeeld-kaart, .voorbeeld-tabel__rij, .handleiding li { break-inside: avoid; break-after: auto; }
.handleiding h2 { break-after: avoid; }
.stapnummer { width: 30px; height: 30px; border-radius: 9px; background: var(--navy); color: var(--blush); font-family: var(--font-kop); font-size: 16px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.handleiding .paneel { padding: 14px 16px; }
.handleiding code { font-family: var(--font-tekst); font-weight: 600; background: var(--vlak); border-radius: 6px; padding: 1px 6px; }
.voorbeeld-tabel { display: flex; flex-direction: column; gap: 10px; }
.voorbeeld-tabel__rij { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px solid var(--lijn); }
.voorbeeld-tabel__rij:first-child { border-top: none; padding-top: 0; }
.voorbeeld-tabel__zin { font-weight: 600; }
.handleiding__terug { align-self: flex-start; }
@page { margin: 0; }
@media print {
  .handleiding { padding: 14mm 16mm; }
  *, *::before, *::after { animation: none !important; }
  body { background: var(--blush); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .handleiding__terug { display: none; }
}
