/* Generatie Alles · Beeldbank
   Tokens gelijk aan het interne dashboard, zodat integratie later een kopie is. */

:root {
  --ink: #2a2a2a;
  --ink2: #4a4a4d;
  --ink3: #6e6e72;
  --ink4: #8e8e93;

  --bg: #ffffff;
  --bg-soft: #f4f4f0;
  --line: #e7e5dc;
  --line2: #d6d3c4;

  --geel: #f5e994;
  --geel-deep: #ecd97a;

  --accent: #3a4a3a;
  --accent-soft: #c8d3c0;
  --accent-deep: #1f2a1f;

  --fh: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --fl: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--fh);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 2rem 1.8rem 5rem; }

/* Navigatie, gelijk aan het dashboard */
.ga-nav { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: .95rem 1.8rem; }
.ga-nav-inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.ga-nav-brand { font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: .55rem; }
.ga-nav-dot { width: 8px; height: 8px; background: var(--geel); border-radius: 50%; box-shadow: 0 0 0 3px rgba(245,233,148,.35); }
.ga-nav-links { display: flex; gap: .3rem; background: #fff; padding: .3rem; border-radius: 8px; border: 1px solid var(--line); }
.ga-nav-link { font-weight: 500; font-size: .85rem; color: var(--ink3); padding: .4rem .9rem; border-radius: 5px; transition: background .15s, color .15s; }
.ga-nav-link:hover { color: var(--ink); background: var(--bg-soft); }
.ga-nav-link.is-active { background: var(--accent); color: #fff; }
.ga-nav-right { font-family: var(--fl); font-size: .6rem; text-transform: uppercase; letter-spacing: .13em; color: var(--ink4); }

.meta-row { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--fl); font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink4); margin-bottom: 1.5rem; flex-wrap: wrap; gap: .5rem; }

.doc-title { font-weight: 500; font-size: 2.1rem; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 1.4rem; }
.doc-title .hl {
  background: linear-gradient(transparent 45%, var(--geel) 45%);
  padding: 0 .1em;
  margin: 0 -.1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.doc-lead { color: var(--ink2); font-size: 1rem; line-height: 1.65; margin-bottom: 2.5rem; max-width: 66ch; }

h2 { font-weight: 500; font-size: 1.25rem; letter-spacing: -.01em; margin: 3rem 0 .8rem; padding-bottom: .55rem; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
h2 .h2-meta { font-family: var(--fl); font-size: .62rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink4); font-weight: 500; }

/* Filterbalk */
.filters { display: flex; gap: 1.6rem; flex-wrap: wrap; padding: 1rem 0 1.4rem; border-bottom: 1px solid var(--line); margin-bottom: 1.8rem; }
.filter-groep { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.filter-label { font-family: var(--fl); font-size: .58rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink4); margin-right: .2rem; }
.chip { font-family: var(--fl); font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink3); background: #fff; border: 1px solid var(--line); padding: .32rem .7rem; border-radius: 4px; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.chip:hover { border-color: var(--line2); color: var(--ink); }
.chip.is-actief { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Raster, kolommen zodat elk beeld zijn eigen verhouding houdt */
.raster { column-count: 4; column-gap: .8rem; }
.tegel { break-inside: avoid; margin-bottom: .8rem; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; position: relative; cursor: zoom-in; transition: border-color .15s; display: block; width: 100%; padding: 0; }
.tegel:hover { border-color: var(--line2); }
.tegel img { width: 100%; height: auto; display: block; }
.tegel-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .75rem .6rem; background: linear-gradient(transparent, rgba(0,0,0,.5)); color: #fff; font-family: var(--fl); font-size: .55rem; text-transform: uppercase; letter-spacing: .12em; text-align: left; opacity: 0; transition: opacity .15s; }
.tegel:hover .tegel-meta { opacity: 1; }

/* Vergrote weergave */
.lightbox { position: fixed; inset: 0; background: rgba(20,20,20,.88); display: none; align-items: center; justify-content: center; flex-direction: column; gap: 1rem; z-index: 100; padding: 2.5rem; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 9rem); object-fit: contain; border-radius: 4px; }
.lightbox-meta { font-family: var(--fl); font-size: .62rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.72); text-align: center; }
.lightbox-sluit { position: absolute; top: 1.2rem; right: 1.6rem; background: none; border: none; color: rgba(255,255,255,.7); font-size: 1.6rem; cursor: pointer; line-height: 1; }

