/* ============================================================
   Flow8.de — Design System v2
   Dark premium technical B2B-AI aesthetic (Flow8 CI)
   ============================================================ */

/* ---------- Fonts (self-hosted, DSGVO-konform, Variable Font) ---------- */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #02040A;
  --bg-raised: #060A12;
  --bg-card: #090E1A;
  --bg-card-2: #0B1220;
  --line: rgba(148, 180, 200, 0.10);
  --line-strong: rgba(6, 182, 212, 0.35);
  --cyan: #06B6D4;
  --cyan-deep: #0899B2;
  --cyan-soft: #67E8F9;
  --text: #F2F6F8;
  --text-2: #9AA8B5;
  --text-3: #5C6875;
  --glow: rgba(6, 182, 212, 0.14);
  --radius: 18px;
  --radius-sm: 11px;
  --font: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --w: min(1180px, calc(100vw - 48px));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(6,182,212,.32); color: #fff; }

img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-soft); }
button, a, summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap { width: var(--w); margin: 0 auto; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.028em; line-height: 1.07; }
h1 { font-size: clamp(2.7rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.15rem); }
h3 { font-size: clamp(1.22rem, 2.4vw, 1.5rem); }
p  { color: var(--text-2); }
.accent { color: var(--cyan); }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.24rem); max-width: 44rem; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--cyan);
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 30px; border-radius: 13px;
  font-family: var(--font); font-size: 1rem; font-weight: 600;
  cursor: pointer; border: 1px solid transparent;
  position: relative;
  transition: transform .35s var(--ease-expo), box-shadow .6s var(--ease),
              background .35s var(--ease-expo), border-color .35s var(--ease-expo),
              filter .6s var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(.97); }
