/* =========================================================
   Core Logic Solutions — Global Styles
   Farbwelt aus dem Logo: Cyan (#3ec0e8) -> Blau (#2a63b6).
   Hintergrund: mittleres Blau, Text weiss, Akzent Cyan.
   ========================================================= */

/* ---------- 1. Design Tokens ---------- */
:root {
  --bg: #1d4368;        /* Hauptfläche – mittleres Blau */
  --bg-alt: #19395a;    /* abwechselnde Abschnitte, etwas tiefer */
  --bg-deep: #16324e;   /* Footer */
  --surface: #235080;   /* Karten */
  --surface-2: #2a5c92; /* Karten-Hover / Eingaben */

  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.3);

  --text: #ffffff;
  --text-dim: #c6d7e8;
  --text-muted: #a1b7ce;

  --accent: #4ecdf2;       /* Logo-Cyan, aufgehellt */
  --accent-soft: #7fdcf7;
  --accent-tint: rgba(78, 205, 242, 0.14);
  --on-accent: #0b2439;

  --grad: linear-gradient(180deg, #3ec0e8 0%, #2a63b6 100%);
  --grad-h: linear-gradient(90deg, #3ec0e8 0%, #2a63b6 100%);

  --radius: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(4, 18, 33, 0.25);
  --shadow-md: 0 16px 34px -18px rgba(4, 18, 33, 0.75);
  --shadow-lg: 0 30px 60px -28px rgba(4, 18, 33, 0.9);

  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', ui-monospace, monospace;

  --nav-h: 76px;
  --pad-x: clamp(20px, 5vw, 72px);
  --maxw: 1200px;
}

/* ---------- 2. Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

body.is-locked {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

::selection {
  background: rgba(78, 205, 242, 0.35);
  color: #fff;
}

::-webkit-scrollbar {
  width: 11px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: #3a6a9c;
  border-radius: 99px;
  border: 3px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover {
  background: #4a7db2;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.app {
  position: relative;
  overflow-x: clip; /* faengt Reveal-Animationen ab, bricht sticky nicht */
}

/* ---------- 3. Layout & Typografie ---------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section {
  position: relative;
  padding-block: clamp(72px, 9vw, 128px);
}

.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.section--tight {
  padding-block: clamp(40px, 6vw, 72px);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.h-display {
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.h-section {
  font-weight: 700;
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.h-card {
  font-weight: 600;
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.accent {
  color: var(--accent);
}

.lead {
  color: var(--text-dim);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  max-width: 60ch;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.section-head__left {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  color: var(--on-accent);
  background: var(--accent);
  box-shadow: 0 8px 20px -10px rgba(78, 205, 242, 0.9);
}

.btn--primary:hover {
  background: var(--accent-soft);
}

.btn--ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
}

.btn--wa {
  color: #04240f;
  background: #43d67d;
}

.btn--wa:hover {
  background: #5ce094;
}

.btn--lg {
  padding: 16px 28px;
  font-size: 1rem;
}

/* Karten */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
}

/* Leichtes Anheben bei Hover (ehemals Framer whileHover) */
.card--lift:hover {
  transform: translateY(-4px);
}

/* Scroll-Fortschritt */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 80;
  background: linear-gradient(90deg, #7fdcf7, #4ecdf2);
  transform-origin: 0%;
}

/* ---------- 4. Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(29, 67, 104, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.nav.is-stuck {
  background: rgba(22, 50, 78, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 24px -14px rgba(4, 18, 33, 0.9);
}

.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.logo__text small {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav__links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  position: relative;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
}

.nav__link:hover,
.nav__link.is-active {
  color: #fff;
}

/* Wandernde Markierung hinter dem aktiven Link (ehemals Framer layoutId) */
.nav__pill {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  opacity: 0;
  pointer-events: none;
  transition: left 0.4s cubic-bezier(0.22, 1, 0.36, 1), width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.4s cubic-bezier(0.22, 1, 0.36, 1), height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav__pill.is-visible {
  opacity: 1;
}

.nav__cta {
  display: inline-flex;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  place-items: center;
  align-content: center;
  gap: 5px;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

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

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  overflow-y: auto;
  padding: var(--nav-h) var(--pad-x) 40px;
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu.is-open {
  opacity: 1;
}

.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.5rem, 7vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s);
}

