/* Klantenportaal Célibre — huisstijl: taupe #847061 / #C5AFA1 / #F1EAE4 */
:root {
  --ink: #2B2420;
  --ink-2: #4A3F38;
  --muted: #5A4A3F;
  --muted-2: #6B5A4E;
  --taupe: #847061;
  --taupe-light: #C5AFA1;
  --cream: #F1EAE4;
  --line: #E6DCD3;
  --bg: #FBF8F5;
  --white: #FFFFFF;
  --ok-bg: #E3EFE8; --ok-fg: #2F5D46;
  --open-bg: #FBEBD9; --open-fg: #7A3E0E;
  --info-bg: #E4ECF5; --info-fg: #24466B;
  --serif: 'Gilda Display', Georgia, serif;
  --sans: Poppins, Calibri, 'Segoe UI', sans-serif;
  --r: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.5; }
a { color: var(--muted-2); }
a:hover { color: var(--ink); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(30px, 4vw, 42px); }
h2 { font-size: 24px; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--taupe); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.laden { padding: 80px 24px; text-align: center; color: var(--muted); }

/* Kop */
.kop { background: var(--white); border-bottom: 1px solid var(--line); }
.kop-in { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.kop-logo { height: 40px; width: auto; }
.menu { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.menu > a, .menu > span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.menu a[aria-current="page"] { background: var(--cream); color: var(--ink); font-weight: 600; }
.menu > span { color: var(--muted-2); padding-right: 8px; }
.badge { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--cream); color: var(--muted); padding: 3px 8px; border-radius: 999px; }
.gebruiker { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 999px; background: var(--taupe); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; flex: none; }
.gebruiker-tekst { display: flex; flex-direction: column; line-height: 1.3; }
.gebruiker-tekst strong { font-size: 14px; font-weight: 600; }
.linkknop { background: none; border: 0; padding: 0; color: var(--muted-2); text-decoration: underline; cursor: pointer; font-size: 13px; text-align: left; }
.demo-band { background: var(--ink); color: var(--cream); text-align: center; font-size: 13px; padding: 8px 16px; }

/* Inhoud */
.inhoud { max-width: 1200px; margin: 0 auto; padding: 40px 24px 72px; display: flex; flex-direction: column; gap: 32px; }
.titelblok { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.titelblok > div { display: flex; flex-direction: column; gap: 8px; }
.bovenlabel { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.inleiding { font-size: 15px; color: var(--muted); max-width: 680px; }
.klein { font-size: 13px; color: var(--muted-2); }

.kaart { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 28px; display: flex; flex-direction: column; gap: 16px; }
.kaart-kop { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 12px; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.rij { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.rij > .breed { flex: 999 1 600px; min-width: 0; }
.rij > .smal { flex: 1 1 320px; min-width: 0; }

/* Fases */
.fases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.fases li { display: flex; flex-direction: column; gap: 8px; }
.fase-balk { height: 6px; border-radius: 999px; background: var(--line); }
.fase-balk.klaar { background: var(--taupe); }
.fase-balk.bezig { background: linear-gradient(90deg, var(--taupe) 50%, var(--line) 50%); }
.fases strong { font-size: 14px; font-weight: 600; }
.fases .later strong { color: var(--muted); }
.fases span { font-size: 13px; color: var(--muted); }

/* Taken */
.taak { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 12px; background: var(--cream); text-decoration: none; color: var(--ink); }
.taak svg { flex: none; margin-top: 2px; }
.taak span { display: flex; flex-direction: column; gap: 4px; }
.taak strong { font-weight: 600; }
.taak em { font-style: normal; font-size: 14px; color: var(--ink-2); }
.leeg { font-size: 14px; color: var(--muted); }

.afspraak { display: flex; gap: 18px; align-items: center; }
.datumblok { width: 72px; height: 76px; border-radius: 12px; background: var(--taupe); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.datumblok small { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.datumblok b { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; }
.afspraak-tekst { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--ink-2); }
.afspraak-tekst strong { font-size: 15px; color: var(--ink); font-weight: 600; }
.contactlink { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); font-size: 14px; }

/* Renders */
.renders { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.render { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.render-beeld { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, #E9DED5, var(--taupe-light)); display: flex; align-items: flex-end; padding: 14px; }
.render-beeld img { width: 100%; height: 100%; object-fit: cover; }
.render-beeld.met-beeld { padding: 0; }
.render figcaption { font-size: 14px; }
.render figcaption strong { font-weight: 600; }
.pil { font-size: 12px; background: rgba(255,255,255,.88); color: var(--ink-2); padding: 4px 10px; border-radius: 999px; }

.teaser { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; background: var(--ink); color: var(--cream); border-radius: var(--r); padding: 32px; }
.teaser h2 { color: #fff; }
.teaser .bovenlabel { color: var(--taupe-light); }
.teaser p { color: var(--line); font-size: 14px; }

/* Knoppen en velden */
.knop { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--taupe-light); background: var(--white); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; cursor: pointer; }
.knop.donker { background: var(--ink); border-color: var(--ink); color: #fff; }
.knop.taupe { background: var(--taupe); border-color: var(--taupe); color: #fff; }
.knop.rond { border-radius: 999px; border-color: var(--taupe); }
.knop[disabled] { opacity: .45; cursor: not-allowed; }
.knop.klein { min-height: 36px; padding: 0 12px; font-size: 13px; }
.veld { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.veld input, .veld select, .veld textarea { min-height: 44px; padding: 10px 14px; border: 1px solid var(--taupe-light); border-radius: 10px; background: var(--white); font-weight: 400; }
.veld textarea { resize: vertical; min-height: 88px; }
.velden { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.melding { padding: 12px 14px; border-radius: 10px; font-size: 14px; background: var(--info-bg); color: var(--info-fg); }
.melding.fout { background: var(--open-bg); color: var(--open-fg); }

/* Statuslabels */
.label { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--cream); color: var(--muted); white-space: nowrap; }
.label.ok { background: var(--ok-bg); color: var(--ok-fg); }
.label.open { background: var(--open-bg); color: var(--open-fg); }
.label.info { background: var(--info-bg); color: var(--info-fg); }

/* Planviewer */
.viewer-kop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.plan-vlak { position: relative; width: 100%; border-radius: 10px; overflow: hidden; background: #FDFBF9; border: 1px solid var(--line); }
.plan-vlak img { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.plan-vlak.plaatsen { cursor: crosshair; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 999px; border: 2px solid #fff; background: var(--taupe); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; padding: 0; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.pin.actief { background: var(--ink); box-shadow: 0 0 0 5px rgba(132,112,97,.35); }
.pin.nieuw { background: rgba(255,255,255,.92); color: var(--ink); border: 2px dashed var(--ink); cursor: default; }
.geen-beeld { padding: 48px 24px; text-align: center; color: var(--muted); font-size: 14px; }

.opmerkingen { display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow-y: auto; }
.opm { text-align: left; display: flex; gap: 12px; padding: 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); cursor: pointer; width: 100%; }
.opm.actief { border-color: var(--taupe); }
.opm-nr { flex: none; width: 28px; height: 28px; border-radius: 999px; background: var(--taupe); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.opm.actief .opm-nr { background: var(--ink); }
.opm-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.opm-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: var(--muted-2); }
.opm-meta strong { font-size: 13px; color: var(--ink); font-weight: 600; }
.opm-tekst { font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.antwoord strong, .keuze-body .antwoord strong { font-size: inherit; }
.antwoord { font-size: 13px; color: var(--ink-2); background: var(--cream); border-radius: 8px; padding: 8px 10px; white-space: pre-wrap; }

/* Lijsten en tabellen */
.lijst { list-style: none; margin: 0; padding: 0; }
.lijst li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; padding: 14px 0; border-bottom: 1px solid var(--cream); }
.lijst li:last-child { border-bottom: 0; }
.lijst .titel { display: flex; flex-direction: column; gap: 2px; }
.lijst .titel strong { font-weight: 600; }
.lijst .acties { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.tabelvak { overflow-x: auto; }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; font-size: 13px; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--line); }
td { padding: 14px 8px; border-bottom: 1px solid var(--cream); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }

/* Keuzelijst */
.voortgang { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 260px; }
.voortgang-balk { height: 8px; border-radius: 999px; background: var(--cream); overflow: hidden; }
.voortgang-balk div { height: 100%; background: var(--taupe); border-radius: 999px; }
.keuzes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.keuze { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.keuze.open { border-color: #D9A877; }
.staal { height: 110px; }
.keuze-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.keuze-body .cat { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.keuze-body strong { font-size: 16px; font-weight: 600; }
.keuze-acties { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.knoppenrij { display: flex; gap: 8px; }
.knoppenrij .knop { flex: 1; }

/* Login */
.login { min-height: 100vh; display: flex; flex-wrap: wrap; background: var(--white); }
.login-beeld { flex: 1 1 480px; min-height: 340px; background: var(--cream); display: flex; flex-direction: column; justify-content: space-between; padding: 56px; gap: 40px; }
.login-beeld img { width: 300px; max-width: 100%; }
.login-beeld h1 { font-size: clamp(32px, 4vw, 46px); max-width: 480px; }
.login-beeld p { font-size: 16px; color: var(--ink-2); max-width: 480px; margin-top: 16px; }
.login-vorm { flex: 1 1 440px; display: flex; align-items: center; justify-content: center; padding: 56px 24px; }
.login-vorm form { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 18px; }

/* Captcha en tweede stap */
.captcha { min-height: 65px; }
.qr { width: 200px; height: 200px; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; }
.sleutel { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; word-break: break-all; background: var(--cream); padding: 8px 10px; border-radius: 8px; margin-top: 6px; }

/* Beheer */
.beheer-lijst { display: flex; flex-direction: column; gap: 6px; }
.beheer-lijst button { text-align: left; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); cursor: pointer; }
.beheer-lijst button[aria-current="true"] { border-color: var(--taupe); background: var(--cream); }
details.blok { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #FDFBF9; }
details.blok summary { cursor: pointer; font-weight: 600; }
details.blok[open] summary { margin-bottom: 12px; }

@media (max-width: 640px) {
  .inhoud { padding: 28px 16px 56px; }
  .kaart { padding: 20px; }
  .login-beeld { padding: 32px 24px; }
}
