/* Lokale Filmvorschau: Formular bleibt während der Reise bedienbar. */
.gate-film {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: var(--bg);
  pointer-events: none;
}
.gate-film-shade {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(243,236,224,.08), transparent 65%, rgba(243,236,224,.22));
  pointer-events: none;
}
.intro .half { display: none; }
.intro { pointer-events: none; padding: 24px; }
.seal-wrap {
  width: min(440px, 100%);
  padding: 30px 26px;
  gap: 18px;
  border: 1px solid rgba(255,253,248,.7);
  border-radius: 18px;
  background: rgba(243,236,224,.79);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  box-shadow: 0 12px 60px rgba(56,43,25,.09);
  pointer-events: auto;
}
.sealbox { width: 180px; height: 160px; }
.gaterow { width: 100%; }
.hint { line-height: 1.4; }
.film-controls {
  position: fixed;
  right: 24px;
  bottom: 20px;
  z-index: 160;
}
.film-controls[hidden] { display: none; }
.film-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(28,26,23,.2);
  border-radius: 999px;
  background: rgba(243,236,224,.9);
  color: var(--ink);
  font: 400 .8rem var(--font-body);
  cursor: pointer;
}
.film-controls button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 600px) {
  .intro { padding: 18px; }
  .seal-wrap { padding: 24px 20px; }
  .sealbox { height: 140px; }
  .film-controls { right: 18px; bottom: max(14px, env(safe-area-inset-bottom)); }
}
@media (max-height: 560px) {
  .seal-wrap { padding: 18px 24px; gap: 12px; }
  .sealbox { height: 110px; }
  .seal { width: 96px; height: 96px; }
}

/* Desktop und Tablet behalten die bestehende Vollbildansicht. */
.gate-mobile-heading, .gate-open-mobile { display: none; }
.gate-film-stage { display: contents; }

/* Unterhalb der iPad-Breite: Film und Anmeldung im normalen Dokumentfluss.
   Beim Öffnen der Tastatur bleibt die Seite scrollbar, ohne fixe Formularhöhe. */
@media (max-width: 767px) {
  html { height: auto; min-height: 100%; scroll-padding-bottom: 24px; }
  body {
    height: auto;
    min-height: 100svh;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: radial-gradient(ellipse at 50% 0%, rgba(168,132,47,.06), transparent 70%), var(--bg);
  }
  .gate-mobile-heading {
    display: block;
    padding: calc(22px + env(safe-area-inset-top, 0px)) 20px 18px;
    text-align: center;
    color: var(--wine);
  }
  .gate-mobile-heading p {
    margin: 0 0 8px;
    font: 400 clamp(1.9rem, 8.2vw, 2.5rem)/1.1 var(--font-head);
  }
  .gate-mobile-heading span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--muted);
    font: 400 .85rem var(--font-head);
    letter-spacing: .28em;
  }
  .gate-mobile-heading span::before, .gate-mobile-heading span::after {
    content: ''; width: 36px; height: 1px; background: var(--line);
  }
  .gate-film-stage { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; }
  .gate-film { position: absolute; height: 100%; object-fit: contain; }
  .gate-film-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(243,236,224,.12), transparent 15%, transparent 72%, var(--bg));
  }
  .film-controls { position: absolute; right: 16px; bottom: 12px; z-index: 2; }
  .intro { position: relative; inset: auto; display: block; padding: 22px 24px 28px; }
  .seal-wrap {
    width: min(440px, 100%);
    margin: 0 auto;
    padding: 0;
    gap: 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }
  .seal-wrap small { font-size: .65rem; letter-spacing: .3em; padding-left: .3em; }
  .sealbox { width: 112px; height: 112px; }
  .seal { width: 100px; height: 100px; }
  .gaterow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 4px; }
  .gaterow input { width: 100%; height: 52px; scroll-margin: 24px 0; }
  .gobtn { width: 100%; height: 52px; background: var(--wine); letter-spacing: .14em; }
  .gate-open-desktop { display: none; }
  .gate-open-mobile { display: inline; }
  .hint { max-width: 26em; font-size: 1rem; }
}