/* Primär: Cyan-Gradient, weiße Schrift, Glow erst bei Hover (sanft eingeblendet) */
.btn-primary {
  background: linear-gradient(175deg, #2CC7E3 0%, #09A2C0 55%, #067F9B 100%);
  color: #fff;
  text-shadow: 0 1px 6px rgba(2,16,24,.35);
  border-color: rgba(160,236,250,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 2px 10px rgba(0,0,0,.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  color: #fff;
  background: linear-gradient(175deg, #3BD4EF 0%, #0AAECE 55%, #078AA8 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4),
              0 6px 28px rgba(6,182,212,.45),
              0 0 46px rgba(6,182,212,.28);
}
/* Sekundär: dunkler Gradient (fast Schwarz -> dunkles Cyan-Tint), weiße Schrift */
.btn-ghost {
  background: linear-gradient(175deg, #161D28 0%, #0B121C 55%, #081019 100%);
  border-color: rgba(148,180,200,.22);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: linear-gradient(175deg, #1B2532 0%, #0E1723 55%, #0A1620 100%);
  border-color: rgba(6,182,212,.55);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 26px rgba(6,182,212,.2);
}
.btn .arr { transition: transform .35s var(--ease-expo); }
.btn:hover .arr { transform: translate(3px, -3px); }

/* ---------- Header ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; justify-content: center;
  padding: 14px 24px 0;
  pointer-events: none;
}
.topbar .bar {
  pointer-events: auto;
  display: flex; align-items: center; gap: 24px;
  width: min(1120px, 100%);
  padding: 8px 10px 8px 22px;
  background:
    linear-gradient(120deg, rgba(8,153,178,.10) 0%, rgba(4,8,16,.55) 34%, rgba(4,8,16,.55) 66%, rgba(6,182,212,.07) 100%);
  border: 1px solid rgba(148,180,200,.14);
  border-radius: 999px;
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 8px 32px rgba(0,0,0,.35);
  transition: background .4s, box-shadow .4s, border-color .4s;
}
.topbar.scrolled .bar {
  background:
    linear-gradient(120deg, rgba(8,153,178,.13) 0%, rgba(4,8,16,.88) 34%, rgba(4,8,16,.88) 66%, rgba(6,182,212,.09) 100%);
  border-color: rgba(6,182,212,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 12px 44px rgba(0,0,0,.55);
}
.topbar .logo img {
  height: 20px; width: auto;
  transition: filter .4s var(--ease-expo), transform .4s var(--ease-expo);
}
.topbar .logo:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px rgba(6,182,212,.85)) drop-shadow(0 0 26px rgba(6,182,212,.35));
}

/* Sprachwahl: Globus mit Dropdown */
.lang-switch { position: relative; flex-shrink: 0; }
.lang-switch > button {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(6,182,212,.05); border: 1px solid var(--line);
  color: var(--text-2); cursor: pointer;
  transition: color .3s, border-color .3s, box-shadow .3s;
}
.lang-switch > button svg { width: 17px; height: 17px; }
.lang-switch:hover > button, .lang-switch:focus-within > button {
  color: var(--cyan); border-color: rgba(6,182,212,.45);
  box-shadow: 0 0 16px var(--glow);
}
.lang-menu {
  position: absolute; top: calc(100% + 12px); right: 0; min-width: 150px;
}
/* unsichtbare Hover-Bruecke ueber die Luecke zwischen Icon und Menu */
.lang-menu::before {
  content: ''; position: absolute; top: -14px; left: -10px; right: -10px; height: 14px;
}
.lang-menu {
  padding: 8px; border-radius: 13px;
  border: 1px solid rgba(148,180,200,.16);
  background: rgba(5,9,17,.97); backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .25s var(--ease-expo), transform .25s var(--ease-expo);
}
.lang-switch:hover .lang-menu, .lang-switch:focus-within .lang-menu {
  opacity: 1; transform: none; pointer-events: auto;
}
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 13px; border-radius: 8px;
  font-size: .9rem; font-weight: 600; color: var(--text-2);
}
.lang-menu a:hover { background: rgba(6,182,212,.09); color: #fff; }
.lang-menu a.on { color: var(--cyan); }
.lang-menu a.on::after { content: '✓'; font-size: .8rem; }

/* Nav-Dropdowns (Desktop) */
.topbar nav .nav-item { position: relative; display: inline-flex; }
.nav-drop {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, -6px);
  min-width: 270px; padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(148,180,200,.16);
  background: rgba(5,9,17,.97); backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease-expo), transform .25s var(--ease-expo);
}
.nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop {
  opacity: 1; transform: translate(-50%, 0); pointer-events: auto;
}
.nav-drop::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-drop a {
  display: block; padding: 10px 16px; margin: 2px 0; border-radius: 10px;
  font-size: .92rem; font-weight: 600; color: var(--text-2);
  white-space: nowrap; line-height: 1.4;
}
.nav-drop a::after { display: none; }
.nav-drop a:hover { background: rgba(6,182,212,.10); color: #fff; }
.nav-drop .grp {
  padding: 6px 16px 8px; font-size: .68rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase; color: var(--cyan);
  border-bottom: 1px solid var(--line); margin-bottom: 8px;
}
/* zweispaltige Variante (Prozess: Vergleiche | Wissen) */
.nav-drop.cols2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px;
  min-width: 560px; padding: 16px;
}
.nav-drop.cols2 .col { min-width: 0; }
.topbar nav { display: flex; gap: 26px; margin-left: auto; }
.topbar nav a {
  color: var(--text-2); font-size: .95rem; font-weight: 600;
  position: relative; padding: 4px 0;
}
.topbar nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; border-radius: 1px;
  background: linear-gradient(90deg, var(--cyan-deep), var(--cyan));
  transition: width .35s var(--ease);
}
.topbar nav a:hover { color: #fff; }
.topbar nav a:hover::after, .topbar nav a[aria-current="page"]::after { width: 100%; }
.topbar nav a[aria-current="page"] { color: #fff; }
.topbar .cta {
  margin-left: 8px; padding: 11px 22px; font-size: .92rem;
  position: relative; overflow: hidden; z-index: 0;
  border-color: transparent;
  background: transparent;
}
/* LED-Glow: rotierende Lichtkante um den Button */
.topbar .cta::before {
  content: ''; position: absolute; z-index: -2;
  left: 50%; top: 50%; width: 340%; aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(0deg);
  background: conic-gradient(from 0deg,
    transparent 0deg, transparent 288deg,
    rgba(6,182,212,.25) 322deg, rgba(103,232,249,.95) 344deg,
    rgba(6,182,212,.25) 356deg, transparent 360deg);
  animation: led-spin 3.2s linear infinite;
}
.topbar .cta::after {
  content: ''; position: absolute; z-index: -1;
  inset: 1.5px; border-radius: inherit;
  background: linear-gradient(120deg, rgba(8,18,28,.97), rgba(6,12,20,.97));
}
@keyframes led-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .topbar .cta::before { animation: none; } }
.topbar .cta:hover::after { background: linear-gradient(120deg, rgba(10,26,38,.97), rgba(8,18,28,.97)); }
.nav-burger {
  display: none; margin-left: auto;
  background: none; border: 0; cursor: pointer; padding: 10px;
}
.nav-burger span {
  display: block; width: 24px; height: 2px; background: #fff;
  margin: 5px 0; border-radius: 1px; transition: transform .3s, opacity .3s;
}
.mobile-nav {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  height: 100%;
  z-index: 99;
  background: #04070E;
  /* KEIN flex: Flex-Kinder wuerden bei Ueberlaenge gestaucht statt gescrollt */
  display: block;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 92px 24px calc(48px + env(safe-area-inset-bottom, 0px));
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  transition: opacity .3s ease, visibility 0s linear 0s;
}

/* Direkte Links */
.mobile-nav > a {
  display: block;
  font-size: 1.12rem; font-weight: 600; color: var(--text);
  padding: 16px 2px;
  border-bottom: 1px solid rgba(148,180,200,.09);
  text-decoration: none;
}
.mobile-nav > a:active { color: var(--cyan); }

/* Akkordeon-Gruppe */
.m-group { border-bottom: 1px solid rgba(148,180,200,.09); }
.m-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 16px 2px;
  background: none; border: 0; border-radius: 0;
  font-family: var(--font); font-size: 1.12rem; font-weight: 600;
  color: var(--text); text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.m-toggle .chev {
  width: 9px; height: 9px; flex-shrink: 0; margin-right: 6px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg);
  transition: transform .3s ease;
}
.m-group.open > .m-toggle { color: var(--cyan); }
.m-group.open > .m-toggle .chev { transform: rotate(-135deg); }

/* Aufklappbereich: max-height statt grid-template-rows (iOS-sicher) */
.m-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height .38s ease;
}
.m-group.open > .m-sub { max-height: 720px; }
.m-sub-inner { padding: 2px 0 14px 12px; }
.m-sub-inner .m-grp {
  font-size: .66rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--cyan);
  padding: 12px 0 6px;
}
.m-sub-inner a {
  display: block;
  font-size: .96rem; font-weight: 500; color: var(--text-2);
  padding: 11px 0;
  text-decoration: none;
}
.m-sub-inner a:active { color: #fff; }

/* Burger ueber dem Menue halten */
.topbar { z-index: 101; }

body.nav-open { overflow: hidden; position: fixed; width: 100%; }
/* Cookie-Banner darf das offene Menue nicht ueberdecken */
body.nav-open .cookie-banner { opacity: 0 !important; pointer-events: none !important; }
body.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(94vh, 1020px);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 170px 24px 110px;
  overflow: hidden;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 240px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}
.hero > * { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 20px; border-radius: 999px;
  background: rgba(10,16,28,.72);
  border: 1px solid var(--line);
  font-size: .92rem; color: var(--text-2); font-weight: 600;
  margin-bottom: 44px;
  backdrop-filter: blur(8px);
}
.hero-badge .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
.hero h1 { margin-bottom: 32px; font-weight: 500; letter-spacing: -0.018em; }
.hero h1 .accent { text-shadow: 0 0 70px rgba(6,182,212,.5); }
.hero .lead { margin: 0 auto 42px; }

/* Hero-Text Reveal: Wörter steigen aus Blur auf */
.hero h1 .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(42px) rotate(2deg);
  filter: blur(10px);
  animation: word-in 0.9s var(--ease-expo) forwards;
}
@keyframes word-in {
  to { opacity: 1; transform: none; filter: blur(0); }
}
.hero .hero-badge { opacity: 0; animation: fade-down .8s var(--ease-expo) .1s forwards; }
.hero .lead { opacity: 0; animation: fade-up .9s var(--ease-expo) 1.05s forwards; }
.hero .btn { opacity: 0; animation: fade-up .9s var(--ease-expo) 1.25s forwards; }
@keyframes fade-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
section { position: relative; padding: 110px 0; }
.section-head { max-width: 54rem; margin-bottom: 64px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head h2 { margin-bottom: 20px; }

/* Ambient Glow-Blobs */
.blob {
  position: absolute; border-radius: 50%; filter: blur(90px);
  background: radial-gradient(circle, rgba(6,182,212,.10) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
section > .wrap { position: relative; z-index: 1; }

/* reveal-on-scroll */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-expo), transform .8s var(--ease-expo); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; }
.rv-d3 { transition-delay: .24s; } .rv-d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .rv, .hero h1 .w, .hero .hero-badge, .hero .lead, .hero .btn { opacity: 1; transform: none; filter: none; transition: none; animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Logo marquee ---------- */
.logos { padding: 54px 0 70px; border-bottom: 1px solid var(--line); overflow: hidden; }
.logos .label {
  text-align: center; font-size: .82rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--text-3); font-weight: 700;
  margin-bottom: 36px;
}
.marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
/* kein flex-gap: jedes Logo traegt seinen Abstand selbst -> nahtloser -50%-Loop ohne Glitch */
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; align-items: center; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee img {
  height: 26px; width: auto; max-width: 190px; object-fit: contain;
  margin-right: 92px; flex-shrink: 0;
  opacity: .55; filter: grayscale(1) brightness(1.4);
  transition: opacity .3s, filter .3s;
}
.marquee img:hover { opacity: 1; filter: none; }

/* ---------- Works: Case-Study-Tabs ---------- */
.works-layout { display: grid; grid-template-columns: .92fr 1.08fr; gap: 54px; align-items: stretch; }
.work-tabs { display: flex; flex-direction: column; }
.work-tab {
  position: relative;
  padding: 26px 22px 26px 30px;
  border-left: 2px solid rgba(148,180,200,.14);
  cursor: pointer;
  transition: background .35s;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.work-tab::before {
  content: ''; position: absolute; left: -2px; top: 0;
  width: 2px; height: 0;
  background: linear-gradient(180deg, var(--cyan), var(--cyan-deep));
  box-shadow: 0 0 12px rgba(6,182,212,.6);
  transition: height .5s var(--ease-expo);
}
.work-tab.active::before { height: 100%; }
.work-tab.active { background: linear-gradient(90deg, rgba(6,182,212,.06), transparent 70%); }
.work-tab .brand { font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); transition: color .4s; }
.work-tab.active .brand { color: var(--cyan); }
.work-tab .metric { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 700; letter-spacing: -0.015em; color: var(--text-3); margin: 8px 0 6px; transition: color .4s; }
.work-tab.active .metric { color: var(--text); }
/* Text bleibt immer sichtbar -> kein Layout-Sprung, nur Dimmen */
.work-tab p { font-size: .95rem; margin-top: 4px; opacity: .38; transition: opacity .5s var(--ease-expo); }
.work-tab.active p { opacity: 1; }
.work-stage {
  position: relative; border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden;
  background: var(--bg-card);
  min-height: 420px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.work-stage .shot {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .7s var(--ease-expo);
}
.work-stage .shot.active { opacity: 1; }
.work-stage .shot img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.work-stage .shot.fit-contain img { object-fit: contain; background: var(--bg-card-2); }
.work-stage .shot::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 50% 0%, transparent 40%, rgba(2,4,10,.55) 100%);
}
.work-stage .shot .shot-label {
  position: absolute; left: 18px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px; border-radius: 7px;
  background: rgba(3,6,12,.72); border: 1px solid rgba(148,180,200,.16);
  backdrop-filter: blur(10px);
  font-size: .74rem; font-weight: 600; color: var(--text-2);
  letter-spacing: .02em;
}
.work-stage .shot .shot-label::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 7px rgba(6,182,212,.8);
}

