/* ==========================================================================
   LEISTUNGEN STYLES - digitalinhalt.de
   ========================================================================== */

/* ---------- PAGE HERO ---------- */

.di-leistungen .page-hero {
  position: relative;
  padding: 10rem 2rem 4rem;
  text-align: center;
  overflow: hidden;
  background: var(--bg-primary) !important;
}

.di-leistungen .page-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.di-leistungen .grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.di-leistungen .noise-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.di-leistungen .glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: di-float 8s ease-in-out infinite;
}

.di-leistungen .glow-orb-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.4), transparent 70%);
}

@keyframes di-float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-20px) translateX(10px); }
}

.di-leistungen .page-hero-headline {
  font-family: 'Outfit', sans-serif !important;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-primary) !important;
  line-height: 1.15;
  margin: 0 0 1.5rem;
  position: relative;
}

.di-leistungen .page-hero-sub {
  font-size: 1.2rem;
  color: var(--text-secondary) !important;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* ---------- STICKY SERVICE NAV ---------- */

.di-leistungen .service-nav {
  position: sticky;
  top: 70px;
  z-index: 100;
  background: rgba(6, 6, 15, 0.9) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.8rem 0;
}

.di-leistungen .service-nav ul {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.di-leistungen .service-nav a {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  transition: color 0.3s, background 0.3s;
}

.di-leistungen .service-nav a:hover,
.di-leistungen .service-nav a.active {
  color: var(--text-primary) !important;
  background: rgba(124, 58, 237, 0.15) !important;
}

/* ---------- SERVICE DETAIL SECTIONS ---------- */

.di-leistungen .service-detail {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.di-leistungen .service-detail:last-of-type {
  border-bottom: none;
}

.di-leistungen .service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.di-leistungen .service-detail-reverse .service-detail-grid {
  direction: rtl;
}

.di-leistungen .service-detail-reverse .service-detail-grid > * {
  direction: ltr;
}

.di-leistungen .service-detail-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.di-leistungen .service-detail-content p {
  font-size: 1.05rem;
  color: var(--text-secondary) !important;
  line-height: 1.7;
  margin: 0 0 1rem;
}

/* Feature List */
.di-leistungen .feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.di-leistungen .feature-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-secondary) !important;
}

.di-leistungen .feature-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #06b6d4;
  font-weight: 700;
}

/* Price Badge */
.di-leistungen .service-detail-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--glass) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 12px;
  display: inline-flex;
}

.di-leistungen .price-label {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted) !important;
}

.di-leistungen .price-value {
  font-family: 'Outfit', sans-serif !important;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-main) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.di-leistungen .price-note {
  font-size: 0.8rem;
  color: var(--text-muted) !important;
}

/* ---------- VISUAL CARDS (Rechte Seite) ---------- */

.di-leistungen .service-visual-card {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Audit Mockup */
.di-leistungen .visual-mockup {
  width: 100%;
}

.di-leistungen .mockup-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 1.5rem;
}

.di-leistungen .mockup-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
}

.di-leistungen .mockup-bar span:first-child { background: #f43f5e; }
.di-leistungen .mockup-bar span:nth-child(2) { background: #fbbf24; }
.di-leistungen .mockup-bar span:nth-child(3) { background: #22c55e; }

.di-leistungen .mockup-score {
  text-align: center;
  margin-bottom: 1.5rem;
}

.di-leistungen .score-number {
  font-family: 'Outfit', sans-serif !important;
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient-main) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.di-leistungen .score-label {
  font-size: 1rem;
  color: var(--text-muted) !important;
  margin-left: 0.3rem;
}

.di-leistungen .mockup-bar-item {
  margin-bottom: 0.8rem;
}

.di-leistungen .mockup-bar-item span {
  font-size: 0.8rem;
  color: var(--text-secondary) !important;
  display: block;
  margin-bottom: 0.3rem;
}

.di-leistungen .bar-fill {
  height: 6px;
  width: var(--bar-width, 50%);
  background: var(--gradient-main) !important;
  border-radius: 3px;
}

/* Text Demo */
.di-leistungen .visual-text-demo {
  width: 100%;
}

.di-leistungen .text-demo-label {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f43f5e !important;
  margin-bottom: 0.3rem;
}

.di-leistungen .text-demo-label-after {
  color: #22c55e !important;
}

.di-leistungen .text-demo-before {
  font-size: 0.95rem;
  color: var(--text-muted) !important;
  text-decoration: line-through;
  opacity: 0.6;
}

.di-leistungen .text-demo-arrow {
  text-align: center;
  font-size: 1.5rem;
  color: var(--accent-primary) !important;
  margin: 0.8rem 0;
}

.di-leistungen .text-demo-after {
  font-size: 1.1rem;
  color: var(--text-primary) !important;
  font-weight: 500;
}

/* Blog Preview */
.di-leistungen .blog-preview-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(124, 58, 237, 0.15);
}

.di-leistungen .blog-preview-header-icon {
  font-size: 1rem;
}

.di-leistungen .blog-preview-header-text {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted) !important;
}

.di-leistungen .blog-preview-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 0.6rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02) !important;
  text-decoration: none !important;
  transition: background 0.3s, border-color 0.3s, transform 0.25s;
  cursor: pointer;
}

