/* ==========================================================
   styles.css — opgeschoond + becommentarieerd
   Gebaseerd op de aangeleverde styles.css
   ========================================================== */

/* ==========================================================
   1) CSS VARIABELEN (THEME)
   ========================================================== */
:root {
  /* Kleuren */
  --c-bg: #f6f7fb;
  --c-text: #111;
  --c-muted: #333;

  --c-white: #fff;
  --c-teal: #006466;
  --c-orange: #faac38;
  --c-orange-2: #fbbd60;
  --c-sand: #fde4ba;
  --c-red: #ec5f3d;

  --c-border: #e6e8f0;
  --c-danger: #b00020;

  /* Layout */
  --container-max: 1400px;
  --gutter: 16px;

  /* Header */
  --header-h: 92px;

  /* Radius */
  --r-xs: 12px;
  --r-sm: 14px;
  --r-md: 18px;
  --r-pill: 999px;

  /* Schaduw */
  --shadow-md: 0 14px 28px rgba(0, 0, 0, 0.14);
  --shadow-lg: 0 18px 36px rgba(0, 0, 0, 0.18);
  --shadow-xl: 0 18px 40px rgba(0, 0, 0, 0.22);

  /* Transities */
  --t-fast: 0.16s;
  --t-med: 0.22s;
  --t-slow: 0.52s;

  /* Fonts */
  --ff-base: Tahoma, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --ff-display: "Caveat", cursive;

  /* Breakpoints */
  --bp-sm: 520px;
  --bp-md: 700px;
  --bp-lg: 900px;
  --bp-xl: 1100px;
}

/* ==========================================================
   2) BASIS / RESET
   ========================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ff-base);
  background: var(--c-bg);
  color: var(--c-text);

  /* Hyphenation + betere woordafbreking */
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;

  overflow-wrap: break-word;
  word-break: normal;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(var(--container-max), 100%);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Typografie helpers */
h1 {
  font-family: var(--ff-display);
  font-weight: 700;
}

.caveat-2290 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 1.35em;
  letter-spacing: 0.5px;
  margin-right: 10px;
  display: inline-block;
  line-height: 1;
}

/* Toegankelijke focus states */
.hamburger:focus-visible,
.admin-icon-link:focus-visible,
.logo:focus-visible,
.btn-close-bottom:focus-visible,
.to-top:focus-visible {
  outline: 2px solid var(--c-teal);
  outline-offset: 4px;
}

/* ==========================================================
   3) HEADER
   ========================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  z-index: 1000;

  transform: translateY(0);
  transition: transform 0.2s ease;
}

.header--hidden {
  transform: translateY(-100%);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  height: 85px;
  width: auto;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Admin knop (icoon) */
.admin-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.admin-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.admin-icon-link:hover {
  background: var(--c-orange);
  border-color: rgba(0, 0, 0, 0.08);
  text-decoration: none;
}


/* Hamburger knop */
.hamburger {
  all: unset;
  width: 48px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  border-radius: var(--r-xs);
}

.hamburger__line {
  width: 30px;
  height: 3px;
  background: var(--c-orange);
  border-radius: var(--r-pill);
  display: block;
  flex: 0 0 auto;
  transform: translateZ(0);
}

/* ==========================================================
   4) OFFCANVAS MENU + OVERLAY
   ========================================================== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med) ease;
  z-index: 1100;
}

.overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.offcanvas {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(420px, 92vw);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1200;

  transform: translateX(100%);
  transition: transform 0.26s ease;

  display: flex;
  flex-direction: column;
}

.offcanvas.is-open {
  transform: translateX(0);
}

.offcanvas__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 2px solid var(--c-orange);
}

.offcanvas__title {
  margin: 0;
  font-weight: 700;
  color: var(--c-orange);
  font-family: var(--ff-display);
  font-size: 2rem;
  line-height: 1;
}

/* Close buttons (offcanvas & modal varianten) */
.close-btn,
.cand-close {
  all: unset;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--c-orange);
  font-weight: 900;
  border: 1px solid rgba(250, 172, 56, 0.55);
  transition: background var(--t-fast), transform var(--t-fast);
}

.close-btn:hover,
.cand-close:hover {
  background: rgba(250, 172, 56, 0.12);
}