/* ---------- Stats ---------- */
.stats {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(6,182,212,.06) 0%, transparent 60%),
    var(--bg-raised);
}
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat { padding: 10px 20px; position: relative; }
.stat + .stat::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 64%;
  background: linear-gradient(180deg, transparent, rgba(6,182,212,.28), transparent);
}
.stat .num {
  font-size: clamp(2.8rem, 6vw, 4.5rem); font-weight: 900; letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff 30%, var(--cyan) 130%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1.05;
}
.stat .lbl { margin-top: 10px; color: var(--text-2); font-size: .95rem; font-weight: 600; }

/* ---------- Mission ---------- */
.mission { text-align: center; }
.mission h2 { font-size: clamp(2rem, 4.8vw, 3.3rem); max-width: 58rem; margin: 0 auto 26px; }
.mission .lead { margin: 0 auto 40px; max-width: 46rem; }
/* klickbarer animierter Doppel-Chevron */
.scroll-next {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  margin: 64px auto 0; width: 46px; height: 46px;
  justify-content: center;
  border-radius: 50%; border: 1px solid rgba(6,182,212,.3);
  background: rgba(6,182,212,.05);
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.scroll-next:hover { border-color: var(--cyan); box-shadow: 0 0 22px var(--glow); transform: translateY(2px); }
.scroll-next span {
  display: block; width: 11px; height: 11px;
  border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg);
  animation: chev 1.7s var(--ease) infinite;
}
.scroll-next span:first-child { margin-bottom: -7px; animation-delay: 0s; }
.scroll-next span:last-child { animation-delay: .18s; }
@keyframes chev {
  0%, 100% { opacity: .25; transform: rotate(45deg) translate(-2px,-2px); }
  50% { opacity: 1; transform: rotate(45deg) translate(1px,1px); }
}
@media (prefers-reduced-motion: reduce) { .scroll-next span { animation: none; opacity: .8; } }

