/* GEO-klantdashboard aim · gedeeld sjabloon voor alle klanten */

@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/noto-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/noto-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/noto-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --red: #E50012;
  --red-text: #C2000F;
  --red-soft: #FDE8EA;
  --dark: #1C252C;
  --bg: #F9F8F6;
  --surface: #FFFFFF;
  --surface-2: #F2F0EC;
  --text: #1C252C;
  --muted: #5A6570;
  --border: #E4E0DA;
  --shadow: 0 1px 2px rgba(28, 37, 44, .05), 0 4px 16px rgba(28, 37, 44, .05);

  --done: #1E7A4C;
  --done-soft: #E3F3EA;
  --busy: #A65A00;
  --busy-soft: #FCF0DE;
  --planned: #5A6570;
  --planned-soft: #EEECE8;

  --c-totaal: #E50012;
  --c-1: #1C252C;
  --c-2: #2F74B5;
  --c-3: #8A96A0;
  --c-4: #C98314;

  --wave-1: rgba(229, 0, 18, .55);
  --wave-2: rgba(28, 37, 44, .22);
  --wave-3: rgba(229, 0, 18, .25);
  --wave-4: rgba(28, 37, 44, .12);

  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --red: #FF2E3C;
    --red-text: #FF6670;
    --red-soft: #3A1A1E;
    --bg: #12181D;
    --surface: #1C252C;
    --surface-2: #243039;
    --text: #F1EFEC;
    --muted: #A7B0B8;
    --border: #2E3A44;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    --done: #5CC98F; --done-soft: #183428;
    --busy: #F2A94B; --busy-soft: #3A2C17;
    --planned: #A7B0B8; --planned-soft: #26313A;
    --c-totaal: #FF4552; --c-1: #E8E4DE; --c-2: #6AA8E8; --c-3: #8C99A4; --c-4: #E8A33A;
    --wave-1: rgba(255, 46, 60, .6); --wave-2: rgba(241, 239, 236, .18);
    --wave-3: rgba(255, 46, 60, .28); --wave-4: rgba(241, 239, 236, .09);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --red: #FF2E3C;
  --red-text: #FF6670;
  --red-soft: #3A1A1E;
  --bg: #12181D;
  --surface: #1C252C;
  --surface-2: #243039;
  --text: #F1EFEC;
  --muted: #A7B0B8;
  --border: #2E3A44;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  --done: #5CC98F; --done-soft: #183428;
  --busy: #F2A94B; --busy-soft: #3A2C17;
  --planned: #A7B0B8; --planned-soft: #26313A;
  --c-totaal: #FF4552; --c-1: #E8E4DE; --c-2: #6AA8E8; --c-3: #8C99A4; --c-4: #E8A33A;
  --wave-1: rgba(255, 46, 60, .6); --wave-2: rgba(241, 239, 236, .18);
  --wave-3: rgba(255, 46, 60, .28); --wave-4: rgba(241, 239, 236, .09);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
h1, h2, h3 { line-height: 1.2; margin: 0; }
h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 16px; }
h3 { font-size: .95rem; font-weight: 600; }
p { margin: 0 0 12px; }
a { color: var(--red-text); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Bovenbalk */
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 600; }
.brand img { display: block; }
.topbar-actions { display: flex; align-items: center; gap: 6px; }
.topbar-actions form { margin: 0; }

.btn {
  font: inherit; font-size: .9rem; font-weight: 600;
  border-radius: 999px; padding: 8px 16px; cursor: pointer;
  border: 1px solid transparent; display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { filter: brightness(.95); }
.thema-icoon { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }

/* Kop */
main.wrap { flex: 1; padding-top: 32px; padding-bottom: 32px; }
.hero { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: end; margin-bottom: 28px; }
.eyebrow { color: var(--red-text); font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.hero h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 700; margin-bottom: 10px; }
.intro { max-width: 60ch; color: var(--muted); margin: 0; }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); gap: 4px 28px; margin: 0; }
.hero-facts div { display: flex; flex-direction: column; }
.hero-facts dt { font-size: .8rem; color: var(--muted); }
.hero-facts dd { margin: 0; font-weight: 600; }

/* Kaarten */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 20px; min-width: 0; }
.grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 0 20px; align-items: start; }
.stack { display: flex; flex-direction: column; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }

/* Status-labels */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-afgerond { color: var(--done); background: var(--done-soft); }
.badge-bezig { color: var(--busy); background: var(--busy-soft); }
.badge-gepland { color: var(--planned); background: var(--planned-soft); }

/* Fases */
.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: fase; }
.phase { position: relative; border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: var(--surface); counter-increment: fase; }
.phase::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 12px 12px 0 0; background: var(--planned-soft); }
.phase.is-afgerond::after { background: var(--done); }
.phase.is-bezig::after { background: linear-gradient(90deg, var(--busy) 50%, var(--busy-soft) 50%); }
.phase-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.phase-nr { font-size: .8rem; color: var(--muted); font-weight: 600; }
.phase-nr::before { content: "Fase " counter(fase); }
.phase h3 { font-size: 1rem; margin-bottom: 4px; }
.phase-date { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.phase p { font-size: .9rem; margin-bottom: 8px; }
.phase details summary { cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--red-text); }
.phase details ul { margin: 8px 0 0; padding-left: 18px; font-size: .85rem; }
.phase details li { margin-bottom: 4px; }
.phase details li .badge { font-size: .7rem; padding: 1px 7px; margin-left: 4px; }

