:root{
  /* warme pagina-achtergrond (als je die ook centraal wilt zetten) */
  --bg: #fff8f3;
  /* herbruikbare “glow” achter banners/hero’s */
  --banner-glow:
    radial-gradient(65% 70% at 15% 20%, rgba(234,91,12,.18), transparent 60%),
    radial-gradient(55% 60% at 85% 10%, rgba(234,91,12,.10), transparent 60%),
    radial-gradient(60% 70% at 50% 0%,  rgba(255,255,255,.8), transparent 60%);
  /* jouw merk-oranje */
  --brand-orange: #EA5B0C;
}

/* los van :root defineren */
.orange-bold { 
  color: var(--brand-orange, #EA5B0C); /* fallback toegevoegd */
  font-weight: 800; 
}

html, body {margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #4A4A4A;
  background-color: #E6F4F9;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;}

.ai-container {
  width: min(1200px, calc(100% - 3rem));
  margin: 30px auto 2rem;
  display: flex;
  align-items: stretch;
  gap: 40px;
  flex-wrap: wrap;
  box-sizing: border-box;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 40px;
}

.bas-spreker .ai-container {min-height: 100%;
  padding: 30px 40px 30px 40px;}

.ai-left {flex: 2;
  min-width: 300px;
  height: auto;
  position: relative;}

.ai-right {flex: 1;
  min-width: 300px;
  height: auto;
  min-height: 300px;
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 12px;
  box-sizing: border-box;
  font-size: 15px;
  font-family: "Inter", sans-serif;
  line-height: 1.6;}

.ai-container input {padding: 12px;
  width: calc(100% - 24px); 
  max-width: 400px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  line-height: 1.5;}

.ai-container button {margin-top: 12px;
  padding: 12px 24px;
  font-size: 16px;
  background-color: rgba(0, 160, 215, 1.0);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;}

.antwoord-blok {margin-top: 20px;
  padding: 15px;
  padding-top: 8px;
  background: #E6F4F9;
  border: 1px solid rgba(0, 160, 215, 0.3);
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.6;}

@keyframes  fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-container .bericht {background: white;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
  font-size: 15px;
  font-family: "Inter", sans-serif;
  line-height: 1.6;}

.ai-container .bericht strong {display: block;
  color: #0072a3;
  margin-bottom: 5px;}

.ai-container .bericht p {margin: 0;}

.ai-container textarea {padding: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  resize: none;
  overflow: hidden;
  background-color: white;
  color: #333;}

.ai-container button:hover {background-color: #008ec4;}

.voorbeeld-vragen {margin-top: 40px;}

.voorbeeld-vragen h5 {font-size: 16px;
  margin-bottom: 10px;
  color: #0072a3;}

.vragen-lijst {display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;}

.vragen-lijst button {background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px 14px;
  text-align: center;
  cursor: pointer;
  font-size: 15px;
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  transition: background-color 0.2s, border-color 0.2s;}

.vragen-lijst button[data-onderwerp="contact"] {border-width: 2px;
  border-color: #e20170;
  font-weight: bold;}

.vragen-lijst button:hover {background-color: #E6F4F9;
  border-color: rgba(0, 160, 215, 0.5);}

.vragen-lijst button.active {background-color: #E6F4F9 !important;
  border-color: rgba(0, 160, 215, 0.5) !important;
  color: #333 !important;}

.bas-spreker .vragen-lijst button {border-color: rgba(0, 160, 215, 0.5);}

.bas-spreker .vragen-lijst button[data-onderwerp="contact"] {border-color: #e20170 !important;
  border-width: 2px;}

.antwoord-tekst p {margin: 8px 0;}

.antwoord-titel {margin-top: 0;
  margin-bottom: 12px;
  font-size: 16px;
  color: #0072a3;}

.vraag-wrapper {display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  overflow: visible;}

.vraag-links {flex: 1;}

.titelblok h3 {margin-bottom: 4px;}

.titelblok p {margin-top: 10px;}

.layout-container {max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
  box-sizing: border-box;}

@keyframes  spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media  (max-width: 768px) {
  .boek-cover {
    display: none;
  }
}

.main-header {background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 999;}

.gesprek-image-wrapper {text-align: center;
  margin-bottom: 20px;}

.gesprek-image {width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);}

.gesprek-content {display: flex;
  flex-direction: column;
  justify-content: stretch;
  height: 100%;
  flex-grow: 1;}

.placeholder-gesprek {flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  padding-top: 20px;}

.lijn {height: 16px;
  background-color: #e0e0e0;
  border-radius: 6px;
  width: 100%;}

.boek-cover-onderaan {max-height: 75%;
  max-width: none;
  height: auto;
  width: auto;
  margin: 0 0 0 60px; 
  border-radius: 0px;}

.placeholder-antwoord .lijn {height: 14px;
  background-color: #e0e0e0;
  border-radius: 6px;
  width: 100%;
  margin-bottom: 10px;}

.vragen-lijst button.active {background-color: #00a0d7;
  color: white;
  border-color: #0072a3;}

.tekstblok-twee-kolommen p {margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #4A4A4A;}

.bas-spreker .antwoord-blok {padding: 0;
  font-size: 15px;
  line-height: 1.6;
  border: none;
  background: none;
  margin-top: 20px;}

.contact-form button {margin-top: 30px;
  padding: 12px;
  background-color: #00a0d7;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;}

@media  (max-width: 768px) {
  .menu-toggle {
    display: block;
    color: #0072a3;
  }

  .boek-cover {
      display: none;
    }
  
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 60px;
    left: 40px; 
    width: 200px;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 999;
    max-height: 70vh;         
    overflow-y: auto;         
  }

  .nav-links.active {
    display: flex;
  }

}

@media  (max-width: 768px) {
  body.bas-spreker .ai-container {
    flex-direction: column;
    padding: 20px;
  }

  body.bas-spreker .ai-left,
  body.bas-spreker .ai-right {
    width: 100%;
    max-width: 100%;
  }

  body.bas-spreker .tekstblok-twee-kolommen {
    grid-template-columns: 1fr;
  }

  body.bas-spreker .boek-kleuren-img {
    width: 100%;
    height: auto;
  }

  .banner-wrapper.custom-banner {
    justify-content: center; 
    align-items: flex-end;   
  }

  .banner-wrapper.custom-banner::before{
    content: "";
    position: absolute;
    inset: -20% -20% auto -20%;
    height: 60%;
    z-index: -1;
    background: var(--banner-glow); /* ← vanaf nu via :root variabele */
  }

  .boek-cover-onderaan {
    margin: 0; 
  }

}

.boek-buttons button {background: none;
  border: 2px solid #e0e0e0;
  padding: 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.3s ease;
  flex: 1 1 calc(25% - 15px); 
  max-width: 200px;
  box-sizing: border-box;}

.boek-buttons button img {width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;}

@media  (max-width: 768px) {
  .boek-buttons button {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.boek-uitleg h4 {margin-top: 0;
  color: #0072a3;}

.boek-uitleg p {font-size: 15px;
  line-height: 1.6;}

body.index-pagina .cover-container {position: relative;
  margin-left: 60px;
  margin-bottom: 0px;}

body.index-pagina .boek-cover-onderaan {height: 220px;
  width: auto;
  display: block;
  margin: 0;}

@keyframes  fadeInBadge {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media  (max-width: 768px) {
  body.index-pagina .banner-wrapper.pagina-index-banner {
    justify-content: center; 
    align-items: flex-end;   
  }

  body.index-pagina .cover-container {
    margin-left: 0;
    margin-right: 0;
  }
}

.samenvatting-main .ai-container {margin-bottom: 30px;}

body.pagina-samenvatting .ai-right {display: flex;
  flex-direction: column;
  justify-content: space-between;}

body.pagina-samenvatting .placeholder-gesprek {flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;}

input,
textarea {overflow-x: hidden;
  text-overflow: ellipsis;}

@media  (max-width: 768px) {
  .ai-container {
    width: min(1200px, calc(100% - 1rem));
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    box-sizing: border-box;
  }

  .ai-left, .ai-right {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .vraag-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .banner-wrapper.custom-banner {
    width: 100%;
    box-sizing: border-box;
  }

  .nav-links {
    left: 0;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .boek-cover-onderaan {
    max-width: 90vw;
  }
}

@keyframes fadeIn {from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }}

.banner-wrapper.custom-banner {
  background:
    radial-gradient(65% 60% at 15% 20%, rgba(234,91,12,.10) 0%, transparent 60%),
    linear-gradient(180deg, #FFF7F2, #FFE9DD);
  padding: 0;
  position: relative; 
  isolation: isolate;
  display: flex;
  justify-content: flex-start; 
  align-items: flex-end;       
  width: 100%;
  height: 330px; 
  box-sizing: border-box;
  border-radius: 12px;
  overflow: hidden;}

:root{
  --pattern-color: rgba(234,91,12,.20);  /* heel zacht oranje */
  --pattern-size: 100px;                   /* rastergrootte; mag 16–28px */
}

.boek-cover-onderaan {max-height: 75%;
  max-width: none;
  height: auto;
  width: auto;
  margin: 0 0 0 60px; 
  border-radius: 0px;}

.banner-wrapper.spreker-banner {padding: 0;
  margin: 0;
  width: 100%;
  height: auto;
  background-color: transparent;
 
  overflow: hidden;}

.spreker-banner-img {width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;}

body.index-pagina .banner-wrapper.pagina-index-banner {background-color: #c0e4ea;
  padding: 0 25px;
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  width: 100%;
  height: 300px;
  box-sizing: border-box;
  border-radius: 12px;
  overflow: hidden;}

body.index-pagina .cover-container {position: relative;
  margin-left: 60px;
  margin-bottom: 0px;}

body.index-pagina .boek-cover-onderaan {height: 220px;
  width: auto;
  display: block;
  margin: 0;}

body.index-pagina .banner-badge.badge-op-cover {position: absolute;
  top: -40px; 
  right: -30px; 
  background-color: #e20170;
  color: white;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  text-align: center;
  font-weight: bold;
  opacity: 0;
  animation: fadeInBadge 1.2s ease-out 1s forwards;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 2;}

@keyframes fadeInBadge {from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }}

  .nav-bar {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    font-family: "Inter", sans-serif;
    flex-wrap: wrap;
    overflow: visible;
  }
  
  .nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    overflow: visible;
  }
  
  .nav-links li a {
    text-decoration: none;
    font-weight: bold;
    color: #333;
    font-size: 14px;
    transition: color 0.2s ease;
  }
  
  .nav-links li a:hover {
    color: #00a0d7;
  }
  
  .nav-links li a.active {
    color: #00a0d7;
    position: relative;
    text-decoration: none;
  }
  
  .nav-links li a.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 110%;
    height: 2px;
    background-color: #00a0d7;
    border-radius: 1px;
    transform: translateX(-50%);
  }
  
  .menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
  }
  
  /* Responsive menu */
  @media (max-width: 768px) {
    .menu-toggle {
      display: block;
      color: #0072a3;
    }
  
    .nav-links {
      display: none;
      flex-direction: column;
      background-color: white;
      position: absolute;
      top: 60px;
      left: 40px;
      width: 200px;
      border: 1px solid #ddd;
      padding: 10px;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      z-index: 999;
      max-height: 70vh;
      overflow-y: auto;
    }
  
    .nav-links.active {
      display: flex;
    }
  }
  
  .nav-links li a.active {
    color: #00a0d7;
    position: relative;
    text-decoration: none;
  }
  
  .nav-links li a.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 110%;
    height: 2px;
    background-color: #00a0d7;
    border-radius: 1px;
    transform: translateX(-50%);
  }
  
  .oplossing-tekst {
    position: absolute;
    bottom: 10px;
    left: 30px;
    font-size: 20px;
    font-weight: bold;
    color: #000000;
    opacity: 0;
    transform: translateY(20px);
    animation: slideFadeIn 1.2s ease-out 1.4s forwards;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 8px 26px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  /* Animatie */
  @keyframes slideFadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .tafel-container {
    position: relative;
    width: 100%;
    height: 50vh; /* of pas aan voor gewenste hoogte */
  }
  
  .tafel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 40%;
    background-color: #ffffff;
    border-style: solid;
    border-color: #4A4A4A;
    border-radius: 50%; /* zorgt voor ovaal */
    z-index: 0;
    top: 51.5%;
    left: 50%;
    transform: translate(-50%, -50%);
  }  
  
  .tafel-teller {
  position: absolute;
  top: 51%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  background: transparent;
  border-radius: 0.8em;
  padding: 1em 1.5em;
  text-align: center;
  box-shadow: none;
  display: flex;
  gap: 1em;
  font-family: "Inter", sans-serif;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  font-size: clamp(10px, 1.5vw, 16px);
  max-width: 90%;
  box-sizing: border-box;
}

.tafel-teller .badge {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 0.6em;
  padding: 0.5em 0.8em;
  color: white;
  min-width: 40px;
  box-sizing: border-box;
  font-size: inherit;
}

.tafel-teller .badge span {
  font-weight: 500;
  margin-bottom: 0.2em;
  text-transform: uppercase;
  font-size: 0.9em;
}

.tafel-teller .badge strong {
  font-size: 1.3em;
  font-weight: bold;
}

.tafel-teller .badge.ik {
  background-color: #ea5b0c;
}

.tafel-teller .badge.zij {
  background-color: #f5b041;
}

.tafel-teller .badge.wij {
  background-color: #2ecc71;
}

@media (max-width: 500px) {
  .tafel-teller {
    gap: 0.5em;
    padding: 0.6em 1em;
    font-size: clamp(8px, 3vw, 14px);
  }

  .tafel-teller .badge {
    padding: 0.4em 0.6em;
  }

  .tafel-teller .badge strong {
    font-size: 1.1em;
  }
}

/* Eén centrale teller in de tafel */
#tafelTeller{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 0;         /* geen extra ruimte nodig voor 3 kolommen meer */
}
#tafelTeller .badge.total{
  /* optioneel wat meer body; haal weg als je dit al hebt */
  padding: 8px 12px;
  border-radius: 10px;
}


  .teamlid {
    position: absolute;
    width: 30px;
    height: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    transform: translate(-50%, -50%);
  }
  
  .teamlid::before {
    content: "";
    width: 20px;
    height: 20px;
    background: white;
    border: 1px solid #444;
    border-radius: 50%;
  }
  
  .teamlid::after {
    content: "";
    width: 6px;
    height: 8px;
    margin-top: 3px;
    background: #444;
    border-radius: 2px;
  }  

  .teamlid-label {
    position: absolute;
    top: 110%; /* onder het poppetje */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    white-space: pre-line; /* zorgt dat \n als enter wordt gelezen */
    font-size: 12px;
    line-height: 1.2;
    max-width: 60px;
  }

  @media (max-width: 500px) {
    .teamlid {
      width: 22px;
      height: 30px;
    }
  
    .teamlid::before {
      width: 16px;
      height: 16px;
    }
  
    .teamlid::after {
      width: 5px;
      height: 6px;
    }
  }  
  
  /* Statuskleuren */
  .teamlid.belemmerend::before {
    background-color: #e95a0c;
  }
  .teamlid.helpend::before {
    background-color: green;
  }
  .teamlid.stil::before {
    background-color: lightgray;
  }
  
  .popup-menu {
  position: absolute;
  background: white;
  border: 1px solid #aaa;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 6px;
  z-index: 9999;
}

.popup-menu div {
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 14px;
}

.popup-menu.hidden {
  display: none !important;
}

.popup-menu div:hover {
  background-color: #f0f0f0;
}

/* Nieuwe kleuren voor de statusregels */
.popup-menu div[data-status="belemmerend"] {
  color: #e95a0c;
}

.popup-menu div[data-status="helpend"] {
  color: #2ecc71;
}

.popup-menu div[data-status="stil"] {
  color: #888;
}

.popup-title {
  font-weight: bold;
  font-size: 14px;
  padding: 4px 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid #ccc;
}

.status-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  row-gap: 4px;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.status-buttons button {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: transparent; /* transparante achtergrond */
  color: #000000; /* zwarte tekst */
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  text-align: center;
}

.status-buttons button:hover {
  background-color: #e6f4f9;
  border-color: #00a0d7;
  color: #0072a3;
}

.status-buttons button.active {
  background-color: #e6f4f9;  /* zelfde als hover */
  border-color: #00a0d7;
  color: #0072a3;
}

#type-uitleg .label {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 6px;
  font-size: 0.8em;
  font-weight: bold;
  border-radius: 4px;
  background-color: #e0e0e0;
  color: #333;
  text-transform: uppercase;
}

.grafiek-container {
  width: 100%;
  height: 120px;
  margin-top: 30px;
  margin-bottom: 30px;
}
canvas#teamChart {
  width: 100% !important;
  height: 100% !important;
}

.ai-left-2 {
  flex: 1 1 0;
  min-width: 300px;
  box-sizing: border-box;
}

.team-afronding {
  margin-top: 2rem;
  text-align: center;
}

.advies-button {
  padding: 12px 24px;
  background-color: #EA5B0C;
  color: black;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  cursor: pointer;
}
.advies-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.advies-note {
  margin-top: 4px;
  font-size: 12px;
  color: #555;
}

#toonAdviesBtn {
  background-color: #EA5B0C; 
  color: rgb(255, 255, 255);
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* oude ::before-animaties uitzetten (voor de zekerheid) */
#toonAdviesBtn::before { content: none !important; display: none !important; }

/* runner-overlay exact over de knop */
#toonAdviesBtn { position: relative; }
#toonAdviesBtn .border-runner{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; overflow: visible;
}

/* Rail (mag je weglaten) */
#toonAdviesBtn .border-runner .track{
  fill: none; stroke: rgba(255,255,255,.18);
  stroke-width: 4; vector-effect: non-scaling-stroke;
}

/* Lopende lijn die de border volgt */
#toonAdviesBtn .border-runner .runner{
  --kleur: #fff;      /* zichtbare lijnkleur */
  --dikte: 5;         /* px */
  --dash: 240;        /* lengte vd zichtbare lijn (0–1000) */

  fill: none; stroke: var(--kleur);
  stroke-width: var(--dikte);
  stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: var(--dash) calc(1000 - var(--dash));
  stroke-dashoffset: 0;
  opacity: 0;         /* alleen tonen bij .active */
}

/* start animatie alleen wanneer actief (≥4 teamleden) */
#toonAdviesBtn.active .border-runner .runner{
  opacity: 1; animation: runner-loop 1.6s linear infinite;
}

/* verberg overlay wanneer niet actief, disabled óf na klik */
#toonAdviesBtn:not(.active) .border-runner,
#toonAdviesBtn:disabled .border-runner,
#toonAdviesBtn.clicked .border-runner { display: none; }

@keyframes runner-loop { to { stroke-dashoffset: -1000; } }

@media (prefers-reduced-motion: reduce){
  #toonAdviesBtn.active .border-runner .runner{ animation: none; }
}


#toonAdviesBtn:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
}

