/* spinie: Unternehmenswissen als vernetztes Nervensystem. */
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/atkinson-hyperlegible-next-latin-wght-normal-c30cdd7a.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #080f18;
  --surface: #0e1824;
  --surface-raised: #14212e;
  --ink: #eef5f6;
  --muted: #a2b2c0;
  --accent: #c0f78d;
  --neural: #70e5cb;
  --line: #2a3b49;
  --text: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --wrap: 82rem;
  --gutter: clamp(1.15rem, 5vw, 4rem);
  --section: clamp(4rem, 8vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
}
h1, h2, h3, p, ul, dl, dd, table, figure { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2 {
  font-weight: 550;
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.25em;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -5rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--background);
}
.skip-link:focus { top: 0.5rem; }

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(8 15 24 / 94%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5.5rem;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img {
  display: block;
  width: auto;
  height: 2rem;
  filter: brightness(0) invert(1);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.8rem);
  font-size: 0.95rem;
}
.site-nav a { text-decoration: none; padding-block: 0.65rem; }
.site-nav a:hover { color: var(--accent); }
.site-nav .site-nav__cta {
  display: inline-block;
  padding: 0.45rem 1.15rem;
  border: 1px solid #6d827f;
  border-radius: 999px;
  font-weight: 600;
}
.site-nav .site-nav__cta:hover,
.site-nav .site-nav__cta[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--background);
}
.site-nav .site-nav__language { color: var(--muted); }

