/* Modern Service Cards Styles - Optimized Version */

/* Override für den alten weißen Hintergrund */
.intro .services {
  background: transparent !important;
  box-shadow: none !important;
}

:root {
  --service-azure: #0dadea;
  --service-azure-light: #e0f4fc;
  --service-infra: #00a99d;
  --service-infra-light: #e0f7f5;
  --service-ki: #2463eb;
  --service-ki-light: #e0e9fc;
  --service-security: #C65A6F;
  --service-security-light: #fce8ec;
  
  --shadow-azure: 0 8px 32px -8px rgba(13, 173, 234, 0.35);
  --shadow-infra: 0 8px 32px -8px rgba(0, 169, 157, 0.35);
  --shadow-ki: 0 8px 32px -8px rgba(36, 99, 235, 0.35);
  --shadow-security: 0 8px 32px -8px rgba(198, 90, 111, 0.35);
}

/* Optimierter Services Container */
.intro .services.services-anchors {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -o-box-sizing: border-box;
  box-sizing: border-box;
  background: transparent;
  border-radius: 16px;
  position: absolute;
  bottom: -30px;
  left: 50%;
  max-width: 1400px;
  width: calc(100% - 60px);
  z-index: 2;
  -webkit-transform: translate3d(-50%, 0, 0);
  transform: translate3d(-50%, 0, 0);
  overflow: visible;
}

.intro .services.services-anchors ul {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -o-box-sizing: border-box;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  overflow: visible;
}

.intro .services.services-anchors li {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -o-box-sizing: border-box;
  box-sizing: border-box;
  position: relative;
  overflow: visible;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.intro .services.services-anchors li:last-child {
  border-right: none;
}

/* Border-Radius für erste und letzte Kachel damit sie zum Container passen */
.intro .services.services-anchors li:first-child {
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
  overflow: hidden;
}

.intro .services.services-anchors li:last-child {
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
  overflow: hidden;
}

.intro .services.services-anchors li:first-child a {
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}

.intro .services.services-anchors li:last-child a {
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

.intro .services.services-anchors li a {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -o-box-sizing: border-box;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: row;
  color: #282828;
  padding: 24px 32px 24px 24px;
  position: relative;
  text-decoration: none;
  height: 100%;
  min-height: 132px;
}

/* Gradient Overlay on Hover */
.intro .services.services-anchors li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.intro .services.services-anchors li:nth-child(1)::before {
  background: linear-gradient(135deg, rgba(13, 173, 234, 0.06) 0%, transparent 100%);
}

.intro .services.services-anchors li:nth-child(2)::before {
  background: linear-gradient(135deg, rgba(0, 169, 157, 0.06) 0%, transparent 100%);
}

.intro .services.services-anchors li:nth-child(3)::before {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.06) 0%, transparent 100%);
}

.intro .services.services-anchors li:nth-child(4)::before {
  background: linear-gradient(135deg, rgba(198, 90, 111, 0.06) 0%, transparent 100%);
}

/* Top Accent Line */
.intro .services.services-anchors li::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
  z-index: 10;
  pointer-events: none;
}

.intro .services.services-anchors li:nth-child(1)::after {
  background: var(--service-azure);
  border-top-left-radius: 16px;
}

.intro .services.services-anchors li:nth-child(2)::after {
  background: var(--service-infra);
}

.intro .services.services-anchors li:nth-child(3)::after {
  background: var(--service-ki);
}

.intro .services.services-anchors li:nth-child(4)::after {
  background: var(--service-security);
  border-top-right-radius: 16px;
}

/* Hover Effects */
.intro .services.services-anchors li:hover {
  transform: translateY(-8px);
  z-index: 3;
}

/* Keine Abdunkelung der anderen Kacheln beim Hover */
.intro .services.services-anchors ul:hover li {
  opacity: 1;
}

.intro .services.services-anchors ul:hover li:hover {
  opacity: 1;
}

.intro .services.services-anchors li:hover::before {
  opacity: 1;
}

.intro .services.services-anchors li:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.intro .services.services-anchors li:nth-child(1):hover {
  box-shadow: var(--shadow-azure);
}

.intro .services.services-anchors li:nth-child(2):hover {
  box-shadow: var(--shadow-infra);
}

.intro .services.services-anchors li:nth-child(3):hover {
  box-shadow: var(--shadow-ki);
}

.intro .services.services-anchors li:nth-child(4):hover {
  box-shadow: var(--shadow-security);
}

