/* NodeSight – Stylesheet
   Alle Werte kommen aus den Tokens unter :root (siehe DESIGN.md).
   Keine externen Ressourcen. */

/* ---------- Schriften (lokal, SIL OFL 1.1) ---------- */
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrumentsans-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrumentsans-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrumentsans-bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolagegrotesque-bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Farben */
  --navy-900: #0b1a33;   /* Marke: Überschriften, Fußbereich, Knoten */
  --navy-800: #13264a;   /* Flächen im Fußbereich */
  --ink: #24324a;        /* Fließtext */
  --slate: #3e4c63;      /* Sekundärtext (Logo-Unterzeile) */
  --muted: #5f6d84;      /* Hinweise, Metadaten */
  --line: #dce3ee;       /* Rahmen, Trennlinien */
  --line-strong: #b9c4d6;
  --surface: #ffffff;    /* Seitenhintergrund */
  --surface-2: #f4f7fc;  /* abgesetzte Bänder */
  --surface-3: #e8eef9;  /* Flächen in Bändern */
  --blue: #2f6bff;       /* Marke: Hauptaktion, IncidentWatch-Linie */
  --blue-hover: #2459e0;
  --blue-text: #2357db;  /* Links auf Weiß (5,6:1) */
  --blue-tint: #eef3ff;
  --teal: #1f8a9a;       /* DispoGrid-Linie (nur Grafik) */
  --teal-text: #146b78;  /* DispoGrid-Text */
  --teal-tint: #e7f4f6;
  --ok: #1c7c4a;  --ok-tint: #e6f4ec;
  --warn: #8a5200; --warn-tint: #fdf1de;
  --error: #b42e27; --error-tint: #fdecea;
  --on-dark: #ffffff;
  --on-dark-muted: #a7b6d0;

  /* Schrift */
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-display: "Bricolage Grotesque", "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --fs-xs: 0.8125rem;  --lh-xs: 1.4;   /* 13px Metadaten */
  --fs-sm: 0.9375rem;  --lh-sm: 1.5;   /* 15px */
  --fs-md: 1.0625rem;  --lh-md: 1.6;   /* 17px Fließtext */
  --fs-lg: 1.25rem;    --lh-lg: 1.5;   /* 20px Einleitung */
  --fs-xl: 1.5rem;     --lh-xl: 1.3;   /* 24px h3 */
  --fs-2xl: clamp(1.75rem, 1.2rem + 1.8vw, 2.375rem); --lh-2xl: 1.15; /* h2 */
  --fs-3xl: clamp(2.375rem, 1.4rem + 3.6vw, 4rem);    --lh-3xl: 1.04; /* h1 */

  /* Abstände (8er-Raster) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --section: clamp(64px, 8vw, 112px);
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 32px);
  --measure: 66ch;

  /* Form */
  --r-sm: 6px; --r-md: 12px; --r-pill: 999px;
  --shadow-float: 0 18px 40px -16px rgba(11, 26, 51, 0.28);
  --focus: 0 0 0 3px var(--surface), 0 0 0 6px var(--blue);
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-md); line-height: var(--lh-md);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; color: var(--navy-900); margin: 0; letter-spacing: -0.015em; }
h1 { font-size: var(--fs-3xl); line-height: var(--lh-3xl); letter-spacing: -0.025em; }
h2 { font-size: var(--fs-2xl); line-height: var(--lh-2xl); }
h3 { font-size: var(--fs-xl); line-height: var(--lh-xl); }
h1 + .lead, h2 + .lead, h2 + p { margin-top: var(--s-4); }
sup { line-height: 0; font-size: 0.6em; }
h4 { font-family: var(--font-body); font-size: var(--fs-md); line-height: var(--lh-md); letter-spacing: 0; }
p { margin: 0 0 var(--s-4); max-width: var(--measure); }
a { color: var(--blue-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 700; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: var(--s-4); top: -60px; z-index: 100;
  background: var(--navy-900); color: var(--on-dark); padding: var(--s-3) var(--s-4); border-radius: var(--r-sm);
}
.skip-link:focus { top: var(--s-4); color: var(--on-dark); }

.lead { font-size: var(--fs-lg); line-height: var(--lh-lg); color: var(--slate); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); line-height: var(--lh-sm); }
.todo { background: var(--warn-tint); color: var(--warn); padding: 0 4px; border-radius: 4px; font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5); border-radius: var(--r-sm);
  font: 700 var(--fs-md)/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--blue); color: var(--on-dark); }
