/* =========================================================
   Brand ding — Design System
   ---------------------------------------------------------
   Akzent-Farbe = Logo-Blau. Wenn du einen anderen Akzent
   willst, ändere NUR --accent unten.
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-dark: #0a0a0c;
  --ink: #0a0a0c;
  --ink-soft: #6b6b73;
  --ink-mute: #a0a0a8;
  --line: #e7e7ec;

  --accent: #0066ff;
  --accent-glow: rgba(0, 102, 255, 0.45);
  --accent-soft: rgba(0, 102, 255, 0.08);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-soft: 0 4px 30px rgba(0, 0, 0, 0.06);
  --shadow-strong: 0 20px 80px rgba(0, 0, 0, 0.12);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --max: 1280px;
  --pad: clamp(20px, 4vw, 56px);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --font-display: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, select, textarea { font: inherit; }

/* ===== TYPO ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
}
.h-display { font-size: clamp(48px, 9vw, 140px); font-weight: 800; }
.h-1 { font-size: clamp(36px, 6vw, 84px); font-weight: 700; }
.h-2 { font-size: clamp(28px, 4vw, 56px); font-weight: 700; }
.h-3 { font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
}

.lead {
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--ink-soft);
  max-width: 64ch;
  line-height: 1.55;
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
section { padding: clamp(80px, 12vh, 160px) 0; position: relative; }
.section-tight { padding: clamp(60px, 8vh, 100px) 0; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-color: var(--line); }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px;
  letter-spacing: -0.02em;
}
.nav-logo img { height: 32px; width: auto; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  transition: color .2s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width .25s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
/* Buttons im Nav: keine Underline und korrekte Textfarbe */
.nav-links a.btn { color: white; }
.nav-links a.btn:hover { color: white; }
.nav-links a.btn::after { display: none; }
.nav-links a.btn-ghost { color: var(--ink); }
.nav-links a.btn-ghost:hover { color: var(--ink); }
.nav-mobile-toggle { display: none; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: white;
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px var(--accent-glow);
}
.btn-accent {
  background: var(--accent);
  color: white;
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-arrow {
  width: 22px; height: 22px;
  background: white;
  color: var(--ink);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
  transition: transform .25s var(--ease);
}
.btn-primary:hover .btn-arrow,
.btn-accent:hover .btn-arrow { transform: translateX(4px); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  padding: 140px var(--pad) 60px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: #f7f9ff;
  isolation: isolate;
}

/* ============================================================
   DYNAMISCHER SPOTLIGHT-HERO (Lando-Norris-Direction)
   - Vier Farbblobs driften autonom über die ganze Hero (GPU)
   - Subtiles Gitter für Tiefe
   - Logo als sanftes Anker-Motiv
   - DREI mauszentrierte Spotlights mit unterschiedlichen Lerps:
       hs1 = großer weicher Halo  (träge, 0.07)
       hs2 = mittlerer Akzent     (mittel, 0.13)
       hs3 = scharfer heller Tip  (schnell, 0.22)
     → Zusammen ergibt das einen Cursor-„Komet" mit Schweif.
   - Alles via translate3d → GPU, kein SVG-Filter mehr → flüssig.
   ============================================================ */
.hero-fluid {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #f6f8ff 0%, #eaf0ff 100%);
}

/* Gitter für leichte räumliche Tiefe */
.hf-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 30, 80, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 30, 80, 0.05) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(ellipse 80vw 75vh at 50% 50%, #000 20%, transparent 90%);
          mask-image: radial-gradient(ellipse 80vw 75vh at 50% 50%, #000 20%, transparent 90%);
  opacity: 0.55;
}

/* Autonome Farbblobs — driften über die ganze Hero */
.hf-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
}
.hf-blob.hb1 {
  width: 52vw; height: 52vw;
  top: -18%; left: -10%;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.55) 0%, rgba(0, 102, 255, 0) 70%);
  animation: hfDrift1 19s ease-in-out infinite alternate;
}
.hf-blob.hb2 {
  width: 58vw; height: 58vw;
  bottom: -25%; right: -12%;
  background: radial-gradient(circle, rgba(102, 51, 255, 0.50) 0%, rgba(102, 51, 255, 0) 70%);
  animation: hfDrift2 23s ease-in-out infinite alternate;
}
.hf-blob.hb3 {
  width: 36vw; height: 36vw;
  top: 14%; right: 14%;
  background: radial-gradient(circle, rgba(0, 180, 255, 0.45) 0%, rgba(0, 180, 255, 0) 70%);
  animation: hfDrift3 17s ease-in-out infinite alternate;
}
.hf-blob.hb4 {
  width: 30vw; height: 30vw;
  bottom: 8%; left: 22%;
  background: radial-gradient(circle, rgba(80, 220, 255, 0.32) 0%, rgba(80, 220, 255, 0) 70%);
  animation: hfDrift4 21s ease-in-out infinite alternate;
}
@keyframes hfDrift1 {
  0%   { transform: translate3d(0, 0, 0)              scale(1);    }
  100% { transform: translate3d(20vw, 18vh, 0)        scale(1.22); }
}
@keyframes hfDrift2 {
  0%   { transform: translate3d(0, 0, 0)              scale(1.1);  }
  100% { transform: translate3d(-16vw, -14vh, 0)      scale(0.9);  }
}
@keyframes hfDrift3 {
  0%   { transform: translate3d(0, 0, 0)              scale(0.95); }
  100% { transform: translate3d(-22vw, 16vh, 0)       scale(1.28); }
}
@keyframes hfDrift4 {
  0%   { transform: translate3d(0, 0, 0)              scale(1);    }
  100% { transform: translate3d(24vw, -10vh, 0)       scale(1.15); }
}

