/* assets/style.css */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #4F46E5;
  --primary-light: #6366F1;
  --primary-dark: #4338CA;
  --accent: #06B6D4;
  --accent-light: #22D3EE;
  --bg: #0A0E1A;
  --bg-card: #131829;
  --bg-elevated: #1A1F2E;
  --border: #252B3D;
  --text: #E8EAF0;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --success: #10B981;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 16px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}
.logo-text {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  color: white;
  font-size: 16px;
}
@media (max-width: 768px) {
  .logo-img { height: 30px; }
  .logo-text { font-size: 16px; }
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

.lang-switcher {
  display: flex;
  gap: 4px;
  margin-left: 16px;
  border-left: 1px solid var(--border);
  padding-left: 16px;
}
.lang-switcher a {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
}
.lang-switcher a.active {
  background: var(--primary);
  color: white;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 65px; right: -100%;
    flex-direction: column;
    background: var(--bg-elevated);
    width: 280px;
    height: calc(100vh - 65px);
    padding: 32px 24px;
    gap: 20px;
    align-items: flex-start;
    transition: right 0.3s;
    border-left: 1px solid var(--border);
  }
  .nav-links.open { right: 0; }
  .mobile-toggle { display: block; }
  .lang-switcher { border-left: none; padding-left: 0; margin-left: 0; }
}

/* === HERO === */
.hero {
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 1200px; height: 1200px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* === 3D MODULE NETWORK (Three.js Canvas) ===
   Liegt als Layer ÜBER dem Radial-Glow, aber UNTER allen sichtbaren UI-Elementen.
   Auf Mobile etwas reduzierter Opacity, damit Text gut lesbar bleibt. */
.ac-hero-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease-out;
  z-index: 1;
  /* Smooth Fade-in nach Three.js-Init */
  animation: ac-canvasFadeIn 1.6s ease-out 0.3s forwards;
}
@keyframes ac-canvasFadeIn {
  to { opacity: 0.85; }
}
@media (max-width: 768px) {
  @keyframes ac-canvasFadeIn {
    to { opacity: 0.55; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .ac-hero-canvas { animation: none; opacity: 0.6; transition: none; }
}

/* Tower-Canvas (loesungen.php): rechts vom linksbündigen Hero-Text
   damit Title/Subtitle nicht im Weg sind */
.ac-tower-canvas {
  /* Tower-Effekt soll deutlich sichtbar sein – höhere Endopacity */
  animation: ac-towerFadeIn 1.6s ease-out 0.3s forwards;
}
@keyframes ac-towerFadeIn {
  to { opacity: 1; }
}
@media (min-width: 900px) {
  /* Auf Desktop: Canvas nur in der rechten Hälfte sichtbar */
  .ac-tower-canvas {
    left: auto;
    right: 0;
    width: 55%;
  }
}
@media (max-width: 899px) {
  /* Auf Tablet/Mobile: Canvas voll, niedrigere Opacity weil hinter Text */
  @keyframes ac-towerFadeIn {
    to { opacity: 0.55; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .ac-tower-canvas { animation: none; opacity: 0.7; }
}

/* Stelle sicher, dass der hero-detail--secondary genug Höhe hat für den Tower */
.hero-detail.hero-detail--secondary {
  min-height: 420px;
}
@media (max-width: 899px) {
  .hero-detail.hero-detail--secondary {
    min-height: 360px;
  }
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  z-index: 2;
}
.hero-badge {
  display: inline-block;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.3);
  color: var(--primary-light);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 1000px; height: 700px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at center,
    rgba(99, 102, 241, 0.45) 0%,
    rgba(79, 70, 229, 0.28) 22%,
    rgba(34, 211, 238, 0.15) 45%,
    rgba(34, 211, 238, 0.05) 65%,
    transparent 80%);
  filter: blur(20px);
}

.hero-orbit {
  position: absolute;
  top: 50%; left: 50%;
  width: 700px; height: 700px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}
.hero-orbit::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.hero-orbit::after {
  content: '';
  position: absolute;
  inset: 80px;
  border-radius: 50%;
  border: 1px dashed rgba(99, 102, 241, 0.18);
}
.hero-orbit .orbit {
  position: absolute;
  inset: 0;
  animation: heroOrbitRotate 60s linear infinite;
  will-change: transform;
}
.hero-orbit .orbit__planet {
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary-light);
  box-shadow:
    0 0 12px rgba(99, 102, 241, 0.85),
    0 0 28px rgba(99, 102, 241, 0.4);
}
.hero-orbit .orbit__planet:nth-child(2) {
  width: 14px; height: 14px;
  background: var(--accent);
  box-shadow:
    0 0 16px rgba(34, 211, 238, 0.85),
    0 0 34px rgba(34, 211, 238, 0.4);
}
.hero-orbit .orbit__planet:nth-child(3) { width: 8px; height: 8px; }
.hero-orbit .orbit__planet:nth-child(5) {
  width: 12px; height: 12px;
  background: var(--accent-light);
  box-shadow:
    0 0 14px rgba(34, 211, 238, 0.75),
    0 0 30px rgba(34, 211, 238, 0.35);
}
.hero-orbit .orbit__planet:nth-child(6) { width: 9px; height: 9px; }

@keyframes heroOrbitRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-orbit .orbit { animation: none; }
}
@media (max-width: 768px) {
  .hero-orbit {
    width: 500px; height: 500px;
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0.7;
  }
  .hero-glow { width: 600px; height: 500px; }
}

/* Detail-Hero */
.hero-detail { padding: 140px 0 60px; }
.hero-detail .hero-inner { text-align: left; max-width: 1280px; z-index: 2; }
.hero-detail h1 { font-size: clamp(32px, 5vw, 48px); }
.hero-detail .hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 720px;
  margin-left: 0;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }

/* === BUTTONS === */
.btn {
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
}
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--primary); background: var(--bg-card); }