/* Aktionen */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.95rem 1.4rem;
  background: var(--accent);
  color: var(--background);
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background 160ms ease, box-shadow 160ms ease;
}
.button::after { content: "↗" / ""; font-size: 1.25rem; flex-shrink: 0; }
.button:hover { background: #d7ffb5; box-shadow: 0 0 26px rgb(192 247 141 / 12%); }
.text-link { color: var(--muted); font-size: 1rem; }
.text-link:hover { color: var(--ink); }

/* Hero und neuronale Struktur */
.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(3rem, 6vw, 5.5rem) var(--section);
  background: radial-gradient(ellipse at 85% 20%, #122a34 0, transparent 48%);
}
.hero__grid { position: relative; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
  color: var(--neural);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.eyebrow__mark {
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}
.hero__title {
  max-width: 13ch;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-weight: 550;
  line-height: 1.02;
  letter-spacing: -0.055em;
}
.hero__lead {
  max-width: 52ch;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.65;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 1.75rem;
  margin-top: 2rem;
}
.neural { position: relative; margin-top: 1.5rem; }
.neural__image { display: block; width: 100%; height: auto; }
.neural__caption {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.neural__caption span {
  color: var(--neural);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

/* Interaktives Beispiel: vom Kontext zum Ergebnis */
.signal {
  position: relative;
  margin-top: 4.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.signal__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.signal__label { color: var(--muted); font-size: 0.85rem; }
.signal__tasks { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.signal__task {
  display: inline-block;
  text-decoration: none;
  padding: 0.55rem 0.85rem;
  border: 1px solid #596d7a;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}
.signal__task:hover { color: var(--ink); border-color: var(--neural); }
.signal__task[aria-selected="true"] {
  background: var(--surface-raised);
  border-color: var(--neural);
  color: var(--neural);
}
.signal__panel { padding: 1.5rem; scroll-margin-top: 1rem; }
.signal__panel[hidden] { display: none; }
.signal__panel + .signal__panel { border-top: 1px solid var(--line); }
.signal__panel > .signal__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.spine {
  position: relative;
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.spine__vertebra {
  position: relative;
  padding: 0.25rem 0 0.25rem 2rem;
}
.spine__vertebra::before {
  content: "";
  position: absolute;
  top: 0.65rem;
  left: 0;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--neural);
  box-shadow: 0 0 14px rgb(112 229 203 / 30%);
}
.spine__vertebra:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.3rem;
  bottom: -1.5rem;
  left: 0.26rem;
  width: 1px;
  background: var(--line);
}
.spine dt { margin-bottom: 0.45rem; font-size: 0.95rem; font-weight: 600; }
.spine dd { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.signal__outcome {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--accent);
  background: #16251e;
  color: #d2eec3;
  font-size: 0.95rem;
  line-height: 1.5;
}
.signal__note {
  padding: 0 1.5rem 1.25rem;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Inhalt */
main { counter-reset: section; }
.section { padding-block: var(--section); counter-increment: section; }
.section--flush { padding-top: 0; }
.section--tint { background: var(--surface); }
.section--ink {
  background: radial-gradient(ellipse at 90% 100%, #123137, transparent 65%), #09141e;
  border-block: 1px solid var(--line);
}
.section__title { max-width: 24ch; font-size: clamp(2rem, 4.3vw, 3.6rem); }
.section__title::before {
  content: "0" counter(section) " /" / "";
  display: block;
  margin-bottom: 1.25rem;
  color: var(--neural);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.05em;
}
.section__intro {
  max-width: 62ch;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 1.125rem;
}
.section__intro + p { margin-top: 2rem; }
.note {
  max-width: 66ch;
  margin-top: 3rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--neural);
  color: var(--muted);
  font-size: 1rem;
}
.split { display: grid; gap: 2rem clamp(2rem, 6vw, 5rem); }
.prose { max-width: 62ch; color: var(--muted); }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { margin-top: 2.5rem; color: var(--ink); font-size: 1.5rem; }
.prose a { color: var(--ink); }
.contrast { display: grid; gap: 2.5rem 4rem; margin-top: 3rem; }
.contrast h3 { max-width: 36ch; color: var(--muted); font-size: 0.95rem; font-weight: 400; }
.contrast ul { margin-top: 1rem; border-top: 1px solid var(--line); }
.contrast li { padding-block: 1.1rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.contrast__side--connected ul { border-color: var(--neural); }
.contrast__side--connected li {
  position: relative;
  padding-right: 2rem;
  color: var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.4;
}
.contrast__side--connected li::after { content: "↗" / ""; position: absolute; right: 0; color: var(--neural); }
.columns { display: grid; gap: 2.5rem 4rem; margin-top: 3.5rem; }
.columns > div { padding-top: 1.3rem; border-top: 1px solid var(--line); }
.columns h3 { margin-bottom: 0.8rem; font-size: 1.4rem; letter-spacing: -0.02em; }
.columns p { max-width: 54ch; color: var(--muted); font-size: 1rem; }
.verbs { margin-top: 3rem; border-top: 1px solid var(--line); }
.verbs__item { display: grid; gap: 0.75rem 2rem; padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
.verbs dt { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.04em; }
.verbs dd { max-width: 56ch; color: var(--muted); font-size: 1rem; }

/* Ein Kontext, mehrere Agenten */
.flow { display: grid; gap: 0; margin-top: 3.5rem; max-width: 65rem; }
.flow__base, .flow__clients li { padding: 1.2rem 1.5rem; border: 1px solid #465966; border-radius: 8px; }
.flow__base { border-color: var(--neural); background: #10242b; }
.flow__base > p + p { margin-top: 0.4rem; color: var(--muted); font-size: 0.9rem; }
.flow__name { font-size: 1.5rem; letter-spacing: -0.03em; }
.flow__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
  background: linear-gradient(var(--neural), var(--neural)) center / 1px 100% no-repeat;
}
.flow__link span { padding: 0.3rem 0.7rem; border: 1px solid var(--neural); background: var(--background); color: var(--neural); border-radius: 4px; font: 0.8rem var(--mono); }
.flow__clients { display: grid; gap: 0.6rem; }
.flow__clients li { background: var(--surface); font-size: 1rem; }
.flow__clients .flow__client--open { border-style: dashed; color: var(--muted); background: transparent; }

/* Entwicklungsstand */
.status { width: 100%; margin-top: 2.5rem; border-collapse: collapse; text-align: left; }
.status th, .status td { padding: 1.15rem 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.status thead th { color: var(--muted); font-size: 0.8rem; font-weight: 400; }
.status tbody th { padding-right: 1.5rem; font-size: 1rem; font-weight: 500; }
.status td { width: 10rem; white-space: nowrap; }
.status__badge { display: inline-block; padding: 0.2rem 0.7rem; border: 1px solid #596d7a; color: #b9c6d1; border-radius: 999px; font-size: 0.8rem; }
.status__badge--in_progress { border-color: #d0b068; color: #f2d493; }
.status__badge--available { border-color: var(--neural); background: #133c32; color: #acffe2; }
.section--closing {
  position: relative;
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse at 90% 90%, #19302a, transparent 65%);
}
.section--closing .section__title { max-width: 19ch; }

/* Pilot und Rechtstexte */
.page-head { padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 4.5rem); background: radial-gradient(ellipse at 90% 0, #142c33, transparent 65%); }
.page-head__title { max-width: 20ch; font-size: clamp(2.5rem, 5.5vw, 4.75rem); letter-spacing: -0.05em; }
.criteria { display: grid; margin-top: 2.5rem; border-top: 1px solid var(--line); counter-reset: criterion; }
.criteria li { position: relative; padding: 1.75rem 0 1.75rem 3.5rem; border-bottom: 1px solid var(--line); counter-increment: criterion; }
.criteria li::before { content: "0" counter(criterion) / ""; position: absolute; top: 1.9rem; left: 0; color: var(--neural); font: 0.8rem var(--mono); }
.criteria h3 { max-width: 50ch; font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 500; line-height: 1.3; }
.criteria p { max-width: 62ch; margin-top: 0.6rem; color: var(--muted); font-size: 1rem; }
.draft { padding: 1rem 1.25rem; border: 1px solid #b5965f; background: #302719; color: #f2d493; border-radius: 8px; font-size: 1rem; }

/* Abschluss */
.site-footer { padding-block: 3rem; border-top: 1px solid var(--line); background: var(--background); color: var(--muted); font-size: 0.9rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.site-footer__claim { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.5rem; }
.site-footer__claim img { display: block; width: auto; height: 1.6rem; filter: brightness(0) invert(1); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { color: var(--ink); }

@media (min-width: 48rem) {
  .columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verbs__item { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); align-items: baseline; }
  .flow { grid-template-columns: minmax(0, 1fr) 8rem minmax(0, 1fr); align-items: center; }
  .flow__link { background-size: 100% 1px; }
}
@media (min-width: 52rem) {
  .contrast { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
}
@media (min-width: 56rem) {
  .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); }
}
@media (min-width: 64rem) {
  .hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 1rem; }
  .neural { margin: -2rem -2rem 0; }
  .spine { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
  .spine__vertebra { padding: 1.75rem 0 0; }
  .spine__vertebra::before { top: 0; }
  .spine__vertebra:not(:last-child)::after { top: 0.26rem; left: 0.6rem; right: -1.5rem; bottom: auto; width: auto; height: 1px; }
}
@media (max-width: 58rem) {
  .site-nav .site-nav__section { display: none; }
}
@media (max-width: 63.99rem) {
  .neural { max-width: 36rem; margin-inline: auto; }
  .hero__title { max-width: 16ch; }
  .hero__lead { max-width: 62ch; }
}
@media (max-width: 36rem) {
  .site-header__inner { min-height: 4.5rem; gap: 0.75rem; }
  .brand img { height: 1.65rem; }
  .site-nav { font-size: 0.85rem; gap: 0.8rem; }
  .site-nav .site-nav__cta { padding-inline: 0.8rem; }
  .hero__title { font-size: clamp(2.5rem, 9.7vw, 3.5rem); }
  .hero__lead { font-size: 1.05rem; }
  .hero__actions { align-items: flex-start; flex-direction: column; }
  .neural { margin-top: 2rem; }
  .signal { margin-top: 3rem; }
  .signal__toolbar, .signal__panel { padding: 1.1rem; }
  .signal__task { padding: 0.6rem 0.7rem; }
  .signal__note { padding-inline: 1.1rem; }
  .status td { width: auto; }
  .status tbody th { padding-right: 0.75rem; font-size: 0.9rem; }
  .page-head__title { overflow-wrap: anywhere; }
  .button { max-width: 100%; border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
