/* LSX UG, neue Website
   Welt: das Logo. Tiefschwarz, ein Signalrot, Leiterbahnen mit Lötpunkten.
   Eine Akzentfarbe, eckige Formen (Radius 2px), eine Schriftfamilie (Archivo, variabel in Breite und Stärke). */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #f3f4f5;
  --paper-2: #e9ebed;
  --ink: #0d0d0e;
  --ink-2: #45474c;
  --ink-3: #6a6d73;
  --line: #d4d7db;
  --red: #d20001;
  --red-deep: #a80001;
  --night: #0d0d0e;
  --night-2: #1a1b1d;
  --night-line: #2c2e31;
  --night-text: #c9ccd1;

  --radius: 2px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(88px, 11vw, 160px);

  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-h2: clamp(2rem, 1.3rem + 2.6vw, 3.5rem);
  --fs-h1: clamp(2.5rem, 1.5rem + 3.4vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", ui-sans-serif, system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  font-stretch: 100%;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--red);
  scrollbar-color: var(--ink-3) var(--paper);
}

::selection { background: var(--red); color: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: var(--radius); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }

.icon { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

/* Typografie */
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
.h2 { font-size: var(--fs-h2); font-stretch: 112%; letter-spacing: -0.03em; }
p { margin: 0; text-wrap: pretty; }

/* Buttons */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  height: var(--h); padding: 0 1.15em;
  border-radius: var(--radius); border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: 0.975rem; font-stretch: 105%;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--lg { --h: 54px; padding: 0 1.5em; font-size: 1.0625rem; }
.btn--primary { background: var(--red); color: #fff; }
.btn--ghost { color: var(--ink); border-color: var(--ink); }
.btn .icon { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--red-deep); }
  .btn--ghost:hover { background: var(--ink); color: var(--paper); }
  .btn:hover .icon { transform: translateX(3px); }
}
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.nav__brand { display: block; }
.nav__brand img { height: 28px; width: auto; }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-weight: 550; font-size: 0.975rem; }
.nav__links a { text-decoration: none; color: var(--ink-2); transition: color 200ms ease; }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: var(--radius); }
.nav__toggle .icon { width: 26px; height: 26px; }
.nav__toggle .icon--close { display: none; }
.nav__toggle[aria-expanded="true"] .icon--open { display: none; }
.nav__toggle[aria-expanded="true"] .icon--close { display: block; }
.nav__sheet { display: grid; gap: 4px; padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line); }
.nav__sheet[hidden] { display: none; }
.nav__sheet a:not(.btn) { padding: 12px 0; font-size: 1.25rem; font-weight: 650; text-decoration: none; border-bottom: 1px solid var(--line); }
.nav__sheet .btn { margin-top: 16px; }

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: grid; place-items: center; }
  .nav__inner { height: 64px; }
}

/* Hero */
.hero { position: relative; padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(72px, 9vw, 128px); overflow: clip; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__title {
  font-size: var(--fs-h1);
  font-stretch: 118%;
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1;
  max-width: 15ch;
}
.hero__lead { margin-top: 28px; max-width: 44ch; font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem); color: var(--ink-2); line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.hero__chip { position: relative; margin: 0; padding-block: 72px; }
.hero__photo {
  position: relative; z-index: 1;
  aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: 0 1px 0 rgba(13,13,14,0.06), 0 24px 48px -24px rgba(13,13,14,0.28);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%; }
.hero__caption { position: relative; z-index: 1; margin-top: 14px; font-size: var(--fs-small); color: var(--ink-3); }
.traces { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.traces path { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.traces circle { fill: var(--paper); stroke: var(--red); stroke-width: 2; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__chip { padding-block: 56px; max-width: 460px; }
  .hero__title { max-width: 14ch; }
}

/* Leistungen */
.services { border-top: 1px solid var(--line); }
.services__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 80px; align-items: end; }
.services__intro { color: var(--ink-2); max-width: 46ch; }
.services__groups { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 80px); margin-top: clamp(48px, 6vw, 88px); }
.services__label { font-size: 1.125rem; font-weight: 700; font-stretch: 110%; color: var(--red); padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc { position: relative; padding: 28px 0 30px; border-bottom: 1px solid var(--line); }
.svc::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform 450ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .svc:hover::after { transform: scaleX(1); } }
.svc__name { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.125rem); font-stretch: 112%; letter-spacing: -0.025em; }
.svc__text { margin-top: 10px; color: var(--ink-2); max-width: 52ch; }

