/* =========================================================
   LEVA – Landing Page Stylesheet
   Brand Guide v0.1
   ========================================================= */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Gugi&family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,600;0,700;1,300&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --color-primary:      #583AA9;
  --color-primary-dark: #3d2878;
  --color-navy:         #2B2E4A;
  --color-soft-lavender:#D1D8FF;
  --color-support-blue: #A6E3FF;
  --color-coral:        #FF9AA2;
  --color-bg:           #FFFDF5;
  --color-bg-card:      #FFFFFF;
  --color-text:         #2B2E4A;
  --color-text-muted:   #6b7280;
  --color-border:       #e5e7eb;

  --font-logo:   'Gugi', sans-serif;
  --font-body:   'IBM Plex Sans', sans-serif;

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   24px;
  --shadow:      0 4px 32px rgba(88, 58, 169, 0.10);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(255, 253, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.logo {
  font-family: var(--font-logo);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--color-primary);
}

.logo span {
  display: block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: -2px;
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-soft-lavender);
  padding: 6px 14px;
  border-radius: 100px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: calc(100vh - 65px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
  position: relative;
  overflow: hidden;
}

/* subtle gradient orbs */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  pointer-events: none;
}
.hero::before {
  width: 520px; height: 520px;
  background: var(--color-soft-lavender);
  top: -120px; left: -100px;
}
.hero::after {
  width: 400px; height: 400px;
  background: var(--color-support-blue);
  bottom: -80px; right: -60px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-soft-lavender);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-coral);
  display: inline-block;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--color-navy);
  max-width: 680px;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-primary);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 300;
  color: var(--color-text-muted);
  max-width: 540px;
  margin-bottom: 48px;
}

/* ---------- Email Form ---------- */
.email-form-wrapper {
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 1;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-group {
  display: flex;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-bg-card);
  border: 1.5px solid var(--color-border);
  transition: border-color 0.2s;
}
.input-group:focus-within {
  border-color: var(--color-primary);
}

.email-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 15px 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: transparent;
}
.email-input::placeholder { color: var(--color-text-muted); }

.submit-btn {
  border: none;
  cursor: pointer;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0 24px;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
  border-radius: 0;
}
.submit-btn:hover { background: var(--color-primary-dark); }
.submit-btn:active { transform: scale(0.98); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.form-note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
}
.form-note a { color: var(--color-primary); text-decoration: underline; }

/* ---------- Form States ---------- */
.form-message {
  display: none;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 400;
  text-align: left;
  animation: fadeIn 0.3s ease;
}
.form-message.success {
  display: block;
  background: rgba(88, 58, 169, 0.08);
  border: 1px solid var(--color-soft-lavender);
  color: var(--color-navy);
}
.form-message.error {
  display: block;
  background: rgba(255, 154, 162, 0.15);
  border: 1px solid var(--color-coral);
  color: #b91c1c;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* =========================================================
   USP SECTION
   ========================================================= */
.usp-section {
  padding: 72px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.section-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.usp-section > h2 {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.3;
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.usp-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.usp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(88, 58, 169, 0.14);
}

.usp-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.usp-icon.purple { background: var(--color-soft-lavender); }
.usp-icon.blue   { background: #daf3ff; }
.usp-icon.coral  { background: #ffe8ea; }

.usp-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.usp-card p {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* =========================================================
   SECOND CTA STRIP
   ========================================================= */
.cta-strip {
  background: var(--color-primary);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
}

.cta-strip h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-strip p {
  font-weight: 300;
  opacity: 0.85;
  margin-bottom: 36px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.cta-strip .input-group {
  max-width: 460px;
  margin: 0 auto 12px;
  border-color: rgba(255,255,255,0.3);
}
.cta-strip .email-input { background: rgba(255,255,255,0.95); }
.cta-strip .submit-btn { background: var(--color-navy); }
.cta-strip .submit-btn:hover { background: #1a1d32; }
.cta-strip .form-note { color: rgba(255,255,255,0.7); }
.cta-strip .form-note a { color: rgba(255,255,255,0.9); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.6);
  padding: 36px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.footer-logo {
  font-family: var(--font-logo);
  font-size: 1.1rem;
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 600px) {
  .site-header { padding: 16px 20px; }
  .header-badge { display: none; }

  .input-group {
    flex-direction: column;
    border-radius: var(--radius-md);
  }
  .submit-btn {
    padding: 14px;
    border-radius: 0;
  }

  .usp-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; text-align: center; }
}

/* =========================================================
   LEGAL PAGES (Impressum / Datenschutz)
   ========================================================= */
.legal-page {
  padding: 64px 24px 80px;
  min-height: calc(100vh - 65px - 88px);
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 40px;
  transition: color 0.2s;
}
.legal-back:hover { color: var(--color-primary-dark); }

.legal-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
  line-height: 1.2;
}

.legal-content .legal-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 48px;
}

.legal-content h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.legal-content p,
.legal-content ul,
.legal-content address {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: 16px;
  font-style: normal;
}

.legal-content ul {
  padding-left: 20px;
}

.legal-content ul li {
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--color-primary);
  text-decoration: underline;
}
.legal-content a:hover { color: var(--color-primary-dark); }

@media (max-width: 600px) {
  .legal-page { padding: 40px 20px 64px; }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