.advies-buttons {
  margin: 30px auto;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.advies-button {
  background-color: #EA5B0C;
  color: white;
  padding: 8px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 16px;
  text-align: center;
  transition: background-color 0.3s;
  min-width: 160px;
}

.advies-button:hover {
  background-color: #c94c08;
}

.advies-container {
  margin-top: 20px;
  padding: 16px;
  text-align: left;
  /* Zelfde styling als .ai-right */
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
}

.advies-container h3 {
  text-align: center;
  margin-top: 32px;
  margin-bottom: 32px;
}

#adviesTekst {
  text-align: center;
  font-style: italic;
}

/* Als advies geladen is als lijst, zorg dat de tekst links staat */
.advies-container ul {
  text-align: left;
  padding-left: 1.5em;
  margin-top: 1em;
}
.advies-container li {
  margin-bottom: 6px;
  text-align: left;
}

.advies-loading-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-style: italic;
  text-align: center;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 4px solid #ccc;
  border-top-color: #EA5B0C;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.teamlid[data-type="IK"]::before {
  background-color: #f5b041; /* Oranje */
}

.teamlid[data-type="ZIJ"]::before {
  background-color: #f5b041; /* Geelachtig */
}

.teamlid[data-type="WIJ"]::before {
  background-color: #f5b041; /* Groen */
}

