/* Inter – self-hosted, DSGVO-konform (kein externer CDN) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin-ext-600.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-latin-ext-700.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --c-brand: #00AEEF;
  --c-brand-2: #00C2FF;
  --c-bg: #0B0F14;
  --c-surface: #101826;
  --c-surface-2: #162234;
  --c-text: #EAF2FF;
  --c-text-muted: #A7B4C7;
  --c-border: rgba(255, 255, 255, 0.1);

  --radius-card: 16px;
  --radius-ui: 12px;

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.16, 1, 0.3, 1);

  --max-width: 1320px;
  --max-width-narrow: 900px;
  --space-2: 4px;
  --space-3: 8px;
  --space-4: 12px;
  --space-5: 16px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 48px;
  --space-9: 64px;
  --space-10: 96px;
  --header-height: 72px;
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.22);
  --reveal-duration: 900ms;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(180deg, #0b0f14 0%, #0d1320 100%);
  color: var(--c-text);
  line-height: 1.6;
  min-height: 100vh;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--space-3));
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--c-brand);
  text-decoration: none;
  position: relative;
  transition: color 160ms var(--ease-out);
}

a:hover,
a:focus-visible {
  color: var(--c-brand-2);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--c-brand);
  outline-offset: 3px;
  border-radius: var(--radius-ui);
}

::selection {
  background: rgba(0, 174, 239, 0.2);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 var(--space-4);
}

h1 { font-size: clamp(2.5rem, 4vw + 1rem, 3.75rem); }
h2 { font-size: clamp(2rem, 1.2vw + 1.6rem, 2.5rem); }
h3 { font-size: clamp(1.35rem, 0.5vw + 1.15rem, 1.75rem); }
h4 { font-size: 1.2rem; }

/* Keep hero/card typography stable after semantic heading-level adjustments. */
#reaction-headline {
  font-size: clamp(2.5rem, 4vw + 1rem, 3.75rem);
}

#reaction-hero-title,
#reaction-capabilities {
  font-size: clamp(2rem, 1.2vw + 1.6rem, 2.5rem);
}

p {
  margin: 0 0 var(--space-4);
  color: var(--c-text-muted);
  max-width: 75ch;
}

small,
.text-small { font-size: 0.9rem; line-height: 1.5; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--c-text-muted);
  margin: 0 0 var(--space-3);
}

.lede {
  font-size: 1.1rem;
  color: var(--c-text-muted);
  margin: 0;
}

.content-list {
  margin: 0 0 var(--space-5);
  padding-left: var(--space-5);
  list-style: disc;
  display: grid;
  gap: var(--space-2);
  color: var(--c-text-muted);
  max-width: 75ch;
}

.content-list li {
  margin: 0;
}

.reaction-overview-cta {
  grid-column: 1;
}

.js [data-reveal] {
  opacity: 0.1;
  transform: translateY(30px);
  transition: opacity var(--reveal-duration) var(--ease-out), transform var(--reveal-duration) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-header,
.site-footer {
  width: 100%;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  min-height: var(--header-height);
  display: flex;
  justify-content: center;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 20, 0.45);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow 180ms var(--ease-out), background 180ms var(--ease-out);
  z-index: 0;
}

.site-header.is-scrolled::before {
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.24);
  background: rgba(11, 15, 20, 0.6);
}

.site-header__inner,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  width: 100%;
  position: relative;
  z-index: 1;
  gap: var(--space-6);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
  color: var(--c-text);
  text-decoration: none;
}

.brand-logo {
  width: auto;
}

.brand-logo--icon {
  height: 32px;
}

.brand-logo--full {
  height: 44px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-ui);
  padding: var(--space-3) var(--space-4);
  color: var(--c-text);
  cursor: pointer;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  position: relative;
  z-index: 22;
  transition: background 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.nav-toggle .burger {
  position: relative;
  width: 18px;
  height: 12px;
  display: inline-block;
}

.nav-toggle .burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 180ms var(--ease-out), opacity 180ms var(--ease-out);
}

.nav-toggle .burger span:nth-child(1) { top: 0; }
.nav-toggle .burger span:nth-child(2) { top: 5px; }
.nav-toggle .burger span:nth-child(3) { top: 10px; }

