/* ==========================================================================
   Samuels DJ Service — apparatuur.css  (pagina /apparatuur/)
   De samensteller: echte foto van de standaard set + lagen per optie.
   Bouwt op style.css (tokens, knoppen, header, footer).
   ========================================================================== */

.app-pagina { padding-top: calc(var(--header-h) + var(--s-5)); }

/* Intro ------------------------------------------------------------------ */
.app-intro {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 var(--gutter) var(--s-6);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--s-6) var(--s-8);
  align-items: end;
}
.app-kop {
  font-size: clamp(44px, 5.2vw, 84px);
  line-height: 1;
}
.app-kop .groot {
  display: inline-block;
  font-size: 1.7em;
  line-height: 1.05;
  margin-block: -.14em -.12em;
  padding-inline: .02em;
  vertical-align: -.06em;
  background: var(--verloop);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Tusker heeft weinig ruimte onder; houd het verloop binnen de letters */
  padding-bottom: .04em;
}
.app-intro p { color: var(--ink-muted); margin: 0; max-width: 34em; }
.app-intro p strong { color: var(--navy); }

/* Samensteller ----------------------------------------------------------- */
.samensteller {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 var(--gutter) var(--sectie-y);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: var(--s-6);
  align-items: start;
}

/* De scène: alle lagen staan in procenten van de foto (1600 × 1066) */
.scene-kolom { position: sticky; top: calc(var(--header-h) + var(--s-2)); }
.scene {
  position: relative;
  aspect-ratio: 1600 / 1066;
  border-radius: var(--r-kaart);
  overflow: hidden;
  background: #16181b;
  box-shadow: var(--schaduw);
  isolation: isolate;
  container-type: inline-size;
}
.scene > * { position: absolute; }
.scene-foto { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-canvas { inset: 0; width: 100%; height: 100%; pointer-events: none; }
.scene-canvas--kleur { z-index: 1; mix-blend-mode: hue; }
.scene-canvas--dim { z-index: 1; mix-blend-mode: multiply; }   /* avond: pars zachter laten worden */
.scene-canvas--vloer { z-index: 2; }
.scene-canvas--achter { z-index: 3; mix-blend-mode: screen; }
.scene-canvas--apparaat { z-index: 6; }
.scene-canvas--rook { z-index: 9; }
.scene-canvas--voor { z-index: 10; mix-blend-mode: screen; }

.laag {
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s var(--ease), transform .6s var(--ease), filter .6s var(--ease);
}
.laag img { width: 100%; height: 100%; display: block; }
.laag.is-aan { opacity: 1; }

/* posities = uitsnede uit de foto (1600 × 1066) */
.scene-foto--licht { inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transform: none !important; transition: opacity .7s var(--ease); }
.laag--booth     { left: 8%; top: 39.3996%; width: 9.375%; height: 35.6473%; z-index: 4; }
.laag--letters   { left: 31.25%; top: 59.0994%; width: 38.25%; height: 23.6398%; z-index: 5; }
.laag--sax       { left: 84%; top: 37.523%; width: 19.375%; height: 55.347%; z-index: 8; }

/* binnenkomen: iets omhoog uit de vloer */
.laag--booth, .laag--sax { transform: translateY(3%); }
.laag.is-aan { transform: none; }

/* saxofonist: stevige contactschaduw, zodat hij op de vloer staat (met en zonder dansvloer) */
.laag--sax::before {
  content: "";
  position: absolute;
  left: 18%; right: 8%; bottom: 5.6%;
  height: 4%;
  background:
    radial-gradient(closest-side at 38% 55%, rgba(0,0,0,.75), transparent),
    radial-gradient(closest-side at 70% 60%, rgba(0,0,0,.7), transparent),
    radial-gradient(closest-side, rgba(0,0,0,.35), transparent);
  filter: blur(1.5px);
  z-index: -1;
}

/* lichtletters: gaan lampje voor lampje aan, daarna zacht gloeien */
.laag--letters { filter: brightness(.22) saturate(.3); }
.laag--letters.is-aan { animation: letters-aan 1.4s steps(1, end) forwards, letters-gloed 3.2s 1.4s ease-in-out infinite alternate; }
@keyframes letters-aan {
  0%   { filter: brightness(.22) saturate(.3); }
  12%  { filter: brightness(1.05) saturate(1) drop-shadow(0 0 1.4cqw rgba(255,196,130,.6)); }
  18%  { filter: brightness(.3) saturate(.4); }
  34%  { filter: brightness(1) saturate(1) drop-shadow(0 0 1.4cqw rgba(255,196,130,.6)); }
  40%  { filter: brightness(.45) saturate(.5); }
  55%, 100% { filter: brightness(1) saturate(1) drop-shadow(0 0 1.6cqw rgba(255,196,130,.55)); }
}
@keyframes letters-gloed {
  from { filter: brightness(1) saturate(1) drop-shadow(0 0 1.2cqw rgba(255,196,130,.45)); }
  to   { filter: brightness(1.08) saturate(1.05) drop-shadow(0 0 2.2cqw rgba(255,196,130,.7)); }
}

/* saxofonist: wiegt mee op de maat */
.laag--sax.is-aan img { transform-origin: 60% 96%; animation: sax-wieg calc(120s / 124) ease-in-out infinite alternate; }
@keyframes sax-wieg { from { transform: rotate(-.7deg); } to { transform: rotate(.9deg) translateY(-.3%); } }

/* labels van de gekozen extra's: blijven staan, naast elkaar linksonder */
.scene-labels {
  position: absolute; z-index: 12;
  left: var(--s-4); right: var(--s-4); bottom: var(--s-4);
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 0; padding: 0;
  pointer-events: none;
}
.scene-melding {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 9px 16px 8px;
  border-radius: var(--r-pil);
  background: rgba(29, 58, 82, .82);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--beige);
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: .08em; font-size: 14px; line-height: 1;
  opacity: 0; transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  pointer-events: none;
}
.scene-melding.is-zichtbaar { opacity: 1; transform: none; }
.scene-melding .plus { color: var(--groen); font-size: 1.2em; }