/* === STATS === */
.stats {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.stat-label { color: var(--text-muted); font-size: 14px; }

/* === SECTIONS === */
section { padding: 100px 0; }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-eyebrow {
  color: var(--primary-light);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-head p { color: var(--text-muted); font-size: 17px; }

/* === FEATURES BENTO === */
.features-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  position: relative;
  background: linear-gradient(135deg, rgba(19, 24, 41, 0.95), rgba(26, 31, 46, 0.85));
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 24px;
  padding: 36px;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s ease,
              box-shadow 0.5s ease;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 20px 50px -15px rgba(79, 70, 229, 0.4);
}
.feature-card:nth-child(1) { grid-column: 1 / span 2; }
.feature-card:nth-child(2) { grid-column: 3; }
.feature-card:nth-child(3) { grid-column: 1; }
.feature-card:nth-child(4) { grid-column: 2; }
.feature-card:nth-child(5) { grid-column: 3; }

.feature-head h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.3;
}
.feature-large .feature-head h3 { font-size: 26px; }
.feature-head p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 28px;
}
.feature-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.viz-workflow { flex-direction: column; gap: 32px; width: 100%; }
.workflow-header { display: flex; align-items: center; gap: 16px; width: 100%; }
.workflow-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--border), transparent);
}
.workflow-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.workflow-icons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  width: 100%;
}
.workflow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.workflow-icon {
  width: 56px; height: 56px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  transition: all 0.3s;
}
.workflow-item:hover .workflow-icon {
  transform: translateY(-3px);
  border-color: var(--primary);
  color: var(--accent-light);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}
.workflow-item span {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.3;
  font-weight: 500;
}

.viz-chat {
  flex-direction: column;
  gap: 14px;
  width: 100%;
  align-items: stretch;
  justify-content: flex-end;
}
.chat-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.chat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.chat-row span { color: var(--text-muted); font-size: 13px; flex: 1; }
.chat-generate {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  white-space: nowrap;
  cursor: pointer;
}
.chat-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.chat-tag {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.chat-actions { display: flex; gap: 8px; }
.chat-action {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.chat-action.send {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
}
.chat-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.chat-tags span {
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  padding: 4px 11px;
  border-radius: 100px;
}

.viz-orbit { position: relative; width: 100%; height: 200px; }
.viz-orbit::before {
  content: '';
  position: absolute;
  inset: 8% 4%;
  border: 1px dashed rgba(99, 102, 241, 0.18);
  border-radius: 16px;
  pointer-events: none;
}
.orbit-center {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
  z-index: 2;
}
.orbit-tag {
  position: absolute;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.orbit-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--primary-light);
  border-radius: 50%;
  display: inline-block;
}
.orbit-tag.tl { top: 18%; left: 10%; }
.orbit-tag.tr { top: 18%; right: 10%; }
.orbit-tag.bl { bottom: 18%; left: 10%; }
.orbit-tag.br { bottom: 18%; right: 10%; }

.viz-langs {
  position: relative;
  width: 100%;
  flex-direction: column;
  justify-content: center;
}
.viz-langs::before,
.viz-langs::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(99, 102, 241, 0.18);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.viz-langs::before { width: 220px; height: 220px; }
.viz-langs::after  { width: 320px; height: 320px; }
.lang-grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 8px;
  position: relative;
  z-index: 1;
  justify-content: center;
}
.lang-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 12px;
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 500;
}
.lang-pill .flag { font-size: 14px; line-height: 1; }

@media (max-width: 968px) {
  .features-bento { grid-template-columns: 1fr; }
  .feature-card:nth-child(1),
  .feature-card:nth-child(2),
  .feature-card:nth-child(3),
  .feature-card:nth-child(4),
  .feature-card:nth-child(5) { grid-column: 1; }
  .feature-card { min-height: 320px; }
  .orbit-tag.tl, .orbit-tag.bl { left: 4%; }
  .orbit-tag.tr, .orbit-tag.br { right: 4%; }
}
@media (max-width: 600px) {
  .feature-card { padding: 28px 22px; }
  .workflow-icons { gap: 6px; }
  .workflow-icon { width: 44px; height: 44px; }
  .workflow-item span { font-size: 10px; }
  .lang-grid { grid-template-columns: repeat(3, 1fr); width: 100%; }
}

/* === GRIDS (Branchen + Lösungen) === */
.branches-grid, .products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.products-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.branch-card, .product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}
.product-card { padding: 32px; }
.branch-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s;
}
.branch-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.branch-card:hover::before { opacity: 1; }
.product-card:hover { border-color: var(--accent); transform: translateY(-4px); }

.branch-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.product-icon {
  width: 48px; height: 48px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.branch-card h3, .product-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.branch-card p, .product-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}