/* ---------- Cards (Warum Flow8, generisch) ---------- */
.card {
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(8,12,22,.7) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  position: relative; overflow: hidden;
  transition: transform .45s var(--ease-expo), border-color .45s, box-shadow .45s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 44px var(--glow);
}
.card h3 { margin-bottom: 12px; }
.card p { font-size: .98rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

/* Icon-Bühne mit Grid-Hintergrund + Lottie */
.icon-stage {
  position: relative;
  height: 168px; border-radius: var(--radius-sm);
  margin-bottom: 26px;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(70% 90% at 50% 50%, rgba(6,182,212,.10) 0%, transparent 70%),
    var(--bg-card-2);
  border: 1px solid rgba(148,180,200,.08);
  overflow: hidden;
}
.icon-stage::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148,180,200,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,180,200,.07) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 90% at 50% 50%, #000 30%, transparent 80%);
  mask-image: radial-gradient(70% 90% at 50% 50%, #000 30%, transparent 80%);
}
.icon-stage .lottie { width: 92px; height: 92px; position: relative; }

/* ---------- Services (animierte Workflow-Karten) ---------- */
.svc-card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(8,12,22,.7) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .45s var(--ease-expo), border-color .45s, box-shadow .45s;
}
.svc-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 60px rgba(0,0,0,.5), 0 0 50px var(--glow);
}
.svc-visual {
  height: 210px; position: relative;
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(6,182,212,.09) 0%, transparent 65%),
    var(--bg-card-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.svc-visual svg { width: 100%; height: 100%; }
.svc-body { padding: 28px 30px 32px; display: flex; flex-direction: column; flex: 1; }
.svc-body h3 { color: var(--cyan); margin-bottom: 10px; font-size: 1.3rem; }
.svc-body p { font-size: .97rem; flex: 1; }
.svc-body .more { margin-top: 20px; font-size: .92rem; font-weight: 700; color: var(--text); display: inline-flex; gap: 8px; align-items: center; }
.svc-card:hover .more { color: var(--cyan); }

/* SVG-Workflow-Animationen */
.flow-node {
  fill: rgba(7,11,20,.95); stroke: rgba(6,182,212,.55); stroke-width: 1.3;
}
.flow-label { fill: #C9EEF6; font: 600 11px 'Figtree', sans-serif; }
.flow-line { stroke: rgba(6,182,212,.3); stroke-width: 1.4; fill: none; }
.flow-pulse {
  stroke: var(--cyan); stroke-width: 2; fill: none;
  stroke-dasharray: 14 240; stroke-linecap: round;
  animation: dashmove 3.2s linear infinite;
  filter: drop-shadow(0 0 4px rgba(6,182,212,.9));
}
@keyframes dashmove { to { stroke-dashoffset: -254; } }
.flow-dot { fill: var(--cyan); }
.flow-dot.blink { animation: blink 2.2s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

/* Feature-Chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 46px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-card);
  font-size: .92rem; font-weight: 600; color: var(--text-2);
  transition: border-color .3s, color .3s, transform .3s var(--ease), box-shadow .3s;
}
.chip::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan-deep); box-shadow: 0 0 8px rgba(6,182,212,.7);
}
.chip:hover { border-color: var(--cyan); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 22px var(--glow); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.price {
  display: flex; flex-direction: column;
  padding: 34px 28px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-card), rgba(8,12,22,.6));
  position: relative;
  transition: transform .45s var(--ease-expo), border-color .45s, box-shadow .45s;
}
.price:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.price.hot {
  border-color: rgba(6,182,212,.5);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(6,182,212,.12) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-card), rgba(8,12,22,.75));
  box-shadow: 0 0 55px rgba(6,182,212,.12);
}
.price.enterprise {
  border-color: rgba(248,113,113,.28);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(220,38,38,.12) 0%, transparent 60%),
    linear-gradient(180deg, #140B12, rgba(10,8,14,.85));
}
.price.enterprise:hover { border-color: rgba(248,113,113,.45); box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 44px rgba(220,38,38,.10); }
.price .plan { font-size: .8rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
.price.hot .plan { color: var(--cyan); }
.price .badge {
  position: absolute; top: -13px; right: 24px;
  font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan-deep), var(--cyan)); color: #021018;
  box-shadow: 0 4px 18px rgba(6,182,212,.4);
}
.price .amount { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 900; letter-spacing: -0.03em; margin: 16px 0 4px; color: #fff; }
.price .amount small { font-size: .95rem; font-weight: 600; color: var(--text-3); letter-spacing: 0; }
.price .for { color: var(--text-2); font-size: .93rem; margin-bottom: 24px; min-height: 3em; }
.price .lbl-leist { font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.price ul { list-style: none; margin: 0 0 30px; flex: 1; }
.price li { padding: 8px 0 8px 28px; position: relative; color: var(--text-2); font-size: .93rem; border-bottom: 1px solid rgba(148,180,200,.06); }
.price li::before {
  content: ''; position: absolute; left: 0; top: 13px;
  width: 15px; height: 15px; border-radius: 50%;
  background: rgba(6,182,212,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306B6D4' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/9px no-repeat;
}
.price .btn { width: 100%; justify-content: center; padding: 13px 20px; font-size: .95rem; }

/* ---------- Experte ---------- */
.expert { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.expert-photo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  max-width: 420px;
}
.expert-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(2,4,10,.88) 100%);
}
.expert-photo img { width: 100%; aspect-ratio: 3/3.6; object-fit: cover; transition: transform .8s var(--ease-expo); }
.expert-photo:hover img { transform: scale(1.03); }
.expert-photo .who {
  position: absolute; left: 24px; bottom: 20px; z-index: 2;
}
.expert-photo .who .name { font-weight: 800; font-size: 1.15rem; color: #fff; }
.expert-photo .who .role { color: var(--cyan); font-size: .9rem; font-weight: 600; }
.expert-photo .li-badge {
  position: absolute; right: 20px; bottom: 20px; z-index: 3;
  width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4,8,16,.85); border: 1px solid rgba(6,182,212,.35);
  color: var(--text-2); backdrop-filter: blur(8px);
  transition: color .3s, border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.expert-photo .li-badge:hover { color: var(--cyan); border-color: var(--cyan); transform: translateY(-2px); box-shadow: 0 8px 24px var(--glow); }
.expert-photo .li-badge svg { width: 19px; height: 19px; fill: currentColor; }
.expert-points { list-style: none; margin-top: 30px; }
.expert-points li {
  padding: 13px 0 13px 34px; position: relative; color: var(--text-2);
  border-bottom: 1px solid rgba(148,180,200,.07); font-size: 1rem;
}
.expert-points li::before {
  content: ''; position: absolute; left: 0; top: 18px;
  width: 17px; height: 17px; border-radius: 50%;
  background: rgba(6,182,212,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306B6D4' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat;
}

/* ---------- Testimonials ---------- */
.t-featured {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 0;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg-card); overflow: hidden;
  margin-bottom: 22px;
}
.t-featured .visual { position: relative; min-height: 360px; }
.t-featured .visual img.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.t-featured .visual::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 40%, var(--bg-card) 100%),
              linear-gradient(0deg, rgba(2,4,10,.4), transparent 50%);
}
.t-featured .content { padding: 46px 48px; display: flex; flex-direction: column; justify-content: center; }
.t-featured .brand-logo { height: 30px; width: auto; align-self: flex-start; margin-bottom: 26px; opacity: .95; }
.t-featured blockquote { font-size: clamp(1.1rem, 1.9vw, 1.35rem); font-weight: 600; color: var(--text); line-height: 1.5; margin-bottom: 26px; }
.t-who { display: flex; align-items: center; gap: 14px; }
.t-who .avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-deep), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #021018; flex-shrink: 0;
}
.t-who .name { font-weight: 700; color: #fff; }
.t-who .role { font-size: .88rem; color: var(--text-3); }
.t-metrics { display: flex; gap: 40px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.t-metrics .m .num { font-size: 2rem; font-weight: 900; color: var(--cyan); letter-spacing: -0.03em; }
.t-metrics .m .lbl { font-size: .88rem; color: var(--text-2); }

.t-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.t-card {
  padding: 36px 32px; text-align: center;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg-card);
  transition: transform .45s var(--ease-expo), border-color .45s, box-shadow .45s;
}
.t-card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 40px var(--glow); }
.t-card .brand-logo { height: 26px; width: auto; margin: 0 auto 20px; opacity: .9; }
.t-card img[src*="logo-hob"] { height: 38px; }
.t-card .brand-text { font-size: 1.05rem; font-weight: 800; letter-spacing: .04em; color: #fff; margin-bottom: 20px; }
.t-card .stars { display: flex; justify-content: center; gap: 5px; margin-bottom: 20px; }
.t-card .stars svg { width: 19px; height: 19px; fill: var(--cyan); filter: drop-shadow(0 0 6px rgba(6,182,212,.5)); }
.t-card blockquote { font-size: .98rem; color: var(--text-2); line-height: 1.6; margin-bottom: 24px; }
.t-card .name { font-weight: 700; color: #fff; }
.t-card .role { font-size: .86rem; color: var(--text-3); }

/* ---------- Quicklinks ---------- */
.quicklinks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.quicklinks a {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 6px;
  padding: 26px 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 90% at 50% 120%, rgba(6,182,212,.07) 0%, transparent 60%),
    var(--bg-card);
  transition: border-color .35s, transform .35s var(--ease-expo), box-shadow .35s;
}
.quicklinks a .ql-title {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  color: var(--text); font-weight: 700; font-size: 1.05rem;
}
.quicklinks a .ql-title .arr { color: var(--cyan); transition: transform .35s var(--ease-expo); }
.quicklinks a .ql-sub { color: var(--text-3); font-size: .87rem; line-height: 1.45; }
.quicklinks a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan-deep), var(--cyan));
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease-expo);
}
.quicklinks a:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,0,0,.4), 0 0 30px var(--glow); }
.quicklinks a:hover::after { transform: scaleX(1); }
.quicklinks a:hover .ql-title .arr { transform: translate(3px, -3px); }

