/* =========================================
   style.css — Onyx Portfolio Website
   Dark / Lime / Spaceship-Cockpit
   ========================================= */

/* ── Table of Contents ──────────────────────
   1.  Variables & Reset
   2.  Typography
   3.  Layout Utilities
   4.  Background Grid
   5.  Navigation
   6.  Hero
   7.  Services
   8.  Centerpiece (Dashboard UI)
   9.  Process
   10. Pricing
   11. Case Study
   12. Contact
   13. Footer
   14. Buttons
   15. Responsive
   16. prefers-reduced-motion
   ─────────────────────────────────────── */

/* ══════════════════════════════════════════
   1. VARIABLES & RESET
══════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors */
  --bg:          #0A0A0F;
  --bg2:         #0D0D14;
  --surface:     #111119;
  --surface2:    #181824;
  --surface3:    #1E1E2E;
  --border:      rgba(255, 255, 255, 0.07);
  --border2:     rgba(255, 255, 255, 0.12);
  --lime:        #C9F73D;
  --lime-bright: #D4FF00;
  --lime-dim:    rgba(201, 247, 61, 0.10);
  --lime-glow:   rgba(201, 247, 61, 0.22);
  --text:        #E8E8F0;
  --text-muted:  rgba(232, 232, 240, 0.55);
  --text-dim:    rgba(232, 232, 240, 0.28);

  /* Type */
  --font: 'Space Grotesk', system-ui, sans-serif;

  /* Spacing */
  --section-pad: 9rem;

  /* Animation */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.4s;
  --radius: 14px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  color-scheme: dark;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent jump during scroll init */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; }
button { font-family: var(--font); }

/* Italic = Lime accent (used in headlines) */
em { font-style: normal; color: var(--lime); }

/* ══════════════════════════════════════════
   2. TYPOGRAPHY
══════════════════════════════════════════ */
h1, h2, h3, h4 {
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(3.2rem, 8.5vw, 7.5rem); }
h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.7rem); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1.25rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: var(--lime);
}

.section-title {
  margin-bottom: 3.5rem;
  color: var(--text);
}

/* ══════════════════════════════════════════
   3. LAYOUT UTILITIES
══════════════════════════════════════════ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.platform .section-title {
  margin-bottom: 1.5rem;
}

.platform__intro {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.78;
}

/* ══════════════════════════════════════════
   4. BACKGROUND GRID
══════════════════════════════════════════ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 247, 61, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 247, 61, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

/* Radial vignette over grid */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, transparent 40%, var(--bg) 100%);
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════════════════════════════
   5. NAVIGATION
══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 3rem;
  transition:
    background var(--dur) var(--ease),
    backdrop-filter var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  border-color: var(--border);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 201;
}

.nav__logo-img {
  height: 1.7rem;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--dur) var(--ease);
  position: relative;
}

.nav__links a:not(.nav__cta):hover { color: var(--text); }

.nav__links a:not(.nav__cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--lime);
  transition: width var(--dur) var(--ease);
}

.nav__links a:not(.nav__cta):hover::after { width: 100%; }

.nav__cta {
  color: var(--bg) !important;
  background: var(--lime);
  padding: 0.55rem 1.3rem;
  border-radius: 100px;
  font-weight: 600 !important;
  transition:
    background var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease) !important;
}

.nav__cta:hover {
  background: var(--lime-bright) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--lime-glow);
}

.nav__cta::after { display: none !important; }

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  position: relative;
  z-index: 201;
}

.nav__burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--dur) var(--ease);
  transform-origin: center;
}

.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.mobile-menu:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu[hidden] { display: flex; } /* override hidden for animation */

.mobile-menu__close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color var(--dur);
}

.mobile-menu__close:hover { color: var(--lime); }

.mobile-menu__link {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.6rem 0;
  transition: color var(--dur);
  letter-spacing: -0.02em;
}

.mobile-menu__link:hover { color: var(--text); }

.mobile-menu__link--cta {
  color: var(--lime) !important;
  margin-top: 1rem;
}

/* ══════════════════════════════════════════
   6. HERO
══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 7rem 2rem 4rem;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Gradient fade at bottom of hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 960px;
  text-align: center;
}

.hero__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 2rem;
  opacity: 0;
}

/* Headline word-mask reveal */
.hero__headline {
  display: flex;
  flex-direction: column;
  gap: 0.05em;
  margin-bottom: 2rem;
}

