/* =========================================================
   P&P Digital Services v21 – Main Stylesheet
   Dark-first, DSGVO-compliant, premium animations
   ========================================================= */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Colors – Dark Mode (default) */
  --bg:          #06060f;
  --bg-2:        #0b0b18;
  --surface:     #0f0f1e;
  --surface-2:   #16162b;
  --surface-3:   #1e1e38;
  --text:        #f0f0ff;
  --text-2:      #c4c4e0;
  --muted:       #7a7a9a;
  --line:        rgba(120,120,220,.12);
  --line-2:      rgba(120,120,220,.22);

  /* Brand */
  --accent:       #7c6ef7;
  --accent-dark:  #5548d9;
  --accent-glow:  rgba(124,110,247,.35);
  --accent-2:     #22d485;
  --accent-2-glow:rgba(34,212,133,.28);
  --cta:          #22d485;
  --cta-hover:    #1fbf76;

  /* Gradients */
  --grad-hero:   radial-gradient(ellipse 120% 80% at 60% -20%, rgba(124,110,247,.22) 0%, transparent 65%),
                 radial-gradient(ellipse 90% 60% at -10% 60%, rgba(34,212,133,.12) 0%, transparent 55%),
                 radial-gradient(ellipse 80% 50% at 100% 80%, rgba(79,70,229,.15) 0%, transparent 55%),
                 var(--bg);
  --grad-accent:  linear-gradient(135deg, var(--accent) 0%, #9b8aff 50%, var(--accent-2) 100%);
  --grad-cta:     linear-gradient(135deg, var(--accent-2) 0%, #00e5a0 100%);
  --grad-card:    linear-gradient(135deg, var(--surface-2) 0%, var(--surface-3) 100%);
  --grad-text:    linear-gradient(135deg, #a89aff 0%, #c4b5fd 40%, #86efac 100%);

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,0,0,.5);
  --shadow:      0 8px 32px rgba(0,0,0,.55);
  --shadow-lg:   0 20px 60px rgba(0,0,0,.65);
  --shadow-glow: 0 0 40px var(--accent-glow), 0 8px 32px rgba(0,0,0,.5);
  --shadow-cta:  0 0 30px var(--accent-2-glow), 0 8px 24px rgba(0,0,0,.4);

  /* Spacing */
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 5rem;
  --space-7: 8rem;

  /* Radii */
  --r-sm:  10px;
  --r:     18px;
  --r-lg:  28px;
  --r-xl:  40px;
  --r-full:9999px;

  /* Typography */
  --font-sans: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Motion */
  --ease:       cubic-bezier(.22,1,.36,1);
  --ease-back:  cubic-bezier(.34,1.56,.64,1);
  --ease-in:    cubic-bezier(.55,.09,.68,.53);
  --dur-fast:   180ms;
  --dur:        320ms;
  --dur-slow:   600ms;

  /* Layout */
  --container: 1200px;
  --nav-h: 72px;
}

/* Light Mode */
[data-theme="light"] {
  --bg:         #f6f6ff;
  --bg-2:       #eeeeff;
  --surface:    #ffffff;
  --surface-2:  #f0f0fa;
  --surface-3:  #e8e8f5;
  --text:       #0c0c24;
  --text-2:     #2e2e50;
  --muted:      #5c5c80;
  --line:       rgba(80,80,160,.1);
  --line-2:     rgba(80,80,160,.2);

  --accent:      #5548d9;
  --accent-dark: #3d34b5;
  --accent-glow: rgba(85,72,217,.2);
  --accent-2:    #16a34a;
  --accent-2-glow: rgba(22,163,74,.15);
  --cta:         #16a34a;
  --cta-hover:   #14532d;

  --grad-hero:  radial-gradient(ellipse 120% 80% at 60% -20%, rgba(85,72,217,.1) 0%, transparent 65%),
                radial-gradient(ellipse 90% 60% at -10% 60%, rgba(22,163,74,.07) 0%, transparent 55%),
                var(--bg);
  --grad-card:  linear-gradient(135deg, #fff 0%, var(--surface-2) 100%);
  --grad-text:  linear-gradient(135deg, #5548d9 0%, #7c6ef7 50%, #16a34a 100%);

  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow:     0 8px 32px rgba(0,0,0,.12);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.16);
  --shadow-glow:0 0 40px var(--accent-glow), 0 8px 32px rgba(0,0,0,.1);
  --shadow-cta: 0 0 30px var(--accent-2-glow), 0 8px 24px rgba(0,0,0,.1);
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Sicherheitsnetz: hidden-Attribut muss display:none erzwingen */
[hidden] { display: none !important; }

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.6vw, 1.0625rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--grad-hero);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); }
h4 { font-size: clamp(1rem, 2vw, 1.25rem); }
p  { color: var(--text-2); }