.close-btn:active,
.cand-close:active {
  transform: scale(0.98);
}

/* Menu lijst */
.menu {
  list-style: none;
  margin: 0;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.menu a {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 12px;

  padding: 12px;
  border-radius: var(--r-sm);
  font-weight: 900;

  background: var(--c-orange);
  color: var(--c-white);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.menu a:hover {
  background: var(--c-orange-2);
  text-decoration: none;
}

.menu img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* ==========================================================
   5) MAIN / INTRO
   ========================================================== */
main {
  padding-top: var(--header-h); /* ruimte voor fixed header */
}

.intro {
  background: var(--c-orange);
  width: 100%;
  padding: 30px 0;
  overflow: hidden;
}

@media (min-width: 900px) {
  .intro {
    padding: 42px 0;
  }
}

/* Algemene panel stijl */
.panel {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 18px;
}

/* Intro gebruikt geen “card panel look” */
.intro .panel {
  background: transparent;
  border: none;
  padding: 0;
}

.intro__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

@media (min-width: 900px) {
  .intro__grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
}

.intro__text-inner {
  padding: 6px 0;
  max-width: 75ch;
}




body.compact .intro__text-inner {
  max-width: none;
  width: 100%;
}

.intro__text h1 {
  margin: 0 0 16px;
  color: var(--c-teal);
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1.01;
}

@media (min-width: 900px) {
  .intro__text h1 {
    margin-top: 18px;
    margin-bottom: 20px;
  }
}

.intro__text {
  margin: 0;
  color: var(--c-white);
  font-size: clamp(1.08rem, 1.25vw, 1.22rem);
  font-weight: 800;
  line-height: 1.62;
}


/* SVG/Foto wrapper */
.photo-wrap {
  width: 110%;
  max-width: 900px;
  margin-left: auto;
  justify-self: end;
}

.photo-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
  max-width: 100%;
}

body.compact .photo-wrap {
  justify-self: stretch;
  margin-left: 0;
  margin-top: 14px;
  max-width: 1100px;
}

.intro .photo-wrap {
  width: 115%;
  max-width: 980px;
}

body.compact .intro .photo-wrap {
  width: 100%;
  max-width: 1100px;
  margin-top: 10px;
}

/* Secties */
.section {
  padding: 42px 0;
}

@media (min-width: 900px) {
  .section {
    padding: 64px 0;
  }
}

/* ==========================================================
   6) WIE (cards)
   ========================================================== */
.who-panel {
  background: transparent;
  border: none;
  padding: 0;
}

.who-title {
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--c-teal);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  margin: 0 0 6px;
  line-height: 1;
}

.section__lead {
  margin: 0;
  color: var(--c-muted);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}

@media (min-width: 900px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--c-white);
  border: 1px solid var(--c-orange);
  border-radius: var(--r-md);
  padding: 16px;
  cursor: pointer;

  box-shadow: inset 0 0 0 0 var(--c-orange);
  transition: box-shadow 0.14s ease, transform 0.14s ease;
}

.card:hover {
  box-shadow: inset 0 0 0 2px var(--c-orange);
}

.card:active {
  transform: scale(0.995);
}

.card__top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.avatar {
  width: clamp(64px, 9vw, 96px);
  height: clamp(64px, 9vw, 96px);
  border-radius: var(--r-pill);
  overflow: hidden;
  border: 3px solid rgba(0, 100, 102, 0.18);
  flex: 0 0 auto;
}

@media (max-width:520px){
  .avatar{ 
    width:clamp(96px,22vw,130px); 
    height:clamp(96px,22vw,130px); 
  }
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__name {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--c-teal);
  font-size: clamp(1.7rem, 2.2vw, 2.2rem);
  line-height: 1;
}

.card__intro {
  margin: 0 0 10px;
  color: var(--c-muted);
  font-size: 1rem;
}

.card__bio {
  margin: 0;
  color: var(--c-muted);
  font-weight: 800;
  font-size: 0.98rem;
}

/* ==========================================================
   7) PROGRAMMA + ACCORDION
   ========================================================== */
.program {
  background: var(--c-sand);
  width: 100%;
  padding: 56px 0;
}

@media (min-width: 900px) {
  .program {
    padding: 78px 0;
  }
}

.program-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