.hero__line {
  display: block;
  overflow: hidden;
}

.word-mask {
  display: block;
  overflow: hidden;
}

.word-mask > span {
  display: block;
  transform: translateY(108%);
  will-change: transform;
}

.hero__line--accent .word-mask > span {
  color: var(--lime);
  /* subtle text glow */
  text-shadow: 0 0 60px rgba(201, 247, 61, 0.35);
}

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text);
  max-width: 560px;
  margin: 0 auto 3rem;
  line-height: 1.75;
  opacity: 0;
  transform: translateY(24px);
}

.hero__cta {
  opacity: 0;
  transform: translateY(24px);
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 2.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
}

.hero__scroll-hint span {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero__scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--lime), transparent);
  transform-origin: top;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%   { transform: scaleY(0) translateY(0); opacity: 1; }
  50%  { transform: scaleY(1) translateY(0); opacity: 1; }
  100% { transform: scaleY(1) translateY(100%); opacity: 0; }
}

/* ══════════════════════════════════════════
   7. SERVICES
══════════════════════════════════════════ */
.services {
  background: var(--bg2);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.platform__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2.25rem;
  cursor: default;
  position: relative;
  overflow: hidden;
  transition:
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

/* Lime glow overlay on hover */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, var(--lime-dim), transparent 65%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}

.service-card:hover, .service-card:focus-visible {
  border-color: rgba(201, 247, 61, 0.28);
  transform: translateY(-8px);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(201, 247, 61, 0.1);
  outline: none;
}

.service-card:hover::before, .service-card:focus-visible::before {
  opacity: 1;
}

.service-card__icon {
  width: 44px;
  height: 44px;
  color: var(--lime);
  margin-bottom: 1.75rem;
}

.service-card__title {
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
  line-height: 1.2;
}

.service-card__text {
  color: var(--text);
  font-size: 0.925rem;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.service-card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--lime);
  background: var(--lime-dim);
  border: 1px solid rgba(201, 247, 61, 0.18);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
}

/* ══════════════════════════════════════════
   8. CENTERPIECE — DASHBOARD UI
══════════════════════════════════════════ */
.centerpiece {
  height: auto;
  position: relative;
}

.centerpiece__sticky {
  /* No longer sticky — normal section */
  display: flex;
  align-items: center;
  padding: var(--section-pad) 0;
  background: var(--bg);
}

/* Decorative accent glow behind dashboard */
.centerpiece__sticky::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 247, 61, 0.05), transparent 70%);
  pointer-events: none;
}

.centerpiece__layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 5rem;
  align-items: center;
  width: 100%;
}

.centerpiece__text {
  position: relative;
  z-index: 2;
}

.centerpiece__title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 1.5rem;
}

.centerpiece__desc {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.78;
  margin-bottom: 2.25rem;
  max-width: 440px;
}

.centerpiece__features {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.cp-feature {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}

.cp-feature__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border2);
  box-shadow: none;
  flex-shrink: 0;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.cp-feature:hover {
  color: var(--text);
}

.cp-feature.is-active {
  color: var(--text);
}

.cp-feature.is-active .cp-feature__dot {
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}

/* ── Dashboard UI Frame ── */
.centerpiece__ui {
  position: relative;
  z-index: 2;
}

.ui-frame {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(201, 247, 61, 0.04),
    0 40px 100px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(201, 247, 61, 0.04);
  min-height: 440px;
  transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
  transform-style: preserve-3d;
  will-change: transform;
}

/* cp-el: base state before animation */
.cp-el {
  will-change: opacity, transform;
}

/* ── Sidebar ── */
.ui-sidebar {
  width: 58px;
  min-width: 58px;
  background: rgba(8, 8, 14, 0.9);
  border-right: 1px solid var(--border);
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.ui-logo-mark {
  width: 26px;
  height: 26px;
  background: var(--lime);
  border-radius: 6px;
  margin-bottom: 2rem;
  box-shadow: 0 0 12px var(--lime-glow);
  flex-shrink: 0;
}

.ui-nav-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  flex: 1;
}