/* ---------- FAQ ---------- */
.faq { max-width: 48rem; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  padding: 0 26px;
  margin-bottom: 12px;
  transition: border-color .3s, background .3s;
}
.faq details[open] { border-color: rgba(6,182,212,.35); background: var(--bg-card-2); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 21px 0; font-weight: 700; font-size: 1.05rem; color: var(--text);
  transition: color .3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-size: 1.5rem; font-weight: 400; color: var(--cyan);
  transition: transform .35s var(--ease-expo); flex-shrink: 0; line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--cyan); }
/* JS-animierter Aufklapp: .a wird per Web Animations API in der Hoehe animiert */
.faq .a { padding: 0 0 24px; color: var(--text-2); overflow: hidden; }
.faq details.anim .a { will-change: height, opacity; }

/* ---------- Timeline (Prozess) ---------- */
.timeline { position: relative; max-width: 50rem; margin: 0 auto; padding-left: 44px; }
.timeline::before {
  content: ''; position: absolute; left: 14px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--cyan) 0%, rgba(6,182,212,.06) 100%);
}
.step { position: relative; padding: 0 0 52px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ''; position: absolute; left: -37.5px; top: 7px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--cyan);
  box-shadow: 0 0 14px rgba(6,182,212,.6);
}
.step .n { font-size: .8rem; font-weight: 800; letter-spacing: .2em; color: var(--cyan); text-transform: uppercase; }
.step h3 { margin: 8px 0 10px; }