.leeg { border: 1px dashed var(--line2); border-radius: 10px; background: var(--bg-soft); padding: 3.5rem 2rem; text-align: center; }
.leeg-titel { font-weight: 500; font-size: 1.05rem; margin-bottom: .5rem; }
.leeg-tekst { color: var(--ink3); font-size: .93rem; line-height: 1.6; max-width: 46ch; margin: 0 auto; }

.footnote { font-family: var(--fl); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink4); margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* Inlogscherm */
.gate-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1.5rem; }
.gate-card { max-width: 440px; width: 100%; }
.gate-kicker { font-family: var(--fl); font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink4); margin-bottom: .7rem; }
.gate-title { font-weight: 500; font-size: 1.8rem; line-height: 1.2; margin-bottom: 1rem; letter-spacing: -.01em; }
.gate-title .hl { background: linear-gradient(transparent 40%, var(--geel) 40%); padding: 0 .1em; margin: 0 -.1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.gate-lead { color: var(--ink2); font-size: .98rem; line-height: 1.6; margin-bottom: 2rem; max-width: 52ch; }
.gate-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.gate-input { flex: 1; min-width: 200px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: .75rem 1rem; font-family: var(--fh); font-size: .95rem; color: var(--ink); outline: none; }
.gate-input:focus { border-color: var(--accent); }
.gate-submit { font-family: var(--fl); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink); background: var(--geel); border: none; padding: .75rem 1.4rem; border-radius: 6px; cursor: pointer; }
.gate-submit:hover { background: var(--geel-deep); }
.gate-error { margin-top: .9rem; font-family: var(--fl); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink4); opacity: 0; transition: opacity .2s; }
.gate-error.show { opacity: 1; }

@media (max-width: 1024px) {
  .raster { column-count: 3; }
}

@media (max-width: 720px) {
  .ga-nav { padding: .85rem 1.2rem; }
  .ga-nav-links { order: 3; width: 100%; justify-content: center; }
  .wrap { padding: 2rem 1.1rem 4rem; }
  .doc-title { font-size: 1.7rem; }
  .raster { column-count: 2; column-gap: .6rem; }
  .tegel { margin-bottom: .6rem; }
  .tegel-meta { opacity: 1; }
  .lightbox { padding: 1.2rem; }
}

/* Rustige filterbalk: standaard alleen het hoognodige */
.balk { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .2rem 0 1.2rem; }
.balk-rechts { margin-left: auto; display: flex; gap: .5rem; }
.knop { font-family: var(--fl); font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink3); background: #fff; border: 1px solid var(--line); padding: .38rem .8rem; border-radius: 4px; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.knop:hover { border-color: var(--line2); color: var(--ink); }
.knop.is-actief { background: var(--accent); border-color: var(--accent); color: #fff; }
.knop.geel.is-actief { background: var(--geel); border-color: var(--geel-deep); color: #6e5a18; }
.filters[hidden] { display: none; }

/* Favorietknop op de tegel */
.fav { position: absolute; top: .5rem; right: .5rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; border: none; background: rgba(255,255,255,.85); color: var(--ink3); font-size: .85rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s, background .15s, color .15s; display: flex; align-items: center; justify-content: center; }
.tegel:hover .fav { opacity: 1; }
.fav:hover { background: #fff; color: var(--ink); }
.fav.is-fav { opacity: 1; background: var(--geel); color: #6e5a18; }

/* Projectstrip en dossier */
.projecten { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.project-tegel { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent-soft); border-radius: 6px; padding: .8rem .95rem .85rem; display: flex; flex-direction: column; gap: .3rem; transition: border-color .15s, transform .15s; }
.project-tegel:hover { border-color: var(--accent); transform: translateY(-1px); }
.project-klant { font-family: var(--fl); font-size: .55rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink4); }
.project-naam { font-weight: 500; font-size: .95rem; }
.project-telling { font-family: var(--fl); font-size: .58rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink4); }

.dossier-blok { margin-bottom: 2.4rem; }
.linklijst { display: flex; flex-direction: column; gap: .5rem; }
.linkrij { display: grid; grid-template-columns: 88px 1fr auto; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .7rem .9rem; }
.linkrij-soort { font-family: var(--fl); font-size: .55rem; text-transform: uppercase; letter-spacing: .13em; color: var(--ink4); }
.linkrij-titel { font-size: .93rem; }
.linkrij-notitie { color: var(--ink3); font-size: .85rem; }
.linkrij a { font-family: var(--fl); font-size: .6rem; text-transform: uppercase; letter-spacing: .13em; color: var(--accent-deep); border: 1px solid var(--line); padding: .3rem .65rem; border-radius: 4px; white-space: nowrap; }
.linkrij a:hover { border-color: var(--accent); }

.formulier { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .7rem; max-width: 640px; }
.veld { display: flex; flex-direction: column; gap: .3rem; }
.veld label { font-family: var(--fl); font-size: .58rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink4); }
.veld input, .veld select, .veld textarea { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: .6rem .8rem; font-family: var(--fh); font-size: .93rem; color: var(--ink); outline: none; }
.veld input:focus, .veld select:focus, .veld textarea:focus { border-color: var(--accent); }
.formulier-voet { display: flex; align-items: center; gap: 1rem; }
.verstuur { font-family: var(--fl); font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink); background: var(--geel); border: none; padding: .7rem 1.3rem; border-radius: 6px; cursor: pointer; }
.verstuur:hover { background: var(--geel-deep); }
.verstuur:disabled { opacity: .5; cursor: not-allowed; }
.melding { font-family: var(--fl); font-size: .6rem; text-transform: uppercase; letter-spacing: .13em; color: var(--ink4); }

