:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --ink: #0f172a;
  --muted: #475569;
  --line: #cbd5e1;
  --line-soft: #e2e8f0;
  --cobalt: #1d4ed8;
  --cobalt-dark: #1e40af;
  --cobalt-soft: #eff6ff;
  --emerald: #059669;
  --emerald-soft: #ecfdf5;
  --max: 1200px;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.68 "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-dark); }

/* Top Swiss-Grid utility bar */
.top-strip {
  background: var(--ink);
  color: #e2e8f0;
  font-size: 13px;
  border-bottom: 2px solid var(--cobalt);
}
.top-strip-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 7px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.top-strip a {
  color: #6ee7b7;
  font-weight: 700;
  text-decoration: none;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: 38px; height: 38px; border-radius: 8px; }
.brand-text strong { display: block; font-size: 18px; letter-spacing: -0.02em; line-height: 1.1; }
.brand-text small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
}
.main-nav a:hover { color: var(--cobalt); }
.main-nav a.nav-cta {
  background: var(--cobalt);
  color: #fff;
  padding: 8px 15px;
  border-radius: 7px;
  font-weight: 700;
}
.main-nav a.nav-cta:hover { background: var(--cobalt-dark); color: #fff; }

/* Container */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Asymmetric Swiss-Grid Hero */
.hero-grid {
  padding: 46px 0 38px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cobalt);
  background: var(--cobalt-soft);
  border: 1px solid #bfdbfe;
  padding: 4px 10px;
  border-radius: 4px;
  margin: 0 0 14px;
}
h1, h2, h3 {
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--ink);
}
h1 { font-size: clamp(30px, 3.6vw, 46px); margin: 0 0 16px; font-weight: 800; }
h2 { font-size: clamp(23px, 2.4vw, 31px); margin: 0 0 14px; font-weight: 800; }
h3 { font-size: 19px; margin: 0 0 8px; font-weight: 700; }
.lead { font-size: 19px; color: var(--muted); line-height: 1.6; margin: 0 0 22px; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 0; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1.5px solid var(--cobalt);
}
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--cobalt); color: var(--cobalt); }

/* Right Hero Telemetry Card + Visual */
.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}
.hero-panel picture, .visual-figure picture { width: 100%; display: block; }
.hero-panel img, .visual-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid var(--line-soft);
}
.state-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.state-item {
  background: var(--surface-alt);
  border-left: 3px solid var(--emerald);
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 13px;
}
.state-item strong { display: block; font-size: 13.5px; color: var(--ink); }
.state-item span { color: var(--muted); font-size: 12.5px; }

/* 4-Stage Pipeline Rail */
.pipeline-section { padding: 34px 0; border-bottom: 1px solid var(--line-soft); }
.pipeline-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.pipe-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--cobalt);
  border-radius: 8px;
  padding: 18px;
}
.pipe-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--emerald);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

/* Topic Directory */
.section-pad { padding: 42px 0; }
.topic-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.topic-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: border-color 0.15s ease;
}
.topic-tile:hover { border-color: var(--cobalt); }
.topic-tile a.tile-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--cobalt);
  font-size: 14.5px;
}
.tile-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Article 2-Column Sticky TOC Layout */
.breadcrumb {
  padding: 16px 0 6px;
  font-size: 13.5px;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--cobalt); text-decoration: underline; }

.article-shell {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 36px;
  padding: 22px 0 48px;
  align-items: start;
}
.toc-rail {
  position: sticky;
  top: 86px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.toc-rail h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 12px; }
.toc-links { display: flex; flex-direction: column; gap: 8px; }
.toc-links a {
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
  padding: 5px 8px;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
}
.toc-links a:hover, .toc-links a[aria-current="page"] {
  background: var(--cobalt-soft);
  border-left-color: var(--cobalt);
  color: var(--cobalt);
  font-weight: 700;
}

.article-body { min-width: 0; }
.article-header {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.answer-box {
  background: var(--emerald-soft);
  border: 1px solid #a7f3d0;
  border-left: 4px solid var(--emerald);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 22px 0;
}
.answer-box strong { color: #065f46; display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.answer-box p { margin: 0; color: var(--ink); }

.visual-figure {
  margin: 24px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.visual-figure figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; }

.article-body h2 { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.article-body ul, .article-body ol { padding-left: 20px; }
.article-body li { margin: 7px 0; }

table.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  margin: 20px 0;
  font-size: 15px;
}
table.spec-table th, table.spec-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}
table.spec-table th { background: var(--surface-alt); font-weight: 700; color: var(--ink); }

.faq-list { display: grid; gap: 10px; margin: 18px 0; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px 16px;
}
.faq-list summary { font-weight: 700; cursor: pointer; color: var(--ink); }
.faq-list details p { margin: 10px 0 0; color: var(--muted); }

/* Uwe Call Card */
.uwe-call-card {
  margin: 34px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #f8fafc;
  border-radius: var(--radius);
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
.uwe-call-card h2, .uwe-call-card h3 { color: #fff; margin: 0 0 8px; }
.uwe-call-card p { margin: 0; color: #dbeafe; font-size: 15.5px; }
.uwe-call-card .eyebrow { background: rgba(16, 185, 129, 0.18); border-color: rgba(110, 231, 183, 0.4); color: #6ee7b7; }
.call-actions { display: flex; flex-direction: column; gap: 10px; min-width: 240px; }
.call-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 18px;
  border-radius: 7px;
  background: var(--emerald);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  font-size: 15.5px;
}
.call-btn:hover { background: #047857; color: #fff; }
.call-btn-sec {
  display: inline-flex;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

/* Verbund Bridge Strip */
.ecosystem-strip {
  width: 100%;
  max-width: var(--max);
  margin: 28px auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--cobalt);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.eco-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.eco-card {
  display: block;
  padding: 12px;
  border: 1px solid var(--line-soft);
  background: var(--surface-alt);
  border-radius: 7px;
  text-decoration: none;
  color: var(--ink);
  font-size: 13.5px;
}
.eco-card strong { display: block; color: var(--cobalt); margin-bottom: 4px; font-size: 14px; }
.eco-card:hover { border-color: var(--cobalt); background: var(--cobalt-soft); }

/* Contact / Legal */
.legal-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 820px;
  margin: 28px 0 48px;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: 34px 0 42px;
  margin-top: 40px;
  font-size: 14px;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
}
.footer-grid a { color: #93c5fd; text-decoration: none; display: block; margin: 6px 0; }
.footer-grid a:hover { text-decoration: underline; }
.footer-grid h3 { color: #fff; font-size: 15px; margin-bottom: 10px; }

@media (max-width: 980px) {
  .hero-grid, .article-shell, .footer-grid, .uwe-call-card { grid-template-columns: 1fr; }
  .pipeline-rail, .topic-matrix, .eco-links { grid-template-columns: repeat(2, 1fr); }
  .toc-rail { position: static; }
}
@media (max-width: 600px) {
  .pipeline-rail, .topic-matrix, .eco-links, .state-list { grid-template-columns: 1fr; }
}