.btn-primary:hover { background: var(--blue-hover); color: var(--on-dark); }
.btn-secondary { background: var(--surface); color: var(--navy-900); border-color: var(--navy-900); }
.btn-secondary:hover { background: var(--navy-900); color: var(--on-dark); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--surface-3); color: var(--muted); border-color: var(--surface-3); cursor: not-allowed; }
.btn-on-dark { background: var(--surface); color: var(--navy-900); }
.btn-on-dark:hover { background: var(--blue-tint); color: var(--navy-900); }
.link-quiet { font-weight: 700; color: var(--navy-900); text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; }
.link-quiet:hover { color: var(--blue-text); }
.link-ext::after { content: " ↗"; font-weight: 400; }

/* ---------- Statusmarken ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); line-height: 1.6; font-weight: 700; white-space: nowrap;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-ok { background: var(--ok-tint); color: var(--ok); }
.badge-warn { background: var(--warn-tint); color: var(--warn); }
.badge-plan { background: var(--surface-3); color: var(--slate); }
.badge-plan::before { background: transparent; border: 2px dashed currentColor; width: 9px; height: 9px; }
.tag { display: inline-block; font-size: var(--fs-xs); font-weight: 700; padding: 2px 10px; border-radius: var(--r-pill); }
.tag-iw { background: var(--blue-tint); color: var(--blue-text); }
.tag-dg { background: var(--teal-tint); color: var(--teal-text); }
.tag-ns { background: var(--surface-3); color: var(--navy-900); }

/* ---------- Kopfbereich ---------- */
.utility { background: var(--navy-900); color: var(--on-dark-muted); font-size: var(--fs-xs); }
.utility .container { display: flex; justify-content: flex-end; gap: var(--s-5); min-height: 36px; align-items: center; }
.utility a { color: var(--on-dark); text-decoration: none; }
.utility a:hover { text-decoration: underline; color: var(--on-dark); }
.utility .utility-claim { margin-right: auto; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-bar { display: flex; align-items: center; gap: var(--s-6); min-height: 76px; }
.brand { display: block; flex-shrink: 0; }
.brand img { width: 196px; height: auto; }
.nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; align-items: center; gap: var(--s-1); }
.nav-link, .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--s-3);
  font: 700 var(--fs-sm)/1 var(--font-body); color: var(--navy-900); text-decoration: none;
  background: none; border: 0; border-radius: var(--r-sm); cursor: pointer;
}
.nav-link:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { background: var(--surface-2); color: var(--navy-900); }
.nav-trigger .chev { width: 10px; height: 10px; transition: transform .2s; }
.nav-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-cta { margin-left: var(--s-3); min-height: 44px; font-size: var(--fs-sm); }
.nav-toggle { display: none; }