@media (max-width: 860px) {
  .services__head, .services__groups { grid-template-columns: 1fr; }
  .services__group + .services__group { margin-top: 56px; }
}

/* Preise */
.prices { background: var(--paper-2); border-top: 1px solid var(--line); }
.prices__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 80px; }
.prices__statement { font-size: clamp(1.75rem, 1.1rem + 2.2vw, 3rem); font-weight: 700; font-stretch: 108%; letter-spacing: -0.025em; line-height: 1.15; max-width: 24ch; }
.prices__statement .num { color: var(--red); font-variant-numeric: tabular-nums; white-space: nowrap; }
.prices__notes { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; color: var(--ink-2); font-size: var(--fs-small); }
.prices__notes li { padding-left: 22px; position: relative; }
.prices__notes li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 10px; height: 10px; border: 2px solid var(--red); border-radius: 50%; }
@media (max-width: 860px) {
  .prices__grid { grid-template-columns: 1fr; }
  .prices__notes { grid-template-columns: 1fr; }
}

/* Ablauf: Leitungsstücke von Punkt zu Punkt, das letzte Stück endet am letzten Punkt */
.steps { list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { position: relative; padding-top: 44px; }
.step::before, .step::after { content: ""; position: absolute; top: 8px; left: 9px; height: 2px; width: calc(100% + 32px); }
.step:last-child::before, .step:last-child::after { display: none; }
.step::before { background: var(--line); }
.step::after { background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 520ms var(--ease-in-out); }
.steps.is-drawn .step::after { transform: scaleX(1); }
.steps.is-drawn .step:nth-child(2)::after { transition-delay: 480ms; }
.steps.is-drawn .step:nth-child(3)::after { transition-delay: 960ms; }
.step__pad {
  position: absolute; top: 0; left: 0; width: 18px; height: 18px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--line); z-index: 1;
  transition: border-color 200ms ease, background-color 200ms ease, box-shadow 500ms var(--ease-out);
}
.steps.is-drawn .step__pad { border-color: var(--red); }
.steps.is-drawn .step:nth-child(2) .step__pad { transition-delay: 480ms; }
.steps.is-drawn .step:nth-child(3) .step__pad { transition-delay: 960ms; }
.steps.is-drawn .step:nth-child(4) .step__pad { transition-delay: 1440ms; background: var(--red); box-shadow: 0 0 0 8px rgba(210, 0, 1, 0.12); }
.step__title { font-size: 1.5rem; font-stretch: 110%; }
.step__text { margin-top: 10px; color: var(--ink-2); max-width: 30ch; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 40px 48px; }
  .step:last-child { padding-bottom: 0; }
  .step::before, .step::after { top: 9px; left: 8px; width: 2px; height: 100%; }
  .step::after { transform: scaleY(0); transform-origin: top; }
  .steps.is-drawn .step::after { transform: scaleY(1); }
}

/* Projekte */
.work { border-top: 1px solid var(--line); }
.process + .work, .prices + .process { border-top: 1px solid var(--line); }
.work__grid {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid; gap: 16px;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
}
.case { position: relative; border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px; overflow: hidden; text-decoration: none; }
.case__title { font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.375rem); font-stretch: 112%; letter-spacing: -0.03em; }
.case__type { margin-top: 6px; font-size: var(--fs-small); font-weight: 600; }
.case__text { margin-top: 14px; max-width: 44ch; }

.case--ref { grid-column: span 7; grid-row: span 2; background: #fff; border: 1px solid var(--line); color: var(--ink); min-height: 520px; justify-content: space-between; transition: border-color 250ms ease, box-shadow 300ms var(--ease-out); }
.case--ref .case__art { padding-top: 8px; }
.case--ref .case__art img { width: min(100%, 340px); }
.case--ref .case__type { color: var(--red); }
.case--ref .case__text { color: var(--ink-2); }
.case__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-weight: 650; color: var(--ink); }
.case__link .icon { transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .case--ref:hover { border-color: var(--ink); box-shadow: 0 18px 40px -24px rgba(13,13,14,0.3); }
  .case--ref:hover .case__link .icon { transform: translate(3px, -3px); }
}
.case--ref:active { transform: scale(0.995); }

