/* ══════════════════════════════════════════════════════════
   aiplusblue.de — Relaunch-Entwurf (index-neu.html)
   Design-Tokens 1:1 aus style.css / DESIGN.md
   Fonts lokal (DSGVO — kein Google-Fonts-CDN)
══════════════════════════════════════════════════════════ */

/* ── Fonts (lokal, WOFF2, variabel, latin) ── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
}
/* Statischer 700er-Schnitt nur für die Kontur-Zahlen:
   Der variable Font hat überlappende Glyphen-Konturen (sichtbar bei
   -webkit-text-stroke, z. B. in der „4") — der statische Schnitt nicht. */
@font-face {
  font-family: 'Inter Num';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-num-700.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin.woff2') format('woff2');
}

/* ══════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════ */
:root {
  /* Surface */
  --s-0:  #000000;
  --s-1:  #0c0c0c;
  --s-2:  #141414;
  --s-3:  #1c1c1c;
  --s-4:  #242424;

  --w-0:  #ffffff;
  --w-1:  #fafafa;
  --w-2:  #f5f5f5;
  --w-3:  #efefef;

  /* Text */
  --td-1: rgba(255,255,255,1.00);
  --td-2: rgba(255,255,255,0.55);
  --td-3: rgba(255,255,255,0.28);

  --tl-1: #111111;
  --tl-2: #555555;
  --tl-3: #999999;

  /* Border */
  --bd:   rgba(255,255,255,0.07);
  --bl:   #e4e4e7;

  /* Accent — Logo-Palette */
  --a:       #0099e6;
  --a-t:     #00ccff;
  --a-grad:  linear-gradient(135deg, #00ccff 0%, #0066ff 100%);

  /* Signal — Design-System „Markierung" (1:1 aus Live-style.css) */
  --sig:     #00ccff;
  --sig-h:   #33d6ff;
  --sig-dim: rgba(0,204,255,0.10);
  --sig-ink: #0c0c0c;
  --sig-voicebau:  #ffc400;   /* gelb   */
  --sig-vollgeist: #ff5c1a;   /* orange */
  --sig-gobuch:    #00d97e;   /* grün   */
  --sig-insoklar:  #9d7bff;   /* violett */

  /* Type */
  --sans: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;

  /* Rhythmus */
  --space-section: clamp(72px, 6vw + 40px, 140px);
  --pad-x: clamp(20px, 4.5vw, 56px);

  --dur-fast: 0.18s;
  --dur: 0.3s;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--s-1);
  color: var(--td-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: rgba(0,153,230,0.35); }

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

/* ══════════════════════════════════════
   LAYOUT
══════════════════════════════════════ */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 99;
  height: 60px;
  background: rgba(12,12,12,0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  backdrop-filter: blur(16px) saturate(1.8);
  border-bottom: 1px solid var(--bd);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav nav { display: contents; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img { height: 28px; width: auto; display: block; }

.nav-logo-text {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--td-1);
}
.nav-logo-text b { font-weight: 600; color: var(--a-t); font-style: normal; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  position: relative;
  font-size: 14px;
  font-weight: 400;
  color: var(--td-2);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color var(--dur-fast) ease;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 1px;
  background: var(--a-t);
  transition: right var(--dur) var(--ease-out);
}
.nav-links a:not(.nav-cta):hover { color: var(--td-1); }
.nav-links a:not(.nav-cta):hover::after { right: 0; }

.nav-cta {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--td-1) !important;
  border: 1px solid rgba(255,255,255,0.14);
  padding: 8px 18px;
  border-radius: 6px;
  background: var(--s-3);
  transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease !important;
}
.nav-cta:hover {
  border-color: var(--a) !important;
  background: var(--s-4) !important;
}

/* Hamburger (≤ 768 Overlay-Menü) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 4px;
  flex-direction: column;
  gap: 5px;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--td-1);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s ease;
}
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: 120px;
  padding-bottom: clamp(72px, 10vh, 120px);
  position: relative;
  overflow: hidden;
  background: var(--s-1);
}

/* Statischer Raster-Hintergrund — First Paint ohne WebGL */
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--bd) 1px, transparent 1px),
    linear-gradient(90deg, var(--bd) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 62% 30%, black 25%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 65% at 62% 30%, black 25%, transparent 100%);
  z-index: 0;
}

