/**
 * novaflow Website V3
 *
 * Farben, Flächen und Text laufen ausschließlich über die Custom Properties in :root.
 * Ein späterer Dark Mode definiert nur diese Tokens um (z. B. über [data-theme="dark"]
 * oder prefers-color-scheme) und tauscht das Logo gegen die weiße Variante.
 */

/* ── Schriften ─────────────────────────────────────────────── */
@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/OpenSans-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/OpenSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Comfortaa";
  src: url("/assets/fonts/Comfortaa-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Comfortaa";
  src: url("/assets/fonts/Comfortaa-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ────────────────────────────────────────────────── */
:root {
  /* Marke */
  --green: #01f062;
  --green-60: #67f6a1;
  --green-30: #b3fad0;
  --green-bright: #0bd992;
  --blue: #3475dc;
  --blue-30: #c2d6f4;
  --blue-ink: #2a63bf;
  --blue-ink-hover: #1d4f9f;
  --grad: linear-gradient(135deg, var(--green), var(--blue));

  /* Flächen und Text – für einen Dark Mode umdefinieren */
  --bg: #f8f9fb;
  --surface: #fff;
  --surface-hover: #f4f5f7;
  --panel: rgba(255, 255, 255, 0.85);
  --panel-2: rgba(255, 255, 255, 0.6);
  --glass: rgba(255, 255, 255, 0.74);
  --glass-border: rgba(255, 255, 255, 0.8);
  --header-bg: rgba(248, 249, 251, 0.78);
  --text: #262626;
  --text-muted: rgba(0, 0, 0, 0.6);
  --text-subtle: rgba(0, 0, 0, 0.42);
  --border: rgba(0, 0, 0, 0.08);
  --border-control: rgba(0, 0, 0, 0.12);
  --border-strong: rgba(0, 0, 0, 0.24);
  --icon-bg-green: var(--green-30);
  --icon-bg-blue: var(--blue-30);
  --shimmer-green: rgba(1, 240, 98, 0.06);
  --shimmer-blue: rgba(52, 117, 220, 0.06);

  /* Dunkle Akzentflächen (Kachel „Unser Ziel“, Kontakt) */
  --dark: #262626;
  --on-dark: #fff;
  --on-dark-muted: rgba(255, 255, 255, 0.86);
  --on-dark-subtle: rgba(255, 255, 255, 0.72);
  --on-dark-line: rgba(255, 255, 255, 0.14);
  --on-dark-accent: var(--green-60);

  /* Status */
  --ok: #2b9a6f;
  --ok-soft: rgba(43, 154, 111, 0.06);
  --danger: #e5383b;
  --danger-soft: rgba(229, 56, 59, 0.06);

  /* Tiefe, Bewegung, Typo, Raster */
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-button: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-cta: 0 4px 16px rgba(1, 240, 98, 0.25);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: Comfortaa, ui-rounded, system-ui, sans-serif;
  --font-sans: "Open Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 10px;
  --radius-control: 12px;
  --radius-md: 14px;
  --layout-max: 1100px;
  --gutter: 40px;
  --header-h: 92px;
}

/* ── Basis ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  color: inherit;
}

p,
ul,
ol {
  margin: 0;
}

b,
strong {
  font-weight: 700;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue-ink);
}

a:hover {
  color: var(--blue-ink-hover);
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.container {
  position: relative;
  width: 100%;
  max-width: calc(var(--layout-max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  position: relative;
  padding: 112px 0;
}

.section--flush-top {
  padding-top: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 700 13px/1.4 var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 6px;
  border-radius: 6px;
  background: var(--grad);
}

.kicker {
  font: 700 12px/1.4 var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-title {
  max-width: 820px;
  margin-top: 18px;
  font-size: clamp(30px, 3.3vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.light {
  font-weight: 300;
}

.intro {
  max-width: 720px;
  margin-top: 20px;
  font-size: 19px;
  line-height: 1.7;
}

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

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-control);
  font: 700 15px/1.2 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}

.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn:disabled {
  cursor: progress;
  opacity: 0.7;
}

.btn--primary {
  background: var(--green);
  color: var(--text);
  box-shadow: var(--shadow-cta);
}

.btn--primary:hover {
  background: var(--green-bright);
  color: var(--text);
  transform: translateY(-1px);
}

.btn--ghost {
  background: var(--panel-2);
  color: var(--text);
  border-color: var(--blue);
}

.btn--ghost:hover {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-button);
}

.btn--sm {
  min-height: 44px;
  padding: 10px 18px;
}

.btn--block {
  width: 100%;
}

/* ── Header ────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.logo {
  display: block;
  flex: none;
  border-radius: 4px;
}

.logo img {
  height: 60px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 15px;
  line-height: 1;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.menu-btn .icon-close,
.menu-btn[aria-expanded="true"] .icon-open {
  display: none;
}

.menu-btn[aria-expanded="true"] .icon-close {
  display: block;
}

.mobile-nav {
  display: none;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 880px;
  overflow: hidden;
}

.hero-atmo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(55% 60% at 0% 0%, var(--shimmer-green), transparent 70%),
    radial-gradient(45% 70% at 100% 45%, var(--shimmer-blue), transparent 70%);
}

.flow {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

.flow.is-ready {
  opacity: 1;
}

.flow--glow {
  filter: blur(38px);
  transform: translateZ(0);
}

.flow--glow.is-ready {
  opacity: 0.42;
}

.flow-line {
  fill: none;
  stroke-linecap: round;
}

.flow-line--solid {
  stroke-width: 1.2;
  opacity: 0.34;
}

.flow-line--faint {
  stroke-width: 1;
  opacity: 0.18;
}

.flow-line--dots {
  stroke-width: 2.4;
  stroke-dasharray: 0.1 9.9;
  opacity: 0.85;
  animation: flow-dash 4s linear infinite;
}

.flow-line--dash {
  stroke-width: 1.4;
  stroke-dasharray: 36 14;
  opacity: 0.4;
  animation: flow-dash 9s linear infinite;
}

.flow-line--slow {
  animation-duration: 7s;
}

@keyframes flow-dash {
  to {
    stroke-dashoffset: -200;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 104px;
  padding-bottom: 40px;
}

.hero-title {
  max-width: 820px;
  margin-top: 24px;
  font-size: clamp(40px, 4.9vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.nowrap {
  white-space: nowrap;
}

.swash {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.swash svg {
  position: absolute;
  left: -3%;
  bottom: -0.24em;
  width: 106%;
  height: 0.3em;
  overflow: visible;
  animation: swash-draw 1.4s var(--ease) 0.5s both;
}

@keyframes swash-draw {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

.lead {
  max-width: 600px;
  margin-top: 28px;
  font-size: 21px;
  line-height: 1.7;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.stats-wrap {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-bottom: 56px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 30px;
}

.stat + .stat {
  border-left: 1px solid var(--border);
}

.stat-num {
  font: 700 48px/1.1 var(--font-sans);
  letter-spacing: -0.01em;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 15px;
  line-height: 1.45;
}

/* ── Kundenlogos ───────────────────────────────────────────── */
.logos {
  padding: 36px 0 48px;
}

.logos-label {
  margin-bottom: 28px;
  text-align: center;
  font: 700 13px/1.4 var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-set {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
}

.marquee img {
  width: auto;
  height: 44px;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.45;
  transition: filter 0.3s, opacity 0.3s;
}

.marquee img:hover {
  filter: none;
  opacity: 1;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ── Leistungen ────────────────────────────────────────────── */
.svc {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 56px;
}

.svc-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Ohne JavaScript werden alle Leistungen untereinander gezeigt, die Liste entfällt */
.svc:not(.is-enhanced) {
  grid-template-columns: minmax(0, 1fr);
}

.svc:not(.is-enhanced) .svc-tabs {
  display: none;
}

.svc:not(.is-enhanced) .svc-panel {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.tab {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.tab:hover {
  background: var(--panel-2);
}

.tab[aria-selected="true"] {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.tab-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  font: 700 15px/1 var(--font-display);
  color: var(--text-muted);
  transition: color 0.25s;
}

.tab[aria-selected="true"] .tab-num {
  border-color: transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box;
  box-shadow: var(--shadow-cta);
  color: var(--text);
}

.tab-title {
  display: block;
  font: 700 17px/1.35 var(--font-display);
}

.tab-sub {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.svc-panel {
  position: relative;
  min-height: 560px;
  padding: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.pane {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pane:focus-visible {
  outline-offset: 12px;
  border-radius: var(--radius-control);
}

.pane.is-entering {
  animation: pane-in 0.6s var(--ease) both;
}

@keyframes pane-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.pane-head {
  display: flex;
  align-items: center;
  gap: 24px;
}

.pane-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad) border-box;
}

.pane-icon img {
  width: 64px;
  height: 64px;
}

.pane-head > div {
  min-width: 0;
}

.pane h3 {
  margin-top: 6px;
  font-size: 28px;
  line-height: 1.25;
  overflow-wrap: break-word;
}

.pane-sub {
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
}

.pane-body {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.75;
}

.checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  gap: 12px;
  font-size: 16px;
  line-height: 1.55;
}

.check {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--green-30);
}

.check svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #262626;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pane-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.pane-foot p {
  font-size: 16px;
  color: var(--text-muted);
}

/* ── Warum novaflow ────────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.span-2 {
  grid-column: span 2;
}

.span-3 {
  grid-column: span 3;
}

.span-4 {
  grid-column: span 4;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

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

.tile-ic {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  border-radius: var(--radius-control);
  background: var(--icon-bg-green);
  color: #262626;
}

.tile-ic--blue {
  background: var(--icon-bg-blue);
}

.tile-ic .icon {
  width: 24px;
  height: 24px;
}

.tile h3 {
  font-size: 19px;
  line-height: 1.4;
}

.tile p {
  font-size: 16px;
  line-height: 1.7;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.3;
}

.tile--dark {
  min-height: 400px;
  padding: 40px;
  overflow: hidden;
  border-color: transparent;
  background: var(--dark);
  color: var(--on-dark);
}

.tile--dark:hover {
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.18);
}

.tile-dark-in {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 58%;
}

.tile--dark .kicker {
  color: var(--on-dark-subtle);
}

.tile--dark p {
  color: var(--on-dark-muted);
}

.quote {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 300;
  line-height: 1.22;
}

.quote b {
  font-weight: 700;
}

.chip--dark {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: var(--on-dark);
}

/* ── Team ──────────────────────────────────────────────────── */
.team-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: end;
}

.team-head > p {
  font-size: 19px;
  line-height: 1.7;
}

.team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.person {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

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

.person-top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.avatar {
  flex: none;
  width: 88px;
  height: 88px;
  padding: 3px;
  border-radius: 50%;
  background: var(--grad);
}

.avatar img {
  width: 100%;
  height: 100%;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--surface);
  object-fit: cover;
}

.person h3 {
  font-size: 19px;
  line-height: 1.4;
}

.person-tags {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.bio {
  font-size: 16px;
  line-height: 1.7;
}

.network {
  border: 1.5px dashed rgba(0, 0, 0, 0.16);
  background: var(--panel-2);
  box-shadow: none;
}

.net {
  width: 180px;
  height: 72px;
}

.net-lines {
  fill: none;
  stroke: rgba(0, 0, 0, 0.18);
  stroke-width: 1.5;
}

.net-node {
  fill: var(--surface);
  stroke: url(#grad-net);
  stroke-width: 2;
}

/* ── Ablauf ────────────────────────────────────────────────── */
.band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.steps-wrap {
  position: relative;
  margin-top: 64px;
}

.steps-line {
  position: absolute;
  top: 0;
  left: calc(100% / 12);
  z-index: 0;
  width: calc(100% - 100% / 6);
  height: 60px;
  overflow: visible;
}

.steps-base {
  fill: none;
  stroke-width: 3;
  opacity: 0.3;
}

.steps-pulse {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 70 930;
  animation: steps-pulse 5.5s linear infinite;
}

@keyframes steps-pulse {
  from {
    stroke-dashoffset: 70;
  }
  to {
    stroke-dashoffset: -930;
  }
}

.steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.step-dot {
  flex: none;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 3px solid transparent;
  border-radius: 50%;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box;
  box-shadow: var(--shadow-cta);
  font: 700 20px/1 var(--font-display);
  color: var(--text);
  transition: transform 0.35s var(--ease);
}

.step:hover .step-dot {
  transform: scale(1.08);
}

.step-dot svg {
  width: 34px;
  height: 17px;
  overflow: visible;
}

.inf-base {
  fill: none;
  stroke: rgba(0, 0, 0, 0.14);
  stroke-width: 2.5;
}

.inf-run {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 28 72;
  animation: inf-orbit 2.8s linear infinite;
}

@keyframes inf-orbit {
  to {
    stroke-dashoffset: -100;
  }
}

.step-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.step-label {
  max-width: 170px;
  font-size: 15px;
  line-height: 1.45;
}

.after-steps {
  gap: 12px;
  margin-top: 56px;
}

.after-steps p {
  font-size: 15px;
  color: var(--text-muted);
}

/* ── Kontakt ───────────────────────────────────────────────── */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: stretch;
}

/* Unten bleiben 190px frei – dort läuft die Welle (js/flow.js, Szene "talk") */
.talk {
  position: relative;
  padding: 48px 48px 190px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--dark);
  color: var(--on-dark);
}

.talk-in {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.talk .eyebrow {
  color: var(--on-dark-subtle);
}

.talk h2 {
  font-size: clamp(28px, 2.8vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.talk p {
  color: var(--on-dark-muted);
}

.facts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.facts li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--on-dark-muted);
}

.facts .icon {
  color: var(--on-dark-accent);
}

.direct {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 22px;
  border-top: 1px solid var(--on-dark-line);
}

.direct a,
.direct span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.direct a {
  font-size: 17px;
  font-weight: 700;
  color: var(--on-dark);
  text-decoration: none;
}

.direct a:hover {
  color: var(--green-30);
}

.direct span {
  font-size: 16px;
  color: var(--on-dark-muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 23px;
  line-height: 1.35;
}

.form-sub {
  margin-top: -12px;
  font-size: 16px;
  color: var(--text-muted);
}

.row2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font: 700 13px/1.4 var(--font-sans);
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 16px;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--text);
  font: 300 16px/1.5 var(--font-sans);
  transition: border-color 0.2s;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--border-strong);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-subtle);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field [aria-invalid="true"] {
  border-color: var(--danger);
}

.form-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  padding: 14px 16px;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-control);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  animation: pane-in 0.5s var(--ease) both;
}

