@import url('../fonts/fonts.css');

/* ===========================================================================
   Carnavalsvereniging Basisschool de Emmaus — Flower Power 2027
   Kleuren en vormen komen 1-op-1 uit de PowerPoint / flyer.
   =========================================================================== */

:root {
  /* Palet uit het PowerPoint-thema "Flower Power Emmaus" */
  --roze:        #D92B7F;
  --roze-diep:   #B01A63;   /* donkerder roze, voor tekst op licht (contrast) */
  --oranje:      #F7941D;
  --geel:        #FFD23F;
  --turquoise:   #13A89E;
  --paars:       #6B3FA0;
  --groen:       #9BCB3B;
  --inkt:        #2E1A47;   /* donkerpaars: alle outlines en lopende tekst */
  --creme:       #FFF3D6;
  --creme-diep:  #FFE9BC;
  --wit:         #FFFFFF;

  --rand:        3px solid var(--inkt);
  --radius:      22px;
  --radius-s:    14px;
  --radius-pil:  999px;

  --kop:   'Bowlby One', 'Arial Black', Impact, sans-serif;
  --script:'Pacifico', 'Brush Script MT', cursive;
  --tekst: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1140px;
  --nav-h: 68px;

  color-scheme: light;
}

/* --- reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--tekst);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--inkt);
  background: var(--creme);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
ul  { margin: 0; padding: 0; list-style: none; }
p   { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--roze-diep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--paars); }

:focus-visible {
  outline: 3px solid var(--paars);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  background: var(--inkt); color: var(--wit); padding: 12px 20px;
  border-radius: var(--radius-pil); font-weight: 800; text-decoration: none;
  transition: top .15s;
}
.skip:focus { top: 12px; color: var(--wit); }

.visueel-verborgen {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* --- typografie ----------------------------------------------------------- */

h1, h2, h3 { margin: 0 0 .4em; line-height: 1.1; font-weight: 400; }

h2 {
  font-family: var(--kop);
  font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem);
  color: var(--paars);
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--tekst);
  font-weight: 800;
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  color: var(--inkt);
}

.sectie-sub {
  font-weight: 800;
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.4rem);
  color: var(--roze-diep);
  margin: -0.3em 0 1.4em;
}

.lood { font-size: 1.1em; max-width: 62ch; }

/* --- layout --------------------------------------------------------------- */

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

section { position: relative; }

.sectie      { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.sectie--diep{ background: var(--creme-diep); }
.sectie--wit { background: var(--wit); }

/* Regenboog-golfrand tussen secties (zelfde vorm als onderin de slides) */
.golf {
  height: clamp(28px, 4vw, 46px);
  background: url('../img/golf.svg') no-repeat center bottom / 100% 100%;
}
.golf--boven {
  background-image: url('../img/golf-boven.svg');
  background-position: center top;
}

/* --- navigatie ------------------------------------------------------------ */

.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 243, 214, .93);
  backdrop-filter: blur(10px);
  border-bottom: var(--rand);
}

.nav__in {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.merk {
  font-family: var(--script);
  font-size: 1.5rem;
  color: var(--roze);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 2px 2px 0 var(--geel);
}
.merk:hover { color: var(--roze); }
.merk small {
  display: block; font-family: var(--tekst); font-weight: 700;
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--inkt); text-shadow: none; margin-top: 2px;
}

.nav__lijst { display: flex; gap: .25rem; align-items: center; }

.nav__lijst a {
  display: block; padding: .45rem .8rem;
  font-weight: 700; font-size: .95rem; color: var(--inkt);
  text-decoration: none; border-radius: var(--radius-pil);
}
.nav__lijst a:hover,
.nav__lijst a[aria-current="true"] { background: var(--geel); color: var(--inkt); }

.nav__knop {
  display: none;
  background: var(--inkt); color: var(--wit); border: 0;
  width: 46px; height: 46px; border-radius: 14px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__knop svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.nav__knop .kruis { display: none; }
.nav__knop[aria-expanded="true"] .kruis  { display: block; }
.nav__knop[aria-expanded="true"] .strepen{ display: none; }

@media (max-width: 860px) {
  .nav__knop { display: flex; }
  .nav__lijst {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--creme);
    border-bottom: var(--rand);
    padding: .5rem 1.25rem 1rem;
    display: none;
  }
  .nav__lijst.open { display: flex; }
  .nav__lijst a { padding: .7rem .9rem; font-size: 1.05rem; }
}

