/* ==========================================================================
   Studio Caleta – Kennwortseite „Coming soon“ (nur während der Vorschau)
   Baut auf assets/css/style.css auf (Farben, Schriften, Marken, Buttons).
   ========================================================================== */

.gate {
  --I: clamp(28px, 5.5vw, 88px);          /* Abstand der Schnittmarken zum Rand */
  --bw: clamp(2px, .2vw, 3px);
  --bl: calc(var(--I) * .42);
  --pm: clamp(20px, 2.2vw, 32px);
  position: relative;
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh;
  margin: 0;
  background: var(--black); color: var(--paper);
  overflow-x: hidden;
}

/* Rasterpunkte wie auf der Visitenkarte (gezeichnet von zugang.js) */
.gate__dots { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Druckbogen auf Schwarz */
.gate .sheet { z-index: 1; color: #6e6e73; }
.gate .sheet__slug { color: #6e6e73; }
.gate .wedge i { border-color: #6e6e73; }

.gate__main {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; max-width: 760px; margin: 0 auto;
  padding: calc(var(--I) + 16px) 24px 16px;
  text-align: center;
}

.gate__logo { width: clamp(150px, 13vw, 190px); height: auto; aspect-ratio: 275.634 / 82.99; margin-bottom: clamp(24px, 3.6vh, 40px); color: var(--paper); }
.gate__eyebrow { margin-bottom: 14px; color: var(--gray); }
.gate__title {
  margin: 0;
  font: 700 clamp(2.4rem, 1.4rem + 3.6vw, 4.5rem)/1 var(--ff-display);
  letter-spacing: -.045em;
}
.gate__title .thin, .gate__title-l2 { display: block; }
.gate__lead {
  max-width: 30em; margin-top: 20px;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.3125rem); line-height: 1.45;
  color: var(--gray-light); text-wrap: pretty;
}

/* Kennwort-Karte: Glasfläche mit Schnittmarken */
.gate__card {
  --crop-c: rgba(245, 245, 247, .3);
  width: 100%; max-width: 540px;
  margin-top: clamp(24px, 3.6vh, 40px);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px;
  background: rgba(22, 22, 23, .7);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  text-align: left;
}
.gate__label {
  display: block; margin: 0 0 12px;
  font: 400 .75rem/1.3 var(--ff-display); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gray);
}
.gate__row { display: flex; gap: 10px; }
.gate__pw { position: relative; flex: 1; min-width: 0; }
.gate__input {
  display: block; width: 100%; height: 52px; margin: 0;
  padding: 0 50px 0 20px;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 980px;
  background: rgba(255, 255, 255, .06);
  color: var(--paper); caret-color: var(--paper);
  font: 400 1.0625rem/1 var(--ff-text); letter-spacing: -.01em;
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.gate__input::placeholder { color: var(--gray); }
.gate__input:focus { outline: none; border-color: rgba(245, 245, 247, .9); background: rgba(255, 255, 255, .09); box-shadow: 0 0 0 4px rgba(245, 245, 247, .12); }
.gate__input[aria-invalid="true"] { border-color: var(--paper); box-shadow: inset 0 0 0 1px var(--paper); }
.gate__input:-webkit-autofill { -webkit-text-fill-color: var(--paper); box-shadow: 0 0 0 100px #2c2c2e inset; transition: background-color 9999s; }

.gate__toggle {
  position: absolute; right: 6px; top: 50%;
  display: grid; place-items: center;
  width: 40px; height: 40px; margin-top: -20px; padding: 0;
  border: 0; border-radius: 50%;
  background: none; color: var(--gray-light);
  cursor: pointer;
}
.gate__toggle[hidden] { display: none; }
.gate__toggle:hover { color: var(--paper); }
.gate__eye { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gate__eye--verbergen, .gate__toggle[aria-pressed="true"] .gate__eye--zeigen { display: none; }
.gate__toggle[aria-pressed="true"] .gate__eye--verbergen { display: block; }

.gate__submit { flex: none; min-height: 52px; gap: 8px; padding: 0 22px; }
.gate__arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gate__spinner { display: none; width: 18px; height: 18px; }
.gate__submit.is-loading { cursor: progress; }
.gate__submit.is-loading .gate__spinner { display: block; animation: spin 1.1s linear infinite; }
.gate__submit.is-loading .gate__arrow { display: none; }

.gate__notice {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 14px 2px 0;
  font-size: .875rem; line-height: 1.45; color: var(--paper);
}
.gate__notice::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7.25' fill='none' stroke='%23f5f5f7' stroke-width='1.5'/%3E%3Cpath d='M8 4.3v4.6' stroke='%23f5f5f7' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='11.5' r='1' fill='%23f5f5f7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.gate__hint { margin-top: 14px; font-size: .8125rem; line-height: 1.45; color: var(--gray); }

.gate__contact { margin-top: 28px; font-size: .9375rem; line-height: 1.6; color: var(--gray); }
.gate__contact a { color: var(--gray-light); transition: color .2s var(--ease); }
.gate__contact a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: .2em; }
.gate__sep { margin: 0 .6em; }

.gate__footer {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px;
  padding: 12px 24px calc(var(--I) + 6px);
  font-size: .8125rem; color: var(--gray);
}
.gate__footer a:hover { color: var(--paper); }

/* Einstieg: Logo, Texte und Karte steigen nacheinander auf */
.js .gate__logo, .js .gate__eyebrow, .js .gate__title, .js .gate__lead, .js .gate__card, .js .gate__contact, .js .gate__footer {
  opacity: 0; transform: translateY(16px);
}
.is-ready .gate__logo { animation: rise-in 1s var(--ease-out) .1s forwards; }
.is-ready .gate__eyebrow { animation: rise-in 1s var(--ease-out) .25s forwards; }
.is-ready .gate__title { animation: rise-in 1.1s var(--ease-out) .35s forwards; }
.is-ready .gate__lead { animation: rise-in 1s var(--ease-out) .5s forwards; }
.is-ready .gate__card { animation: rise-in 1s var(--ease-out) .65s forwards; }
.is-ready .gate__contact, .is-ready .gate__footer { animation: rise-in 1s var(--ease-out) .8s forwards; }

@media (max-width: 600px) {
  .gate__row { flex-direction: column; }
  .gate__submit { width: 100%; }
  .gate__card { padding: 20px; }
  .gate__sep { display: none; }
  .gate__contact a { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .js .gate__logo, .js .gate__eyebrow, .js .gate__title, .js .gate__lead, .js .gate__card, .js .gate__contact, .js .gate__footer {
    opacity: 1; transform: none;
  }
}