.site-header.is-open .nav-toggle .burger span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.site-header.is-open .nav-toggle .burger span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle .burger span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.nav-list a {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-ui);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: color 160ms var(--ease-out), background 160ms var(--ease-out);
  white-space: nowrap;
  position: relative;
}

.nav-list a.is-active,
.nav-list a[aria-current="page"] {
  color: var(--c-brand-2);
  background: rgba(0, 174, 239, 0.08);
}

.nav-list a:hover {
  background: rgba(255, 255, 255, 0.04);
}

.nav-list a::after {
  content: '';
  position: absolute;
  left: var(--space-4);
  right: var(--space-4);
  bottom: 10px;
  height: 2px;
  background: var(--c-brand-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms var(--ease-out);
  pointer-events: none;
}

.nav-list a.is-active::after,
.nav-list a:hover::after {
  transform: scaleX(1);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6) var(--space-10);
}

main > * {
  scroll-margin-top: calc(var(--header-height) + var(--space-3));
}

.hero {
  padding: max(var(--space-10), calc(var(--header-height) + var(--space-3))) 0 var(--space-8);
  display: grid;
  gap: var(--space-4);
}

.hero--welcome {
  min-height: 100vh;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: calc(var(--header-height) + var(--space-8)) 0 var(--space-10);
}

/* Hero text column */
.hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-brand);
  margin: 0;
}

.hero-eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  flex-shrink: 0;
}

/* Flow Diagram - dynamisch responsive */
.hero-flow {
  width: clamp(300px, 90vw, 1100px);
  margin-top: var(--space-6);
}

.flow-diagram {
  width: 100%;
  height: auto;
  overflow: visible;
  display: block;
}

.fd-pulse {
  opacity: 0;
  transition: opacity 48ms linear;
}

.section {
  padding: var(--space-10) 0;
}

.section.section-gap-tight {
  padding-top: var(--space-6);
}

.section-tight {
  padding: var(--space-6) 0 var(--space-4);
}

.section-header {
  margin-bottom: var(--space-6);
  max-width: var(--max-width-narrow);
}

.section-intro {
  color: var(--c-text-muted);
  margin: 0;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-3);
}

.cta-group--tight {
  margin-top: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  min-height: 44px;
  border-radius: var(--radius-ui);
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 160ms var(--ease-out), background 160ms var(--ease-out), border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
  cursor: pointer;
}

.button-primary {
  background: var(--c-brand);
  color: var(--c-bg);
  border-color: var(--c-brand);
  box-shadow: 0 8px 20px rgba(0, 174, 239, 0.35);
}

.button-primary:hover {
  background: var(--c-brand-2);
  border-color: var(--c-brand-2);
  transform: translateY(-1px);
  color: var(--c-bg);
}

.button.button-primary:hover,
.button.button-primary:focus-visible {
  color: var(--c-bg);
}

.button-secondary {
  color: var(--c-text);
  border-color: var(--c-border);
  background: transparent;
}

.button-secondary:hover {
  background: var(--c-surface-2);
  border-color: var(--c-border);
}

.button:active {
  transform: translateY(0);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  align-items: start;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(240px, 280px) 1fr;
  }
}

@media (min-width: 900px) {
  .split.split--profile {
    grid-template-columns: minmax(280px, 340px) 1fr;
  }
}

.split.split-sticky {
  align-items: stretch;
}

.split.split-sticky > :first-child {
  position: sticky;
  top: calc(var(--header-height) + var(--space-6));
  align-self: start;
}

.card-video {
  width: 100%;
  border-radius: var(--radius-ui);
  display: block;
  margin-bottom: var(--space-5);
}

.card,
.card-grid article {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  transition: transform 180ms var(--ease-out), background 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.card:hover,
.card-grid article:hover {
  transform: translateY(-2px);
  background: var(--c-surface-2);
  border-color: rgba(255, 255, 255, 0.14);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
}

.contact-card {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(var(--space-6), 5vw, 40px);
  align-items: start;
  padding: clamp(var(--space-7), 6vw, 40px);
}

.contact-card.contact-card--align-center {
  align-items: center;
}

.contact-card__content {
  display: grid;
  gap: var(--space-3);
}

.contact-card__action {
  display: grid;
  gap: var(--space-6);
  align-self: stretch;
  justify-items: start;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-ui);
  padding: var(--space-6);
}