.ui-nav-item {
  height: 34px;
  border-radius: 7px;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ui-nav-item--active {
  background: var(--lime-dim);
  border: 1px solid rgba(201, 247, 61, 0.2);
}

.ui-nav-icon {
  display: block;
  width: 14px;
  height: 2px;
  background: var(--text-dim);
  border-radius: 2px;
  position: relative;
}

.ui-nav-icon::before, .ui-nav-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: inherit;
  border-radius: 2px;
}

.ui-nav-icon::before { top: -4px; width: 70%; }
.ui-nav-icon::after  { top: 4px; width: 85%; }

.ui-nav-item--active .ui-nav-icon {
  background: var(--lime);
}

.ui-nav-bottom {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  width: 100%;
  display: flex;
  justify-content: center;
}

.ui-avatar-small {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface3);
  border: 1px solid var(--border2);
}

/* ── Main Content ── */
.ui-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

/* Top Bar */
.ui-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}

.ui-topbar__title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
  font-family: var(--font);
}

.ui-topbar__sub {
  font-size: 0.6rem;
  color: var(--text-dim);
  font-family: var(--font);
  margin-top: 1px;
}

.ui-topbar__right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ui-topbar__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.ui-topbar__dot--live {
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.ui-topbar__live-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--lime);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font);
}

.ui-avatar-ring {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  overflow: hidden;
}

.ui-avatar {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--surface3), var(--surface2));
}

/* ── Tab Bar ── */
.ui-tab-bar {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}

.ui-tab {
  flex: 1;
  padding: 0.6rem 0.75rem;
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: color var(--dur) var(--ease);
  overflow: hidden;
}

.ui-tab:hover { color: var(--text-muted); }

.ui-tab.is-active {
  color: var(--text);
}

/* Lime progress underline (GSAP animates scaleX) */
.ui-tab-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--lime);
  transform-origin: left;
  transform: scaleX(0);
  box-shadow: 0 0 6px var(--lime-glow);
}

/* ── Carousel wrapper + nav arrows for manual "blättern" ── */
.ui-carousel-wrap {
  position: relative;
  display: flex;
  flex: 1;
  min-height: 0;
}

.ui-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border2);
  background: rgba(10, 10, 15, 0.7);
  color: var(--text-dim);
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.ui-nav-arrow:hover,
.ui-nav-arrow:focus-visible {
  color: var(--bg);
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 0 14px var(--lime-glow);
}

.ui-nav-arrow--prev { left: 6px; }
.ui-nav-arrow--next { right: 6px; }

/* ── Carousel (all slides stacked via CSS grid) ── */
.ui-carousel {
  display: grid;
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.ui-slide {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}

.ui-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* ── Stats ── */
.ui-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  flex-shrink: 0;
  height: 100%;
}

.ui-stat {
  padding: 1rem 1.1rem;
  border-right: 1px solid var(--border);
}

.ui-stat:last-child { border-right: none; }

.ui-stat--accent {
  background: rgba(201, 247, 61, 0.035);
}

.ui-stat__label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-family: var(--font);
  margin-bottom: 0.35rem;
}

.ui-stat__value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.2;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.ui-stat--accent .ui-stat__value { color: var(--lime); }

.ui-stat__bar {
  height: 3px;
  background: var(--surface3);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.ui-stat__fill {
  height: 100%;
  width: 0; /* animated via JS */
  background: var(--text-dim);
  border-radius: 2px;
  transition: width 1s var(--ease-out);
}

.ui-stat__fill--accent {
  background: var(--lime);
  box-shadow: 0 0 6px var(--lime-glow);
}

.ui-stat__trend {
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--text-dim);
  font-family: var(--font);
}

.ui-stat--accent .ui-stat__trend { color: var(--lime); }

/* ── Chart ── */
.ui-chart {
  padding: 1rem 1.25rem;
  flex-shrink: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ui-chart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.ui-chart__title {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-family: var(--font);
}

.ui-chart__legend {
  font-size: 0.58rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font);
}

.ui-chart__dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}

.ui-chart__area {
  height: 72px;
  flex: 1;
  position: relative;
}

.ui-chart__svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ui-chart__path {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  transition: stroke-dashoffset 1.8s var(--ease-out);
}

.ui-chart__fill {
  opacity: 0;
  transition: opacity 1s ease 0.6s;
}

