:root {
  color-scheme: dark;
  --bg: radial-gradient(circle at top right, rgba(73, 87, 255, 0.25), rgba(2, 2, 12, 0.9) 45%, rgba(1, 1, 8, 1) 80%);
  --surface: rgba(255, 255, 255, 0.04);
  --text-primary: #f5f5f7;
  --text-muted: rgba(255, 255, 255, 0.7);
  --accent: #8c7bff;
  --accent-strong: #b998ff;
  --border: rgba(255, 255, 255, 0.08);
  --font-stack: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #020207;
  background-image: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-stack);
  line-height: 1.6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}

.page {
  width: min(960px, 100%);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  min-height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.site-header,
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.site-header {
  margin-bottom: 2.5rem;
}

.logo {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.hero {
  display: flex;
  flex: 1;
  align-items: center;
}

.hero-content {
  width: 100%;
}

/* Immer 2 Zeilen Titel */
.hero-title {
  white-space: normal;
  word-break: keep-all;
  line-height: 1.06;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--accent-strong);
  margin-bottom: 0.8rem;
}

h1 {
  font-size: clamp(2.8rem, 6.6vw, 5rem);
  margin: 0 0 1.1rem 0;
}

.subline {
  font-size: clamp(1.25rem, 2.8vw, 1.5rem);
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.description {
  font-size: 1.05rem;
  max-width: 40rem;
  margin-bottom: 2rem;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.feature {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.7rem 1.35rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.02);
}

.cta-form {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.cta-form input {
  flex: 1;
  padding: 0.95rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-size: 1rem;
}

.cta-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(140, 123, 255, 0.3);
}

.cta-form button {
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #080810;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

.cta-form button:hover,
.cta-form button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(140, 123, 255, 0.4);
}

.cta-form button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

.disclaimer {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Success pill – nimmt standardmäßig KEINEN Platz ein */
.success-pill {
  display: none;              /* wichtig: kein Platz, wenn unsichtbar */
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: radial-gradient(circle at top left, rgba(140, 122, 255, 0.35), rgba(40, 40, 80, 0.9));
  border: 1px solid rgba(188, 172, 255, 0.4);
  font-size: 0.85rem;
  color: #e2deff;
}

.success-pill.visible {
  display: inline-flex;       /* nur bei Erfolg sichtbar */
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: rgba(168, 255, 210, 0.2);
  border: 1px solid rgba(168, 255, 210, 0.6);
  font-size: 0.75rem;
}

.success-text {
  line-height: 1.2;
}

/* Mobile Tweaks */
@media (max-width: 767px) {
  .site-header,
  .site-footer {
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
  }

  .cta-form {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 0.4rem !important;
  }

  .cta-form button,
  .cta-form input {
    width: 100%;
  }

  .features {
    flex-direction: column;
  }

  .hero {
    align-items: flex-start;
  }

  .disclaimer {
    margin-bottom: 0.6rem !important;
  }

  .site-footer {
    margin-top: 0.7rem !important;
    padding-top: 0.5rem !important;
  }
}

@media (min-width: 1024px) {
  body {
    padding: 1.25rem;
  }

  .page {
    padding: 2.5rem 3rem;
    min-height: calc(100vh - 2.5rem);
  }

  .site-header {
    margin-bottom: 1.5rem;
  }

  .hero {
    align-items: center;
  }

  h1 {
    font-size: clamp(2.5rem, 4.2vw, 4.4rem);
    margin-bottom: 0.8rem;
  }

  .subline {
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
  }

  .description {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }

  .features {
    margin-bottom: 1.2rem;
    gap: 0.6rem;
  }

  .feature {
    padding: 0.6rem 1.1rem;
    font-size: 0.95rem;
  }

  .cta-form {
    margin-bottom: 0.6rem;
  }

  .cta-form input,
  .cta-form button {
    padding: 0.85rem 1.2rem;
  }

  .disclaimer {
    font-size: 0.85rem;
  }

  .site-footer {
    margin-top: 1.2rem;
    padding-top: 1rem;
  }
}

/* SR-only helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
