/* ================================================
   Stichting 4autism – Gedeelde stijlen
   Kleurenschema: pastels afgeleid van het 4autism logo
   Logo kleuren: wit #ffffff, zacht peach #f0c0a8,
                 warm creme #f0d8c0, middel bruin #906048
   ================================================ */

/* ---- CSS Variabelen (pastel kleurenpalet) ---- */
:root {
  /* Primaire pastels (rechtstreeks van logo) */
  --kleur-peach:         #f0c0a8;   /* Logo hoofdkleur – zacht perzik */
  --kleur-creme:         #f9ede3;   /* Licht creme achtergrond */
  --kleur-creme-donker:  #f0d8c0;   /* Iets donkerder creme */
  --kleur-terracotta:    #c8876a;   /* Pastel terracotta (logo bruin opgehelderd) */
  --kleur-bruin:         #906048;   /* Logo accent bruin */

  /* Pastel accent kleuren */
  --kleur-zachtblauw:    #b8d4e8;   /* Pastel blauw voor contrast */
  --kleur-zachtgroen:    #c8e0d0;   /* Pastel groen */
  --kleur-zachtpaars:    #d8c8e0;   /* Pastel lila */

  /* UI kleuren */
  --kleur-knop:          #c8876a;   /* Knoppen – pastel terracotta */
  --kleur-knop-hover:    #b06050;   /* Hover state knoppen */
  --kleur-link:          #7090b8;   /* Links – pastel staal blauw */
  --kleur-link-hover:    #506890;   /* Hover links */
  --kleur-tekst:         #4a2e1a;   /* Hoofd tekst – donker warm bruin */
  --kleur-tekst-licht:   #7a5540;   /* Subtekst */
  --kleur-wit:           #ffffff;

  /* Menu & navigatie */
  --kleur-menu-bg:       #7a4830;   /* Zijbalk achtergrond – warm donkerbruin */
  --kleur-menu-hover:    #a06040;   /* Menu hover */
  --kleur-menu-actief:   #c8876a;   /* Actief menu-item */
  --kleur-header-bg:     #c8876a;   /* Header – pastel terracotta */
  --kleur-submenu-bg:    #fae8da;   /* Submenu balk – heel licht peach */

  /* Rand & schaduw */
  --kleur-rand:          #e0c0a8;   /* Rand kleur */
  --schaduw:             0 2px 8px rgba(90, 40, 10, 0.10);
  --schaduw-hover:       0 6px 18px rgba(90, 40, 10, 0.16);
  --radius:              10px;
}

/* ---- Reset en basis ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--kleur-tekst);
  background-color: var(--kleur-creme);
}

a {
  color: var(--kleur-link);
  text-decoration: none;
}
a:hover {
  color: var(--kleur-link-hover);
  text-decoration: underline;
}

/* ================================================
   TAALKEUZEPAGINA (index.html)
   ================================================ */
.taal-pagina-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--kleur-creme) 0%, var(--kleur-creme-donker) 50%, var(--kleur-peach) 100%);
  padding: 2rem;
  text-align: center;
}

/* Logo op taalkeuzepagina */
.taal-logo-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(90, 40, 10, 0.18);
  border: 4px solid var(--kleur-wit);
  margin-bottom: 1.5rem;
}

.taal-welkom h1 {
  font-size: 2rem;
  color: var(--kleur-menu-bg);
  font-weight: 800;
  margin-bottom: 0.3rem;
  letter-spacing: 1px;
}

.taal-welkom h2 {
  font-size: 1rem;
  color: var(--kleur-tekst-licht);
  font-weight: 400;
  margin-bottom: 2.5rem;
}

.taal-keuze-knoppen {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.taal-knop-groot {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.25rem 3.25rem;
  background: var(--kleur-wit);
  border: 2px solid var(--kleur-rand);
  border-radius: var(--radius);
  box-shadow: var(--schaduw);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  color: var(--kleur-tekst);
  min-width: 210px;
}

.taal-knop-groot:hover {
  border-color: var(--kleur-terracotta);
  background: var(--kleur-terracotta);
  color: var(--kleur-wit);
  transform: translateY(-5px);
  box-shadow: var(--schaduw-hover);
  text-decoration: none;
}

.taal-knop-groot .vlag { font-size: 3.5rem; margin-bottom: 0.85rem; }
.taal-knop-groot .taal-naam { font-size: 1.4rem; font-weight: 700; }
.taal-knop-groot .taal-sub { font-size: 0.88rem; opacity: 0.72; margin-top: 0.25rem; }

.taal-voetnoot {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--kleur-tekst-licht);
}