.auteurs-onderaan {
  max-height: 75%;
  max-width: 90vw;
  height: auto;
  width: auto;
  margin: 0 0 0 60px; 
  border-radius: 0px;
  margin: 0;
}

body.index-pagina .auteurs-onderaan {
  height: 280px;
  width: auto;
  display: block;
  margin: 0;}

.boek-beschrijving-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem 0;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.boek-flex-blok {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem;
}

.boek-cover {
  height: 200px;
  width: auto;
  flex-shrink: 0;
}

.boek-tekst {
  flex: 1;
  min-width: 250px;
}

.boek-tekst h3 {
  margin-top: 0;
  color: #000000;
}

.content-box {
  background-color: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.h3-button {
  display: inline-block;
  background-color: black;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.h3-button:hover {
  background-color: #333;
}

/* Banner: horizontale 'text lines' overlay (laat je eigen background-color intact) */
.banner-wrapper.pattern-stripes{
  position: relative;
  overflow: hidden;              /* clip binnen de afgeronde hoeken */
}

.banner-wrapper.pattern-stripes::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;

  /* Tuning */
  --tile-w: 640;   /* breedte van een herhaaltegel (px) */
  --tile-h: 240;   /* hoogte van een herhaaltegel (px) */

  /* Alleen een background-IMAGE (geen -color) -> originele kleur blijft */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='240' viewBox='0 0 640 240'%3E%3Cg stroke='%230F172A' stroke-opacity='0.05' stroke-width='8' stroke-linecap='round' fill='none'%3E%3Cpath d='M8 18 H632'  stroke-dasharray='120 28 80 32 54 40'/%3E%3Cpath d='M8 38 H632'  stroke-dasharray='80 24 140 26 46 36'/%3E%3Cpath d='M8 58 H632'  stroke-dasharray='96 30 60 22 120 34'/%3E%3Cpath d='M8 78 H632'  stroke-dasharray='48 20 90 28 130 24'/%3E%3Cpath d='M8 98 H632'  stroke-dasharray='140 26 52 22 84 32'/%3E%3Cpath d='M8 118 H632' stroke-dasharray='66 18 120 30 60 28'/%3E%3Cpath d='M8 138 H632' stroke-dasharray='110 24 40 26 98 30'/%3E%3Cpath d='M8 158 H632' stroke-dasharray='90 22 130 24 44 28'/%3E%3Cpath d='M8 178 H632' stroke-dasharray='124 30 56 20 86 26'/%3E%3Cpath d='M8 198 H632' stroke-dasharray='70 24 118 28 60 22'/%3E%3Cpath d='M8 218 H632' stroke-dasharray='132 26 46 24 96 28'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: calc(var(--tile-w)*1px) calc(var(--tile-h)*1px);
  background-position: center;
}

/* ——— Vergadertafel: frosted glass / glassmorphism ——— */
.tafel{
  position: relative;
  border: 3px solid rgba(15,23,42,0.08);      /* zelfde kleur/dikte als stripes */
  border-radius: 50% / 45%;
  background: rgba(255,255,255,0.35);         /* fallback als blur ontbreekt */
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.6),    /* subtiele inner rim */
    0 16px 40px rgba(15,23,42,0.08);          /* zachte drop shadow */
}