/* ---------- 3. Utilities ---------- */
.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.section-space { padding: var(--space-7) 0; }
.section-space-sm { padding: var(--space-6) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: var(--r-full);
}

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-2);
  line-height: 1.6;
  max-width: 65ch;
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8em 1.8em;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  border: none;
  transition: transform var(--dur-fast) var(--ease-back),
              box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease),
              opacity var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.15);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
  border-radius: inherit;
}

.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 50px var(--accent-2-glow), 0 12px 36px rgba(0,0,0,.4);
}

.btn-secondary {
  background: rgba(124,110,247,.12);
  color: var(--text);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: rgba(124,110,247,.22);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-ghost:hover {
  background: rgba(124,110,247,.12);
  transform: translateY(-1px);
}

.btn-lg { padding: 1em 2.4em; font-size: 1.05rem; }
.btn-sm { padding: .6em 1.4em; font-size: .85rem; }

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

/* ---------- 5. Cards ---------- */
.card {
  background: var(--grad-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.04) 0%, transparent 60%);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-2);
}

.card-glass {
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.08);
}
[data-theme="light"] .card-glass {
  background: rgba(255,255,255,.6);
  border-color: rgba(0,0,0,.08);
}

.card-accent {
  border-color: transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              var(--grad-accent) border-box;
  border: 2px solid transparent;
}

/* ---------- 6. Navigation ---------- */
.site-header {
  position: fixed;
  top: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: var(--container);
  z-index: 1000;
  transition: top var(--dur) var(--ease);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: .75rem 1.5rem;
  background: rgba(15,15,30,.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: 0 8px 48px rgba(0,0,0,.45), 0 0 0 1px rgba(120,120,220,.08) inset;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

[data-theme="light"] .nav-inner {
  background: rgba(246,246,255,.8);
  box-shadow: 0 8px 32px rgba(0,0,0,.1), 0 0 0 1px rgba(80,80,160,.06) inset;
}

.nav-logo a {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -.02em;
}

.nav-logo img { height: 36px; width: auto; }
.nav-logo .logo-dark { display: block; }
.nav-logo .logo-light { display: none; }
[data-theme="light"] .nav-logo .logo-dark { display: none; }
[data-theme="light"] .nav-logo .logo-light { display: block; }

.nav-logo .logo-text { color: var(--text); }

.primary-nav { display: flex; align-items: center; }

.primary-nav .menu {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.primary-nav .menu a {
  display: block;
  padding: .5rem .9rem;
  border-radius: var(--r-full);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}

.primary-nav .menu a:hover,
.primary-nav .menu .current-menu-item > a {
  color: var(--text);
  background: rgba(124,110,247,.12);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: rgba(124,110,247,.08);
  color: var(--text-2);
  transition: color var(--dur-fast), background var(--dur-fast), border-color var(--dur-fast);
  cursor: pointer;
}
.theme-toggle:hover { background: rgba(124,110,247,.18); color: var(--text); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: block; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur) var(--ease);
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.menu-toggle.is-open span { background: transparent; }
.menu-toggle.is-open span::before { transform: rotate(45deg) translate(4px,4px); }
.menu-toggle.is-open span::after { transform: rotate(-45deg) translate(4px,-4px); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6,6,15,.96);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 6rem var(--space-4) var(--space-4);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

[data-theme="light"] .mobile-nav { background: rgba(246,246,255,.96); }

.mobile-nav.is-open { display: flex; }

.mobile-nav a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--r);
  transition: background var(--dur-fast);
  width: 100%;
  text-align: center;
}
.mobile-nav a:hover { background: rgba(124,110,247,.12); }

/* ---------- 7. Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + var(--space-6)) 0 var(--space-6);
  overflow: hidden;
}

/* Animated mesh blobs */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .45;
  animation: blobFloat 12s ease-in-out infinite alternate;
}
.hero-blob:nth-child(1) {
  width: 55vw; height: 55vw;
  top: -20%; left: -10%;
  background: radial-gradient(circle, rgba(124,110,247,.5) 0%, rgba(79,70,229,.1) 70%);
  animation-duration: 14s;
}
.hero-blob:nth-child(2) {
  width: 45vw; height: 45vw;
  top: 30%; right: -15%;
  background: radial-gradient(circle, rgba(34,212,133,.4) 0%, rgba(16,185,129,.05) 70%);
  animation-duration: 10s;
  animation-delay: -4s;
}
.hero-blob:nth-child(3) {
  width: 35vw; height: 35vw;
  bottom: -10%; left: 30%;
  background: radial-gradient(circle, rgba(99,102,241,.35) 0%, transparent 70%);
  animation-duration: 16s;
  animation-delay: -8s;
}