.form-status.ok {
  border-color: var(--ok);
  background: var(--ok-soft);
}

.form-status.error {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.form-note {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  position: relative;
  padding: 88px 0 32px;
}

.footer-wave {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 48px;
  overflow: visible;
  pointer-events: none;
}

.footer-in {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}

.footer-brand img {
  width: auto;
  height: 44px;
}

.footer-brand p {
  max-width: 340px;
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer h2 {
  margin-bottom: 8px;
  font: 700 13px/1.4 var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  padding: 0;
  list-style: none;
}

.footer-links a,
.footer-links span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--blue-ink);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

.footer-bottom nav {
  display: flex;
  gap: 4px;
}

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--text-muted);
  text-decoration: none;
}

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

/* ── Unterseiten ───────────────────────────────────────────── */
.legal {
  max-width: 820px;
  padding-top: 88px;
  padding-bottom: 72px;
  overflow-wrap: break-word; /* lange URLs sprengen sonst mobil die Seitenbreite */
}

.legal h1 {
  margin: 16px 0 32px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.legal h2 {
  margin: 48px 0 16px;
  font-size: 23px;
  line-height: 1.35;
}

.legal h3 {
  margin: 32px 0 12px;
  font-size: 19px;
  line-height: 1.4;
}

.legal p,
.legal ul {
  margin-bottom: 16px;
  font-size: 17px;
  line-height: 1.75;
}

.legal .hint {
  color: var(--text-muted);
}

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-top: 56px;
  padding-bottom: 96px;
  text-align: center;
}