/* Raster auf Touch-Geraeten komplett aus — HOCH- UND QUERFORMAT.
   Per Isolationstest (Playwright/WebKit, 390x844 + 844x390) belegt:
   das karierte Muster stammt ALLEIN aus .hero-grid. Gegenprobe:
     - .hero-grid ausgeblendet -> Karo weg, Mauer-Bloecke bleiben
     - #wall-canvas ausgeblendet -> Karo bleibt, Bloecke weg
   Der Canvas (neu.js) zeichnet nur Bloecke (ctx.rect/fill/stroke in
   rgba(0,153,230)/rgba(0,204,255)) und keine Rasterlinien — er bleibt
   daher unangetastet, die Mauer-Animation laeuft auf Mobile weiter.
   display:none statt Opazitaet: auf OLED mit echtem Schwarz blieb das
   Muster selbst bei halber Deckkraft sichtbar.
   Bewusst NICHT an max-width gehaengt: quer ist ein iPhone 844-932px
   breit und fiele sonst in die Desktop-Regel.
   Desktop behaelt das Raster unveraendert (BRAND.md Abschnitt 5). */
@media (hover: none) and (pointer: coarse) {
  .hero-grid { display: none; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--td-3);
  letter-spacing: 0.02em;
  margin-bottom: clamp(24px, 3vh, 40px);
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-kicker::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--a);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(52px, 7.5vw, 96px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--td-1);
  margin-bottom: clamp(24px, 3.5vh, 40px);
}
.hero h1 strong { font-weight: 500; }
.hero h1 .dim { color: var(--td-3); font-weight: 300; }
.hero h1 .accent { color: var(--a); }

.hero-sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--td-2);
  max-width: 540px;
  margin-bottom: clamp(32px, 5vh, 56px);
  letter-spacing: -0.01em;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 24px;
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--td-1);
  border: 1px solid rgba(255,255,255,0.16);
  background: var(--s-2);
  padding: 12px 24px;
  border-radius: 7px;
  text-decoration: none;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.btn-solid:hover {
  background: var(--s-3);
  border-color: var(--a);
  transform: translateY(-2px);
}
.btn-solid:active { transform: translateY(0); }

.btn-ghost {
  font-size: 14px;
  font-weight: 400;
  color: var(--td-2);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color var(--dur-fast) ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-ghost:hover { color: var(--td-1); }

.running-strip {
  position: absolute;
  bottom: clamp(24px, 4vh, 48px);
  right: var(--pad-x);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--td-3);
}

.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; } 50% { opacity: 0.4; }
}

/* ══════════════════════════════════════
   PROOF STRIP
══════════════════════════════════════ */
.proof {
  background: var(--s-0);
  border-top: 1px solid var(--bd);
  border-bottom: 1px solid var(--bd);
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.proof-cell {
  padding: clamp(32px, 4vw, 52px) clamp(20px, 2.5vw, 36px);
  border-left: 1px solid var(--bd);
}
.proof-cell:first-child { border-left: none; }

.proof-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--td-3);
  margin-bottom: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.proof-num {
  font-family: 'Inter Num', var(--sans);
  font-size: clamp(56px, 6.5vw, 92px);
  font-weight: 700;
  /* Kein negatives Tracking: Konturen benachbarter Ziffern dürfen sich nicht schneiden */
  letter-spacing: 0.01em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--sig); /* Zahlenfarbe --sig wie im Live-Design-System */
  font-variant-numeric: tabular-nums;
}

/* ══════════════════════════════════════
   SECTION SHARED
══════════════════════════════════════ */
.section-dark {
  background: var(--s-1);
  padding: var(--space-section) 0;
  border-top: 1px solid var(--bd);
}
.section-light {
  background: var(--w-0);
  padding: var(--space-section) 0;
  border-top: 1px solid var(--bl);
}
.section-off {
  background: var(--w-1);
  padding: var(--space-section) 0;
  border-top: 1px solid var(--bl);
}

.s-intro {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 5vw, 80px);
  margin-bottom: clamp(40px, 5vw, 72px);
  align-items: start;
}

.s-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--td-3);
  padding-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.s-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--a);
  flex-shrink: 0;
}
.s-label.on-light { color: var(--tl-3); }

