/* VERFHOES · bauhaus-productaffiche
   papier, inkt en vier spectrale banen. geen gradients, geen glow. */

@font-face {
  font-family: 'Jost';
  src: url('fonts/jost-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Fredoka';
  src: url('fonts/fredoka-700-latin.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --papier: #f4f1ea;
  --inkt: #16161a;
  --rood: #e03a2f;
  --amber: #f5a800;
  --groen: #1f9d55;
  --blauw: #1e63d0;
  --lijn: 2px;
  --maat: min(92rem, 100vw - 3rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { color-scheme: light; scroll-behavior: smooth; }

body {
  background: var(--papier);
  color: var(--inkt);
  font-family: 'Jost', 'Futura', sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--blauw);
  outline-offset: 3px;
}

::selection { background: var(--amber); color: var(--inkt); }

/* ---------- topbar ---------- */

.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--maat);
  margin-inline: auto;
  padding-block: 1.4rem;
}

.merk { display: block; line-height: 0; }
.merk svg { width: 44px; height: 44px; }

.topbar nav { display: flex; gap: 2.2rem; }

.topbar a {
  text-decoration: none;
  font-weight: 500;
  font-size: 1.125rem;
}
.topbar nav a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* ---------- hero: het affiche ---------- */

.affiche {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.affiche-vlak {
  position: relative;
  width: var(--maat);
  margin-inline: auto;
  padding-top: clamp(6rem, 14vh, 9rem);
  z-index: 2;
}

.woordmerk {
  /* placeholder tot het definitieve woordmerk van merel er is:
     vervang deze h1-inhoud door de svg, de klasse blijft. */
  font-family: 'Fredoka', 'Jost', sans-serif;
  font-weight: 700;
  font-size: clamp(3.4rem, 10.5vw, 9.5rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  user-select: none;
}

.affiche-zin {
  margin-top: 1.1rem;
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  font-weight: 500;
  letter-spacing: 0.005em;
  max-width: 22ch;
}

/* de banen + het blik delen één podium zodat ze uitgelijnd blijven */
.podium {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.banen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.blik {
  position: absolute;
  right: 6%;
  top: 16%;
  width: clamp(300px, 37vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}
/* de asset heeft royale papierrand om het blik; schaal in zodat het blik de cirkel vult */
.blik img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.86); }

.bestel-schijf {
  position: absolute;
  left: 54%;
  top: 67%;
  z-index: 3;
  width: clamp(108px, 12vw, 148px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--inkt);
  color: var(--papier);
  display: grid;
  place-items: center;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.25rem;
  transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}
.bestel-schijf:hover { transform: scale(1.07) rotate(-6deg); }

.banen-mobiel { display: none; }

/* de banen tekenen zichzelf één keer, vanuit het blik */
@media (prefers-reduced-motion: no-preference) {
  .banen polygon,
  .banen-mobiel polygon {
    transform-origin: 78% 56%;
    transform: scale(0);
    animation: uitschieten 0.9s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  }
  .banen-mobiel polygon { transform-origin: 59% 43%; }
  .banen polygon:nth-child(1), .banen-mobiel polygon:nth-child(1) { animation-delay: 0.15s; }
  .banen polygon:nth-child(2), .banen-mobiel polygon:nth-child(2) { animation-delay: 0.24s; }
  .banen polygon:nth-child(3), .banen-mobiel polygon:nth-child(3) { animation-delay: 0.33s; }
  .banen polygon:nth-child(4), .banen-mobiel polygon:nth-child(4) { animation-delay: 0.42s; }
  @keyframes uitschieten { to { transform: scale(1); } }
}

/* ---------- panelen ---------- */

section { position: relative; }

.paneel {
  width: var(--maat);
  margin-inline: auto;
  padding-block: clamp(4.5rem, 10vh, 7.5rem);
}

.paneel > h2 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  border-top: var(--lijn) solid var(--inkt);
  padding-top: 1.2rem;
  margin-bottom: clamp(2.2rem, 5vh, 3.6rem);
  text-wrap: balance;
}

/* zo werkt het: drie figuren */

.figuren {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.6rem, 3.5vw, 3.2rem);
}

figure { display: flex; flex-direction: column; gap: 1rem; }

figure svg {
  width: 100%;
  height: auto;
  display: block;
}

.fig-nr {
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

figcaption {
  font-size: 1rem;
  max-width: 34ch;
}
figcaption b {
  display: block;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.2rem;
}

/* ---------- bestellen ---------- */

.bestellen-grid {
  display: grid;
  /* het formulier is een compacte kolom, geen uitgerekt vlak */
  grid-template-columns: minmax(0, 1fr) minmax(0, 34rem);
  justify-content: space-between;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.product-kaart { max-width: 30rem; }

.product-kaart h3 {
  font-family: 'Fredoka', 'Jost', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
}

.product-kaart .omschrijving { margin-top: 0.9rem; max-width: 38ch; }

.spec-lijst {
  margin-top: 1.6rem;
  list-style: none;
  border-top: var(--lijn) solid var(--inkt);
}
.spec-lijst li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.65rem;
  border-bottom: 1px solid color-mix(in srgb, var(--inkt) 25%, transparent);
  font-size: 1rem;
}
.spec-lijst .nog-open { color: color-mix(in srgb, var(--inkt) 62%, var(--papier)); }

.prijs-regel {
  margin-top: 2.2rem;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}
.prijs-regel strong { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 700; letter-spacing: -0.02em; }
.prijs-regel span { font-size: 1rem; }

/* het formulier */

.bestel-formulier { display: grid; gap: 1.15rem; }

.veld { display: grid; gap: 0.35rem; }
.veld label { font-weight: 500; font-size: 1rem; }

.veld input {
  font: inherit;
  color: inherit;
  background: transparent;
  border: var(--lijn) solid var(--inkt);
  border-radius: 0;
  padding: 0.75rem 0.9rem;
  /* zonder dit duwt de intrinsieke invoerbreedte de kolom uit de pagina */
  min-width: 0;
  width: 100%;
}
.veld input::placeholder { color: color-mix(in srgb, var(--inkt) 55%, var(--papier)); }
.veld input:hover { background: color-mix(in srgb, var(--inkt) 4%, transparent); }

.adres-rij {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr);
  gap: 1.15rem;
}

/* aantal en totaal zijn één groep: strak naast elkaar, uitgelijnd op de voet */
.aantal-rij {
  display: flex;
  align-items: flex-end;
  gap: 2.2rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}
.aantal-rij .totaal { padding-bottom: 0.55rem; }

.stepper {
  display: inline-flex;
  border: var(--lijn) solid var(--inkt);
}
.stepper button {
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  background: transparent;
  color: inherit;
  border: 0;
  cursor: pointer;
}
.stepper button:hover:not(:disabled) { background: var(--inkt); color: var(--papier); }
.stepper button:disabled { opacity: 0.35; cursor: default; }
.stepper output {
  display: grid;
  place-items: center;
  min-width: 3.4rem;
  border-inline: var(--lijn) solid var(--inkt);
  font-weight: 700;
  font-size: 1.25rem;
}

.totaal { font-size: 1.125rem; }
.totaal strong { font-size: 1.6rem; font-weight: 700; }

.betaal-knop {
  margin-top: 0.9rem;
  font: inherit;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  background: var(--inkt);
  color: var(--papier);
  border: var(--lijn) solid var(--inkt);
  padding: 1.05rem 1.4rem;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}
.betaal-knop:hover:not(:disabled) { transform: translateY(-2px); }
.betaal-knop:disabled { opacity: 0.55; cursor: wait; }

.betaal-toelichting { font-size: 1rem; color: color-mix(in srgb, var(--inkt) 70%, var(--papier)); }

.formulier-fout {
  display: none;
  border: var(--lijn) solid var(--rood);
  color: var(--rood);
  padding: 0.9rem 1rem;
  font-weight: 500;
}
.formulier-fout.zichtbaar { display: block; }

/* ---------- spectrale scheidingsband ---------- */

.spectrum-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: clamp(14px, 2.2vh, 22px);
}
.spectrum-band i:nth-child(1) { background: var(--rood); }
.spectrum-band i:nth-child(2) { background: var(--amber); }
.spectrum-band i:nth-child(3) { background: var(--groen); }
.spectrum-band i:nth-child(4) { background: var(--blauw); }

