/*
 * TechEngine – Entwurf 3 „Signal“
 * Hell, aber farbig: satte Flächen in Türkis (Logo), Indigo, Koralle, Sonne und Himmelblau statt Verläufe.
 * Archivo Expanded für Überschriften, JetBrains Mono für Daten und Codes.
 */
:root {
  --bg: #ffffff;
  --bg-2: #f4f6fb;
  --ink: #0a0f1f;
  --ink-2: #2a3145;
  --muted: #5d6478;
  --line: #e3e7f0;
  --teal: #19b6cb;
  --teal-dark: #0b7f93;
  --indigo: #4f46e5;
  --indigo-dark: #3730a3;
  --coral: #ff6b4a;
  --sun: #ffd24a;
  --sky: #dff5fa;
  --radius: 16px;
  --wrap: 1220px;
  --display: "Archivo", system-ui, sans-serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-stretch: 100%;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--teal-dark);
}
:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
}
.skip:focus {
  left: 0.5rem;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.mono {
  font-family: var(--mono);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
}
h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
}
h3 {
  font-size: 1.3rem;
  font-weight: 750;
  line-height: 1.15;
}
p {
  margin: 0 0 1rem;
}

/* Signalband */
.signal-bar {
  display: grid;
  grid-template-columns: 3fr 2fr 2fr 1fr;
  height: 5px;
}
.signal-bar i:nth-child(1) {
  background: var(--teal);
}
.signal-bar i:nth-child(2) {
  background: var(--indigo);
}
.signal-bar i:nth-child(3) {
  background: var(--coral);
}
.signal-bar i:nth-child(4) {
  background: var(--sun);
}

.kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--indigo);
  margin-bottom: 1rem;
}
.code {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

/* Knöpfe */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--ink);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 0.85rem 1.3rem;
  font: 700 0.98rem/1 var(--sans);
  font-stretch: 110%;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--teal);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--teal);
  color: #fff;
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--teal);
}
.btn-outline {
  background: #fff;
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--sun);
}
.btn-outline:hover {
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--sun);
}
.btn-sm {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  box-shadow: 3px 3px 0 var(--teal);
}
.more {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--teal);
  padding-bottom: 1px;
  white-space: nowrap;
}
.more:hover {
  border-bottom-color: var(--coral);
}

/* Kopf */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 500;
  font-size: 1.12rem;
  letter-spacing: 0.04em;
}
.brand b {
  font-weight: 800;
}
.brand img {
  width: 42px;
  height: 42px;
}
.brand-sm {
  font-size: 0.95rem;
}
.brand-sm img {
  width: 28px;
  height: 28px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}
.nav a:not(.btn) {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 2px;
  background: var(--teal);
  transition: right 0.2s ease;
}
.nav a:not(.btn):hover::after {
  right: 0;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span:not(.sr) {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, top 0.2s ease;
}
.nav-toggle span:nth-child(1) {
  top: 15px;
}
.nav-toggle span:nth-child(2) {
  top: 24px;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  top: 19px;
  transform: rotate(-45deg);
}

/* Einstieg */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(10, 15, 31, 0.12) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%);
}
/* geometrische Farbflächen: klare Kanten, keine Unschärfe */
.shape {
  position: absolute;
  pointer-events: none;
}
.s-teal {
  width: 340px;
  height: 340px;
  right: -110px;
  top: -120px;
  border-radius: 50%;
  background: var(--teal);
}
.s-coral {
  width: 120px;
  height: 120px;
  right: 34%;
  bottom: -60px;
  background: var(--coral);
  transform: rotate(18deg);
  border-radius: 18px;
}
.s-indigo {
  width: 220px;
  height: 22px;
  right: 6%;
  bottom: 70px;
  background: repeating-linear-gradient(90deg, var(--indigo) 0 14px, transparent 14px 26px);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  margin-bottom: 1.6rem;
}
.led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 3px rgba(255, 210, 74, 0.25);
}
.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  letter-spacing: -0.035em;
}
.hl {
  /* Markierung wischt nach dem Aufbau der Wörter herein */
  background: linear-gradient(var(--teal), var(--teal)) no-repeat 0 0 / 0% 100%;
  color: var(--ink);
  padding: 0 0.15em;
  margin-left: -0.05em;
  animation: wipe 0.7s cubic-bezier(0.7, 0, 0.2, 1) 0.75s forwards;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
@keyframes wipe {
  to {
    background-size: 100% 100%;
  }
}

/* Überschrift Wort für Wort */
.hero h1 .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.hero h1 .w > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 0.8s cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
  animation-delay: calc(var(--i) * 80ms + 100ms);
}
@keyframes rise {
  to {
    transform: none;
  }
}

