/* Paketlokale Hero-Styles: deckungsgleich zum App-Hero (ui/src/components/Hero.css) */

/* Blauer Hero-Hintergrund + weißer Text, identisch zu App */
.hero--blue {
  position: relative;
  padding: 120px 0; /* entspricht .hero aus App-Hero.css */
  color: var(--white); /* #ffffff */
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  ); /* var(--primary)=oklch(0.208 0.042 265.755), var(--primary-dark)=#0e3eab */
}

/* Sicherstelle weiße Typo innerhalb des Hero */
.hero--blue h1,
.hero--blue p {
  color: var(--white);
}

/* CTA-Outline-Button: identisch zu .hero .btn-hero-outline in App-Hero.css */
.hero--blue .btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 10px;
  min-height: 48px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.hero--blue .btn-hero-outline:hover,
.hero--blue .btn-hero-outline:focus {
  background: #fff;
  color: #0f1f3a;
}

.hero--blue .btn-hero-outline:active {
  background: #fff;
  color: #0a101d;
}

.hero--blue .btn-hero-outline:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: none;
}

/* Optionale Alias-Klasse für About-CTA (falls genutzt) */
.hero--blue .btn-hero-about {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 10px;
  min-height: 48px;
  padding: 12px 20px;
  font-weight: 700;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.hero--blue .btn-hero-about:hover,
.hero--blue .btn-hero-about:focus-visible {
  background-color: #fff;
  color: #0f1f3a;
}
.hero--blue .btn-hero-about:active {
  background-color: #fff;
  color: #0f1f3a;
}

/*--------------------------------------------------
# Services / Benefits Section
--------------------------------------------------*/
.services {
  padding: 100px 0;
  background-color: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  width: 100%;
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  padding: 40px 30px;
  border-radius: 10px;
  background: #f8f9fa;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary, #0d9488);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 5px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--dark, #2c3e50);
  width: 100%;
}

.service-card p {
  color: var(--gray, #5d6a7d);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Dark Mode */
.dark .services {
  background-color: var(--bg-base-dark-theme);
}

.dark .service-card {
  background: var(--bg-surface-1-dark-theme);
  box-shadow: var(--shadow-md);
}

.dark .service-card:hover {
  box-shadow: var(--shadow-lg);
  background: var(--bg-hover-dark-theme);
}

.dark .service-icon {
  color: var(--primary-light);
}

.dark .service-card h3 {
  color: var(--text-primary-dark-theme);
}

.dark .service-card p {
  color: var(--text-secondary-dark-theme);
}

/*--------------------------------------------------
# How It Works Section
--------------------------------------------------*/
.how-it-works {
  background-color: var(--white, #fff);
  padding: var(--space-xxl, 80px) 0;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg, 24px);
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  align-items: flex-start;
  background-color: var(--light, #f8f9fa);
  border-radius: var(--radius-lg, 10px);
  padding: var(--space-lg, 24px);
  position: relative;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md, 0 10px 20px rgba(0, 0, 0, 0.1));
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 30px;
  width: 2px;
  height: 30px;
  background-color: var(--primary, #0d9488);
}

.step-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary, #0d9488);
  color: var(--white, #fff);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: var(--radius-full, 50%);
  margin-right: var(--space-lg, 24px);
}

.step-content h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs, 8px);
  color: var(--gray-dark, #2c3e50);
}

.step-content p {
  color: var(--gray, #5d6a7d);
  margin: 0;
}

/* Dark Mode */
.dark .how-it-works {
  background-color: var(--bg-base-dark-theme);
}

.dark .how-it-works .section-tag {
  background-color: rgba(var(--primary-rgb), 0.2);
  color: var(--primary-light);
}
.dark .how-it-works .section-header h2 {
  color: var(--text-primary-dark-theme);
}
.dark .how-it-works .section-header p {
  color: var(--text-secondary-dark-theme);
}

.dark .step {
  background-color: var(--bg-surface-1-dark-theme);
  box-shadow: var(--shadow-md);
}

.dark .step:hover {
  box-shadow: var(--shadow-lg);
  background-color: var(--bg-hover-dark-theme);
}

.dark .step:not(:last-child)::after {
  background-color: var(--primary-light);
}

.dark .step-number {
  background-color: var(--primary-light);
  color: var(--bg-base-dark-theme);
}

.dark .step-content h3 {
  color: var(--text-primary-dark-theme);
}

.dark .step-content p {
  color: var(--text-secondary-dark-theme);
}

@media (max-width: 576px) {
  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .step-number {
    margin: 0 0 var(--space-md, 16px);
  }

  .step:not(:last-child)::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/*--------------------------------------------------
# Stats Section
--------------------------------------------------*/
.stats {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
  will-change: transform;
  position: relative;
}

.stat-item:hover,
.stat-item:focus-within {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.stat-item:hover .stat-number {
  color: var(--primary, #0d9488);
  transform: scale(1.05);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
  transition:
    color 200ms ease,
    transform 200ms ease;
}

.stat-label {
  font-size: 1rem;
  color: #7f8c8d;
}

/* Dark Mode */
.dark .stats {
  background-color: var(--bg-base-dark-theme);
}

.dark .stats .section-header h2 {
  color: var(--text-primary-dark-theme);
}
.dark .stats .section-header p {
  color: var(--text-secondary-dark-theme);
}

.dark .stat-item {
  background: var(--bg-surface-1-dark-theme);
  box-shadow: var(--shadow-lg);
}

.dark .stat-number {
  color: var(--primary-light);
}

.dark .stat-label {
  color: var(--text-secondary-dark-theme);
}

/*--------------------------------------------------
# CTA Section
--------------------------------------------------*/
.cta {
  background-color: var(--primary, #0d9488);
  padding: var(--space-xxl, 80px) 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(13, 148, 136, 0.9) 0%,
    rgba(0, 195, 182, 0.9) 100%
  );
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white, #fff);
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md, 16px);
  color: var(--white, #fff);
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: var(--space-xl, 32px);
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md, 16px);
}

@media (max-width: 992px) {
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 576px) {
  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: 1rem;
  }
}

.cta .btn-light {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.15);
  border: 2px solid #fff;
}
.cta .btn-light:hover {
  background-color: #fff;
  color: var(--primary, #0d9488);
}

/*--------------------------------------------------
# Animations (no IntersectionObserver needed)
--------------------------------------------------*/
.animate-card {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.animate-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.animate-list-item {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

.delay-0 {
  animation-delay: 0s;
}
.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}
.delay-3 {
  animation-delay: 0.6s;
}
.delay-4 {
  animation-delay: 0.8s;
}
.delay-5 {
  animation-delay: 1s;
}

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

@media (prefers-reduced-motion: reduce) {
  .animate-fade-in,
  .animate-card,
  .animate-list-item {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