.ui-chart__endot {
  opacity: 0;
  filter: drop-shadow(0 0 6px #C9F73D);
  transition: opacity 0.4s ease 1.5s;
}

/* ── Table ── */
.ui-table {
  flex: 1;
  padding: 0.75rem 1.25rem;
  overflow: hidden;
  font-family: var(--font);
}

.ui-table__header {
  display: grid;
  grid-template-columns: 2fr 0.8fr 0.7fr 0.7fr;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.25rem;
}

.ui-table__header > div {
  font-size: 0.56rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ui-table__row {
  display: grid;
  grid-template-columns: 2fr 0.8fr 0.7fr 0.7fr;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 500;
}

.ui-table__name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 600;
}

.ui-table__avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface3);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.ui-badge {
  display: inline-block;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
}

.ui-badge--green {
  background: rgba(201, 247, 61, 0.12);
  color: var(--lime);
  border: 1px solid rgba(201, 247, 61, 0.25);
}

.ui-badge--yellow {
  background: rgba(255, 196, 61, 0.12);
  color: #FFC43D;
  border: 1px solid rgba(255, 196, 61, 0.25);
}

/* ══════════════════════════════════════════
   8b. AUTOMATION FLOW
══════════════════════════════════════════ */
.automation {
  height: auto;
  position: relative;
}

.automation__sticky {
  display: flex;
  align-items: center;
  padding: var(--section-pad) 0;
  background: var(--bg2);
}

.automation__layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 5rem;
  align-items: center;
  width: 100%;
}

.automation__text { position: relative; z-index: 2; }

.automation__title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 1.5rem;
}

.automation__desc {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.78;
  margin-bottom: 2.25rem;
  max-width: 440px;
}

.automation__features {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.af-feature {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}

/* Läuft kontinuierlich ab, während ein Stichpunkt aktiv ist — sichtbarer
   Beleg dafür, dass die Automation "weiterläuft" (GSAP animiert scaleX) */
.af-feature__progress {
  position: absolute;
  left: 1.85rem;
  right: 0;
  bottom: -0.5rem;
  height: 2px;
  background: var(--lime);
  border-radius: 1px;
  transform-origin: left;
  transform: scaleX(0);
  box-shadow: 0 0 6px var(--lime-glow);
}

.af-feature__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border2);
  box-shadow: none;
  flex-shrink: 0;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.af-feature:hover { color: var(--text); }

.af-feature.is-active { color: var(--text); }

.af-feature.is-active .af-feature__dot {
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}

.automation__ui { position: relative; z-index: 2; }

/* ── Workflow chain: Trigger → Aktionen ── */
.af-flow {
  flex: 1;
  padding: 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.af-step {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 0.85rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  opacity: 1;
  will-change: opacity, transform;
  transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.af-step--pending { opacity: 0.5; }

.af-step__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--surface3);
  border: 1px solid var(--border2);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.af-step--active .af-step__icon,
.af-step--done .af-step__icon {
  background: var(--lime-dim);
  border-color: rgba(201, 247, 61, 0.2);
  color: var(--lime);
}

/* Pulsierender Ring um das Icon, solange der Schritt aktiv ist */
.af-step--active .af-step__icon::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 11px;
  border: 1px solid var(--lime);
  opacity: 0.7;
  animation: iconPulseRing 1.8s ease-out infinite;
}

@keyframes iconPulseRing {
  0%   { transform: scale(0.85); opacity: 0.7; }
  70%  { transform: scale(1.3);  opacity: 0; }
  100% { transform: scale(1.3);  opacity: 0; }
}

.af-step__icon svg { width: 16px; height: 16px; }

.af-step__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.af-step__label {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-family: var(--font);
}

.af-step__title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.af-step__status {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-dim);
  background: var(--surface3);
  border: 1px solid var(--border2);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.af-step__status::after { content: '–'; }

.af-step--done .af-step__status {
  color: var(--lime);
  background: var(--lime-dim);
  border-color: rgba(201, 247, 61, 0.25);
}

.af-step--done .af-step__status::after { content: '✓'; }

.af-step--active .af-step__status {
  color: var(--lime);
  background: var(--lime-dim);
  border-color: rgba(201, 247, 61, 0.35);
}

.af-step--active .af-step__status::after {
  content: '●';
  font-size: 0.5rem;
  animation: livePulse 2s ease-in-out infinite;
}

