/* James: speels-vriendelijk ontwerp (Playful Friendly, superdesign v2).
   Crème achtergrond met zachte kleurvlakken, amber accenten, sage tekst. */

:root {
  --cream: #fcf9f2;
  --peach: #ffe5d4;
  --peach-dark: #f4c5a7;
  --sage: #9ebcae;
  --sage-dark: #2c4a40;
  --amber: #ffb347;
  --amber-dark: #c47b1a;
  --amber-inkt: #451a03;
  --wit: #ffffff;
  --tekst-zacht: rgba(44, 74, 64, 0.8);
  --tekst-flets: rgba(44, 74, 64, 0.6);
  --rand-zacht: rgba(158, 188, 174, 0.2);
  --rand-mid: rgba(158, 188, 174, 0.35);
  --schaduw-zacht: 0 20px 40px -10px rgba(44, 74, 64, 0.12);
  --schaduw-klein: 0 2px 6px rgba(44, 74, 64, 0.08);
  --schaduw-sticker: 0 4px 12px rgba(196, 123, 26, 0.25);
}

* { box-sizing: border-box; }

html { font-size: 18px; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--sage-dark);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Zachte kleurvlakken op de achtergrond */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  filter: blur(64px);
}

body::before {
  top: -10%;
  left: -5%;
  width: 40vw;
  height: 40vw;
  background: rgba(255, 229, 212, 0.6);
  border-radius: 40% 60% 70% 30%;
}

body::after {
  bottom: 10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: rgba(255, 179, 71, 0.2);
  border-radius: 60% 40% 30% 70%;
}

.decor-sage {
  position: fixed;
  top: 30%;
  left: 20%;
  width: 30vw;
  height: 30vw;
  background: rgba(158, 188, 174, 0.2);
  border-radius: 30% 70% 50% 50%;
  filter: blur(64px);
  z-index: 0;
  pointer-events: none;
}

/* Kop en navigatie */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--sage-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
  border-radius: 999px;
}

.brand:focus-visible { outline: 4px solid rgba(255, 179, 71, 0.5); }

.brand-logo {
  width: 40px;
  height: 40px;
  background: var(--amber);
  color: var(--amber-inkt);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  padding-top: 2px;
  box-shadow: var(--schaduw-klein);
}

.site-nav {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  padding: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--schaduw-klein);
}

.site-nav a {
  color: var(--sage-dark);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  transition: background 0.15s, box-shadow 0.15s;
}

.site-nav a:hover { background: var(--wit); box-shadow: var(--schaduw-klein); }
.site-nav a.actief { background: var(--wit); box-shadow: var(--schaduw-klein); }

.site-nav a:focus-visible { outline: 4px solid rgba(255, 179, 71, 0.3); }

/* Hero */
.hero {
  max-width: 720px;
  margin: 0.5rem auto 1.5rem;
  padding: 0 1rem;
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-block;
  background: var(--amber);
  color: var(--amber-inkt);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  box-shadow: var(--schaduw-sticker);
  transform: rotate(-2deg);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: 2.1rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.7rem;
  font-weight: 800;
}

.hero p { margin: 0; color: var(--tekst-zacht); max-width: 500px; margin-inline: auto; }

/* Chatvenster */
.chat-frame {
  max-width: 720px;
  width: calc(100% - 2rem);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 6px solid var(--wit);
  border-radius: 32px;
  box-shadow: var(--schaduw-zacht);
  display: flex;
  flex-direction: column;
  height: min(70vh, 640px);
  position: relative;
  z-index: 10;
}

.chat-sticker {
  position: absolute;
  top: -16px;
  right: -6px;
  z-index: 20;
}

.chat-sticker span {
  display: inline-block;
  background: var(--peach-dark);
  color: var(--amber-inkt);
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.35rem 0.9rem;
  border-radius: 12px;
  transform: rotate(6deg);
  box-shadow: var(--schaduw-sticker);
  border: 2px solid var(--wit);
  cursor: help;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1.4rem;
  background: rgba(158, 188, 174, 0.15);
  border-radius: 26px 26px 0 0;
  flex-wrap: wrap;
}

.chat-persoon { display: flex; align-items: center; gap: 0.7rem; }

.avatar { display: inline-flex; position: relative; }
.avatar svg { display: block; filter: drop-shadow(0 1px 2px rgba(44, 74, 64, 0.15)); }

.online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #22c55e;
  border: 2px solid var(--wit);
  border-radius: 50%;
}

.persoon-info { display: flex; flex-direction: column; line-height: 1.2; }
.persoon-info strong { font-size: 1.05rem; }
.persoon-info small { color: var(--tekst-flets); font-weight: 500; font-size: 0.78rem; }

.chat-rechts { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }

/* Voortgangsdots */
.voortgang {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.5);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  cursor: help;
}

.voortgang .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(44, 74, 64, 0.2);
}

.voortgang .dot:first-child { width: 10px; height: 10px; }
.voortgang .dot.aan { background: var(--sage-dark); }

.knop-leesmodus {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--wit);
  color: var(--sage-dark);
  border: 1px solid rgba(158, 188, 174, 0.3);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.15s, color 0.15s;
}

.knop-leesmodus:hover { background: var(--sage); color: var(--wit); }
.knop-leesmodus:focus-visible { outline: 4px solid rgba(255, 179, 71, 0.3); }

.knop-leesmodus svg { width: 16px; height: 16px; }

/* Berichten */
.chat-berichten {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.5);
}

.bubble {
  max-width: 85%;
  padding: 0.65rem 1.1rem;
  border-radius: 24px;
  font-size: 0.98rem;
  white-space: pre-line;
  overflow-wrap: break-word;
  width: fit-content;
}

.bubble.van-james {
  align-self: flex-start;
  background: var(--wit);
  border: 1px solid var(--rand-zacht);
  border-bottom-left-radius: 8px;
  box-shadow: var(--schaduw-klein);
}

.bubble.van-gebruiker {
  align-self: flex-end;
  background: var(--sage-dark);
  color: var(--wit);
  border-bottom-right-radius: 8px;
  box-shadow: var(--schaduw-klein);
}

/* Quizfeedback: goed (sage) en fout (perzik), met klein icoon */
.bubble.goed,
.bubble.fout {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-top: 0.3rem;
}

.bubble.goed svg,
.bubble.fout svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }

.bubble .bubbel-tekst { white-space: pre-line; }

.bubble.goed {
  background: rgba(158, 188, 174, 0.2);
  border: 2px solid var(--sage);
  color: var(--sage-dark);
  border-bottom-left-radius: 8px;
}

.bubble.fout {
  background: var(--peach);
  border: 2px solid var(--peach-dark);
  color: var(--amber-inkt);
  border-bottom-left-radius: 8px;
}

.bubble.fout svg { color: var(--amber-dark); }

/* Typing-stipjes */
.bubble.typing {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 0.8rem 1.1rem;
  cursor: pointer;
}

.bubble.typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(44, 74, 64, 0.4);
  animation: stip 1s infinite;
}

.bubble.typing span:nth-child(2) { animation-delay: 0.15s; }
.bubble.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes stip {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-4px); opacity: 1; }
}

/* Keuzeknoppen in de chat */
.keuzes {
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 90%;
  padding-left: 0.5rem;
}

.keuze {
  font: inherit;
  font-size: 0.93rem;
  font-weight: 500;
  text-align: left;
  background: var(--wit);
  border: 2px solid var(--rand-mid);
  color: var(--sage-dark);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.keuze:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--amber-inkt);
}

.keuze:focus-visible { outline: 4px solid rgba(255, 179, 71, 0.3); }

/* Badge- en afsluitmoment */
.badge-banner {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--sage);
  color: var(--wit);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0.35rem 1.2rem;
  margin-top: 1rem;
  border: 2px solid var(--wit);
  box-shadow: var(--schaduw-klein);
}

.badge-banner svg { width: 16px; height: 16px; }

.cta-rij {
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 0.8rem 0 0.4rem;
  width: 100%;
  padding: 0 0.5rem;
}

.cta-knop {
  font: inherit;
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--amber);
  color: var(--amber-inkt);
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.cta-knop:hover { background: var(--amber-dark); color: var(--wit); }

.cta-knop.secundair {
  background: transparent;
  color: var(--sage-dark);
  border: 2px solid var(--sage-dark);
}

.cta-knop.secundair:hover { background: rgba(158, 188, 174, 0.1); color: var(--sage-dark); }

.cta-knop:focus-visible { outline: 4px solid rgba(255, 179, 71, 0.5); }

/* Invoerregel onderaan */
.chat-invoer {
  display: flex;
  padding: 0.8rem 1rem;
  background: var(--wit);
  border-radius: 0 0 26px 26px;
  border-top: 1px solid rgba(158, 188, 174, 0.15);
}

.chat-invoer[hidden] { display: none; }

.invoer-omlijst {
  flex: 1;
  display: flex;
  gap: 0.5rem;
  padding: 0.35rem;
  background: var(--cream);
  border-radius: 28px;
  border: 1px solid var(--rand-mid);
  box-shadow: inset 0 1px 3px rgba(44, 74, 64, 0.06);
  transition: box-shadow 0.15s;
}

.invoer-omlijst:focus-within { box-shadow: 0 0 0 4px rgba(255, 179, 71, 0.3); }

