/* Corporate-Feinschliff: Nummerierung, Cursor-Glow, Geräte-Showcase, Leistungs-Zeilen, FAQ, Footer-Wordmark */

/* Automatische Abschnittsnummern (01, 02, ...) */
main { counter-reset: sec; }
.section-head .eyebrow { counter-increment: sec; }
.section-head .eyebrow::before {
  content: "0" counter(sec); margin-right: .9rem; padding-right: .9rem;
  border-right: 1px solid rgba(94, 231, 255, .4); color: var(--muted);
}

/* Weicher Lichtkegel, der dem Mauszeiger folgt */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, .13), transparent 62%);
  pointer-events: none; z-index: -1; will-change: transform;
  transform: translate3d(var(--cx, -999px), var(--cy, -999px), 0);
}

/* Geräte-Showcase */
.devices { position: relative; height: clamp(300px, 50vw, 560px); margin-bottom: 3.5rem; }
.dev {
  position: absolute; background: #0d1018; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9);
}
.dev-laptop { left: 2%; top: 4%; width: 64%; background: none; border: 0; box-shadow: none; overflow: visible; }
.dev-screen {
  aspect-ratio: 16 / 10; display: flex; flex-direction: column; overflow: hidden; background: #0b0e16;
  border: 1px solid rgba(255, 255, 255, .16); border-bottom: 0; border-radius: 14px 14px 0 0;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 80px -30px rgba(124, 92, 255, .5);
}
.dev-base { height: clamp(8px, 1.4vw, 16px); margin: 0 -5%; border-radius: 0 0 16px 16px; background: linear-gradient(#2a2f3d, #12151d); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .8); }
.sc-bar { display: flex; gap: 4px; align-items: center; padding: 2.2% 3%; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.sc-bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.sc-bar b { margin-left: auto; width: 22%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); }
.sc-dash { flex: 1; display: flex; min-height: 0; }
.sc-side { width: 14%; padding: 3%; display: flex; flex-direction: column; gap: 10px; border-right: 1px solid rgba(255, 255, 255, .07); }
.sc-side i { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .09); }
.sc-side i.on { background: var(--grad); }
.sc-main { flex: 1; padding: 3%; display: flex; flex-direction: column; gap: 4%; min-width: 0; }
.sc-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3%; }
.sc-kpis div { display: grid; gap: 6px; padding: 8% 10%; border-radius: 8px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); }
.sc-kpis small { height: 4px; width: 50%; border-radius: 2px; background: rgba(255, 255, 255, .14); }
.sc-kpis b { height: 10px; width: 75%; border-radius: 3px; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.sc-chart { flex: 1; width: 100%; min-height: 0; }

.dev-tablet { right: 3%; top: 0; width: 27%; aspect-ratio: 3 / 4; border-radius: 18px; padding: 2.2%; }
.sc-game { display: block; width: 100%; height: 100%; border-radius: 12px; }
.dev-phone {
  right: 29%; bottom: -2%; width: 16%; aspect-ratio: 9 / 18.5; z-index: 2; border-radius: 22px; padding: 6% 6% 4%;
  display: flex; flex-direction: column; gap: 5%; animation: float 8s ease-in-out infinite;
}
.sc-notch { width: 34%; height: 3.5%; margin: -2% auto 0; border-radius: 6px; background: #000; }
.sc-item { display: flex; gap: 8%; align-items: center; }
.sc-item i { width: 22%; aspect-ratio: 1; border-radius: 30%; flex: none; background: linear-gradient(135deg, var(--cyan), var(--violet)); }
.sc-item:nth-child(even) i { background: linear-gradient(135deg, var(--violet), var(--pink)); }
.sc-item span { flex: 1; display: grid; gap: 6px; }
.sc-item span::before, .sc-item span::after { content: ""; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .14); }
.sc-item span::after { width: 60%; background: rgba(255, 255, 255, .07); }
.sc-tabs { margin-top: auto; display: flex; justify-content: space-around; padding-top: 6%; border-top: 1px solid rgba(255, 255, 255, .08); }
.sc-tabs i { width: 12%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.sc-tabs i:first-child { background: var(--cyan); }

.feat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.feat-row li { position: relative; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.feat-row li::before { content: ""; position: absolute; top: -1px; left: 0; width: 44px; height: 2px; background: var(--grad); }
.feat-row h3 { font-size: 1.1rem; margin-bottom: .3em; }
.feat-row p { margin: 0; font-size: .95rem; }

/* Leistungs-Zeilen (Leistungsseite) */
.rows { border-bottom: 1px solid var(--border); }
.row {
  position: relative; display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.5fr); gap: 2rem; align-items: start;
  padding: 2.6rem 1rem; border-top: 1px solid var(--border); transition: background .35s;
}
.row::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--grad); transition: width .6s ease; }
.row:hover { background: linear-gradient(90deg, rgba(124, 92, 255, .07), transparent 70%); }
.row:hover::before { width: 100%; }
.row-num { color: var(--muted); font-size: .9rem; padding-top: .4rem; }
.row-title { display: flex; align-items: center; gap: 1rem; }
.row-title .card-icon { margin: 0; width: 46px; height: 46px; flex: none; }
.row-title h3 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.7rem); }
.row-body p { margin: 0 0 1rem; }
.row-body .ticks { margin-top: 0; }

/* FAQ */
.faq { max-width: 860px; border-bottom: 1px solid var(--border); }
.faq details { border-top: 1px solid var(--border); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; cursor: pointer; list-style: none;
  padding: 1.6rem 0; font: 500 clamp(1.05rem, 1.6vw, 1.3rem) var(--display); letter-spacing: -0.01em; transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--cyan); }
.faq .plus { position: relative; flex: none; width: 22px; height: 22px; }
.faq .plus::before, .faq .plus::after { content: ""; position: absolute; left: 3px; right: 3px; top: 10px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .3s; }
.faq .plus::after { transform: rotate(90deg); }
.faq details[open] .plus::after { transform: rotate(0); }
.faq details p { padding-bottom: 1.6rem; margin: 0; max-width: 64ch; }

/* Header verdichtet sich beim Scrollen (Klasse wird per JS gesetzt) */
.site-header { transition: background .3s, box-shadow .3s; }
.site-header .header-inner { transition: height .3s; }
.site-header.is-scrolled { background: rgba(6, 8, 13, .85); box-shadow: 0 10px 40px -20px rgba(0, 0, 0, .9); }
.site-header.is-scrolled .header-inner { height: 62px; }

/* Film-Grain über der ganzen Seite (SVG-Rauschen, sehr dezent) */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Riesiger Schriftzug im Footer */
.footer-mark {
  overflow: hidden; margin-top: 2rem; text-align: center; user-select: none; white-space: nowrap;
  font: 700 clamp(3rem, 13.5vw, 12rem) / .82 var(--display); letter-spacing: -0.05em;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

@media (max-width: 1000px) {
  .feat-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .row { grid-template-columns: 60px 1fr; }
  .row-body { grid-column: 2; }
  .dev-laptop { width: 74%; }
  .dev-tablet { width: 30%; }
}
@media (max-width: 720px) {
  .devices { height: 300px; }
  .dev-laptop { left: 0; width: 82%; }
  .dev-tablet { display: none; }
  .dev-phone { right: 2%; width: 24%; }
  .row { grid-template-columns: 1fr; gap: 1rem; padding: 2rem .25rem; }
  .row-body { grid-column: auto; }
  .row-num { padding: 0; }
}
@media (prefers-reduced-motion: reduce) { .cursor-glow { display: none; } }