@keyframes blobFloat {
  from { transform: translate(0,0) scale(1) rotate(0deg); }
  to   { transform: translate(4%,3%) scale(1.12) rotate(8deg); }
}

/* Grid dots overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(120,120,220,.12) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem 1rem;
  border-radius: var(--r-full);
  background: rgba(124,110,247,.12);
  border: 1px solid rgba(124,110,247,.3);
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-3);
  animation: fadeInUp .8s var(--ease) both;
}

.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cta);
  animation: pulse 2s ease infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,212,133,.5); }
  50%      { box-shadow: 0 0 0 8px rgba(34,212,133,0); }
}

.hero-headline {
  margin-bottom: var(--space-3);
  animation: fadeInUp .9s var(--ease) .1s both;
}

.hero-headline .word {
  display: inline-block;
  overflow: hidden;
}
.hero-headline .word-inner {
  display: inline-block;
  animation: slideUp .8s var(--ease) both;
}
.hero-headline .word:nth-child(2) .word-inner { animation-delay: .08s; }
.hero-headline .word:nth-child(3) .word-inner { animation-delay: .16s; }
.hero-headline .word:nth-child(4) .word-inner { animation-delay: .22s; }
.hero-headline .word:nth-child(5) .word-inner { animation-delay: .28s; }
.hero-headline .word:nth-child(6) .word-inner { animation-delay: .32s; }

@keyframes slideUp {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.hero-subline {
  max-width: 52ch;
  margin-bottom: var(--space-4);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  animation: fadeInUp 1s var(--ease) .3s both;
}

.hero-actions {
  animation: fadeInUp 1s var(--ease) .4s both;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: var(--space-3);
  font-size: .85rem;
  color: var(--muted);
  animation: fadeInUp 1s var(--ease) .5s both;
}

.hero-trust-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  animation: fadeInRight 1.2s var(--ease) .2s both;
}

.hero-mockup {
  position: relative;
  width: 100%;
  max-width: 520px;
}

.mockup-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.mockup-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-accent);
}

.mockup-dots {
  display: flex;
  gap: .4rem;
  margin-bottom: var(--space-3);
}
.mockup-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.mockup-dot:nth-child(1) { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #febc2e; }
.mockup-dot:nth-child(3) { background: #28c840; }

.mockup-bar {
  height: 8px;
  border-radius: var(--r-full);
  background: var(--surface-3);
  margin-bottom: .6rem;
  overflow: hidden;
  position: relative;
}
.mockup-bar::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--grad-accent);
  border-radius: inherit;
  animation: barGrow 2.5s var(--ease) 1s both;
}
.mockup-bar:nth-child(2)::after { width: 78%; animation-delay: 1.1s; }
.mockup-bar:nth-child(3)::after { width: 55%; animation-delay: 1.2s; }
.mockup-bar:nth-child(4)::after { width: 90%; animation-delay: 1.3s; }
.mockup-bar:nth-child(5)::after { width: 42%; animation-delay: 1.4s; }

@keyframes barGrow {
  from { width: 0%; }
}

.mockup-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.mockup-stat {
  background: var(--surface-3);
  border-radius: var(--r-sm);
  padding: .75rem;
  text-align: center;
}

.mockup-stat-val {
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mockup-stat-label {
  font-size: .7rem;
  color: var(--muted);
  margin-top: .2rem;
}

/* Floating badges on mockup */
.mockup-float {
  position: absolute;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: .6rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.mockup-float-1 {
  top: -20px; right: -20px;
  animation: floatBob 4s ease-in-out infinite;
}
.mockup-float-2 {
  bottom: -16px; left: -16px;
  animation: floatBob 5s ease-in-out infinite reverse;
}

@keyframes floatBob {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-8px) rotate(1deg); }
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  animation: fadeIn 1.5s var(--ease) 1s both;
}

