/* ═══════════════════════════════════════════════════════════════════════════════
   landing.css — Marketing landing page
   ═══════════════════════════════════════════════════════════════════════════════ */

:root {
  --bg:            #FFFFFF;
  --bg-subtle:     #F9FAFB;
  --bg-alt:        #F3F4F6;
  --surface:       #FFFFFF;
  --border:        #E5E7EB;
  --text:          #111827;
  --text-secondary:#374151;
  --text-muted:    #6B7280;
  --heading:       #1E1B4B;
  --accent:        #4F46E5;
  --accent-dark:   #4338CA;
  --accent-light:  #EEF2FF;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.site-header .container {
  max-width: 1200px; margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex; align-items: center;
  gap: 1rem;
}
.header-actions {
  display: flex; align-items: center; gap: .75rem;
  margin-left: auto;
}
.site-logo {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--heading);
}
.site-logo .logo-placeholder {
  width: 40px; height: 40px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem; font-weight: 700;
}
.site-logo h1 { font-size: 1.15rem; font-weight: 700; color: var(--heading); }
.site-logo span { font-size: .7rem; color: var(--text-muted); display: block; line-height: 1; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a { color: var(--text-secondary); font-size: .9rem; font-weight: 500; }
.site-nav a:hover { color: var(--accent); }

.lang-switch {
  display: flex; gap: .25rem;
  border: 1px solid var(--border); border-radius: 6px; padding: 2px;
}
.lang-switch button {
  background: none; border: none; padding: .25rem .5rem;
  font-size: .75rem; cursor: pointer; color: var(--text-muted);
  border-radius: 4px;
}
.lang-switch button.active { background: var(--accent); color: #fff; }

.btn-login {
  background: var(--accent); color: #fff;
  padding: .55rem 1.25rem; border-radius: 8px;
  font-size: .9rem; font-weight: 600;
  transition: background .15s;
}
.btn-login:hover { background: var(--accent-dark); color: #fff; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--bg) 100%);
  padding: 5rem 1.5rem 4rem;
}
.hero .container {
  max-width: 1000px; margin: 0 auto; text-align: center;
}
.hero h2 {
  font-size: 3rem; font-weight: 800; color: var(--heading);
  line-height: 1.15; margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.hero p.lead {
  font-size: 1.2rem; color: var(--text-secondary);
  max-width: 640px; margin: 0 auto 2rem;
}
.hero .cta-row {
  display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
  padding: .85rem 1.75rem; border-radius: 10px;
  font-size: 1rem; font-weight: 600;
  border: none; cursor: pointer;
  transition: background .15s;
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-secondary {
  background: #fff; color: var(--accent);
  padding: .85rem 1.75rem; border-radius: 10px;
  font-size: 1rem; font-weight: 600;
  border: 1.5px solid var(--accent);
  cursor: pointer;
}
.btn-secondary:hover { background: var(--accent-light); }

/* ── Slideshow ──────────────────────────────────────────────── */
.slideshow {
  margin: 3rem auto 0;
  max-width: 1000px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(79,70,229,0.15);
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-alt);
}
.slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--text-muted);
  background: linear-gradient(135deg, var(--accent-light) 0%, #FFFFFF 50%, var(--accent-light) 100%);
}
.slide.active { opacity: 1; }
.slide .slide-placeholder {
  text-align: center;
}
.slide .slide-placeholder .icon {
  font-size: 4rem; display: block; margin-bottom: .5rem;
}
.slide .slide-placeholder h3 {
  font-size: 1.8rem; color: var(--heading); font-weight: 700;
}
.slide .slide-placeholder p {
  color: var(--text-secondary); margin-top: .35rem; font-size: 1rem;
}

.slide-indicators {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: .4rem;
}
.slide-indicators button {
  width: 10px; height: 10px; border-radius: 50%;
  border: none; background: rgba(79,70,229,0.3);
  cursor: pointer; padding: 0;
}
.slide-indicators button.active { background: var(--accent); }

/* ── Features ───────────────────────────────────────────────── */
.features { padding: 5rem 1.5rem; }
.features .container { max-width: 1200px; margin: 0 auto; }
.section-title {
  text-align: center; margin-bottom: 3rem;
}
.section-title h2 {
  font-size: 2.25rem; color: var(--heading); font-weight: 700;
  margin-bottom: .5rem;
}
.section-title p {
  color: var(--text-muted); font-size: 1.05rem;
}

.features-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(79,70,229,0.1);
}
.feature-card .icon {
  font-size: 2rem; margin-bottom: .75rem; display: block;
}
.feature-card h3 {
  font-size: 1.15rem; color: var(--heading);
  margin-bottom: .5rem; font-weight: 700;
}
.feature-card p {
  color: var(--text-secondary); font-size: .9rem;
}

/* ── Pricing ────────────────────────────────────────────────── */
.pricing {
  background: var(--bg-subtle);
  padding: 5rem 1.5rem;
}
.pricing .container { max-width: 1100px; margin: 0 auto; }

.pricing-subtitle {
  text-align: center; color: var(--accent); font-weight: 600;
  margin-bottom: 0;
}
.pricing-grid {
  display: grid; gap: 1.5rem; margin-top: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.pricing-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  position: relative;
  display: flex; flex-direction: column;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(79,70,229,0.12);
  transform: scale(1.02);
}
.pricing-card.featured::before {
  content: 'Empfohlen';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  padding: .25rem .75rem; border-radius: 999px;
  font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
}
.pricing-card h3 {
  font-size: 1.3rem; color: var(--heading); font-weight: 700;
}
.pricing-card .price {
  font-size: 1.8rem; color: var(--accent); font-weight: 800;
  margin: .75rem 0 .25rem;
}
.pricing-card .price-note {
  color: var(--text-muted); font-size: .8rem; margin-bottom: 1.25rem;
}
.pricing-card ul {
  list-style: none; flex: 1; margin-bottom: 1.5rem;
}
.pricing-card ul li {
  padding: .4rem 0; color: var(--text-secondary); font-size: .9rem;
  display: flex; align-items: center; gap: .5rem;
}
.pricing-card ul li::before {
  content: '✓'; color: var(--accent); font-weight: 700;
}
.pricing-card ul li.disabled {
  color: var(--text-muted); opacity: .5;
}
.pricing-card ul li.disabled::before {
  content: '×'; color: var(--text-muted);
}
.pricing-card .btn-plan {
  background: var(--surface); color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: .75rem; border-radius: 10px;
  font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.pricing-card.featured .btn-plan {
  background: var(--accent); color: #fff;
}
.pricing-card .btn-plan:hover { background: var(--accent); color: #fff; }

/* ── Contact ────────────────────────────────────────────────── */
.contact { padding: 5rem 1.5rem; }
.contact .container { max-width: 600px; margin: 0 auto; }
.contact form { margin-top: 2rem; }
.contact .form-group { margin-bottom: 1rem; }
.contact label {
  display: block; font-size: .85rem; font-weight: 500;
  color: var(--text-secondary); margin-bottom: .35rem;
}
.contact input, .contact textarea {
  width: 100%; padding: .7rem .9rem;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: .9rem; font-family: inherit;
  background: var(--bg); color: var(--text);
  outline: none;
  transition: border-color .15s;
}
.contact input:focus, .contact textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.contact textarea { resize: vertical; min-height: 120px; }
.contact button[type="submit"] {
  width: 100%; margin-top: .5rem;
}
.contact #contact-message {
  text-align: center; margin-top: 1rem; font-size: .9rem;
}
.contact #contact-message.success { color: #22C55E; }
.contact #contact-message.error { color: #EF4444; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: #1E1B4B;
  color: rgba(255,255,255,0.8);
  padding: 3rem 1.5rem 2rem;
}
.site-footer .container {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem;
}
.site-footer h4 {
  color: #fff; font-size: .9rem; font-weight: 700;
  margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .05em;
}
.site-footer .footer-brand p {
  font-size: .85rem; margin-top: .75rem; max-width: 320px;
  color: rgba(255,255,255,0.6);
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: .5rem; }
.site-footer ul li a {
  color: rgba(255,255,255,0.7); font-size: .85rem;
}
.site-footer ul li a:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px; margin: 2.5rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center; font-size: .8rem;
  color: rgba(255,255,255,0.5);
}

