/* ============================================================
   PAGE-INDEX.CSS (MODERN & EINHEITLICH)
   ------------------------------------------------------------
   Spezifische Stile für die Startseite.
   Fokus: ruhige Typografie, klare Abstände, dezente Flächen,
   hochwertige Karten, saubere Hover-/Focus-States.
============================================================ */

:root {
  --home-max-width: 980px;
  --home-padding-x: 1.25rem;

  --home-hero-padding-top: 4.25rem;
  --home-hero-padding-bottom: 4.5rem;

  --home-title-size: clamp(2.1rem, 3.2vw, 3rem);
  --home-lead-size: clamp(1.05rem, 1.2vw, 1.25rem);

  --home-grid-gap: 1.25rem;
  --home-card-radius: 18px;
  --home-border: var(--border-color);

  --home-surface: color-mix(in srgb, var(--background) 96%, #000 4%);
  --home-surface-2: color-mix(in srgb, var(--background) 92%, #000 8%);
}

/* 1) Hero
   ------------------------------------------------------------ */
.hero {
  background: var(--background);
  padding: var(--home-hero-padding-top) var(--home-padding-x) var(--home-hero-padding-bottom);
  text-align: center;
}

.hero h1 {
  font-size: var(--home-title-size);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 auto 1rem;
  color: var(--foreground);
  max-width: 820px;
}

.hero p {
  font-size: var(--home-lead-size);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 2.25rem;
  line-height: 1.65;
}

.hero .hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  background-color: var(--accent);
  color: var(--btn-text);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;

  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  text-decoration: none;

  border: 1px solid color-mix(in srgb, var(--accent) 70%, #000 30%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.hero .hero-btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.hero .hero-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.hero .hero-btn:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 3px;
}

/* 2) Feature Section
   ------------------------------------------------------------ */
.feature-section {
  background: var(--background);
  padding: 0 var(--home-padding-x) 4.5rem;
}

.feature-grid {
  max-width: var(--home-max-width);
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-grid-gap);
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.feature-card {
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  border-radius: var(--home-card-radius);
  padding: 1.6rem;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.04),
    0 10px 30px rgba(0, 0, 0, 0.06);

  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.04),
    0 18px 42px rgba(0, 0, 0, 0.10);
  border-color: color-mix(in srgb, var(--home-border) 70%, #000 30%);
}

.feature-card .icon-wrapper {
  margin-bottom: 1rem;
  background-color: color-mix(in srgb, var(--accent) 88%, #000 12%);
  color: var(--btn-text);

  width: 46px;
  height: 46px;
  border-radius: 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid color-mix(in srgb, var(--accent) 70%, #000 30%);
}

.feature-card .icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.feature-card h2 {
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  color: var(--foreground);
}

.feature-card p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* 3) Testimonial Section
   ------------------------------------------------------------ */
.testimonial-section {
  background: var(--home-surface-2);
  border-top: 1px solid var(--home-border);
  border-bottom: 1px solid var(--home-border);
  padding: 4.5rem var(--home-padding-x);
}

.testimonial-section h2 {
  text-align: center;
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 2.5rem;
  color: var(--foreground);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 820px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.testimonial-card {
  background: var(--background);
  border: 1px solid var(--home-border);
  border-radius: var(--home-card-radius);
  padding: 1.6rem;
  position: relative;
}

.testimonial-card blockquote {
  margin: 0;
  font-size: 1rem;
  font-style: normal;
  color: var(--foreground);
  line-height: 1.7;
  padding-left: 2.1rem;
}

.testimonial-card blockquote::before {
  content: "“";
  font-size: 3.25rem;
  position: absolute;
  left: 1rem;
  top: 0.6rem;
  color: color-mix(in srgb, var(--accent) 85%, var(--foreground) 15%);
  line-height: 1;
}

.testimonial-card cite {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.95rem;
  font-style: normal;
  color: var(--text-secondary);
  padding-left: 2.1rem;
}

/* 4) CTA Section
   ------------------------------------------------------------ */
.cta-section {
  background: var(--accent);
  padding: 4.75rem var(--home-padding-x);
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #ffffff;
  max-width: 720px;
  margin: 0 auto 1.25rem;
}

.cta-section p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 680px;
  margin: 0 auto 2.25rem;
  line-height: 1.65;
}

.cta-section .cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  background: #ffffff;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;

  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  text-decoration: none;

  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.10);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-section .cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.cta-section .cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.cta-section .cta-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* 5) Responsive Feinschliff
   ------------------------------------------------------------ */
@media (max-width: 480px) {
  :root {
    --home-padding-x: 1rem;
    --home-hero-padding-top: 3.75rem;
    --home-hero-padding-bottom: 4rem;
    --home-grid-gap: 1rem;
  }

  .feature-card,
  .testimonial-card {
    padding: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .hero-btn,
  .feature-card,
  .cta-section .cta-btn {
    transition: none;
  }
  .hero .hero-btn:hover,
  .feature-card:hover,
  .cta-section .cta-btn:hover {
    transform: none;
  }
}
