:root {
  --groen-950: #07180f;
  --groen-900: #0b2418;
  --groen-800: #10301f;
  --groen-700: #16402a;
  --groen-600: #1e5537;
  --groen-500: #2c7a4f;
  --groen-300: #8fc9a5;
  --groen-100: #e4f1e8;
  --goud: #d9b45a;
  --tekst: #eef6f0;
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--groen-950);
  color: var(--tekst);
  display: flex; flex-direction: column;
  line-height: 1.55;
}
/* Achtergrond als vaste laag: 'background-attachment: fixed' laat het scherm flikkeren bij scrollen. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(143, 201, 165, .14), transparent 55%),
    linear-gradient(180deg, var(--groen-800), var(--groen-950));
}
html { overflow-anchor: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.kop {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px max(16px, calc((100vw - 860px) / 2));
  border-bottom: 2px solid var(--goud);
  background: rgba(7, 24, 15, .94);
  position: sticky; top: 0; z-index: 5;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo svg { width: 40px; height: 40px; flex: none; }
.logo strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; display: block; }
.logo span { font-size: .82rem; color: var(--groen-300); }
.nieuw { background: none; color: var(--groen-100); border: 1px solid var(--groen-500); border-radius: 999px; padding: 6px 14px; cursor: pointer; font: inherit; font-size: .9rem; }
.nieuw:hover { background: var(--groen-700); }

.chat { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 24px 16px 8px; }
.welkom { text-align: center; padding: 6vh 0 12px; }
.welkom h1 { font-family: Georgia, serif; font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin: 0 0 8px; }
.welkom p { color: var(--groen-300); margin: 0 auto 28px; max-width: 560px; }
.suggesties { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; text-align: left; }
.suggesties button, .vervolg button {
  background: rgba(255, 255, 255, .05); color: var(--tekst);
  border: 1px solid rgba(143, 201, 165, .3); border-radius: 12px;
  padding: 12px 14px; font: inherit; font-size: .95rem; cursor: pointer; text-align: left;
  transition: background .15s, border-color .15s;
}
.suggesties button:hover, .vervolg button:hover { background: var(--groen-700); border-color: var(--goud); }

.bericht { display: flex; margin: 14px 0; }
.bericht.gebruiker { justify-content: flex-end; }
.ballon { max-width: 85%; padding: 12px 16px; border-radius: var(--radius); overflow-wrap: anywhere; }
.gebruiker .ballon { background: var(--groen-500); border-bottom-right-radius: 4px; }
.bot .ballon { background: rgba(255, 255, 255, .06); border: 1px solid rgba(143, 201, 165, .2); border-bottom-left-radius: 4px; }
.ballon p { margin: 0 0 8px; } .ballon p:last-child { margin-bottom: 0; }
.ballon ul, .ballon ol { margin: 4px 0 8px; padding-left: 20px; }
.ballon li { margin-bottom: 4px; }
.ballon a { color: var(--goud); }
.ballon strong { color: #fff; }
.fout .ballon { border-color: #c98f8f; background: rgba(201, 143, 143, .12); }
.denkt { display: inline-flex; gap: 4px; padding: 4px 0; }
.denkt i { width: 8px; height: 8px; border-radius: 50%; background: var(--groen-300); animation: pulse 1.2s infinite ease-in-out; }
.denkt i:nth-child(2) { animation-delay: .15s; } .denkt i:nth-child(3) { animation-delay: .3s; }
@keyframes pulse { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }
.anderevragen { margin-top: 14px; background: none; border: 0; color: var(--groen-300); font: inherit; font-size: .9rem; cursor: pointer; padding: 6px 10px; border-radius: 999px; }
.anderevragen:hover { color: var(--goud); background: rgba(255, 255, 255, .05); }
.vervolg { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.vervolg button { padding: 7px 12px; font-size: .85rem; border-radius: 999px; }

.invoer {
  position: sticky; bottom: 0; width: 100%; max-width: 860px; margin: 0 auto;
  display: flex; gap: 10px; align-items: flex-end; padding: 12px 16px;
  background: linear-gradient(180deg, transparent, var(--groen-950) 30%);
}
.invoer textarea {
  flex: 1; resize: none; max-height: 160px; font: inherit; color: var(--tekst);
  background: var(--groen-900); border: 1px solid var(--groen-500); border-radius: 14px; padding: 12px 14px;
}
.invoer textarea:focus { outline: 2px solid var(--goud); outline-offset: 1px; }
.invoer button { width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--goud); color: var(--groen-900); cursor: pointer; flex: none; }
.invoer button:disabled { opacity: .5; cursor: wait; }
.invoer button svg { width: 22px; height: 22px; }
.voet { max-width: 860px; margin: 0 auto; padding: 0 16px 14px; font-size: .75rem; color: var(--groen-300); text-align: center; }