/* ── Impressum / Datenschutz sections ───────────────────────── */
.legal-section {
  padding: 4rem 1.5rem;
  max-width: 800px; margin: 0 auto;
}
.legal-section h2 {
  font-size: 2rem; color: var(--heading); margin-bottom: 1.5rem;
}
.legal-section h3 {
  font-size: 1.2rem; color: var(--heading);
  margin-top: 2rem; margin-bottom: .5rem;
}
.legal-section p { margin-bottom: 1rem; color: var(--text-secondary); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 767px) {
  .site-header .container {
    padding: .6rem .75rem;
    gap: .5rem;
    flex-wrap: nowrap;
  }
  .site-logo h1 { font-size: .95rem; }
  .site-logo span { font-size: .6rem; }
  .site-logo .logo-placeholder { width: 34px; height: 34px; font-size: 1rem; }
  .site-nav { display: none; }
  .lang-switch { display: none; }
  .btn-login {
    padding: .45rem .85rem;
    font-size: .8rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .header-actions { gap: .35rem; }

  .hero { padding: 2.5rem .75rem 2rem; }
  .hero h2 { font-size: 1.75rem; }
  .hero p.lead { font-size: .95rem; margin-bottom: 1.5rem; }
  .hero .cta-row { flex-direction: column; align-items: stretch; }
  .hero .cta-row .btn-primary,
  .hero .cta-row .btn-secondary {
    width: 100%; padding: .75rem 1rem; font-size: .9rem;
  }

  /* Slideshow mobile optimization */
  .slideshow {
    margin: 2rem -.75rem 0;
    border-radius: 8px;
    aspect-ratio: 4/3;
  }
  .slide .slide-placeholder .icon { font-size: 2.5rem; }
  .slide .slide-placeholder h3 { font-size: 1.2rem; }
  .slide .slide-placeholder p { font-size: .85rem; padding: 0 1rem; }
  .slide-indicators { bottom: .5rem; }
  .slide-indicators button { width: 8px; height: 8px; }

  .site-footer .container {
    grid-template-columns: 1fr; gap: 1.5rem;
  }
  .pricing-card.featured { transform: none; }
  .features, .pricing, .contact { padding: 3rem 1rem; }
  .section-title h2 { font-size: 1.5rem; }
  .section-title p { font-size: .9rem; }
}