/* Mega-Menü */
.mega {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--surface);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-float);
}
.mega-inner { display: grid; grid-template-columns: 1fr 1fr 0.8fr; gap: var(--s-7); padding-top: var(--s-6); padding-bottom: var(--s-6); }
.mega-col h3 { font-size: var(--fs-lg); margin-bottom: var(--s-1); }
.mega-col h3 a { color: var(--navy-900); text-decoration: none; }
.mega-col h3 a:hover { color: var(--blue-text); }
.mega-col > p { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--s-3); }
.mega-col ul { list-style: none; border-top: 1px solid var(--line); }
.mega-col li a {
  display: block; padding: 10px 0 10px 18px; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-size: var(--fs-sm); position: relative;
}
.mega-col li a::before { content: ""; position: absolute; left: 0; top: 50%; width: 9px; height: 9px; margin-top: -5px; border-radius: 50%; border: 3px solid var(--blue); }
.mega-col.dg li a::before { border-color: var(--teal); }
.mega-col li a:hover { color: var(--blue-text); background: var(--surface-2); }
.mega-aside { background: var(--surface-2); border-radius: var(--r-md); padding: var(--s-5); }
.mega-aside p { font-size: var(--fs-sm); }

/* ---------- Abschnitte ---------- */
.section { padding: var(--section) 0; }
.section-tint { background: var(--surface-2); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-4) var(--s-7); margin-bottom: var(--s-7); }
.section-head h2 { max-width: 22ch; }
.section-head p { margin: 0; max-width: 52ch; color: var(--slate); }
.kicker { display: block; font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 700; color: var(--blue-text); margin-bottom: var(--s-3); letter-spacing: 0; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--s-8); align-items: center; }
.hero h1 { margin-bottom: var(--s-5); max-width: 14ch; }
.hero .lead { margin-bottom: var(--s-6); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.netzplan-wrap { position: relative; }
.netzplan { width: 100%; max-width: 560px; margin-left: auto; }
.netzplan .ln { fill: none; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.netzplan .ln-iw { stroke: var(--blue); }
.netzplan .ln-dg { stroke: var(--teal); }
.netzplan .ln-plan { stroke-dasharray: 2 16; }
.netzplan .st { fill: var(--surface); stroke-width: 5; }
.netzplan .st-iw { stroke: var(--blue); }
.netzplan .st-dg { stroke: var(--teal); }
.netzplan .st-plan { stroke-dasharray: 4 4; }
.netzplan .hub { fill: var(--navy-900); }
.netzplan .hub-ring { fill: none; stroke: var(--navy-900); stroke-width: 3; }
.netzplan .lbl { font-family: var(--font-body); font-size: 17px; fill: var(--ink); }
.netzplan .lbl-plan { fill: var(--muted); font-style: italic; }
.netzplan .lbl-prod { font-family: var(--font-display); font-weight: 700; font-size: 21px; fill: var(--navy-900); }
.netzplan .lbl-hub { font-family: var(--font-display); font-weight: 700; font-size: 20px; fill: var(--navy-900); }
.netzplan a .lbl:hover, .netzplan a:focus .lbl { fill: var(--blue-text); text-decoration: underline; }
.netzplan-m { display: none; width: 100%; max-width: 380px; }
.netzplan-m .ln { stroke-width: 7; }
.netzplan-m .st { stroke-width: 4; }
.netzplan-m .ln-plan { stroke-dasharray: 2 12; }
.netzplan-m .lbl { font-size: 14px; }
.netzplan-m .lbl-prod { font-size: 17px; }
.netzplan-m .lbl-hub { font-size: 18px; }
.netzplan-legend { display: flex; justify-content: flex-end; gap: var(--s-5); margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--muted); }
.netzplan-legend span { display: inline-flex; align-items: center; gap: var(--s-2); }
.netzplan-legend i { display: inline-block; width: 28px; height: 0; border-top: 5px solid var(--slate); border-radius: 3px; }
.netzplan-legend i.dash { border-top-style: dotted; }

/* Aktuelle Meldungen */
.news { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--s-7) 0; }
.news-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); margin-bottom: var(--s-5); }
.news-head h2 { font-size: var(--fs-xl); line-height: var(--lh-xl); }
.news-list { list-style: none; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--s-5); }
.news-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.news-item:first-child { border-top: 4px solid var(--teal); }
.news-item h3 { font-size: var(--fs-lg); line-height: 1.3; }
.news-item p { font-size: var(--fs-sm); line-height: var(--lh-sm); color: var(--slate); margin: 0; }
.news-meta { display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--muted); }
.news-item .link-quiet { margin-top: auto; font-size: var(--fs-sm); }

