* {
    box-sizing: border-box;
  }

  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 {
    max-width: 1200px;
    min-height: calc(100vh - 80px);
    margin: 30px auto 0px auto;
    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;
    margin-bottom: 2rem;
  }

  .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); /* rekening houdend met padding/marge */
    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;
  }

  .antwoord-tekst {
    animation: fadeIn 0.3s ease-in;
  }

  @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;
  }

  .loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00a0d7;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin-top: 10px;
  }

  .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;
  }

  .vragen-lijst-download {
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px 14px;
    text-align: left;
    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;
    display: block;
  }
  
  .vragen-lijst-download:hover {
    background-color: #E6F4F9;
    border-color: rgba(0, 160, 215, 0.5);
  }

  .bas-spreker .vragen-lijst button {
    border-color: rgba(0, 160, 215, 0.5); /* blauwe rand zoals hover */
  }  

  .bas-spreker .vragen-button-download {
    border-color: rgba(0, 160, 215, 0.5); /* zelfde als hoverkleur */
  }

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

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

  .antwoord-tekst ul {
    margin: 10px 0 10px 20px;
    padding-left: 20px;
  }

  .antwoord-tekst li {
    margin-bottom: 4px;
    line-height: 1.5;
  }

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

  .meta-info {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
    display: block;
  }

  .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: 0;
  }

  .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;
  }

  .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;
  }

  .logo {
    font-size: 20px;
    font-weight: 600;
    color: #0072a3;
  }

  .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;
  }

  .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%;
  }
  
  .lijn.kort {
    width: 60%;
  }

  .banner-wrapper.custom-banner {
    background-color: #c0e4ea;
    padding: 0;
    position: relative;
    display: flex;
    justify-content: flex-start; /* afbeelding naar links */
    align-items: flex-end;       /* afbeelding naar onder */
    width: 100%;
    height: 300px; /* pas eventueel aan op gewenste hoogte */
    box-sizing: border-box;
    border-radius: 12px;
    overflow: hidden;
  }
  
  .boek-cover-onderaan {
    max-height: 75%;
    max-width: none;
    height: auto;
    width: auto;
    margin: 0 0 0 60px; /* ruimte vanaf de linkerzijde */
    border-radius: 0px;
  }

  /* Banner specifiek voor bas_spreker.html */
  .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;
  }
 
  .download-knop {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 20px;
    background-color: #00a0d7;
    color: white;
    text-decoration: none;
    font-size: 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
  }
  
  .download-knop:hover {
    background-color: #008cbf;
  }
  
  .placeholder-antwoord .lijn {
    height: 14px;
    background-color: #e0e0e0;
    border-radius: 6px;
    width: 100%;
    margin-bottom: 10px;
  }
  
  .placeholder-antwoord .lijn.kort {
    width: 60%;
  }

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

  textarea:focus {
    outline: none;
    border-color: #e20170;
  }

  .tekstblok-twee-kolommen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  
  .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;
  }

  .boek-kleuren-img {
    width: 100%;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }

  .tag-wrapper {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .roze-tags .tag {
    background-color: #e20170;
    color: white;
  }
  
  .blauw-tags .tag {
    background-color: #00a0d7;
    color: white;
  }
  
  .tag {
    font-size: 10px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 5px;
    display: inline-block;
    text-transform: lowercase;
    letter-spacing: 0.5px;
  }
  
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .contact-form label {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 0px;
  }
  
  .contact-form input,
  .contact-form select {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
  }
  
  .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;
  }
  
  .contact-form button:hover {
    background-color: #008cbf;
  }
  
  .contact-form input:focus,
    .contact-form select:focus {
  border-color: #008cbf;
  outline: none; /* Verwijder standaard blauwe browser-outline */
  box-shadow: 0 0 0 1px #008cbf33; /* optioneel: subtiele gloed */
}

@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; /* Zet het aan de linkerkant, net als je layout */
      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;         /* Zorgt voor voldoende ruimte */
      overflow-y: auto;         /* Zorgt dat je kunt scrollen als het menu te lang is */
    }

    .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; /* alleen horizontaal centreren */
      align-items: flex-end;   /* zoals op desktop: onderaan houden */
    }
  
    .boek-cover-onderaan {
      margin: 0; /* verwijder linker marge */
    }

  }

  .boek-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: space-between;
  }
  
  .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); /* 4 naast elkaar met ruimte */
    max-width: 200px;
    box-sizing: border-box;
  }
  
  .boek-buttons button img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
  }
  
  .boek-buttons button:hover {
    border-color: #00a0d7;
    background-color: transparent;
    transform: scale(1.05);
  }
  
  /* 👉 Mobile: knoppen onder elkaar, 100% breed */
  @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;
  }
  
  .hoofdstuk-lijst {
    padding-left: 1.5rem;
    margin-top: 10px;
    margin-bottom: 20px;
    list-style-type: disc;
  }
  
  .hoofdstuk-lijst li {
    margin-bottom: 6px;
    line-height: 1.4;
  }
  
  .kleine-knop {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 16px;
    font-size: 14px;
    font-weight: bold;
    background-color: transparent; /* of bijvoorbeeld: #f2fbfd */
    border: 1px solid #c0e4ea;     /* volledige borderdefinitie */
    color: black;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
  }  
  
  .kleine-knop:hover {
    border-color: #0072a3;
  }

  .hoofdstuk-lijst.handmatig-genummerd {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
  }
  
  .hoofdstuk-lijst.handmatig-genummerd li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 8px;
    line-height: 1.6;
  }
  
  .hoofdstuk-lijst.handmatig-genummerd li::before {
    content: attr(data-nummer) ".";
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    text-align: right;
    font-weight: bold;
    color: #0072a3;
  }
  
  /* Alleen voor index.html */
  body.index-pagina .banner-wrapper.pagina-index-banner {
    background-color: #c0e4ea;
    padding: 0;
    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; /* helft van de hoogte naar boven */
    right: -30px; /* optioneel: iets naar binnen vanaf de rechterrand */
    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;
  }

  /* Zorg dat de animatie beschikbaar is */
  @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; /* cover horizontaal centreren */
      align-items: flex-end;   /* cover blijft onderaan */
    }

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

  .extern-icon {
    display: inline-block;
    margin-left: 0px;
    vertical-align: middle;
    stroke: #0072a3;
    transition: stroke 0.3s ease;
  }

  a.extern-link:hover .extern-icon {
    stroke: #00a0d7;
  }

  body.pagina-samenvatting {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #e8f7fc; /* jouw blauw */
  }

  main.samenvatting-main {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .samenvatting-main .ai-container {
    margin-bottom: 30px; /* creëert de lucht onderaan zoals op index.html */
  }

  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 {
      flex-direction: column;
      padding: 20px;
      gap: 20px;
      width: 100%;
      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;
    }
  }
  
  