.branch-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.branch-tag {
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary-light);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}
.product-features { list-style: none; }
.product-features li {
  font-size: 13px;
  color: var(--text);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.product-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

/* === COMPARE === */
.compare-section {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
}
.compare-section .container {
  position: relative;
  z-index: 2;
}
.compare-circuit {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(200px, 22%, 380px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
  overflow: hidden;
}
.compare-circuit-left { left: 0; }
.compare-circuit-right {
  right: 0;
  transform: scaleX(-1);
}

/* Brücken-Linie zwischen Problem- und Compare-Section */
.flow-link-bridge {
  position: relative;
  width: 100%;
  height: 200px;
  pointer-events: none;
  overflow: visible;
  margin-bottom: -100px;
  z-index: 3;
}
.flow-link-bridge svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

@media (max-width: 968px) {
  .compare-circuit,
  .flow-link-bridge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .compare-circuit circle,
  .flow-link-bridge circle { animation: none; }
  .compare-circuit .cc-flow-dots circle { opacity: 0 !important; }
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  position: relative;
}
.compare-grid::before {
  content: '';
  position: absolute;
  top: 50%; right: -10%;
  transform: translateY(-50%);
  width: 70%; height: 110%;
  background: radial-gradient(ellipse at center, rgba(79, 70, 229, 0.12) 0%, rgba(6, 182, 212, 0.06) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}
@media (max-width: 768px) {
  .compare-grid { grid-template-columns: 1fr; gap: 20px; }
  .compare-grid::before { display: none; }
}
.compare-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.4s ease;
}
.compare-before {
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(19, 24, 41, 0.6) 100%);
}
.compare-after {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.05),
    0 20px 60px -20px rgba(79, 70, 229, 0.35),
    0 8px 24px -8px rgba(6, 182, 212, 0.2);
}
.compare-after::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.6), rgba(34, 211, 238, 0.6), transparent);
  pointer-events: none;
}
.compare-after:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.15),
    0 30px 80px -20px rgba(79, 70, 229, 0.5),
    0 12px 30px -8px rgba(6, 182, 212, 0.3);
}
.compare-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.compare-before .compare-tag {
  background: var(--bg-elevated);
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.compare-after .compare-tag {
  background: rgba(79, 70, 229, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.compare-col h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.compare-before h3 { color: var(--text-muted); }
.compare-after h3 {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.compare-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.compare-col li {
  position: relative;
  padding: 4px 0 4px 36px;
  line-height: 1.55;
  font-size: 15px;
}
.compare-col li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 22px; height: 22px;
  border-radius: 50%;
}
.compare-col li::after {
  position: absolute;
  left: 0; top: 6px;
  width: 22px; height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  line-height: 1;
}
.compare-before li { color: var(--text-dim); }
.compare-before li::before {
  background: var(--bg-elevated);
  border: 1px dashed var(--border);
}
.compare-before li::after {
  content: '\00d7';
  color: var(--text-dim);
  font-size: 14px;
}
.compare-after li { color: var(--text); }
.compare-after li::before {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}
.compare-after li::after {
  content: '\2713';
  color: white;
  font-size: 13px;
}
@media (max-width: 600px) {
  .compare-col { padding: 28px 24px; border-radius: 16px; }
  .compare-col h3 { margin-bottom: 20px; }
}

/* === WARUM BENTO === */
.warum-section {
  position: relative;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 50%, var(--bg) 100%);
  overflow: hidden;
}
.warum-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}
.warum-bento {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  position: relative;
  z-index: 2;
}
.bento-card {
  position: relative;
  background: linear-gradient(135deg, rgba(19, 24, 41, 0.95), rgba(26, 31, 46, 0.85));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 24px;
  padding: 36px;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s ease,
              box-shadow 0.5s ease;
  display: flex;
  flex-direction: column;
  min-height: 260px;
}
.bento-card:nth-child(1) { grid-column: 1 / span 2; grid-row: 1; }
.bento-card:nth-child(2) { grid-column: 3;          grid-row: 1; }
.bento-card:nth-child(3) { grid-column: 1;          grid-row: 2; }
.bento-card:nth-child(4) { grid-column: 2 / span 2; grid-row: 2; }

.bento-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.6), rgba(34, 211, 238, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}
.bento-card::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.18), transparent 60%);
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
  z-index: 1;
}
.bento-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow:
    0 20px 50px -15px rgba(79, 70, 229, 0.4),
    0 10px 25px -10px rgba(6, 182, 212, 0.2);
}
.bento-card:hover::before { opacity: 1; }
.bento-card:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.4);
}
.bento-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
}
.bento-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(0.95) contrast(1.05);
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.bento-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(19, 24, 41, 0.72) 0%,
    rgba(19, 24, 41, 0.4) 45%,
    rgba(26, 31, 46, 0.78) 100%);
}
.bento-card:hover .bento-bg img {
  opacity: 0.7;
  transform: scale(1.06);
}
.bento-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.bento-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 22px;
  box-shadow:
    0 8px 20px rgba(79, 70, 229, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.4s ease;
  flex-shrink: 0;
}
.bento-card:hover .bento-icon {
  transform: scale(1.08) rotate(-4deg);
}
.bento-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-light);
  margin-bottom: 10px;
}
.bento-card h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text);
}
.bento-large h3 { font-size: 26px; }
.bento-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0;
}
.bento-large p { font-size: 15.5px; }
.bento-stat {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: auto;
  padding-top: 28px;
}
.bento-stat-num {
  font-size: 56px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  letter-spacing: -0.03em;
}
.bento-stat-label {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
@media (max-width: 968px) {
  .warum-bento { grid-template-columns: 1fr; }
  .bento-card:nth-child(1),
  .bento-card:nth-child(2),
  .bento-card:nth-child(3),
  .bento-card:nth-child(4) {
    grid-column: 1;
    grid-row: auto;
  }
  .bento-card { min-height: 220px; padding: 28px; }
  .bento-large h3 { font-size: 22px; }
  .bento-stat-num { font-size: 42px; }
}

/* === CONTENT-BLOCKS (Branchen-/Lösungs-Detailseiten) === */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}
.content-block:nth-child(even) { direction: rtl; }
.content-block:nth-child(even) > * { direction: ltr; }
@media (max-width: 768px) {
  .content-block { grid-template-columns: 1fr; gap: 32px; }
  .content-block:nth-child(even) { direction: ltr; }
}
.content-text h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.content-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 16px;
}
.content-text ul { list-style: none; margin-top: 16px; }
.content-text ul li {
  padding: 10px 0 10px 30px;
  position: relative;
  color: var(--text);
}
.content-text ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 18px; height: 18px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
}
.content-text ul li::after {
  content: '✓';
  position: absolute;
  left: 4px; top: 11px;
  color: white;
  font-size: 12px;
  font-weight: 800;
}
.content-visual {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.content-visual::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}
.content-visual-text { position: relative; color: white; }
.content-visual-text .big {
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
}
.content-visual-text .label { font-size: 14px; opacity: 0.9; }