@media (min-width: 900px) {
  .program-grid {
    grid-template-columns: 1.35fr 0.65fr;
    gap: 30px;
  }
}

.program-panel {
  background: transparent;
  border: none;
  padding: 0;
}

.program-title {
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--c-teal);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  margin: 0 0 12px;
  line-height: 1;
}

.program-text p {
  margin: 0 0 12px;
  color: var(--c-muted);
}

.program-photo-wrap {
  display: grid;
  place-items: center;
  align-self: start;
}

.program-photo {
  width: clamp(260px, 36vw, 430px);
  height: clamp(260px, 36vw, 430px);
  border-radius: var(--r-pill);
  overflow: hidden;
  border: 10px solid var(--c-orange);
  box-shadow: var(--shadow-md);
}

.program-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Accordion */
.accordion {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.acc-item {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.45);
}

.acc-btn{
  all:unset;
  display:grid;
  grid-template-columns:1fr auto; /* titel links, chevron rechts */
  align-items:center;
  gap:12px;
  width:100%;
  cursor:pointer;
  padding:14px 16px;
  color:#fff;
  font-weight:900;
} /* btn */

.acc-btn .chev{ justify-self:end; } /* chevron rechts */


/* Programma: chevron (svg) correct schalen */
.chev{
  width:18px;
  height:18px;
  display:block;
  transition:transform .22s ease;
  transform-origin:50% 50%;
}

/* Rotatie wanneer open */
.acc-item.is-open .chev{
  transform:rotate(180deg);
}


.acc-item.is-open .acc-chevron {
  transform: rotate(180deg);
}

.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(255, 255, 255, 0.86);
}

.acc-panel__inner {
  padding: 14px 16px;
}

.acc-panel__inner p {
  margin: 0 0 10px;
  color: var(--c-muted);
}

.acc-panel__inner ul {
  margin: 0 0 10px;
  padding-left: 18px;
}

.acc-panel__inner li {
  margin: 0 0 6px;
}

/* Kleur helpers (accordion knoppen) */
.bg-red {
  background: var(--c-red);
}

.bg-green {
  background: var(--c-teal);
}

.bg-orange {
  background: var(--c-orange);
}

.bg-sand {
  background: var(--c-orange-2);
}

/* Nieuwe kleur helpers (accordion knoppen) — gebruikt door admin: c-teal/c-red/c-orange/c-orange-2 */
.c-teal     { background: var(--c-teal); }
.c-red      { background: var(--c-red); }
.c-orange   { background: var(--c-orange); }
.c-orange-2 { background: var(--c-orange-2); }


/* Markdown status */
.md-loading {
  opacity: 0.8;
  font-style: italic;
}

/* Programma: padding rond ingeladen .md */
.md-content{
  padding:15px;
}


.md-error {
  color: var(--c-danger);
  font-weight: 700;
}

/* ==========================================================
   8) PUBLICATIES
   ========================================================== */
.publications {
  background: var(--c-orange);
  width: 100%;
  padding: 56px 0;
}

@media (min-width: 900px) {
  .publications {
    padding: 78px 0;
  }
}

.pub-title {
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--c-teal);
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  margin: 0 0 12px;
  line-height: 1;
  text-align: left;
}

.pub-lead {
  margin: 0 0 22px;
  max-width: 70ch;
  color: #fff;
  font-weight: 800;
  text-align: left;
  line-height: 1.55;
}

.pub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: stretch;
}