/* Einleitung */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); align-items: start; }
.intro-grid h2 { max-width: 16ch; }
.intro-text p:last-child { margin-bottom: 0; }
.signature { font-family: var(--font-display); font-weight: 700; color: var(--navy-900); font-size: var(--fs-lg); margin-top: var(--s-5); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); list-style: none; }
.chips a {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; padding: 0 var(--s-4);
  border: 1px solid var(--line-strong); border-radius: var(--r-pill); color: var(--navy-900);
  font-size: var(--fs-sm); font-weight: 700; text-decoration: none; background: var(--surface);
}
.chips a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 3px solid var(--blue); }
.chips .dg a::before { border-color: var(--teal); }
.chips a:hover { border-color: var(--navy-900); background: var(--surface-2); color: var(--navy-900); }

/* ---------- Produkte ---------- */
.product { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s-8); align-items: center; }
.product + .product { margin-top: var(--s-9); padding-top: var(--s-9); border-top: 1px solid var(--line); }
.product-reverse .product-text { order: 2; }
.product-name { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); }
.product-name h3 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.25rem); line-height: 1.1; }
.product-dot { width: 18px; height: 18px; border-radius: 50%; border: 5px solid var(--blue); flex-shrink: 0; }
.product-dg .product-dot { border-color: var(--teal); }
.product-text > p { color: var(--slate); }
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); margin: var(--s-6) 0; }
.app h4 { margin-bottom: 2px; }
.app p { font-size: var(--fs-sm); line-height: var(--lh-sm); color: var(--muted); margin-bottom: var(--s-3); }
.checks { list-style: none; display: grid; gap: var(--s-2); font-size: var(--fs-sm); line-height: var(--lh-sm); }
.checks li { position: relative; padding-left: 26px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 0.42em; width: 12px; height: 7px;
  border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg);
}
.product-dg .checks li::before { border-color: var(--teal); }
.modules { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: var(--s-6) 0; border-top: 1px solid var(--line); }
.modules li { padding: var(--s-3) var(--s-4) var(--s-3) 0; border-bottom: 1px solid var(--line); }
.modules li:nth-child(odd) { padding-right: var(--s-5); }
.modules strong { display: block; color: var(--navy-900); }
.modules span { font-size: var(--fs-sm); line-height: var(--lh-sm); color: var(--muted); }
.product-actions { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-5); align-items: center; }
.screen { margin: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(16px, 3vw, 32px); }
.screen svg { width: 100%; }
.screen figcaption { margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--muted); }
/* Schema-Grafiken */
.ui-frame { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; }
.ui-bar { fill: var(--surface-3); }
.ui-dot { fill: var(--line-strong); }
.ui-side { fill: var(--navy-900); }
.ui-map { fill: #eef2f7; }
.ui-grid { stroke: #dfe5ee; stroke-width: 1; }
.ui-rail { fill: none; stroke: var(--slate); stroke-width: 3; stroke-dasharray: 10 4; }
.ui-pin { fill: #d63b32; }
.ui-pin-ring { fill: none; stroke: #d63b32; stroke-width: 2; opacity: .35; }
.ui-t { font-family: var(--font-body); font-size: 12px; fill: var(--ink); }
.ui-t-s { font-family: var(--font-body); font-size: 10px; fill: var(--muted); }
.ui-t-b { font-family: var(--font-body); font-size: 12px; font-weight: 700; fill: var(--navy-900); }
.ui-t-w { font-family: var(--font-body); font-size: 12px; font-weight: 700; fill: #fff; }
.ui-t-h { font-family: var(--font-display); font-size: 17px; font-weight: 700; fill: var(--navy-900); }
.ui-t-kpi { font-family: var(--font-display); font-size: 26px; font-weight: 700; fill: var(--navy-900); }
.ui-line { stroke: var(--line); stroke-width: 1; }
.ui-tl { stroke: var(--blue); stroke-width: 2; }
.ui-tl-dot { fill: var(--blue); }
.ui-card { fill: var(--surface); stroke: var(--line); stroke-width: 1; }
.ui-phone { fill: var(--navy-900); }
.ui-phone-screen { fill: #111c30; }
.ui-btn-ok { fill: #1c7c4a; }
.ui-btn-stop { fill: #b42e27; }
.ui-btn-blue { fill: var(--blue); }
.ui-btn-dark { fill: #24324a; }
.ui-teal { fill: var(--teal); }
.ui-badge-ok { fill: var(--ok-tint); }
.ui-badge-warn { fill: var(--warn-tint); }
.ui-badge-blue { fill: var(--blue-tint); }
.ui-badge-t-ok { font-family: var(--font-body); font-size: 10px; font-weight: 700; fill: var(--ok); }
.ui-badge-t-warn { font-family: var(--font-body); font-size: 10px; font-weight: 700; fill: var(--warn); }
.ui-badge-t-blue { font-family: var(--font-body); font-size: 10px; font-weight: 700; fill: var(--blue-text); }
.ui-sel { fill: var(--teal-tint); }

/* ---------- Abläufe (Reiter) ---------- */
.tabs { display: grid; grid-template-columns: minmax(240px, 0.75fr) minmax(0, 2fr); gap: var(--s-7); align-items: start; }
.tablist { display: flex; flex-direction: column; border-left: 2px solid var(--line); }
.tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  padding: var(--s-3) var(--s-4); margin-left: -2px; border: 0; border-left: 4px solid transparent;
  background: none; cursor: pointer; font: 700 var(--fs-md)/1.35 var(--font-body); color: var(--slate);
}
.tab small { font-weight: 400; font-size: var(--fs-xs); color: var(--muted); }
.tab:hover { color: var(--navy-900); background: var(--surface); }
.tab[aria-selected="true"] { color: var(--navy-900); border-left-color: var(--blue); background: var(--surface); }
.tab.dg[aria-selected="true"] { border-left-color: var(--teal); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(24px, 4vw, 48px); }
.js .panel:not(.is-active) { display: none; }
.panel + .panel { margin-top: var(--s-5); }
.js .panel + .panel { margin-top: 0; }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-7); }
.panel h3 { margin: var(--s-3) 0 var(--s-4); }
.panel p { color: var(--slate); }
.steps { list-style: none; counter-reset: step; position: relative; }
.steps li { counter-increment: step; position: relative; padding: 0 0 var(--s-5) 48px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); border: 3px solid var(--blue);
  font-weight: 700; font-size: var(--fs-sm); color: var(--navy-900);
}
.steps li::after { content: ""; position: absolute; left: 15px; top: 30px; bottom: 2px; width: 3px; background: var(--blue); opacity: .35; }
.steps li:last-child::after { display: none; }
.steps-dg li::before { border-color: var(--teal); }
.steps-dg li::after { background: var(--teal); }
.steps strong { display: block; color: var(--navy-900); line-height: 1.4; }
.steps span { display: block; font-size: var(--fs-sm); line-height: var(--lh-sm); color: var(--muted); }

/* ---------- Einführung ---------- */
.phases { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; }
.phase { padding: var(--s-6) var(--s-6) var(--s-6) 0; position: relative; }
.phase + .phase { padding-left: var(--s-6); border-left: 1px solid var(--line); }
.phase-no { display: block; font-family: var(--font-display); font-weight: 700; font-size: 3rem; line-height: 1; color: var(--blue); margin-bottom: var(--s-4); }
.phase h3 { margin-bottom: var(--s-2); }
.phase .muted { font-size: var(--fs-sm); margin-bottom: var(--s-3); }
.phase p { color: var(--slate); }
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-8); padding-top: var(--s-7); border-top: 1px solid var(--line); list-style: none; }
.service h3 { font-size: var(--fs-lg); line-height: 1.3; margin: var(--s-3) 0 var(--s-2); }
.service p { font-size: var(--fs-sm); line-height: var(--lh-sm); color: var(--slate); margin: 0; }
.icon { width: 40px; height: 40px; color: var(--blue); }
.icon * { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footnote { margin-top: var(--s-6); font-size: var(--fs-xs); color: var(--muted); max-width: 90ch; }

/* ---------- Sicherheit ---------- */
.security-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); align-items: start; }
.env { background: var(--navy-900); color: var(--on-dark); border-radius: var(--r-md); padding: clamp(24px, 4vw, 40px); }
.env h3 { color: var(--on-dark); font-size: var(--fs-lg); }
.env-box { border: 2px solid var(--blue); border-radius: var(--r-md); padding: var(--s-5); margin-top: var(--s-4); }
.env-box-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s-3); }
.env-box-head strong { font-size: var(--fs-lg); }
.env-iso { font-size: var(--fs-xs); font-weight: 700; color: var(--on-dark); background: var(--blue); padding: 2px 10px; border-radius: var(--r-pill); }
.env dl { margin: 0; display: grid; gap: 0; }
.env dl div { display: grid; grid-template-columns: 9.5rem 1fr; gap: var(--s-3); padding: 10px 0; border-top: 1px solid rgba(167, 182, 208, 0.25); }
.env dt { font-weight: 700; }
.env dd { margin: 0; color: var(--on-dark-muted); font-size: var(--fs-sm); }
.env-others { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-top: var(--s-4); }
.env-others span { border: 1px dashed rgba(167, 182, 208, 0.5); border-radius: var(--r-md); padding: var(--s-3); text-align: center; color: var(--on-dark-muted); font-size: var(--fs-sm); }
.env-note { margin: var(--s-4) 0 0; color: var(--on-dark-muted); font-size: var(--fs-xs); }
.facts { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { padding: var(--s-4) 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; gap: var(--s-4); }
.facts h3 { font-size: var(--fs-md); line-height: 1.4; font-family: var(--font-body); margin-bottom: 2px; letter-spacing: 0; }
.facts p { font-size: var(--fs-sm); line-height: var(--lh-sm); color: var(--slate); margin: 0; }
.facts .icon { width: 32px; height: 32px; margin-top: 2px; }

/* ---------- Einsatzfelder ---------- */
.fields { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.field { border-top: 4px solid var(--navy-900); padding-top: var(--s-4); }
.field h3 { font-size: var(--fs-lg); line-height: 1.3; margin-bottom: var(--s-2); }
.field p { font-size: var(--fs-sm); line-height: var(--lh-sm); color: var(--slate); margin-bottom: var(--s-3); }
.field-status { display: grid; gap: var(--s-2); list-style: none; font-size: var(--fs-xs); }
.field-status li { display: flex; justify-content: space-between; gap: var(--s-2); align-items: center; }

/* ---------- Roadmap ---------- */
.roadmap { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; }
.roadmap::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 4px; background: linear-gradient(90deg, var(--blue) 0 40%, var(--line-strong) 40% 100%); border-radius: 2px; }
.roadmap li { position: relative; padding: 44px var(--s-5) 0 0; }
.roadmap li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 5px solid var(--blue); }
.roadmap li.dg::before { border-color: var(--teal); }
.roadmap li.adapt::before { border-color: var(--warn); }
.roadmap li.plan::before { border-style: dashed; border-color: var(--slate); border-width: 3px; }
.roadmap h3 { font-size: var(--fs-lg); line-height: 1.3; margin: var(--s-3) 0 var(--s-2); }
.roadmap p { font-size: var(--fs-sm); line-height: var(--lh-sm); color: var(--slate); }