/* ---------- Footer mit CTA-Card ---------- */
footer { padding: 40px 0 40px; }
.footer-card {
  position: relative;
  border-radius: 26px;
  border: 1px solid rgba(148,180,200,.14);
  background:
    radial-gradient(70% 110% at 50% 118%, rgba(6,182,212,.16) 0%, transparent 60%),
    linear-gradient(180deg, #070C16 0%, #05080F 100%);
  overflow: hidden;
  padding: 90px 60px 44px;
}
.footer-card::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(6,182,212,.12) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(80% 90% at 50% 110%, #000 20%, transparent 75%);
  mask-image: radial-gradient(80% 90% at 50% 110%, #000 20%, transparent 75%);
  pointer-events: none;
}
.footer-cta { text-align: center; position: relative; margin-bottom: 80px; }
.footer-cta h2 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 14px; }
.footer-cta p { margin-bottom: 38px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; position: relative; }
.foot-grid .brand img { height: 30px; margin-bottom: 18px; width: auto; }
.foot-grid .brand p { font-size: .95rem; max-width: 20rem; }
.foot-grid h4 { font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 10px; }
.foot-grid a { color: var(--text-2); font-size: .95rem; }
.foot-grid a:hover { color: var(--cyan); }
.socials { display: flex; gap: 12px; margin-top: 22px; }
.socials a {
  width: 40px; height: 40px; border-radius: 11px;
  border: 1px solid var(--line); background: rgba(6,182,212,.05);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  transition: border-color .3s, color .3s, transform .3s var(--ease), box-shadow .3s;
}
.socials a:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); box-shadow: 0 6px 20px var(--glow); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding-top: 28px; border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--text-3); flex-wrap: wrap; position: relative;
}
.foot-bottom a { color: var(--text-3); }
.foot-bottom a:hover { color: var(--cyan); }

