
@font-face { font-family: "Archivo"; src: url("fonts/archivo-var.woff2") format("woff2"); font-weight: 500 700; font-stretch: 100% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3-var.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-var.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

/* Layout: dunkle Einzelspalte im Farbraum des Logos. Hero Text | Logo, Leistungen als Zeilen entlang der Lebensdauer einer Anlage, Kennlinie als Beleg für die Arbeitsweise, Kontakt als navyblaues Panel. */
:root {
  --bg: #080B10;
  --surface: #0E141B;
  --line: #1D2631;
  --ink: #E3E8EC;
  --text: #C3CBD2;
  --muted: #8E9AA5;
  --accent: #5B9BD8;
  --accent-ink: #06121F;
  --navy: #0B2440;
  --navy-line: #1F416A;
  --silver: #A6B1BA;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem);

  --wrap: 70rem;
  --header-h: 4rem;
  color-scheme: dark;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--bg);
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* Header */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 0.875rem;
  text-decoration: none;
  min-width: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-stretch: 120%;
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--ink);
}
.brand-name b { color: var(--accent); font-weight: inherit; }
.brand-unit {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav-link:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.975rem;
  line-height: 1;
  padding: 0.85rem 1.2rem;
  border-radius: 4px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 82%, white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--navy-line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: 0.6rem 0.95rem; font-size: 0.925rem; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

@media (max-width: 44rem) {
  .brand-unit, .nav-link { display: none; }
}

/* Hero */
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 1.5rem 3rem;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem);
}
.hero-text { min-width: 0; display: grid; gap: 1.25rem; justify-items: start; }
.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
h1 {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 640;
  font-size: var(--step-3);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
  hyphens: auto;
}
.lead { margin: 0; max-width: 34rem; font-size: var(--step-1); line-height: 1.55; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; padding-top: 0.25rem; }
.text-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--navy-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.text-link:hover { text-decoration-color: var(--accent); }
.hero-direct { margin: 0; font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); overflow-wrap: anywhere; }
.hero-direct a { color: var(--ink); text-decoration: none; }
.hero-direct a:hover { color: var(--accent); }

.hero-logo { margin: 0; min-width: 0; }
.hero-logo img { display: block; width: 100%; max-width: 100%; height: auto; mix-blend-mode: screen; }

@media (max-width: 52rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-logo { order: -1; max-width: 30rem; margin-inline: -0.5rem; }
}

/* Sektionen */
.section { scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); border-top: 1px solid var(--line); }
.section > .wrap { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-head { display: grid; gap: 0.75rem; max-width: 42rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
h2 {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 110%;
  font-weight: 620;
  font-size: var(--step-2);
  line-height: 1.15;
  text-wrap: balance;
  hyphens: auto;
}
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 106%;
  font-weight: 600;
  font-size: var(--step-1);
  line-height: 1.25;
  hyphens: auto;
}
.section-intro { margin: 0; color: var(--text); }

/* Leistungen */
.services { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.svc {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  gap: 0.6rem 2.5rem;
  align-items: start;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.svc-phase {
  margin: 0;
  padding-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.03em;
  color: var(--muted);
}
.svc-phase::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.svc-body { min-width: 0; max-width: 44rem; display: grid; gap: 0.6rem; }
.svc-body p { margin: 0; color: var(--text); }
.tags { list-style: none; margin: 0; padding: 0.2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--silver);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.2rem 0.5rem;
}
@media (max-width: 44rem) {
  .svc { grid-template-columns: minmax(0, 1fr); }
  .svc-phase { padding-top: 0; }
}

/* Arbeitsweise */
.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.5rem 4rem;
  align-items: start;
}
.method-grid .section-head { margin-bottom: 2rem; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.points li { display: grid; gap: 0.35rem; }
.points h3 { font-size: var(--step-0); font-stretch: 110%; }
.points p { margin: 0; color: var(--text); }

.curve {
  margin: 0;
  min-width: 0;
  display: grid;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.curve-title { margin: 0; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.03em; color: var(--muted); }
.curve svg { display: block; width: 100%; height: auto; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text); }
.legend li { display: flex; align-items: center; gap: 0.55rem; }
.swatch { flex: none; width: 1.6rem; height: 0; border-top: 2.5px solid var(--accent); }
.swatch-dash { border-top: 2px dashed var(--silver); }
.curve figcaption { font-size: 0.925rem; line-height: 1.55; color: var(--muted); }

.ax { stroke: var(--muted); stroke-width: 1; }
.gridline { stroke: var(--line); stroke-width: 1; }
.tick { fill: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.c-soll { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.c-mess { fill: none; stroke: var(--silver); stroke-width: 2; stroke-dasharray: 6 5; stroke-linejoin: round; }
.mpp { fill: var(--accent); filter: drop-shadow(0 0 5px var(--accent)); }
.mpp-mess { fill: var(--surface); stroke: var(--silver); stroke-width: 2; }
.mpp-label { fill: var(--ink); font-family: var(--font-mono); font-size: 12px; }

@media (max-width: 52rem) {
  .method-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Kontakt */
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2.5rem 3rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--navy);
  border: 1px solid var(--navy-line);
  border-radius: 8px;
}
.contact-main { min-width: 0; display: grid; gap: 1rem; align-content: start; }
.contact-main .kicker { color: var(--accent); }
.mail {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-stretch: 104%;
  font-weight: 560;
  font-size: clamp(1.3rem, 0.95rem + 2.2vw, 2.25rem);
  line-height: 1.2;
  color: var(--ink);
  overflow-wrap: anywhere;
  -webkit-user-select: all;
  user-select: all;
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.copy-status { margin: 0; min-height: 1.4em; font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.checklist {
  min-width: 0;
  display: grid;
  gap: 0.9rem;
  align-content: start;
  padding-left: 2.25rem;
  border-left: 1px solid var(--navy-line);
}
.checklist h3 { font-size: var(--step-0); font-stretch: 110%; }
.checklist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.checklist li { position: relative; padding-left: 1.1rem; color: var(--text); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}
@media (max-width: 52rem) {
  .contact-panel { grid-template-columns: minmax(0, 1fr); }
  .checklist { padding-left: 0; padding-top: 1.75rem; border-left: 0; border-top: 1px solid var(--navy-line); }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Unterseiten (Impressum, Datenschutz, 404) */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page > main { flex: 1; }
.page > main > .wrap { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal { max-width: 46rem; display: grid; gap: 2rem; }
.legal-head .kicker { color: var(--accent); }
.legal h1 { margin: 0.5rem 0 0; font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); line-height: 1.1; }
.legal-head p:last-child { margin: 0.75rem 0 0; color: var(--muted); }
.entries { margin: 0; display: grid; border-top: 1px solid var(--line); }
.entry { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0.25rem 2rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.entry dt { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.03em; color: var(--muted); padding-top: 0.2rem; }
.entry dd { margin: 0; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.entry dd strong { color: var(--ink); font-weight: 600; }
.legal a:not(.btn) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--navy-line); text-underline-offset: 0.25em; overflow-wrap: anywhere; }
.legal a:not(.btn):hover { text-decoration-color: var(--accent); }
address { font-style: normal; }
.prose section { display: grid; gap: 0.75rem; }
.prose h2 { font-size: var(--step-1); font-stretch: 106%; }
.prose p, .prose ul, .prose address { margin: 0; color: var(--text); }
.prose ul { padding-left: 1.2rem; display: grid; gap: 0.25rem; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 600; }
@media (max-width: 40rem) { .entry { grid-template-columns: minmax(0, 1fr); } .entry dt { padding-top: 0; } }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer a[aria-current="page"] { color: var(--ink); }