.chat-invoer input {
  flex: 1;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.55rem 1rem;
  border: none;
  background: transparent;
  color: var(--sage-dark);
  min-width: 0;
}

.chat-invoer input:focus { outline: none; }
.chat-invoer input::placeholder { color: var(--tekst-flets); }

.chat-invoer button {
  font: inherit;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: var(--amber);
  color: var(--amber-inkt);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.chat-invoer button:hover { background: var(--amber-dark); color: var(--wit); }
.chat-invoer button:focus-visible { outline: 4px solid rgba(196, 123, 26, 0.5); }

.chat-invoer button svg { width: 20px; height: 20px; margin-left: 2px; }

/* Leesmodus */
body.leesmodus .chat-frame { display: none; }

.transcript {
  max-width: 720px;
  width: calc(100% - 2rem);
  margin: 1rem auto 2rem;
  padding: 1.4rem 1.6rem;
  background: var(--wit);
  border: 2px solid var(--wit);
  border-radius: 32px;
  box-shadow: var(--schaduw-zacht);
  position: relative;
  z-index: 10;
}

.transcript h2 { margin-top: 0; color: var(--sage-dark); font-size: 1.25rem; }

.transcript .regel {
  margin: 0.5rem 0;
  padding: 0.6rem 1rem;
  border-radius: 14px;
  white-space: pre-line;
}

.transcript .regel.james { background: rgba(158, 188, 174, 0.15); }
.transcript .regel.gebruiker { background: var(--cream); }

/* Lesoverzicht */
.lesoverzicht {
  max-width: 720px;
  width: calc(100% - 2rem);
  margin: 2rem auto;
  padding: 1.5rem 1.6rem;
  background: rgba(255, 229, 212, 0.4);
  border: 2px solid var(--wit);
  border-radius: 32px;
  box-shadow: var(--schaduw-klein);
  position: relative;
  z-index: 10;
}

.lesoverzicht h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--sage-dark);
  font-size: 1.35rem;
  margin: 0 0 1.2rem;
}

.lesoverzicht h2 svg { width: 22px; height: 22px; color: var(--amber); }

.lesoverzicht ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.lesoverzicht li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.6);
  padding: 0.8rem 1rem;
  border-radius: 16px;
  margin: 0;
}

.lesnr {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: var(--sage);
  color: var(--wit);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.lesvoet {
  color: var(--tekst-zacht);
  font-size: 0.9rem;
  text-align: center;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.4);
  padding: 0.7rem 1rem;
  border-radius: 12px;
  margin: 1.2rem 0 0;
}

/* Contentpagina's (diensten, over, contact) */
.pagina {
  max-width: 720px;
  width: calc(100% - 2rem);
  margin: 1.5rem auto 2rem;
  padding: 0;
  position: relative;
  z-index: 10;
}

.pagina h1 { color: var(--sage-dark); font-size: 1.8rem; letter-spacing: -0.02em; }

.pagina a { color: var(--amber-dark); font-weight: 600; }

.pagina ul, .pagina ol { padding-left: 1.3rem; }
.pagina li { margin: 0.5rem 0; }

.kaart {
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid var(--wit);
  border-radius: 20px;
  padding: 1.1rem 1.3rem;
  margin: 0.9rem 0;
  box-shadow: var(--schaduw-klein);
}

.kaart h2 { font-size: 1.15rem; margin: 0 0 0.3rem; color: var(--sage-dark); }
.kaart .prijs { color: var(--amber-dark); font-weight: 700; }

.knop {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  background: var(--amber);
  color: var(--amber-inkt);
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.knop:hover { background: var(--amber-dark); color: var(--wit); }
.knop:focus-visible { outline: 4px solid rgba(255, 179, 71, 0.5); }

/* Footer */
.site-footer {
  max-width: 720px;
  width: calc(100% - 2rem);
  margin: 1rem auto 2.2rem;
  padding: 0 1rem;
  color: var(--tekst-flets);
  font-size: 0.82rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.site-footer p { margin: 0; }

@media (max-width: 560px) {
  html { font-size: 17px; }
  .site-header { flex-direction: column; gap: 0.5rem; padding: 0.8rem 1rem; }
  .hero h1 { font-size: 1.6rem; }
  .hero-badge { font-size: 0.72rem; }
  .chat-frame { height: min(70vh, 560px); width: calc(100% - 1.5rem); }
  .chat-header { padding: 0.7rem 0.9rem; }
  .chat-berichten { padding: 0.9rem 1rem; }
  .bubble { max-width: 90%; font-size: 0.95rem; }
  .cta-rij .cta-knop { width: 100%; }
  .lesoverzicht { padding: 1.1rem 1rem; }
  .knop-leesmodus { font-size: 0.76rem; padding: 0.35rem 0.7rem; }
}