.mobile-menu.is-open .mobile-menu__link,
.mobile-menu.is-closing .mobile-menu__link {
  opacity: 1;
  transform: none;
}

.mobile-menu.is-closing .mobile-menu__link,
.mobile-menu.is-closing .mobile-menu__foot {
  transition: none;
}

.mobile-menu__link span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--accent);
}

.mobile-menu__foot {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease 0.35s, transform 0.4s ease 0.35s;
}

.mobile-menu.is-open .mobile-menu__foot,
.mobile-menu.is-closing .mobile-menu__foot {
  opacity: 1;
  transform: none;
}

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 72px;
  overflow: hidden;
  background:
    radial-gradient(55% 45% at 82% 18%, rgba(78, 205, 242, 0.2), transparent 70%),
    radial-gradient(45% 45% at 6% 92%, rgba(42, 99, 182, 0.35), transparent 70%),
    var(--bg);
}

/* Dezentes Hexagon-Muster als Markenelement */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1 55 16.5v32L28 64 1 48.5v-32z M28 33 55 48.5v32L28 96 1 80.5v-32z' fill='none' stroke='rgba(255,255,255,0.14)' stroke-width='1'/%3E%3C/svg%3E");
  mask-image: radial-gradient(70% 70% at 68% 42%, #000 5%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 68% 42%, #000 5%, transparent 75%);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  width: 100%;
}

.hero__title {
  margin-top: 18px;
}

.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.hero__word {
  display: inline-block;
}

.hero__lead {
  margin-top: 22px;
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  color: var(--text-dim);
  max-width: 52ch;
}

.hero__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__meta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.hero__meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex: none;
}

/* Rechte Seite: Code-Panel */
.hero__visual {
  position: relative;
}

.panel {
  position: relative;
  border-radius: var(--radius-lg);
  background: #0e2038;
  color: #cbd6e6;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.panel__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.panel__dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
}

.panel__file {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #8095ad;
}

.panel__code {
  padding: 20px 22px 24px;
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.05vw, 12.5px);
  line-height: 1.85;
  overflow-x: auto;
}

.panel__code .ln {
  display: block;
  white-space: pre;
}