/* ---------- Vergleichstabellen (Guides) ---------- */
.cmp-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.cmp { width: 100%; border-collapse: collapse; background: var(--bg-card); min-width: 620px; }
.cmp th, .cmp td { padding: 15px 20px; text-align: left; font-size: .95rem; border-bottom: 1px solid rgba(148,180,200,.07); }
.cmp thead th {
  font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan); background: rgba(6,182,212,.05);
  border-bottom: 1px solid rgba(6,182,212,.25);
}
.cmp td { color: var(--text-2); }
.cmp td:first-child { color: var(--text); font-weight: 600; }
.cmp tbody tr:hover { background: rgba(6,182,212,.03); }
.cmp .good { color: var(--cyan); font-weight: 700; }

/* ---------- Partner ---------- */
.partner-card { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; padding: 44px; }
.partner-card .plogo { display: flex; align-items: center; justify-content: center; }
.partner-card .plogo img { max-height: 44px; width: auto; }
.partner-card h3 { margin-bottom: 10px; }
.partner-card .visit { margin-top: 18px; display: inline-flex; }
@media (max-width: 880px) { .partner-card { grid-template-columns: 1fr; gap: 22px; text-align: left; } .partner-card .plogo { justify-content: flex-start; } }

/* ---------- Formular: bedingte Felder ---------- */
.cond-field { display: none; }
.cond-field.show { display: block; animation: fade-up .4s var(--ease-expo); }