.card.contact-card:hover .contact-card__action {
  background: rgba(22, 34, 52, 0.9);
  border-color: rgba(255, 255, 255, 0.14);
}


.contact-card__email-block {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-ui);
  border: 1px solid var(--c-border);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
  font-size: clamp(1.05rem, 0.4vw + 1rem, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.contact-card__email-link {
  color: var(--c-text);
  text-decoration: none;
  transition: color 160ms var(--ease-out);
}

.contact-card__email-link:hover,
.contact-card__email-link:focus-visible {
  color: var(--c-brand-2);
}

.contact-card__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  min-height: 0;
  height: 38px;
  min-width: 38px;
  border-radius: 999px;
  border: 1px solid var(--c-border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-text);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background 160ms var(--ease-out), border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.contact-card__copy:hover,
.contact-card__copy:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.contact-card__cta {
  margin-top: var(--space-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

@media (min-width: 768px) {
  .contact-card__cta {
    width: auto;
    min-width: 240px;
  }
}

@media (max-width: 767px) {
  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-card__action {
    order: -1;
  }

  .contact-card__content {
    order: 1;
  }
}

@media (min-width: 768px) {
  .contact-card__action {
    align-self: center;
  }
}

.profile-portrait {
  display: grid;
  gap: var(--space-4);
}

.card.profile-portrait {
  padding: var(--space-5);
}

.profile-portrait img {
  width: 100%;
  border-radius: var(--radius-card);
  border: 1px solid var(--c-border);
}

.profile-portrait figcaption {
  color: var(--c-text-muted);
  font-size: 0.95rem;
}

.workflow {
  display: grid;
  gap: var(--space-4);
  padding-left: var(--space-6);
  color: var(--c-text-muted);
}

.workflow li { margin-bottom: var(--space-2); }

.section-highlight {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 14%, rgba(0, 174, 239, 0.14), transparent 22%),
    radial-gradient(circle at 90% 84%, rgba(0, 194, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(6, 10, 16, 0.98), rgba(9, 14, 22, 0.94));
  border: 1px solid rgba(0, 174, 239, 0.16);
  border-radius: 28px;
  padding: var(--space-9) clamp(var(--space-6), 5vw, var(--space-8));
  margin-inline: auto;
  margin-top: var(--space-6);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.section-highlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.35;
  pointer-events: none;
}

.reaction-flow {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(126, 220, 255, 0.14);
  border-radius: 24px;
  padding: clamp(var(--space-6), 3.8vw, var(--space-8));
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 174, 239, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(6, 10, 16, 0.98), rgba(7, 11, 18, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 64px rgba(0, 0, 0, 0.3);
}

.reaction-flow::after {
  content: '';
  position: absolute;
  inset: auto 8% 10% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.14), transparent 72%);
  pointer-events: none;
}

.reaction-flow__track {
  position: relative;
  display: grid;
  gap: clamp(44px, 5vw, 72px);
  width: 100%;
  min-height: 620px;
}

.reaction-flow__track > * {
  position: relative;
  z-index: 1;
  transition: opacity 420ms var(--ease-out);
}

.reaction-flow__track.is-reflowing {
  pointer-events: none;
}

.reaction-flow__track.is-reflowing > :not(.reaction-flow__wires) {
  opacity: 0.38;
}

.reaction-flow__track.is-reflowing .reaction-flow__wires {
  opacity: 0.18;
  transition: opacity 420ms var(--ease-out);
}

.reaction-flow__wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.reaction-wire {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reaction-wire--base {
  stroke: rgba(0, 174, 239, 0.18);
  stroke-width: 1.25;
}

.reaction-pulse {
  fill: rgba(0, 174, 239, 0.95);
  filter: url(#rf-wire-glow);
  pointer-events: none;
}

.reaction-pulse--outputs {
  fill: rgba(0, 194, 255, 0.95);
}

.flow-stack,
.flow-core {
  display: grid;
  gap: var(--space-5);
  align-content: start;
}

.flow-stack__header {
  display: grid;
  gap: var(--space-3);
}

.flow-stack__header h3 {
  margin-bottom: 0;
}

.flow-stack__columns {
  display: grid;
  gap: 28px;
}

.flow-stack[data-flow-stack="inputs"] .flow-stack__header {
  justify-items: end;
  text-align: right;
}

.flow-stack[data-flow-stack="outputs"] .flow-stack__header {
  justify-items: start;
  text-align: left;
}

.flow-core .flow-stack__header {
  justify-items: center;
  text-align: center;
}

.flow-stack .section-intro,
.flow-core .section-intro {
  max-width: 28ch;
}

.flow-node {
  position: relative;
  display: grid;
  justify-items: end;
  gap: 12px;
  transform: translateY(var(--flow-align-shift, 0px));
}

.flow-stack[data-flow-stack="outputs"] .flow-node {
  justify-items: start;
}

.flow-node__display,
.flow-core__display {
  transition: transform 320ms var(--ease-in-out), opacity 320ms var(--ease-in-out);
}

.flow-node__display.slide-up,
.flow-node__display.slide-down {
  animation: swap-fade 260ms var(--ease-out);
}

.flow-core__display.slide-up,
.flow-core__display.slide-down {
  animation: core-swap-fade 280ms var(--ease-out);
}

.flow-node.is-solo .flow-node__display.slide-up,
.flow-node.is-solo .flow-node__display.slide-down {
  animation: swap-fade 260ms var(--ease-out);
}

.flow-node__display {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 58px;
  align-items: center;
  gap: 18px;
  width: max-content;
  max-width: 100%;
  min-height: 82px;
}

.flow-stack[data-flow-stack="outputs"] .flow-node__display {
  grid-template-columns: 58px minmax(120px, 1fr);
}

.flow-node__copy {
  display: grid;
  gap: 6px;
  max-width: 220px;
}

.flow-stack[data-flow-stack="inputs"] .flow-node__copy {
  justify-items: end;
  text-align: right;
}

.flow-stack[data-flow-stack="outputs"] .flow-node__copy {
  order: 2;
  justify-items: start;
  text-align: left;
}

.flow-stack[data-flow-stack="outputs"] .flow-node__anchor {
  order: 1;
}

.flow-node__eyebrow,
.flow-core__status,
.flow-core__eyebrow {
  color: rgba(234, 242, 255, 0.62);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.flow-core__status,
.flow-core__eyebrow {
  text-transform: uppercase;
}

.flow-node__eyebrow {
  letter-spacing: 0.08em;
}

.flow-node__label,
.flow-core__label,
.flow-core__machine-label {
  color: var(--c-text);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.15;
}

.flow-node__label {
  font-size: 0.96rem;
}

.flow-node__anchor {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1.2px solid rgba(0, 174, 239, 0.32);
  background: #0d1825;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.flow-node__icon,
.flow-node__icon svg {
  display: block;
  width: 24px;
  height: 24px;
  color: var(--c-text-muted);
}

.flow-core__panel {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.flow-core__display {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 0;
}

.flow-core__box {
  position: relative;
  width: min(100%, 272px);
  min-height: 344px;
  display: grid;
  grid-template-rows: auto minmax(150px, 1fr) auto;
  gap: 18px;
  align-items: center;
  justify-items: center;
  padding: 22px 26px 30px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(9, 14, 22, 0.98), rgba(6, 10, 16, 0.98));
  border: 1px solid rgba(126, 220, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 48px rgba(0, 0, 0, 0.28);
}

.flow-core__box::before {
  content: '';
  position: absolute;
  inset: 18% 16% 34%;
  border-radius: 999px;
  background: rgba(0, 174, 239, 0.2);
  filter: blur(22px);
  opacity: 0;
  pointer-events: none;
}

.flow-core__box::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 50% 26%, rgba(0, 174, 239, 0.12), transparent 36%);
}

.flow-core__machine {
  position: relative;
  display: grid;
  gap: 6px;
  justify-items: center;
  width: min(100%, 176px);
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(10, 16, 24, 0.95);
  border: 1px solid rgba(0, 174, 239, 0.24);
  box-shadow: inset 0 0 18px rgba(0, 174, 239, 0.08);
  z-index: 1;
}

.flow-core__machine-label {
  font-size: 0.92rem;
  letter-spacing: 0.16em;
}

.flow-core__media {
  position: relative;
  z-index: 1;
  width: min(100%, 178px);
  min-height: 158px;
  display: grid;
  place-items: center;
  padding: 2px 0;
}

.flow-core__media img {
  position: relative;
  z-index: 1;
  max-height: 122px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.36));
}

.flow-core__copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.flow-core__label {
  font-size: 1rem;
  letter-spacing: 0.14em;
}

.flow-arrow {
  appearance: none;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  transition: transform 160ms var(--ease-out), border-color 160ms var(--ease-out), background 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.flow-arrow::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 8px rgba(0, 174, 239, 0.45));
}

.flow-arrow--up::before {
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 10px solid var(--c-brand);
}

.flow-arrow--down::before {
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid var(--c-brand);
}

.flow-arrow:hover,
.flow-arrow:focus-visible {
  border-color: rgba(0, 174, 239, 0.28);
  background: rgba(0, 174, 239, 0.06);
  box-shadow: 0 10px 22px rgba(0, 174, 239, 0.14);
  outline: none;
}

.flow-arrow.flow-arrow--up:hover,
.flow-arrow.flow-arrow--up:focus-visible {
  transform: translateY(-1px);
}

.flow-arrow.flow-arrow--down:hover,
.flow-arrow.flow-arrow--down:focus-visible {
  transform: translateY(1px);
}

@media (hover: hover) and (pointer: fine) {
  .flow-node > .flow-arrow {
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 180ms var(--ease-out),
      transform 160ms var(--ease-out),
      border-color 160ms var(--ease-out),
      background 160ms var(--ease-out),
      box-shadow 160ms var(--ease-out);
  }

  .flow-node:hover > .flow-arrow,
  .flow-node:focus-within > .flow-arrow {
    opacity: 1;
    pointer-events: auto;
  }
}

.flow-add {
  appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(0, 174, 239, 0.34);
  background: rgba(0, 174, 239, 0.12);
  color: var(--c-text);
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 174, 239, 0.12);
  transition: transform 150ms var(--ease-out), border-color 150ms var(--ease-out), background 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}

.flow-stack[data-flow-stack="inputs"] .flow-add {
  justify-self: end;
}

.flow-stack[data-flow-stack="outputs"] .flow-add {
  justify-self: start;
}

.flow-add:hover,
.flow-add:focus-visible {
  background: rgba(0, 174, 239, 0.2);
  border-color: rgba(0, 174, 239, 0.62);
  box-shadow: 0 12px 24px rgba(0, 174, 239, 0.18);
  outline: none;
  transform: translateY(-1px);
}

.flow-node.is-switching-up .flow-node__anchor,
.flow-node.is-switching-down .flow-node__anchor,
.flow-node.is-signal-origin .flow-node__anchor,
.flow-node.is-signal-arrival .flow-node__anchor {
  animation: flow-node-flash 620ms var(--ease-out);
}

.flow-core__panel.is-processing .flow-core__box,
.flow-core__panel.is-signal-active .flow-core__box {
  animation: flow-core-flash 620ms var(--ease-out);
}

.flow-core__panel.is-processing .flow-core__box::before,
.flow-core__panel.is-signal-active .flow-core__box::before {
  animation: flow-core-glow 620ms var(--ease-out);
}

.toggle-button {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-ui);
  color: var(--c-text);
  padding: 10px 14px;
  min-width: 44px;
  cursor: pointer;
  transition: background 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.toggle-button:hover {
  background: var(--c-surface-2);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

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

.text-accent {
  color: var(--c-brand);
  font-weight: 700;
}

.text-accent--icon {
  display: inline-block;
  margin-inline: 4px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
}

.text-accent--icon-up {
  border-bottom: 8px solid var(--c-brand);
  transform: translateY(-1px);
}

.text-accent--icon-down {
  border-top: 8px solid var(--c-brand);
  transform: translateY(1px);
}

.signal-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-5);
  border: 1px dashed var(--c-border);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.02);
}