.di-leistungen .blog-preview-card:last-child {
  margin-bottom: 0;
}

.di-leistungen .blog-preview-card:hover {
  background: rgba(124, 58, 237, 0.08) !important;
  border-color: rgba(124, 58, 237, 0.25);
  transform: translateY(-2px);
}

.di-leistungen .blog-preview-num {
  font-family: 'Outfit', sans-serif !important;
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--gradient-main) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  line-height: 1;
  flex-shrink: 0;
  min-width: 2rem;
  padding-top: 0.15rem;
}

.di-leistungen .blog-preview-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  min-width: 0;
}

.di-leistungen .blog-preview-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #06b6d4 !important;
  background: rgba(6, 182, 212, 0.12) !important;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  font-weight: 600;
}

.di-leistungen .blog-preview-title {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary) !important;
  line-height: 1.4;
  transition: color 0.3s;
}

.di-leistungen .blog-preview-card:hover .blog-preview-title {
  color: #c4b5fd !important;
}

.di-leistungen .blog-preview-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.di-leistungen .blog-preview-meta-item {
  font-size: 0.72rem;
  color: var(--text-muted) !important;
}

.di-leistungen .blog-preview-meta-sep {
  font-size: 0.6rem;
  color: rgba(156, 163, 175, 0.4) !important;
}

.di-leistungen .blog-preview-arrow {
  font-size: 1.1rem;
  color: var(--text-muted) !important;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s, transform 0.3s, color 0.3s;
  padding-top: 0.3rem;
}

.di-leistungen .blog-preview-card:hover .blog-preview-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent-primary) !important;
}

.di-leistungen .blog-preview-empty {
  cursor: default;
  opacity: 0.6;
}

/* Social Feed */
.di-leistungen .social-post {
  padding: 1rem;
  background: rgba(6, 6, 15, 0.5) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 12px;
  margin-bottom: 0.8rem;
}

.di-leistungen .social-post:last-child {
  margin-bottom: 0;
}

.di-leistungen .social-post-header {
  font-size: 0.75rem;
  color: var(--text-muted) !important;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.di-leistungen .social-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0077b5;
  display: inline-block;
}

.di-leistungen .social-dot-ig {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.di-leistungen .social-post-body {
  font-size: 0.9rem;
  color: var(--text-primary) !important;
  margin-bottom: 0.5rem;
}

.di-leistungen .social-post-stats {
  font-size: 0.75rem;
  color: var(--text-muted) !important;
}

/* Product Stack */
.di-leistungen .product-card-mini {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: rgba(6, 6, 15, 0.5) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 10px;
  margin-bottom: 0.6rem;
}

.di-leistungen .product-card-mini:last-child {
  margin-bottom: 0;
}

.di-leistungen .product-img-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--gradient-main) !important;
  opacity: 0.3;
  flex-shrink: 0;
}

.di-leistungen .product-card-mini span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary) !important;
  display: block;
}

.di-leistungen .product-card-mini small {
  font-size: 0.75rem;
  color: var(--text-muted) !important;
  display: block;
}