/* Specular highlight bovenop (heel subtiel) */
.tafel::before{
  content:"";
  position:absolute;
  inset: 8% 6% 58% 6%;                        /* bovenste “glans”-boog */
  border-radius: 50% / 45%;
  pointer-events:none;
  background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0));
  z-index: 0;
}

/* Vloerschaduw onder de tafel – geeft diepte */
.tafel::after{
  content:"";
  position:absolute;
  left: 10%; right: 10%;
  bottom: -6%;
  height: 22%;
  pointer-events:none;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 0, rgba(15,23,42,0.12), transparent 70%);
  filter: blur(6px);
}

/* Zorg dat de interactieve rondjes altijd boven de decoratie liggen */
.tafel > *{ position: absolute; z-index: 2; }


/* Zorg dat jouw rondjes/targets altijd boven de decoratie liggen */
.tafel > *{ position: absolute; z-index: 2; }

/* === Border-runner voor .advies-button.with-runner (zoals "Doe de pre-scan") === */
.advies-button.with-runner { position: relative; overflow: visible; }

.advies-button.with-runner .border-runner{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; overflow: visible;
}

/* optionele subtiele rail */
.advies-button.with-runner .track{
  fill: none; stroke: rgba(255,255,255,.18);
  stroke-width: 2; vector-effect: non-scaling-stroke;
}

