/* Branchenlösungen nach Maß Section */

.section-branchen {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Background Pattern */
.section-branchen::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 150%;
  background: radial-gradient(circle, rgba(253, 195, 0, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

/* Section Header */
.branchen-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.branchen-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0a1628;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.branchen-header .subtitle {
  font-size: 1.125rem;
  color: #6c757d;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Industry Grid */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Industry Card - Reduced height for fine-tuning */
.industry-card {
  background: white;
  border-radius: 16px;
  padding: 30px 25px; /* Reduced padding for less height */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.industry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #fdc300 0%, #ffdb4d 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.industry-card:hover::before {
  transform: scaleX(1);
}

.industry-card:hover {
  transform: translateY(-4px); /* Less dramatic lift */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Industry Icon - Clean modern style, ready for replacement */
.industry-icon {
  width: 56px; /* Smaller icon for less height */
  height: 56px;
  background: linear-gradient(135deg, #fdc300 0%, #ffdb4d 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem; /* Smaller icon size */
  position: relative;
  /* Ready for custom icon replacement */
}

/* For custom SVG or image icons - Add this class when replacing emoji with images */
.industry-icon img,
.industry-icon svg {
  width: 28px;
  height: 28px;
  filter: brightness(0) saturate(100%);
  /* Makes icons dark to contrast with yellow background */
}

.industry-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #fdc300 0%, #ffdb4d 100%);
  border-radius: 16px;
  opacity: 0.2;
  z-index: -1;
  transition: all 0.3s ease;
}

.industry-card:hover .industry-icon::after {
  inset: -8px;
  opacity: 0.3;
}

/* Industry Content - Optimized spacing */
.industry-card h3 {
  font-size: 1.25rem; /* Slightly smaller */
  font-weight: 700;
  color: #0a1628;
  margin-bottom: 12px;
  line-height: 1.2;
}

.industry-card p {
  font-size: 0.95rem; /* Slightly smaller */
  color: #6c757d;
  line-height: 1.5;
  margin-bottom: 18px;
}

/* Industry Features - Compact list */
.industry-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0; /* Less bottom margin */
}

.industry-features li {
  position: relative;
  padding-left: 20px; /* Less padding */
  margin-bottom: 8px; /* Tighter spacing */
  font-size: 0.9rem; /* Smaller text */
  color: #495057;
  line-height: 1.4;
}

.industry-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #fdc300;
  font-weight: bold;
  font-size: 1rem;
}

/* Learn More Link */
.industry-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fdc300;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.industry-link:hover {
  gap: 12px;
  color: #e5ae00;
}

.industry-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.industry-link:hover svg {
  transform: translateX(4px);
}

/* CTA Section */
.branchen-cta {
  text-align: center;
  margin-top: 60px;
  padding: 50px 40px;
  background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 100%);
  border-radius: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
}

.branchen-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -25%;
  width: 50%;
  height: 200%;
  background: radial-gradient(circle, rgba(253, 195, 0, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.branchen-cta h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.branchen-cta p {
  font-size: 1.125rem;
  color: #bed3ea;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.cta-btn-primary {
  background: linear-gradient(135deg, #fdc300 0%, #ffdb4d 100%);
  color: #0a1628;
}

.cta-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(253, 195, 0, 0.4);
}

.cta-btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.industry-card {
  animation: fadeInUp 0.6s ease backwards;
}

.industry-card:nth-child(1) { animation-delay: 0.1s; }
.industry-card:nth-child(2) { animation-delay: 0.2s; }
.industry-card:nth-child(3) { animation-delay: 0.3s; }
.industry-card:nth-child(4) { animation-delay: 0.4s; }
.industry-card:nth-child(5) { animation-delay: 0.5s; }
.industry-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 1024px) {
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .section-branchen {
    padding: 60px 0;
  }
  
  .branchen-header h2 {
    font-size: 2rem;
  }
  
  .industry-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 500px;
  }
  
  .industry-card {
    padding: 30px 25px;
  }
  
  .branchen-cta {
    padding: 40px 30px;
    border-radius: 16px;
  }
  
  .branchen-cta h3 {
    font-size: 1.75rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .branchen-header h2 {
    font-size: 1.75rem;
  }
  
  .branchen-header .subtitle {
    font-size: 1rem;
  }
  
  .industry-card {
    padding: 25px 20px;
  }
  
  .industry-card h3 {
    font-size: 1.25rem;
  }
  
  .industry-card p {
    font-size: 0.95rem;
  }
  
  .branchen-cta {
    padding: 30px 20px;
  }
  
  .branchen-cta h3 {
    font-size: 1.5rem;
  }
  
  .branchen-cta p {
    font-size: 1rem;
  }
}