@media (min-width: 700px) {
  .pub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .pub-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pub-card {
  background: var(--c-white);
  border: 8px solid var(--c-teal);
  border-radius: var(--r-md);
  padding: 16px;

  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;

  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

.pub-thumb {
  background: var(--c-white);
  border-radius: var(--r-xs);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.pub-card h3 {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--c-red);
  font-size: clamp(1.8rem, 2.4vw, 2.2rem);
  text-align: center;
  line-height: 1.05;
}

/* Gedeelde knopstijl (ook gebruikt in modal footer) */
.btn-close-bottom {
  all: unset;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--c-orange);
  color: var(--c-white);
  font-weight: 900;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: background var(--t-fast), transform var(--t-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.btn-close-bottom:hover {
  background: var(--c-orange-2);
  text-decoration: none;
}

.btn-close-bottom:active {
  transform: scale(0.99);
}

.pub-btn {
  width: auto;
  align-self: center;
  margin-top: auto;
  white-space: nowrap;
}

/* ==========================================================
   9) CONTACT
   ========================================================== */
.contact-wrap {
  background: var(--c-white);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 900px) {
  .contact-inner {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 44px;
  }
}

.contact-title {
  margin: 0 0 8px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 4vw, 3.3rem);
  line-height: 1;
  color: var(--c-teal);
}

.contact-desc {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--c-teal);
  max-width: 70ch;
}

.mail-card {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  max-width: none;
  justify-self: start;
  display: flex;
  align-items: flex-start;
}

.contact-mail-btn {
  all: unset;
  cursor: pointer;
  width: 260px;
  max-width: 100%;
  padding: 18px 16px;
  border-radius: var(--r-md);

  background: var(--c-orange);
  color: var(--c-white);
  border: 1px solid rgba(0, 0, 0, 0.1);

  transition: background var(--t-fast), transform var(--t-fast);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;

  box-shadow: var(--shadow-lg);
}

.contact-mail-btn:hover {
  background: var(--c-orange-2);
  text-decoration: none;
}

/* Vermijd globale underline op hover in deze sectie */
.contact-wrap a:hover {
  text-decoration: none;
}

.contact-mail-btn img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.12));
}

.contact-mail-btn .email {
  margin: 0;
  font-weight: 400;
  font-size: 1.02rem;
  letter-spacing: 0.2px;
  line-height: 1.2;
}

/* ==========================================================
   10) FOOTER
   ========================================================== */
footer {
  background: var(--c-teal);
  color: var(--c-white);
}

.footer__inner {
  padding: 42px 0;
}

@media (min-width: 900px) {
  .footer__inner {
    padding: 64px 0;
  }
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;       /* mobile: 1 kolom */
  gap: 34px;                        /* meer verticale ruimte */
  justify-items: center;            /* center blokken */
}

/* Desktop layout */
@media (min-width: 900px) {
  .footer__grid {
    grid-template-columns: repeat(3, max-content);
    gap: 158px;
    justify-content: center;
  }
}

/* Extra tweak (zoals in origineel) */
@media (max-width: 900px) {
  .footer__grid {
    margin-left: 100px;
  }
}

.footer__block {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

/* Blok 1: brand */
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-brand img {
  width: 108px;
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
}

.footer-brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  padding-top: 2px;
}

.footer-brand .koester {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--c-red);
  letter-spacing: 0.2px;
  margin: 0;
}

.footer-brand .num {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--c-orange);
  letter-spacing: 0.2px;
  margin-top: -4px;
  padding-left: 10px;
}

/* Titels blok 2 & 3 */
.footer__block h3 {
  margin: 0 0 12px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
}

/* Blok 2 tekstlijnen */
.footer-lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.92);
}

.footer-lines p {
  margin: 0;
}

/* Socials/links lijst */
.footer__block ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

/* Footer links (geen layout shift op hover) */
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  color: rgba(255, 255, 255, 0.94);

  transition: background var(--t-fast) ease, transform var(--t-fast) ease;
  text-decoration: none;
  transform: translateY(0);
}

.footer-link:hover {
  background: var(--c-orange); /* rgba(250, 172, 56, 0.18); */
  transform: translateY(0);
  text-decoration: none;
}

.footer-link:focus-visible {
  outline: 2px solid var(--c-orange);
  outline-offset: 3px;
}

.footer-ico {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
}

/* E-mail micro-shift (zoals origineel) */
.footer-link--email {
  margin-left: -8px;
  gap: 8px;
}

/* Small screens: blokken gecentreerd maar inhoud links */
@media (max-width: 899px) {
  .footer__block {
    width: 100%;
    max-width: 520px;
    text-align: left;
  }

  .footer__block h3 {
    text-align: left;
  }

  .footer__block ul {
    justify-items: start;
  }

  .footer-lines {
    align-items: flex-start;
  }
}

/* ==========================================================
   11) REVEAL ANIMATIES
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translate(0, 0);
  transition: opacity var(--t-slow) ease, transform var(--t-slow) ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.reveal--title {
  transform: translateX(-18px);
}

.reveal--text {
  transform: translateY(18px);
}

.reveal--img,
.reveal--media {
  transform: translateY(-18px);
}

/* Delay via custom property */
.reveal[data-delay] {
  transition-delay: var(--delay, 0ms);
}