.af-step--active {
  border-color: rgba(201, 247, 61, 0.35);
  box-shadow: 0 0 0 1px rgba(201, 247, 61, 0.08);
}

.af-connector {
  width: 1px;
  height: 18px;
  margin-left: 1.75rem;
  position: relative;
  background: var(--border2);
  opacity: 1;
  transition: background 0.5s ease;
}

.af-connector.is-lit {
  background: var(--lime);
  box-shadow: 0 0 6px var(--lime-glow);
}

/* Kurzer Lichtimpuls, der beim Aktivieren die Verbindung "entlangläuft" */
.af-connector__pulse {
  position: absolute;
  left: 50%;
  top: -3px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  opacity: 0;
}

.af-connector.is-flowing .af-connector__pulse {
  animation: connectorFlow 0.55s ease-out;
}

@keyframes connectorFlow {
  0%   { top: -3px;  opacity: 1; }
  100% { top: 100%;  opacity: 0; }
}

/* ══════════════════════════════════════════
   9. PROCESS
══════════════════════════════════════════ */
.process {
  background: var(--bg2);
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
}

.process-step {
  padding: 3rem 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.process-step + .process-step { border-left: none; }

/* Accent corner on first */
.process-step:first-child::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--lime);
}

.process-step__num {
  font-size: 4rem;
  font-weight: 700;
  color: var(--lime);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.04em;
}

.process-step__title {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.process-step__text {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* Connector arrow between steps */
.process-step__line {
  position: absolute;
  top: 50%;
  right: -14px;
  transform: translateY(-50%);
  width: 28px;
  height: 1px;
  background: var(--lime);
  z-index: 2;
  opacity: 0.5;
}

.process-step__line::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--lime);
  border-right: 1px solid var(--lime);
  transform: translateY(-50%) rotate(45deg);
}

/* ══════════════════════════════════════════
   10. PRICING
══════════════════════════════════════════ */
.pricing {
  background: var(--bg);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  position: relative;
  transition:
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.pricing-card:hover {
  border-color: rgba(201, 247, 61, 0.22);
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.pricing-card--featured {
  background: var(--surface2);
  border-color: rgba(201, 247, 61, 0.22);
  box-shadow:
    0 0 0 1px rgba(201, 247, 61, 0.08),
    0 32px 80px rgba(0, 0, 0, 0.35);
}

.pricing-card--featured:hover {
  border-color: rgba(201, 247, 61, 0.45);
  box-shadow:
    0 0 0 1px rgba(201, 247, 61, 0.15),
    0 32px 80px rgba(0, 0, 0, 0.45),
    0 0 50px rgba(201, 247, 61, 0.08);
}

.pricing-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lime);
  color: var(--bg);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.28rem 0.9rem;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card__name {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-card__desc {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 1.75rem;
  min-height: 42px;
}

.pricing-card__price {
  margin-bottom: 0.35rem;
}

.price-setup {
  display: block;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.pricing-card--featured .price-setup { color: var(--lime); }

.price-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.15rem;
}

.pricing-card__monthly {
  font-size: 0.8rem;
  color: var(--text);
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.pricing-card__features {
  margin-bottom: 2rem;
}

.pricing-card__features li {
  font-size: 0.875rem;
  color: var(--text);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  line-height: 1.4;
}

.pricing-card__features li::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

/* ══════════════════════════════════════════
   11. CASE STUDY
══════════════════════════════════════════ */
.case {
  background: var(--bg2);
}

.case__inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4.5rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Glow blob */
.case__inner::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(201, 247, 61, 0.06), transparent 70%);
  pointer-events: none;
}

.case__eyebrow {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.case__company {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-left: 1px solid var(--border2);
  padding-left: 1.5rem;
}

.case__content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5rem;
  align-items: center;
}

.case__stat-block {
  text-align: center;
}

.case__big-num {
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 700;
  color: var(--lime);
  line-height: 1;
  letter-spacing: -0.04em;
  text-shadow: 0 0 60px rgba(201, 247, 61, 0.3);
  white-space: nowrap;
}

.case__currency {
  font-size: 0.55em;
  vertical-align: super;
  color: var(--lime);
}

.case__num-desc {
  font-size: 0.8rem;
  color: var(--text);
  margin-top: 0.75rem;
  white-space: nowrap;
}

.case__title {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  margin-bottom: 1.5rem;
}

.case__quote {
  font-size: 0.975rem;
  color: var(--text);
  line-height: 1.8;
  border-left: 2px solid var(--lime);
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.case__client {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 600;
}

/* ══════════════════════════════════════════
   11b. FOUNDER
══════════════════════════════════════════ */
.founder__inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3.5rem;
}

.founder__media {
  position: relative;
}

.founder__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: calc(var(--radius) - 8px);
  border: 1px solid var(--border2);
  display: block;
}