/* Logo als Anker-Motiv */
.hf-mark {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.hf-mark img {
  width: 70%;
  max-width: 840px;
  opacity: 0.07;
  mix-blend-mode: multiply;
  animation: hfMarkPulse 10s ease-in-out infinite alternate;
}
@keyframes hfMarkPulse {
  0%   { opacity: 0.06; transform: scale(1);     }
  100% { opacity: 0.11; transform: scale(1.04);  }
}

/* Spotlights: positioniert via JS-getriebene CSS-Variablen.
   translate3d → GPU; keine Sprünge weil JS jeden Frame sauber lerpt. */
.hf-spot {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
  transform: translate3d(var(--hs1x, 50vw), var(--hs1y, 50vh), 0) translate(-50%, -50%);
}
.hf-spot.hs1 {
  width: 900px; height: 900px;
  background: radial-gradient(circle,
              rgba(0, 102, 255, 0.30) 0%,
              rgba(0, 102, 255, 0.12) 30%,
              rgba(0, 102, 255, 0) 65%);
}
.hf-spot.hs2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle,
              rgba(140, 80, 255, 0.32) 0%,
              rgba(140, 80, 255, 0.10) 40%,
              rgba(140, 80, 255, 0) 70%);
  transform: translate3d(var(--hs2x, 50vw), var(--hs2y, 50vh), 0) translate(-50%, -50%);
}
.hf-spot.hs3 {
  width: 240px; height: 240px;
  background: radial-gradient(circle,
              rgba(255, 255, 255, 0.85) 0%,
              rgba(140, 200, 255, 0.50) 25%,
              rgba(0, 102, 255, 0.15) 50%,
              rgba(0, 102, 255, 0) 75%);
  filter: blur(6px);
  transform: translate3d(var(--hs3x, 50vw), var(--hs3y, 50vh), 0) translate(-50%, -50%);
}

