/* Beta-Warteliste-Gate + Demo-Info */
#beta-gate-overlay,
#demo-info-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 20, 0.82);
  backdrop-filter: blur(4px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: betaGateFadeIn 0.3s ease;
}

@keyframes betaGateFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#beta-gate-overlay.hide,
#demo-info-overlay.hide {
  animation: betaGateFadeOut 0.3s ease forwards;
}

@keyframes betaGateFadeOut {
  to { opacity: 0; }
}

.beta-gate-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(5, 8, 20, 0.55), 0 4px 16px rgba(5, 8, 20, 0.4);
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem 2.25rem;
  text-align: left;
}

.beta-gate-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 0.6rem;
}

.beta-gate-modal h2 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0 0 0.85rem;
  text-wrap: balance;
}

.beta-gate-modal p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 1.4rem;
}

#beta-gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

#beta-gate-email {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

#beta-gate-email:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.beta-gate-btn-primary {
  width: 100%;
  padding: 0.85rem;
  background: var(--accent);
  color: #04141a;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.beta-gate-btn-primary:hover {
  background: var(--accent-hover);
}

.beta-gate-btn-primary:active {
  transform: scale(0.98);
}

.beta-gate-btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.beta-gate-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

#beta-gate-result {
  font-size: 0.85rem;
  margin-top: 0.75rem;
  min-height: 1.1em;
}

#beta-gate-result.beta-gate-success { color: #4caf50; }
#beta-gate-result.beta-gate-error { color: #ef4444; }

.beta-gate-btn-secondary {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  margin-top: 1.1rem;
  border-bottom: 1px solid transparent;
}

.beta-gate-btn-secondary:hover {
  color: var(--text-secondary);
  border-bottom-color: var(--text-secondary);
}

/* Demo-Info-Popup (was geht / was noch nicht) */
#demo-info-overlay .beta-gate-modal {
  max-width: 500px;
}

.demo-info-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.demo-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.demo-info-list .mark {
  flex-shrink: 0;
  width: 1.1rem;
  text-align: center;
  font-weight: 700;
}

.demo-info-list.is-ok .mark { color: #4caf50; }
.demo-info-list.is-no .mark { color: #ef4444; }

.demo-info-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.2rem 0 0.9rem;
}

@media (max-width: 500px) {
  .beta-gate-modal {
    padding: 1.5rem;
  }
}