/* ---------- Unternehmen ---------- */
.company-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s-8); align-items: start; }
.glance { margin: var(--s-6) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.glance div { border-left: 3px solid var(--blue); padding-left: var(--s-4); }
.glance dt { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xl); color: var(--navy-900); line-height: 1.2; }
.glance dd { margin: var(--s-1) 0 0; font-size: var(--fs-sm); color: var(--muted); }
.people { list-style: none; display: grid; gap: var(--s-4); }
.person { display: grid; grid-template-columns: 56px 1fr; gap: var(--s-4); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--navy-900); color: var(--on-dark); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); }
.person strong { display: block; color: var(--navy-900); font-size: var(--fs-lg); }
.person div span { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Kontakt ---------- */
.contact { background: var(--navy-900); color: var(--on-dark); }
.contact h2, .contact h3 { color: var(--on-dark); }
.contact a { color: var(--on-dark); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--s-8); align-items: start; }
.contact .lead { color: var(--on-dark-muted); }
.contact-info { margin-top: var(--s-6); display: grid; gap: var(--s-5); }
.contact-info h3 { font-size: var(--fs-md); font-family: var(--font-body); letter-spacing: 0; margin-bottom: var(--s-2); }
.contact-info address { font-style: normal; color: var(--on-dark-muted); }
.next-steps { list-style: none; counter-reset: n; display: grid; gap: var(--s-3); }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); color: var(--on-dark-muted); font-size: var(--fs-sm); }
.next-steps li::before { content: counter(n); width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--blue); display: grid; place-items: center; font-weight: 700; font-size: var(--fs-xs); color: var(--on-dark); }
.next-steps strong { color: var(--on-dark); }
.form-card { background: var(--surface); color: var(--ink); border-radius: var(--r-md); padding: clamp(24px, 4vw, 40px); }
.form-card h3 { color: var(--navy-900); margin-bottom: var(--s-2); }
.form-card a { color: var(--blue-text); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-5); margin-top: var(--s-5); }
.form-grid .full { grid-column: 1 / -1; }
.field-row label { display: block; font-weight: 700; font-size: var(--fs-sm); color: var(--navy-900); margin-bottom: 6px; }
.req { color: var(--error); }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  font: 400 var(--fs-md)/1.4 var(--font-body); color: var(--ink); background: var(--surface);
}
textarea { min-height: 140px; resize: vertical; }
input:hover, textarea:hover { border-color: var(--slate); }
input:focus-visible, textarea:focus-visible { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); border-radius: var(--r-sm); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.field-error { display: block; color: var(--error); font-size: var(--fs-xs); margin-top: 4px; font-weight: 700; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); align-items: start; font-size: var(--fs-sm); line-height: var(--lh-sm); }
.consent label { font-weight: 400; font-size: var(--fs-sm); color: var(--ink); margin: 0; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; justify-content: space-between; margin-top: var(--s-5); }
.form-foot .small { margin: 0; max-width: 40ch; }
.form-status { margin-top: var(--s-4); border-radius: var(--r-sm); font-size: var(--fs-sm); }
.form-status:not(:empty) { padding: var(--s-3) var(--s-4); }
.form-status.ok { background: var(--ok-tint); color: var(--ok); font-weight: 700; }
.form-status.err { background: var(--error-tint); color: var(--error); font-weight: 700; }