@media (max-width: 720px) {
  .hf-spot.hs1 { width: 600px; height: 600px; }
  .hf-spot.hs2 { width: 360px; height: 360px; }
  .hf-spot.hs3 { width: 180px; height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .hf-blob, .hf-mark img { animation: none !important; }
}

/* ===== Hero-Deko-Elemente ===== */
.hero-deco {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
/* Ringe */
.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 102, 255, 0.10);
  will-change: transform;
  transform: translate(var(--px, 0px), var(--py, 0px));
}
.hero-ring.r1 {
  width: 520px; height: 520px;
  top: -120px; right: 6%;
  animation: ringRotate 50s linear infinite;
  border-width: 1px;
}
.hero-ring.r2 {
  width: 300px; height: 300px;
  bottom: 60px; left: 2%;
  animation: ringRotate 35s linear infinite reverse;
  border-color: rgba(0, 102, 255, 0.06);
}
.hero-ring.r1::before,
.hero-ring.r2::before {
  content: '';
  position: absolute;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  top: 50%; left: -3px;
  transform: translateY(-50%);
  opacity: 0.5;
}
@keyframes ringRotate {
  from { transform: translate(var(--px, 0px), var(--py, 0px)) rotate(0deg); }
  to   { transform: translate(var(--px, 0px), var(--py, 0px)) rotate(360deg); }
}
/* Schwebende Keyword-Chips */
.hero-tag {
  position: absolute;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  will-change: transform;
  transform: translate(var(--px, 0px), var(--py, 0px));
  animation: tagFloat 7s ease-in-out infinite;
}
.hero-tag.t1 { top: 18%;  right: 9%;   animation-delay: 0s;    rotate: 2deg; }
.hero-tag.t2 { top: 62%;  right: 6%;   animation-delay: 1.8s;  rotate: -2deg; }
.hero-tag.t3 { bottom: 20%; left: 5%;  animation-delay: 0.9s;  rotate: 1deg; }
@keyframes tagFloat {
  0%, 100% { translate: 0 0; }
  50%       { translate: 0 -10px; }
}
/* Akzent-Punkte */
.hero-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  will-change: transform;
  transform: translate(var(--px, 0px), var(--py, 0px));
}
.hero-dot.d1 { width: 6px;  height: 6px;  top: 25%;    right: 22%; opacity: 0.45; animation: dotBob 6s ease-in-out infinite; }
.hero-dot.d2 { width: 4px;  height: 4px;  top: 50%;    right: 35%; opacity: 0.30; animation: dotBob 8s ease-in-out infinite 1.4s; }
.hero-dot.d3 { width: 5px;  height: 5px;  bottom: 28%; left: 14%;  opacity: 0.35; animation: dotBob 7s ease-in-out infinite 0.7s; }
@keyframes dotBob {
  0%, 100% { transform: translate(var(--px,0px), var(--py,0px)) scale(1); }
  50%       { transform: translate(var(--px,0px), var(--py,0px)) scale(1.5); opacity: 0.6; }
}
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.hero-title {
  font-size: clamp(56px, 11vw, 180px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin: 0;
}
.hero-title .accent { color: var(--accent); }
.hero-title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.hero-title .word > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 1s var(--ease-out), opacity .8s ease;
}
.hero-title.in .word > span { transform: translateY(0); opacity: 1; }
.hero-title .word:nth-child(2) > span { transition-delay: .12s; }
.hero-title .word:nth-child(3) > span { transition-delay: .22s; }
.hero-title .word:nth-child(4) > span { transition-delay: .32s; }

.hero-sub {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end;
  justify-content: space-between;
  margin-top: clamp(40px, 6vh, 70px);
}
.hero-sub p { max-width: 38ch; color: var(--ink-soft); margin: 0; font-size: clamp(15px, 1.4vw, 19px); }
.hero-sub .hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute);
  display: flex; align-items: center; gap: 10px;
}
.hero-scroll-hint::before {
  content: ''; width: 30px; height: 1px; background: currentColor;
  animation: pulseLine 2s var(--ease) infinite;
}
@keyframes pulseLine {
  0%, 100% { transform: scaleX(0.3); opacity: 0.4; }
  50% { transform: scaleX(1); opacity: 1; }
}