.hero-scroll-track {
  width: 22px;
  height: 36px;
  border: 2px solid var(--line-2);
  border-radius: var(--r-full);
  display: flex;
  justify-content: center;
  padding: 4px;
}

.hero-scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: var(--r-full);
  animation: scrollBounce 1.6s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%,100% { transform: translateY(0); opacity: 1; }
  80%      { transform: translateY(12px); opacity: 0; }
}

/* ---------- 8. Section Reveal Animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--dur-slow) var(--ease),
              transform var(--dur-slow) var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
[data-reveal-delay="4"] { transition-delay: .4s; }
[data-reveal-delay="5"] { transition-delay: .5s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ---------- 9. Value / Problem-Solution ---------- */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-6);
}
.section-header h2 { margin-bottom: var(--space-2); }
.section-header p { color: var(--text-2); }

.value-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
  margin-bottom: var(--space-6);
}

.ps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.ps-card {
  background: var(--grad-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-4);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.ps-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,110,247,.06), transparent 60%);
  pointer-events: none;
}

.ps-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); }

.ps-problem {
  font-size: .8rem;
  font-weight: 600;
  color: #f87171;
  background: rgba(248,113,113,.1);
  border: 1px solid rgba(248,113,113,.2);
  border-radius: var(--r-full);
  padding: .3rem .8rem;
  display: inline-block;
  margin-bottom: var(--space-2);
}

.ps-arrow {
  text-align: center;
  color: var(--accent);
  margin: var(--space-2) 0;
}

.ps-solution {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-1);
}

.ps-result {
  font-size: .8rem;
  color: var(--accent-2);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .4rem;
}

/* ---------- 10. Services Section ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.service-card {
  background: var(--grad-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-accent);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(124,110,247,.4);
}

.service-card:hover::before { opacity: .04; }
.service-card:hover::after  { transform: scaleX(1); }

.service-icon {
  width: 56px; height: 56px;
  background: rgba(124,110,247,.12);
  border: 1px solid rgba(124,110,247,.2);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.service-card:hover .service-icon {
  background: rgba(124,110,247,.22);
  box-shadow: 0 0 24px var(--accent-glow);
}

.service-icon svg {
  width: 28px; height: 28px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-tag {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: .4rem;
}

.service-card h3 {
  margin-bottom: var(--space-2);
  transition: color var(--dur) var(--ease);
}

.service-card:hover h3 { color: var(--accent); }

.service-card p {
  color: var(--text-2);
  font-size: .95rem;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: var(--space-3);
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.service-card:hover .service-link { opacity: 1; transform: translateX(0); }

/* ---------- 11. Process Section ---------- */
.process-section { position: relative; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  position: relative;
}

.process-grid::before {
  content: "";
  position: absolute;
  top: 36px;
  left: calc(12.5% + 1rem);
  right: calc(12.5% + 1rem);
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: .3;
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  box-shadow: 0 0 0 6px rgba(124,110,247,.08);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease-back);
}

.process-step:hover .process-num {
  box-shadow: 0 0 0 10px rgba(124,110,247,.12), var(--shadow-glow);
  transform: scale(1.1);
}

.process-step h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.process-step .result {
  display: inline-block;
  font-size: .8rem;
  color: var(--accent-2);
  font-weight: 600;
  background: rgba(34,212,133,.1);
  border-radius: var(--r-full);
  padding: .2rem .7rem;
  margin-top: .5rem;
}