/* ---------- Fußbereich ---------- */
.site-footer { background: var(--navy-800); color: var(--on-dark-muted); padding: var(--s-8) 0 var(--s-5); font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-6); }
.footer-brand img { width: 200px; margin-bottom: var(--s-4); }
.footer-brand p { max-width: 34ch; }
.site-footer h2 { font-family: var(--font-body); font-size: var(--fs-sm); color: var(--on-dark); letter-spacing: 0; margin-bottom: var(--s-3); }
.site-footer ul { list-style: none; display: grid; gap: var(--s-2); }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgba(167, 182, 208, 0.25); font-size: var(--fs-xs); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: var(--s-5); }

/* ---------- Rechtstexte & 404 ---------- */
.legal { padding: var(--s-8) 0 var(--section); }
.legal .container { max-width: calc(820px + 2 * var(--gutter)); }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); margin-bottom: var(--s-6); }
.legal h2 { font-size: var(--fs-xl); margin: var(--s-7) 0 var(--s-3); }
.legal h3 { font-size: var(--fs-lg); margin: var(--s-5) 0 var(--s-2); }
.legal ul { padding-left: 1.2em; margin-bottom: var(--s-4); }
.legal li { margin-bottom: var(--s-1); max-width: var(--measure); }
.legal address { font-style: normal; margin-bottom: var(--s-4); }
.legal .stand { color: var(--muted); font-size: var(--fs-sm); margin-top: var(--s-7); }
.notfound { padding: var(--s-10) 0; }
.notfound h1 { margin-bottom: var(--s-4); }
.notfound .hero-actions { margin-top: var(--s-6); }

