/* Eén scherm, niets om te scrollen. Desktop: donker vlak links met logo en aanmelden, video rechts.
   Telefoon: video over het hele scherm, donker verloop onderin. */

:root {
  --nacht: #14100d;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--nacht);
}

body {
  color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.podium {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  height: 100dvh;
}

.beeld {
  position: relative;
  order: 2;
  overflow: hidden;
}

.film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Laat het beeld naar links in het donker overlopen */
.beeld::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--nacht) 0%, rgba(20, 16, 13, 0) 30%);
}

.tekst {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--nacht);
  padding: 28px clamp(16px, 5vw, 72px) clamp(40px, 9vh, 96px);
}

.merk {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .8125rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
}

.aanmelden {
  width: min(100%, 420px);
  margin: auto 0;
}

.aanmelden label {
  display: block;
  font-size: clamp(1.0625rem, 1.8vw, 1.375rem);
  font-weight: 500;
  margin-bottom: 1rem;
}

.veld {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, .8);
}
.veld:focus-within { border-bottom-color: #fff; }

.veld input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  padding: .7rem 0;
}
.veld input::placeholder { color: rgba(255, 255, 255, .55); }
.veld input:focus { outline: none; }

.veld button {
  background: none;
  border: 0;
  color: #fff;
  font: inherit;
  font-size: 1.25rem;
  cursor: pointer;
  padding: .5rem 0 .5rem 1rem;
}
.veld button:disabled { opacity: .5; cursor: default; }

.pot { position: absolute; left: -9999px; width: 1px; height: 1px; }

.melding:empty { display: none; }
.melding { margin: 1rem 0 0; font-size: 1rem; }

.aanmelden.klaar .veld { display: none; }

/* ---------- telefoon en staande schermen ---------- */

@media (max-width: 820px), (orientation: portrait) {
  .podium {
    display: block;
    position: relative;
  }

  .beeld {
    position: absolute;
    inset: 0;
  }
  .beeld::after {
    background: linear-gradient(180deg, rgba(20, 16, 13, .55) 0%, rgba(20, 16, 13, 0) 22%, rgba(20, 16, 13, 0) 50%, rgba(20, 16, 13, .85) 78%, var(--nacht) 100%);
  }

  .tekst {
    height: 100%;
    background: none;
    padding: 20px 16px max(40px, env(safe-area-inset-bottom) + 24px);
  }
  .aanmelden { margin: auto 0 0; }
}