.signal-node {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
}

.signal-node--core {
  background: linear-gradient(135deg, rgba(0, 174, 239, 0.18), rgba(16, 24, 38, 0.9));
  border-color: rgba(0, 174, 239, 0.4);
}

.signal-arrow {
  font-size: 1.6rem;
  color: var(--c-text-muted);
  text-align: center;
}

.config-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-6);
}

@media (max-width: 899px) {
  .reaction-flow__track {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 56px;
    padding-inline: clamp(18px, 5vw, 30px);
  }

  .flow-stack,
  .flow-core {
    width: min(100%, 304px);
  }

  .flow-stack__header,
  .flow-stack[data-flow-stack="inputs"] .flow-stack__header,
  .flow-stack[data-flow-stack="outputs"] .flow-stack__header,
  .flow-core .flow-stack__header {
    justify-items: center;
    text-align: center;
  }

  .flow-node,
  .flow-stack[data-flow-stack="outputs"] .flow-node {
    justify-items: center;
  }

  .flow-node__display,
  .flow-stack[data-flow-stack="outputs"] .flow-node__display {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 12px;
    width: 100%;
  }

  .flow-node__copy,
  .flow-stack[data-flow-stack="inputs"] .flow-node__copy,
  .flow-stack[data-flow-stack="outputs"] .flow-node__copy {
    order: 0;
    justify-items: center;
    text-align: center;
    max-width: none;
  }

  .flow-stack[data-flow-stack="outputs"] .flow-node__anchor {
    order: 0;
  }

  .flow-stack[data-flow-stack="inputs"] .flow-add,
  .flow-stack[data-flow-stack="outputs"] .flow-add {
    justify-self: center;
  }

  .flow-core__box {
    min-height: 320px;
  }
}

