/* Kort profiel bij een portret (team-kaart.js + team-data.js).
   Teamraster (homepage, WorkxIN): rij die openklapt (keuze Jochem 30 okt, optie A uit demo-teamkaart.*), onderaan.
   Teampagina: het portret klapt om (.tk-flip); smal scherm: paneel onderin (.tk-vel). */
.team-raster { position: relative; }
.tk-lid, .tk-flip { cursor: pointer; }
.tk-lid .foto { isolation: isolate; }
.tk-badge { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: var(--geel); color: var(--inkt); display: grid; place-items: center; box-shadow: 0 4px 14px -4px rgba(0,0,0,.35); opacity: 0; transform: translateY(6px) scale(.8); transition: opacity .3s var(--ease), transform .35s var(--ease); pointer-events: none; }
.tk-badge svg { width: 16px; height: 16px; transform: rotate(-45deg); }
.tk-lid:hover .tk-badge, .tk-lid.tk-open .tk-badge, .tk-lid:not(.tk-zonder-ring):focus-visible .tk-badge { opacity: 1; transform: none; }
.tk-lid.tk-zonder-ring:focus-visible { outline: none; }   /* na sluiten met vinger/muis: geen focusring (zie sluit() in team-kaart.js) */
.team-raster .tk-lid.tk-open { transform: translateY(-4px); }
.team-raster .tk-lid.tk-open::after { opacity: 1; } /* diepere schaduw via ::after (style.css, .lid::after) */
.tk-lid.tk-open img { transform: scale(1.045); }
.tk { position: absolute; z-index: 30; width: 330px; max-width: calc(100vw - 32px); color: var(--tekst); background: var(--wit); border-radius: 16px; padding: 26px 26px 22px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 28px 60px -28px rgba(0,0,0,.42), 0 0 0 1px rgba(0,0,0,.04); background-image: linear-gradient(var(--geel) 0 6px, transparent 6px); font-size: 15.5px; line-height: 1.5; text-align: left; }
.tk[hidden] { display: none; }
.tk-kop { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.tk-functie { display: inline-block; margin: 0 0 10px; font-size: 13px; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--inkt); background: var(--geel); padding: 6px 9px 5px; border-radius: 4px; }
.tk-naam { font-size: 25px; line-height: 1.1; letter-spacing: -.01em; color: var(--inkt); }
.tk-naam span { font-weight: 500; }
.tk-zin { margin: 0 0 16px; color: var(--grijs); font-style: italic; padding-left: 14px; border-left: 2px solid var(--geel-diep); }
.tk-zin.citaat { font-size: 19px; line-height: 1.3; color: var(--inkt); border-left: 0; padding-left: 0; }
.tk-punten { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px; }
.tk-punten li { position: relative; padding-left: 20px; color: var(--inkt); font-size: 15px; line-height: 1.35; }
.tk-punten li::before { content: ""; position: absolute; left: 1px; top: .42em; width: 8px; height: 8px; border-radius: 50%; background: var(--geel); box-shadow: 0 0 0 1px rgba(0,0,0,.28); }
.tk-feiten { display: flex; gap: 22px; margin: 0 0 20px; padding-top: 14px; border-top: 1px solid var(--lijn); }
.tk-feiten dt { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--zacht); line-height: 1.3; }
.tk-feiten dd { margin: 2px 0 0; font-size: 22px; line-height: 1.1; color: var(--inkt); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
/* knop volgens het grafisch systeem (29 okt): 16px/500, padding 15-24-14, hoek 2px */
.tk-knop { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; text-decoration: none; background: var(--inkt); color: var(--wit); padding: 15px 24px 14px; border-radius: 2px; font-size: 16px; font-weight: 500; letter-spacing: .01em; line-height: 1.2; transition: background-color .25s, color .25s; }
.tk-knop svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }
.tk-knop:hover, .tk-knop:focus-visible { background: var(--geel); color: var(--inkt); }
.tk-knop:hover svg, .tk-knop:focus-visible svg { transform: translateX(4px); }
.tk-knop:focus-visible { outline: 2px solid var(--inkt); outline-offset: 3px; }
.tk-sluit { display: none; position: absolute; top: 14px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--tegel); color: var(--inkt); padding: 0; cursor: pointer; place-items: center; }
.tk-sluit svg { width: 18px; height: 18px; }
.tk-foto { flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--tegel); box-shadow: 0 0 0 3px var(--geel); }
.tk-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
/* teampagina: het portret klapt om */
.tk-houder { position: relative; }
.teamlid .tk-houder .lid { pointer-events: auto; }
@media (min-width: 861px) {
  .tk-houder { perspective: 1400px; }
  .teamlid .tk-houder .lid { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
  .js .teamlid .tk-houder .lid.in { transition: transform .45s var(--ease), opacity .45s var(--ease); }
  .js .teamlid .tk-houder.tk-om .lid { transform: rotateY(180deg); }
  .tk-flip { inset: 0; width: auto; max-width: none; padding: 24px 24px 20px; display: flex; flex-direction: column; border-radius: var(--hoek); backface-visibility: hidden; -webkit-backface-visibility: hidden; transform: rotateY(-180deg); transition: transform .45s var(--ease); background-color: var(--papier); }
  .tk-flip.zichtbaar { transform: rotateY(0); }
  .tk-flip .tk-kop { margin-bottom: 12px; }
  .tk-flip .tk-functie { margin-bottom: 9px; padding: 7px 10px 6px; } /* gelijk aan .tl-functie ernaast */
  .tk-flip .tk-naam { font-size: 24px; }
  .tk-flip .tk-zin { font-size: 15px; margin-bottom: 14px; }
  .tk-flip .tk-punten { margin-bottom: 14px; gap: 4px; }
  .tk-flip .tk-punten li { font-size: 15px; }
  .tk-flip > * { flex-shrink: 0; }
  .tk-feiten-kort { margin: 0 0 14px; padding-top: 10px; border-top: 1px solid var(--lijn); font-size: 13px; color: var(--zacht); line-height: 1.4; }
  .tk-feiten-kort b { font-weight: 500; color: var(--inkt); }
  .tk-flip .tk-knop { margin-top: auto; }
  .tk-houder:has(.lid:focus-visible) .tk-flip { outline: 2px solid var(--inkt); outline-offset: 4px; }
}
/* smal scherm: paneel onderin */
.tk-vel { position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); top: auto; z-index: 80; width: min(460px, calc(100vw - 2 * var(--rand))); max-width: none; max-height: calc(100vh - 100px); overflow-y: auto; overscroll-behavior: contain; padding: 22px 20px 18px; border-radius: 20px; transform: translate(-50%, calc(100% + 24px)); transition: transform .45s var(--ease); box-shadow: 0 -6px 30px -10px rgba(0,0,0,.25), 0 30px 60px -20px rgba(0,0,0,.5); }
.tk-vel.zichtbaar { transform: translate(-50%, 0); }
.tk-vel .tk-sluit { display: grid; }
.tk-vel .tk-kop { padding-right: 44px; }
.tk-vel .tk-functie { margin-bottom: 8px; }
@media (max-width: 560px) { .tk-vel .tk-functie { line-height: 1.35; } } /* label over twee regels: regels niet tegen elkaar */
.tk-vel .tk-naam { font-size: 22px; }
.tk-vel .tk-zin { font-size: 15px; margin-bottom: 14px; }
.tk-vel .tk-punten { grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-bottom: 14px; }
.tk-vel .tk-punten li { font-size: 15px; }
.tk-vel .tk-feiten { margin-bottom: 16px; }
.tk-vel .tk-knop { padding-block: 15px 14px; }
/* telefoons: punten onder elkaar (in twee kolommen liepen lange woorden als 'medezeggenschap' het paneel uit);
   op de smalste schermen (320) valt het ronde fotootje weg, anders schuift 'MEDEOPRICHTER' onder de sluitknop */