/* de lopende lijn langs de rand */
.advies-button.with-runner .runner{
  --kleur: #fff;      /* contrasterend op oranje */
  --dikte: 3;         /* px */
  --dash: 240;        /* zichtbare lengte (0–1000) */

  fill: none; stroke: var(--kleur);
  stroke-width: var(--dikte);
  stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: var(--dash) calc(1000 - var(--dash));
  stroke-dashoffset: 0;
  opacity: 0;         /* tonen bij .active */
}

/* animatie alleen als actief; verbergen bij clicked */
.advies-button.with-runner.active .runner{ opacity: 1; animation: runner-loop 1.6s linear infinite; }
.advies-button.with-runner.clicked .border-runner { display: none; }

@keyframes runner-loop { to { stroke-dashoffset: -1000; } }

@media (prefers-reduced-motion: reduce){
  .advies-button.with-runner.active .runner{ animation: none; }
}

/* Zichtbare centrale tafelteller */
#tafelTeller .badge.total{
  background: #000;      /* oranje achtergrond (of kies je eigen) */
  color: #fff;               /* contrasteert met de tafel */
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.06);
}

#tafelTeller .badge-label{
  font-weight: 600;
  text-transform: uppercase;
  font-size: .85rem;
  opacity: .95;
}

#tafelTeller .badge-getal{
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