.s-head {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--td-1);
  margin-bottom: 16px;
  max-width: 22ch;
}
.s-head strong { font-weight: 600; }
.s-head.on-light { color: var(--tl-1); }

.s-body {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--td-2);
  letter-spacing: -0.01em;
  max-width: 620px;
}
.s-body.on-light { color: var(--tl-2); }

/* ══════════════════════════════════════
   SERVICES — LIGHT
══════════════════════════════════════ */
.svc-table {
  border-top: 1px solid var(--bl);
}

.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(200px, 260px) 1fr 170px;
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
  padding: clamp(24px, 3vw, 36px) 12px;
  border-bottom: 1px solid var(--bl);
  transition: background var(--dur) ease, transform var(--dur) var(--ease-out);
}
.svc-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--a);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--dur) var(--ease-out);
}
.svc-row:hover {
  background: var(--w-1);
  transform: translateX(4px);
}
.svc-row:hover::before { transform: scaleY(1); }

.svc-n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--tl-3);
  padding-top: 4px;
  transition: color var(--dur-fast) ease;
}
.svc-row:hover .svc-n { color: var(--a); }

.svc-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--tl-1);
  line-height: 1.4;
}

.svc-desc {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--tl-2);
  letter-spacing: -0.01em;
}

.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--tl-3);
  background: var(--w-2);
  border: 1px solid var(--bl);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ══════════════════════════════════════
   PORTFOLIO — DARK
══════════════════════════════════════ */
.proj-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--bd);
  border: 1px solid var(--bd);
  border-radius: 12px;
  overflow: hidden;
}

.proj {
  background: var(--s-1);
  padding: clamp(24px, 3vw, 40px);
  transition: background var(--dur) ease;
}
.proj:hover { background: var(--s-2); }

.term {
  background: var(--s-0);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 24px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.65;
  overflow: hidden;
  transition: border-color var(--dur) ease;
}
.proj:hover .term { border-color: rgba(0,153,230,0.25); }

.term-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 12px;
}
.td { width: 9px; height: 9px; border-radius: 50%; }
.td-r { background: #ff5f57; } .td-y { background: #febc2e; } .td-g { background: #28c840; }
.t-path { font-size: 10.5px; color: rgba(255,255,255,0.2); margin-left: 8px; }

.t  { color: rgba(255,255,255,0.4); margin-bottom: 1px; min-height: 1.65em; white-space: pre-wrap; }
.t.t-result { margin-top: 6px; }
.tk { color: #79c0ff; }
.ts { color: #a5d6ff; }
.tv { color: #7ee787; }
.tm { color: rgba(255,255,255,0.18); }
.tc { color: rgba(255,255,255,0.22); font-style: italic; }
.tf { color: #d2a8ff; }
.cur {
  display: inline-block;
  width: 6px; height: 12px;
  background: rgba(255,255,255,0.45);
  vertical-align: text-bottom;
  animation: blink 1.2s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* Typing-Zustand: Zeilen unsichtbar, bis JS sie „druckt" */
.term.is-typing .t { visibility: hidden; }
.term.is-typing .t.is-typed { visibility: visible; }

.proj-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.proj-type {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--td-3);
}

.proj-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #22c55e;
  font-family: var(--mono);
}
.l-dot { width: 5px; height: 5px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 4px #22c55e; }

.proj-name {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--td-1);
  margin-bottom: 8px;
}

.proj-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--td-2);
  letter-spacing: -0.01em;
}

.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--td-3);
  text-decoration: none;
  margin-top: 16px;
  transition: color var(--dur-fast) ease, transform var(--dur-fast) ease;
  font-family: var(--mono);
}
.proj-link:hover { color: var(--a-t); transform: translateX(3px); }

/* Markierungs-Legende (Bauhof-Übersicht) */
.mk-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--td-2); /* td-3 fällt beim WCAG-AA-Kontrast durch */
  letter-spacing: 0.02em;
}
.mk-legend .mk-item { display: inline-flex; align-items: center; gap: 7px; color: var(--td-2); }
.mk-sq { width: 10px; height: 10px; border-radius: 2px; display: inline-block; flex: 0 0 auto; }