/* ===== Marquee (logos / stats) ===== */
.marquee {
  display: flex; gap: 64px;
  overflow: hidden;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex; gap: 64px; flex-shrink: 0;
  animation: scrollX 30s linear infinite;
}
.marquee-track span {
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  white-space: nowrap; letter-spacing: 0.02em;
}
.marquee-track span .dot { color: var(--accent); margin: 0 14px; }
@keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ===== STATS ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: clamp(60px, 10vh, 120px) 0;
  border-top: 1px solid var(--line);
}
.stat {
  display: flex; flex-direction: column;
  gap: 6px;
}
.stat-num {
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-num .plus { color: var(--accent); }
.stat-label {
  font-size: 13.5px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* ===== Section heading ===== */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 30px;
  margin-bottom: clamp(40px, 6vh, 70px);
  flex-wrap: wrap;
}
.section-head .left { max-width: 60%; }
.section-head .left h2 { margin-top: 18px; }
.section-head .right { display: flex; gap: 12px; }

/* ===== PORTFOLIO ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.case {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 4/5;
  display: flex; flex-direction: column;
  isolation: isolate;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), opacity .8s var(--ease);
  opacity: 0;
  transform: translateY(60px);
  will-change: transform;
}
.case.in {
  opacity: 1;
  transform: translateY(0);
}
.case:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18), 0 0 50px var(--accent-glow);
}
/* sanftes Schweben während in view */
.case.in::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.08) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 1.4s var(--ease);
}
.case.in:hover::after { transform: translateX(100%); }
/* Stagger via JS-CSS-Variable */
.case { transition-delay: calc(var(--idx, 0) * 90ms); }
.case-1 { grid-column: span 7; aspect-ratio: 16/11; }
.case-2 { grid-column: span 5; aspect-ratio: 16/11; }
.case-3 { grid-column: span 4; }
.case-4 { grid-column: span 4; }
.case-5 { grid-column: span 4; }

