/* DeepNetz Box · Webauftritt deepnetz.com
   Gestaltungswerte nach german-ocr-desk/docs/OBERFLAECHE.md Kapitel 7 (Standard-Theme German-OCR).
   Schrift Inter, selbst gehostet (web/assets/fonts, OFL-1.1). Kein Skript, keine fremden Server. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --surface: #ffffff;
  --chrome: #f6f7f9;
  --canvas: #eceef2;
  --raised: #ffffff;
  --line: #e4e7ec;
  --line-strong: #cfd4dc;
  --ink: #16181d;
  --ink-muted: #4f5663;
  --ink-faint: #6f7682;
  --accent: #2563eb;
  --accent-ink: #1d4ed8;
  --accent-wash: #edf3ff;
  --red: #d92d20;
  --red-ink: #b42318;
  --red-wash: #fef3f2;
  --yellow: #c47a00;
  --yellow-ink: #9a5b00;
  --yellow-wash: #fff8eb;
  --green: #12a150;
  --green-ink: #0e7a3d;
  --green-wash: #effaf3;

  /* Dokumentseiten bleiben in beiden Themes weiß; Fundstellen-Rahmen auf dem Papier nutzen feste Werte. */
  --paper: #ffffff;
  --paper-line: #e4e7ec;
  --paper-text: #cfd4dc;
  --evidence: #2563eb;
  --evidence-yellow: #c47a00;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --radius-chip: 4px;
  --radius-control: 6px;
  --radius-card: 8px;
  --radius-dialog: 12px;
  --gutter: 24px;
  --container: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #121419;
    --chrome: #0d0f13;
    --canvas: #08090c;
    --raised: #191c23;
    --line: #252a33;
    --line-strong: #343a46;
    --ink: #e8eaef;
    --ink-muted: #9aa1ad;
    --ink-faint: #7d8492;
    --accent: #2563eb;
    --accent-ink: #8fb4ff;
    --accent-wash: #18233b;
    --red: #f04438;
    --red-ink: #ff9c94;
    --red-wash: #2a1513;
    --yellow: #f5a524;
    --yellow-ink: #ffc861;
    --yellow-wash: #2a2010;
    --green: #2ebd6b;
    --green-ink: #7fe0a6;
    --green-wash: #0f2419;
  }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }
}

/* Grundlagen */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p, dl, dd, figure { margin: 0; }

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { text-decoration-thickness: 2px; }

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

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 100;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--raised);
  color: var(--ink);
  text-decoration: none;
}

.skip-link:focus { top: 12px; }

/* Knöpfe */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 120ms var(--ease), border-color 120ms var(--ease);
}

.button:hover {
  background: var(--chrome);
  border-color: var(--ink-faint);
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.button-primary:hover {
  border-color: color-mix(in srgb, var(--accent), #000000 12%);
  background: color-mix(in srgb, var(--accent), #000000 12%);
}

/* Kopf */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 24px;
  height: 24px;
  flex: none;
}

.site-nav { margin-inline-start: auto; }

.site-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 8px 10px;
  border-radius: var(--radius-control);
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 120ms var(--ease), color 120ms var(--ease);
}

.site-nav a:hover {
  background: var(--chrome);
  color: var(--ink);
}

@media (max-width: 880px) {
  html { scroll-padding-top: 16px; }

  .site-header { position: static; }

  .site-header .container {
    flex-wrap: wrap;
    gap: 0 16px;
    padding-block: 10px;
  }

  .brand { margin-inline-end: auto; }

  .site-nav {
    order: 3;
    flex-basis: 100%;
    margin-top: 4px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar { display: none; }

  .site-nav ul { flex-wrap: nowrap; gap: 4px; width: max-content; }

  .site-nav a { padding: 6px 8px; }
}

@media (max-width: 420px) {
  .site-header .button { padding: 0 12px; font-size: 13px; }
}

/* Abschnitte */

section { padding-block: 88px; }

.band {
  background: var(--chrome);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 42em;
  margin-bottom: 44px;
}

.section-head h2 { font-size: clamp(26px, 3vw, 34px); }

.section-head p {
  margin-top: 14px;
  font-size: 17px;
  color: var(--ink-muted);
}

h3 { font-size: 18px; }

.subhead {
  margin-top: 64px;
  margin-bottom: 24px;
  font-size: 22px;
}

@media (max-width: 720px) {
  section { padding-block: 60px; }
  .section-head { margin-bottom: 32px; }
  .subhead { margin-top: 48px; }
}

/* Einstieg */

.hero {
  padding-block: 80px 72px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-chip);
  background: var(--chrome);
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 500;
}

.status-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  margin-top: 24px;
  font-size: clamp(32px, 4.4vw, 48px);
  letter-spacing: -0.02em;
}