/* Meetresultaten */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; }
.kpi-label { font-size: .8rem; color: var(--muted); }
.kpi-value { font-size: 1.8rem; font-weight: 700; line-height: 1.15; }
.kpi-sub { font-size: .8rem; color: var(--muted); }
.notice { border-left: 4px solid var(--busy); background: var(--busy-soft); border-radius: 0 10px 10px 0; padding: 12px 16px; margin-bottom: 16px; }
.notice p:last-child { margin: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.legend button { font: inherit; font-size: .8rem; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.legend button[aria-pressed="false"] { opacity: .45; }
.legend i { width: 14px; height: 3px; border-radius: 2px; background: var(--c); display: inline-block; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid-line { stroke: var(--border); stroke-width: 1; }
.chart .axis-label { fill: var(--muted); font-size: 12px; font-family: inherit; }
.chart .series { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .series.totaal { stroke-width: 4; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.chart-empty { border: 1px dashed var(--border); border-radius: 12px; padding: 32px 16px; text-align: center; color: var(--muted); margin-bottom: 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: .8rem; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.explain { margin-top: 16px; }
.explain summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--red-text); }
.explain ul { padding-left: 18px; font-size: .9rem; margin: 8px 0 0; }
.explain li { margin-bottom: 4px; }
.sub-h { margin: 20px 0 8px; }

/* Volgende stappen */
.steps h3 { margin: 4px 0 8px; display: flex; align-items: center; gap: 8px; }
.steps h3 .dot-icon { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.steps h3 .dot-icon.klant { background: var(--c-1); }
.steps ul { list-style: none; margin: 0 0 18px; padding: 0; }
.steps li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.steps li:last-child { border-bottom: 0; }
.check { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--border); margin-top: 2px; position: relative; }
.steps li.klaar .check { background: var(--done); border-color: var(--done); }
.steps li.klaar .check::after { content: ""; position: absolute; left: 4px; top: 0; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.steps li.klaar span.t { color: var(--muted); text-decoration: line-through; }
.step-meta { display: block; font-size: .8rem; color: var(--muted); }

/* Documenten */
.doc-group { margin-bottom: 18px; }
.doc-group:last-child { margin-bottom: 0; }
.doc-group h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.docs { list-style: none; margin: 0; padding: 0; }
.doc { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.doc:last-child { border-bottom: 0; }
.doc-icon { width: 36px; height: 44px; border-radius: 6px; background: var(--red-soft); color: var(--red-text); font-size: .62rem; font-weight: 700; display: grid; place-items: center; letter-spacing: .04em; }
.doc.pending .doc-icon { background: var(--planned-soft); color: var(--planned); }
.doc-title { font-weight: 600; font-size: .95rem; }
.doc-meta { font-size: .82rem; color: var(--muted); }
.doc-new { font-size: .7rem; font-weight: 700; color: #fff; background: var(--red); border-radius: 999px; padding: 1px 7px; margin-left: 6px; vertical-align: 2px; }
.doc .btn { padding: 6px 14px; font-size: .85rem; }
.doc-later { font-size: .82rem; color: var(--muted); white-space: nowrap; }

/* Abonnement */
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.price strong { font-size: 2rem; line-height: 1.1; }
.price span { color: var(--muted); font-size: .9rem; }
.includes { list-style: none; padding: 0; margin: 14px 0 0; }
.includes li { position: relative; padding: 6px 0 6px 26px; font-size: .92rem; }
.includes li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 6px; height: 11px; border: solid var(--done); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Contact */
.contact-line { display: flex; flex-direction: column; gap: 4px; }
.contact-big { font-size: 1.35rem; font-weight: 700; text-decoration: none; color: var(--text); }
.contact-big:hover { color: var(--red-text); }

.foot { text-align: center; margin: 8px 0 0; }

/* Golflijnen onderaan */
.waves { display: block; width: 100%; height: 120px; margin-top: auto; }
.wave { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.wave-1 { stroke: var(--wave-1); }
.wave-2 { stroke: var(--wave-2); }
.wave-3 { stroke: var(--wave-3); }
.wave-4 { stroke: var(--wave-4); }

/* Inlogpagina */
.login-page { align-items: center; }
.login-card { width: min(420px, calc(100% - 32px)); margin: 10vh auto 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.login-logo { display: block; margin-bottom: 18px; }
.login-card h1 { font-size: 1.5rem; margin-bottom: 6px; }
.login-card form { display: flex; flex-direction: column; gap: 6px; margin: 20px 0; }
.login-card label { font-size: .85rem; font-weight: 600; margin-top: 8px; }
.login-card input { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.login-card .btn { justify-content: center; margin-top: 14px; padding: 11px 16px; font-size: 1rem; }
.login-error { background: var(--red-soft); color: var(--red-text); border-radius: 10px; padding: 10px 12px; font-size: .9rem; }

/* Middelbreed: opengevouwen telefoon liggend, kleine tablet */
@media (max-width: 960px) {
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; }
}

/* Smal scherm: mobiele weergave */
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  main.wrap { padding-top: 20px; }
  .grid { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .hero-facts { grid-template-columns: 1fr 1fr; gap: 10px 20px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi-value { font-size: 1.5rem; }
  .thema-tekst, .brand span { display: none; }
  .doc { grid-template-columns: 30px 1fr; }
  .doc-icon { width: 30px; height: 38px; }
  .doc .btn, .doc .doc-later { grid-column: 2; justify-self: start; }
  .waves { height: 80px; }
}

@media print {
  .topbar-actions, .waves { display: none; }
  .card { box-shadow: none; break-inside: avoid; }
}