.case-visual {
  position: absolute; inset: 0; z-index: 0;
  transition: transform .8s var(--ease);
  background: linear-gradient(135deg, var(--accent) 0%, #001a5c 100%);
}
.case:hover .case-visual { transform: scale(1.04); }
.case-visual.gradient-2 { background: linear-gradient(135deg, #0a0a0c 0%, #2a2a32 100%); }
.case-visual.gradient-3 { background: linear-gradient(135deg, #1a4fff 0%, #6a00ff 100%); }
.case-visual.gradient-4 { background: linear-gradient(135deg, #0a0a0c 0%, #0066ff 100%); }
.case-visual.gradient-5 { background: linear-gradient(135deg, #f5f5f7 0%, #d9d9e0 100%); }
.case-visual.gradient-6 { background: linear-gradient(135deg, #050518 0%, #0066ff 80%); }

.case-visual::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(0,0,0,0.2) 0%, transparent 50%);
  mix-blend-mode: overlay;
}
.case-visual::after {
  content: attr(data-tag);
  position: absolute; left: 24px; top: 24px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.9);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
}
.case-visual.gradient-5::after { color: var(--ink); background: rgba(255,255,255,0.7); }

.case-content {
  position: relative; z-index: 2;
  margin-top: auto;
  padding: 28px;
  color: white;
}
.case-visual.gradient-5 ~ .case-content { color: var(--ink); }

/* Video-Case (für das Freitag-posten-Video im Portfolio) */
.case-visual.is-video {
  background: #050505;
}
.case-visual.is-video video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform .8s var(--ease);
}
.case:hover .case-visual.is-video video { transform: scale(1.04); }
.case-visual.is-video::after {
  content: attr(data-tag);
  position: absolute; left: 24px; top: 24px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.95);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  z-index: 2;
}
.case-visual.is-video::before {
  background:
    linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55) 100%);
  mix-blend-mode: normal;
}

.case-content h3 {
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.case-content .meta {
  font-size: 13px; opacity: 0.8;
  display: flex; gap: 14px;
}
.case-content .meta span:not(:last-child)::after {
  content: '•'; margin-left: 14px; opacity: 0.5;
}

/* ===== Services ===== */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 36px 30px 30px;
  transition: background .3s var(--ease), transform .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.service:hover {
  background: var(--ink);
  color: white;
  transform: translateY(-4px);
}
.service:hover .service-num { color: var(--accent); }

/* Glow-Variante (für "Wie wir arbeiten") — Text bleibt sichtbar, Box glüht blau */
.service.glow {
  background: white;
  border: 1.5px solid var(--line);
  transition: border-color .35s var(--ease), box-shadow .45s var(--ease),
              transform .35s var(--ease), background .35s var(--ease);
}
.service.glow:hover {
  background: white;
  color: var(--ink);
  border-color: var(--accent);
  box-shadow:
    0 0 0 4px var(--accent-soft),
    0 18px 50px var(--accent-glow),
    0 0 80px rgba(0, 102, 255, 0.18);
  transform: translateY(-6px);
}
.service.glow:hover .service-num { color: var(--accent); }
.service.glow::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 100%, var(--accent-soft) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}
.service.glow:hover::after { opacity: 1; }
.service-num {
  font-size: 13px; font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.service h3 {
  font-size: 24px; font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.service p {
  margin: 0; font-size: 14.5px;
  opacity: 0.75;
  line-height: 1.6;
}

/* ===== Bundles ===== */
.bundles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bundle {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 36px;
  display: flex; flex-direction: column;
  gap: 18px;
  position: relative;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.bundle:hover { border-color: var(--ink); transform: translateY(-4px); }
.bundle.featured {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.bundle.featured::before {
  content: 'BELIEBT';
  position: absolute; top: -10px; left: 36px;
  background: var(--accent);
  color: white;
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  padding: 6px 12px;
  border-radius: 999px;
}
.bundle-name { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.bundle-price { font-size: 38px; font-weight: 800; letter-spacing: -0.04em; }
.bundle-price small { font-size: 14px; font-weight: 500; opacity: 0.6; letter-spacing: 0; }
.bundle ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.bundle ul li { display: flex; align-items: flex-start; gap: 10px; opacity: 0.85; }
.bundle ul li::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
.bundle .btn { margin-top: auto; }

/* ===== Frame zoom section ===== */
.frame-zoom {
  position: relative;
  padding: 0;
}
.frame-zoom-inner {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

/* ===== Frame-Zoom: Außenbereich-Deko ===== */
.fz-outer {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
/* Dot-Grid-Muster im Hintergrund */
.fz-outer::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.13) 1.5px, transparent 1.5px);
  background-size: 38px 38px;
  opacity: 0.55;
}
/* Subtile Verlaufs-Vignette damit Mitte clean bleibt */
.fz-outer::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(
    ellipse 55vw 52vh at 50% 50%,
    rgba(255,255,255,0.92) 0%,
    transparent 100%
  );
}
/* Schwebende Keyword-Labels um die Box */
.fz-tag {
  position: absolute;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.22);
  white-space: nowrap;
  will-change: transform;
  transform: translateY(var(--sp, 0px));
  transition: transform 0.05s linear;
}
.fz-tag.ft1 { top: 12%;  left: 5%;   rotate: -3deg;  }
.fz-tag.ft2 { top: 10%;  right: 5%;  rotate: 2deg;   }
.fz-tag.ft3 { bottom: 14%; left: 6%; rotate: 2deg;   }
.fz-tag.ft4 { bottom: 12%; right: 5%; rotate: -2deg; }
.fz-tag.ft5 { top: 50%;  left: 3%;   rotate: -90deg; transform-origin: left center; translate: 0 -50%; }
.fz-tag.ft6 { top: 50%;  right: 3%;  rotate: 90deg;  transform-origin: right center; translate: 0 -50%; }
/* Weiche Farb-Orbs in den Ecken */
.fz-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.30;
}
.fz-orb.fo1 { width: 340px; height: 340px; top: -60px;    left: -60px;    background: rgba(0, 102, 255, 0.35); animation: orbDrift1 18s ease-in-out infinite; }
.fz-orb.fo2 { width: 280px; height: 280px; bottom: -50px; right: -50px;   background: rgba(100, 60, 255, 0.30); animation: orbDrift2 22s ease-in-out infinite; }
@keyframes orbDrift1 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(40px, 30px); }
}
@keyframes orbDrift2 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(-30px, -25px); }
}
.frame-zoom-box {
  position: relative;
  z-index: 3;
  width: 60vw;
  max-width: 800px;
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a0c 0%, #001a5c 50%, var(--accent) 100%);
  transform: scale(var(--zoom, 0.5));
  transition: transform .1s linear;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 30px 80px rgba(0, 102, 255, 0.25);
}

/* ============================================================
   FRAME-ZOOM HINTERGRUND-TEXT
   - Mehrreihiger, endlos scrollender Text der HINTER der blauen Box
     durchläuft. Die Box hat ein höheres z-index, sodass der Text
     visuell hinter ihr verschwindet.
   - Reihen wechseln in der Richtung ab (links/rechts).
   ============================================================ */
.fz-bg-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: space-evenly;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.fz-bg-row {
  display: flex;
  white-space: nowrap;
  font-size: clamp(48px, 9vw, 140px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: rgba(10, 10, 20, 0.06);
  text-shadow:
    0 0 32px rgba(0, 102, 255, 0.10),
    0 0 80px rgba(0, 102, 255, 0.06);
  animation: fzBgScroll var(--dur, 30s) linear infinite;
  will-change: transform;
}
.fz-bg-row.rev { animation-direction: reverse; }
.fz-bg-row span { padding-right: 40px; }
/* Mittlere Reihe etwas prominenter & blau-getönt */
.fz-bg-row:nth-child(3) {
  color: rgba(0, 102, 255, 0.10);
  text-shadow:
    0 0 28px rgba(0, 102, 255, 0.18),
    0 0 70px rgba(0, 102, 255, 0.10);
}
@keyframes fzBgScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .fz-bg-row { animation: none !important; }
}
.frame-zoom-box h2 {
  position: relative;
  z-index: 4;
  color: white;
  font-size: clamp(40px, 6vw, 100px);
  text-align: center;
  letter-spacing: -0.03em;
  padding: 0 40px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.frame-zoom-spacer { height: 200vh; }

/* Hintergrund-Text-Layer (Lando-style „lärm" hinter dem Titel) */
.fz-marquees {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: space-around;
  pointer-events: none;
  z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.fz-mq {
  display: flex;
  white-space: nowrap;
  font-size: clamp(36px, 8vw, 110px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.07);
  animation: fzScroll var(--dur, 30s) linear infinite;
  will-change: transform;
}
.fz-mq.alt {
  color: rgba(0, 102, 255, 0.22);
}
.fz-mq.rev { animation-direction: reverse; }
.fz-mq span { padding-right: 50px; }
@keyframes fzScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Soft blue radial pulses */
.fz-blob {
  position: absolute;
  width: 60%; height: 80%;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 2;
  pointer-events: none;
  opacity: 0.55;
}
.fz-blob.b1 { background: rgba(0, 102, 255, 0.5); top: -10%; left: -10%; animation: fzFloat1 14s ease-in-out infinite; }
.fz-blob.b2 { background: rgba(120, 60, 255, 0.4); bottom: -20%; right: -10%; animation: fzFloat2 18s ease-in-out infinite; }
@keyframes fzFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20%, 15%) scale(1.15); }
}
@keyframes fzFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-15%, -10%) scale(1.2); }
}