.hero h1 .line { display: block; }

.lead {
  max-width: 32em;
  margin-top: 22px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  max-width: 34em;
  margin-top: 24px;
  font-size: 14px;
  color: var(--ink-faint);
}

.hero-figure { max-width: 600px; margin-inline-start: auto; }

@media (max-width: 960px) {
  .hero { padding-block: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-figure { margin-inline: 0; }
}

/* Abbildungen */

figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.figure-svg {
  width: 100%;
  height: auto;
}

.figure-svg text { font-family: inherit; }

.l-net { fill: none; stroke: var(--line-strong); stroke-dasharray: 5 6; }
.l-box { fill: var(--surface); stroke: var(--line-strong); }
.l-desk { fill: var(--chrome); stroke: var(--line); }
.l-model { fill: var(--surface); stroke: var(--line); }
.l-title { font-size: 17px; font-weight: 600; fill: var(--ink); }
.l-sub { font-size: 13px; fill: var(--ink-muted); }
.l-side { font-size: 13px; fill: var(--ink-muted); }
.l-net-label { font-size: 13px; font-weight: 500; fill: var(--ink-muted); }
.l-pulse { fill: var(--accent); }
.l-port { fill: var(--line-strong); }

.f-paper { fill: var(--paper); stroke: var(--paper-line); }
.f-text { fill: var(--paper-text); }
.f-evidence { fill: none; stroke: var(--evidence); stroke-width: 1.5; }
.f-evidence-yellow { stroke: var(--evidence-yellow); }
.f-link { fill: none; stroke: var(--evidence); stroke-width: 1.25; stroke-dasharray: 3 3; }
.f-link-yellow { stroke: var(--evidence-yellow); }
.f-panel { fill: var(--surface); stroke: var(--line); }
.f-divider { stroke: var(--line); }
.f-label { font-size: 15px; font-weight: 600; fill: var(--ink); }
.f-section { font-size: 12px; font-weight: 500; fill: var(--ink-muted); }
.f-bar { fill: var(--line-strong); }
.f-bar-soft { fill: var(--line); }
.f-mark { fill: none; stroke: var(--evidence); stroke-width: 1.5; }
.f-mark-yellow { stroke: var(--evidence-yellow); }
.f-badge { fill: var(--yellow-wash); }
.f-badge-text { font-size: 13px; font-weight: 600; fill: var(--yellow-ink); }
.f-icon-yellow { color: var(--yellow); }
.f-icon-green { color: var(--green); }

/* Gerät, Anwendung, Modell */

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.trio > div {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.trio dt { font-size: 18px; font-weight: 600; }

.trio dd {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-muted);
}

.trio .kind {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-ink);
}

/* Karten */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.card h3, .card h4 { font-size: 18px; }

.card p, .card li {
  font-size: 15px;
  color: var(--ink-muted);
}

.card h3 + p, .card h4 + p { margin-top: 10px; }

.card p + p { margin-top: 12px; }

.card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.card li + li { margin-top: 8px; }

.motto {
  margin-top: 8px;
  font-weight: 500;
  color: var(--ink) !important;
}