/* ══════════════════════════════════════
   SERVER STATUS — DARK
══════════════════════════════════════ */
.server-section { margin-top: clamp(40px, 5vw, 64px); }

.server-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--td-3);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.server-title::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--a);
}

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

.server-card {
  background: var(--s-0);
  border: 1px solid var(--bd);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color var(--dur) ease;
}
.server-card:hover { border-color: rgba(0,153,230,0.25); }

.server-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--bd);
  background: var(--s-2);
}

.server-name {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--td-2);
}

.server-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: #22c55e;
}

.server-body {
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 2;
}

.container-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.container-row:last-child { border-bottom: none; }

.c-name { color: rgba(255,255,255,0.75); font-weight: 500; font-size: 13px; }
.c-uptime { color: #22c55e; font-size: 12px; }
.c-image { color: rgba(255,255,255,0.25); font-size: 11px; }

/* ══════════════════════════════════════
   ABOUT — OFF-WHITE
══════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.about-aside {
  position: sticky;
  top: 96px;
  border-left: 2px solid var(--a);
  padding-left: 24px;
}

.about-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--tl-1);
  margin-bottom: 6px;
}

.about-role {
  font-size: 14px;
  color: var(--tl-2);
  line-height: 1.6;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.about-link {
  display: block;
  font-size: 13px;
  color: var(--a);
  text-decoration: none;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  transition: color var(--dur-fast) ease;
}
.about-link:hover { text-decoration: underline; }

.about-p {
  font-size: clamp(16px, 1.4vw, 18px);
  font-weight: 400;
  line-height: 1.8;
  color: var(--tl-2);
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  max-width: 640px;
}
.about-p strong { color: var(--tl-1); font-weight: 500; }
.about-quote {
  font-style: italic;
  color: var(--tl-1);
  font-size: clamp(18px, 1.7vw, 22px);
  border-left: 2px solid var(--a);
  padding-left: 20px;
  margin-top: 32px;
}

.stack {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--bl);
}

.stack-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tl-3);
  margin-bottom: 16px;
}

.stack-items {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.stack-item {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--tl-2);
  background: var(--w-0);
  border: 1px solid var(--bl);
  padding: 5px 11px;
  border-radius: 5px;
  letter-spacing: -0.01em;
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.stack-item:hover { border-color: var(--a); color: var(--tl-1); }

/* ══════════════════════════════════════
   PROCESS — DARK
══════════════════════════════════════ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}

.p-step {
  position: relative;
  padding-top: 24px;
  border-top: 1px solid var(--bd);
}
.p-step::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 40px;
  height: 1px;
  background: var(--a);
  transition: width var(--dur) var(--ease-out);
}
.p-step:hover::before { width: 100%; }

.p-n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--td-3);
  margin-bottom: 20px;
  display: block;
}

.p-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--td-1);
  margin-bottom: 10px;
}

.p-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--td-2);
  letter-spacing: -0.01em;
}

/* ══════════════════════════════════════
   WRITING — LIGHT
══════════════════════════════════════ */
.writing-list { border-top: 1px solid var(--bl); }

.writing-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: clamp(20px, 3vw, 48px);
  align-items: baseline;
  padding: clamp(20px, 2.5vw, 30px) 8px;
  border-bottom: 1px solid var(--bl);
  text-decoration: none;
  transition: background var(--dur) ease, transform var(--dur) var(--ease-out);
}
.writing-item:hover { background: var(--w-1); transform: translateX(4px); }

.w-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--tl-3);
  white-space: nowrap;
}

.w-cat {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--a);
  margin-bottom: 4px;
}

.w-title {
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--tl-1);
  margin-bottom: 4px;
  line-height: 1.35;
}

.w-excerpt {
  font-size: 14px;
  color: var(--tl-2);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.w-arrow {
  font-size: 16px;
  color: var(--tl-3);
  transition: color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.writing-item:hover .w-arrow { color: var(--a); transform: translateX(4px); }

/* ══════════════════════════════════════
   CTA — DARK
══════════════════════════════════════ */
.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.cta-head {
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--td-1);
  margin-bottom: 18px;
}
.cta-head strong { font-weight: 600; }

.cta-sub {
  font-size: 17px;
  color: var(--td-2);
  line-height: 1.7;
  letter-spacing: -0.01em;
  max-width: 480px;
}

.cta-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 200px;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--s-1);
  background: var(--w-0);
  padding: 13px 26px;
  border-radius: 7px;
  text-decoration: none;
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.btn-white:hover { opacity: .88; transform: translateY(-2px); }
.btn-white:active { transform: translateY(0); }