/* Zelfde strepen als de banner, maar nu in de ai-right placeholder */
.ai-right .placeholder-gesprek {
  position: relative;
  min-height: 180px;          /* zorg dat het zichtbaar is */
}

/* verberg de grijze balkjes */
.ai-right .placeholder-gesprek .lijn { 
  display: none; 
}

/* streepjes-overlay */
.ai-right .placeholder-gesprek::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;         /* mag 12px om te matchen met .ai-right */
  pointer-events: none;

  /* zelfde tile-maten als de banner */
  --tile-w: 640;   
  --tile-h: 240;   

  /* gekopieerd uit .banner-wrapper.pattern-stripes::before */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='240' viewBox='0 0 640 240'%3E%3Cg stroke='%230F172A' stroke-opacity='0.05' stroke-width='8' stroke-linecap='round' fill='none'%3E%3Cpath d='M8 18 H632'  stroke-dasharray='120 28 80 32 54 40'/%3E%3Cpath d='M8 38 H632'  stroke-dasharray='80 24 140 26 46 36'/%3E%3Cpath d='M8 58 H632'  stroke-dasharray='96 30 60 22 120 34'/%3E%3Cpath d='M8 78 H632'  stroke-dasharray='48 20 90 28 130 24'/%3E%3Cpath d='M8 98 H632'  stroke-dasharray='140 26 52 22 84 32'/%3E%3Cpath d='M8 118 H632' stroke-dasharray='66 18 120 30 60 28'/%3E%3Cpath d='M8 138 H632' stroke-dasharray='110 24 40 26 98 30'/%3E%3Cpath d='M8 158 H632' stroke-dasharray='90 22 130 24 44 28'/%3E%3Cpath d='M8 178 H632' stroke-dasharray='124 30 56 20 86 26'/%3E%3Cpath d='M8 198 H632' stroke-dasharray='70 24 118 28 60 22'/%3E%3Cpath d='M8 218 H632' stroke-dasharray='132 26 46 24 96 28'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: calc(var(--tile-w)*1px) calc(var(--tile-h)*1px);
  background-position: center;
}