@media (max-width: 560px) { .tk-vel .tk-punten { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 350px) { .tk-vel .tk-foto { display: none; } }
/* zolang het vel open is geen 'naar boven'-knop (viel op liggende telefoons over de hoek van het vel) */
body:has(.tk-vel.zichtbaar) .naarboven { opacity: 0; visibility: hidden; pointer-events: none; }
/* open strook op home/WorkxIN: alleen zolang de knop 'Meer over …' onder de naar-boven-knop zou vallen (team-kaart.js wijkTeam) */
.naarboven.wijkt-team { opacity: 0; transform: translateY(10px); pointer-events: none; visibility: hidden; }
/* functielabel dat niet op één regel past: twee regels zonder losse punt (team-kaart.js labelRegels) */
.tk-functie.tk-twee .fn-sep { display: none; }
.tk-functie.tk-twee .fn-rest { display: block; }
@media (prefers-reduced-motion: reduce) {
  .tk, .tk > *, .tk-badge { transition: opacity .15s linear !important; }
  .tk > *, .tk-badge, .tk-flip { transform: none !important; }
  .tk-vel, .tk-vel.zichtbaar { transform: translate(-50%, 0) !important; }
  .tk:not(.zichtbaar) { opacity: 0; }
  .tk.zichtbaar { opacity: 1; }
  .js .teamlid .tk-houder .lid, .js .teamlid .tk-houder.tk-om .lid { transform: none !important; }
  .teamlid .tk-houder.tk-om .lid { opacity: 0 !important; }
}

/* ================= Teamraster: rij die openklapt (keuze Jochem 30 okt, optie A uit demo-teamkaart.*) =================
   Easing van de site (beweging.css): --bw-in snel in en zacht tot stilstand, --bw-uit kort en beslist terug.
   Alleen de hoogte van de strook, transform en opacity bewegen. */
.team-raster { --tk-in: var(--bw-in, cubic-bezier(.16, 1, .3, 1)); --tk-uit: var(--bw-uit, cubic-bezier(.4, 0, .2, 1)); --tk-gap: 22px; }
.wt .team-raster { --tk-gap: 18px; }
@media (max-width: 860px) { .team-raster { --tk-gap: 14px; } }
@media (max-width: 560px) { .wt .team-raster { --tk-gap: 14px; } }
/* de rij-afstand gaat naar de portretten zelf: zo voegt een dichte strook nul pixels toe en springt er niets */
.team-raster { row-gap: 0; overflow-anchor: none; margin-bottom: calc(-1 * var(--tk-gap)); }
.team-raster > .lid { margin-bottom: var(--tk-gap); }
.wt .wt-wand .team-raster { row-gap: 0; } /* workx-in.css zet een eigen gap (laadt later) */
/* knopje op het portret: plus, wordt een kruisje als de strook open is (nog eens klikken sluit) */
.team-raster .tk-badge { width: 32px; height: 32px; transition: opacity .25s var(--tk-uit), transform .3s var(--tk-uit); }
.team-raster .tk-badge svg { transform: none; transition: transform .45s var(--tk-in); }
.team-raster .tk-lid:hover .tk-badge, .team-raster .tk-lid:not(.tk-zonder-ring):focus-visible .tk-badge, .team-raster .tk-lid.tk-open .tk-badge { transition: opacity .3s var(--tk-in), transform .45s var(--tk-in); }
.team-raster .tk-lid.tk-open .tk-badge svg { transform: rotate(45deg); }
/* gekozen portret op WorkxIN: naam onderstreept (workx-in.css) en een inktrand om de foto */
.wt .lid.tk-open .foto { box-shadow: 0 0 0 2px var(--inkt); }
/* de strook */
.tk-strook { grid-column: 1 / -1; position: relative; margin-inline: -16px; }
.tk-strook.tk-beweegt { overflow: hidden; }
.tk-strook:focus { outline: none; }
.tk-strook-binnen { position: relative; padding: 12px 16px var(--tk-gap); }
.tk-pijl { position: absolute; left: 0; top: 5px; z-index: 1; width: 16px; height: 16px; border-radius: 3px 0 0 0; background: var(--papier); box-shadow: -1px -1px 0 rgba(0, 0, 0, .035); transform: translateX(calc(var(--pijl-x, 80px) - 8px)) rotate(45deg); }
.tk-strook.tk-glij .tk-pijl { transition: transform .5s var(--tk-in); }
.tk-strook-kaart { position: relative; background: var(--papier); border-radius: var(--hoek); padding: clamp(24px, 3vw, 40px); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 26px -16px rgba(0, 0, 0, .22); }
/* sluitknop: rond, 44px, zoals de carrouselknoppen */
.tk-strook-sluit { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--tegel); color: var(--inkt); display: grid; place-items: center; cursor: pointer; transition: background-color .25s; }
.tk-strook-sluit svg { width: 18px; height: 18px; }
.tk-strook-sluit:hover, .tk-strook-sluit:focus-visible { background: var(--geel); }
.tk-strook-sluit:focus-visible { outline: 2px solid var(--inkt); outline-offset: 2px; }
.tk-strook-inhoud { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .95fr); gap: 24px clamp(28px, 4vw, 64px); align-items: start; }
.tk-strook-inhoud > .tk-punten { padding-right: 24px; }
.tk-strook .tk-functie { margin-bottom: 12px; }
.tk-strook .tk-naam { font-size: clamp(25px, 2.3vw, 32px); margin-bottom: 16px; }
.tk-strook .tk-zin { margin: 0; font-size: 16px; line-height: 1.5; max-width: 46ch; }
.tk-strook .tk-punten { margin: 4px 0 0; }
.tk-strook .tk-feiten { margin: 4px 0 22px; padding-top: 0; border-top: 0; flex-wrap: wrap; gap: 14px 26px; }
.tk-strook .tk-knop { width: 100%; justify-content: flex-start; }
.tk-strook .tk-knop span { flex: 1; }
.tk-slot { display: flex; flex-direction: column; }
/* drie kolommen: de jaartallen staan rechtsboven, naast de sluitknop; ruimte houden zodat ze er niet onder lopen */
@media (min-width: 1101px) { .tk-strook .tk-slot { padding-right: 30px; } .tk-strook .tk-slot .tk-feiten { padding-right: 0; } }
/* inhoud komt rustig binnen, en gaat kort weg bij wisselen */
.tk-strook-inhoud > * { opacity: 0; transform: translateY(6px); }
.tk-strook.tk-zicht .tk-strook-inhoud > * { opacity: 1; transform: none; transition: opacity .4s var(--tk-in), transform .5s var(--tk-in); }
.tk-strook.tk-zicht .tk-strook-inhoud > :nth-child(2) { transition-delay: .05s; }
.tk-strook.tk-zicht .tk-strook-inhoud > :nth-child(3) { transition-delay: .1s; }
.tk-strook.tk-zicht .tk-strook-inhoud.tk-weg > * { opacity: 0; transform: none; transition: opacity .12s linear; transition-delay: 0s; }
.tk-strook.tk-dicht .tk-strook-inhoud > * { opacity: 0; transform: none; transition: opacity .16s linear; }
@media (max-width: 1100px) {
  .tk-strook-inhoud { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .tk-strook-inhoud > .tk-punten { padding-right: 52px; }
  .tk-slot { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid var(--lijn); }
  .tk-strook .tk-feiten { margin: 0; }
  .tk-strook .tk-knop { width: auto; }
}
@media (max-width: 640px) {
  .tk-strook-kaart { padding: 22px 20px 20px; }
  .tk-strook-inhoud { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .tk-strook-inhoud > .tk-punten, .wt .tk-strook-inhoud > .tk-punten { padding-right: 0; }
  .tk-strook .tk-wie { padding-right: 44px; }
  .tk-strook .tk-functie { line-height: 1.35; }
  .tk-strook .tk-naam { font-size: 24px; margin-bottom: 12px; }
  .tk-strook .tk-zin { font-size: 15px; }
  .tk-slot { flex-direction: column; align-items: stretch; gap: 18px; padding-top: 18px; }
  .tk-strook .tk-knop { width: 100%; }
  .tk-strook-binnen { padding-top: 10px; }
}
/* WorkxIN: witte strook op het gele vlak, hoek 2px, WorkxIN-knop */
.wt .tk-strook { margin-inline: -12px; }
.wt .tk-strook-binnen { padding-inline: 12px; }
.wt .tk-strook-kaart, .wt .tk-pijl { background: var(--wit); }
.wt .tk-strook-kaart { border-radius: 2px; box-shadow: none; padding: clamp(20px, 2.4vw, 28px); }
.wt .tk-strook-inhoud { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.wt .tk-strook-inhoud > .tk-punten { padding-right: 52px; }
.wt .tk-slot { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; border-top: 1px solid var(--lijn); }
.wt .tk-strook .tk-feiten { margin: 0; }
.wt .tk-strook .tk-naam { font-size: clamp(24px, 2vw, 28px); }
.wt .tk-strook .tk-functie { background: var(--inkt); color: var(--geel); }
.wt .tk-strook .tk-punten li::before { box-shadow: 0 0 0 1px var(--inkt); }
@media (max-width: 640px) {
  .wt .tk-strook-inhoud { grid-template-columns: minmax(0, 1fr); }
  .wt .tk-slot { flex-direction: column; align-items: stretch; }
  .wt .tk-strook .wi-knop { justify-content: space-between; }
}
/* minder beweging: alles in één keer */
@media (prefers-reduced-motion: reduce) {
  .team-raster .tk-badge, .team-raster .tk-badge svg, .tk-pijl, .tk-strook.tk-glij .tk-pijl, .tk-strook-sluit { transition: none !important; }
  .tk-strook-inhoud > *, .tk-strook.tk-zicht .tk-strook-inhoud > * { transform: none !important; transition: none !important; }
}