/* ---------- 12. KPI / Counter Section ---------- */
.kpi-section {
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-3) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  text-align: center;
}

.kpi-card {
  padding: var(--space-4);
  position: relative;
}

.kpi-card::after {
  content: "";
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--line);
}
.kpi-card:last-child::after { display: none; }

.kpi-value {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: .5rem;
}

.kpi-label {
  font-size: .85rem;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- 13. Before/After ---------- */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: start;
}

.ba-card {
  border-radius: var(--r-lg);
  padding: var(--space-4);
  border: 1px solid var(--line);
}

.ba-card.before {
  background: rgba(248,113,113,.04);
  border-color: rgba(248,113,113,.2);
}
.ba-card.after {
  background: rgba(34,212,133,.04);
  border-color: rgba(34,212,133,.25);
}

.ba-label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.ba-card.before .ba-label { color: #f87171; }
.ba-card.after  .ba-label { color: var(--accent-2); }

.ba-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
  color: var(--text-2);
}
.ba-item:last-child { border-bottom: none; }

.ba-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ba-card.before .ba-dot { background: #f87171; }
.ba-card.after  .ba-dot { background: var(--accent-2); }

/* ---------- 14. Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.testimonial-card {
  background: var(--grad-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-4);
  position: relative;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.testimonial-quote {
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  opacity: .4;
  font-family: Georgia, serif;
  margin-bottom: .5rem;
}

.testimonial-text {
  font-size: .95rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: var(--space-3);
  font-style: italic;
}

.testimonial-author { display: flex; align-items: center; gap: .75rem; }

.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
}
.testimonial-company {
  font-size: .8rem;
  color: var(--muted);
}

/* ---------- 15. FAQ (details/summary) ---------- */
.faq-section {
  display: flex;
  flex-direction: column;
}

.faq-d {
  border-top: 1px solid var(--line);
}
.faq-d:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-d summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  transition: color var(--dur-fast);
}
.faq-d summary::-webkit-details-marker { display: none; }
.faq-d summary:hover { color: var(--accent); }
.faq-d[open] > summary { color: var(--accent); }

.faq-d-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--dur) var(--ease), stroke var(--dur-fast);
}
.faq-d[open] .faq-d-chevron {
  transform: rotate(180deg);
  stroke: var(--accent);
}

.faq-d-body {
  padding: .1rem 0 1.25rem;
  color: var(--text-2);
  font-size: .95rem;
  line-height: 1.7;
}

/* ---------- 15b. FAQ Accordion (button-based) ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-top: 1px solid var(--line);
}
.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.1rem 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  background: none;
  border: none;
  text-align: left;
  transition: color var(--dur-fast);
}
.faq-question:hover { color: var(--accent); }
.faq-question[aria-expanded="true"] { color: var(--accent); }

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--dur) var(--ease), stroke var(--dur-fast);
}
.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  stroke: var(--accent);
}

.faq-answer {
  overflow: hidden;
  height: 0;
  transition: height var(--dur) var(--ease);
}

.faq-answer-inner {
  padding: .1rem 0 1.25rem;
  color: var(--text-2);
  font-size: .95rem;
  line-height: 1.7;
}

/* ---------- 16. CTA Section ---------- */
.cta-section {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(124,110,247,.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box {
  background: var(--grad-card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: var(--space-7) var(--space-6);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-accent);
}

.cta-box h2 {
  margin-bottom: var(--space-2);
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.cta-box .lead {
  margin: 0 auto var(--space-5);
  text-align: center;
}

/* ---------- 17. Footer ---------- */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: var(--space-7) 0 var(--space-4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.footer-logo-wrap { margin-bottom: var(--space-3); }
.footer-logo { height: 40px; width: auto; }
.footer-logo-dark { display: block; }
.footer-logo-light { display: none; }
[data-theme="light"] .footer-logo-dark { display: none; }
[data-theme="light"] .footer-logo-light { display: block; }

.footer-logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}

.site-footer h3 {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: var(--space-3);
}

.site-footer ul { display: flex; flex-direction: column; gap: .5rem; }
.site-footer ul li { list-style: none; }
.site-footer ul a {
  font-size: .9rem;
  color: var(--text-2);
  transition: color var(--dur-fast);
  display: flex;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
  min-height: 36px;
  padding: 4px 0;
  text-decoration: none;
}
.site-footer ul a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contact p {
  font-size: .9rem;
  color: var(--text-2);
  margin-bottom: .5rem;
}
.footer-contact a {
  color: var(--text-2);
  transition: color var(--dur-fast);
}
.footer-contact a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-bottom p {
  font-size: .85rem;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  gap: var(--space-3);
}

.footer-legal a {
  font-size: .85rem;
  color: var(--muted);
  transition: color var(--dur-fast);
}
.footer-legal a:hover { color: var(--text); }

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,.5), var(--shadow-cta);
}

/* ---------- 18. Page Templates ---------- */
.page-content {
  padding: calc(var(--nav-h) + var(--space-7)) 0 var(--space-7);
}

.page-header {
  text-align: center;
  margin-bottom: var(--space-7);
  position: relative;
}
.page-header::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--grad-accent);
  border-radius: var(--r-full);
  margin: var(--space-3) auto 0;
}

