/* Chatdemo "Wijziging nodig? Stuur een appje." Merkkleuren uit merk.css; neutrale chatbel, geen ander merk. */
.appje { --gr: #17803d; padding-block: clamp(48px, 7vw, 104px); border-top: 1px solid var(--lijn); }
.appje-in { display: grid; gap: 32px 56px; align-items: center; }
@media (min-width: 900px) { .appje-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.appje-label { font: 400 14px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--zon-tekst); margin-bottom: 14px; }
.appje h2, .appje h1 { font: 600 clamp(30px, 4.2vw, 56px)/1.05 var(--kop); letter-spacing: -.025em; text-wrap: balance; }
.appje-belofte { margin-top: 20px; padding: 10px 16px; border-left: 3px solid var(--zon-tekst); font: 600 17px/1.4 var(--romp); color: var(--tekst); max-width: 46ch; }
.appje-tekst .appje-belofte + .appje-belofte { margin-top: 12px; }
.ac-m { display: block; margin-top: .15em; font: 400 .68em/1 var(--mono); letter-spacing: .04em; opacity: .75; text-align: right; }
.ac-kaart { display: flex; gap: .6em; align-items: center; margin-top: .5em; padding: .5em; background: var(--vlak); color: var(--tekst); border: 1px solid var(--lijn-2); border-radius: .6em; cursor: not-allowed; }
.ac-kaart-beeld { flex: none; width: 2.8em; height: 2.2em; border-radius: .35em; background: var(--diep); display: grid; place-items: center; }
.ac-kaart-beeld i { width: 1.6em; height: .55em; border-radius: 3px; background: var(--gr); }
.ac-kaart-t { display: grid; font-size: .85em; line-height: 1.25; } .ac-kaart-t small { color: var(--stil); font-size: .85em; }
.appje-tekst p + p { margin-top: 16px; }
.appje-tekst .lead-klein { color: var(--zacht); max-width: 46ch; margin-top: 20px; }
.appje-cta { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 28px; }
.appje-nr { font-size: 16px; color: var(--zacht); margin-top: 14px; max-width: 46ch; }
.appje-nr a { color: var(--zon-tekst); text-underline-offset: 3px; }
.appje-noot { font-size: 14px; color: var(--stil); margin-top: 18px; }
.appje-bed { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.appje-bed[hidden] { display: none; }
.appje-bed button { min-height: 44px; padding: 8px 16px; background: var(--vlak); color: var(--tekst); border: 1px solid var(--lijn-2); border-radius: var(--hoek); font: 500 15px/1.2 var(--romp); cursor: pointer; }
.appje-bed button:hover { border-color: var(--tekst); }

.appje-podium { container-type: inline-size; min-width: 0; font-size: 1rem; }
.appje-toneel { display: grid; gap: 1.25em; line-height: 1.4; }
@container (min-width: 36em) { .appje-toneel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; } }

.ac { background: var(--vlak); border: 1px solid var(--lijn-2); border-radius: .9em; overflow: hidden; }
.ac-kop { display: flex; align-items: center; gap: .6em; padding: .7em .9em; background: var(--diep); border-bottom: 1px solid var(--lijn); font-weight: 600; }
.ac-av { width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--inkt); color: #fff; display: grid; place-items: center; font: 600 .6em/1 var(--mono); letter-spacing: -.04em; }
.ac-bel { margin-left: auto; width: 1.1em; height: 1.1em; color: var(--stil); }
.ac-bel svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ac-bel.ping { color: var(--zon-tekst); animation: ac-bel .9s ease 2; }
@keyframes ac-bel { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(18deg); } 40% { transform: rotate(-16deg); } 60% { transform: rotate(10deg); } 80% { transform: rotate(-6deg); } }
.ac-lijst { display: flex; flex-direction: column; gap: .55em; padding: 1em .9em 1.1em; min-height: 24em; }
.ac-b { position: relative; max-width: 90%; padding: .55em .85em; border-radius: 1em; background: var(--diep); color: var(--tekst); border-bottom-left-radius: .25em; align-self: flex-start; transition: opacity .35s, transform .35s var(--vlot); }
.ac-b--eig { align-self: flex-end; background: var(--inkt); color: #fff; border-radius: 1em; border-bottom-right-radius: .25em; }
.ac-b.nieuw { box-shadow: 0 0 0 2px var(--zon); }
.ac-b.weg { opacity: 0; visibility: hidden; transform: translateY(.5em); }
.ac-t .o { visibility: hidden; }
.ac-b.tik .v::after { content: ""; display: inline-block; width: 1px; height: 1.05em; margin-left: 1px; vertical-align: -.15em; background: currentColor; animation: ac-knip .8s steps(1) infinite; }
@keyframes ac-knip { 50% { opacity: 0; } }
.ac-dots { position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: none; align-items: center; justify-content: center; gap: .3em; }
.ac-dots i { width: .45em; height: .45em; border-radius: 50%; background: var(--stil); animation: ac-spring 1s infinite; }
.ac-dots i:nth-child(2) { animation-delay: .15s; } .ac-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ac-spring { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-.3em); opacity: 1; } }
.ac-b.typ .ac-dots { display: flex; }
.ac-b.typ .ac-t, .ac-b.typ .ac-kaart, .ac-b.typ .ac-m { visibility: hidden; }