@media (max-width: 720px) {
  .linkrij { grid-template-columns: 1fr; gap: .4rem; }
  .fav { opacity: 1; }
}

/* Selectiemodus in de bank */
.tegel.selecteerbaar { cursor: pointer; }
.tegel.is-gekozen { outline: 3px solid var(--geel-deep); outline-offset: -3px; }
.tegel.is-gebruikt::after { content: 'Geplaatst'; position: absolute; top: .5rem; left: .5rem; font-family: var(--fl); font-size: .5rem; text-transform: uppercase; letter-spacing: .12em; background: rgba(255,255,255,.9); color: var(--ink3); padding: .18rem .4rem; border-radius: 3px; }
.selectiebalk { position: fixed; left: 50%; bottom: 1.6rem; transform: translateX(-50%); display: none; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line2); border-radius: 10px; padding: .7rem 1rem .7rem 1.2rem; box-shadow: 0 6px 24px rgba(0,0,0,.12); z-index: 60; }
.selectiebalk.open { display: flex; }
.selectiebalk-tekst { font-family: var(--fl); font-size: .62rem; text-transform: uppercase; letter-spacing: .13em; color: var(--ink3); }

/* Posts */
.status-groep { margin-bottom: 2.2rem; }
.status-kop { font-family: var(--fl); font-size: .6rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink4); padding-bottom: .5rem; margin-bottom: .8rem; border-bottom: 1px dashed var(--line); }
.postlijst { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .7rem; }
.postkaart { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .5rem; transition: border-color .15s, transform .15s; }
.postkaart:hover { border-color: var(--accent); transform: translateY(-1px); }
.postkaart-titel { font-weight: 500; font-size: 1rem; line-height: 1.35; }
.postkaart-idee { color: var(--ink3); font-size: .88rem; line-height: 1.5; }
.postkaart-strip { display: flex; gap: .25rem; }
.postkaart-strip img { width: 40px; height: 50px; object-fit: cover; border-radius: 3px; }
.postkaart-voet { display: flex; justify-content: space-between; align-items: center; font-family: var(--fl); font-size: .55rem; text-transform: uppercase; letter-spacing: .13em; color: var(--ink4); }