.founder__title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-top: 0.9rem;
  margin-bottom: 0.4rem;
}

.founder__role {
  color: var(--lime);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.founder__text {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.78;
  margin-bottom: 1.1rem;
}

.founder__text:last-child {
  margin-bottom: 0;
}

/* ══════════════════════════════════════════
   12. CONTACT
══════════════════════════════════════════ */
.contact {
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Large background text */
.contact::before {
  content: 'LOS';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(8rem, 22vw, 22rem);
  font-weight: 700;
  color: rgba(201, 247, 61, 0.025);
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}

.contact__inner {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 0 auto;
}

.contact__title {
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
}

.contact__sub {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.78;
  margin-bottom: 2.75rem;
}

.contact__cta {
  display: inline-flex;
}

/* ══════════════════════════════════════════
   13. FOOTER
══════════════════════════════════════════ */
.footer {
  padding: 2.25rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
}

.footer__logo-img {
  height: 1.35rem;
  width: auto;
  display: block;
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer__nav {
  display: flex;
  gap: 1.75rem;
}

.footer__nav a {
  font-size: 0.78rem;
  color: var(--text-dim);
  transition: color var(--dur) var(--ease);
}

.footer__nav a:hover { color: var(--text); }

/* ══════════════════════════════════════════
   13b. LEGAL PAGE (IMPRESSUM / DATENSCHUTZ)
══════════════════════════════════════════ */
.legal {
  padding-top: calc(var(--section-pad) + 2rem);
}

.legal__content {
  max-width: 640px;
  margin: 0 auto;
}

.legal__title {
  margin-bottom: 2.5rem;
}

.legal__heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.25rem 0 0.85rem;
}

.legal__heading:first-of-type {
  margin-top: 0;
}

.legal__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.78;
}

.legal__text a {
  color: var(--lime);
  text-decoration: underline;
  text-decoration-color: rgba(201, 247, 61, 0.4);
}

.legal__back {
  display: inline-block;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--dur) var(--ease);
}

.legal__back:hover { color: var(--lime); }

/* ══════════════════════════════════════════
   14. BUTTONS
══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.9rem;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
  position: relative;
  will-change: transform;
}

.btn--primary {
  background: var(--lime);
  color: var(--bg);
}

.btn--primary:hover {
  background: var(--lime-bright);
  transform: translateY(-3px);
  box-shadow: 0 14px 42px var(--lime-glow);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border2);
}

.btn--outline:hover {
  border-color: rgba(201, 247, 61, 0.35);
  color: var(--lime);
  transform: translateY(-2px);
}

.btn--large {
  font-size: 1.05rem;
  padding: 1.05rem 2.4rem;
}

/* Magnetic wrapper — no overflow clip so transform shows */
.btn:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