/* Lesefortschritt: Signalfarben füllen sich beim Scrollen */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 60;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--teal) 0 37.5%, var(--indigo) 37.5% 62.5%, var(--coral) 62.5% 87.5%, var(--sun) 87.5% 100%);
}

/* Farbformen: schweben langsam und folgen der Maus leicht (Parallaxe) */
.shape {
  translate: calc(var(--px, 0) * var(--depth, 20px)) calc(var(--py, 0) * var(--depth, 20px));
  transition: translate 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.s-teal {
  --depth: -26px;
  animation: float 9s ease-in-out infinite;
}
.s-coral {
  --depth: 34px;
  animation: float-rot 7s ease-in-out infinite;
}
.s-indigo {
  --depth: 18px;
  animation: slide 6s ease-in-out infinite;
}
@keyframes float {
  50% {
    transform: translateY(14px);
  }
}
@keyframes float-rot {
  0%,
  100% {
    transform: rotate(18deg);
  }
  50% {
    transform: rotate(28deg) translateY(-10px);
  }
}
@keyframes slide {
  50% {
    transform: translateX(-16px);
  }
}

/* Kacheln: leichte 3D-Neigung und Lichtkegel unter dem Cursor */
.card {
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card:hover {
  --lift: -4px;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.28), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover::before {
  opacity: 1;
}
.c-ink::before,
.c-indigo::before {
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(25, 182, 203, 0.28), transparent 60%);
}

/* Laufband hält unter der Maus an */
.ticker:hover .ticker-track {
  animation-play-state: paused;
}

/* Vorgehen: Farbbalken fahren beim Einblenden aus */
.process li.reveal::before {
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s;
}
.process li.visible::before {
  transform: none;
}

/* MCP-Schema: Knoten ploppen nacheinander auf */
.diagram.reveal rect {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.4);
  opacity: 0;
}
.diagram.visible rect {
  animation: pop 0.55s cubic-bezier(0.3, 1.5, 0.5, 1) forwards;
}
.diagram.visible rect:nth-of-type(2) {
  animation-delay: 0.15s;
}
.diagram.visible rect:nth-of-type(3) {
  animation-delay: 0.3s;
}
.diagram.visible rect:nth-of-type(4) {
  animation-delay: 0.4s;
}
.diagram.visible rect:nth-of-type(5) {
  animation-delay: 0.5s;
}
.diagram.visible rect:nth-of-type(6) {
  animation-delay: 0.6s;
}
@keyframes pop {
  to {
    transform: none;
    opacity: 1;
  }
}

