/* Using standardized color palette from base.css */

/* Section Layout */
#leistungen {
  padding: 4rem 2rem;
  background: var(--neutral-light);
  font-family: "Segoe UI", Roboto, sans-serif;
  color: var(--neutral-darker);
}

/* Container */
.leistungen-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* Header */
.leistungen-header {
  text-align: center;
}

.leistungen-header h2 {
  color: var(--primary-color);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  letter-spacing: -0.02em;
}

.leistungen-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: var(--accent-color);
  border-radius: 3px;
}

.leistungen-subtitle {
  font-size: 1.3rem;
  color: var(--neutral-dark);
  margin: 0;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

/* Grid Layout - Full Width Categories */
.leistungen-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Category Cards - Full Width */
.leistungen-category {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 10px 40px var(--primary-alpha-10);
  border: 2px solid var(--primary-alpha-10);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.leistungen-category:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px var(--primary-alpha-20);
  border-color: var(--primary-color);
}

/* Category Header with Background Images */
.category-header {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 2rem 1.5rem 2rem;
  position: relative;
  min-height: 80px;
}

/* Background Images with Overlay for Headers */
.leistungen-category:nth-child(1) .category-header {
  background-image:
    linear-gradient(135deg, var(--primary-alpha-90) 0%, var(--primary-alpha-90) 100%),
    url('beratung.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.leistungen-category:nth-child(2) .category-header {
  background-image:
    linear-gradient(135deg, var(--primary-alpha-90) 0%, var(--primary-alpha-90) 100%),
    url('mittel.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.leistungen-category:nth-child(3) .category-header,
.leistungen-category:nth-child(4) .category-header {
  background: var(--gradient-primary);
}

.category-title h3 {
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 4px var(--black-alpha-50);
}

.category-title p {
  color: var(--white-alpha-90);
  font-size: 1rem;
  margin: 0;
  font-weight: 500;
  text-shadow: 0 1px 2px var(--black-alpha-50);
}

/* Services List - Clean White Background */
.services-list {
  background: var(--white);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Service Items - Clean List Style */
.service-item {
  padding: 1.5rem 2rem;
  background: var(--neutral-light);
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
  position: relative;
}

.service-item:hover {
  background: var(--white);
  border-left-color: var(--accent-color);
  box-shadow: 0 6px 20px var(--primary-alpha-10);
  transform: translateX(6px);
}

.service-item h4 {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.service-item:hover h4 {
  color: var(--accent-color);
}

.service-item p {
  color: var(--neutral-darker);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  font-weight: 400;
}

/* Add service count indicator */
/* .services-list::before {
  content: attr(data-count) " Leistungen";
  display: block;
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--bg-light);
} */

/* Responsive Design */
@media (max-width: 768px) {
  #leistungen {
    padding: 3rem 1.5rem;
  }
  
  .leistungen-header h2 {
    font-size: 2.2rem;
  }
  
  .leistungen-subtitle {
    font-size: 1.1rem;
  }
  
  .leistungen-grid {
    gap: 2rem;
  }
  
  .category-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    min-height: 70px;
  }
  
  .category-title h3 {
    font-size: 1.5rem;
  }
  
  .services-list {
    padding: 1.5rem;
  }
  
  .service-item {
    padding: 1.25rem 1.5rem;
  }
  
  .service-item h4 {
    font-size: 1.1rem;
  }
}

/* Animation for service items */
.service-item {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.service-item:nth-child(2) { animation-delay: 0.1s; }
.service-item:nth-child(3) { animation-delay: 0.15s; }
.service-item:nth-child(4) { animation-delay: 0.2s; }
.service-item:nth-child(5) { animation-delay: 0.25s; }
.service-item:nth-child(6) { animation-delay: 0.3s; }
.service-item:nth-child(7) { animation-delay: 0.35s; }
.service-item:nth-child(8) { animation-delay: 0.4s; }
.service-item:nth-child(9) { animation-delay: 0.45s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced hover effects */
.leistungen-category:hover .category-title h3 {
  color: var(--accent-color);
  transition: color 0.3s ease;
}

/* Bold typography emphasis */
.leistungen-header h2 {
  text-shadow: 0 2px 4px var(--primary-alpha-10);
}

.category-title h3 {
  text-shadow: 0 2px 4px var(--black-alpha-50);
}

/* Service item numbering for better scanning */
/* .service-item::before {
  content: "●";
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0.75rem;
  top: 1.7rem;
  font-size: 1rem;
}

.service-item:hover::before {
  color: var(--accent-color);
} */

.service-item h4 {
  margin-left: 0.75rem;
}

.service-item p {
  margin-left: 0.75rem;
}