.tk-key { color: #7cc4ff; }
.tk-fn { color: #4ecdf2; }
.tk-str { color: #9fe3b4; }
.tk-num { color: #ffd28b; }
.tk-com { color: #66809c; font-style: italic; }

.hero__badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(22, 50, 78, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  font-size: 0.82rem;
}

.hero__badge strong {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero__badge small {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

/* etwas unterhalb der Titelleiste, damit der Dateiname lesbar bleibt */
.hero__badge--tl {
  top: 46px;
  left: -34px;
}

.hero__badge--br {
  bottom: -24px;
  right: -16px;
}

.ring {
  width: 40px;
  height: 40px;
  flex: none;
}

.ring circle {
  fill: none;
  stroke-width: 4;
}

/* ---------- 6. Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.stat {
  padding: clamp(24px, 3vw, 38px) clamp(20px, 2.6vw, 32px);
  border-right: 1px solid var(--line);
}

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

.stat__value {
  font-weight: 700;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.stat__label {
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.98rem;
}

.stat__hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---------- 7. Leistungen ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.svc-cell {
  grid-column: span 2;
  display: flex;
}

.svc-cell--wide {
  grid-column: span 3;
}

.svc {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(22px, 2.4vw, 30px);
  min-height: 260px;
}

.svc__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.svc__icon {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-tint);
  border: 1px solid rgba(78, 205, 242, 0.28);
  color: var(--accent);
}

.svc__icon svg {
  width: 22px;
  height: 22px;
}

.svc__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.svc__lead {
  color: var(--text-dim);
  font-size: 0.95rem;
  flex: 1;
}

.svc__points {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
}

.svc__points li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.svc__points li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 99px;
  background: var(--accent);
  flex: none;
}

/* ---------- 8. Projekte ---------- */
.work {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.work-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 3.2vw, 42px);
}

.work-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.work-card__cat {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.work-card__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.work-card__text {
  color: var(--text-dim);
  font-size: 0.98rem;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.stack li {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.06);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.25s, color 0.2s;
}

.link-arrow svg {
  width: 16px;
  height: 16px;
}

.link-arrow:hover {
  gap: 12px;
  color: var(--accent-soft);
}

/* Browser-Mockup (stellt eine helle Website dar) */
.mock {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: #eef3f8;
  border-bottom: 1px solid #dde5ee;
}

.mock__url {
  flex: 1;
  margin-left: 8px;
  padding: 5px 12px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #dde5ee;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #7b8a9b;
  text-align: center;
}

.mock__view {
  position: relative;
  aspect-ratio: 16 / 10.5;
  background: linear-gradient(160deg, #f8fbfe, #eaf1f8);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock__hero {
  height: 36%;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #dde5ee;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding: 16px;
}

.skel {
  height: 8px;
  border-radius: 99px;
  background: #dde5ee;
}

.skel--accent {
  background: var(--grad-h);
}

.mock__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  flex: 1;
}

.mock__tile {
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #dde5ee;
}

/* ---------- 9. Warum wir ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.reason {
  padding: clamp(22px, 2.4vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 210px;
}

.reason__tag {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid rgba(78, 205, 242, 0.28);
}

.reason__text {
  color: var(--text-dim);
  font-size: 0.93rem;
}

.reason__check {
  position: absolute;
  right: 20px;
  bottom: 18px;
  width: 24px;
  height: 24px;
  color: var(--accent);
  opacity: 0.35;
  transition: opacity 0.3s;
}

.card:hover .reason__check {
  opacity: 1;
}

/* ---------- 10. Ablauf ---------- */
.process {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.process__aside {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.process__track {
  position: relative;
  padding-left: 62px;
}

.process__line {
  position: absolute;
  left: 22px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  overflow: hidden;
}

.process__line-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #7fdcf7, #4ecdf2);
  transform-origin: top;
  box-shadow: 0 0 18px rgba(78, 205, 242, 0.6);
}

.step {
  position: relative;
  padding-bottom: clamp(34px, 5vw, 52px);
}

.step:last-child {
  padding-bottom: 0;
}

.step__dot {
  position: absolute;
  left: -62px;
  top: 2px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.3s, border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.step.is-on .step__dot {
  color: var(--on-accent);
  border-color: transparent;
  background: var(--accent);
  box-shadow: 0 8px 22px -8px rgba(78, 205, 242, 0.9);
}

.step__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.step__badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 99px;
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid rgba(78, 205, 242, 0.28);
}

.step__text {
  color: var(--text-dim);
  font-size: 0.96rem;
  max-width: 56ch;
}

/* ---------- 11. Kontakt ---------- */
.contact {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.contact__left {
  padding: clamp(28px, 4vw, 52px);
  background: rgba(0, 0, 0, 0.16);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}

.contact__right {
  padding: clamp(28px, 4vw, 52px);
}

.contact__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.contact__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s, background 0.2s;
}

a.contact__row:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.12);
}

.contact__row svg {
  width: 19px;
  height: 19px;
  color: var(--accent);
  flex: none;
}

.contact__row small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact__row b {
  font-weight: 600;
  font-size: 0.97rem;
}

.form {
  display: grid;
  gap: 16px;
}

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

.field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.field select option {
  background: #1d4368;
  color: #fff;
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: #8ba3bd;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 4px rgba(78, 205, 242, 0.18);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form__link {
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form__link:hover {
  color: var(--accent);
}

.form__ok {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(67, 214, 125, 0.45);
  border-radius: 10px;
  background: rgba(67, 214, 125, 0.14);
  font-size: 0.88rem;
  color: #9df0bd;
}

.form__ok svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ---------- 12. Footer ---------- */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-deep);
  padding-block: clamp(44px, 6vw, 68px) 30px;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer__intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 320px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(30px, 5vw, 64px);
}

.footer__col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__col a {
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer__col a:hover {
  color: var(--accent);
}

.footer__bottom {
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer__bottom a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__bottom a:hover {
  color: var(--accent);
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: var(--text-dim);
  text-decoration: none !important;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.to-top:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ---------- 13. Datenschutz-Seite ---------- */
.legal {
  min-height: 100vh;
}

.legal__nav {
  position: sticky;
  top: 0;
  z-index: 70;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(22, 50, 78, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.legal__nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal__nav .btn {
  padding: 10px 16px;
  font-size: 0.86rem;
}

.legal__body {
  max-width: 840px;
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(60px, 8vw, 100px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.legal__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.legal__toc {
  width: 100%;
  padding: 20px 24px;
  margin-top: 12px;
  background: rgba(0, 0, 0, 0.16);
}

.legal__toc strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.legal__toc ol {
  columns: 2;
  column-gap: 32px;
  padding-left: 20px;
  font-size: 0.92rem;
}

.legal__toc li {
  padding: 3px 0;
  color: var(--text-dim);
}

.legal__toc li::marker {
  color: var(--accent);
}

.legal__toc a:hover {
  color: var(--accent);
}

.legal__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vw, 52px);
  margin-top: 16px;
}

.legal__section {
  scroll-margin-top: calc(var(--nav-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.98rem;
  line-height: 1.75;
}

.legal__section strong {
  color: #fff;
  font-weight: 600;
}

.legal__section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}

.legal__section ul {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.legal__section li::marker {
  color: var(--accent);
}

.legal__h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 2px;
}

.legal__n {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-tint);
  border: 1px solid rgba(78, 205, 242, 0.28);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
}

.legal__address {
  font-style: normal;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 0 10px 10px 0;
  color: #fff;
}

.legal__highlight {
  padding: 20px 24px;
  border-color: rgba(78, 205, 242, 0.35);
  background: rgba(78, 205, 242, 0.1);
}

.legal__highlight:hover {
  background: rgba(78, 205, 242, 0.1);
}

.legal__todo {
  background: rgba(255, 210, 139, 0.2);
  color: #ffd28b;
  border: 1px dashed rgba(255, 210, 139, 0.65);
  border-radius: 5px;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 0.86em;
}

.legal__stand {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal__foot {
  width: 100%;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- 14. Responsive ---------- */
/* minmax(0, 1fr) statt 1fr: Spalten duerfen unter ihre min-content-Breite
   schrumpfen – sonst schiebt z. B. ein langer Button die Karte auf. */
@media (max-width: 1080px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }
  .hero__visual {
    max-width: 560px;
  }
  .bento {
    grid-template-columns: repeat(4, 1fr);
  }
  .svc-cell,
  .svc-cell--wide {
    grid-column: span 2;
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process {
    grid-template-columns: minmax(0, 1fr);
  }
  .process__aside {
    position: static;
  }
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact__left {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .work-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .nav__links,
  .nav__cta {
    display: none;
  }
  .burger {
    display: grid;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(2) {
    border-right: none;
  }
  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .bento,
  .why-grid {
    grid-template-columns: 1fr;
  }
  .svc-cell,
  .svc-cell--wide {
    grid-column: span 1;
  }
  .svc {
    min-height: 0;
  }
  .form__row {
    grid-template-columns: 1fr;
  }
  /* lange Button-Beschriftungen duerfen auf schmalen Displays umbrechen */
  .btn {
    white-space: normal;
    text-align: center;
  }
  .btn--lg {
    padding: 15px 20px;
  }
  .hero__badge--tl {
    top: 40px;
    left: -10px;
    padding: 9px 12px;
  }
  .hero__badge--br {
    bottom: -16px;
    right: -6px;
    padding: 9px 12px;
  }
  .process__track {
    padding-left: 48px;
  }
  .process__line {
    left: 16px;
  }
  .step__dot {
    left: -48px;
    width: 34px;
    height: 34px;
    font-size: 10.5px;
  }
  .legal__toc ol {
    columns: 1;
  }
  .legal__nav .btn span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- 15. Animationen (Ersatz für Framer Motion) ----------
   Alle Einblendungen laufen rein über CSS. JavaScript setzt lediglich
   Klassen (is-in, is-stuck, is-on ...) bzw. wenige Inline-Transformationen.
   Die Klasse "js" auf <html> sorgt dafür, dass ohne JavaScript alles
   sofort sichtbar ist. */

/* Scroll-Reveal: Element wird eingeblendet, sobald es in den Viewport kommt.
   Feineinstellung über CSS-Variablen im style-Attribut:
   --ry (Versatz Y), --rx (Versatz X), --rs (Skalierung), --rdelay, --rd (Dauer) */
.js [data-reveal] {
  opacity: 0;
  transform: translate(var(--rx, 0px), var(--ry, 34px)) scale(var(--rs, 1));
  transition: opacity var(--rd, 0.85s) cubic-bezier(0.22, 1, 0.36, 1) var(--rdelay, 0s),
    transform var(--rd, 0.85s) cubic-bezier(0.22, 1, 0.36, 1) var(--rdelay, 0s);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Gestaffelte Einblendung: Kinder eines Containers nacheinander */
.js [data-stagger] > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--sdelay, 0s),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--sdelay, 0s);
}

.js [data-stagger].is-in > * {
  opacity: 1;
  transform: none;
}

/* Grundlegende Keyframes */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(var(--ay, 18px));
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes word-up {
  from {
    opacity: 0;
    transform: translateY(105%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ring-fill {
  from {
    stroke-dashoffset: 100.531;
  }
}

/* Navigation: kurzes Hereingleiten beim Laden */
.js .nav {
  animation: fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  --ay: -20px;
}

/* Hero: Text-Elemente nacheinander, Wörter der Überschrift von unten */
.js .hero__eyebrow {
  animation: fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0s both;
}

.js .hero__word {
  animation: word-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.js .hero__word:nth-of-type(1) { animation-delay: 0.17s; }
.js .hero__word:nth-of-type(2) { animation-delay: 0.24s; }
.js .hero__line:nth-of-type(2) .hero__word:nth-of-type(1) { animation-delay: 0.31s; }
.js .hero__line:nth-of-type(2) .hero__word:nth-of-type(2) { animation-delay: 0.38s; }

.js .hero__lead {
  animation: fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.js .hero__actions {
  animation: fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.js .hero__meta {
  animation: fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.js .hero__visual {
  animation: fade-up 1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
  --ay: 40px;
}

.js .hero__badge {
  --ay: 12px;
}

.js .hero__badge--tl {
  animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.9s both;
}

.js .hero__badge--br {
  animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.05s both;
}

/* Score-Ringe: Bogen füllt sich nach dem Laden */
.ring__fill {
  stroke-dasharray: 100.531;
}

.js .ring__fill {
  animation: ring-fill 1.4s cubic-bezier(0.22, 1, 0.36, 1) 1.1s both;
}

/* Kontaktformular: Erfolgshinweis */
.form__ok[hidden] {
  display: none;
}

.js .form__ok {
  animation: fade-up 0.3s ease both;
  --ay: 8px;
}

/* Datenschutzseite: sanftes Einblenden der ganzen Seite */
.js .legal {
  animation: fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  --ay: 20px;
}

/* Reduzierte Bewegung: alles sofort sichtbar */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal],
  .js [data-stagger] > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
