/* ============================================
   LEISTUNGEN PAGE STYLES
   ============================================ */

/* Service Hero */
.service-hero {
  position: relative;
  padding-top: calc(var(--header-height) + var(--space-16));
  padding-bottom: var(--space-20);
  background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 100%);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 0;
}

.service-hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  text-align: center;
  margin: 0 auto;
}

.service-hero__label {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.service-hero__title {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-4);
  color: white;
}

.service-hero__text {
  font-size: var(--text-xl);
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-6);
}

/* Services Bento Grid */
.services-bento {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .services-bento {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-bento {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Service Tile */
.service-tile {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--surface-card);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
}

.service-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.service-tile--large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.service-tile--wide {
  grid-column: span 2;
}

.service-tile__image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.service-tile__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slower);
}

.service-tile:hover .service-tile__image img {
  transform: scale(1.05);
}

.service-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  z-index: 1;
}

.service-tile__content {
  position: relative;
  z-index: 2;
  padding: var(--space-5);
  color: white;
}

.service-tile__badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  background: var(--color-urgent);
  color: white;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.service-tile__icon {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
}

.service-tile__icon i {
  width: 32px;
  height: 32px;
}

.service-tile__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.service-tile--large .service-tile__title {
  font-size: var(--text-2xl);
}

.service-tile__text {
  font-size: var(--text-sm);
  opacity: 0.9;
  display: none;
}

.service-tile--large .service-tile__text,
.service-tile--wide .service-tile__text {
  display: block;
}

.service-tile__arrow {
  display: inline-flex;
  align-items: center;
  margin-left: var(--space-1);
  transition: transform var(--transition-fast);
}

.service-tile__arrow i {
  width: 20px;
  height: 20px;
}

.service-tile:hover .service-tile__arrow {
  transform: translateX(4px);
}

/* CTA Banner - EXAKT WIE REGION PAGES */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  padding: var(--space-12);
  border-radius: var(--radius-2xl);
  text-align: center;
  box-shadow: var(--shadow-2xl);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 60%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: 0;
}

.cta-banner * {
  position: relative;
  z-index: 1;
}

.cta-banner__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
  color: white;
}

.cta-banner__text {
  font-size: var(--text-lg);
  opacity: 0.95;
  margin-bottom: var(--space-6);
  max-width: 600px;
  margin-inline: auto;
  color: white;
}

/* Features Grid */
.cta-features {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto var(--space-8) auto;
}

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

@media (min-width: 1024px) {
  .cta-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  text-align: left;
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.cta-feature:hover {
  background: rgba(255, 255, 255, 0.15);
}

.cta-feature__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.cta-feature__icon i {
  width: 20px;
  height: 20px;
}

.cta-feature span {
  color: white;
  line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cta-banner {
    padding: var(--space-10);
  }

  .cta-banner__title {
    font-size: var(--text-2xl);
  }

  .cta-banner__text {
    font-size: var(--text-base);
  }

  .cta-features {
    gap: var(--space-3);
  }

  .cta-feature {
    padding: var(--space-2) var(--space-3);
  }
}

@media (max-width: 480px) {
  .service-hero__title {
    font-size: var(--text-3xl);
  }

  .service-hero__text {
    font-size: var(--text-base);
  }
}