/* AI-panel zelf clippend maken */
aside.ai-right{
  position: relative;
  overflow: hidden;     /* voorkomt dat de strepen buiten ai-right komen */
}

/* Strepen uit de banner, maar nu als overlay binnen ai-right */
aside.ai-right::before{
  content: "";
  position: absolute;
  inset: 0;             /* exact even groot als ai-right */
  pointer-events: none; /* niet klik-gevoelig */
  z-index: 0;           /* achter de content */

  /* zelfde pattern als de banner */
  --tile-w: 640;
  --tile-h: 240;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='240' viewBox='0 0 640 240'%3E%3Cg stroke='%230F172A' stroke-opacity='0.05' stroke-width='8' stroke-linecap='round' fill='none'%3E%3Cpath d='M8 18 H632'  stroke-dasharray='120 28 80 32 54 40'/%3E%3Cpath d='M8 38 H632'  stroke-dasharray='80 24 140 26 46 36'/%3E%3Cpath d='M8 58 H632'  stroke-dasharray='96 30 60 22 120 34'/%3E%3Cpath d='M8 78 H632'  stroke-dasharray='48 20 90 28 130 24'/%3E%3Cpath d='M8 98 H632'  stroke-dasharray='140 26 52 22 84 32'/%3E%3Cpath d='M8 118 H632' stroke-dasharray='66 18 120 30 60 28'/%3E%3Cpath d='M8 138 H632' stroke-dasharray='110 24 40 26 98 30'/%3E%3Cpath d='M8 158 H632' stroke-dasharray='90 22 130 24 44 28'/%3E%3Cpath d='M8 178 H632' stroke-dasharray='124 30 56 20 86 26'/%3E%3Cpath d='M8 198 H632' stroke-dasharray='70 24 118 28 60 22'/%3E%3Cpath d='M8 218 H632' stroke-dasharray='132 26 46 24 96 28'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: calc(var(--tile-w)*1px) calc(var(--tile-h)*1px);
  background-position: center;
}

/* Zorg dat je inhoud boven de overlay staat */
aside.ai-right > *{ position: relative; z-index: 1; }

.ai-right .placeholder-gesprek .lijn{ display: none; }
aside.ai-right::before{ display:none; }
aside.ai-right.empty::before{ display:block; }