/* Legal pages */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  background: var(--grad-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-6);
}

.legal-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
}

.legal-page h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
  color: var(--text);
}

.legal-page h3 {
  font-size: 1.05rem;
  margin-top: var(--space-3);
  margin-bottom: var(--space-1);
  color: var(--text-2);
}

.legal-page p {
  margin-bottom: var(--space-2);
  color: var(--text-2);
  line-height: 1.75;
}

.legal-page a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page ul, .legal-page ol {
  padding-left: var(--space-3);
  margin-bottom: var(--space-2);
  list-style: disc;
}
.legal-page ul li, .legal-page ol li {
  color: var(--text-2);
  margin-bottom: .4rem;
  line-height: 1.65;
}

/* Contact page */
.contact-page-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-5);
  align-items: start;
}

.contact-form label:not(.privacy-checkbox) {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: .4rem;
}

.contact-form input:not([type="checkbox"]),
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: .75rem 1rem;
  color: var(--text);
  font-size: .95rem;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  margin-bottom: var(--space-3);
  appearance: none;
}
[data-theme="light"] .contact-form input:not([type="checkbox"]),
[data-theme="light"] .contact-form textarea {
  background: var(--surface-2);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.contact-form textarea { resize: vertical; min-height: 140px; }

.privacy-checkbox {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: var(--space-3);
  cursor: pointer;
}
.privacy-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin: 0;
  flex-shrink: 0;
  border: 2px solid #00c853;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}
.privacy-checkbox input[type="checkbox"]:checked {
  background: #00c853;
  border-color: #00c853;
}
.privacy-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 7px;
  height: 12px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.privacy-checkbox input[type="checkbox"]:focus-visible {
  outline: 2px solid #00c853;
  outline-offset: 2px;
}
.privacy-checkbox span {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.5;
}
.privacy-checkbox a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-message {
  border-radius: var(--r-sm);
  padding: .75rem 1rem;
  margin-bottom: var(--space-3);
  font-size: .9rem;
  font-weight: 500;
}
.form-message.success { background: rgba(34,212,133,.1); color: #22c55e; border: 1px solid rgba(34,212,133,.3); }
.form-message.error   { background: rgba(248,113,113,.1); color: #f87171; border: 1px solid rgba(248,113,113,.3); }

.contact-info-card h2 { font-size: 1.4rem; margin-bottom: var(--space-3); }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
}
.contact-info-item:last-of-type { border-bottom: none; }
.contact-info-icon {
  width: 36px; height: 36px;
  background: rgba(124,110,247,.12);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 2; }
.contact-info-text { font-size: .9rem; color: var(--text-2); }
.contact-info-text strong { display: block; color: var(--text); font-size: .85rem; margin-bottom: .2rem; }
.contact-info-text a { color: var(--accent); }

/* Service detail */
.service-detail { display: flex; flex-direction: column; gap: var(--space-4); }
/* border-image und border-radius sind inkompatibel – border-image ignoriert border-radius.
   Stattdessen: ::before-Pseudo-Element als Gradient-Balken (gleiche Technik wie .mockup-card, .cta-box). */
.service-hero-card { border-top: none; }
.service-hero-card::before { inset: auto; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-accent); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.service-pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin: var(--space-4) 0; }
.service-pillar h3 { font-size: 1rem; margin-bottom: var(--space-2); }
.service-pillar ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.service-pillar li { font-size: .9rem; color: var(--text-2); display: flex; align-items: flex-start; gap: .5rem; }
.service-pillar li::before { content: "→"; color: var(--accent); flex-shrink: 0; font-size: .8rem; margin-top: .15em; }

/* About page */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-4); }