.case--erp { grid-column: span 5; background: var(--paper-2); }
.case--erp .case__type, .case--server .case__type { color: var(--red); }
.case--erp .case__text { color: var(--ink-2); }

.case--server {
  grid-column: span 5; background: var(--ink); color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}
.case--server .case__type { color: #ff5a4f; }
.case--server .case__text { color: var(--night-text); }

.case--next { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; justify-content: space-between; background: var(--red); color: #fff; transition: background-color 200ms ease; }
.case--next .case__text { margin-top: 6px; }
.case__arrow { width: 44px; height: 44px; transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .case--next:hover { background: var(--red-deep); }
  .case--next:hover .case__arrow { transform: translate(4px, -4px); }
}
.case--next:active { transform: scale(0.99); }

@media (max-width: 960px) {
  .work__grid { grid-template-columns: 1fr; }
  .case--ref, .case--erp, .case--server, .case--next { grid-column: auto; grid-row: auto; }
  .case--ref { min-height: 0; gap: 40px; }
}

/* Über mich */
.about { border-top: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; background: var(--paper-2); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.about__copy p { margin-top: 20px; color: var(--ink-2); max-width: 52ch; }
.about__copy p:first-of-type { margin-top: 28px; color: var(--ink); font-size: 1.1875rem; }
@media (max-width: 860px) { .about__grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 80px; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: 1.1875rem; font-weight: 650; font-stretch: 105%;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat;
  transition: transform 250ms var(--ease-out);
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 0 26px; color: var(--ink-2); max-width: 62ch; }
@media (hover: hover) and (pointer: fine) { .qa summary:hover { color: var(--red); } }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } }

/* Kontakt + Footer (einziger dunkler Abschluss der Seite) */
.contact { background: var(--night); color: var(--paper); padding-top: var(--section); }
.contact ::selection { background: var(--paper); color: var(--ink); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(40px, 6vw, 96px); }
.contact .h2 { color: var(--paper); max-width: 14ch; }
.contact__intro > p { margin-top: 20px; color: var(--night-text); }
.contact__direct { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 14px; }
.contact__direct li { display: flex; align-items: center; gap: 14px; color: var(--night-text); }
.contact__direct .icon { color: #ff5a4f; width: 20px; height: 20px; }
.contact__direct a { color: var(--paper); text-decoration: none; }
.contact__direct a:hover { text-decoration: underline; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; align-content: start; }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-small); font-weight: 600; color: var(--paper); }
.field__opt { font-weight: 400; color: var(--night-text); }
.field input:not([type="checkbox"]), .field textarea {
  width: 100%; font: inherit; color: var(--paper);
  background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius);
  padding: 13px 14px; min-height: 50px;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field textarea:hover { border-color: #4a4d52; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--paper); background: #202124; }
.field.has-error input, .field.has-error textarea { border-color: #ff5a4f; }
.field__error { display: none; font-size: 0.875rem; color: #ff8a82; }
.field.has-error .field__error { display: block; }
.field--check { grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); }
.field--check label { font-weight: 400; color: var(--night-text); line-height: 1.5; }
.field--check label a { color: var(--paper); }
.field--check .field__error { grid-column: 2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form__status { font-size: var(--fs-small); color: var(--night-text); }
.form__status.is-ok { color: #7ee2a8; }
.form__status.is-err { color: #ff8a82; }
@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}

.footer { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: var(--section); padding-block: 32px; border-top: 1px solid var(--night-line); color: var(--night-text); font-size: var(--fs-small); }
.footer img { height: 22px; width: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-left: auto; }
.footer__links a { color: var(--night-text); text-decoration: none; }
.footer__links a:hover { color: var(--paper); }

/* Einstieg: bereits sichtbarer Ausgangszustand, nur leichte Bewegung */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__copy > :not(h1) { animation: rise 700ms var(--ease-out) both; animation-delay: 420ms; }
  .js .hero__copy > :nth-child(3) { animation-delay: 540ms; }
  .js .hero__photo { animation: settle 900ms var(--ease-out) both; }
}
@keyframes rise { from { opacity: 0.001; transform: translateY(14px); filter: blur(4px); } }
@keyframes settle { from { opacity: 0.001; transform: scale(0.97); clip-path: inset(6% 6% 6% 6%); } }

/* Rechtliche Unterseiten */
.legal { padding-block: clamp(48px, 7vw, 96px) var(--section); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(1.875rem, 1.2rem + 2.8vw, 3.5rem); overflow-wrap: anywhere; hyphens: auto; font-stretch: 112%; letter-spacing: -0.03em; }
.legal h2 { margin-top: 48px; font-size: 1.375rem; font-stretch: 106%; }
.legal p, .legal li { margin-top: 12px; color: var(--ink-2); max-width: 68ch; }
.legal .back { display: inline-flex; margin-bottom: 32px; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.legal .back:hover { color: var(--red); }


/* ============ Bewegung und Effekte ============ */

/* Wort-Masken für Überschriften */
.w { display: inline-block; overflow: clip; overflow-clip-margin: 0.12em; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w > span { display: inline-block; will-change: transform; }
.js-motion .split .w > span { transform: translateY(105%); }
.js-motion .split.is-in .w > span { transform: none; transition: transform 900ms var(--ease-out); transition-delay: calc(var(--i) * 45ms); }

/* Einblenden beim Scrollen */
.js-motion [data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(6px); }
.js-motion [data-reveal].is-in { opacity: 1; transform: none; filter: none; transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out), filter 700ms var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }

/* Hero: Strompulse auf den Leiterbahnen, Foto mit Tiefe */
.traces .pulse { stroke: var(--red); stroke-width: 3; fill: none; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(210, 0, 1, 0.6)); }
.hero__photo { transform-style: preserve-3d; will-change: transform; }
.hero__photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 30%), rgba(255,255,255,0.22), transparent 60%);
  opacity: var(--glare, 0); transition: opacity 300ms ease;
}

