/* Huisstijl online coach id Plein.
   Pas hier de kleuren en het lettertype aan; beide schermen nemen het over.
   Het logo staat in static/logo.png (of logo.svg). */

@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url("/static/fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-display: swap; src: url("/static/fonts/open-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-display: swap; src: url("/static/fonts/open-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bitter"; font-weight: 700; font-display: swap; src: url("/static/fonts/bitter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bitter"; font-weight: 800; font-display: swap; src: url("/static/fonts/bitter-latin-800-normal.woff2") format("woff2"); }

:root {
  /* Kleuren van id Plein (logo en idplein.nl) */
  --brand: #c1066c;          /* magenta: knoppen en accenten */
  --brand-dark: #9d006e;     /* magenta uit het logo: hover */
  --brand-soft: #fbe9f2;     /* lichte magenta: labels, iconen */
  --navy: #221a5a;           /* donkerblauw uit het logo: koppen, eigen berichten */
  --navy-deep: #140c64;      /* donkerblauw van de website-banner */
  --navy-soft: #efeef6;      /* licht donkerblauw: berichten van de coach */
  --accent: #221a5a;         /* focusrand */

  /* Neutrale kleuren */
  --bg: #f6f5f3;
  --panel: #ffffff;
  --ink: #1d2327;
  --muted: #5b5d68;
  --line: #e5e4e8;
  --warn: #a2461a;
  --ok: #2f7a4b;

  /* Lettertypen staan in static/fonts (geen Google Fonts, vanwege privacy) */
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Bitter", Georgia, "Times New Roman", serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(34, 26, 90, .05), 0 4px 16px rgba(34, 26, 90, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.55 var(--font); background: var(--bg); color: var(--ink); }
h1, h2, h3 { line-height: 1.25; margin: 0; font-family: var(--font-head); font-weight: 700; color: var(--navy); }
a { color: var(--brand); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Kop */
.topbar { background: var(--panel); border-bottom: 4px solid var(--brand); }
.topbar .inner { max-width: 1080px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 16px; }
.brandmark { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brandmark img { height: 44px; width: auto; display: none; }
.brandmark img.loaded { display: block; }
.brandmark .wordmark { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--navy); letter-spacing: -.3px; white-space: nowrap; }
.brandmark .product { font-size: 15px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 12px; white-space: nowrap; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); }

/* Kaarten */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card h2 { font-size: 19px; margin-bottom: 6px; }

/* Knoppen */
button, .btn { font: inherit; font-size: 16px; border: 1px solid transparent; border-radius: 10px; padding: 10px 18px; min-height: 44px;
  background: var(--brand); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
button:hover, .btn:hover { background: var(--brand-dark); }
button.secondary { background: var(--panel); color: var(--brand); border-color: var(--brand); }
button.secondary:hover { background: var(--brand-soft); }
button.quiet { background: transparent; color: var(--muted); border-color: transparent; padding: 6px 10px; min-height: 36px; font-size: 14px; }
button.quiet:hover { background: var(--brand-soft); color: var(--brand); }
button.danger { background: transparent; color: var(--warn); border-color: transparent; padding: 6px 10px; min-height: 36px; font-size: 14px; }
button.danger:hover { background: #fbeee7; }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Velden */
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #cfcbc1; border-radius: 10px; padding: 10px 12px; min-height: 44px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
label { font-weight: 600; font-size: 15px; }

/* Meldingen */
.notice { border-radius: 10px; padding: 10px 14px; font-size: 15px; }
.notice.info { background: #fff6e6; border: 1px solid #f0dbb2; color: #6b4a14; }
.notice.error { background: #fbeee7; border: 1px solid #efcdbb; color: var(--warn); }
.notice.ok { background: #e9f5ee; border: 1px solid #c3e2cf; color: var(--ok); }
.errortext { color: var(--warn); font-size: 15px; min-height: 1.2em; margin-top: 8px; }

/* Labels */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 3px 10px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); font-weight: 600; white-space: nowrap; }
.chip.grey { background: #eeece6; color: var(--muted); }

/* Opgemaakte tekst (antwoorden van de coach, verbeterplannen) */
.md p { margin: 0 0 .7em; }
.md p:last-child, .md ul:last-child, .md ol:last-child { margin-bottom: 0; }
.md ul, .md ol { margin: 0 0 .7em; padding-left: 1.3em; }
.md li { margin: .15em 0; }
.md h3, .md h4 { font-size: 1.02em; margin: .9em 0 .35em; font-family: var(--font); color: var(--navy); }
.md h3:first-child, .md h4:first-child { margin-top: 0; }
.md blockquote { margin: .4em 0 .8em; padding: .4em .9em; border-left: 3px solid var(--navy); background: rgba(255,255,255,.6); border-radius: 0 8px 8px 0; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 1em 0; }

/* Laadanimatie */
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); opacity: .35; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .typing i { animation: none; opacity: .6; } }

@media (max-width: 600px) {
  .card { padding: 16px; }
  .topbar .inner { padding: 10px 14px; gap: 10px; }
  .brandmark img { height: 30px; }
}

/* Banner in de stijl van idplein.nl */
.hero { position: relative; overflow: hidden; background: var(--brand); color: #fff; }
.hero::before, .hero::after { content: ""; position: absolute; top: 0; bottom: 0; background: var(--navy-deep); }
.hero::before { left: 9%; width: 22%; clip-path: polygon(0 0, 70% 0, 100% 100%, 30% 100%); }
.hero::after { right: 6%; width: 30%; clip-path: polygon(10% 0, 100% 0, 85% 100%, 0 30%); }
.hero .inner { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 34px 20px; text-align: center; }
.hero h1 { color: #fff; font-family: var(--font-head); font-weight: 800; font-size: clamp(26px, 4vw, 38px); }
.hero p { margin: 8px 0 0; font-size: 18px; opacity: .95; }
@media (max-width: 600px) { .hero::before { left: -10%; width: 40%; } .hero::after { right: -20%; width: 50%; } .hero .inner { padding: 26px 16px; } }