/* ---------- Responsiv ---------- */
@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex; margin-left: auto; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-4);
    border: 1.5px solid var(--navy-900); border-radius: var(--r-sm); background: var(--surface);
    font: 700 var(--fs-sm)/1 var(--font-body); color: var(--navy-900); cursor: pointer;
  }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-float); max-height: calc(100vh - 112px); overflow-y: auto; }
  .nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; padding: var(--s-3) var(--gutter) var(--s-5); gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link, .nav-trigger { width: 100%; justify-content: space-between; min-height: 52px; padding: 0; font-size: var(--fs-md); }
  .nav-link:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { background: none; }
  .nav-list > li.cta-item { border: 0; padding-top: var(--s-4); }
  .nav-cta { margin: 0; width: 100%; }
  .mega { position: static; box-shadow: none; border: 0; }
  .mega-inner { grid-template-columns: 1fr; gap: var(--s-5); padding: 0 0 var(--s-5); }
  .mega-aside { display: none; }
  .hero-grid, .intro-grid, .product, .security-grid, .company-grid, .contact-grid, .panel-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .product-reverse .product-text { order: 0; }
  .netzplan { margin: 0 auto; }
  .netzplan-legend { justify-content: center; }
  .news-list { grid-template-columns: 1fr; }
  .tabs { grid-template-columns: 1fr; gap: var(--s-5); }
  .tablist { flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 2px solid var(--line); scrollbar-width: thin; }
  .tab { flex: 0 0 auto; margin: 0 0 -2px; border-left: 0; border-bottom: 4px solid transparent; }
  .tab[aria-selected="true"] { border-left: 0; border-bottom-color: var(--blue); }
  .tab.dg[aria-selected="true"] { border-bottom-color: var(--teal); }
  .services { grid-template-columns: 1fr 1fr; }
  .fields, .roadmap { grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-5); }
  .roadmap::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .utility .utility-claim { display: none; }
  .utility .container { justify-content: center; }
  .np-d { display: none; }
  .netzplan-m { display: block; }
  .netzplan-legend { justify-content: flex-start; }
  .brand img { width: 160px; }
  .header-bar { min-height: 64px; }
  .apps, .modules, .form-grid, .services, .fields, .roadmap, .glance, .env-others { grid-template-columns: 1fr; }
  .modules li:nth-child(odd) { padding-right: 0; }
  .phases { grid-template-columns: 1fr; }
  .phase { padding: var(--s-5) 0; }
  .phase + .phase { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .env dl div { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .product-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .utility, .site-header, .site-footer, .form-card, .skip-link { display: none !important; }
  .js .panel:not(.is-active) { display: block; }
  body { font-size: 11pt; }
}
