.pip-path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.pip-path .trail { fill: none; stroke: #c9c1b2; stroke-width: 3; stroke-linecap: round; stroke-dasharray: .1 13; }
.pip-path .flown { fill: none; stroke: #16827b; stroke-width: 3; stroke-linecap: round; }
.pip-flyer { position: absolute; left: 0; top: 0; width: 64px; pointer-events: none; z-index: 3; will-change: transform; filter: drop-shadow(0 10px 10px rgba(23,43,77,.18)); }
.pip-flyer img { transition: transform .35s ease; }
.pip-flyer.left img { transform: scaleX(-1); }

.pip-stops { position: relative; display: grid; gap: clamp(64px, 9vw, 120px); padding-bottom: 40px; }
.pip-stop { position: relative; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 420px); gap: clamp(28px, 5vw, 72px); align-items: center; justify-content: start; }
.pip-stop:nth-child(even) { justify-content: end; grid-template-columns: minmax(0, 420px) minmax(0, 300px); }
.pip-stop:nth-child(even) .pip-phone { order: 2; }
.pip-pin { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #faf8f2; border: 3px solid #c9c1b2; transform: translate(-50%, -50%); z-index: 2; transition: background .3s, border-color .3s, transform .4s cubic-bezier(.2,.9,.3,1.4); }
.pip-stop.passed .pip-pin { background: var(--sun); border-color: var(--sun); transform: translate(-50%, -50%) scale(1.25); }
.pip-phone { position: relative; aspect-ratio: 9 / 16; border-radius: 30px; overflow: hidden; background: #fff; border: 0; padding: 0; box-shadow: 0 1px 0 rgba(23,43,77,.06), 0 30px 60px -28px rgba(23,43,77,.45); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.pip-phone img, .pip-phone video { width: 100%; height: 100%; object-fit: cover; }
.pip-phone video { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
.pip-phone.preview video { opacity: 1; }
.pip-phone .pip-play { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; padding: 11px 18px 11px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.pip-phone:hover { transform: translateY(-6px) rotate(-.6deg); }
.pip-stop:nth-child(even) .pip-phone:hover { transform: translateY(-6px) rotate(.6deg); }
.pip-age { display: inline-block; font-size: 14px; font-weight: 700; color: #16827b; margin-bottom: 12px; }
.pip-stop p { margin: 0; color: var(--muted); max-width: 40ch; }

/* ============ 3. Poetstimer ============ */
.pip-timer { background: var(--navy); color: #fff; margin-top:clamp(20px, 4vw, 48px); border-radius:24px; padding: clamp(28px, 5vw, 72px); }
.pip-timer .timer-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 100px); align-items: center; }
.pip-timer h2 { font-size:clamp(33px, 4.6vw, 62px); }
.pip-timer p { color: #c9d6e6; max-width: 44ch; margin: 22px 0 0; }
.pip-timer .dial { position: relative; width: min(100%, 460px); aspect-ratio: 1; justify-self: center; }
.pip-timer .dial svg { width: 100%; height: 100%; overflow: visible; }
.pip-timer .dial .q { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 18; stroke-linecap: round; }
.pip-timer .dial .qf { fill: none; stroke: #72d5d0; stroke-width: 18; stroke-linecap: round; }
.pip-timer .dial .ql { font-size:15px; font-weight:600; fill: #9fb3c9; }
.pip-timer .dial .ql.on { fill: #fff; }
.pip-timer .dial .pip { position: absolute; inset: 22%; display: grid; place-items: center; }
.pip-timer .dial .pip img { width: 78%; height:auto; }
.pip-timer .dial .clock { position: absolute; left: 0; right: 0; bottom: -3%; text-align: center; font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums; }

.pip-player { width:min(calc(100% - 20px), 440px); max-height:calc(100dvh - 20px); margin:auto; padding:0; overflow:auto; border:0; border-radius:20px; background:#132541; color:white; }
.pip-player::backdrop { background:rgba(10,20,38,.93); }
.pip-player .player-inner { display:grid; gap:8px; padding:12px; }
.pip-player .player-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.pip-player .player-head h2 { font-size:18px; }
.pip-player button { border:1px solid #8eafc7; min-height:44px; padding:4px 9px; border-radius:12px; background:#172d4f; color:#fff; font-size:13px; }
.pip-player button:hover { background:#284367; }
.pip-player button:disabled { opacity:.4; cursor:default; }
.pip-player .stage { display:grid; justify-items:center; background:#0a1426; border-radius:10px; overflow:hidden; }
.pip-player .stage video { height:min(56dvh, 560px); width:100%; object-fit:contain; }
.pip-player .controls { display:flex; justify-content:center; gap:5px; flex-wrap:wrap; }
.pip-player .timer-status[hidden] { display:none; }
.pip-player .timer-status progress { width:100%; accent-color:#72d5d0; }
.pip-player .timer-readout { display:flex; flex-wrap:wrap; gap:3px 12px; justify-content:space-between; }
.pip-player .timer-status { display:grid; gap:5px; width:100%; }
.pip-player .story-text { background:#fff; color:var(--ink); padding:12px 15px; border-radius:10px; font-size:15px; }
.pip-player .story-text p, .pip-player .media-error { margin:0; }

.pip-route { position:relative; padding-inline:32px; }
.pip-route .route-head { position:relative; z-index:4; margin-bottom:42px; }
.pip-route .route-head .content-heading { margin-bottom:0; }
.pip-route .pip-stop { scroll-margin-top:110px; }
.pip-route .pip-stop h3 { font-size:clamp(25px,3vw,42px); line-height:1.08; margin:0 0 9px; }
.pip-route .pip-age { color:#126760; }
.pip-route .pip-stop details { margin-top:12px; }
.pip-route .pip-stop summary, .pip-timer summary { cursor:pointer; font-weight:700; }
.pip-route .pip-phone { display:block; align-self:center; aspect-ratio:9 / 16; }
.pip-route .pip-phone img { display:block; max-width:none; }
.pip-route .pip-phone .pip-play { line-height:1.1; }
.pip-route :focus-visible, .pip-player :focus-visible { outline:3px solid #16827b; outline-offset:3px; }
.pip-timer { scroll-margin-top:110px; }
.pip-timer h2 { color:#fff; line-height:1.05; }
.pip-timer .button { display:inline-flex; margin-top:14px; }
.pip-timer details { margin-top:14px; }
.pip-timer .dial { width:min(100%,380px); }
.pip-timer .dial .clock { bottom:0; }
.pip-player .player-head h2 { color:#fff; margin:0; }
.pip-player .story-text { color:#172b4d; }
.pip-player .story-text p + p { margin-top:8px; }
.pip-player .controls [hidden] { display:none; }
@media (max-width:760px) {
  .pip-route { padding-inline:0; }
  .pip-stop, .pip-stop:nth-child(even) { grid-template-columns:minmax(90px,34%) minmax(0,1fr); justify-content:stretch; padding-left:36px; gap:13px; }
  .pip-stop:nth-child(even) .pip-phone { order:0; }
  .pip-route .pip-stop h3 { font-size:clamp(20px,5.4vw,30px); margin-bottom:6px; }
  .pip-route .pip-stop p { font-size:14px; }
  .pip-route .pip-age { margin-bottom:4px; font-size:12px; }
  .pip-route .pip-stops { gap:37px; }
  .pip-route .pip-pin { width:13px; height:13px; border-width:2px; }
  .pip-route .pip-flyer { width:32px; }
  .pip-route .pip-flyer img { height:auto; }
  .pip-route .pip-phone { border-radius:14px; }
  .pip-route .pip-phone .pip-play { padding:7px; bottom:7px; min-width:37px; justify-content:center; font-size:0; }
  .pip-route .pip-phone .pip-play span { font-size:13px; }
  .pip-timer .timer-inner { grid-template-columns:minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .pip-route .pip-flyer, .pip-route .flown { display:none; }
  .pip-route .pip-phone, .pip-route .pip-pin { transition:none; }
  .pip-route .pip-phone:hover { transform:none; }
}

.pip-song { display: grid; grid-template-columns: minmax(0, 1fr) clamp(100px, 18vw, 175px); gap: clamp(16px, 4vw, 44px); align-items: center; margin-top: 24px; padding: clamp(20px, 4vw, 48px); background: #fff; border: 1px solid #cbd6d8; border-radius: 24px; scroll-margin-top: 110px; }
.pip-song h2 { margin-block: 4px 10px; font-size: clamp(27px, 3.5vw, 44px); }
.pip-song > img { display: block; width: 100%; height: auto; border-radius: 14px; }
.pip-song details { margin-top: 10px; }
.pip-song summary { cursor: pointer; font-weight: 700; }
@media (max-width: 560px) {
  .pip-song { grid-template-columns: minmax(0, 1fr); }
  .pip-song > img { width: 120px; grid-row: 1; }
}

/* Stille stand gebruikt dezelfde ring als de poetsvideo. */
.stille-poetstimer .timer-readout {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  max-width: 28rem;
  margin-top: 14px;
}

.stille-poetstimer[hidden],
.stille-poetstimer [hidden] { display: none; }

.stille-timer-reset {
  min-height: 44px;
  margin-inline-start: 8px;
  border: 0;
  background: transparent;
  color: #fff;
  text-decoration: underline;
  cursor: pointer;
}

#stille-timer-klok { font-variant-numeric: tabular-nums; }
.pip-timer :focus-visible { outline: 3px solid #f8d16a; outline-offset: 4px; }

/* Het videobeeld blijft op zijn plaats tijdens het kiezen. */
.pip-route .pip-phone:hover { transform: none; }

/* Het bezoek en de activiteiten voor thuis staan vóór de videoreeks. */
.pip-bezoek-stappen h3 { margin: 8px 0; }
.pip-bezoek-stappen .pip-stap-label { margin: 0; color: #126760; font-size: .9rem; font-weight: 800; }
.pip-thuis-section { scroll-margin-top: 110px; padding-top: 0; }
.pip-thuis-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 20px; }
.pip-thuis-section .pip-timer { margin: 0; padding: clamp(24px, 3.6vw, 46px); }
.pip-thuis-section .timer-inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(14px, 2vw, 30px); }
.pip-thuis-section .pip-timer h2 { font-size: clamp(1.65rem, 2.7vw, 2.75rem); }
.pip-thuis-section .pip-timer p { margin-top: 12px; }

.pip-kleurkaart { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 24px; border: 1px solid var(--line); background: #fff; }
.pip-kleurkaart img { width: 100%; height: clamp(160px, 20vw, 260px); padding: 18px; object-fit: contain; background: #f7f3eb; }
.pip-kleurkaart div { padding: 20px 24px; }
.pip-kleurkaart h3 { margin: 0 0 8px; }

@media (max-width: 900px) {
  .pip-thuis-grid { grid-template-columns: 1fr; }
  .pip-kleurkaart { display: grid; grid-template-columns: minmax(98px, .44fr) minmax(0, 1fr); align-items: center; }
  .pip-kleurkaart img { height: 140px; padding: 10px; }
}
@media (max-width: 570px) {
  .pip-thuis-section .timer-inner { grid-template-columns: 1fr; }
  .pip-thuis-section .pip-timer .dial { width: min(100%, 245px); }
  .pip-kleurkaart div { padding: 16px; }
}

/* Eigen sectienaam voorkomt botsing met de kalender-layout. */
.pip-thuis-section > .shell > .content-heading { margin-bottom: clamp(24px, 3vw, 40px); }
.pip-thuis-section .timer-inner > div:first-child { min-width: 0; }
.pip-thuis-section .pip-timer .button { white-space: normal; text-align: center; line-height: 1.35; }
.pip-thuis-section .dial svg { display: block; }
@media (max-width: 570px) {
  .pip-thuis-section .pip-timer { padding: 22px 20px 28px; }
  .pip-thuis-section .pip-timer h2 { font-size: 1.65rem; line-height: 1.15; margin: 0; }
  .pip-thuis-section .pip-timer p { font-size: 1rem; line-height: 1.6; }
  .pip-thuis-section .pip-timer .button { width: 100%; padding: 12px 14px; min-height: 48px; font-size: 1rem; }
  .pip-thuis-section .timer-inner { gap: 24px; }
  .pip-thuis-section .pip-timer .dial { width: min(100%, 220px); }
  .pip-thuis-section .pip-timer summary { font-size: 1rem; min-height: 44px; padding-block: 10px; }
}