/* Technik-Band */
.stack { border-top: 1px solid var(--line); padding-block: 28px; overflow: hidden; }
.stack__track { display: flex; width: max-content; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.stack__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 56px; padding-right: 56px; flex: none; }
.stack__list li { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-weight: 650; font-stretch: 108%; font-size: 1.125rem; white-space: nowrap; transition: color 250ms ease; }
.stack__list svg { width: 26px; height: 26px; fill: currentColor; }
.stack__list li:hover { color: var(--ink); }
.js-motion .stack__track { animation: marquee 48s linear infinite; }
.stack:hover .stack__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.js .stack { -webkit-mask-image: none; }

/* Karten: Lichtkegel folgt der Maus */
.case { isolation: isolate; }
.case::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--spot, rgba(210, 0, 1, 0.10)), transparent 70%);
  opacity: 0; transition: opacity 350ms ease;
}
.case:hover::before { opacity: 1; }
.case--server { --spot: rgba(255, 90, 79, 0.18); }
.case--next { --spot: rgba(255, 255, 255, 0.22); }
.case--erp { --spot: rgba(13, 13, 14, 0.07); }

/* Server-Karte: Status-LEDs */
.leds { position: absolute; top: clamp(24px, 3vw, 40px); right: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: repeat(4, 8px); gap: 8px; }
.leds span { width: 8px; height: 8px; border-radius: 50%; background: #2a2c2f; }
.js-motion .leds span { animation: led 2.4s steps(1, end) infinite; }
.leds span:nth-child(1) { animation-delay: 0s; } .leds span:nth-child(2) { animation-delay: 0.7s; }
.leds span:nth-child(3) { animation-delay: 1.3s; } .leds span:nth-child(4) { animation-delay: 0.2s; }
.leds span:nth-child(5) { animation-delay: 1.9s; } .leds span:nth-child(6) { animation-delay: 0.4s; }
.leds span:nth-child(7) { animation-delay: 1.1s; } .leds span:nth-child(8) { animation-delay: 1.6s; }
.leds span:nth-child(3n) { --on: #3ddc84; }
@keyframes led { 0% { background: var(--on, #ff3b30); box-shadow: 0 0 8px var(--on, #ff3b30); } 30% { background: #2a2c2f; box-shadow: none; } 55% { background: var(--on, #ff3b30); box-shadow: 0 0 8px var(--on, #ff3b30); } 62% { background: #2a2c2f; box-shadow: none; } }

/* Zähler */
.num { display: inline-block; min-width: 0; }

/* Seiten-Leiterbahn am linken Rand, wächst beim Scrollen */
.spine { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 0; overflow: visible; }
.spine__branch { transition: stroke-dashoffset 260ms linear; }
.spine circle { transition-delay: 0ms; }
.spine circle.is-lit { transition-delay: 200ms; }
.hero, .stack, .section, .contact { position: relative; }
.section > .wrap, .stack__track, .hero__grid { position: relative; z-index: 1; }
.spine path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spine .spine__base { stroke: var(--line); }
.spine .spine__live { stroke: var(--red); }
.spine circle { fill: var(--paper); stroke: var(--line); stroke-width: 2; transition: stroke 250ms ease, fill 250ms ease; }
.spine circle.is-lit { stroke: var(--red); fill: var(--red); }
main { position: relative; }

/* Großes Logo zum Abschluss */
.bigmark { margin-top: var(--section); display: grid; place-items: center; }
.bigmark__svg { width: min(100%, 620px); height: auto; overflow: visible; }
.bm-traces { fill: var(--red); }
.bm-s { fill: var(--red); }
.bm-letters { fill: var(--paper); }
.js-motion .bigmark__svg { clip-path: circle(0% at 50% 48%); transition: clip-path 1600ms var(--ease-in-out); }
.js-motion .bigmark.is-in .bigmark__svg { clip-path: circle(75% at 50% 48%); }
.js-motion .bigmark.is-in .bm-traces { animation: glow 3.2s ease-in-out 1.6s infinite; }
@keyframes glow { 50% { filter: drop-shadow(0 0 10px rgba(255, 40, 30, 0.75)); } }

/* Magnetische Buttons */
.btn--magnet { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .js-motion .stack__track, .js-motion .leds span { animation: none; }
}

/* ---------- Sicherheitsabfrage im Formular ---------- */
.field--captcha { min-height: 78px; }
.captcha { min-height: 78px; }
.field--captcha.has-error .captcha { outline: 1px solid #ff8a82; outline-offset: 4px; width: max-content; }

/* ---------- Einwilligung (Cookie-Banner) ---------- */
.consent {
  position: fixed; z-index: 90; right: var(--gutter); bottom: var(--gutter);
  width: min(440px, calc(100vw - 2 * var(--gutter)));
  opacity: 0; transform: translateY(16px);
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
}
.consent.is-in { opacity: 1; transform: none; }
.consent[hidden] { display: none; }
.consent__card {
  background: var(--paper); color: var(--ink); border: 1px solid var(--ink);
  border-radius: var(--radius); padding: 24px;
  box-shadow: 8px 8px 0 var(--ink);
}
.consent__title { font-weight: 700; font-size: 1.125rem; font-stretch: 106%; letter-spacing: -0.01em; }
.consent__text { margin-top: 8px; font-size: var(--fs-small); color: var(--ink-2); }
.consent__text a { color: var(--ink); }
.consent__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.consent__actions .btn { flex: 1 1 auto; justify-content: center; }
@media (max-width: 520px) {
  .consent { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .consent__card { box-shadow: 4px 4px 0 var(--ink); padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .consent { transition: none; transform: none; } }

/* ---------- Rechtstexte: Ergänzungen ---------- */
.legal h3 { margin-top: 28px; font-size: 1.0625rem; font-weight: 700; }
.legal ul { margin-top: 12px; padding-left: 1.25em; }
.legal .table { margin-top: 16px; overflow-x: auto; }
.legal table { border-collapse: collapse; width: 100%; font-size: var(--fs-small); }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.legal th { color: var(--ink); font-weight: 650; }
.legal .eyebrow { font-size: var(--fs-small); font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.legal-foot { border-top: 1px solid var(--line); margin-top: var(--section); }
.legal-foot .wrap { max-width: none; display: flex; gap: 24px; flex-wrap: wrap; align-items: center; padding-block: 28px; font-size: var(--fs-small); color: var(--ink-3); }
.legal-foot nav { display: flex; gap: 24px; flex-wrap: wrap; margin-left: auto; }
.legal-foot a { color: var(--ink-2); text-decoration: none; }
.legal-foot a:hover { color: var(--red); }
.notfound { min-height: 70vh; display: grid; align-content: center; }
.notfound .code { font-size: clamp(5rem, 3rem + 10vw, 11rem); font-weight: 800; font-stretch: 125%; line-height: 0.9; letter-spacing: -0.04em; color: var(--red); }
.notfound .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