/* ================================================
   SITE LAYOUT – Header + Sidebar + Content
   ================================================ */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---- Header ---- */
.site-header {
  background-color: var(--kleur-header-bg);
  color: var(--kleur-wit);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
  box-shadow: 0 2px 8px rgba(90, 40, 10, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 58px;
}

.header-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.header-logo-wrap:hover { text-decoration: none; }

.header-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.6);
  flex-shrink: 0;
}

.header-merk-naam {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--kleur-wit);
  letter-spacing: 0.5px;
}

/* Taalwisselaar */
.taal-wissel {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.taal-wissel a {
  padding: 0.28rem 0.65rem;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 4px;
  color: var(--kleur-wit);
  font-size: 0.83rem;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
}

.taal-wissel a:hover,
.taal-wissel a.actief {
  background: var(--kleur-wit);
  color: var(--kleur-terracotta);
  border-color: var(--kleur-wit);
  text-decoration: none;
}

/* ---- Submenu balk ---- */
.submenu-balk {
  background-color: var(--kleur-submenu-bg);
  border-bottom: 1px solid var(--kleur-rand);
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0.4rem 1.5rem;
  position: sticky;
  top: 58px;
  z-index: 90;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.submenu-balk .submenu-label {
  font-size: 0.78rem;
  color: var(--kleur-tekst-licht);
  font-weight: 600;
  margin-right: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.submenu-balk a {
  padding: 0.28rem 0.8rem;
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-rand);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--kleur-menu-bg);
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.submenu-balk a:hover {
  background: var(--kleur-terracotta);
  color: var(--kleur-wit);
  border-color: var(--kleur-terracotta);
  text-decoration: none;
}

/* ---- Hoofd content area ---- */
.hoofd-content {
  display: flex;
  flex: 1;
}

/* ================================================
   ZIJBALK
   ================================================ */
.zijbalk {
  width: 220px;
  min-width: 220px;
  background-color: var(--kleur-menu-bg);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 100px;   /* header (58) + submenu (42) */
  height: calc(100vh - 100px);
  overflow-y: auto;
}

.zijbalk nav {
  flex: 1;
}

.zijbalk nav ul {
  list-style: none;
}

.zijbalk nav > ul > li {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.zijbalk nav > ul > li > a {
  display: block;
  padding: 0.85rem 1.4rem;
  color: var(--kleur-peach);
  font-weight: 600;
  font-size: 0.93rem;
  transition: all 0.2s;
  text-decoration: none;
}

.zijbalk nav > ul > li > a:hover,
.zijbalk nav > ul > li.actief > a {
  background-color: var(--kleur-menu-actief);
  color: var(--kleur-wit);
  text-decoration: none;
  padding-left: 1.8rem;
}

.zijbalk nav > ul > li.actief > a {
  border-left: 4px solid var(--kleur-creme-donker);
}

/* ---- Terug-knop IN de zijbalk ---- */
.zijbalk-terug {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  color: var(--kleur-creme-donker);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-top: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.12);
  transition: all 0.2s;
  margin-top: auto;
}

.zijbalk-terug:hover {
  background: rgba(0,0,0,0.22);
  color: var(--kleur-wit);
  text-decoration: none;
  padding-left: 1.8rem;
}

/* ---- Content kolom ---- */
.content-kolom {
  flex: 1;
  padding: 2rem 2.5rem;
  max-width: 900px;
}

/* ================================================
   THEMA KAARTEN
   ================================================ */
.thema-sectie {
  margin-bottom: 2.5rem;
  border: 1px solid var(--kleur-rand);
  border-radius: var(--radius);
  background: var(--kleur-wit);
  box-shadow: var(--schaduw);
  overflow: hidden;
}

.thema-sectie .thema-header {
  background: linear-gradient(90deg, var(--kleur-terracotta) 0%, var(--kleur-bruin) 100%);
  color: var(--kleur-wit);
  padding: 0.9rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.thema-sectie .thema-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.thema-sectie .thema-icoon { font-size: 1.7rem; }

.thema-intro {
  padding: 1.1rem 1.4rem;
  color: var(--kleur-tekst);
}

/* Meer info knop */
.meer-info-knop {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.25rem 1.4rem 0.9rem;
  padding: 0.55rem 1.15rem;
  background-color: var(--kleur-knop);
  color: var(--kleur-wit);
  border: none;
  border-radius: 25px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s;
  font-family: inherit;
}

.meer-info-knop:hover {
  background-color: var(--kleur-knop-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(120, 60, 30, 0.28);
}

.meer-info-knop .pijl { transition: transform 0.22s; display: inline-block; }
.meer-info-knop.open .pijl { transform: rotate(90deg); }

/* Uitklapbare tekst */
.uitklap-tekst {
  display: none;
  padding: 0 1.4rem 1.1rem;
  border-top: 1px solid var(--kleur-rand);
  background: #fdf5ef;
  animation: uitklap 0.28s ease;
}

.uitklap-tekst.open { display: block; }

@keyframes uitklap {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.uitklap-tekst p { margin-bottom: 0.7rem; }

/* ---- Subthema kaarten ---- */
.subthema-lijst {
  padding: 0 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.subthema-kaart {
  border: 1px solid var(--kleur-rand);
  border-radius: 8px;
  background: var(--kleur-creme);
  overflow: hidden;
}

.subthema-kaart .subthema-header {
  background: linear-gradient(90deg, var(--kleur-bruin) 0%, #7a4830 100%);
  color: var(--kleur-wit);
  padding: 0.55rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.subthema-kaart .subthema-icoon { font-size: 1rem; }

.subthema-intro {
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
}

.subthema-kaart .meer-info-knop {
  font-size: 0.82rem;
  padding: 0.42rem 0.95rem;
  margin: 0 1rem 0.7rem;
  background-color: var(--kleur-bruin);
}

.subthema-kaart .meer-info-knop:hover {
  background-color: var(--kleur-menu-actief);
}

.subthema-kaart .uitklap-tekst {
  font-size: 0.92rem;
  background: #faf0e8;
}

/* ================================================
   DETAIL PAGINA'S (ingekort - terug-knop zit in zijbalk)
   ================================================ */
.detail-pagina {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
}

.detail-pagina h1 {
  font-size: 1.9rem;
  color: var(--kleur-menu-bg);
  margin-bottom: 0.4rem;
  border-bottom: 3px solid var(--kleur-terracotta);
  padding-bottom: 0.5rem;
}

.detail-pagina .detail-samenvatting {
  color: var(--kleur-tekst-licht);
  margin-bottom: 1.75rem;
  font-size: 1.03rem;
}

.detail-pagina h2 {
  font-size: 1.2rem;
  color: var(--kleur-knop-hover);
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
  padding-left: 0.7rem;
  border-left: 4px solid var(--kleur-terracotta);
}

.detail-pagina p { margin-bottom: 0.9rem; color: var(--kleur-tekst); }

.detail-pagina ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 0.9rem;
}

.detail-pagina ul li { margin-bottom: 0.35rem; }

/* ================================================
   FOOTER
   ================================================ */
.site-footer {
  background-color: var(--kleur-menu-bg);
  color: var(--kleur-peach);
  text-align: center;
  padding: 1.25rem;
  font-size: 0.86rem;
  margin-top: auto;
}

.site-footer a {
  color: var(--kleur-creme-donker);
  text-decoration: underline;
}

/* ================================================
   UNDER CONSTRUCTION BANNER
   ================================================ */
.under-construction-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(90deg, #fff3cd 0%, #ffeaa7 100%);
  border: 2px solid #f0c040;
  border-radius: var(--radius);
  padding: 0.75rem 1.4rem;
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
  color: #7a5800;
  text-align: center;
  box-shadow: 0 2px 8px rgba(200, 160, 0, 0.15);
}

/* ================================================
   THEMA-INTRO MET LOGO (Kikkers / Frösche)
   ================================================ */
.thema-intro-met-logo {
  position: relative;
  overflow: hidden;
}

.thema-intro-logo {
  float: right;
  width: 110px;
  height: auto;
  margin: 0 0 0.5rem 1.2rem;
  opacity: 0.85;
  border-radius: 8px;
}

/* ================================================
   RESPONSIEF (mobiel)
   ================================================ */
@media (max-width: 768px) {
  .hoofd-content { flex-direction: column; }

  .zijbalk {
    width: 100%;
    min-width: unset;
    position: static;
    height: auto;
    flex-direction: row;
    overflow-x: auto;
  }

  .zijbalk nav { flex: 1; }

  .zijbalk nav ul { display: flex; flex-direction: row; }

  .zijbalk nav > ul > li {
    border-bottom: none;
    border-right: 1px solid rgba(255,255,255,0.08);
  }

  .zijbalk nav > ul > li > a {
    padding: 0.75rem 1rem;
    white-space: nowrap;
  }

  .zijbalk-terug {
    padding: 0.75rem 1rem;
    white-space: nowrap;
    border-top: none;
    border-left: 1px solid rgba(255,255,255,0.15);
    margin-top: 0;
  }

  .content-kolom { padding: 1.1rem; }
  .detail-pagina { padding: 1.1rem; }

  .taal-keuze-knoppen { flex-direction: column; align-items: center; }
}