.scene-onder {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  margin-top: var(--s-4);
  font-size: 15px; color: var(--ink-muted);
}
.scene-onder p { margin: 0; }
.tekst-knop {
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  font-family: var(--f-label); text-transform: uppercase; letter-spacing: .08em; font-size: 14px;
  color: var(--navy);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
  white-space: nowrap;
}
.tekst-knop:hover { text-decoration-color: var(--salie); }

/* Paneel ----------------------------------------------------------------- */
.paneel {
  background: var(--wit);
  border-radius: var(--r-kaart);
  padding: var(--s-5);
  display: grid;
  gap: var(--s-5);
}
.basis {
  background: var(--navy);
  color: var(--beige);
  border-radius: 16px;
  padding: var(--s-5);
  position: relative;
  overflow: hidden;
}
.basis-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.basis-zin { margin: 0; font-family: var(--f-label); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--ink-muted-donker); }
.basis-top:has(.basis-zin) { flex-direction: column; align-items: flex-start; gap: 6px; }
.basis h2 {
  font-size: 30px; line-height: 1; white-space: nowrap;
}
.basis-prijs { font-family: var(--f-kop); font-size: 30px; line-height: 1; color: var(--groen); white-space: nowrap; }
.basis ul { list-style: none; margin-top: var(--s-4); display: grid; gap: 6px; font-size: 15px; line-height: 1.45; color: var(--ink-muted-donker); }
.basis li { display: flex; gap: 10px; }
.basis li svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--groen); }
.basis .echo-merk--basis { position: absolute; width: 150px; right: -36px; top: -40px; opacity: .1; pointer-events: none; }

.opties-kop { font-size: 34px; line-height: 1; display: flex; justify-content: space-between; align-items: baseline; }
.opties-kop small { font-family: var(--f-label); font-size: 14px; letter-spacing: .08em; color: var(--ink-muted); }
/* saliestreep onder de hele kopregel van Extra's */
.opties-kop { position: relative; padding-bottom: 14px; }
.opties-kop::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; border-radius: 3px; background: var(--salie); }