/* Bild-Variante: wenn ein <img> drin ist, Gradient/Padding entfernen und Bild ins Bildformat setzen */
.content-visual:has(> img),
.content-visual:has(> .content-visual-img) {
  background: none;
  padding: 0;
  border: none;
  min-height: 0;
  aspect-ratio: 4 / 3;
  width: 92%;
  margin-left: auto;
  border-radius: 20px;
  overflow: hidden;
}
.content-visual:has(> img)::before,
.content-visual:has(> .content-visual-img)::before {
  display: none;
}
.content-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === PROZESS === */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  position: relative;
}

/* Verbindungslinie zwischen den nummerierten Kreisen */
.process-grid::before {
  content: '';
  position: absolute;
  top: 52px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 1.5px;
  background: linear-gradient(90deg,
    rgba(99, 102, 241, 0.15) 0%,
    rgba(99, 102, 241, 0.55) 22%,
    rgba(34, 211, 238, 0.65) 50%,
    rgba(99, 102, 241, 0.55) 78%,
    rgba(99, 102, 241, 0.15) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Wandernder Cyan-Punkt von links nach rechts (läuft genau einmal beim Scroll-Eintritt) */
.process-grid::after {
  content: '';
  position: absolute;
  top: 46px;
  left: calc(12.5% + 28px);
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #22D3EE;
  box-shadow:
    0 0 8px rgba(34, 211, 238, 0.9),
    0 0 18px rgba(34, 211, 238, 0.5);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: processDotMove 5s linear 1 forwards;
  animation-play-state: paused;
}

.process-grid.in-view::after {
  animation-play-state: running;
}

@keyframes processDotMove {
  0%   { left: calc(12.5% + 28px); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: calc(87.5% - 28px); opacity: 0; }
}

/* Jeder Kreis leuchtet einmalig auf, wenn der wandernde Punkt seine Position erreicht */
.process-grid.in-view .process-step:nth-child(1) .process-num {
  animation: processNumFlash 1.6s ease-out 0s 1 forwards;
}
.process-grid.in-view .process-step:nth-child(2) .process-num {
  animation: processNumFlash 1.6s ease-out 1.1s 1 forwards;
}
.process-grid.in-view .process-step:nth-child(3) .process-num {
  animation: processNumFlash 1.6s ease-out 2.8s 1 forwards;
}
.process-grid.in-view .process-step:nth-child(4) .process-num {
  animation: processNumFlash 1.6s ease-out 4.4s 1 forwards;
}

@keyframes processNumFlash {
  0%   {
    border-color: var(--primary);
    box-shadow: 0 0 0 rgba(34, 211, 238, 0);
    transform: scale(1);
  }
  35%  {
    border-color: var(--accent);
    box-shadow:
      0 0 18px rgba(34, 211, 238, 0.9),
      0 0 36px rgba(34, 211, 238, 0.45);
    transform: scale(1.07);
  }
  100% {
    border-color: var(--primary);
    box-shadow: 0 0 0 rgba(34, 211, 238, 0);
    transform: scale(1);
  }
}

.process-step {
  text-align: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}
.process-num {
  width: 56px; height: 56px;
  background: var(--bg-card);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-light);
  margin: 0 auto 20px;
}
.process-step h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.process-step p { color: var(--text-muted); font-size: 14px; }

/* Linie auf schmalen Screens ausblenden, wenn die Kreise nicht mehr nebeneinander stehen */
@media (max-width: 968px) {
  .process-grid::before,
  .process-grid::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .process-grid::after { animation: none; opacity: 0.6; }
}

/* === ABLAUF SEITE === */

/* Timeline */
.ablauf-timeline-section { padding: 80px 0; }
.ablauf-timeline {
  position: relative;
  max-width: 820px;
  margin: 60px auto 0;
  padding-left: 30px;
}
.ablauf-timeline::before {
  content: '';
  position: absolute;
  left: 25px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg,
    rgba(99,102,241,0.15) 0%,
    rgba(99,102,241,0.55) 15%,
    rgba(34,211,238,0.55) 50%,
    rgba(99,102,241,0.55) 85%,
    rgba(99,102,241,0.15) 100%);
}

/* Wandernder Cyan-Punkt entlang der Timeline (läuft einmal beim Scroll-Eintritt) */
.ablauf-timeline.in-view::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 12px;
  margin-top: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22D3EE;
  box-shadow:
    0 0 8px rgba(34, 211, 238, 0.95),
    0 0 18px rgba(34, 211, 238, 0.55);
  pointer-events: none;
  z-index: 1;
  animation: ablaufDotMove 6s ease-in-out 1 forwards;
}

@keyframes ablaufDotMove {
  0%   { top: 12px; opacity: 0; }
  3%   { opacity: 1; }
  97%  { opacity: 1; }
  100% { top: calc(100% - 12px); opacity: 0; }
}

/* Flash-Animation für die Kreise – wird zeitlich passend zum Punkt-Durchlauf gestartet */
@keyframes ablaufNumFlash {
  0%   {
    box-shadow: 0 0 0 6px var(--bg), 0 4px 16px rgba(99, 102, 241, 0.4);
    transform: scale(1);
  }
  35%  {
    box-shadow:
      0 0 0 6px var(--bg),
      0 0 24px rgba(34, 211, 238, 0.95),
      0 0 48px rgba(34, 211, 238, 0.5);
    transform: scale(1.12);
  }
  100% {
    box-shadow: 0 0 0 6px var(--bg), 0 4px 16px rgba(99, 102, 241, 0.4);
    transform: scale(1);
  }
}