.example {
  margin-top: 14px !important;
  padding: 12px 14px;
  border-left: 2px solid var(--accent);
  background: var(--accent-wash);
  border-radius: 0 var(--radius-chip) var(--radius-chip) 0;
  color: var(--ink) !important;
  font-size: 14px !important;
}

.aside-note {
  max-width: 48em;
  margin-top: 28px;
  font-size: 15px;
  color: var(--ink-muted);
}

@media (max-width: 880px) {
  .trio, .cards { grid-template-columns: 1fr; }
}

/* Stufen */

.stages {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 64px;
  padding: 0;
  list-style: none;
  counter-reset: stage;
}

.stages li {
  counter-increment: stage;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.stages li::before,
.path li::before {
  content: counter(stage);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.stage-name {
  display: block;
  margin-top: 14px;
  font-weight: 600;
}

.stage-desc {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-muted);
}

@media (max-width: 1040px) {
  .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 48px; }
}

/* Ampel */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  margin-bottom: 64px;
}

.split h3 { font-size: 22px; }

.split p {
  margin-top: 12px;
  color: var(--ink-muted);
}

.signals {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.signal {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.signal .icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.signal strong {
  display: block;
  font-weight: 600;
}

.signal span {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  color: var(--ink-muted);
}

.signal-red { background: var(--red-wash); color: var(--red); }
.signal-red strong { color: var(--red-ink); }
.signal-yellow { background: var(--yellow-wash); color: var(--yellow); }
.signal-yellow strong { color: var(--yellow-ink); }
.signal-green { background: var(--green-wash); color: var(--green); }
.signal-green strong { color: var(--green-ink); }

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 36px; margin-bottom: 48px; }
}

/* Leistungsumfang */

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
}

.scope-grid h3 { font-size: 20px; }

.scope-grid h3 + h3,
.feature-list + h3 { margin-top: 40px; }

.feature-list { margin-top: 8px; }

.feature-list dt {
  margin-top: 18px;
  font-weight: 600;
}

.feature-list dd {
  margin-top: 4px;
  font-size: 15px;
  color: var(--ink-muted);
}

.scope-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.scope-notes .card p { margin-top: 10px; }

@media (max-width: 880px) {
  .scope-grid, .scope-notes { grid-template-columns: 1fr; gap: 40px; }
  .scope-notes { gap: 24px; margin-top: 40px; }
}

/* Im Haus */

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.facts h3 { font-size: 16px; }

.facts p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-muted);
}

.callout {
  margin-top: 32px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.callout h3 { font-size: 18px; }

.callout p {
  max-width: 64em;
  margin-top: 10px;
  color: var(--ink-muted);
}

@media (max-width: 1040px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .facts { grid-template-columns: 1fr; }
  .callout { padding: 20px; }
}

/* Weg zur Box */

.path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: stage;
}

.path li {
  counter-increment: stage;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.path h3 { margin-top: 16px; }

.path p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-muted);
}

.status-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  margin-top: 48px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-dialog);
  background: var(--chrome);
}

.status-card h3 { font-size: 22px; }

.status-card p {
  max-width: 48em;
  margin-top: 10px;
  color: var(--ink-muted);
}

@media (max-width: 880px) {
  .path { grid-template-columns: 1fr; }
  .status-card { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .status-card .button { justify-self: start; }
}

/* Fuß */

.site-footer {
  padding-block: 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 24px 40px;
  align-items: start;
}

.footer-grid strong {
  color: var(--ink);
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a { color: var(--ink-muted); }

.footer-links a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* 404 */

.error-page {
  min-height: calc(100vh - 65px);
  display: grid;
  align-content: center;
  padding-block: 64px;
}

.error-page h1 { font-size: clamp(28px, 4vw, 40px); }

.error-page p {
  max-width: 36em;
  margin-top: 16px;
  font-size: 17px;
  color: var(--ink-muted);
}

.error-page .actions { margin-top: 28px; }

/* Bewegung nur, wenn gewünscht */

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