.btn-border {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--td-2);
  border: 1px solid var(--bd);
  padding: 13px 26px;
  border-radius: 7px;
  text-decoration: none;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.btn-border:hover { color: var(--td-1); border-color: rgba(255,255,255,.25); }

/* ══════════════════════════════════════
   NEWSLETTER
══════════════════════════════════════ */
.newsletter {
  background: var(--s-2);
  border-top: 1px solid var(--bd);
  padding: clamp(56px, 6vw, 88px) 0;
}

.nl-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.nl-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--a-t);
  margin-bottom: 16px;
}

.nl-head {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--td-1);
  margin-bottom: 16px;
  line-height: 1.2;
}
.nl-head strong { font-weight: 600; }

.nl-sub {
  font-size: 15px;
  line-height: 1.7;
  color: var(--td-2);
  margin: 0;
}

.nl-form { display: flex; flex-direction: column; gap: 16px; }
.nl-field-row { display: flex; gap: 8px; }

.nl-input {
  flex: 1;
  min-width: 0;
  background: var(--s-3);
  border: 1px solid var(--bd);
  border-radius: 6px;
  padding: 13px 16px;
  font-size: 15px;
  color: var(--td-1);
  font-family: var(--sans);
  outline: none;
  transition: border-color var(--dur-fast) ease;
}
.nl-input::placeholder { color: var(--td-3); }
.nl-input:focus { border-color: var(--a); }

.nl-btn {
  background: var(--a);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.nl-btn:hover { opacity: .85; transform: translateY(-1px); }
.nl-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.nl-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}
.nl-consent input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--a);
  cursor: pointer;
}
.nl-consent span {
  font-size: 12px;
  line-height: 1.6;
  color: var(--td-3);
}
.nl-privacy-link { color: var(--a); text-decoration: none; }
.nl-privacy-link:hover { text-decoration: underline; }

.nl-msg { font-size: 13px; line-height: 1.5; min-height: 20px; }
.nl-ok { color: #4ade80; }
.nl-err { color: #f87171; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  background: var(--s-0);
  border-top: 1px solid var(--bd);
  padding: 44px 0;
}

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

.footer-logo {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--td-1);
  text-decoration: none;
}
.footer-logo img { height: 24px; width: auto; margin-right: 8px; }
.footer-logo b { color: var(--a-t); font-weight: 600; font-style: normal; }

.footer-copy {
  font-size: 12px;
  color: var(--td-2); /* td-3 fällt beim WCAG-AA-Kontrast durch */
  margin-top: 6px;
}

/* Signatur-Badge „ein aiplusblue system" */
.sig-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  background: var(--s-0);
  border: 1px solid var(--bd);
  border-radius: 7px;
  padding: 9px 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: lowercase;
  color: var(--td-2);
}
.sig-badge .sig-glyph {
  width: 14px;
  height: 14px;
  border-radius: 3.5px;
  background: var(--a-grad);
  flex: 0 0 auto;
}

.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 13px;
  color: var(--td-2);
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}
.footer-links a:hover { color: var(--td-1); }