/* Grain / noise overlay */
.fz-grain {
  position: absolute; inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.25;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1   0 0 0 0 1   0 0 0 0 1   0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}

/* ===== Animated text reveal ===== */
.reveal {
  --reveal-delay: 0ms;
}
.reveal .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.reveal .word > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform .9s var(--ease-out), opacity .6s ease;
  transition-delay: calc(var(--reveal-delay) + var(--i, 0) * 40ms);
}
.reveal.in .word > span { transform: translateY(0); opacity: 1; }

.fade-up { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.fade-up.in { opacity: 1; transform: translateY(0); }

/* ===== CTA banner ===== */
.cta-banner {
  background: var(--ink);
  color: white;
  border-radius: var(--radius-lg);
  padding: clamp(50px, 8vw, 100px);
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, var(--accent-soft) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0, 102, 255, 0.25) 0%, transparent 50%);
  z-index: 0;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 {
  font-size: clamp(36px, 6vw, 80px);
  letter-spacing: -0.035em;
  max-width: 20ch;
  line-height: 1.05;
}

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: white;
  padding: 80px var(--pad) 30px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 56px; width: auto; margin-bottom: 18px; border-radius: 12px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 14px; max-width: 36ch; }
.footer h4 {
  font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.5);
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: rgba(255,255,255,0.85); font-size: 14px; }
.footer ul a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--max);
  margin: 30px auto 0;
  display: flex; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,0.45);
  flex-wrap: wrap; gap: 10px;
}

/* ===== FORM ===== */
.form-page {
  padding: 140px var(--pad) 100px;
  max-width: 980px;
  margin: 0 auto;
}
.form-page header { margin-bottom: 50px; }
.form-page h1 {
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row.full { grid-column: span 2; }
.form-row label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.form-row label .req { color: var(--accent); }
.form-row input,
.form-row select,
.form-row textarea {
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s var(--ease), background .2s var(--ease);
  font-family: inherit;
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--accent-soft);
}
.form-row.has-error input,
.form-row.has-error select,
.form-row.has-error textarea {
  border-color: #ff4444;
}
.form-row .err {
  display: none;
  font-size: 12px;
  color: #ff4444;
  margin-top: 4px;
}
.form-row.has-error .err { display: block; }

