/* =============================================================
   de Boer Family – huisstijl
   Eén doorlopend paars kleurverloop, DNA-streng, glazen inlogvak
   ============================================================= */
:root {
  --diep: #0e0928;
  --indigo: #1a0f45;
  --violet: #2f1b80;
  --paars: #4a26a6;
  --magenta: #6e2fae;
  --roze: #8a3a9e;
  --wit: #ffffff;
  --tekst: #f6f3ff;
  --zacht: #b9b0dc;
  --accent: #c4b5fd;
  --inkt: #1b1335;
  --grijs: #6b6684;
  --ok: #15803d;
  --fout: #b91c1c;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 15px/1.5 var(--sans);
  color: var(--tekst);
  background: linear-gradient(100deg, var(--diep) 0%, var(--indigo) 18%, var(--violet) 42%, var(--paars) 62%, var(--magenta) 82%, var(--roze) 100%) fixed;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
code { background: rgba(255,255,255,.18); padding: 0 .35rem; border-radius: 4px; }

/* ---------- Decor (achter alles) ---------- */
.decor { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.sterren { position: absolute; inset: 0; opacity: .7;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 72%, #e9d5ff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 41% 33%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 12%, #f5d0fe 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 77% 64%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 28%, #e9d5ff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 6% 86%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 90%, #f5d0fe 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 82%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 20% 46%, #e9d5ff 50%, transparent 51%);
  background-size: 640px 520px;
}
.gloed { position: absolute; border-radius: 50%; filter: blur(90px); }
.g-paars { width: 46vw; height: 46vw; left: 28vw; top: -8vw; background: #7c3aed; opacity: .35; }
.g-roze  { width: 38vw; height: 38vw; right: -6vw; top: 18vh; background: #c026d3; opacity: .28; }
.g-blauw { width: 34vw; height: 34vw; left: 38vw; bottom: -14vw; background: #4f6cf0; opacity: .3; }
.dna { position: absolute; height: 118vh; aspect-ratio: 700 / 1100; top: -9vh; left: 50%; transform: translateX(-52%);
  filter: drop-shadow(0 40px 60px rgba(14, 4, 48, .55)); transition: opacity .6s; }
body.in-app .dna { opacity: .14; }
body.in-app .g-paars, body.in-app .g-roze { opacity: .18; }

/* ---------- Inlogpagina ---------- */
.shell { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: 38% 1fr minmax(420px, 40%); align-items: center; }
.hero { grid-column: 1; text-align: center; padding: 40px 32px; }
.hero h1 { margin: 0 0 1rem; font-size: clamp(2.3rem, 4vw, 3.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; color: var(--wit);
  text-shadow: 0 6px 40px rgba(10, 4, 40, .55); }
.hero p { margin: 0 auto; max-width: 460px; font-size: clamp(1rem, 1.25vw, 1.15rem); font-weight: 300; color: rgba(246,243,255,.82); }
.zijkant { grid-column: 3; display: grid; place-items: center; padding: 40px 32px; }
.voet { position: absolute; left: 0; width: 38%; bottom: 22px; text-align: center; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(246,243,255,.6); }

/* Glazen kaart: lichter paars, niet doorzichtig, met glans */
.glas {
  position: relative; width: 100%; max-width: 400px; padding: 34px 38px 30px; border-radius: 34px; isolation: isolate;
  background: linear-gradient(150deg, #8a6cf0 0%, #6f4fdc 34%, #6a40c8 62%, #8243b8 100%);
  border: 1px solid rgba(255,255,255,.38);
  box-shadow:
    0 40px 90px rgba(12, 5, 42, .55),
    0 0 0 1px rgba(255,255,255,.05),
    0 0 80px rgba(167, 112, 255, .35),
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -30px 60px rgba(40, 10, 90, .25);
  overflow: hidden;
  overflow: clip;            /* geen verborgen schuiven van de inhoud als een veld focus krijgt */
}
.glas::before { /* glanslaag */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255,255,255,.32) 0%, rgba(255,255,255,.08) 28%, rgba(255,255,255,0) 48%),
    radial-gradient(120% 60% at 50% 0%, rgba(255,255,255,.18), transparent 60%);
}
.glas::after { /* lichte schittering rechtsonder */
  content: ""; position: absolute; z-index: -1; width: 220px; height: 220px; right: -70px; bottom: -90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,170,255,.55), transparent 65%);
}
.badge { width: 128px; height: 128px; margin: -2px auto 16px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.32), rgba(255,255,255,.08) 70%);
  border: 1px solid rgba(255,255,255,.38); box-shadow: inset 0 2px 10px rgba(255,255,255,.2), 0 10px 30px rgba(30, 8, 80, .35); }
.badge img { width: 94px; height: auto; filter: drop-shadow(0 2px 4px rgba(20, 0, 60, .35)); }
.glas h2 { text-align: center; margin: 0 0 22px; font-weight: 500; font-size: 1.4rem; letter-spacing: -.01em; color: var(--wit); }
.glas form { display: flex; flex-direction: column; }
.veld { display: flex; align-items: center; gap: 12px; border-bottom: 1.5px solid rgba(255,255,255,.6); padding: 10px 2px; margin-bottom: 16px; transition: border-color .2s; }
.veld:focus-within { border-bottom-color: #fff; box-shadow: 0 6px 12px -10px rgba(255,255,255,.8); }
.veld > svg { width: 19px; height: 19px; flex: none; fill: none; stroke: rgba(255,255,255,.92); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.veld input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: 400 1rem var(--sans); letter-spacing: .01em; }
.veld input::placeholder { color: rgba(255,255,255,.8); }
.veld input:-webkit-autofill { -webkit-text-fill-color: #fff; transition: background-color 9999s; }
.oog { background: none; border: 0; padding: 2px; cursor: pointer; display: grid; }
.oog svg { width: 19px; height: 19px; fill: none; stroke: rgba(255,255,255,.75); stroke-width: 1.8; }
.oog:hover svg, .oog.aan svg { stroke: #fff; }
.regel { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 4px 0 22px; }
.vink { display: flex; align-items: center; gap: 9px; font-size: .86rem; color: rgba(255,255,255,.88); cursor: pointer; }
.link.zacht { font-weight: 500; font-size: .84rem; text-decoration: none; color: rgba(255,255,255,.88); }
.link.zacht:hover { text-decoration: underline; color: #fff; }
.vink input { width: 16px; height: 16px; accent-color: #2a0b52; }
.knop { width: 100%; border: 0; border-radius: 16px; padding: 15px; color: #fff; cursor: pointer;
  font: 600 .88rem var(--sans); letter-spacing: .22em; text-transform: uppercase;
  background: linear-gradient(90deg, #2a0b52 0%, #4527b0 55%, #7b8cf6 100%);
  box-shadow: 0 12px 30px rgba(30, 8, 90, .5), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .1s, filter .2s; }
.knop:hover { filter: brightness(1.12); }
.knop:active { transform: translateY(1px); }
.knop:disabled { filter: grayscale(.4) brightness(.9); cursor: wait; }
.onder { text-align: center; margin: 18px 0 0; font-size: .86rem; color: rgba(255,255,255,.82); }
.link { background: none; border: 0; padding: 0; font: 600 .86rem var(--sans); color: #fff; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.klein { font-size: .86rem; color: rgba(255,255,255,.85); margin: -10px 0 16px; text-align: center; }
.midden-tekst { margin: 0 0 20px; }
.melding { margin: 16px 0 0; padding: .65rem .8rem; border-radius: 12px; font-size: .86rem; }
.melding.fout { background: rgba(255,255,255,.92); color: var(--fout); }
.melding.ok { background: rgba(255,255,255,.92); color: var(--ok); }
.midden { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 16px; }

/* ---------- Na het inloggen ---------- */
#app-view { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.balk { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; padding: 14px 28px;
  background: rgba(14, 9, 40, .55); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.1); }
.merk { text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; color: #fff; }
.merk span { font-weight: 300; color: var(--accent); }
.tabs { display: flex; gap: .3rem; flex: 1; flex-wrap: wrap; }
.tab { text-decoration: none; background: none; border: 0; color: var(--zacht); font: 500 .92rem var(--sans); padding: .45rem .9rem; border-radius: 10px; cursor: pointer; }
.tab:hover { color: #fff; background: rgba(255,255,255,.06); }
.tab.actief { color: #fff; background: rgba(255,255,255,.1); box-shadow: inset 0 -2px 0 var(--accent); }
.teller { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: .3rem; border-radius: 99px; background: #f0abfc; color: var(--inkt); font-size: .72rem; font-weight: 700; }
.wie { display: flex; align-items: center; gap: .7rem; color: var(--zacht); font-size: .88rem; }
.knop-rand { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 10px; padding: .4rem .9rem; font: 500 .85rem var(--sans); cursor: pointer; }
.knop-rand:hover { background: rgba(255,255,255,.14); }
.paneel { width: 100%; max-width: 1100px; margin: 0 auto; padding: 44px 24px 24px; flex: 1; }
.welkom { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -.025em; margin: 0 0 .4rem; color: #fff; }
.sub { color: var(--zacht); margin: 0 0 1.8rem; }
.app-voet { position: static; width: auto; padding: 32px 16px; }

.lijst { background: #fff; color: var(--inkt); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px rgba(12, 5, 42, .35); }
.rij { display: grid; grid-template-columns: 40px 1fr auto auto; gap: .9rem; align-items: center; padding: .85rem 1.1rem; border-bottom: 1px solid #ece9f5; }
.rij:last-child { border-bottom: 0; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #4527b0, #8a3a9e); }
.rij .naam strong { display: block; }
.rij .naam span { color: var(--grijs); font-size: .85rem; }
.rol { font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 99px; text-transform: uppercase; letter-spacing: .05em; }
.rol.admin { background: #ede9fe; color: #5b21b6; }
.rol.lid { background: #dcfce7; color: var(--ok); }
.rol.wachtend { background: #fee2e2; color: var(--fout); }
.rol.geblokkeerd { background: #f1f5f9; color: var(--grijs); }
.rij .acties { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.lijst .klein { color: var(--grijs); text-align: left; }
.mini { font: 500 .82rem var(--sans); padding: .35rem .75rem; border-radius: 8px; border: 1px solid #d9d4ea; background: #fff; color: var(--inkt); cursor: pointer; }
.mini:hover { border-color: #4527b0; }
.mini.ok { color: var(--ok); border-color: #86efac; }
.mini.fout { color: var(--fout); }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #fff; color: var(--inkt); padding: .75rem 1.1rem; border-radius: 12px;
  box-shadow: 0 16px 40px rgba(12, 5, 42, .45); z-index: 50; max-width: calc(100% - 32px); border-left: 4px solid #7c3aed; }
.toast.fout { border-left-color: var(--fout); }

/* ---------- Tablet / telefoon ---------- */
@media (max-width: 1100px) {
  .shell { grid-template-columns: 42% 1fr minmax(380px, 44%); }
  .dna { left: 52%; height: 105vh; top: -3vh; }
  .voet { width: 42%; }
}
@media (max-width: 860px) {
  body { background: linear-gradient(170deg, var(--diep) 0%, var(--indigo) 22%, var(--violet) 48%, var(--paars) 70%, var(--magenta) 88%, var(--roze) 100%) fixed; }
  .shell { grid-template-columns: 1fr; align-content: start; padding-bottom: 64px; }
  .hero, .zijkant { grid-column: 1; }
  .hero { padding: 64px 20px 12px; }
  .hero h1 { font-size: 2.3rem; }
  .zijkant { padding: 20px 16px; }
  .glas { padding: 28px 24px 26px; border-radius: 28px; }
  .dna { height: 78vh; width: auto; top: -14vh; left: auto; right: -42vw; transform: none; opacity: .4; }
  .voet { bottom: 18px; width: auto; right: 0; }
  .balk { padding: 10px 16px; gap: .8rem; }
  .wie #user-naam { display: none; }
  .paneel { padding: 28px 16px 16px; }
  .rij { grid-template-columns: 40px 1fr auto; }
  .rij .acties { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ---------- Glazen tegels ---------- */
.tegels { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 20px; }
.tegel {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: .3rem;
  padding: 1.5rem 1.4rem 1.35rem; border-radius: 24px; text-decoration: none; color: #fff; min-height: 168px;
  background: linear-gradient(150deg, rgba(255,255,255,.17), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 18px 40px rgba(12,5,42,.32), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s, border-color .4s, background .4s;
  animation: opkomen .55s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: calc(var(--i, 0) * 55ms);
}
.tegel::before {      /* lichtstreep die over de tegel glijdt */
  content: ""; position: absolute; z-index: -1; top: 0; left: -70%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.3), transparent); transform: skewX(-20deg); transition: left .8s ease;
}
.tegel::after {       /* gloed die oplicht */
  content: ""; position: absolute; z-index: -2; inset: auto -30% -60% auto; width: 80%; height: 120%; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,140,255,.55), transparent 65%); opacity: 0; transition: opacity .4s;
}
.tegel:hover, .tegel:focus-visible {
  transform: translateY(-8px) scale(1.03); border-color: rgba(255,255,255,.5); outline: none;
  background: linear-gradient(150deg, rgba(255,255,255,.27), rgba(255,255,255,.09));
  box-shadow: 0 32px 64px rgba(12,5,42,.5), 0 0 56px rgba(178,120,255,.5), inset 0 1px 0 rgba(255,255,255,.45);
}
.tegel:hover::before, .tegel:focus-visible::before { left: 125%; }
.tegel:hover::after, .tegel:focus-visible::after { opacity: 1; }
.tegel .ic { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; margin-bottom: .7rem;
  background: linear-gradient(135deg, rgba(255,255,255,.38), rgba(255,255,255,.08)); border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 10px 22px rgba(30,8,80,.35), inset 0 1px 0 rgba(255,255,255,.4); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.tegel:hover .ic { transform: translateY(-3px) rotate(-5deg) scale(1.08); }
.ic svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tegel strong { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.tegel small { color: rgba(246,243,255,.72); font-size: .86rem; }
.tegel .pijl { position: absolute; right: 20px; bottom: 18px; font-size: 1.2rem; opacity: 0; transform: translateX(-8px); transition: .4s; }
.tegel:hover .pijl { opacity: .95; transform: none; }
.tegel .label { position: absolute; top: 16px; right: 16px; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; padding: .22rem .6rem; border-radius: 99px;
  background: rgba(240,171,252,.22); border: 1px solid rgba(240,171,252,.55); color: #fbe7ff; }
.tegel.later { opacity: .78; }
.tegels.jaren { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px; }
.tegel.jaar { min-height: 0; align-items: center; justify-content: center; padding: 1.3rem .8rem 1.1rem; border-radius: 20px; animation-delay: calc(var(--i, 0) * 25ms); }
.tegel.jaar .getal { font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.03em;
  background: linear-gradient(180deg, #fff 30%, #d9c6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tegel.jaar small { text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; }
@keyframes opkomen { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* ---------- Kruimelpad & kopjes ---------- */
.kruimels { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .86rem; color: var(--zacht); margin-bottom: .9rem; }
.kruimels a { color: var(--accent); text-decoration: none; }
.kruimels a:hover { color: #fff; text-decoration: underline; }
.kruimels span:last-child { color: #fff; }

/* ---------- Verhalen | Foto's ---------- */
.schakel { display: inline-flex; gap: 4px; padding: 5px; border-radius: 16px; margin: .4rem 0 1.6rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(12px); }
.schakel button { display: inline-flex; align-items: center; gap: .5rem; border: 0; background: none; color: var(--zacht); font: 600 .95rem var(--sans);
  padding: .6rem 1.15rem; border-radius: 12px; cursor: pointer; transition: background .25s, color .25s; }
.schakel button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.schakel button:hover { color: #fff; }
.schakel button.actief { color: #fff; background: linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.1)); box-shadow: 0 6px 18px rgba(20,6,60,.35), inset 0 1px 0 rgba(255,255,255,.35); }
.aantal:not(:empty) { font-size: .72rem; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center; background: #f0abfc; color: var(--inkt); }
.deel-kop { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.deel-kop h2 { margin: 0; font-size: 1.3rem; font-weight: 600; }
.knop.klein-knop { width: auto; display: inline-flex; align-items: center; gap: .45rem; padding: .7rem 1.1rem; letter-spacing: .06em; font-size: .82rem; }
.knop.klein-knop svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }

.verhalen { display: flex; flex-direction: column; gap: 16px; }
.verhaal { padding: 1.4rem 1.5rem; border-radius: 22px; background: linear-gradient(150deg, rgba(255,255,255,.15), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(14px); box-shadow: 0 18px 40px rgba(12,5,42,.28), inset 0 1px 0 rgba(255,255,255,.2);
  animation: opkomen .5s backwards; }
.verhaal-kop { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: .7rem; }
.verhaal h3 { margin: 0; font-size: 1.15rem; font-weight: 600; }
.verhaal .meta { font-size: .82rem; color: var(--accent); margin-top: .15rem; }
.verhaal-tekst { white-space: pre-wrap; line-height: 1.65; color: rgba(246,243,255,.9); }
.verhaal.ingeklapt .verhaal-tekst { max-height: 9.9em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.lees-meer { margin-top: .5rem; font-weight: 600; }
.verhaal-acties { display: flex; gap: .35rem; flex: none; }
.mini-licht { font: 500 .8rem var(--sans); padding: .35rem .7rem; border-radius: 9px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.mini-licht:hover { background: rgba(255,255,255,.18); }
.mini-licht.rood:hover { background: rgba(239,68,68,.35); border-color: rgba(252,165,165,.6); }
.leeg { color: var(--zacht); }
.leeg-kaart { display: flex; align-items: center; gap: 1rem; padding: 1.4rem 1.5rem; border-radius: 22px; border: 1px dashed rgba(255,255,255,.28); color: var(--zacht); }
.leeg-kaart svg { width: 34px; height: 34px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.6; }
.leeg-kaart p { margin: 0; }

.foto-info { display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.6rem; border-radius: 24px;
  background: linear-gradient(150deg, rgba(255,255,255,.16), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(12,5,42,.28), inset 0 1px 0 rgba(255,255,255,.22); }
.foto-info h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
.foto-info p { margin: 0 0 .8rem; color: rgba(246,243,255,.85); }
.ic.groot { flex: none; width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6); box-shadow: 0 12px 26px rgba(40,20,120,.45), inset 0 1px 0 rgba(255,255,255,.4); }
.ic.groot svg { width: 30px; height: 30px; }
.mappad { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem; padding: .55rem .8rem; border-radius: 12px; margin-bottom: .8rem;
  background: rgba(10,6,34,.45); border: 1px solid rgba(255,255,255,.14); font: 500 .9rem var(--sans); }
.mappad i { font-style: normal; color: var(--accent); }
.klein-tekst { font-size: .85rem; color: var(--zacht) !important; margin: 0 !important; }
.grijs-tekst { font-size: .85rem; color: var(--grijs); }

/* ---------- Naam in de balk ---------- */
.naam-knop { display: inline-flex; align-items: center; gap: .55rem; background: none; border: 0; color: #fff; font: 500 .9rem var(--sans); cursor: pointer; padding: .2rem .4rem; border-radius: 99px; }
.naam-knop:hover { background: rgba(255,255,255,.08); }
.avatar-klein { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem;
  background: linear-gradient(135deg, #7c5cf0, #c04fb0); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }

/* ---------- Dialogen ---------- */
.dialoog { border: 0; padding: 0; background: none; max-width: calc(100% - 32px); overflow: visible; }
.dialoog::backdrop { background: rgba(8, 4, 28, .6); backdrop-filter: blur(6px); }
.dialoog .glas { margin: 0 auto; }
.glas.breed { max-width: 560px; width: 560px; }
.tekstvak { width: 100%; resize: vertical; min-height: 180px; margin: 4px 0 18px; padding: .8rem .9rem; border-radius: 14px; border: 1px solid rgba(255,255,255,.4);
  background: rgba(20, 8, 60, .25); color: #fff; font: 400 .98rem/1.6 var(--sans); outline: 0; }
.tekstvak::placeholder { color: rgba(255,255,255,.7); }
.tekstvak:focus { border-color: #fff; }
.veld input[type=date] { color-scheme: dark; }
.knoppen { display: flex; gap: .6rem; justify-content: flex-end; }
.knoppen .knop { width: auto; padding: 13px 26px; }
.twee { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; }
.twee > .veld { min-width: 0; }

@media (prefers-reduced-motion: reduce) {
  .tegel, .verhaal { animation: none; }
  .tegel:hover, .tegel:focus-visible { transform: none; }
}
@media (max-width: 860px) {
  .tegels { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .tegel { min-height: 150px; padding: 1.2rem 1.1rem; }
  .tegels.jaren { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; }
  .glas.breed { width: auto; }
  .naam-knop #user-naam { display: none; }
  .foto-info { flex-direction: column; }
  .verhaal-kop { flex-direction: column; }
}

/* ---------- Indeling met zijbalk ---------- */
.app-raam { width: 100%; flex: 1; }
.app-raam .zijbalk, .app-raam .menu-knop { display: none; }
.app-raam.met-zijbalk { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 32px; max-width: 1420px; margin: 0 auto; padding: 32px 24px 0; align-items: start; }
.app-raam.met-zijbalk .zijbalk { display: block; }
.app-raam.met-zijbalk .paneel { max-width: none; margin: 0; padding: 12px 0 24px; }
.app-midden { min-width: 0; }

/* Glazen zijbalk, zelfde look als het inlogvak */
.zijbalk {
  position: sticky; top: 88px; max-height: calc(100vh - 112px); overflow: auto; padding: 18px 14px 16px; border-radius: 26px;
  background: linear-gradient(160deg, rgba(138,108,240,.42), rgba(106,64,200,.3) 55%, rgba(130,67,184,.34));
  border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 30px 70px rgba(12,5,42,.45), inset 0 1px 0 rgba(255,255,255,.35);
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent;
}
.zijbalk-kop { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 10px; margin-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.16);
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.zijbalk-sluit { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.boom ul { list-style: none; margin: 0; padding: 0 0 0 14px; }
.boom > ul { padding-left: 0; }
.boom li > ul, .boom li > .boom-jaren { margin-left: 10px; border-left: 1px solid rgba(255,255,255,.14); }
.boom-rij { display: flex; align-items: center; gap: 2px; border-radius: 12px; margin: 1px 0; transition: background .2s; }
.boom-rij:hover { background: rgba(255,255,255,.1); }
.boom-rij.op-pad > a { color: #fff; }
.boom-rij.actief { background: linear-gradient(135deg, rgba(255,255,255,.3), rgba(255,255,255,.12)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 16px rgba(20,6,60,.3); }
.boom-rij.actief > a { color: #fff; font-weight: 600; }
.boom-rij a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 7px 8px 7px 2px; color: rgba(246,243,255,.82); text-decoration: none; font-size: .9rem; }
.boom-rij a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.boom-rij a svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.boom-rij a em { font-style: normal; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; padding: .1rem .4rem; border-radius: 99px; background: rgba(240,171,252,.25); color: #fbe7ff; margin-left: auto; }
.klap, .klap-ruimte { flex: none; width: 24px; height: 24px; }
.klap { display: grid; place-items: center; background: none; border: 0; border-radius: 7px; cursor: pointer; color: rgba(255,255,255,.75); padding: 0; }
.klap:hover { background: rgba(255,255,255,.14); color: #fff; }
.klap svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.boom li.open > .boom-rij .klap svg { transform: rotate(90deg); }
.boom-jaren { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 5px; padding: 6px 4px 8px 12px; }
.jaar-chip { display: grid; place-items: center; height: 30px; border-radius: 9px; font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.85); text-decoration: none;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); transition: .2s; }
.jaar-chip:hover { background: rgba(255,255,255,.2); color: #fff; transform: translateY(-1px); }
.jaar-chip.actief { background: linear-gradient(135deg, #fff, #e3d4ff); color: #3b1d8f; border-color: transparent; box-shadow: 0 4px 12px rgba(20,6,60,.35); }
.boom-scheiding { height: 1px; background: rgba(255,255,255,.16); margin: 10px 8px; }

.menu-knop { align-items: center; gap: .5rem; margin: 0 0 6px; padding: .55rem 1rem; border-radius: 12px; cursor: pointer; color: #fff; font: 600 .9rem var(--sans);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px); }
.menu-knop svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.zijbalk-achter { display: none; }

/* ---------- Vraag het ons ---------- */
.vraag-kaart { max-width: 640px; }
.vraag-kaart .tekstvak { min-height: 170px; }
.klein.links { text-align: left; margin: -6px 0 16px; }
.vraag-kaart.bedankt { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.vraag-kaart.bedankt .ic.groot { margin-bottom: .4rem; }
.vraag-kaart.bedankt .ic.groot svg { fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vraag-kaart.bedankt .knop { margin-top: .8rem; width: auto; padding: 14px 28px; }
.rij .acties .mini[data-reset] { color: #5b21b6; }

@media (max-width: 1000px) {
  .app-raam.met-zijbalk { display: block; padding: 20px 16px 0; }
  .app-raam.met-zijbalk .menu-knop { display: inline-flex; }
  .app-raam.met-zijbalk .zijbalk { display: block; position: fixed; z-index: 40; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); max-height: none; border-radius: 0 26px 26px 0;
    transform: translateX(-105%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
    background: linear-gradient(160deg, #6f4fdc, #5a36b8 55%, #6f3aa8); }
  .zijbalk-sluit { display: block; }
  body.menu-open .app-raam.met-zijbalk .zijbalk { transform: none; }
  body.menu-open .zijbalk-achter { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(8,4,28,.55); backdrop-filter: blur(3px); }
}

/* =============================================================
   Foto's uit OneDrive
   ============================================================= */
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.foto { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in;
  background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.05)); box-shadow: 0 10px 26px rgba(12,5,42,.3), inset 0 0 0 1px rgba(255,255,255,.14);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; animation: opkomen .5s backwards; animation-delay: calc(var(--i, 0) * 22ms); }
.foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .4s; }
.foto:hover, .foto:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(12,5,42,.45), 0 0 0 2px rgba(196,181,253,.7); outline: 0; }
.foto:hover img { transform: scale(1.06); filter: brightness(1.06) saturate(1.08); }
.foto.laden { cursor: default; animation: glinster 1.4s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes glinster { 0%, 100% { opacity: .45; } 50% { opacity: .9; } }
.foto .speel { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(14,9,40,.55); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.foto .speel svg { width: 20px; height: 20px; fill: #fff; stroke: none; margin-left: 3px; }
.foto .geen-beeld, .foto.kapot::after { position: absolute; inset: 0; display: grid; place-items: center; }
.foto .geen-beeld svg { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.6; }
.foto.kapot img { opacity: 0; }
.foto.kapot::after { content: "Niet beschikbaar"; color: var(--zacht); font-size: .78rem; }
.deel.los { margin-top: 2.2rem; }
.mini-licht.met-ic { display: inline-flex; align-items: center; gap: .4rem; }
.mini-licht.met-ic svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mini-licht.draait svg { animation: draai 1s linear infinite; }
@keyframes draai { to { transform: rotate(360deg); } }
.foto-info a { color: #fff; font-weight: 600; }

/* Jaartegels: aantal foto's en lege jaren iets rustiger */
.tegel.jaar { position: relative; }
.tegel.jaar.stil { opacity: .55; }
.tegel.jaar.stil:hover { opacity: .9; }
.tegel.jaar .stip { position: absolute; top: 8px; right: 8px; font-size: .66rem; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 99px; display: grid; place-items: center; background: #f0abfc; color: var(--inkt); }

/* ---------- Lichtbak ---------- */
.lichtbak { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(8, 4, 28, .94); color: #fff; overflow: hidden; }
.lichtbak[open] { display: grid; grid-template-rows: auto 1fr; animation: lbIn .25s ease-out; }
.lichtbak::backdrop { background: rgba(8, 4, 28, .7); backdrop-filter: blur(10px); }
@keyframes lbIn { from { opacity: 0; } }
body.lb-open { overflow: hidden; }
.lb-balk { display: flex; align-items: center; gap: 1rem; padding: 14px 18px; z-index: 2; }
.lb-teller { font-weight: 700; font-variant-numeric: tabular-nums; padding: .25rem .7rem; border-radius: 99px; background: rgba(255,255,255,.12); font-size: .85rem; }
.lb-naam { flex: 1; min-width: 0; color: var(--zacht); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-knop, .lb-pijl { border: 0; cursor: pointer; color: #fff; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); backdrop-filter: blur(8px); transition: background .2s, transform .2s; }
.lb-knop { width: 42px; height: 42px; }
.lb-knop:hover, .lb-pijl:hover { background: rgba(255,255,255,.24); }
.lb-knop svg, .lb-pijl svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lb-pijl { position: absolute; top: 50%; width: 54px; height: 54px; transform: translateY(-50%); z-index: 2; }
.lb-pijl:hover { transform: translateY(-50%) scale(1.08); }
.lb-pijl.vorige { left: 18px; }
.lb-pijl.volgende { right: 18px; }
.lb-pijl[hidden] { display: none; }
.lb-beeld { margin: 0; min-height: 0; display: grid; place-items: center; padding: 0 86px 22px; }
.lb-beeld img, .lb-beeld video { max-width: 100%; max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); object-fit: contain; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.55); animation: lbIn .2s ease-out; }
.lb-beeld video { width: min(100%, 1280px); background: #000; }

/* ---------- Beheer: OneDrive-kaart ---------- */
.od-kaart { padding: 1.4rem 1.5rem; border-radius: 22px; margin-bottom: 2rem;
  background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.06)); box-shadow: 0 20px 50px rgba(12,5,42,.35), inset 0 0 0 1px rgba(255,255,255,.18); }
.od-kaart:empty { display: none; }
.od-kop { display: flex; gap: 1rem; align-items: flex-start; }
.od-kop .ic { width: 48px; height: 48px; flex: none; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(135deg, #8b5cf6, #c026d3); }
.od-kop .ic svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; }
.od-kop h3 { margin: 0 0 .25rem; font-size: 1.12rem; }
.od-kop p { margin: 0; color: rgba(246,243,255,.88); }
.od-kop .klein-tekst { margin-top: .6rem; font-size: .8rem; color: var(--zacht); word-break: break-all; }
.od-kop code { font-size: .82em; padding: .1rem .35rem; border-radius: 6px; background: rgba(0,0,0,.25); }
.od-stip { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .45rem; vertical-align: 1px; }
.od-stip.aan { background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.od-stip.uit { background: #fbbf24; box-shadow: 0 0 10px #fbbf24; }
.od-knoppen { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; padding-left: 64px; align-items: center; }
.lijst-kop { font-size: 1.15rem; font-weight: 600; margin: 0 0 .8rem; }

@media (max-width: 700px) {
  .fotos { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
  .foto { border-radius: 11px; }
  .lb-beeld { padding: 0 8px 70px; }
  .lb-beeld img, .lb-beeld video { max-height: calc(100dvh - 150px); }
  .lb-pijl { top: auto; bottom: 14px; transform: none; width: 50px; height: 50px; }
  .lb-pijl:hover { transform: none; }
  .lb-pijl.vorige { left: calc(50% - 62px); }
  .lb-pijl.volgende { right: calc(50% - 62px); }
  .od-knoppen { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .foto, .foto img, .lb-beeld img, .lichtbak[open] { animation: none; transition: none; }
}

/* Jaartallen als mapnaam (bijv. 2001) */
.tegel.jaar.jaartal .getal { font-size: 1.85rem; }
.tegel.jaar.jaartal .stip { top: 5px; right: 5px; }
.boom-jaren:has(.jaartal) { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); }

/* ---------- Gebruikers in groepen ---------- */
.groepen { display: grid; gap: 1.8rem; }
.groep-kop { display: flex; align-items: center; gap: .9rem; margin-bottom: .8rem; }
.groep-kop h2 { margin: 0; font-size: 1.15rem; font-weight: 600; display: flex; align-items: center; gap: .5rem; }
.groep-kop p { margin: .1rem 0 0; color: var(--zacht); font-size: .86rem; }
.groep-ic { width: 40px; height: 40px; flex: none; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.groep-ic svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.groep-aantal { font-size: .72rem; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; display: inline-grid; place-items: center; background: rgba(255,255,255,.16); }
.groep.admin .groep-ic { background: linear-gradient(135deg, #f5c451, #d97706); box-shadow: 0 8px 20px rgba(217,119,6,.35), inset 0 1px 0 rgba(255,255,255,.5); }
.groep.admin .lijst { box-shadow: 0 30px 60px rgba(12,5,42,.35), 0 0 0 3px rgba(245,196,81,.55); }
.groep.wachtend .groep-ic { background: linear-gradient(135deg, #fb7185, #e11d48); }
.groep.wachtend .lijst { box-shadow: 0 30px 60px rgba(12,5,42,.35), 0 0 0 3px rgba(251,113,133,.55); }
.groep.geblokkeerd { opacity: .8; }
.avatar.admin { background: linear-gradient(135deg, #f5c451, #d97706); }
.rol.admin { background: #fef3c7; color: #92400e; }


/* ---------- "Deze foto graag verwijderen" ---------- */
.lb-tekstknop { display: inline-flex; align-items: center; gap: .45rem; border: 0; cursor: pointer; color: #fff; font: 500 .85rem var(--sans);
  padding: .55rem .95rem; border-radius: 99px; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); transition: background .2s; }
.lb-tekstknop:hover { background: rgba(255,255,255,.22); }
#lb-verwijder:hover { background: rgba(239,68,68,.35); }
.lb-tekstknop svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vw-foto { display: flex; gap: .9rem; align-items: center; padding: .7rem; border-radius: 16px; background: rgba(10,6,34,.35); margin-bottom: 1rem; }
.vw-foto img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; flex: none; background: rgba(255,255,255,.1); }
.vw-foto strong { display: block; word-break: break-all; }
.vw-foto span { font-size: .82rem; color: var(--zacht); }
.vw-redenen { display: grid; gap: 6px; margin: .3rem 0 .9rem; }
.vw-reden { display: flex; align-items: center; gap: .7rem; padding: .62rem .85rem; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); transition: background .15s, box-shadow .15s; }
.vw-reden:hover { background: rgba(255,255,255,.14); }
.vw-reden input { accent-color: #f0abfc; width: 17px; height: 17px; margin: 0; flex: none; }
.vw-reden:has(input:checked) { background: rgba(255,255,255,.22); box-shadow: inset 0 0 0 1.5px #f0abfc; }
.vw-info { margin: .6rem 0 1rem !important; font-size: .8rem; color: var(--zacht); }
#verwijder-dialog { z-index: 10; }

/* Beheer: lijst verwijderverzoeken */
.verzoeken { margin-bottom: 1.8rem; }
.groep.verzoeken .groep-ic { background: linear-gradient(135deg, #f472b6, #db2777); }
.vz-rij { grid-template-columns: 64px 1fr auto auto; align-items: start; }
.vz-beeld { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: #ece9f5; }
.vz-beeld img { width: 100%; height: 100%; object-fit: cover; }
.vz-beeld.leeg svg { width: 26px; height: 26px; fill: none; stroke: #8b80b3; stroke-width: 1.6; }
.vz-rij .naam span { display: block; }
.vz-rij .naam em { font-style: normal; color: #b45309; }
.vz-reden { color: var(--inkt) !important; font-weight: 500; margin: .15rem 0; }
.rol.vz-open { background: #fee2e2; color: var(--fout); }
.rol.vz-verborgen { background: #f1f5f9; color: var(--grijs); }
.rol.vz-afgewezen, .rol.vz-teruggezet { background: #dcfce7; color: var(--ok); }
.vz-afwijzen { grid-column: 2 / -1; display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.vz-afwijzen[hidden] { display: none; }
.vz-opmerking { flex: 1; min-width: 200px; font: .88rem var(--sans); padding: .45rem .7rem; border-radius: 8px; border: 1px solid #d9d4ea; color: var(--inkt); }
.vz-klaar { margin-top: .9rem; }
.vz-klaar summary { cursor: pointer; color: var(--zacht); font-size: .9rem; margin-bottom: .6rem; }

@media (max-width: 700px) {
  .lb-tekstknop span { display: none; }
  .lb-tekstknop { padding: .6rem; }
  .vz-rij { grid-template-columns: 52px 1fr; }
  .vz-beeld { width: 52px; height: 52px; }
  .vz-rij .rol, .vz-rij .acties { grid-column: 2; justify-self: start; }
}
.dialoog { color: var(--tekst, #f6f3ff); }
.vw-foto strong, .vw-reden span { color: #fff; }
#vw-toelichting { min-height: 0; height: 72px; resize: vertical; }
#verwijder-form { max-height: calc(100dvh - 24px); overflow-y: auto; }
@media (max-width: 700px) {
  #verwijder-form { padding: 24px 20px 20px; }
  .vw-reden { padding: .5rem .75rem; }
  .vw-foto img { width: 48px; height: 48px; }
}

/* =============================================================
   Hartjes en reacties
   ============================================================= */
.praat { --rood: #f472b6; }
.praat-balk { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.hart-knop, .praat-knop { display: inline-flex; align-items: center; gap: .4rem; border: 0; cursor: pointer; color: #fff; font: 600 .88rem var(--sans);
  padding: .42rem .8rem; border-radius: 99px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); transition: background .2s, transform .15s; }
.hart-knop:hover, .praat-knop:hover { background: rgba(255,255,255,.2); }
.hart-knop:active { transform: scale(.92); }
.hart-knop svg, .praat-knop svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.hart-knop.aan { background: rgba(244,114,182,.22); box-shadow: inset 0 0 0 1px rgba(244,114,182,.6); }
.hart-knop.aan svg { fill: var(--rood); stroke: var(--rood); animation: hartPop .35s ease-out; }
@keyframes hartPop { 40% { transform: scale(1.35); } }
.praat-knop.aan { background: rgba(255,255,255,.22); }
.hart-namen { font-size: .84rem; color: var(--zacht); min-width: 0; }
.praat-deel { margin-top: .9rem; }
.praat-leeg { color: var(--zacht); font-size: .88rem; margin: .4rem 0 .8rem; }
.reacties { display: grid; gap: .8rem; margin-bottom: .9rem; }
.reactie { display: grid; grid-template-columns: 32px 1fr; gap: .65rem; }
.reactie.antwoord { margin-left: 2.6rem; }
.r-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .82rem; flex: none;
  background: linear-gradient(135deg, #7c5cf0, #c04fb0); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.reactie.antwoord .r-avatar { width: 26px; height: 26px; font-size: .72rem; }
.r-body { min-width: 0; background: rgba(255,255,255,.08); border-radius: 4px 16px 16px 16px; padding: .55rem .8rem .45rem; }
.r-kop { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.r-kop strong { font-size: .9rem; }
.r-kop span { font-size: .76rem; color: var(--zacht); }
.r-tekst { white-space: pre-wrap; word-break: break-word; font-size: .93rem; line-height: 1.45; margin: .15rem 0 .2rem; }
.r-tekst .tag { color: #f0abfc; font-weight: 600; }
.r-acties { display: flex; gap: .8rem; }
.r-acties[hidden] { display: none; }
.r-acties button { background: none; border: 0; padding: 0; color: var(--zacht); font: 600 .78rem var(--sans); cursor: pointer; }
.r-acties button:hover { color: #fff; text-decoration: underline; }
.r-acties button.rood:hover { color: #fca5a5; }
.r-bewerk { width: 100%; min-height: 70px; border-radius: 10px; border: 1px solid rgba(255,255,255,.3); background: rgba(10,6,34,.35); color: #fff;
  font: .93rem/1.45 var(--sans); padding: .5rem .6rem; margin: .2rem 0 .4rem; resize: vertical; }
.r-form { position: relative; }
.r-antwoord-op { font-size: .8rem; color: var(--zacht); margin-bottom: .35rem; display: flex; align-items: center; gap: .35rem; }
.r-antwoord-op[hidden] { display: none; }
.r-antwoord-op button { background: rgba(255,255,255,.15); border: 0; color: #fff; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; line-height: 1; }
.r-invoer { display: flex; gap: .5rem; align-items: flex-end; }
.r-invoer textarea { flex: 1; min-width: 0; resize: none; border-radius: 14px; border: 1px solid rgba(255,255,255,.28); background: rgba(10,6,34,.35);
  color: #fff; font: .93rem/1.4 var(--sans); padding: .6rem .8rem; max-height: 160px; outline: 0; }
.r-invoer textarea:focus { border-color: #c4b5fd; box-shadow: 0 0 0 3px rgba(196,181,253,.2); }
.r-invoer textarea::placeholder { color: rgba(246,243,255,.55); }
.r-invoer .knop.klein-knop { padding: .65rem 1rem; }
.tag-lijst { position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 5; min-width: 220px; max-width: 100%; padding: 6px; border-radius: 14px;
  background: #2a1a66; box-shadow: 0 16px 40px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.15); display: grid; gap: 2px; }
.tag-lijst[hidden] { display: none; }
.tag-lijst button { display: flex; align-items: center; gap: .55rem; text-align: left; background: none; border: 0; color: #fff; padding: .4rem .5rem;
  border-radius: 9px; cursor: pointer; font: 500 .9rem var(--sans); }
.tag-lijst button:hover, .tag-lijst button:first-child { background: rgba(255,255,255,.12); }
.tag-lijst .r-avatar { width: 24px; height: 24px; font-size: .7rem; }

/* onder een verhaal */
.verhaal-praat { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid rgba(255,255,255,.14); }

/* tellertjes op de fototegels */
.foto-tel { position: absolute; left: 6px; bottom: 6px; display: flex; gap: 4px; pointer-events: none; }
.foto-tel:empty { display: none; }
.foto-tel span { display: inline-flex; align-items: center; gap: 3px; font: 700 .7rem var(--sans); color: #fff; padding: 2px 7px 2px 5px; border-radius: 99px;
  background: rgba(14,9,40,.62); backdrop-filter: blur(6px); }
.foto-tel svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.2; }
.foto-tel.mijn span:first-child svg { fill: #f472b6; stroke: #f472b6; }

/* grote weergave: hartje, reactieknop en paneel */
.lb-hart.aan { background: rgba(244,114,182,.28); box-shadow: inset 0 0 0 1px rgba(244,114,182,.7); }
.lb-hart.aan svg { fill: #f472b6; stroke: #f472b6; }
.lb-hart:hover { background: rgba(244,114,182,.3); }
.lb-paneel { position: absolute; top: 70px; right: 14px; bottom: 14px; width: 380px; z-index: 3; display: flex; flex-direction: column;
  border-radius: 22px; background: rgba(30,18,80,.92); backdrop-filter: blur(16px); box-shadow: 0 30px 70px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.14); }
.lb-paneel[hidden] { display: none; }
.lb-paneel-kop { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px 20px; }
.lb-paneel-kop h3 { margin: 0; font-size: 1.05rem; }
.lb-knop.klein { width: 34px; height: 34px; }
.lb-knop.klein svg { width: 18px; height: 18px; }
.praat.in-paneel { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 18px 18px; }
.lichtbak.met-paneel .lb-beeld { padding-right: 420px; }
.lichtbak.met-paneel .lb-pijl.volgende { right: 412px; }

@media (max-width: 900px) {
  .lb-paneel { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 62vh; height: 62dvh; border-radius: 22px 22px 0 0; }
  .lichtbak.met-paneel .lb-beeld { padding-right: 8px; padding-bottom: 62vh; }
  .lichtbak.met-paneel .lb-pijl { display: none; }
}
@media (max-width: 700px) {
  .lb-balk { gap: .4rem; flex-wrap: wrap; }
  .lb-naam { order: 5; flex-basis: 100%; }
  .reactie.antwoord { margin-left: 1.6rem; }
}
@media (max-width: 700px) {
  .lb-hart span, #lb-praat span { display: inline; }
  .lb-hart, #lb-praat { padding: .55rem .75rem; }
}

/* Reactievak: groot, groeit mee (per 5 regels), knop eronder */
.r-invoer { flex-direction: column; align-items: stretch; }
.r-invoer textarea { max-height: none; overflow: hidden; resize: none; line-height: 1.45; }
.r-invoer .knop.klein-knop { align-self: flex-end; }
.r-bewerk { min-height: 0; max-height: none; overflow: hidden; resize: none; }

/* =============================================================
   Fotoweergave met vaste reactiekolom (zoals Facebook)
   ============================================================= */
.lichtbak[open] { display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: minmax(0, 1fr); }
.lb-foto { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; }
.lb-foto .lb-balk { padding: 14px 18px; }
.lb-beeld { padding: 0 86px 22px; }
.lb-beeld img, .lb-beeld video { max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); }
.lb-kolom { display: flex; flex-direction: column; min-height: 0; height: 100vh; height: 100dvh; background: #1c1150;
  border-left: 1px solid rgba(255,255,255,.1); box-shadow: -20px 0 50px rgba(0,0,0,.35); }
.lb-kolom-kop { padding: 18px 20px 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.lb-kolom-kop strong { display: block; font-size: 1.02rem; }
.lb-kolom-kop .lb-naam { display: block; color: var(--zacht); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.praat.in-kolom { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 14px 20px 0; overflow: hidden; }
.praat.in-kolom .praat-deel { flex: 1; min-height: 0; display: flex; flex-direction: column; margin-top: .4rem; }
.praat.in-kolom .reacties { flex: 1; min-height: 0; overflow-y: auto; padding-right: 4px; margin-bottom: .6rem; align-content: start; }
.praat.in-kolom .r-form { padding: 10px 0 12px; border-top: 1px solid rgba(255,255,255,.08); }
.praat.in-kolom .r-invoer textarea { max-height: 40vh; overflow-y: auto; }
.lb-kolom-voet { padding: 8px 20px 14px; border-top: 1px solid rgba(255,255,255,.08); }
.lb-verwijder-link { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--zacht); font: 500 .8rem var(--sans); }
.lb-verwijder-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lb-verwijder-link:hover { color: #fca5a5; text-decoration: underline; }
.praat-kop { margin: .9rem 0 .2rem; font-size: .92rem; font-weight: 600; color: var(--zacht); }

/* Knop "Ik hou van…" met emotiekeuze */
.praat-balk { flex-direction: column; align-items: stretch; gap: .55rem; }
.verhaal-praat .praat-balk { flex-direction: row; align-items: center; flex-wrap: wrap; }
.emo-knoppen { position: relative; display: flex; gap: .4rem; }
.hou-knop { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 0; cursor: pointer; color: #fff;
  font: 600 .95rem var(--sans); padding: .7rem 1rem; border-radius: 14px; background: rgba(255,255,255,.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); transition: background .2s, transform .15s; }
.verhaal-praat .hou-knop { flex: none; }
.hou-knop:hover { background: rgba(255,255,255,.18); }
.hou-knop:active { transform: scale(.97); }
.hou-knop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.hou-knop.aan { background: linear-gradient(135deg, rgba(244,114,182,.35), rgba(192,38,211,.3)); box-shadow: inset 0 0 0 1px rgba(244,114,182,.7); }
.hou-knop.aan .emo-groot { animation: hartPop .35s ease-out; }
.emo-groot { font-size: 1.25rem; line-height: 1; }
.emo-kies { position: relative; flex: none; width: 50px; border: 0; cursor: pointer; font-size: 1.2rem; border-radius: 14px;
  background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.emo-kies:hover { background: rgba(255,255,255,.2); }
.emo-kies .plus { position: absolute; right: 6px; bottom: 4px; font: 700 .7rem var(--sans); color: #fff; }
.emo-lijst { position: absolute; z-index: 6; top: calc(100% + 8px); right: 0; display: flex; gap: 4px; padding: 6px; border-radius: 18px;
  background: #2a1a66; box-shadow: 0 18px 44px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.15); animation: lbIn .15s ease-out; }
.verhaal-praat .emo-lijst { left: 0; right: auto; }
.emo-lijst[hidden] { display: none; }
.emo-lijst button { display: grid; justify-items: center; gap: 3px; width: 78px; padding: .5rem .2rem .4rem; border: 0; border-radius: 12px;
  background: none; color: #fff; cursor: pointer; transition: background .15s, transform .15s; }
.emo-lijst button:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.emo-lijst button.aan { background: rgba(244,114,182,.28); }
.emo-lijst .emo-groot { font-size: 1.7rem; }
.emo-lijst small { font-size: .68rem; color: var(--zacht); text-align: center; line-height: 1.2; }
.emo-samen { display: inline-flex; align-items: center; gap: .5rem; background: none; border: 0; padding: 0; cursor: pointer; color: var(--zacht);
  font: 500 .84rem var(--sans); text-align: left; }
.emo-samen:hover span:last-child { text-decoration: underline; color: #fff; }
.emo-iconen { letter-spacing: -2px; font-size: 1rem; }
.emo-wie { display: flex; flex-wrap: wrap; gap: .35rem; }
.emo-wie[hidden] { display: none; }
.emo-wie span { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; padding: .2rem .55rem; border-radius: 99px; background: rgba(255,255,255,.1); }
.emo-wie b { font-weight: 400; }

/* Kleinere schermen: foto iets kleiner zodat de kolom altijd past */
@media (max-width: 1200px) { .lichtbak[open] { grid-template-columns: minmax(0, 1fr) 360px; } .lb-beeld { padding: 0 70px 22px; } }

/* Telefoon en smalle tablet: foto boven, reacties eronder (scrollen) */
@media (max-width: 900px) {
  .lichtbak[open] { display: block; overflow-y: auto; }
  .lb-foto { height: 62vh; height: 62dvh; }
  .lb-beeld { padding: 0 8px 64px; }
  .lb-beeld img, .lb-beeld video { max-height: calc(62dvh - 130px); }
  .lb-pijl { top: auto; bottom: 10px; transform: none; width: 46px; height: 46px; }
  .lb-pijl:hover { transform: none; }
  .lb-pijl.vorige { left: calc(50% - 56px); }
  .lb-pijl.volgende { right: calc(50% - 56px); }
  .lb-kolom { height: auto; min-height: 38vh; border-left: 0; border-top: 1px solid rgba(255,255,255,.12); border-radius: 22px 22px 0 0; }
  .praat.in-kolom { overflow: visible; }
  .praat.in-kolom .reacties { overflow: visible; }
  .praat.in-kolom .r-invoer textarea { max-height: none; overflow: hidden; }
  .emo-lijst button { width: 70px; }
}
/* Lage schermen: de hele kolom scrollt i.p.v. alleen de reacties */
@media (min-width: 901px) and (max-height: 720px) {
  .praat.in-kolom { overflow-y: auto; }
  .praat.in-kolom .praat-deel, .praat.in-kolom .reacties { flex: none; overflow: visible; }
}

.emo-iconen { white-space: nowrap; flex: none; }
@media (max-width: 900px) {
  .lb-foto { height: auto; display: block; }
  .lb-foto .lb-balk { position: absolute; top: 0; left: 0; z-index: 3; }
  .lb-beeld { padding: 64px 8px 14px; min-height: 0; }
  .lb-beeld img, .lb-beeld video { max-height: 56vh; max-height: 56dvh; }
  .lb-pijl { top: calc(50% + 25px); bottom: auto; transform: translateY(-50%); width: 40px; height: 40px; background: rgba(14,9,40,.55); }
  .lb-pijl.vorige { left: 12px; }
  .lb-pijl.volgende { right: 12px; }
}

/* Lichtere reactiekolom */
.lichtbak[open] { grid-template-columns: minmax(0, 1fr) 340px; }
@media (max-width: 1200px) { .lichtbak[open] { grid-template-columns: minmax(0, 1fr) 320px; } }
.lb-kolom-kop { padding: 14px 18px 10px; }
.lb-kolom-kop strong { font-size: .95rem; }
.praat.in-kolom { padding: 12px 18px 0; }
.lb-kolom-voet { padding: 6px 18px 12px; }
.hou-knop { padding: .55rem .8rem; font-size: .88rem; border-radius: 12px; }
.hou-knop svg { width: 18px; height: 18px; }
.emo-kies { width: 44px; border-radius: 12px; font-size: 1.05rem; }
.lb-kolom .emo-lijst button { width: 70px; }
.praat-kop { margin: .7rem 0 .1rem; font-size: .86rem; }
.r-body { padding: .5rem .7rem .4rem; }
.r-tekst { font-size: .9rem; }
.r-avatar { width: 30px; height: 30px; }
.reactie { grid-template-columns: 30px 1fr; gap: .55rem; }
.reacties { gap: .65rem; }
/* typvak: compact tot je erin klikt */
.r-form:not(.actief) .r-invoer .knop.klein-knop { display: none; }
.r-form:not(.actief) .r-invoer textarea { border-radius: 99px; padding: .55rem .9rem; }
.praat.in-kolom .r-form { padding: 8px 0 10px; }

.voet .versie { display: block; margin-top: 4px; font-size: .62rem; letter-spacing: .14em; opacity: .7; }

/* ---------- Versie en "Wat is er nieuw" ---------- */
.voet .versie { display: block; margin: 4px auto 0; background: none; border: 0; padding: 0; cursor: pointer; color: inherit;
  font: inherit; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; pointer-events: auto; }
.voet .versie:hover { opacity: 1; text-decoration: underline; }
.voet { pointer-events: none; }
.nieuws-venster { max-height: calc(100dvh - 40px); display: flex; flex-direction: column; }
.nieuws-lijst { overflow-y: auto; margin: 0 -6px 1rem; padding: 0 6px; display: grid; gap: .9rem; }
.nieuws-versie { padding: .9rem 1rem; border-radius: 16px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.nieuws-versie.huidig { box-shadow: inset 0 0 0 1.5px #f0abfc; }
.nieuws-versie h3 { margin: 0 0 .4rem; font-size: 1rem; display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; }
.nieuws-versie h3 small { font-weight: 400; font-size: .78rem; color: var(--zacht); }
.nieuws-versie ul { margin: 0; padding-left: 1.15rem; display: grid; gap: .25rem; font-size: .9rem; line-height: 1.45; }
.nieuws-tech { margin-top: .6rem; padding-top: .5rem; border-top: 1px dashed rgba(255,255,255,.2); }
.nieuws-tech span { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--zacht); margin-bottom: .25rem; }
.nieuws-tech ul { font-size: .82rem; color: rgba(246,243,255,.8); }
.nieuw-popup { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: min(360px, calc(100vw - 32px)); padding: 18px 20px 14px; border-radius: 20px;
  color: #fff; background: linear-gradient(150deg, #8a6cf0 0%, #6f4fdc 40%, #8243b8 100%);
  box-shadow: 0 24px 60px rgba(12,5,42,.55), inset 0 1px 0 rgba(255,255,255,.45), 0 0 0 1px rgba(255,255,255,.25); animation: nieuwIn .4s cubic-bezier(.2,.8,.2,1); }
.nieuw-popup[hidden] { display: none; }
@keyframes nieuwIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.nieuw-popup h3 { margin: 0 0 .5rem; font-size: 1.02rem; }
.nieuw-popup ul { margin: 0 0 .5rem; padding-left: 1.1rem; display: grid; gap: .3rem; font-size: .88rem; line-height: 1.4; }
.nieuw-versie strong { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; opacity: .8; margin: .3rem 0 .15rem; }
.nieuw-x { position: absolute; top: 8px; right: 10px; width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer; color: #fff;
  background: rgba(255,255,255,.15); font-size: 1.1rem; line-height: 1; }
.nieuw-knoppen { display: flex; justify-content: space-between; align-items: center; margin-top: .4rem; }
.nieuw-knoppen .knop.klein-knop { padding: .55rem 1.1rem; }
@media (max-width: 700px) { .nieuw-popup { right: 16px; left: 16px; width: auto; bottom: 16px; } }

#login-view .versie { cursor: default; }
#login-view .versie:hover { text-decoration: none; opacity: .7; }
