/* Pip thuis: poetskalender en tandenwisselkaart (Kindermondzorg) */
.pip-thuis { display: grid; gap: 22px; }
.pip-thuis .content-heading { margin-bottom: 0; }
.pk, .tk { position: relative; display: grid; gap: 18px; padding: clamp(18px, 3vw, 32px); border-radius: 28px; background: #fff; box-shadow: 0 1px 0 #e3e8ee, 0 24px 56px -34px rgba(23,43,77,.4); overflow: hidden; }
.pk { background: linear-gradient(180deg, #fffdf5, #fff 40%); }
.pk-top { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; }
.pk-top h3, .tk-top h3 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.02em; }
.pk-naam-label { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; }
.pk-naam { width: 150px; min-height: 44px; padding: 0 12px; border: 1.5px solid #7a8a9c; border-radius: 12px; font: 600 1rem Inter, sans-serif; color: #172b4d; }
.pk-grid { display: grid; grid-template-columns: 44px repeat(2, minmax(0, 1fr)); gap: 8px 10px; align-items: center; max-width: 520px; }
.pk-kop { font-size: .85rem; font-weight: 800; color: #146b69; text-align: center; }
.pk-dag { font-weight: 800; color: #172b4d; }
.pk-dag.vandaag { color: #146b69; }
.pk-dag.vandaag::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 5px; border-radius: 50%; background: #27A7A3; vertical-align: 2px; }
.pk-vak { display: grid; place-items: center; height: 54px; border: 1.5px dashed #b8c3cf; border-radius: 16px; background: #f7f9fb; cursor: pointer; transition: background-color .25s ease, border-color .25s ease, transform .16s cubic-bezier(.23,1,.32,1); -webkit-tap-highlight-color: transparent; }
.pk-vak:active { transform: scale(.94); }
.pk-vak svg { width: 34px; height: 34px; overflow: visible; }
.pk-vak.ochtend svg circle { fill: #dfe5ea; transition: fill .3s ease; }
.pk-vak.ochtend svg line { stroke: #dfe5ea; stroke-width: 2.2; stroke-linecap: round; transition: stroke .3s ease; }
.pk-vak.avond svg path { fill: #dfe5ea; transition: fill .3s ease; }
.pk-vak[aria-pressed="true"] { border-style: solid; border-color: #F2CF55; background: #fff7d6; }
.pk-vak.avond[aria-pressed="true"] { border-color: #27A7A3; background: #e0f4f2; }
.pk-vak.ochtend[aria-pressed="true"] svg circle { fill: #F2CF55; }
.pk-vak.ochtend[aria-pressed="true"] svg line { stroke: #e2b52a; }
.pk-vak.avond[aria-pressed="true"] svg path { fill: #1a7c79; }
@media (prefers-reduced-motion: no-preference) {
  .pk-vak.pop svg { animation: pkPop .5s cubic-bezier(.34,1.6,.64,1); }
  .pk-vak.ochtend.pop .stralen { animation: pkRays 1.2s cubic-bezier(.23,1,.32,1); transform-origin: 0 0; }
  @keyframes pkPop { 0% { transform: scale(.6) rotate(-20deg); } 100% { transform: none; } }
  @keyframes pkRays { 0% { transform: rotate(-60deg) scale(.6); } 100% { transform: none; } }
}
.pk-voortgang { display: grid; gap: 8px; max-width: 520px; }
.pk-voortgang p { margin: 0; font-weight: 700; display: flex; justify-content: space-between; }
.pk-balk { height: 10px; border-radius: 10px; background: #e7ecf0; overflow: hidden; }
.pk-balk span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #27A7A3, #72D5D0); transition: width .5s cubic-bezier(.23,1,.32,1); }
.pk-acties { display: flex; flex-wrap: wrap; gap: 10px; }
.pk-acties button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #172b4d; background: #fff; color: #172b4d; font: 700 .92rem Inter, sans-serif; cursor: pointer; }
.pk-stickers-wrap { display: grid; gap: 8px; }
.pk-stickers-label { font-weight: 800; font-size: .95rem; }
.pk-stickers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pk-stickers li { width: 54px; height: 54px; border-radius: 50%; background: #fff7d6; border: 2px solid #F2CF55; display: grid; place-items: center; transform: rotate(var(--r, 0deg)); box-shadow: 0 4px 10px -6px rgba(23,43,77,.4); }
.pk-stickers li img { width: 38px; height: 38px; object-fit: contain; }
.pk-stickers li.leeg { width: auto; height: auto; padding: 8px 14px; border-radius: 12px; border: 1.5px dashed #d9c98a; background: transparent; box-shadow: none; color: #5b6b80; font-size: .9rem; transform: none; }
.pk-stickers li.meer { font-weight: 800; color: #8a6510; }
.pk-feest { position: relative; display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 18px; background: #172b4d; color: #fff; outline: none; }
.pk-feest[hidden] { display: none; }
.pk-feest b { font-size: 1.2rem; }
.pk-feest p { margin: 2px 0 0; color: #c9d3e2; }
.pk-feest .ster { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #F2CF55; }
.pk-feest .ster img { width: 36px; }
.pk-pip { position: absolute; z-index: 5; right: -140px; top: 30%; width: 120px; pointer-events: none; opacity: 0; }
.pk-pip img { width: 100%; }
.pk-pip::after { content: ""; position: absolute; left: -12px; top: 38%; width: 30px; height: 30px; border-radius: 50%; background: #F2CF55 url("/assets/pip/pip-duif.webp") center / 22px no-repeat; border: 2px solid #fff; box-shadow: 0 4px 10px rgba(23,43,77,.3); }
@media (prefers-reduced-motion: no-preference) {
  .pk-pip.vliegt { animation: pkFly 2.6s cubic-bezier(.45,0,.2,1) both; }
  @keyframes pkFly {
    0% { opacity: 0; transform: translate(0, 40px) rotate(8deg); }
    12% { opacity: 1; }
    45% { transform: translate(-420px, -60px) rotate(-6deg); }
    60% { transform: translate(-520px, -10px) rotate(4deg); }
    88% { opacity: 1; transform: translate(-900px, -120px) rotate(-10deg); }
    100% { opacity: 0; transform: translate(-1100px, -160px) rotate(-12deg); }
  }
}
@media (min-width: 900px) {
  .pk { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; column-gap: 40px; }
  .pk-top { grid-column: 1 / -1; }
  .pk-rechts { display: grid; gap: 18px; align-content: start; }
}

/* Tandenwisselkaart */
.tk-body { display: grid; gap: 20px; }
.tk-kaart { position: relative; max-width: 420px; width: 100%; justify-self: center; }
.tk-kaart svg { width: 100%; height: auto; display: block; overflow: visible; }
.tk-tand { cursor: pointer; outline: none; }
.tk-tand rect { fill: #fff; stroke: #b8c3cf; stroke-width: 1.6; transition: fill .35s ease, stroke .35s ease, transform .35s cubic-bezier(.34,1.5,.64,1); transform-box: fill-box; transform-origin: center; }
.tk-tand[data-staat="nog"] rect { fill: #f2f4f6; stroke: #dfe5ea; stroke-dasharray: 3 3; }
.tk-tand[data-staat="melk"] rect { fill: #fff; stroke: #27A7A3; }
.tk-tand[data-staat="wissel"] rect { fill: #fff7d6; stroke: #e2b52a; stroke-width: 2.2; }
.tk-tand[data-staat="blijvend"] rect { fill: #e0f4f2; stroke: #1a7c79; }
.tk-tand.gekozen rect { stroke: #172b4d; stroke-width: 3; transform: scale(1.14); }
.tk-tand:focus-visible rect { stroke: #172b4d; stroke-width: 3; }
@media (hover: hover) and (pointer: fine) { .tk-tand:hover rect { transform: scale(1.1); } }
@media (prefers-reduced-motion: no-preference) { .tk-tand[data-staat="wissel"] rect { animation: tkWiebel 1.6s ease-in-out infinite; } @keyframes tkWiebel { 0%, 100% { rotate: 0deg; } 25% { rotate: -6deg; } 75% { rotate: 6deg; } } }
.tk-midden { font: 800 13px Inter, sans-serif; fill: #5b6b80; text-anchor: middle; }
.tk-legenda { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; list-style: none; font-size: .88rem; font-weight: 650; color: #3f4e66; }
.tk-legenda i { display: inline-block; width: 14px; height: 14px; margin-right: 6px; border-radius: 4px; vertical-align: -2px; border: 1.6px solid; }
.tk-legenda .nog i { background: #f2f4f6; border-color: #b8c3cf; border-style: dashed; }
.tk-legenda .melk i { background: #fff; border-color: #27A7A3; }
.tk-legenda .wissel i { background: #fff7d6; border-color: #e2b52a; }
.tk-legenda .blijvend i { background: #e0f4f2; border-color: #1a7c79; }
.tk-schuif { display: grid; gap: 8px; }
.tk-schuif label { display: flex; justify-content: space-between; font-weight: 800; }
.tk-schuif output { color: #146b69; font-variant-numeric: tabular-nums; }
.tk-leeftijd { width: 100%; accent-color: #1a7c79; height: 28px; }
.tk-samenvatting { margin: 0; color: #3f4e66; min-height: 1.6em; }
.tk-uitleg { padding: 18px 20px; border-radius: 20px; background: #f6f3ec; }
.tk-uitleg h3 { margin: 0 0 8px; font-size: 1.2rem; }
.tk-uitleg h3 small { font-size: .8rem; color: #5b6b80; font-weight: 650; margin-left: 6px; }
.tk-uitleg dl { margin: 0 0 10px; display: grid; gap: 6px; }
.tk-uitleg dl div { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; }
.tk-uitleg dt { color: #146b69; font-weight: 800; font-size: .9rem; }
.tk-uitleg dd { margin: 0; font-weight: 700; }
.tk-uitleg p { margin: 0; color: #3f4e66; font-size: .95rem; }
@media (prefers-reduced-motion: no-preference) { .tk-uitleg.in { animation: tkIn .35s cubic-bezier(.23,1,.32,1); } @keyframes tkIn { from { opacity: 0; transform: translateY(6px); } } }
.tk-noot { margin: 0; font-size: .85rem; color: #5b6b80; }
@media (min-width: 900px) { .tk-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: 40px; } .tk-rechts { display: grid; gap: 16px; } }
.tk-tandvlees { fill: none; stroke: #fbe3e1; stroke-width: 34; stroke-linecap: round; }
.tk-tandvlees-rand { fill: none; stroke: #f3c9c6; stroke-width: 1.2; stroke-dasharray: 2 5; }


/* Een ruime keuzelijst voor dezelfde tanden als op de kaart. */
.tk-keuze { display: grid; gap: 8px; min-width: 0; font-weight: 700; color: #172b4d; }
.tk-keuze select { width: 100%; min-width: 0; min-height: 48px; padding: 10px 40px 10px 12px; border: 1.5px solid #7a8a9c; border-radius: 12px; background-color: #fff; color: #172b4d; font: inherit; font-size: 1rem; }