/* Icon Container */
.intro .services.services-anchors li .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-right: 20px;
  height: 56px;
  width: 56px;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  will-change: transform;
  opacity: 1;
  visibility: visible;
}

.intro .services.services-anchors li:hover .icon {
  transform: scale(1.08) rotate(3deg);
}

.intro .services.services-anchors li .icon.one {
  background: url("../img/icons/azurecloud.webp") center no-repeat var(--service-azure-light);
  background-size: 32px auto;
}

.intro .services.services-anchors li .icon.two {
  background: url("../img/icons/server.svg") center no-repeat var(--service-infra-light);
  background-size: 32px auto;
}

.intro .services.services-anchors li .icon.three {
  background: url("../img/icons/openai.webp") center no-repeat var(--service-ki-light);
  background-size: 32px auto;
}

.intro .services.services-anchors li .icon.four {
  background: url("../img/icons/itsecurity.svg") center no-repeat var(--service-security-light);
  background-size: 32px auto;
}

/* Text Styles */
.intro .services.services-anchors li .text-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 2;
  flex: 1;
  text-align: left;
}

.intro .services.services-anchors li p {
  margin: 0;
  line-height: 1.3;
  text-align: left;
}

.intro .services.services-anchors li p.title {
  font-size: 18px;
  font-weight: 600;
  color: #1a2030;
  text-align: left;
}

.intro .services.services-anchors li p.subtitle {
  font-size: 16px;
  font-weight: 400;
  color: #64748b;
  text-align: left;
  text-transform: none;
}

/* Mehr erfahren Link */
.intro .services.services-anchors li .service-link {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.intro .services.services-anchors li:hover .service-link {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.intro .services.services-anchors li:nth-child(1) .service-link {
  color: var(--service-azure);
}

.intro .services.services-anchors li:nth-child(2) .service-link {
  color: var(--service-infra);
}

.intro .services.services-anchors li:nth-child(3) .service-link {
  color: var(--service-ki);
}

.intro .services.services-anchors li:nth-child(4) .service-link {
  color: var(--service-security);
}

.intro .services.services-anchors li .service-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.intro .services.services-anchors li:hover .service-link svg {
  transform: translateX(4px);
}

/* Arrow Indicator removed - not needed */

/* Responsive Design */
@media screen and (max-width: 1200px) {
  .intro .services.services-anchors ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .intro .services.services-anchors li:nth-child(2n) {
    border-right: none;
  }
  
  .intro .services.services-anchors li:nth-child(n+3) {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
}

@media screen and (max-width: 992px) {
  .intro .services.services-anchors ul {
    grid-template-columns: 1fr;
  }
  
  .intro .services.services-anchors li {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  
  .intro .services.services-anchors li:last-child {
    border-bottom: none;
  }
  
  .intro .services.services-anchors li:nth-child(n+3) {
    border-top: none;
  }
}

@media screen and (max-width: 799px) {
  .intro .services.services-anchors {
    bottom: 0;
    width: calc(100% - 60px);
    -webkit-transform: translate3d(-50%, 25%, 0);
    transform: translate3d(-50%, 25%, 0);
  }
  
  .intro .services.services-anchors ul {
    padding: 16px;
  }
  
  .intro .services.services-anchors li a {
    padding: 20px 16px 20px 16px;
    min-height: 100px;
  }
  
  .intro .services.services-anchors li .icon {
    height: 48px;
    width: 48px;
    margin-right: 16px;
  }
  
  .intro .services.services-anchors li .icon.one {
    background: url("../img/icons/azurecloud.webp") center no-repeat var(--service-azure-light);
    background-size: 28px auto;
  }
  
  .intro .services.services-anchors li .icon.two {
    background: url("../img/icons/server.svg") center no-repeat var(--service-infra-light);
    background-size: 28px auto;
  }
  
  .intro .services.services-anchors li .icon.three {
    background: url("../img/icons/openai.webp") center no-repeat var(--service-ki-light);
    background-size: 28px auto;
  }
  
  .intro .services.services-anchors li .icon.four {
    background: url("../img/icons/itsecurity.svg") center no-repeat var(--service-security-light);
    background-size: 28px auto;
  }
  
  .intro .services.services-anchors li p.title {
    font-size: 1em;
  }
  
  .intro .services.services-anchors li p.subtitle {
    font-size: 0.813em;
  }
  
  .intro .services.services-anchors li .service-link {
    font-size: 13px;
    margin-top: 8px;
  }
  
  .intro .services.services-anchors ul:hover li {
    opacity: 1;
  }
}