/* Leistungen hub */
.service-hub { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--space-4); margin-bottom: var(--space-5); }
.chip {
  display: inline-flex;
  align-items: center;
  padding: .4rem .9rem;
  border-radius: var(--r-full);
  background: var(--surface-3);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast);
}
.chip.is-active, .chip:hover {
  background: rgba(124,110,247,.15);
  border-color: var(--accent);
  color: var(--accent);
}
.service-hub-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: var(--space-3); }
.service-hub-listing { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-bottom: var(--space-5); }

/* FAQ full page */
.faq-page .faq-section { max-width: none; }

/* ---------- 19. Cookie Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 680px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: none;
  animation: slideUpFade .4s var(--ease);
}

.cookie-banner.is-visible { display: block; }

@keyframes slideUpFade {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Titel */
.cookie-banner__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-2);
}
/* Beschreibungstext */
.cookie-banner__text {
  font-size: .875rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}
.cookie-banner a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Schaltflächen – beide gleichwertig (DSGVO Art. 7) */
.cookie-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.btn-cookie {
  flex: 1;
  text-align: center;
  background: rgba(124,110,247,.15);
  color: var(--text);
  border: 1px solid var(--accent);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}
.btn-cookie:hover {
  background: rgba(124,110,247,.28);
  transform: translateY(-2px);
}

/* ---------- 20. Custom Cursor ---------- */
.cursor {
  display: none;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: screen;
}

.cursor-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%,-50%);
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast);
}

.cursor-ring {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(124,110,247,.5);
  transform: translate(-50%,-50%);
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform .1s linear, width .2s var(--ease), height .2s var(--ease), border-color .2s;
}

@media (pointer: fine) {
  .cursor { display: block; }
}

/* ---------- 21. Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 22. Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .ps-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-grid::before { display: none; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-card::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-pillar-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-page-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --space-7: 5rem; --space-6: 3.5rem; }

  .primary-nav, .nav-cta { display: none; }
  .menu-toggle { display: flex; }

  .hero { padding-top: calc(var(--nav-h) + var(--space-4)); }

  .services-grid { grid-template-columns: 1fr; }
  .ps-grid { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .service-hub { grid-template-columns: 1fr; }
  .service-hub-listing { grid-template-columns: 1fr; }
  .cta-box { padding: var(--space-5) var(--space-3); }
  .sticky-cta { display: flex; }
  .legal-page { padding: var(--space-4); }
  .value-intro { grid-template-columns: 1fr; }

  /* Tap Target Fix – Google Core Web Vitals
     Alle klickbaren Footer-Elemente erhalten min. 44×44 px Tipp-Fläche
     gemäß Google-Empfehlung für Mobile Core Web Vitals. */

  /* Footer-Navigation: Mindestabstand zwischen Listenelementen */
  .site-footer ul {
    gap: 8px;
  }

  /* Footer-Navigations-Links: Tipp-Fläche auf 44 px Höhe vergrößern */
  .site-footer ul a {
    min-height: 44px;
    padding: 10px 0;
  }

  /* Kontakt-Links (E-Mail, Telefon): Tipp-Ziele vergrößern */
  .footer-contact a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 8px;
  }

  /* Footer-Rechtliches: Schriftgröße mind. 14 px + Tipp-Ziele */
  .footer-legal {
    gap: 4px; /* Abstände zwischen Datenschutz / Impressum */
  }
  .footer-legal a {
    font-size: .875rem; /* 14 px – Mindestgröße mobile Lesbarkeit */
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 8px;
  }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .hero-badge { font-size: .75rem; }
  .inline-actions { flex-direction: column; width: 100%; }
  .inline-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- 23. Main content wrapper ---------- */
#main-content { overflow: hidden; }
