/* ==========================================================================
   Y-Consult — Zugangs-Gate (bewusst neutral, ohne Marken-Gestaltung)
   ========================================================================== */

@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/work-sans/WorkSans-Variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC;
}

:root {
  --g-bg: #f4f4f2;
  --g-surface: #ffffff;
  --g-line: #dcdcd8;
  --g-ink: #2b2b2b;
  --g-ink-soft: #6a6a66;
  --g-focus: #8a8a86;
  --g-error: #a13d3d;
  --g-error-bg: #f7e9e9;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--g-bg);
  color: var(--g-ink);
  font-family: 'Work Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.55;
}

.gate-card {
  width: 100%;
  max-width: 380px;
  background: var(--g-surface);
  border: 1px solid var(--g-line);
  border-radius: 10px;
  padding: 2.25rem 2rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 10px 30px -14px rgba(0,0,0,0.15);
}

.gate-mark {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--g-ink);
  color: var(--g-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin: 0 auto 1.25rem;
}

.gate-card h1 {
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
  margin: 0 0 0.4rem;
  color: var(--g-ink);
}

.gate-card p.gate-sub {
  text-align: center;
  font-size: 0.9rem;
  color: var(--g-ink-soft);
  margin: 0 0 1.5rem;
}

.gate-field { margin-bottom: 1rem; }

.gate-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--g-ink);
}

.gate-input-wrap { position: relative; }

.gate-field input {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  padding: 0.7rem 2.6rem 0.7rem 0.85rem;
  border: 1px solid var(--g-line);
  border-radius: 7px;
  background: #fff;
  color: var(--g-ink);
}

.gate-field input:focus {
  outline: none;
  border-color: var(--g-focus);
  box-shadow: 0 0 0 3px rgba(138,138,134,0.25);
}

.gate-toggle {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--g-ink-soft);
  font-size: 0.78rem;
  padding: 0.4rem 0.5rem;
}
.gate-toggle:hover { color: var(--g-ink); }

.gate-submit {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 7px;
  background: var(--g-ink);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.gate-submit:hover { background: #1a1a1a; }
.gate-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.gate-error {
  display: none;
  margin-top: 0.9rem;
  padding: 0.65rem 0.8rem;
  background: var(--g-error-bg);
  color: var(--g-error);
  border-radius: 7px;
  font-size: 0.85rem;
}
.gate-error.is-visible { display: block; }

.gate-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: #a3a39e;
}

.gate-shake { animation: gate-shake 0.35s ease; }
@keyframes gate-shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .gate-shake { animation: none; }
}