/* --- knoppen -------------------------------------------------------------- */

.knop {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--tekst); font-weight: 800; font-size: 1rem;
  padding: .75rem 1.5rem;
  border: var(--rand); border-radius: var(--radius-pil);
  background: var(--geel); color: var(--inkt);
  text-decoration: none; cursor: pointer;
  box-shadow: 4px 4px 0 var(--inkt);
  transition: transform .12s ease, box-shadow .12s ease;
}
.knop:hover {
  color: var(--inkt);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--inkt);
}
.knop:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--inkt); }
.knop--roze { background: var(--roze); color: var(--wit); }
.knop--roze:hover { color: var(--wit); }
.knop--turq { background: var(--turquoise); color: var(--wit); }
.knop--turq:hover { color: var(--wit); }

/* --- hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--creme) url('../img/hero-swirl.png') center / cover no-repeat;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
}

.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero__tekst { position: relative; z-index: 2; }

.hero__kicker {
  font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  font-size: clamp(.68rem, .6rem + .4vw, .88rem);
  color: var(--inkt);
  margin-bottom: .6rem;
}

.hero__titel { margin: 0 0 1.1rem; }

.hero__zestig {
  display: block;
  font-family: var(--kop);
  font-size: clamp(4.5rem, 2rem + 13vw, 9.5rem);
  line-height: .9;
  color: var(--roze);
  letter-spacing: -0.02em;
  text-shadow:
     .030em .030em 0 var(--oranje),
     .060em .060em 0 var(--geel),
     .090em .090em 0 var(--turquoise),
     .120em .120em 0 var(--paars),
     .150em .150em 0 var(--inkt);
}

.hero__fp {
  display: block;
  font-family: var(--script);
  font-size: clamp(2.3rem, 1rem + 6.6vw, 4.8rem);
  line-height: 1.05;
  color: var(--oranje);
  transform: rotate(-3deg);
  transform-origin: left center;
  margin-top: .1em;
  text-shadow:
     .025em .025em 0 var(--geel),
     .050em .050em 0 var(--roze),
     .075em .075em 0 var(--inkt);
}

.hero__pil {
  display: inline-block;
  font-family: var(--script);
  font-size: clamp(1.1rem, .9rem + .9vw, 1.6rem);
  color: var(--wit);
  background: var(--roze);
  border: var(--rand);
  border-radius: var(--radius-pil);
  padding: .3em 1.1em .45em;
  box-shadow: 5px 5px 0 var(--turquoise);
  margin: .3rem 0 1.4rem;
}

.hero__badge {
  display: inline-flex; flex-wrap: wrap; gap: .4rem .75rem;
  background: var(--inkt); color: var(--wit);
  font-weight: 800; font-size: clamp(.92rem, .85rem + .3vw, 1.08rem);
  padding: .7rem 1.4rem; border-radius: var(--radius-pil);
  margin-bottom: 1.5rem;
}

.hero__acties { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero__beeld { position: relative; z-index: 1; }
.hero__bus { width: 100%; filter: drop-shadow(0 12px 0 rgba(46, 26, 71, .12)); }

.hero__hippies {
  display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(.25rem, 2vw, 1.25rem);
  margin-top: -1rem;
}
.hero__hippies img { width: clamp(52px, 11vw, 94px); }

@media (max-width: 820px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__tekst {
    background: rgba(255, 243, 214, .78);
    backdrop-filter: blur(3px);
    border-radius: var(--radius);
    padding: 1.25rem 1.1rem;
    margin-inline: -.4rem;
  }
  .hero__fp { transform: rotate(-2deg); }
}

/* --- aftellen ------------------------------------------------------------- */

.aftellen {
  display: flex; flex-wrap: wrap; gap: .6rem;
  margin: 1.5rem 0 0;
}
.aftellen__vak {
  background: var(--wit); border: var(--rand); border-radius: var(--radius-s);
  box-shadow: 4px 4px 0 var(--paars);
  padding: .5rem .9rem; text-align: center; min-width: 74px;
}
.aftellen__getal {
  display: block; font-family: var(--kop);
  font-size: 1.65rem; line-height: 1.1; color: var(--roze);
  font-variant-numeric: tabular-nums;
}
.aftellen__label {
  display: block; font-size: .7rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--inkt);
}

