/* ─── Container ──────────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (max-width: 640px) {
  .container {
    padding: 0 var(--space-4);
  }
}

/* ─── Sections ───────────────────────────────────────────────────────────── */
.section {
  padding: var(--space-24) 0;
}

.section--lg {
  padding: var(--space-32) 0;
}

.section--sm {
  padding: var(--space-16) 0;
}

.section--dark {
  background-color: var(--color-surface-dark);
}

.section--alt {
  background-color: var(--color-surface-2);
}

.section--surface {
  background-color: var(--color-surface);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section__header--left {
  text-align: left;
  margin-bottom: var(--space-10);
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-20) 0;
  }

  .section--lg {
    padding: var(--space-24) 0;
  }

  .section__header {
    margin-bottom: var(--space-8);
  }

  .stat-item {
    padding: var(--space-4) var(--space-8);
  }
}

@media (max-width: 640px) {
  .section {
    padding: var(--space-16) 0;
  }
  .section--lg {
    padding: var(--space-20) 0;
  }
}

/* ─── Hero Background Paths ──────────────────────────────────────────────── */
.hero-paths {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: paint;
}

/* Animationen pausieren wenn Hero außerhalb des Viewports */
.hero-paths.is-paused path {
  animation-play-state: paused;
}

.hero-paths svg {
  width: 100%;
  height: 100%;
  color: #2B7C77;
}

[data-theme="dark"] .hero-paths svg {
  color: #5eead4;
}

@media (prefers-reduced-motion: reduce) {
  .hero-paths { display: none; }
}

@media (max-width: 767px) {
  .hero-paths { display: none; }
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  min-height: calc(100svh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-20) 0 var(--space-16);
  position: relative;
  overflow: hidden;
}

/* Subtle radial gradient behind hero for visual depth */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(
    ellipse at center,
    rgba(43, 124, 119, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .hero::before {
  background: radial-gradient(
    ellipse at center,
    rgba(43, 124, 119, 0.12) 0%,
    transparent 70%
  );
}

.hero__content {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero__badge {
  margin-bottom: var(--space-6);
}

.hero__title {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-5);
}

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

.hero__subtitle {
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 560px;
  margin: 0 auto var(--space-8);
}

.hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .hero__ctas {
    flex-direction: column;
    gap: var(--space-3);
    width: 100%;
  }

  .hero__ctas .btn {
    width: 100%;
    max-width: 320px;
  }

  .hero {
    padding: var(--space-16) 0 var(--space-12);
  }
}

/* ─── Stat Bar ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .stat-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-top: var(--space-10);
  }

  .stat-item {
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .stat-item__value {
    font-size: var(--text-xl);
  }

  .stat-item__label {
    text-align: center;
    margin-top: var(--space-1);
  }
}

/* ─── Problem Grid ───────────────────────────────────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 900px) {
  .problem-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 0 auto;
  }
}

/* ─── Feature Grid ───────────────────────────────────────────────────────── */
/* 6-Spalten-Basis: normale Kacheln span 2 → 3 pro Zeile (3-3-2) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-5);
}

.feature-grid .card {
  grid-column: span 2;
}

/* Letzte 2 Kacheln zentriert (je 1 leere Spalte links/rechts) */
.feature-grid .card:nth-child(7) {
  grid-column: 2 / 4;
}

.feature-grid .card:nth-child(8) {
  grid-column: 4 / 6;
}

@media (max-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid .card,
  .feature-grid .card:nth-child(7),
  .feature-grid .card:nth-child(8) {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin: 0 auto;
  }

  .feature-grid .card {
    width: 100%;
    grid-column: auto;
  }

  .feature-grid .card:nth-child(7),
  .feature-grid .card:nth-child(8) {
    grid-column: auto;
  }
}

@media (max-width: 580px) {
  .feature-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }
}

/* ─── Trust / Check Grid ─────────────────────────────────────────────────── */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  max-width: 660px;
  margin: 0 auto;
}

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

/* ─── Trust section inner layout ─────────────────────────────────────────── */
.trust-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

@media (max-width: 860px) {
  .trust-section__inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
    text-align: center;
  }

  .trust-section__header {
    text-align: center;
  }
}

.trust-section__header .overline {
  color: rgba(93, 214, 207, 0.8);
}

.trust-section__header .section-title {
  color: var(--color-text-on-dark);
}

.trust-section__header .section-subtitle {
  color: rgba(241, 244, 248, 0.65);
  margin: var(--space-4) 0 0;
}

/* ─── Waitlist Section ───────────────────────────────────────────────────── */
.waitlist {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.waitlist__form-wrapper {
  width: 100%;
  max-width: 460px;
  margin-top: var(--space-8);
}

.waitlist__fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.waitlist__submit {
  width: 100%;
  margin-bottom: var(--space-4);
}

/* ─── Footer Layout ──────────────────────────────────────────────────────── */
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ─── Pill Tag Row ───────────────────────────────────────────────────────── */
.pill-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-6);
}

/* ─── Nav Layout ─────────────────────────────────────────────────────────── */
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: var(--nav-height);
}

/* Override nav padding since we use inner wrapper */
.nav {
  padding: 0;
}

@media (max-width: 640px) {
  .nav__inner {
    padding: 0 var(--space-4);
  }
}

/* ─── Utilities ──────────────────────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.mt-auto      { margin-top: auto; }
.mt-4         { margin-top: var(--space-4); }
.mt-6         { margin-top: var(--space-6); }
.mt-8         { margin-top: var(--space-8); }
.mt-10        { margin-top: var(--space-10); }

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Min width on smallest screens ─────────────────────────────────────── */
@media (max-width: 320px) {
  .container {
    padding: 0 var(--space-3);
  }

  .hero__title {
    font-size: var(--text-3xl);
  }

  .section-title {
    font-size: var(--text-2xl);
  }
}