.opties { list-style: none; display: grid; gap: 10px; }
.optie {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: center;
  padding: 10px 12px 10px 10px;
  border: 1.5px solid var(--lijn);
  border-radius: 16px;
  background: var(--wit);
  cursor: pointer;
  transition: border-color var(--t-snel) var(--ease), background-color var(--t-snel) var(--ease), transform var(--t-snel) var(--ease);
}
.optie:hover { border-color: rgba(29, 58, 82, .35); }
.optie:active { transform: scale(.99); }
.optie input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.optie:has(input:focus-visible) { outline: 3px solid var(--navy); outline-offset: 2px; }
.optie-foto { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; grid-row: span 2; }
.optie-naam { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .06em; font-size: 17px; line-height: 1.15; align-self: end; }
.optie-zin { font-size: 14px; line-height: 1.35; color: var(--ink-muted); align-self: start; grid-column: 2; }
.optie-rechts { grid-row: 1 / span 2; grid-column: 3; display: grid; justify-items: end; gap: 6px; }
.optie-prijs { font-family: var(--f-label); font-size: 15px; letter-spacing: .04em; white-space: nowrap; }
.optie-prijs.is-aanvraag { color: var(--ink-muted); }
.vink {
  width: 26px; height: 26px; border-radius: 8px;
  border: 1.5px solid rgba(29, 58, 82, .35);
  display: grid; place-items: center;
  transition: background-color var(--t-snel) var(--ease), border-color var(--t-snel) var(--ease);
}
.vink svg { width: 14px; height: 14px; opacity: 0; transform: scale(.6); transition: opacity var(--t-snel) var(--ease), transform var(--t-snel) var(--ease); }
.optie.is-aan { border-color: var(--navy); background: #FBF9F4; }
.optie.is-aan .vink { background: var(--navy); border-color: var(--navy); color: var(--groen); }
.optie.is-aan .vink svg { opacity: 1; transform: none; }

/* aantal (sparkulars): verschijnt als de optie aan staat */
.aantal {
  grid-column: 2 / -1;
  display: none;
  align-items: center; gap: 10px;
  margin-top: 6px;
  font-size: 14px; color: var(--ink-muted);
  position: relative; z-index: 2;
}
.optie.is-aan .aantal { display: flex; }
.aantal button {
  width: 32px; height: 32px; border-radius: 10px;
  border: 1.5px solid var(--lijn); background: var(--wit); cursor: pointer;
  display: grid; place-items: center; font-size: 18px; line-height: 1;
}
.aantal button:hover:not(:disabled) { border-color: var(--navy); }
.aantal button:disabled { opacity: .35; cursor: default; }
.aantal output { font-family: var(--f-label); font-size: 17px; color: var(--navy); min-width: 1.2em; text-align: center; }

/* Totaal ------------------------------------------------------------------ */
.totaal { border-top: 1.5px solid var(--lijn); padding-top: var(--s-5); display: grid; gap: var(--s-4); }
.totaal-kop { font-size: 34px; line-height: 1; margin: 0; }
.totaal-zin { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.kleine-letters a { color: inherit; font-weight: 600; white-space: nowrap; }
.totaal-regel { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-3); }
.totaal-label { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .08em; font-size: 15px; color: var(--ink-muted); padding-bottom: 8px; }
.totaal-label .vanaf { display: none; }
.totaal.is-vanaf .totaal-label .vanaf { display: inline; }
.totaal-bedrag { font-family: var(--f-kop); font-size: clamp(56px, 5vw, 72px); line-height: .9; font-variant-numeric: tabular-nums; }
.totaal-bedrag.tik { animation: tik .35s var(--ease); }
@keyframes tik { 40% { transform: translateY(-4px); color: #3b7fb8; } }
.aanvraag-melding {
  display: none;
  gap: 10px; align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(157, 181, 154, .22);
  font-size: 14.5px; line-height: 1.45;
}
.aanvraag-melding.is-zichtbaar { display: flex; }
.aanvraag-melding svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.aanvraag-melding strong { font-weight: 600; }
.totaal .knop { width: 100%; }
.kleine-letters { font-size: 13px; line-height: 1.5; color: var(--ink-muted); margin: 0; }

/* Mobiele balk met totaal ------------------------------------------------- */
.totaal-balk { display: none; }

/* Responsief -------------------------------------------------------------- */
@media (max-width: 1080px) {
  .samensteller { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-5); }
}
@media (max-width: 899px) {
  .app-intro { grid-template-columns: 1fr; gap: var(--s-4); padding-bottom: var(--s-5); }
  .samensteller { grid-template-columns: 1fr; gap: var(--s-4); padding-bottom: 120px; }
  .basis-top { flex-wrap: wrap; }
  .scene-kolom {
    top: calc(var(--header-h) - 12px);
    z-index: 5;
    margin-inline: calc(var(--gutter) * -1);
    padding: 8px var(--gutter) 10px;
    background: var(--beige);
  }
  .scene { border-radius: 16px; }
  .scene-onder { display: none; }
  .scene-labels { left: 6px; right: 6px; bottom: 6px; gap: 3px; }
  .scene-melding { font-size: 9px; letter-spacing: .06em; padding: 4px 7px 3px; gap: .3em; }
  .scene-melding .plus { font-size: 1em; }
  .paneel { padding: var(--s-4); }
  .totaal-balk {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
    position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 40;
    padding: 10px 10px 10px 20px;
    border-radius: 20px;
    background: var(--navy); color: var(--beige);
    box-shadow: var(--schaduw);
  }
  .totaal-balk .balk-label { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--ink-muted-donker); line-height: 1.2; }
  .totaal-balk .balk-bedrag { font-family: var(--f-kop); font-size: 24px; line-height: 1.05; }
  .totaal-balk .balk-extra { font-size: 12px; color: var(--groen); line-height: 1.2; }
  .totaal-balk .knop { min-height: 48px; padding: 12px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .laag--sax.is-aan img { animation: none; }
  .laag--letters.is-aan { animation: none; filter: brightness(1) drop-shadow(0 0 1.4cqw rgba(255,196,130,.5)); }
}

/* Daglicht / avond (2026-11-18) ------------------------------------------
   Vier foto's van dezelfde hal: daglicht en avond, elk met en zonder extra
   lichtshow. De apparatuur staat op alle vier op dezelfde pixel. */
.scene-foto--avond { z-index: 0; opacity: 0; transition: opacity .9s var(--ease); }
.scene.is-avond .scene-foto--avond { opacity: 1; }
/* lichtshow: de daglichtversie in de dag, de avondversie in de avond */
.scene.is-avond .scene-foto--licht:not(.scene-foto--licht-avond),
.scene:not(.is-avond) .scene-foto--licht-avond { opacity: 0; }
/* losse lagen zijn bij daglicht uitgeknipt: in de avond wat donkerder */
.scene.is-avond .laag--booth img,
.scene.is-avond .laag--sax img { filter: brightness(.5) saturate(.85); }
.scene.is-avond .laag--letters img { filter: brightness(.85); }
.laag img { transition: filter .9s var(--ease); }

.moment-knop {
  top: 12px; right: 12px; z-index: 12;
  display: flex; gap: 2px; padding: 3px;
  border-radius: var(--r-pil);
  background: rgba(29, 58, 82, .55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.moment-knop button {
  border: 0; cursor: pointer;
  padding: 7px 14px 6px;
  border-radius: var(--r-pil);
  background: transparent; color: var(--beige);
  font-family: var(--f-label); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.moment-knop button[aria-pressed="true"] { background: var(--salie); color: var(--navy); }
.moment-knop button:focus-visible { outline: 2px solid var(--beige); outline-offset: 2px; }
@media (max-width: 599px) {
  .moment-knop { top: 8px; right: 8px; padding: 2px; }
  .moment-knop button { padding: 10px 11px 9px; font-size: 11px; }
}
.licht-knoppen {
  top: 12px; left: 12px; z-index: 12;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.kleur-knop, .strobo-knop {
  display: flex; align-items: center;
  border-radius: var(--r-pil);
  background: rgba(29, 58, 82, .55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.kleur-knop { gap: 4px; padding: 4px 14px 4px 5px; }
.kleur-bol {
  width: 26px; height: 26px; padding: 2px; cursor: pointer;
  border: 2px solid transparent; border-radius: 50%;
  background: linear-gradient(135deg, var(--a) 0 50%, var(--b) 50% 100%) content-box;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.kleur-bol:hover { transform: scale(1.08); }
.kleur-bol[aria-pressed="true"] { border-color: var(--salie); }
.kleur-bol:focus-visible { outline: 2px solid var(--beige); outline-offset: 1px; }
.kleur-naam, .strobo-knop span {
  color: var(--beige); white-space: nowrap;
  font-family: var(--f-label); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
}
.kleur-naam { margin-left: 6px; }
.strobo-knop {
  gap: 8px; border: 0; cursor: pointer;
  padding: 7px 14px 6px 10px;
  transition: background .25s var(--ease);
}
.strobo-knop svg { fill: #ffd23f; flex: none; transition: transform .25s var(--ease); }
.strobo-knop:hover svg { transform: scale(1.12) rotate(-6deg); }
.strobo-knop[aria-pressed="true"] { background: var(--salie); }
.strobo-knop[aria-pressed="true"] span { color: var(--navy); }
.strobo-knop[aria-pressed="true"] svg { stroke: var(--navy); stroke-width: 1.6; stroke-linejoin: round; paint-order: stroke; }
.strobo-knop:focus-visible { outline: 2px solid var(--beige); outline-offset: 2px; }
@media (max-width: 599px) {
  .licht-knoppen { top: 8px; left: 8px; gap: 4px; }
  .kleur-knop { padding: 2px; gap: 0; }
  .kleur-bol { width: 30px; height: 30px; padding: 4px; }
  .kleur-naam { display: none; }
  .strobo-knop { padding: 9px 11px 8px 9px; }
  .strobo-knop span { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-foto--avond, .laag img { transition: none; }
}