.ws { background: var(--vlak); border: 1px solid var(--lijn-2); border-radius: .6em; overflow: hidden; position: relative; }
.ws-balk { display: flex; gap: .35em; align-items: center; padding: .55em .7em; background: var(--diep); border-bottom: 1px solid var(--lijn); }
.ws-balk i { width: .55em; height: .55em; border-radius: 50%; background: var(--lijn-2); }
.ws-balk span { margin-left: .6em; flex: 1; padding: .15em .7em; background: var(--vlak); border-radius: 999px; font: 400 .72em/1.4 var(--mono); color: var(--stil); }
.ws-laad { position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--zon); opacity: 0; }
.laad .ws-laad { animation: ws-laad .6s ease-out; }
@keyframes ws-laad { 0% { width: 0; opacity: 1; } 90% { width: 100%; opacity: 1; } 100% { width: 100%; opacity: 0; } }
.ws-pag { padding: 1.4em 1.2em 1.6em; display: grid; gap: .6em; }
.ws-pag b { font: 600 1.35em/1.1 var(--kop); letter-spacing: -.02em; }
.ws-pag small { font-size: .85em; color: var(--zacht); }
.ws-regel { height: .55em; border-radius: 3px; background: var(--diep); }
.ws-regel:nth-of-type(2) { width: 82%; } .ws-regel:nth-of-type(3) { width: 64%; }
.ws-knop { justify-self: start; margin-top: .5em; padding: .65em 1.2em; border-radius: .4em; background: var(--zon); color: var(--inkt); font-weight: 600; transition: background .6s, color .6s; }
.groen .ws-knop { background: var(--gr); color: #fff; }

@media (prefers-reduced-motion: reduce) { .appje *, .appje *::before, .appje *::after { animation: none !important; transition: none !important; } }

/* losse opnamepagina: ?opname=1 (&vorm=staand|liggend) zet alleen de animatie in beeld */
.opname .balk, .opname .voet, .opname .sprong, .opname .appje-intro, .opname .appje-tekst, .opname .appje-bed, .opname .appje-na { display: none !important; }
.opname body { background: var(--diep); min-height: 100vh; }
.opname main { min-height: 100vh; display: grid; place-items: center; }
.opname .appje { border: 0; padding: 0; width: 100%; }
.opname .appje-in { display: block; }
.opname .appje-toneel { gap: 1.4em; }
.opname.staand .appje-podium { font-size: min(3.3vw, 2.35vh); width: 100%; }
.opname.staand .appje-toneel { width: 26em; margin-inline: auto; grid-template-columns: 1fr; }
.opname.liggend .appje-podium { font-size: min(1.75vw, 2.7vh); }
.opname.liggend .appje-toneel { width: 52em; margin-inline: auto; grid-template-columns: 1fr 1.1fr; align-items: center; }