.ablauf-timeline.in-view .ablauf-step:nth-child(1) .ablauf-step-num { animation: ablaufNumFlash 1.6s ease-out 0s 1 forwards; }
.ablauf-timeline.in-view .ablauf-step:nth-child(2) .ablauf-step-num { animation: ablaufNumFlash 1.6s ease-out 0.44s 1 forwards; }
.ablauf-timeline.in-view .ablauf-step:nth-child(3) .ablauf-step-num { animation: ablaufNumFlash 1.6s ease-out 1.44s 1 forwards; }
.ablauf-timeline.in-view .ablauf-step:nth-child(4) .ablauf-step-num { animation: ablaufNumFlash 1.6s ease-out 2.44s 1 forwards; }
.ablauf-timeline.in-view .ablauf-step:nth-child(5) .ablauf-step-num { animation: ablaufNumFlash 1.6s ease-out 3.44s 1 forwards; }
.ablauf-timeline.in-view .ablauf-step:nth-child(6) .ablauf-step-num { animation: ablaufNumFlash 1.6s ease-out 4.44s 1 forwards; }
.ablauf-step {
  position: relative;
  display: flex;
  gap: 28px;
  padding-bottom: 48px;
}
.ablauf-step:last-child { padding-bottom: 0; }
.ablauf-step-marker {
  position: absolute;
  left: -30px;
  top: 0;
  z-index: 2;
}
.ablauf-step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 0 0 6px var(--bg), 0 4px 16px rgba(99,102,241,0.4);
}
.ablauf-step-content {
  flex: 1;
  margin-left: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.ablauf-step-content:hover {
  border-color: rgba(99,102,241,0.45);
  transform: translateY(-2px);
}
.ablauf-step-time {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(34,211,238,0.10);
  border: 1px solid rgba(34,211,238,0.25);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.ablauf-step-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.ablauf-step-content > p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 14px;
}
.ablauf-step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ablauf-step-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-muted);
}
.ablauf-step-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(34,211,238,0.6);
}

/* Includes Section */
.ablauf-includes-section {
  padding: 80px 0;
  background: var(--bg-card);
}
.ablauf-includes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 50px;
}
.ablauf-include {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  /* Initial state: hidden + offset, fades in beim Scroll */
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.ablauf-includes-section.in-view .ablauf-include {
  opacity: 1;
  transform: translateY(0);
}
.ablauf-includes-section.in-view .ablauf-include:nth-child(1) { transition-delay: 0.0s, 0.0s, 0s, 0s; }
.ablauf-includes-section.in-view .ablauf-include:nth-child(2) { transition-delay: 0.10s, 0.10s, 0s, 0s; }
.ablauf-includes-section.in-view .ablauf-include:nth-child(3) { transition-delay: 0.20s, 0.20s, 0s, 0s; }
.ablauf-includes-section.in-view .ablauf-include:nth-child(4) { transition-delay: 0.30s, 0.30s, 0s, 0s; }
.ablauf-includes-section.in-view .ablauf-include:nth-child(5) { transition-delay: 0.40s, 0.40s, 0s, 0s; }
.ablauf-includes-section.in-view .ablauf-include:nth-child(6) { transition-delay: 0.50s, 0.50s, 0s, 0s; }
.ablauf-include:hover {
  border-color: rgba(99,102,241,0.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.18);
}
.ablauf-include-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(34,211,238,0.18));
  border: 1px solid rgba(99,102,241,0.30);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  /* Magnet-Effekt: weiches Folgen */
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.ablauf-include:hover .ablauf-include-icon {
  background: linear-gradient(135deg, rgba(99,102,241,0.30), rgba(34,211,238,0.30));
  border-color: rgba(34,211,238,0.55);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.3);
}
.ablauf-include h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.ablauf-include p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Garantien */
.ablauf-guarantees-section { padding: 80px 0; }
.ablauf-guarantees {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 50px;
}
.ablauf-guarantee {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  /* Initial state: hidden + scaled down */
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ablauf-guarantees-section.in-view .ablauf-guarantee {
  opacity: 1;
  transform: scale(1);
}
.ablauf-guarantees-section.in-view .ablauf-guarantee:nth-child(1) { transition-delay: 0.00s; }
.ablauf-guarantees-section.in-view .ablauf-guarantee:nth-child(2) { transition-delay: 0.15s; }
.ablauf-guarantees-section.in-view .ablauf-guarantee:nth-child(3) { transition-delay: 0.30s; }
.ablauf-guarantees-section.in-view .ablauf-guarantee:nth-child(4) { transition-delay: 0.45s; }
.ablauf-guarantee-num {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}
.ablauf-guarantee h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.ablauf-guarantee p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* FAQ */
.ablauf-faq-section {
  padding: 80px 0;
  background: var(--bg-card);
}
.ablauf-faq {
  max-width: 820px;
  margin: 50px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ablauf-faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.ablauf-faq-item[open] {
  border-color: rgba(99,102,241,0.45);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.18);
  background: rgba(99, 102, 241, 0.04);
}
.ablauf-faq-item[open] p {
  animation: faqSlideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes faqSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ablauf-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ablauf-faq-item summary::-webkit-details-marker { display: none; }
.ablauf-faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.ablauf-faq-item[open] summary::after {
  content: '−';
}
.ablauf-faq-item p {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 768px) {
  .ablauf-timeline { padding-left: 20px; }
  .ablauf-timeline::before { left: 18px; }
  .ablauf-timeline.in-view::after { left: 13px; }
  .ablauf-step-marker { left: -22px; }
  .ablauf-step-num { width: 44px; height: 44px; font-size: 17px; }
  .ablauf-step-content { margin-left: 38px; padding: 20px; }
  .ablauf-step-content h3 { font-size: 19px; }
}

/* Reduced-motion: alle Ablauf-Animationen ausschalten */
@media (prefers-reduced-motion: reduce) {
  .ablauf-timeline.in-view::after { animation: none; opacity: 0.5; top: 50%; }
  .ablauf-timeline.in-view .ablauf-step-num { animation: none; }
  .ablauf-include,
  .ablauf-guarantee {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .ablauf-faq-item[open] p { animation: none; }
}

/* === COOKIE-BANNER (DSGVO + Google Consent Mode v2) === */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 16px;
  padding: 24px 26px;
  z-index: 9999;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 30px rgba(99, 102, 241, 0.15);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
  pointer-events: none;
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text);
}
.cookie-banner p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 18px 0;
}
.cookie-banner p a {
  color: var(--accent);
  text-decoration: underline;
}
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-banner-actions .btn {
  flex: 1;
  min-width: 140px;
  text-align: center;
  justify-content: center;
}
@media (max-width: 600px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 20px 18px; border-radius: 14px; }
  .cookie-banner-actions .btn { min-width: 100%; flex: 1 1 100%; }
}