/* --- attentiebalk (infoavond) --------------------------------------------- */

.attentie {
  background: var(--turquoise); color: var(--wit);
  border-bottom: var(--rand);
  font-weight: 700;
  padding: .7rem 0;
}
.attentie__in { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; }
.attentie strong { font-weight: 800; }
.attentie svg { width: 22px; height: 22px; flex: none; }

/* --- kaarten -------------------------------------------------------------- */

.kaart {
  background: var(--wit);
  border: var(--rand);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  box-shadow: 7px 7px 0 var(--accent, var(--geel));
  height: 100%;
}

/* accentkleur rouleert, net als de gekleurde schaduwen in de PowerPoint */
.accent-roze  { --accent: var(--roze); }
.accent-oranje{ --accent: var(--oranje); }
.accent-geel  { --accent: var(--geel); }
.accent-turq  { --accent: var(--turquoise); }
.accent-paars { --accent: var(--paars); }
.accent-groen { --accent: var(--groen); }

.raster {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.9rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.raster--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }

/* icoon in een crème cirkel — exact het motief uit de slides */
.icoon {
  width: 64px; height: 64px; flex: none;
  border-radius: 50%;
  background: var(--creme);
  border: 2px solid var(--inkt);
  display: grid; place-items: center;
  overflow: hidden;
}
.icoon img { width: 76%; }

.kaart__kop {
  display: flex; align-items: center; gap: .85rem;
  margin-bottom: .85rem;
}
.kaart__kop h3 { margin: 0; }

.lijst li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .45rem;
}
.lijst li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: .6rem; height: .6rem; border-radius: 50%;
  background: var(--accent, var(--roze));
  border: 2px solid var(--inkt);
}
.lijst li:last-child { margin-bottom: 0; }

/* --- groepen -------------------------------------------------------------- */

.groep { display: flex; flex-direction: column; }
.groep__beeld {
  background: var(--creme);
  border: 2px solid var(--inkt);
  border-radius: var(--radius-s);
  margin-bottom: 1.1rem;
  padding: .9rem;
  display: grid; place-items: center;
  min-height: 170px;
}
.groep__beeld img { max-height: 160px; width: auto; }
.groep__label {
  display: inline-block;
  font-family: var(--kop); font-size: 1.35rem;
  color: var(--paars); margin-bottom: .1rem;
}
.groep__sub {
  font-weight: 800; color: var(--roze-diep);
  margin-bottom: .9rem; font-size: 1rem;
}
.groep h4 {
  margin: 1rem 0 .3rem; font-size: .78rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--turquoise);
}
.groep h4:first-of-type { margin-top: 0; }

/* --- knutsel-tegels ------------------------------------------------------- */

/* Bewust 3 kolommen op desktop: 2 rijen van 3, net als op de slide.
   auto-fit gaf 5 + 1 en dat laat de laatste tegel er verweesd bij liggen. */
.tegels { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .tegels { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .tegels { grid-template-columns: repeat(3, 1fr); } }
.tegel {
  display: flex; align-items: center; gap: .8rem;
  background: var(--wit); border: var(--rand); border-radius: var(--radius-s);
  padding: .8rem .95rem;
  box-shadow: 5px 5px 0 var(--accent, var(--geel));
  font-weight: 800;
}
.tegel .icoon { width: 52px; height: 52px; }

/* --- fotostrook ----------------------------------------------------------- */

.fotos {
  display: grid; gap: 1rem; margin-top: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.fotos figure {
  margin: 0;
  border: var(--rand); border-radius: var(--radius-s);
  overflow: hidden; background: var(--wit);
  box-shadow: 5px 5px 0 var(--accent, var(--turquoise));
}
/* De knutselfoto's zijn staand (3:4). Liggend bijsnijden hakte de gitaren
   doormidden, dus houden we de oorspronkelijke verhouding aan. */
.fotos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--creme); }
.fotos figcaption {
  padding: .6rem .85rem; font-size: .88rem; font-weight: 700;
  border-top: 2px solid var(--inkt);
}

/* --- nieuws --------------------------------------------------------------- */

.nieuws { display: grid; gap: 1.25rem; }