/* ---------- voet ---------- */

footer {
  background: var(--inkt);
  color: var(--papier);
}

.voet-inhoud {
  width: var(--maat);
  margin-inline: auto;
  padding-block: clamp(2.5rem, 6vh, 4rem);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}

.voet-inhoud .woordmerk { font-size: clamp(2rem, 4vw, 3rem); }

.voet-meta { display: grid; gap: 0.3rem; font-size: 1rem; justify-items: end; }
.voet-meta a { text-underline-offset: 4px; }
.voet-meta .nog-open { color: color-mix(in srgb, var(--papier) 62%, var(--inkt)); }

/* ---------- bedankt / 404 ---------- */

.vel {
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: start;
  width: var(--maat);
  margin-inline: auto;
  padding-block: 6rem;
}
.vel .schijf {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--groen);
  margin-bottom: 2rem;
}
.vel h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; letter-spacing: -0.02em; }
.vel p { margin-top: 1rem; max-width: 44ch; }
.vel a { font-weight: 500; }
.vel .terug { display: inline-block; margin-top: 2rem; }

/* ---------- documentpagina's: voorwaarden, privacy, herroeping ---------- */

.doc {
  width: min(48rem, var(--maat));
  margin-inline: auto;
  padding-block: clamp(8rem, 16vh, 11rem) clamp(4.5rem, 10vh, 7.5rem);
}
.doc h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.doc .bijgewerkt {
  margin-top: 0.7rem;
  font-size: 1rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--inkt) 62%, var(--papier));
}
.doc h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 2.8rem;
  border-top: var(--lijn) solid var(--inkt);
  padding-top: 1rem;
}
.doc p,
.doc ul {
  margin-top: 0.85rem;
  max-width: 60ch;
}
.doc ul { list-style: square; padding-left: 1.25em; }
.doc li + li { margin-top: 0.35rem; }
.doc a { text-underline-offset: 4px; text-decoration-thickness: 2px; }
.doc .nog-open { color: color-mix(in srgb, var(--inkt) 62%, var(--papier)); }
.doc .kader {
  margin-top: 1.4rem;
  border: var(--lijn) solid var(--inkt);
  padding: 1.4rem 1.6rem;
  max-width: 60ch;
}
.doc .kader > :first-child { margin-top: 0; }

/* ---------- smal scherm ---------- */

@media (max-width: 860px) {
  /* op smal scherm opent het affiche met de naam, dan het blik met de waaier eronder */
  .affiche {
    min-height: auto;
    display: flex;
    flex-direction: column;
  }
  .affiche-vlak { order: 1; padding-top: 6.5rem; }
  .podium { order: 2; }
  .bestel-schijf { order: 3; }

  .podium { position: static; }
  .banen-wrap { display: none; }
  .blik { display: none; }

  /* de portret-waaier: blik en banen in één tekening, dus altijd uitgelijnd */
  .banen-mobiel {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 390 / 560;
    margin-top: 1rem;
  }

  /* de schijf rijdt op de banen, dus hij trekt zich omhoog het waaiervlak in */
  .bestel-schijf {
    position: relative;
    left: 0;
    top: 0;
    z-index: 3;
    margin: -9.5rem 0 2.5rem 12%;
    width: 128px;
  }

  .figuren { grid-template-columns: 1fr; max-width: 30rem; }
  .bestellen-grid { grid-template-columns: 1fr; }
  .adres-rij { grid-template-columns: 1fr; }
  .voet-meta { justify-items: start; }
}