/* Respecteer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================
   12) TOP BUTTON
   ========================================================== */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1300;

  width: 52px;
  height: 52px;
  border-radius: var(--r-pill);
  border: none;
  cursor: pointer;

  background: var(--c-orange);
  color: var(--c-white);

  display: grid;
  place-items: center;

  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);

  transform: translateX(140%);
  opacity: 0;
  transition: transform 0.26s ease, opacity 0.26s ease;
}

.to-top.is-visible {
  transform: translateX(0);
  opacity: 1;
}

.to-top:active {
  transform: translateX(0) scale(0.98);
}

.to-top svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* ==========================================================
   13) KANDIDAAT OVERLAY / MODAL
   ========================================================== */
.cand-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 16px;
  background: rgba(0, 0, 0, 0.25);
}

.cand-overlay.is-open {
  display: flex;
}

.cand-modal {
  width: min(900px, 92vw);
  max-height: 88vh;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);

  border: 2px solid rgba(250, 172, 56, 0.55);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xl);

  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cand-modal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 16px;
  border-bottom: 2px solid var(--c-orange);
  flex: 0 0 auto;
}

.cand-modal__title {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  line-height: 1.05;
  color: var(--c-teal);
}

.cand-modal__body {
  padding: 18px;
  overflow: auto;
}

.cand-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
}

@media (max-width: 520px) {
  .cand-layout {
    grid-template-columns: 1fr;
  }
}

.cand-avatar {
  width: clamp(96px, 18vw, 200px);
  height: clamp(96px, 18vw, 200px);
  border-radius: var(--r-pill);
  overflow: hidden;
  border: 4px solid rgba(0, 100, 102, 0.18);
  justify-self: start;
}

/* Overlay: avatar groter op kleine schermen */
@media (max-width:520px){
  .cand-layout{ justify-items:center; text-align:center; }
  .cand-avatar{ 
    width:clamp(150px,35vw,210px); 
    height:clamp(150px,35vw,210px); 
    justify-self:center; 
    margin:0 auto; 
  }
  .cand-name{ text-align:center; }
}


.cand-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cand-name {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--c-teal);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
}

.cand-intro {
  margin: 0 0 12px;
  color: var(--c-muted);
  font-size: 1.05rem;
}

.cand-bio {
  margin: 0;
  color: var(--c-muted);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.45;
}

.cand-modal__bottom {
  padding: 14px 16px;
  border-top: 2px solid var(--c-orange);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.55);
}


/* Kleurkeuze met swatch */
.color-pick{
  display:flex;
  align-items:center;
  gap:10px;
}
.color-swatch{
  width:18px;
  height:18px;
  border-radius:4px;
  border:1px solid rgba(0,0,0,0.18);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  flex:0 0 auto;
}

/* Intro tekst: link met animated underline */
.intro__text-inner a {
  position: relative;
  display: inline-block;
  color: var(--c-teal);
  text-decoration: none;
  font-weight: 900;
  transition: color 0.22s ease;
}

.intro__text-inner a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.intro__text-inner a:hover,
.intro__text-inner a:focus-visible {
  color: var(--c-danger);
  text-decoration: none; /* overschrijft jouw globale a:hover underline */
}

.intro__text-inner a:hover::after,
.intro__text-inner a:focus-visible::after {
  transform: scaleX(1);
}



@media (max-width: 700px) {

  /* zorg dat grid-items niet breder mogen worden door content */
  .intro__grid,
  .intro__grid > * {
    min-width: 0;
  }

  /* de wrapper blijft normaal (100% van de layout) */
  .intro .photo-wrap,
  body.compact .intro .photo-wrap {
    width: 100%;
    max-width: none;
    margin: 0;
    justify-self: stretch;
    position: relative;
  }

  /* de SVG zelf mag “uitsteken” en wordt op de viewport gecentreerd */
  .intro .photo-wrap svg {
    width: 130vw;          /* pas dit aan (130–170vw) */
    max-width: none;
    height: auto;
    display: block;

    position: relative;
    left: 50vw;            /* viewport center */
    transform: translateX(-50%);
  }
}