/* ══════════════════════════════════════
   RESPONSIVE — ≤ 1024
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .svc-row { grid-template-columns: 40px 200px 1fr; }
  .svc-tags { grid-column: 3; justify-content: flex-start; margin-top: 4px; }
  .about-grid { grid-template-columns: 220px 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}

/* ══════════════════════════════════════
   RESPONSIVE — ≤ 768 (Overlay-Nav, Bagger zentral)
══════════════════════════════════════ */
@media (max-width: 768px) {
  /* Hero-Raster: auf schmalen Viewports ist die Ellipse (75% Breite um 62%)
     breiter als der Bildschirm — der seitliche Auslauf entfaellt, und
     vertikal wird die Maske erst bei y=802 von 844px transparent. Das Raster
     wirkt dadurch bis zum Hero-Ende gleichmaessig ("kariert"). Flacherer
     Radius + hoeher gesetztes Zentrum lassen es zur Mitte hin auslaufen.
     Dichte/Farbe/72px bleiben unveraendert (BRAND.md Abschnitt 5). */
  .nav { height: 56px; }
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    /* backdrop-filter auf .nav macht den Header zum Containing Block —
       daher absolute Positionierung mit expliziter Höhe statt fixed */
    position: absolute;
    top: 56px;
    left: 0; right: 0;
    height: calc(100vh - 56px);
    height: calc(100dvh - 56px);
    background: rgba(10,10,10,0.99);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 16px var(--pad-x) 32px;
    gap: 0;
    overflow-y: auto;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links li { display: block; }
  .nav-links a {
    display: block;
    padding: 18px 0;
    font-size: 19px !important;
    font-weight: 500;
    border-bottom: 1px solid var(--bd);
    color: var(--td-1) !important;
  }
  .nav-links a:not(.nav-cta)::after { content: none; }
  .nav-links li:last-child a {
    border-bottom: none;
    margin-top: 16px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 8px;
    padding: 14px 0;
  }

  .hero { padding-top: 100px; }
  .running-strip { left: var(--pad-x); right: auto; }

  .proof-row { grid-template-columns: repeat(2, 1fr); }
  .proof-cell { border-left: none; border-top: 1px solid var(--bd); }
  .proof-cell:nth-child(-n+2) { border-top: none; }
  .proof-cell:nth-child(even) { border-left: 1px solid var(--bd); }

  .s-intro { grid-template-columns: 1fr; gap: 20px; }
  .s-label { padding-top: 0; }

  .svc-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 8px;
  }
  .svc-n { padding-top: 0; }
  .svc-tags { grid-column: auto; }
  .svc-row:hover { transform: none; }

  .proj-grid { grid-template-columns: 1fr; }
  .server-grid { grid-template-columns: 1fr; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-aside { position: static; }

  .writing-item {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 8px 16px;
  }
  .w-date { grid-column: 1; grid-row: 2; }
  .w-meta { grid-column: 1; grid-row: 1; }
  .w-arrow { grid-column: 2; grid-row: 1; align-self: center; }
  .writing-item:hover { transform: none; }

  .cta-inner { grid-template-columns: 1fr; gap: 36px; }
  .cta-btns { flex-direction: row; flex-wrap: wrap; }
  .cta-btns > * { flex: 1 1 180px; }

  .nl-wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* ══════════════════════════════════════
   RESPONSIVE — ≤ 480 / 360
══════════════════════════════════════ */
@media (max-width: 480px) {
  html { font-size: 15px; }

  .hero h1 { font-size: clamp(38px, 11vw, 52px); letter-spacing: -0.03em; }
  .hero-sub { font-size: 16px; }
  .hero-btns { flex-direction: column; align-items: flex-start; gap: 14px; }
  .running-strip { font-size: 10px; bottom: 20px; }

  .proof-num { font-size: 52px; }
  .proof-cell { padding: 28px 20px; }

  .term { font-size: 10px; padding: 12px 14px; }
  .proj-name { font-size: 18px; }

  .server-body { font-size: 10.5px; padding: 14px 16px; }
  .c-name { font-size: 12px; }
  .c-image { font-size: 10px; }

  .process-grid { grid-template-columns: 1fr; }

  .nl-field-row { flex-direction: column; }
  .nl-btn { width: 100%; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}

/* ══════════════════════════════════════
   REDUCED MOTION — Stufe 3
══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ══════════════════════════════════════
   BLOCK-MAUER — Ganzseiten-Layer
══════════════════════════════════════ */
/* lebt im Hero, hinter dem Text (.hero-inner hat z-index 1) */
#wall-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── Statushinweis Entwicklungsprojekt (Rueckbau 2026-08-19) ── */
.dev-notice {
  max-width: 900px;
  margin: 0 0 32px;
  padding: 20px 24px;
  border: 1px solid currentColor;
  border-radius: 4px;
  opacity: .92;
}
.dev-notice-title { font-weight: 700; font-size: 15px; margin: 0 0 8px; }
.dev-notice-text  { font-size: 14px; line-height: 1.65; margin: 0; max-width: 72ch; }
@media (max-width: 720px) { .dev-notice { margin-bottom: 24px; padding: 16px 18px; } }
