
:root {
  --bg: #eef3f7;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --text: #1f2937;
  --muted: #5f6b7a;
  --line: #d7e0e8;
  --accent: #588BAE;
  --accent-soft: #e9f3f9;
  --accent-strong: #2f6d95;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

html, body {
  height: 100%;
}

body {
  display: block !important;
  min-height: 100vh;
  margin: 0;
  padding: 78px 16px 24px;
background: url("Images/background.jpg") center/cover no-repeat fixed;
  color: var(--text);
}

body, p, li, .question-text, .explanation, .definition-content, .disclaimer {
  line-height: 1.65;
}


/* ===== Brand title ===== */
.site-brand {
  width: min(980px, 100%);
  margin: 0 auto 6px;
  padding-inline: 6px;
}

.site-brand-inner {
  display: flex;
  align-items: flex-end;
  min-height: 28px;
}

.site-brand-wordmark {
  display: inline-block;
  font-family: "Comfortaa", sans-serif;
  font-size: clamp(1.18rem, 1rem + 0.7vw, 1.58rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

.site-brand-accent {
  color: var(--accent-strong);
}

@media (max-width: 900px) {
  .site-brand {
    margin-bottom: 4px;
    padding-inline: 4px;
  }
}

@media (max-width: 640px) {
  .site-brand {
    width: 100%;
    margin-bottom: 4px;
    padding-inline: 2px;
    margin-top: 6px; 
  }

  .site-brand-wordmark {
    font-size: 1.62rem;
    letter-spacing: -0.03em;
  }
}

.tool-title {
  font-family: "Comfortaa", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  width: min(980px, 100%);
  margin: 0 auto 6px auto;
  padding-left: 6px;
  color: var(--text);
}

.tool-eu {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.chat-container {
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: min(980px, 100%) !important;
  max-width: 980px;
  height: calc(100vh - 120px) !important;
  max-height: 980px;
  margin: 0 auto;
  padding: 0 !important;
  border: 1px solid rgba(88, 139, 174, 0.16);
  border-radius: 24px;
  /* zo was het: background: rgba(255,255,255,0.72) !important; */
  /* backdrop-filter: blur(8px); */
  background: transparent !important;
backdrop-filter: none;
  box-shadow: var(--shadow) !important;
  overflow: hidden;
}

.chat-box {
  border: 0 !important;
  border-radius: 24px !important;
  box-shadow: none !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(248,250,252,0.96) 100%) !important; 
  /* background: transparent !important; */
  padding: 24px 0 28px;
}

.message {
  padding-inline: clamp(14px, 3vw, 30px);
}

.question-container,
.definition-container {
  width: min(760px, calc(100% - 32px));
  margin: 20px auto !important;
  border: 1px solid var(--line) !important;
  border-radius: 20px !important;
  background: var(--surface) !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06) !important;
}

.question-container {
  padding: 22px 22px 18px !important;
}

.question-icon,
.definition-icon {
  width: 38px !important;
  height: 38px !important;
  font-size: 19px !important;
  top: -19px !important;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.22);
}

.question-text {
  margin-top: 0 !important;
  text-align: left !important;
}

.vraag-tekstvak {
  font-size: 1.08rem !important;
  line-height: 1.45;
  padding: 14px 18px !important;
  border-radius: 14px 14px 0 0 !important;
  letter-spacing: 0.01em;
}

.subvraag-tekstvak {
  font-size: 0.98rem !important;
  line-height: 1.55;
  padding: 8px 18px 14px !important;
  border-radius: 0 0 14px 14px !important;
}

.explanation,
.definition-content,
.disclaimer,
.knip,
.opmerkingvooraf,
.zwart-tekstvak {
  border-radius: 16px !important;
}

.explanation,
.definition-content,
.disclaimer {
  padding: 16px 18px !important;
  background: var(--surface-soft) !important;
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
  text-align: left !important;
}

.definition-content {
  margin-top: 12px !important;
}

.explanation p,
.definition-content p,
.disclaimer p,
.knip p,
.opmerkingvooraf p,
.question-text > p,
.question-text li,
.question-text ul,
.zwart-tekstvak p {
  max-width: 100ch;
  margin-left: auto;
  margin-right: auto;
}

.explanation ul,
.definition-content ul,
.question-text ul {
  padding-left: 1.25rem;
}

.zwart-tekstvak {
  max-width: 760px;
  margin: 18px auto 14px !important;
  padding: 20px 18px !important;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
}

.zwart-tekstvak p {
  margin: 6px auto 0;
  color: rgba(255,255,255,0.92);
}

.start-knop {
  width: auto !important;
  min-width: 240px;
  height: auto !important;
  padding: 14px 26px !important;
  border-radius: 999px;
  background-image: none !important;
  background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent) 100%) !important;
  box-shadow: 0 10px 24px rgba(47, 109, 149, 0.28);
  font-size: 15px !important;
}