.not-found img {
  width: min(560px, 100%);
  height: auto;
}

/* ── Scroll-Animationen ────────────────────────────────────── */
.js-loaded .reveal {
  opacity: 0;
  translate: 0 20px;
  transition:
    opacity 0.6s var(--ease) var(--reveal-delay, 0s),
    translate 0.6s var(--ease) var(--reveal-delay, 0s),
    transform 0.35s var(--ease),
    box-shadow 0.35s;
}

.js-loaded .reveal.animate-in {
  opacity: 1;
  translate: none;
}

.reveal-delay-1 {
  --reveal-delay: 0.1s;
}

.reveal-delay-2 {
  --reveal-delay: 0.2s;
}

.reveal-delay-3 {
  --reveal-delay: 0.3s;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .svc.is-enhanced {
    grid-template-columns: minmax(0, 1fr);
  }

  .svc-tabs {
    flex-direction: row;
    margin: 0 calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .tab {
    flex: 0 0 280px;
    scroll-snap-align: start;
  }

  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento > .tile {
    grid-column: span 1;
  }

  .bento > .tile--dark {
    grid-column: span 2;
  }

  .team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team > .network {
    grid-column: span 2;
  }
}

/* Header: fünf Links + Logo + Button brauchen ca. 1100px, darunter übernimmt das Menü */
@media (max-width: 1120px) {
  .nav {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    padding-top: 4px;
    padding-bottom: 20px;
  }

  .mobile-nav a:not(.btn) {
    display: flex;
    align-items: center;
    min-height: 52px;
    border-bottom: 1px solid var(--border);
    font: 700 18px/1 var(--font-display);
    color: var(--text);
    text-decoration: none;
  }

  .mobile-nav .btn {
    margin-top: 16px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 72px;
  }

  .logo img {
    height: 44px;
  }

  .hero {
    min-height: 0;
  }

  .hero-content {
    padding-top: 64px;
  }

  .stats-wrap {
    margin-top: 72px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat:nth-child(3) {
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  .team-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps-line {
    display: none;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  /* Senkrechte Linie hinter den Kreisen (.steps ist ein eigener Stapelkontext) */
  .steps::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 28px;
    top: 30px;
    bottom: 30px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--green), var(--blue));
    opacity: 0.35;
  }

  .step {
    flex-direction: row;
    gap: 20px;
    text-align: left;
  }

  .step-text {
    align-items: flex-start;
  }

  .step-label {
    max-width: none;
  }

  .tile--dark {
    padding-bottom: 200px;
  }

  .tile-dark-in {
    max-width: 100%;
  }

  .footer-in {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 20px;
  }

  .section {
    padding: 76px 0;
  }

  .section--flush-top {
    padding-top: 12px;
  }

  .tab {
    flex-basis: 250px;
  }

  .tab-sub {
    display: none;
  }

  .header-cta .btn {
    display: none;
  }

  .cta-row .btn {
    width: 100%;
  }

  .lead {
    font-size: 19px;
  }

  .stat {
    padding: 18px 20px;
  }

  .stat-num {
    font-size: 36px;
  }

  .svc-panel {
    padding: 26px;
  }

  .pane-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .pane h3 {
    font-size: 23px;
  }

  .btn {
    white-space: normal;
    text-align: center;
  }

  .checks {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento > .tile,
  .bento > .tile--dark {
    grid-column: span 1;
  }

  .tile--dark {
    padding: 28px 28px 180px;
  }

  .team {
    grid-template-columns: minmax(0, 1fr);
  }

  .team > .network {
    grid-column: span 1;
  }

  .row2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-form {
    padding: 28px;
  }

  .talk {
    padding: 28px 28px 170px;
  }

  .footer-in {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-brand {
    grid-column: span 1;
  }

  .legal {
    padding-top: 56px;
  }
}

@media (min-width: 1121px) {
  .mobile-nav {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js-loaded .reveal {
    opacity: 1;
    translate: none;
  }
}
