/* Enhanced Branchenlösungen Section */

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

/* Decorative Background Elements */
.section-branchen::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatSlow 20s ease-in-out infinite;
}

.section-branchen::after {
  content: '';
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatSlow 25s ease-in-out infinite reverse;
}

@keyframes floatSlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

/* Enhanced Section Header */
.section-branchen .section-head {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 2;
}

.section-branchen .section-head h2 {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  background: linear-gradient(135deg, #003d7a 0%, #0066cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-branchen .section-head h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #ffd700, #ffed4e);
  border-radius: 2px;
}

.section-branchen .section-head p {
  font-size: 20px;
  color: #6c757d;
  max-width: 700px;
  margin: 20px auto 0;
}

/* Modern Branch Grid */
.branch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

/* Enhanced Branch Cards */
.branch-card {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  height: 500px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.branch-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Card Background Image */
.branch-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s;
}

.branch-card:hover .branch-bg {
  transform: scale(1.1);
}

/* Modern Gradient Overlay */
.branch-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 26, 51, 0.95) 100%
  );
  transition: opacity 0.4s;
}

.branch-card:hover .branch-gradient {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.3) 30%,
    rgba(0, 26, 51, 0.98) 100%
  );
}

/* Enhanced Content */
.branch-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  color: #ffffff;
  transform: translateY(20px);
  transition: transform 0.4s;
}

.branch-card:hover .branch-content {
  transform: translateY(0);
}

/* Modern Icon Design */
.branch-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.9), rgba(255, 237, 78, 0.9));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
  transition: all 0.4s;
}

.branch-card:hover .branch-icon {
  transform: rotate(-10deg) scale(1.1);
  box-shadow: 0 12px 32px rgba(255, 215, 0, 0.4);
}

.branch-content h3 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #ffffff;
}

.branch-content > p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 20px;
}

/* Feature List with Icons */
.branch-features {
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
}

.branch-features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  animation: fadeInLeft 0.5s forwards;
}

.branch-card:hover .branch-features li {
  opacity: 1;
}

.branch-features li:nth-child(1) { animation-delay: 0.1s; }
.branch-features li:nth-child(2) { animation-delay: 0.2s; }
.branch-features li:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.branch-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #ffd700;
  font-weight: 700;
}

/* Modern CTA Button */
.branch-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
  transform: translateY(10px);
  opacity: 0;
}

.branch-card:hover .branch-cta {
  transform: translateY(0);
  opacity: 1;
  animation-delay: 0.3s;
}

.branch-cta:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.5);
  transform: translateX(5px);
}

/* Industry Tags */
.branch-tags {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.branch-tag {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #003d7a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Stats Overlay */
.branch-stats {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s;
}

.branch-card:hover .branch-stats {
  opacity: 1;
  transform: translateY(0);
}

.branch-stats-number {
  font-size: 24px;
  font-weight: 700;
  color: #003d7a;
  line-height: 1;
}

.branch-stats-label {
  font-size: 11px;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Call to Action Section */
.branches-cta-section {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, #003d7a, #0066cc);
  border-radius: 24px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.branches-cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.branches-cta-section h3 {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px;
  position: relative;
  z-index: 1;
}

.branches-cta-section p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 32px;
  position: relative;
  z-index: 1;
}

.branches-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #003d7a;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
}

.branches-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255, 215, 0, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .branch-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .branch-card {
    height: 450px;
  }
  
  .branch-content {
    padding: 30px 25px;
  }
  
  .branches-cta-section {
    padding: 40px 20px;
  }
  
  .branches-cta-section h3 {
    font-size: 24px;
  }
}