.start-knop:hover {
  opacity: 1 !important;
  transform: translateY(-1px);
}

.info-section {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px !important;
  max-width: 760px;
  margin: 6px auto 18px !important;
  padding-inline: 14px;
}

.info-box {
  max-width: none !important;
  background: var(--surface) !important;
border: 0.5px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  padding: 16px 12px 12px;
  box-shadow: 0 5px 10px rgba(15, 23, 42, 0.05);
}

.info-box img {
  width: 56px !important;
  height: 56px !important;
  object-fit: contain;
}

.info-box p {
  font-size: 0.84rem !important;
  line-height: 1.45;
  margin-top: 10px !important;
}

.bubble-container {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px !important;
  max-width: 760px;
  margin: 0 auto 18px !important;
  padding-inline: 14px;
}

.bubble,
.definition-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 128px;
  padding: 18px 16px !important;
  border-radius: 18px !important;
  border: 1px solid transparent;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.bubble {
  background: linear-gradient(180deg, #f3f9fc 0%, #e8f2f8 100%);
  color: var(--text);

  border: 1px solid rgba(88, 139, 174, 0.25);

  box-shadow:
    0 4px 10px rgba(15, 23, 42, 0.06),
    0 1px 2px rgba(15, 23, 42, 0.04);

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.bubble:hover {
  transform: translateY(-2px);

  border-color: rgba(88, 139, 174, 0.45);

  box-shadow:
    0 10px 20px rgba(15, 23, 42, 0.10),
    0 3px 6px rgba(15, 23, 42, 0.05);
}

.bubble img {
  max-width: 50px !important;
  max-height: 50px !important;
}

.bubble-text,
.definition-bubble {
  font-size: 0.95rem !important;
  line-height: 1.45;
}

.answer-options {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px !important;
  padding-inline: 16px;
}

.answer-option,
.vertical-answer-option {
  min-width: 140px !important;
  padding: 11px 18px !important;
  border-radius: 999px !important;
  font-size: 0.95rem !important;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent) 100%) !important;
  box-shadow: 0 8px 20px rgba(47, 109, 149, 0.22);
}

.vertical-answer-options {
  width: min(460px, calc(100% - 32px)) !important;
  gap: 8px !important;
}

.vertical-answer-option {
  text-align: center;
}

.answer-option:hover,
.vertical-answer-option:hover {
  background: linear-gradient(135deg, #3b7fa8 0%, #73a8cb 100%) !important;
}

.go-back-text {
  margin-top: 14px !important;
  font-size: 0.88rem !important;
  font-weight: 600;
}

.definition-container::before {
  top: -20px !important;
  left: 22px !important;
  width: 44px !important;
  height: 44px !important;
  background-size: 58% !important;
  border-color: var(--line) !important;
}

.opmerkingvooraf,
.knip {
  width: auto !important;
  max-width: 68ch;
  margin: 18px auto !important;
  padding: 12px 16px 12px 42px !important;
  font-size: 0.94rem !important;
  line-height: 1.55;
}

.bron {
  display: block;
  margin-top: 12px;
  color: var(--muted) !important;
}

.linkjes {
  color: var(--accent-strong) !important;
}

#nav-placeholder {
  position: relative;
  z-index: 20;
}

