:root {
  --accent: #ffb020;
  --inkt: #0b1622;
  --wit: #f6f7f9;
}

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

html, body {
  width: 100%; height: 100%;
  background: #000;
  overflow: hidden;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--wit);
}

#scherm {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
}

/* ---- achtergrondlagen (crossfade + langzame zoom) ---- */
#lagen { position: absolute; inset: 0; }

.laag {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  animation: kenburns 16s ease-out forwards;
}
.laag.actief { opacity: 1; z-index: 2; }
.laag.vorig { opacity: 0; z-index: 1; }

@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.09); }
}

.laag::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,8,12,.88) 0%, rgba(5,8,12,.55) 24%, rgba(5,8,12,.05) 46%, rgba(5,8,12,.35) 100%);
}

/* ---- kop ---- */
#kop {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(16px, 2.2vw, 34px) clamp(20px, 3vw, 48px);
  font-size: clamp(16px, 1.5vw, 26px);
  letter-spacing: .04em;
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
  opacity: .92;
}
#bedrijfsnaam { font-weight: 700; text-transform: uppercase; }
#bedrijfscontact { font-size: .78em; opacity: .72; letter-spacing: .02em; margin-top: .25em; }
#bedrijfscontact:empty { display: none; }
#klok { font-variant-numeric: tabular-nums; opacity: .85; }

/* ---- content per item (kind van .laag, deelt de crossfade) ---- */
.paneel {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(28px, 4vw, 64px) clamp(28px, 4vw, 72px) clamp(60px, 6vw, 96px);
}

.categorie {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent);
  color: #1a1200;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: clamp(13px, 1.1vw, 20px);
  padding: .35em .9em;
  border-radius: 999px;
  margin-bottom: clamp(10px, 1.4vw, 20px);
}

.titel {
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  max-width: 78%;
  text-shadow: 0 4px 24px rgba(0,0,0,.55);
}

.plaats {
  margin-top: .35em;
  font-size: clamp(16px, 1.6vw, 28px);
  opacity: .85;
}

.rij {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(18px, 2.4vw, 34px);
}

.specs {
  display: flex; flex-wrap: wrap;
  gap: clamp(14px, 2vw, 32px);
  max-width: 68%;
}
.specs div { min-width: 120px; }
.specs .sk {
  display: block;
  font-size: clamp(11px, .9vw, 15px);
  text-transform: uppercase; letter-spacing: .06em;
  opacity: .65;
}
.specs .sv {
  display: block;
  font-size: clamp(17px, 1.7vw, 28px);
  font-weight: 600;
}

.prijs {
  flex: 0 0 auto;
  text-align: right;
  font-size: clamp(30px, 4vw, 58px);
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 3px 18px rgba(0,0,0,.5);
  white-space: nowrap;
}
.prijs.tekst { font-size: clamp(18px, 2vw, 30px); color: var(--wit); opacity: .9; }

.qr {
  position: absolute; right: clamp(24px, 3.5vw, 60px); bottom: clamp(120px, 13vw, 190px);
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.96);
  padding: clamp(10px, 1vw, 16px);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.qr img { display: block; width: clamp(84px, 8vw, 140px); height: auto; }
.qr span {
  color: var(--inkt);
  font-size: clamp(11px, .85vw, 15px);
  font-weight: 600;
  text-align: center;
}

/* ---- voortgangsbalk ---- */
#voet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  padding: 0 clamp(20px, 3vw, 48px) clamp(14px, 1.6vw, 26px);
}
#voortgang { height: 5px; width: 100%; background: rgba(255,255,255,.18); border-radius: 4px; overflow: hidden; }
#voortgang-balk { height: 100%; width: 0%; background: var(--accent); }

#foutmelding {
  position: absolute; inset: 0; z-index: 9;
  align-items: center; justify-content: center;
  background: #0b1622; color: #fff;
  font-size: clamp(18px, 2vw, 30px);
  text-align: center; padding: 5vw;
}
#foutmelding:not([hidden]) { display: flex; }
#foutmelding[hidden] { display: none; }