@media (min-width: 900px) {
  .reaction-flow__track {
    grid-template-columns: minmax(210px, 1fr) minmax(248px, 292px) minmax(210px, 1fr);
    gap: clamp(76px, 8vw, 128px);
    align-items: stretch;
  }

  .flow-stack,
  .flow-core {
    grid-template-rows: auto 1fr;
    height: 100%;
  }

  .flow-stack__header {
    min-height: 136px;
    align-content: start;
  }

  .flow-stack[data-flow-stack="inputs"] .flow-stack__header {
    justify-items: start;
    text-align: left;
    margin-inline-start: -32px;
  }

  .flow-stack[data-flow-stack="outputs"] .flow-stack__header {
    justify-items: end;
    text-align: right;
    margin-inline-end: -36px;
  }

  .flow-stack__columns {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    height: 100%;
  }

  .flow-stack[data-flow-stack="inputs"] .flow-stack__columns {
    align-items: flex-start;
  }

  .flow-stack[data-flow-stack="outputs"] .flow-stack__columns {
    align-items: flex-end;
  }

  .flow-node {
    width: max-content;
    max-width: 100%;
    gap: 12px;
  }

  .flow-stack[data-flow-stack="inputs"] .flow-node > .flow-arrow,
  .flow-stack[data-flow-stack="inputs"] .flow-node > .flow-add {
    justify-self: end;
    margin-inline-end: 15px;
  }

  .flow-stack[data-flow-stack="outputs"] .flow-node > .flow-arrow,
  .flow-stack[data-flow-stack="outputs"] .flow-node > .flow-add {
    justify-self: start;
    margin-inline-start: 7px;
  }

  .flow-node > .flow-arrow.flow-arrow--up {
    margin-block-end: -8px;
  }

  .flow-node > .flow-arrow.flow-arrow--down {
    margin-block-start: -8px;
  }

  .flow-stack[data-flow-stack="inputs"] .flow-node {
    margin-inline-start: -32px;
  }

  .flow-stack[data-flow-stack="outputs"] .flow-node {
    margin-inline-end: -36px;
  }

  .flow-core__panel {
    min-height: 0;
    height: 100%;
    align-content: center;
  }
}