/* Cookie-Modal (Detail-Einstellungen) */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal.show { display: flex; }
.cookie-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}
.cookie-modal-inner {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}
.cookie-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.cookie-modal-head h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.cookie-modal-close:hover { color: var(--text); }
.cookie-modal-inner > p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 22px 0;
}

.cookie-cat {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.cookie-cat:hover { border-color: rgba(99, 102, 241, 0.4); }
.cookie-cat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.cookie-cat-head strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.cookie-cat p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}
.cookie-cat-locked {
  color: var(--success, #10B981);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Toggle-Switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  transition: background 0.25s ease;
}
.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.25s ease;
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(18px);
}

.cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.cookie-modal-actions .btn {
  flex: 1;
  justify-content: center;
}

/* === GLOBAL: Reading Progress Bar === */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 1000;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.55);
  transition: width 0.05s linear;
}
@media (prefers-reduced-motion: reduce) {
  .reading-progress { display: none; }
}

/* === 404 SEITE === */
.error-404-section .error-code {
  font-size: clamp(120px, 20vw, 220px);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
  text-shadow: 0 0 80px rgba(99, 102, 241, 0.25);
}

.error-popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 40px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.error-popular-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.error-popular-card:hover {
  border-color: rgba(99, 102, 241, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.18);
}

.error-popular-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.20), rgba(34, 211, 238, 0.20));
  border: 1px solid rgba(99, 102, 241, 0.30);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.error-popular-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.error-popular-card p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
}

/* === KONTAKT SEITE === */
.kontakt-options-section { padding: 80px 0 40px; }
.kontakt-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 50px;
}
.kontakt-option {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 26px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.kontakt-option:hover {
  border-color: rgba(99, 102, 241, 0.55);
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(99, 102, 241, 0.18);
}
.kontakt-option.kontakt-option-info {
  cursor: default;
}
.kontakt-option.kontakt-option-info:hover {
  transform: none;
  box-shadow: none;
}
.kontakt-option-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.20), rgba(34, 211, 238, 0.20));
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.kontakt-option h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.kontakt-option p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 14px;
}
.kontakt-option-value {
  display: inline-block;
  font-weight: 600;
  font-size: 15px;
  color: var(--accent);
  border-bottom: 1px solid rgba(34, 211, 238, 0.4);
  padding-bottom: 2px;
}
.kontakt-option.kontakt-option-info .kontakt-option-value {
  border-bottom: none;
  color: var(--text);
}

.kontakt-promise-section { padding: 30px 0 60px; }
.kontakt-promise {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 24px;
}
.kontakt-promise-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kontakt-promise-num {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kontakt-promise-label {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

/* === KONTAKT / FORM === */
.contact { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 100%); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
.contact-info h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 16px;
}
.contact-list { margin-top: 32px; }
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.contact-icon {
  width: 44px; height: 44px;
  background: rgba(79, 70, 229, 0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-light);
  flex-shrink: 0;
}
.contact-item .l {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.contact-item .v {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.form-field textarea { resize: vertical; min-height: 100px; }
.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
@media (max-width: 600px) { .checkbox-group { grid-template-columns: 1fr; } }
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}
.checkbox-item:hover { border-color: var(--primary); }
.checkbox-item input { width: auto; }
.form-submit { width: 100%; margin-top: 8px; justify-content: center; }
.form-note {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 12px;
  text-align: center;
}
.form-message {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: none;
  font-size: 14px;
}
.form-message.show { display: block; }
.form-message.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success);
}
.form-success-main {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 10px;
}
.form-success-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}
.form-success-hint svg {
  margin-top: 2px;
  color: var(--success);
}
.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* === CTA-BLOCK === */
.cta-block {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  margin: 60px 0;
}
.cta-block h2 {
  color: white;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}
.cta-block p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-block .btn-primary { background: white; color: var(--primary); }
.cta-block .btn-primary:hover {
  background: var(--text);
  transform: translateY(-2px);
}

/* === LEGAL/CARD (Impressum, Datenschutz, AGB) === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}
.card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}
.card p { color: var(--text-muted); }
.card a { color: var(--primary-light); text-decoration: none; }
.card a:hover { color: var(--accent); }

/* === FOOTER === */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 12px;
  max-width: 300px;
}
.footer h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: var(--text);
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer ul a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-dim);
  font-size: 13px;
}
.footer-bottom a { color: var(--text-muted); text-decoration: none; }

/* === ANIMATIONEN === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === LÖSUNGEN SECTION (Neun Werkzeuge) — EFFEKTE === */
.loesungen-section {
  position: relative;
  overflow: hidden;
}

.loesungen-section .container {
  position: relative;
  z-index: 2;
}

/* Glow background */
.loesungen-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1100px;
  height: 700px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
    rgba(99, 102, 241, 0.40) 0%,
    rgba(34, 211, 238, 0.25) 25%,
    rgba(99, 102, 241, 0.10) 55%,
    transparent 80%);
  filter: blur(25px);
  pointer-events: none;
  z-index: 0;
}

/* Orbital rings */
.loesungen-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1200px;
  height: 1200px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.loesungen-orbit .ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.loesungen-orbit .ring-1 {
  width: 460px;
  height: 460px;
  border: 1px solid rgba(99, 102, 241, 0.30);
}

.loesungen-orbit .ring-2 {
  width: 760px;
  height: 760px;
  border: 1px dashed rgba(34, 211, 238, 0.22);
}

.loesungen-orbit .ring-3 {
  width: 1080px;
  height: 1080px;
  border: 1px solid rgba(99, 102, 241, 0.12);
}