.navbar {
  background: rgba(17, 24, 39, 0.94) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

@media (max-width: 900px) {
  body {
    padding-top: 74px;
  }

  .chat-container {
    height: calc(100vh - 104px) !important;
    border-radius: 20px;
  }

  .chat-box {
    border-radius: 20px !important;
  }

  .info-section,
  .bubble-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    padding: 68px 10px 16px;
  }

  .chat-container {
    width: 100% !important;
    height: calc(100vh - 88px) !important;
    border-radius: 18px;
  }

  .chat-box {
    padding-top: 18px;
  }

  .message {
    padding-inline: 8px;
  }

  .question-container,
  .definition-container {
    width: calc(100% - 12px);
    margin: 18px auto !important;
    padding-inline: 14px !important;
  }

  .info-section,
  .bubble-container {
    grid-template-columns: 1fr;
    gap: 12px !important;
    padding-inline: 8px;
  }

  .bubble,
  .definition-bubble {
    min-height: 0;
  }

  .bubble {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    text-align: left !important;
    padding: 14px 16px !important;
  }

  .bubble img {
    flex: 0 0 42px;
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    object-fit: contain;
    margin: 0 !important;
  }

  .bubble-text {
    margin-top: 0 !important;
    text-align: left !important;
    flex: 1 1 auto;
  }

  .answer-option,
  .vertical-answer-option {
    width: 100%;
  }

  .answer-options {
    flex-direction: column;
    align-items: stretch;
  }

  .vertical-answer-options {
    width: calc(100% - 24px) !important;
  }

  .vraag-tekstvak,
  .subvraag-tekstvak,
  .explanation,
  .definition-content,
  .disclaimer,
  .zwart-tekstvak {
    text-align: left !important;
  }
}


/* Fix voor uitklapbare definities: compacter paneel + icoon altijd erboven */
.definition-container {
  position: relative !important;
  overflow: visible !important;
  padding-top: 18px !important;
}

.definition-container::before {
  z-index: 6 !important;
  pointer-events: none;
}

.definition-bubble,
.definition-content {
  position: relative;
  z-index: 1;
}

.definition-bubble {
  min-height: 0 !important;
  padding: 14px 18px 14px 62px !important;
  text-align: left !important;
}

.definition-content {
  margin: 8px 14px 14px !important;
  padding: 14px 16px !important;
  border-radius: 14px !important;
  max-height: min(34vh, 320px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.definition-content p,
.definition-content li {
  max-width: 60ch;
}

@media (max-width: 640px) {
  .definition-container {
    padding-top: 16px !important;
  }

  .definition-container::before {
    left: 18px !important;
    width: 40px !important;
    height: 40px !important;
    top: -18px !important;
  }

  .definition-bubble {
    padding: 12px 14px 12px 56px !important;
  }

  .definition-content {
    margin: 8px 8px 10px !important;
    max-height: min(38vh, 300px);
  }
}
.info-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

/* Verberg standaard summary-pijltje in alle browsers */
summary.info-accordion-toggle::-webkit-details-marker {
  display: none;
}

summary.info-accordion-toggle::marker {
  content: "";
  display: none;
}
.info-accordion-title-wrap {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}


.info-accordion-title {
  display: inline;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

.info-accordion-arrow {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(88, 139, 174, 0.10);
  position: relative;
}

.info-accordion-arrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--accent-strong);
  border-bottom: 2px solid var(--accent-strong);
  transform: rotate(-45deg);
  transform-origin: center;
  margin-right: 2px;
}

/* open = pijltje omlaag */
.info-accordion[open] .info-accordion-arrow::before {
  transform: rotate(45deg);
  margin-right: 0;
  margin-top: -2px;
}

.info-accordion-toggle {
  width: auto;
}

@media (max-width: 640px) {
  .bubble-container {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding-inline: 8px;
  }

  .bubble {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 14px !important;
    padding: 14px 16px !important;
    min-height: 0 !important;
  }

  .bubble img {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
    flex: 0 0 42px !important;
  }

  .bubble-text {
    flex: 1 !important;
    margin-top: 0 !important;
    text-align: left !important;
    line-height: 1.35 !important;
  }
}
@media (max-width: 640px) {

  .info-section {
    grid-template-columns: 1fr !important;
  }

  .info-box {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 14px !important;
    padding: 14px 16px !important;
    border: 1px solid rgba(88,139,174,0.18);
  }

  .info-box img {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    object-fit: contain !important;
    margin: 0 !important;
    flex: 0 0 42px !important;
  }

  .info-box p {
    margin: 0 !important;
    flex: 1 !important;
    text-align: left !important;
    line-height: 1.35 !important;
  }

}
.start-knop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}
.start-knop::after {
  content: "→";
  margin-left: 10px;
  transition: transform 0.2s ease;
}

.start-knop:hover::after {
  transform: translateX(4px);
}