@keyframes flow-node-flash {
  from {
    border-color: rgba(0, 174, 239, 0.32);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 0 0 0 rgba(0, 174, 239, 0);
  }
  55% {
    border-color: rgba(0, 174, 239, 0.96);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 0 0 6px rgba(0, 174, 239, 0.15), 0 0 22px rgba(0, 174, 239, 0.48);
  }
  to {
    border-color: rgba(0, 174, 239, 0.32);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 0 0 0 rgba(0, 174, 239, 0), 0 0 0 rgba(0, 174, 239, 0);
  }
}

@keyframes flow-core-flash {
  0% {
    border-color: rgba(126, 220, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 48px rgba(0, 0, 0, 0.28);
  }
  45% {
    border-color: rgba(0, 194, 255, 0.52);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(0, 194, 255, 0.18), 0 0 28px rgba(0, 174, 239, 0.2), 0 24px 56px rgba(0, 0, 0, 0.32);
  }
  100% {
    border-color: rgba(126, 220, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 20px 48px rgba(0, 0, 0, 0.28);
  }
}

@keyframes flow-core-glow {
  0% {
    opacity: 0;
  }
  45% {
    opacity: 0.65;
  }
  100% {
    opacity: 0;
  }
}

@keyframes slide-up {
  from { transform: translateY(24px) scale(0.98); opacity: 0; }
  45% { opacity: 0.72; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes slide-down {
  from { transform: translateY(-24px) scale(0.98); opacity: 0; }
  45% { opacity: 0.72; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes core-swap-fade {
  from { opacity: 0.18; }
  45% { opacity: 0.74; }
  to { opacity: 1; }
}

@keyframes swap-fade {
  from { opacity: 0.2; }
  45% { opacity: 0.78; }
  to { opacity: 1; }
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  list-style: none;
  padding: 0;
  margin: 0;
}

.pill-list li {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 10px 14px;
  border-radius: 999px;
}

label {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  color: var(--c-text);
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-ui);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text);
  font: inherit;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background 160ms var(--ease-out);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.25);
  background: var(--c-surface-2);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

dl {
  margin: 0;
  display: grid;
  gap: var(--space-4);
}

dt {
  margin: 0;
  font-weight: 600;
  color: var(--c-text);
}

dd {
  margin: 4px 0 0;
  color: var(--c-text-muted);
}

.site-footer {
  border-top: 1px solid var(--c-border);
  color: var(--c-text-muted);
  gap: var(--space-3);
  flex-wrap: wrap;
  padding-top: var(--space-5);
  padding-bottom: var(--space-5);
}

.site-footer nav {
  display: flex;
  gap: var(--space-4);
}

a[aria-current="page"] {
  color: var(--c-brand-2);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--c-brand), var(--c-brand-2));
  z-index: 40;
  transition: width 120ms linear;
}

.nav-veil {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--ease-out);
  z-index: 15;
}

body.nav-open .nav-veil {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1080px) {
  body {
    scroll-padding-top: calc(var(--header-height) + var(--space-4));
  }

  main > * {
    scroll-margin-top: calc(var(--header-height) + var(--space-4));
  }

  .site-header__inner {
    padding: var(--space-4) var(--space-5);
  }

  .site-header nav {
    position: fixed;
    inset: var(--header-height) var(--space-4) auto var(--space-4);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-card);
    padding: var(--space-5);
    box-shadow: var(--shadow-card);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
    z-index: 18;
    max-width: 520px;
    margin: 0 auto;
    width: calc(100% - (var(--space-4) * 2));
  }

  .site-header.is-open nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-header nav::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(16, 24, 38, 0.9);
    backdrop-filter: blur(18px);
    z-index: -1;
  }

  .nav-list {
    flex-direction: column;
    gap: var(--space-3);
  }

  .nav-list a {
    width: 100%;
  }
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-header nav,
  .site-header.is-open nav {
    display: block;
  }
}