/* ---------- Cookie-Banner ---------- */
.cookie-banner {
  position: fixed; left: 20px; bottom: 20px; z-index: 200;
  max-width: 390px;
  padding: 24px 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(148,180,200,.16);
  background:
    radial-gradient(120% 100% at 0% 120%, rgba(6,182,212,.09) 0%, transparent 60%),
    rgba(6,10,18,.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 70px rgba(0,0,0,.6);
  transform: translateY(24px); opacity: 0; pointer-events: none;
  transition: transform .5s var(--ease-expo), opacity .5s;
}
.cookie-banner.show { transform: none; opacity: 1; pointer-events: auto; }
.cookie-banner h4 { font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.cookie-banner p { font-size: .86rem; color: var(--text-2); margin-bottom: 16px; }
.cookie-banner p a { font-size: inherit; }
.cookie-banner .row { display: flex; gap: 10px; }
.cookie-banner .btn { padding: 10px 16px; font-size: .86rem; flex: 1; justify-content: center; }
@media (max-width: 560px) { .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* ---------- Prose / Legal ---------- */
.prose { max-width: 46rem; margin: 0 auto; }
.prose h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 34px; }
.prose h2 { font-size: 1.5rem; margin: 44px 0 14px; }
.prose h3 { font-size: 1.15rem; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--text-2); margin-bottom: 14px; }
.prose ul { padding-left: 22px; }
.prose strong { color: var(--text); }

.page-hero { padding: 190px 0 70px; text-align: center; position: relative; overflow: hidden; }
.page-hero h1 { margin-bottom: 20px; font-weight: 600; font-size: clamp(2.2rem, 4.6vw, 3.5rem); letter-spacing: -0.02em; }
.page-hero .lead { margin: 0 auto; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.form-card {
  padding: 40px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-card);
}
.form-card label { display: block; font-size: .88rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.form-card input, .form-card textarea, .form-card select {
  width: 100%; padding: 14px 16px; margin-bottom: 22px;
  background: rgba(2,4,10,.6); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: var(--font); font-size: .98rem;
  transition: border-color .3s, box-shadow .3s;
}
.form-card input:focus, .form-card textarea:focus, .form-card select:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(6,182,212,.15);
}
.contact-info .item { display: flex; gap: 16px; margin-bottom: 28px; }
.contact-info .item .icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
  background: rgba(6,182,212,.09); border: 1px solid rgba(6,182,212,.25);
  display: flex; align-items: center; justify-content: center; color: var(--cyan);
}

/* ---------- Node-Visual (Unterseiten) ---------- */
.node-visual {
  position: relative; aspect-ratio: 1 / .85;
  border-radius: var(--radius); border: 1px solid var(--line);
  background:
    radial-gradient(80% 80% at 70% 20%, rgba(6,182,212,.08) 0%, transparent 60%),
    var(--bg-card);
  overflow: hidden;
}
.node-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.split h2 { margin-bottom: 22px; }
.split .lead { margin-bottom: 34px; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.member .photo {
  aspect-ratio: 3/3.4; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); margin-bottom: 18px;
  background: var(--bg-card);
}
.member .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-expo); }
.member:hover .photo img { transform: scale(1.04); }
.member h3 { font-size: 1.15rem; }
.member .role { color: var(--cyan); font-size: .88rem; font-weight: 600; margin-top: 4px; }

.final-cta {
  text-align: center; padding: 150px 0;
  background:
    radial-gradient(55% 90% at 50% 100%, rgba(6,182,212,.13) 0%, transparent 60%),
    var(--bg);
  border-top: 1px solid var(--line);
  overflow: hidden; position: relative;
}
.final-cta h2 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: 18px; }
.final-cta .lead { margin: 0 auto 44px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .team-grid, .quicklinks { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 34px 0; }
  .stat:nth-child(3)::before { display: none; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .works-layout { grid-template-columns: 1fr; }
  .work-stage { min-height: 320px; }
  .t-featured { grid-template-columns: 1fr; }
  .t-featured .visual { min-height: 260px; }
  .t-featured .visual::after { background: linear-gradient(0deg, var(--bg-card) 0%, transparent 60%); }
}
@media (max-width: 880px) {
  .topbar nav, .topbar .cta { display: none; }
  .nav-burger { display: block; margin-left: auto; flex-shrink: 0; padding: 8px 4px; }
  .topbar { padding: 12px 14px 0; }
  .topbar .bar { padding: 8px 12px 8px 16px; gap: 10px; }
  .lang-switch > button { width: 32px; height: 32px; }
  .grid-3, .grid-2, .split, .contact-grid, .t-cards, .expert, .quicklinks { grid-template-columns: 1fr; }
  .split, .expert { gap: 40px; }
  .expert-photo { max-width: 100%; }
  section { padding: 80px 0; }
  .hero { min-height: 88vh; padding-top: 150px; }
  .btn { width: 100%; justify-content: center; }
  .hero .btn, .chip, .quicklinks a { width: auto; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .footer-card { padding: 70px 26px 34px; }
  .t-featured .content { padding: 34px 28px; }
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .marquee img { margin-right: 56px; }
  .t-metrics { gap: 24px; }
}

/* Footer mobil: eine Spalte, kompakt, nichts abgeschnitten */
@media (max-width: 640px) {
  .footer-card { padding: 56px 22px 26px; border-radius: 20px; }
  .footer-cta { margin-bottom: 48px; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; margin-bottom: 34px; }
  .foot-grid .brand p { max-width: none; font-size: .92rem; }
  .foot-grid h4 { margin-bottom: 10px; }
  .foot-grid li { margin-bottom: 6px; }
  .foot-grid a { font-size: .95rem; }
  .foot-bottom { font-size: .8rem; gap: 8px; padding-top: 20px; }
}