/* ══════════════════════════════════════════
   15. RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .platform__grid { grid-template-columns: repeat(2, 1fr); }

  .centerpiece__layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .centerpiece__desc { max-width: 100%; }
  .centerpiece__features { align-items: center; }

  .case__content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: left;
  }

  .case__stat-block { text-align: left; }

  .founder__inner {
    grid-template-columns: 240px 1fr;
    gap: 2.5rem;
    padding: 2.5rem;
  }

  .automation__layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .automation__desc { max-width: 100%; margin-inline: auto; }
  .automation__features { align-items: center; }
}

@media (max-width: 768px) {
  :root { --section-pad: 5rem; }

  .nav { padding: 1.1rem 1.5rem; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .services__grid,
  .platform__grid,
  .pricing__grid { grid-template-columns: 1fr; }

  .process__steps { grid-template-columns: 1fr; }
  .process-step + .process-step { border-left: 1px solid var(--border); border-top: none; }
  .process-step__line { display: none; }

  .case__inner { padding: 2.5rem 1.75rem; }
  .case__content { gap: 2rem; }

  .founder__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.75rem;
    text-align: center;
  }

  .founder__media { max-width: 220px; margin: 0 auto; }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  /* ── CONTACT CTA: nicht über den Viewport hinausragen ── */
  .contact__cta {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
  }

  /* ── CENTERPIECE MOBILE ── */
  .centerpiece__sticky { padding: 4rem 0; }

  /* Sidebar ausblenden */
  .ui-sidebar { display: none; }

  /* Frame: schmaleres Design, kein 3D-Transform */
  .ui-frame { transform: none; min-height: auto; }
  .ui-main  { overflow: visible; }

  /* Tab-Bar: readable auf Mobile, mit Fade-Hinweis für Scroll */
  .ui-tab-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
  }
  .ui-tab { font-size: 0.68rem; padding: 0.75rem 0.5rem; white-space: nowrap; flex: none; }

  /* Carousel: Slides normal sichtbar, Höhe auto */
  .ui-carousel { min-height: 180px; }
  .ui-slide { grid-area: 1 / 1; }

  /* Nav-Pfeile: etwas größer für Touch-Targets */
  .ui-nav-arrow { width: 32px; height: 32px; }
  .ui-nav-arrow--prev { left: 4px; }
  .ui-nav-arrow--next { right: 4px; }

  /* Stats: einspaltiger Stack */
  .ui-stats { grid-template-columns: 1fr; }
  .ui-stat {
    padding: 1.25rem 1.5rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .ui-stat:last-child { border-bottom: none; }
  .ui-stat__label { font-size: 0.8rem;  margin-bottom: 0.45rem; }
  .ui-stat__value { font-size: 1.8rem;  margin-bottom: 0.8rem; }
  .ui-stat__bar   { height: 5px; margin-bottom: 0.45rem; }
  .ui-stat__trend { font-size: 0.78rem; }

  /* Chart */
  .ui-chart__title  { font-size: 0.82rem; }
  .ui-chart__area   { height: 120px !important; }

  /* Table */
  .ui-table { padding: 1rem 1.25rem; flex: none; }
  .ui-table__header > div { font-size: 0.72rem; }
  .ui-table__row { font-size: 0.8rem; padding: 0.75rem 0; }
  .ui-table__name { font-size: 0.82rem; }
  .ui-table__avatar { width: 22px; height: 22px; }
  .ui-badge { font-size: 0.68rem; padding: 0.2rem 0.6rem; }

  /* Topbar */
  .ui-topbar__title { font-size: 0.9rem; }

  /* Alle cp-el sofort sichtbar */
  .cp-el { opacity: 1 !important; transform: none !important; }
  .ui-slide { opacity: 0; }
  .ui-slide.is-active { opacity: 1; }
  .ui-chart__path  { stroke-dashoffset: 0 !important; }
  .ui-chart__fill  { opacity: 1 !important; }
  .ui-chart__endot { opacity: 1 !important; }

  /* ── AUTOMATION MOBILE ── */
  .automation__sticky { padding: 4rem 0; }
  .af-step__title { font-size: 0.92rem; }
  .af-step__label { font-size: 0.62rem; }
  .af-step { padding: 0.9rem 1rem; transform: none !important; }
  .af-connector { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2rem; }

  .container { padding: 0 1.25rem; }

  .hero { padding: 6rem 1.25rem 3rem; }

  .case__big-num { font-size: 3.5rem; }
}

/* ══════════════════════════════════════════
   16. PREFERS-REDUCED-MOTION
══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Reveal all hidden elements immediately */
  .word-mask > span {
    transform: none !important;
  }

  .hero__label,
  .hero__sub,
  .hero__cta,
  .hero__scroll-hint,
  .scroll-reveal,
  .scroll-reveal-card,
  .scroll-reveal-block,
  .cp-el {
    opacity: 1 !important;
    transform: none !important;
  }

  .ui-chart__path { stroke-dashoffset: 0 !important; }
  .ui-chart__fill { opacity: 1 !important; }
  .ui-chart__endot { opacity: 1 !important; }

  .ui-stat__fill { width: 80% !important; }
  .ui-stat__fill--accent { width: 88% !important; }

  #hero-canvas { display: none; }
}