/* Vorher/nachher: Zeilen gleiten nacheinander herein */
.col.reveal li {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.col.visible li {
  opacity: 1;
  transform: none;
}
.col.visible li:nth-child(2) {
  transition-delay: 0.1s;
}
.col.visible li:nth-child(3) {
  transition-delay: 0.2s;
}
.col.visible li:nth-child(4) {
  transition-delay: 0.3s;
}
.lead {
  font-size: 1.16rem;
  color: var(--ink-2);
  max-width: 34rem;
  margin-top: 1.5rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
.usp {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  padding: 0;
  margin: 2.2rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-2);
}
.c1 {
  color: var(--teal);
}
.c2 {
  color: var(--indigo);
}
.c3 {
  color: var(--coral);
}

/* Konsole */
.console {
  position: relative;
  background: var(--ink);
  color: #e7ecf7;
  border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--indigo);
  overflow: hidden;
}
.console-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: #8b93ab;
}
.lights {
  display: flex;
  gap: 6px;
}
.lights i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.lights i:nth-child(1) {
  background: var(--coral);
}
.lights i:nth-child(2) {
  background: var(--sun);
}
.lights i:nth-child(3) {
  background: var(--teal);
}
.beispiel {
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 0.1rem 0.45rem;
  font-size: 0.68rem;
}
.tabs {
  display: flex;
  gap: 0.4rem;
  padding: 0.8rem 1rem 0;
  flex-wrap: wrap;
}
.tabs button {
  font: 500 0.75rem/1 var(--mono);
  color: #b6bdd2;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}
.tabs button[aria-selected="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--ink);
  font-weight: 700;
}
.screen {
  margin: 0;
  padding: 1.1rem 1.2rem 1.4rem;
  min-height: 300px;
  font-size: 0.82rem;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}
.screen .p {
  color: var(--sun);
}
.screen .k {
  color: #8f8cff;
}
.screen .ok {
  color: var(--teal);
}
.screen .dim {
  color: #7a829a;
}
.screen .hot {
  color: var(--coral);
}
.caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  background: var(--teal);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Laufband */
.ticker {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  border-block: 1px solid var(--ink);
}
.ticker-track {
  display: flex;
  gap: 2.6rem;
  width: max-content;
  padding: 0.95rem 0;
  font-size: 0.85rem;
  font-weight: 500;
  animation: ticker 38s linear infinite;
}
.ticker-track span::before {
  content: "◆";
  margin-right: 0.8rem;
  color: var(--teal);
  font-size: 0.6rem;
  vertical-align: middle;
}
.ticker-track span:nth-child(3n + 2)::before {
  color: var(--coral);
}
.ticker-track span:nth-child(3n)::before {
  color: var(--sun);
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* Abschnitte */
.section {
  padding-block: clamp(4rem, 8vw, 6.5rem);
}
.head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.head > p:last-child:not(.kicker) {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 1rem;
}
.head-row {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Leistungen */
.grid6 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.card {
  border-radius: var(--radius);
  padding: 1.6rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.card::after {
  /* kleine Ecke als technisches Detail */
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 1.1rem;
  width: 14px;
  height: 14px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  opacity: 0.45;
}
.span2 {
  grid-column: span 2;
  padding: 2rem;
}
.span2 h3 {
  font-size: 1.75rem;
}
.card h3 {
  margin-bottom: 0.6rem;
}
.card p {
  margin: 0;
  font-size: 0.98rem;
}
.c-teal {
  background: var(--teal);
  color: var(--ink);
}
.c-ink {
  background: var(--ink);
  color: #fff;
}
.c-ink h3 {
  color: #fff;
}
.c-ink p {
  color: #c9cfdf;
}
.c-indigo {
  background: var(--indigo);
  color: #fff;
}
.c-indigo p {
  color: #dcdcff;
}
.c-coral {
  background: var(--coral);
  color: var(--ink);
}
.c-sky {
  background: var(--sky);
  color: var(--ink);
}
.c-sun {
  background: var(--sun);
  color: var(--ink);
}
.pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 1.3rem 0 0;
}
.pills li {
  font-size: 0.72rem;
  font-weight: 500;
  border: 1.5px solid currentColor;
  border-radius: 7px;
  padding: 0.15rem 0.5rem;
}

/* Vorher / nachher */
.compare-sec {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.col {
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  background: #fff;
  border: 1px solid var(--line);
}
.col.after {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 8px 8px 0 var(--teal);
}
.col-head {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--coral);
}
.after .col-head {
  color: var(--teal);
}
.col ol {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 1rem;
  counter-reset: step;
}
.col li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--line);
}
.after li {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}
.col .t {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}
.after .t {
  color: var(--teal);
}
.sum {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
}
.before .sum {
  color: var(--coral);
}
.after .sum {
  color: var(--sun);
}
.footnote {
  margin-top: 1.4rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Produkte */
.products,
.cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.product {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.f-teal {
  box-shadow: 10px 10px 0 var(--teal);
}
.f-coral {
  box-shadow: 10px 10px 0 var(--coral);
}
.shot {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-2);
}
.product .shot {
  border-bottom: 2px solid var(--ink);
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}
.product:hover img,
.case:hover img {
  transform: scale(1.03);
}
.pbody {
  padding: 1.5rem 1.6rem 1.7rem;
}
.pbody .code,
.case .code {
  color: var(--indigo);
}
.pbody h3,
.case h3 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}
.pbody p,
.case > p {
  color: var(--muted);
}
.case .shot {
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  margin-bottom: 1.2rem;
}
.f-indigo {
  box-shadow: 8px 8px 0 var(--indigo);
}
.f-sun {
  box-shadow: 8px 8px 0 var(--sun);
}
.links {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

/* MCP */
.mcp-sec {
  background: var(--sky);
  border-block: 1px solid #c4e9f2;
}
.mcp {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.mcp h2 {
  margin-bottom: 1.2rem;
}
.mcp > div > p {
  color: var(--ink-2);
  font-size: 1.08rem;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
}
.checks li {
  position: relative;
  padding: 0.6rem 0 0.6rem 2rem;
  font-weight: 600;
  border-top: 1px solid rgba(10, 15, 31, 0.12);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 5px;
  background: var(--indigo);
}
.checks li::after {
  content: "";
  position: absolute;
  left: 0.32rem;
  top: 0.98rem;
  width: 0.5rem;
  height: 0.28rem;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
.diagram {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: 10px 10px 0 var(--ink);
  background-image: radial-gradient(rgba(10, 15, 31, 0.1) 1px, transparent 1px);
  background-size: 18px 18px;
}
.diagram svg {
  width: 100%;
  height: auto;
}
.lines path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-dasharray: 5 5;
}
.p1 {
  fill: var(--teal);
}
.p2 {
  fill: var(--indigo);
}
.p3 {
  fill: var(--coral);
}
.p4 {
  fill: var(--sun);
}
.b-ink {
  fill: var(--ink);
}
.b-teal {
  fill: var(--teal);
  stroke: var(--ink);
  stroke-width: 2;
}
.b-indigo {
  fill: var(--indigo);
}
.b-coral {
  fill: var(--coral);
}
.b-sky {
  fill: var(--sky);
  stroke: var(--ink);
  stroke-width: 1.5;
}
.b-sun {
  fill: var(--sun);
}
.t text {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  fill: var(--ink);
}
.t .w {
  fill: #fff;
}
.t .w2 {
  fill: #aab2c8;
}
.t .sm {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
}
.t .core {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
}

/* Vorgehen */
.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.process li {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  background: #fff;
}
.process li::before {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: -2px;
  height: 10px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.st-teal::before {
  background: var(--teal);
}
.st-indigo::before {
  background: var(--indigo);
}
.st-coral::before {
  background: var(--coral);
}
.st-sun::before {
  background: var(--sun);
}
.process .n {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  margin: 0.6rem 0 1rem;
  color: var(--ink);
}
.process h3 {
  margin-bottom: 0.5rem;
}
.process p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* Stimmen */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.reviews figure {
  margin: 0;
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--ink);
}
.r-teal {
  border-top: 10px solid var(--teal) !important;
}
.r-indigo {
  border-top: 10px solid var(--indigo) !important;
}
.r-coral {
  border-top: 10px solid var(--coral) !important;
}
.stars {
  letter-spacing: 0.12em;
  color: var(--ink);
}
.reviews blockquote {
  margin: 0.9rem 0 1.2rem;
  font-size: 1.1rem;
  line-height: 1.5;
  font-weight: 500;
  flex: 1;
}
.reviews figcaption {
  font-size: 0.86rem;
  color: var(--muted);
}

/* Unternehmen */
.company-sec {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}
.company {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.company h2 {
  margin-bottom: 1.3rem;
}
.company > div > p {
  color: var(--ink-2);
  font-size: 1.08rem;
  max-width: 40rem;
}
.founder {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: 8px 8px 0 var(--sun);
}
.founder img {
  width: 92px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
  object-position: 50% 20%;
  flex-shrink: 0;
}
.founder .code {
  color: var(--indigo);
  margin-bottom: 0.3rem;
}
.founder strong {
  display: block;
  font-family: var(--display);
  font-stretch: 115%;
  font-weight: 800;
  font-size: 1.15rem;
}
.founder span:last-child {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.faq details {
  border-bottom: 2px solid var(--ink);
}
.faq details:first-child {
  border-top: 2px solid var(--ink);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 2.6rem 1.15rem 0;
  font-weight: 700;
  font-stretch: 110%;
  font-size: 1.1rem;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  font-family: var(--mono);
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  background: var(--coral);
}
.faq p {
  color: var(--ink-2);
  padding-bottom: 1.2rem;
  margin: 0;
}

/* Kontakt */
.contact {
  background: var(--indigo);
  color: #fff;
  padding-block: clamp(4rem, 8vw, 6.5rem);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--teal);
  left: -180px;
  bottom: -230px;
}
.contact-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact h2 {
  color: #fff;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  margin-bottom: 1rem;
}
.kicker.light {
  color: var(--sun);
}
.contact-inner > div > p {
  color: #dcdcff;
  font-size: 1.1rem;
}
.channels {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
}
.channels li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.channels span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sun);
}
.channels a {
  color: #fff;
  font-weight: 800;
  font-stretch: 112%;
  font-size: 1.15rem;
  text-decoration: none;
}
.channels a:hover {
  color: var(--sun);
}
.form {
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 2rem);
  box-shadow: 10px 10px 0 var(--ink);
  display: grid;
  gap: 1rem;
}
.form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
}
.form input,
.form textarea {
  font: 400 1rem/1.4 var(--sans);
  color: var(--ink);
  background: var(--bg-2);
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  width: 100%;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--indigo);
  background: #fff;
}
.form .btn {
  justify-self: start;
}
.hp {
  position: absolute;
  left: -9999px;
}
.form-status {
  margin: 0;
  min-height: 1.4em;
  font-size: 0.92rem;
}