/* Workflow Visual */
.di-leistungen .visual-workflow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.di-leistungen .workflow-node {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.2rem;
  background: rgba(6, 6, 15, 0.5) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 10px;
  width: 100%;
  max-width: 260px;
}

.di-leistungen .workflow-icon {
  font-size: 1.2rem;
}

.di-leistungen .workflow-node span:last-child {
  font-size: 0.85rem;
  color: var(--text-primary) !important;
}

.di-leistungen .workflow-arrow {
  color: var(--accent-primary) !important;
  font-size: 1.2rem;
}

/* ---------- PRICING (Wiederverwendet von Homepage) ---------- */

.di-leistungen .pricing {
  padding: 6rem 0;
  text-align: center;
  background: var(--bg-secondary) !important;
}

.di-leistungen .pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  text-align: left;
}

.di-leistungen .pricing-card {
  background: var(--glass) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.di-leistungen .pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-violet);
}

.di-leistungen .pricing-featured {
  border: 2px solid transparent !important;
  border-color: transparent !important;
  position: relative;
  z-index: 1;
}

.di-leistungen .pricing-featured::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: var(--gradient-main);
  z-index: -1;
}

/* Deckender Hintergrund ÜBER dem Gradient – verhindert Durchscheinen */
.di-leistungen .pricing-featured::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: #111125 !important;
  z-index: -1;
}

.di-leistungen .pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff !important;
  background: var(--gradient-main) !important;
  padding: 0.3rem 1rem;
  border-radius: 20px;
}

.di-leistungen .pricing-title {
  font-family: 'Outfit', sans-serif !important;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary) !important;
  margin: 0 0 0.3rem;
}

.di-leistungen .pricing-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted) !important;
  margin: 0 0 1.5rem;
}

.di-leistungen .pricing-price {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.di-leistungen .pricing-currency {
  font-size: 1.2rem;
  color: var(--text-muted) !important;
}

.di-leistungen .pricing-amount {
  font-family: 'Outfit', sans-serif !important;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-main) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Hellerer Gradient-Text in der Featured-Karte für bessere Lesbarkeit */
.di-leistungen .pricing-featured .pricing-amount {
  background: linear-gradient(135deg, #c4b5fd, #67e8f9) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.di-leistungen .pricing-period {
  font-size: 0.9rem;
  color: var(--text-muted) !important;
}

.di-leistungen .pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.di-leistungen .pricing-features li {
  padding: 0.5rem 0;
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-secondary) !important;
  border-bottom: 1px solid rgba(124, 58, 237, 0.08);
}

.di-leistungen .pricing-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #06b6d4;
  font-weight: 700;
}

/* ---------- CTA FINAL ---------- */

.di-leistungen .cta-final {
  position: relative;
  padding: 6rem 0;
  text-align: center;
  overflow: hidden;
}

.di-leistungen .cta-final-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.di-leistungen .cta-final-card {
  background: var(--glass) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 24px;
  padding: 4rem 3rem;
  max-width: 700px;
  margin: 0 auto;
}

.di-leistungen .cta-final-headline {
  font-family: 'Outfit', sans-serif !important;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text-primary) !important;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.di-leistungen .cta-final-sub {
  font-size: 1.1rem;
  color: var(--text-secondary) !important;
  margin: 0 0 2rem;
}

.di-leistungen .cta-final-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted) !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1200px) {
  .di-leistungen .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .di-leistungen .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .di-leistungen .service-detail-reverse .service-detail-grid {
    direction: ltr;
  }

  .di-leistungen .service-visual-card {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .di-leistungen .page-hero {
    padding: 8rem 1.5rem 3rem;
  }

  .di-leistungen .service-detail {
    padding: 4rem 0;
  }

  .di-leistungen .service-nav ul {
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .di-leistungen .service-nav a {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
  }

  .di-leistungen .pricing-grid {
    grid-template-columns: 1fr;
  }

  .di-leistungen .cta-final-card {
    padding: 3rem 1.5rem;
  }
}

/* Landing-Page-Links unter Service-Buttons */
body.di-leistungen .service-detail-link {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #7c3aed !important;
  text-decoration: none !important;
  transition: color 0.3s, gap 0.3s;
}

body.di-leistungen .service-detail-link:hover {
  color: #06b6d4 !important;
}