/* Pulsing sparks */
.loesungen-orbit .spark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-light);
  box-shadow:
    0 0 18px rgba(99, 102, 241, 1),
    0 0 36px rgba(99, 102, 241, 0.5);
  animation: sparkPulse 4s ease-in-out infinite;
}

.loesungen-orbit .spark-1 {
  transform: translate(-230px, 0);
  animation-delay: 0s;
}
.loesungen-orbit .spark-2 {
  transform: translate(230px, 0);
  background: var(--accent);
  box-shadow: 0 0 18px rgba(34, 211, 238, 1), 0 0 36px rgba(34, 211, 238, 0.5);
  animation-delay: 1s;
}
.loesungen-orbit .spark-3 {
  transform: translate(-380px, -380px);
  width: 8px;
  height: 8px;
  animation-delay: 2s;
}
.loesungen-orbit .spark-4 {
  transform: translate(380px, 380px);
  width: 8px;
  height: 8px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.9), 0 0 32px rgba(34, 211, 238, 0.4);
  animation-delay: 3s;
}

@keyframes sparkPulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .loesungen-orbit .spark { animation: none; opacity: 0.8; }
}

@media (max-width: 768px) {
  .loesungen-glow { width: 600px; height: 500px; }
  .loesungen-orbit { width: 700px; height: 700px; }
  .loesungen-orbit .ring-1 { width: 320px; height: 320px; }
  .loesungen-orbit .ring-2 { width: 500px; height: 500px; }
  .loesungen-orbit .ring-3 { display: none; }
  .loesungen-orbit .spark-1 { transform: translate(-160px, 0); }
  .loesungen-orbit .spark-2 { transform: translate(160px, 0); }
  .loesungen-orbit .spark-3,
  .loesungen-orbit .spark-4 { display: none; }
}

/* === WORKFLOW DIAGRAM (Lucien-Style) === */
.workflow-section {
  position: relative;
  overflow: hidden;
  padding: 100px 0 120px;
  background: var(--bg-card);
}
.workflow-section .container {
  position: relative;
  z-index: 2;
}
.workflow-glow {
  position: absolute;
  top: 60%;
  left: 50%;
  width: 1100px;
  height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
    rgba(99, 102, 241, 0.40) 0%,
    rgba(34, 211, 238, 0.25) 25%,
    rgba(99, 102, 241, 0.10) 50%,
    transparent 75%);
  filter: blur(45px);
  pointer-events: none;
  z-index: 0;
}

.workflow-diagram {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 600px;
  margin: 40px auto 0;
}