.bericht {
  background: var(--wit); border: var(--rand); border-radius: var(--radius);
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
  box-shadow: 7px 7px 0 var(--accent, var(--turquoise));
}
.bericht__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  margin-bottom: .5rem;
}
.bericht__datum {
  font-size: .82rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--paars);
}
.label {
  font-size: .72rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--geel); color: var(--inkt);
  border: 2px solid var(--inkt); border-radius: var(--radius-pil);
  padding: .1rem .7rem .15rem;
}
.label--belangrijk { background: var(--roze); color: var(--wit); }
.label--knutselen  { background: var(--turquoise); color: var(--wit); }
.bericht h3 { margin-bottom: .35rem; }

.leeg {
  background: var(--wit); border: 3px dashed var(--inkt);
  border-radius: var(--radius); padding: 1.5rem; text-align: center;
  font-weight: 700;
}

/* --- statusbalken --------------------------------------------------------- */

.status { display: grid; gap: 1.1rem; }

.status__rij {
  background: var(--wit); border: var(--rand); border-radius: var(--radius-s);
  padding: .9rem 1.1rem;
  box-shadow: 5px 5px 0 var(--accent, var(--paars));
}
.status__kop {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: .3rem .8rem; margin-bottom: .5rem;
}
.status__naam { font-weight: 800; }
.status__fase { font-size: .85rem; font-weight: 800; color: var(--paars); }
.status__balk {
  height: 16px; border: 2px solid var(--inkt); border-radius: var(--radius-pil);
  background: var(--creme); overflow: hidden;
}
.status__vul {
  height: 100%;
  background: repeating-linear-gradient(135deg,
    var(--accent, var(--turquoise)) 0 14px,
    color-mix(in srgb, var(--accent, var(--turquoise)) 72%, var(--wit)) 14px 28px);
  border-right: 2px solid var(--inkt);
  transition: width .8s ease;
}
.status__vul[style*="width: 100%"] { border-right: 0; }
.status__toelichting { font-size: .92rem; margin-top: .5rem; }

/* --- helpen --------------------------------------------------------------- */

.oproep {
  background: var(--inkt); color: var(--creme);
  border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 1.9rem);
  margin-top: 1.75rem;
}
.oproep h3 { color: var(--geel); }
.oproep a { color: var(--geel); }

/* --- contact -------------------------------------------------------------- */

.contact__kaart {
  background: var(--wit); border: var(--rand); border-radius: var(--radius);
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  box-shadow: 9px 9px 0 var(--roze);
  text-align: center;
}
.mailrij {
  display: flex; flex-wrap: wrap; gap: .75rem;
  justify-content: center; align-items: center; margin-top: 1.2rem;
}
.mailadres {
  font-family: var(--tekst); font-weight: 800;
  font-size: clamp(1rem, .9rem + .6vw, 1.3rem);
  word-break: break-word;
}
.kopieer-melding {
  font-weight: 800; color: var(--turquoise); font-size: .9rem;
  min-height: 1.4em; margin-top: .6rem;
}

/* --- footer --------------------------------------------------------------- */

.footer {
  background: var(--inkt); color: var(--creme);
  padding: clamp(2rem, 4vw, 3rem) 0 2rem;
  font-size: .95rem;
}
.footer a { color: var(--geel); }
.footer__merk {
  font-family: var(--script); font-size: 1.8rem; color: var(--geel);
  line-height: 1; margin-bottom: .5rem;
}
.footer__rij {
  display: flex; flex-wrap: wrap; gap: .5rem 2rem;
  justify-content: space-between; align-items: flex-end;
}
.footer__klein { opacity: .72; font-size: .85rem; margin-top: 1.5rem; }

/* --- decoratie ------------------------------------------------------------ */

.deco {
  position: absolute; pointer-events: none; z-index: 0;
  opacity: .9;
}
.deco svg { display: block; width: 100%; height: auto; }
@media (max-width: 700px) { .deco { display: none; } }

.deco--rb { right: -22px; top: -26px;   width: 120px; }
.deco--lo { left: -30px;  bottom: -18px; width: 110px; }
.deco--ro { right: 1.5rem; bottom: 8%;   width: 64px; }

.sectie > .wrap { position: relative; z-index: 1; }

/* --- bewegingsvoorkeur ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* --- print ---------------------------------------------------------------- */

@media print {
  .nav, .hero__beeld, .deco, .golf, .aftellen { display: none; }
  body { background: #fff; }
  .kaart, .tegel, .bericht, .status__rij { box-shadow: none; break-inside: avoid; }
}