.form-submit-row {
  grid-column: span 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  margin-top: 12px;
}
.form-consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--ink-soft);
  max-width: 60ch;
}
.form-consent input { margin-top: 3px; }
.form-success {
  display: none;
  padding: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  text-align: center;
}
.form-success h3 { font-size: 28px; margin-bottom: 10px; color: var(--accent); }
.form-success.show { display: block; }
.form-hide { display: none; }

/* ===== Page header (sub-pages) ===== */
.page-header {
  padding: 160px var(--pad) 60px;
  max-width: var(--max);
  margin: 0 auto;
}
.page-header .eyebrow { margin-bottom: 18px; }
.page-header h1 {
  font-size: clamp(44px, 7vw, 100px);
  letter-spacing: -0.04em;
}

/* ===== Legal pages ===== */
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px var(--pad) 120px;
}
.legal h2 { font-size: 24px; margin-top: 40px; margin-bottom: 10px; }
.legal h3 { font-size: 18px; margin-top: 24px; margin-bottom: 6px; }
.legal p, .legal li { font-size: 15px; color: var(--ink-soft); line-height: 1.7; }
.legal a { color: var(--accent); text-decoration: underline; }
.legal .placeholder {
  background: #fff7e0;
  border: 1px dashed #f5b800;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
  color: #7a5500;
}

/* ===== Dashboard ===== */
.dash-body {
  background: #f5f5f7;
  min-height: 100vh;
}
.dash-login {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  padding: 40px;
}
.dash-login-card {
  background: white;
  padding: 50px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-strong);
  max-width: 420px;
  width: 100%;
}
.dash-login-card img { height: 40px; margin-bottom: 30px; width: auto; }
.dash-login-card h1 { font-size: 28px; margin-bottom: 6px; }
.dash-login-card p { font-size: 14px; color: var(--ink-soft); margin-bottom: 24px; }
.dash-login-card .err {
  font-size: 13px; color: #ff4444; margin-top: 10px;
  display: none;
}
.dash-login-card.has-error .err { display: block; }

.dash-shell { display: none; }
.dash-shell.show { display: block; }
.dash-top {
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 16px 32px;
  display: flex; justify-content: space-between; align-items: center;
}
.dash-top .left { display: flex; gap: 14px; align-items: center; }
.dash-top img { height: 28px; }
.dash-top .right { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-soft); }

.dash-main { padding: 32px; max-width: 1400px; margin: 0 auto; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi {
  background: white;
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--line);
}
.kpi-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.kpi-value { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; line-height: 1; }
.kpi-trend { font-size: 12px; margin-top: 8px; color: #10a85a; font-weight: 600; }
.kpi-trend.down { color: #ff4444; }

.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.dash-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--line);
}
.dash-card h3 { font-size: 16px; margin-bottom: 18px; }
.requests-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.requests-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); padding: 8px 10px; border-bottom: 1px solid var(--line); font-weight: 600; }
.requests-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); }
.requests-table tr:hover { background: var(--bg-soft); }
.req-pill {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent);
}
.dash-chart {
  height: 220px; display: flex; align-items: end; gap: 6px;
  padding-top: 20px;
}
.dash-chart .bar {
  flex: 1;
  background: linear-gradient(180deg, var(--accent), #0044bb);
  border-radius: 6px 6px 0 0;
  min-height: 4px;
  position: relative;
  transition: transform .25s var(--ease);
}
.dash-chart .bar:hover { transform: scaleY(1.05); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .services, .bundles { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(6, 1fr); }
  .case-1, .case-2, .case-3, .case-4, .case-5 { grid-column: span 6; aspect-ratio: 4/5; }
  .dash-kpis { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-row.full { grid-column: span 1; }
  .form-submit-row { grid-column: span 1; flex-direction: column; align-items: stretch; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-mobile-toggle {
    display: inline-flex; padding: 10px 14px;
    border: 1px solid var(--line); border-radius: 999px;
    font-size: 13px; font-weight: 600;
  }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head .left { max-width: 100%; }
}