.workflow-paths {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Pills */
.workflow-pills-left,
.workflow-pills-right {
  position: absolute;
  top: 0;
  height: 100%;
  width: 240px;
  z-index: 2;
}
.workflow-pills-left { left: 40px; }
.workflow-pills-right { right: 40px; }

.wf-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: rgba(19, 24, 41, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(99, 102, 241, 0.30);
  border-radius: 100px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.workflow-pills-left .wf-pill { left: 0; }
.workflow-pills-right .wf-pill { right: 0; }

.workflow-pills-left .wf-pill:nth-child(1),
.workflow-pills-right .wf-pill:nth-child(1) { top: 65px; }
.workflow-pills-left .wf-pill:nth-child(2),
.workflow-pills-right .wf-pill:nth-child(2) { top: 205px; }
.workflow-pills-left .wf-pill:nth-child(3),
.workflow-pills-right .wf-pill:nth-child(3) { top: 365px; }
.workflow-pills-left .wf-pill:nth-child(4),
.workflow-pills-right .wf-pill:nth-child(4) { top: 505px; }

.wf-pill svg { flex-shrink: 0; color: var(--primary-light); }
.workflow-pills-right .wf-pill svg { color: var(--accent); }

.workflow-pills-left .wf-pill:hover {
  transform: translateX(8px);
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow:
    0 8px 24px rgba(99, 102, 241, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.workflow-pills-right .wf-pill:hover {
  transform: translateX(-8px);
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow:
    0 8px 24px rgba(34, 211, 238, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Center: 3 Boxen direkt nebeneinander mit kleinem Gap, SVG-Pfad geht durch */
.workflow-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 3;
}

.wf-box-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Boxen voll opak, damit SVG-Pfad/Punkt dahinter unsichtbar wird */
.wf-box {
  width: 72px;
  height: 72px;
  background: var(--bg-card);
  border: 1.5px solid rgba(99, 102, 241, 0.55);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.15),
    0 0 22px rgba(99, 102, 241, 0.30),
    0 0 50px rgba(99, 102, 241, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.wf-box-main {
  width: 200px;
  height: 72px;
  flex-direction: row;
  gap: 8px;
  padding: 0 14px;
}

.wf-mini {
  width: 50px;
  height: 50px;
  background: rgba(10, 14, 26, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.30);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  flex-shrink: 0;
}

.wf-label {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'Courier New', ui-monospace, monospace;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .workflow-paths circle { display: none; }
}

/* Mobile */
@media (max-width: 968px) {
  .workflow-diagram {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
  }
  .workflow-paths { display: none; }

  .workflow-pills-left,
  .workflow-pills-right {
    position: static;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 0 8px;
  }

  .wf-pill {
    position: static;
    justify-content: center;
  }
  .workflow-pills-left .wf-pill,
  .workflow-pills-right .wf-pill {
    top: auto; left: auto; right: auto;
  }

  .workflow-center {
    position: static;
    transform: none;
    gap: 32px;
  }
  .wf-box-main { width: 170px; }
  .wf-mini { width: 44px; height: 44px; }

  .wf-label {
    font-size: 11px;
    top: calc(100% + 16px);
  }
}

@media (max-width: 600px) {
  .workflow-diagram { gap: 70px; }

  .workflow-center {
    flex-direction: column;
    gap: 50px;
  }

  .wf-box { width: 64px; height: 64px; }
  .wf-box-main { width: 180px; height: 64px; padding: 0 10px; gap: 6px; }
  .wf-mini { width: 42px; height: 42px; }

  .wf-label {
    font-size: 11px;
    top: calc(100% + 12px);
  }
}

@media (max-width: 380px) {
  .workflow-pills-left,
  .workflow-pills-right {
    grid-template-columns: 1fr;
  }

  .wf-pill {
    padding: 10px 18px;
    font-size: 13px;
  }
}

/* === HORIZONTAL SCROLL SECTION (Lucien-Style) === */
.hscroll-section {
  position: relative;
  background: var(--bg);
}

.hscroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hscroll-header {
  text-align: center;
  padding: 80px 24px 50px;
  position: relative;
  z-index: 2;
}

.hscroll-eyebrow {
  display: inline-block;
  background: rgba(99, 102, 241, 0.10);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: var(--primary-light);
  padding: 7px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}

.hscroll-title {
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 900px;
  margin: 0 auto;
}

.hscroll-viewport {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-bottom: 60px;
}

.hscroll-track {
  display: flex;
  gap: 24px;
  padding: 0 40px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

/* Card als 2-Spalten-Flex: Content links, Visual rechts — kein Overlap mehr */
.hscroll-card {
  flex: 0 0 660px;
  height: 460px;
  padding: 40px;
  background: linear-gradient(135deg, rgba(19, 24, 41, 0.95), rgba(26, 31, 46, 0.85));
  border: 1px solid rgba(99, 102, 241, 0.20);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  gap: 28px;
  contain: layout paint;
}

.hscroll-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

.hscroll-card-content {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.hscroll-card-icon {
  width: 56px;
  height: 56px;
  background: rgba(99, 102, 241, 0.10);
  border: 1px solid rgba(99, 102, 241, 0.30);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  margin-bottom: 24px;
  flex-shrink: 0;
}

.hscroll-card h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.hscroll-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.hscroll-card-visual {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

/* Visual: Verpasste Anrufe */
.visual-calls {
  flex-wrap: wrap;
  gap: 8px;
  align-content: center;
  padding-left: 8px;
}
.vc-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 100px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.vc-pill.missed {
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

/* Visual: Papier-Chaos */
.visual-paper {
  align-items: center;
}
.paper-ascii {
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(99, 102, 241, 0.45);
  white-space: pre;
  margin: 0;
  text-align: left;
}

/* Visual: SERP */
.visual-serp {
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  align-items: stretch;
  padding-left: 8px;
}
.serp-row {
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 11.5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.serp-row.top {
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.25);
  color: var(--accent-light);
}
.serp-row.dim { opacity: 0.5; }
.serp-row.you {
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.30);
  color: #fca5a5;
  font-weight: 600;
}

/* Visual: Empty */
.visual-empty {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.empty-bell {
  color: rgba(239, 68, 68, 0.5);
  margin-bottom: 8px;
}
.empty-text {
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* Mobile: Sticky-Scroll wird zu Swipe-Carousel */
@media (max-width: 968px) {
  .hscroll-section { height: auto !important; }
  .hscroll-sticky {
    position: static;
    height: auto;
    overflow: visible;
  }
  .hscroll-header { padding: 60px 20px 30px; }

  .hscroll-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 50px;
    scrollbar-width: none;
  }
  .hscroll-viewport::-webkit-scrollbar { display: none; }

  .hscroll-track {
    transform: none !important;
    padding: 0 20px;
    gap: 16px;
  }

  .hscroll-card {
    flex: 0 0 calc(100vw - 60px);
    max-width: 440px;
    height: auto;
    min-height: 460px;
    padding: 32px;
    flex-direction: column;
    gap: 24px;
    scroll-snap-align: center;
  }
  .hscroll-card-content { flex: 0 0 auto; }
  .hscroll-card-visual {
    flex: 1;
    min-height: 140px;
    opacity: 0.7;
  }
}

@media (max-width: 480px) {
  .hscroll-card {
    padding: 28px 24px;
    min-height: auto;
  }
  .hscroll-card h3 { font-size: 22px; }
  .hscroll-card-visual { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hscroll-track { transform: none !important; }
  .hscroll-section { height: auto !important; }
  .hscroll-sticky { position: static; height: auto; overflow: visible; }
  .hscroll-viewport { overflow-x: auto; }
}

/* === PAGE-FLOW EFFEKT (Linien mit wandernden Punkten) === */

/* assets/style.css */

/* === PAGE-FLOW EFFEKT (Linien mit wandernden Punkten) === */

/* Body transparent machen, damit Linien hinter dem Inhalt sichtbar werden */
html { background: var(--bg); }
body { background: transparent !important; }

/* assets/style.css */

.flow-section {
  position: relative;
}

.flow-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  bottom: 420px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
  overflow: hidden;
}

@media (max-width: 768px) {
  .flow-lines { bottom: 280px; }
}

.flow-line {
  position: absolute;
  top: 0;
  height: 100%;
  width: 1.5px;
  background: rgba(99, 102, 241, 0.42);
}

.flow-line::before {
  content: '';
  position: absolute;
  left: -2px;
  top: -10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22D3EE;
  box-shadow:
    0 0 10px rgba(34, 211, 238, 0.85),
    0 0 22px rgba(34, 211, 238, 0.5);
  animation: flowDotMove var(--d, 10s) linear infinite;
  animation-delay: var(--o, 0s);
  will-change: top;
}

@keyframes flowDotMove {
  0%   { top: -20px; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: calc(100% + 20px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-line::before { animation: none; opacity: 0; }
}

@media (max-width: 768px) {
  .flow-line:nth-child(2n) { display: none; }
}

@media (max-width: 480px) {
  .flow-line:nth-child(3n) { display: none; }
}

/* === FLOW KONVERGENZ === */
.flow-converge {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: visible;
  pointer-events: none;
  background: transparent;
  margin-bottom: -80px;
  z-index: 2;
}

.flow-converge svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

@media (max-width: 768px) {
  .flow-converge {
    height: 280px;
    margin-bottom: -40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-converge circle { animation: none; }
}