@media (max-width: 720px) {
  :root {
    --space-6: 20px;
    --space-7: 28px;
    --space-8: 40px;
    --space-9: 56px;
    --space-10: 80px;
    --header-height: 68px;
  }

  body {
    scroll-padding-top: calc(var(--header-height) + var(--space-3));
  }

  main > * {
    scroll-margin-top: calc(var(--header-height) + var(--space-3));
  }

  .site-header__inner,
  .site-footer,
  main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-top: max(var(--space-9), calc(var(--header-height) + var(--space-3)));
  }

  .section {
    padding: var(--space-9) 0;
  }

  main > .section:first-child {
    padding-top: max(var(--space-9), calc(var(--header-height) + var(--space-4)));
  }

  .section.section-highlight {
    padding: var(--space-8) var(--space-5);
  }

  .signal-flow {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .signal-arrow {
    display: none;
  }

  .flow-label {
    font-size: 11px;
    letter-spacing: 0.05em;
  }

  .hero-flow .flow-label {
    display: block;
  }

  .hero-flow {
    max-width: 500px;
  }

}

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

  body {
    scroll-behavior: auto;
  }

  .scroll-progress {
    transition: none;
  }

  .site-header nav {
    transition: none;
  }

  .fd-pulse {
    display: none;
  }
}

.impressum .card + .card {
  margin-top: var(--space-6);
}