.pil { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--fl); font-size: .55rem; text-transform: uppercase; letter-spacing: .13em; padding: .25rem .55rem; border-radius: 4px; }
.pil-stip { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pil.idee { background: var(--bg-soft); color: var(--ink3); }
.pil.bezig { background: #faf2b6; color: #6e5a18; }
.pil.klaar { background: #d8e2cd; color: #3f5a36; }
.pil.geplaatst { background: #e8efe2; color: #3a5028; }

/* Postscherm */
.post-beelden { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .8rem; }
.post-beeld { position: relative; width: 110px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); cursor: grab; background: var(--bg-soft); }
.post-beeld img { width: 100%; height: 138px; object-fit: cover; display: block; }
.post-beeld.sleept { opacity: .4; }
.post-beeld-nr { position: absolute; top: .3rem; left: .3rem; font-family: var(--fl); font-size: .5rem; background: rgba(255,255,255,.9); color: var(--ink3); padding: .15rem .35rem; border-radius: 3px; }
.post-beeld-weg { position: absolute; top: .3rem; right: .3rem; width: 1.3rem; height: 1.3rem; border: none; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink3); cursor: pointer; font-size: .8rem; line-height: 1; }
.post-beeld-weg:hover { background: #fff; color: var(--ink); }

.kolommen { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.veld textarea { min-height: 9rem; resize: vertical; line-height: 1.6; font-size: .95rem; }
.klaarzet { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .9rem; }
.klaarzet-rij { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

@media (max-width: 720px) {
  .kolommen { grid-template-columns: 1fr; }
  .selectiebalk { left: 1rem; right: 1rem; transform: none; justify-content: space-between; }
}

/* Thema's toekennen in de vergrote weergave */
.lightbox-themas { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; justify-content: center; max-width: 640px; }
.lightbox-themas .chip { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: rgba(255,255,255,.8); }
.lightbox-themas .chip:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.lightbox-themas .chip.is-actief { background: var(--geel); border-color: var(--geel); color: #6e5a18; }
.lightbox-invoer { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 4px; padding: .32rem .7rem; font-family: var(--fl); font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; outline: none; width: 150px; }
.lightbox-invoer::placeholder { color: rgba(255,255,255,.45); }
.lightbox-invoer:focus { border-color: var(--geel); }

/* Analyse */
.cijfers { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; margin-bottom: 1.6rem; }
.cijfer { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: .9rem 1rem; }
.cijfer-getal { font-size: 1.65rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.cijfer-label { font-family: var(--fl); font-size: .55rem; text-transform: uppercase; letter-spacing: .13em; color: var(--ink4); margin-top: .25rem; }
.cijfer-bij { color: var(--ink3); font-size: .8rem; margin-top: .3rem; line-height: 1.4; }

.tweeluik { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.lijstblok { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.1rem 1.1rem; }
.lijstblok.wel { border-left: 3px solid var(--accent-soft); }
.lijstblok.niet { border-left: 3px solid var(--line2); }
.lijstblok h3 { font-size: .95rem; font-weight: 500; margin-bottom: .6rem; }
.lijstblok ul { list-style: none; display: flex; flex-direction: column; gap: .35rem; }
.lijstblok li { font-size: .9rem; color: var(--ink2); line-height: 1.5; padding-left: .9rem; position: relative; }
.lijstblok li::before { content: ''; position: absolute; left: 0; top: .6em; width: 4px; height: 4px; border-radius: 50%; background: var(--ink4); }

.blokken { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .7rem; }
.blok { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .95rem 1.05rem 1rem; }
.blok-kop { font-family: var(--fl); font-size: .55rem; text-transform: uppercase; letter-spacing: .13em; color: var(--ink4); margin-bottom: .4rem; }
.blok-titel { font-weight: 500; font-size: .98rem; margin-bottom: .35rem; }
.blok-tekst { color: var(--ink2); font-size: .88rem; line-height: 1.55; }

.voorstel { background: rgba(245,233,148,.16); border: 1px solid rgba(236,217,122,.4); border-left: 3px solid var(--geel-deep); border-radius: 6px; padding: .85rem 1.05rem; font-size: .9rem; color: var(--ink2); line-height: 1.6; margin-bottom: 1.2rem; }
.voorstel strong { color: var(--ink); font-weight: 600; }

.afspraak { font-size: 1.02rem; line-height: 1.6; padding: 1.1rem 1.3rem; background: var(--accent); color: #fff; border-radius: 8px; }

@media (max-width: 720px) {
  .tweeluik { grid-template-columns: 1fr; }
}

/* Aanjager voor het bijladen van tegels */
.meer { display: block; width: 100%; font-family: var(--fl); font-size: .6rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink4); text-align: center; padding: 1.4rem 0; margin-top: .6rem; background: none; border: 0; border-top: 1px dashed var(--line); cursor: pointer; transition: color .15s; }
.meer:hover { color: var(--ink2); }

/* Beeld toevoegen */
.uploadvak { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 1.2rem 1.3rem; margin-bottom: 1.6rem; }
.uploadvak[hidden] { display: none; }
.dropzone { border: 1px dashed var(--line2); border-radius: 8px; background: #fff; padding: 2rem 1.5rem; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.sleept { border-color: var(--accent); background: rgba(200,211,192,.14); }
.dropzone-titel { font-weight: 500; font-size: 1rem; margin-bottom: .3rem; }
.dropzone-tekst { color: var(--ink3); font-size: .88rem; line-height: 1.55; }
.uploadvelden { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .7rem; margin-bottom: .9rem; }
.uploadvoet { display: flex; align-items: center; gap: 1rem; margin-top: .9rem; flex-wrap: wrap; }
.voortgang { flex: 1; min-width: 140px; height: 6px; background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.voortgang span { display: block; height: 100%; width: 0; background: var(--geel-deep); transition: width .2s; }

.nieuwe-klant { display: flex; gap: .4rem; margin-top: .4rem; }
.nieuwe-klant[hidden] { display: none; }
.nieuwe-klant input { flex: 1; min-width: 0; }