/* Fuss */
.site-footer {
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  padding-block: 1.6rem;
}
.footer-inner p {
  margin: 0;
  color: var(--muted);
}
.footer-inner a:not(.brand) {
  color: var(--ink);
  margin-left: 1.2rem;
}

/* Chat-Assistent */
.chat-launcher {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.2rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--teal);
  color: var(--ink);
  font: 700 0.95rem var(--sans);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.chat-launcher:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.chat-launcher svg,
.chat-send svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chat-panel {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 2.4rem));
  height: min(580px, calc(100dvh - 2.4rem));
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden;
}
.chat-panel[hidden],
.chat-launcher[hidden] {
  display: none;
}
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: var(--ink);
  color: #fff;
}
.chat-head strong {
  display: block;
  font-size: 1rem;
}
.chat-head .mono {
  font-size: 0.72rem;
  color: var(--teal);
}
.chat-close {
  border: 0;
  background: none;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.chat-log {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem;
  background: var(--bg-2);
}
.chat-bubble {
  max-width: 85%;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 0.92rem;
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.chat-bubble.mine {
  align-self: flex-end;
  border-color: var(--indigo);
  background: var(--indigo);
  color: #fff;
}
.chat-form {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 0.7rem;
  border-top: 1.5px solid var(--line);
}
.chat-form textarea {
  flex: 1;
  min-width: 0;
  resize: none;
  padding: 0.55rem 0.7rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: 0.92rem var(--sans);
}
.chat-form textarea:focus {
  outline: none;
  border-color: var(--indigo);
}
.chat-send {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}
.chat-send:disabled {
  opacity: 0.4;
  cursor: default;
}
.chat-note {
  margin: 0;
  padding: 0 0.8rem 0.7rem;
  color: var(--muted);
  font-size: 0.74rem;
}
@media (max-width: 640px) {
  .chat-launcher span {
    display: none;
  }
  .chat-launcher {
    padding: 0.85rem;
  }
}

/* Rechtliche Seiten (Impressum, Datenschutz) */
.legal {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.legal .wrap {
  max-width: 820px;
}
.legal h1 {
  font: 800 clamp(1.9rem, 5vw, 3.4rem) / 1.05 var(--display);
  hyphens: auto;
  overflow-wrap: break-word;
  font-stretch: 112%;
  margin: 0 0 2rem;
}
.legal h2 {
  font: 700 1.25rem / 1.3 var(--display);
  margin: 2.2rem 0 0.6rem;
}
.legal p {
  color: var(--ink-2);
  line-height: 1.7;
  margin: 0.5rem 0;
}
.legal .box {
  padding: 1rem 1.2rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--sky);
}
.legal .stand {
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Einblenden */
/* eigene Eigenschaft „translate“, damit sich Einblenden und 3D-Neigung (transform) nicht in die Quere kommen */
.reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.6s ease, translate 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  translate: none;
}
/* Ohne Bewegung, wenn das System es wünscht; Vorschau mit ?motion=1 erzwingt sie (Klasse force-motion) */
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) {
    scroll-behavior: auto;
  }
  html:not(.force-motion) .reveal {
    opacity: 1;
    translate: none;
    transition: none;
  }
  html:not(.force-motion) .ticker-track,
  html:not(.force-motion) .caret,
  html:not(.force-motion) .shape {
    animation: none;
  }
  html:not(.force-motion) .hero h1 .w > span {
    animation: none;
    transform: none;
  }
  html:not(.force-motion) .hl {
    animation: none;
    background-size: 100% 100%;
  }
  html:not(.force-motion) .card {
    transform: none;
  }
  html:not(.force-motion) .diagram.reveal rect,
  html:not(.force-motion) .col.reveal li {
    opacity: 1;
    transform: none;
  }
}

/* Tablet */
@media (max-width: 1020px) {
  .grid6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reviews {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Handy */
@media (max-width: 800px) {
  body {
    font-size: 1rem;
  }
  .nav-toggle {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: #fff;
    border-bottom: 2px solid var(--ink);
  }
  .nav.open {
    display: flex;
  }
  .nav a:not(.btn) {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .nav .btn {
    margin-top: 1rem;
    justify-content: center;
  }
  .hero-inner,
  .mcp,
  .company,
  .faq-grid,
  .contact-inner,
  .products,
  .cases,
  .compare {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid6,
  .process {
    grid-template-columns: minmax(0, 1fr);
  }
  .span2 {
    grid-column: auto;
  }
  .s-teal {
    width: 200px;
    height: 200px;
    right: -90px;
    top: -90px;
  }
  .s-coral,
  .s-indigo,
  .tag-loc {
    display: none;
  }
  .screen {
    min-height: 260px;
    font-size: 0.76rem;
  }
  .console {
    box-shadow: 6px 6px 0 var(--indigo);
  }
  .form .row {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-inner a:not(.brand) {
    margin: 0 1.2rem 0 0;
  }
}
