/* ==========================================================
   WFWeb - Prozessautomatisierung für KMU & Mittelstand
   Design-System: Himmel-Hero, Geist-Typografie, Panel-Sektionen,
   animierte Prozess-Illustrationen. Brandfarben aus dem WFWeb-Repo.
   ========================================================== */

/* Geist und Geist Mono liegen unter fonts/ im Repo statt bei Google. Die Seite
   sagt zu, Daten möglichst lokal zu verarbeiten - das muss für sie selbst gelten:
   Ohne den externen Aufruf sieht kein Dritter die IP-Adresse der Besucher.
   Variable Schnitte, deshalb ein Gewichtsbereich statt einzelner Dateien.
   SIL Open Font License, Selbsthosten ausdrücklich erlaubt. */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/geist-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/geist-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --background: #ffffff;
  --foreground: #0f1e2e;
  --muted: #57697d;
  --muted-light: #5d7185;
  --border: #dbe4ef;
  --panel-bg: #f3f6fb;
  --blue: #1b5fb0;
  --blue-bright: #3f8ede;
  --blue-soft: #e7eff9;
  --navy: #0e2a4d;
  --green: #16a34a;
  --amber: #d97706;
  /* Grün und Orange sind als Flächen- und Akzentfarbe kräftig genug, als
     kleiner Text auf ihren hellen Statushintergründen aber nur bei rund 2,9:1.
     Diese abgedunkelten Varianten erreichen dort mindestens 4,5:1 (WCAG AA)
     und bleiben in derselben Farbrichtung. */
  --green-text: #117e39;
  --amber-text: #a65b05;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-soft: 0 1px 2px rgba(14, 42, 77, 0.05), 0 8px 24px rgba(14, 42, 77, 0.07);
  --shadow-window: 0 2px 8px rgba(14, 42, 77, 0.08), 0 32px 80px rgba(14, 42, 77, 0.2);

  --gutter: 16px;
  --header-h: 60px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.mono { font-family: var(--font-mono); }
a { color: inherit; text-decoration: none; }
img, svg { display: inline-block; vertical-align: middle; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ Buttons & Links ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.btn:active { transform: scale(0.98); }
.btn-lg { height: 44px; padding: 0 22px; font-size: 15px; }

.btn-dark { background: var(--foreground); color: #fff; }
.btn-dark:hover { background: var(--navy); }

.btn-glass {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--foreground);
  backdrop-filter: blur(4px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.8); }

.btn-outline {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--foreground);
}
.btn-outline:hover { background: var(--panel-bg); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
}
.text-link:hover { text-decoration: underline; }
.text-link .arrow { font-size: 15px; line-height: 1; }
.text-link.center { justify-content: center; }

.inline-link { color: var(--blue); }
.inline-link:hover { text-decoration: underline; }

/* Sprungmarke für Tastatur- und Screenreader-Nutzer. Liegt außerhalb des
   Sichtbereichs und rutscht erst bei Fokus herein. */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: top .15s ease;
}
.skip-link:focus { top: 16px; }

/* ============ Header ============ */

.site-header {
  position: absolute;
  top: var(--gutter); left: var(--gutter); right: var(--gutter);
  z-index: 50;
}

.header-float {
  position: fixed;
  inset: 0 0 auto 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.header-float.shown {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 calc(var(--gutter) + 24px);
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.logo-mark { width: 22px; height: 22px; }

.main-nav {
  display: flex;
  gap: 8px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.main-nav a {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--foreground);
  transition: background 0.15s ease;
}
.main-nav a:hover { background: rgba(14, 42, 77, 0.06); }

/* ============ Hero ============ */

.hero-wrap { padding: var(--gutter) var(--gutter) 0; }

.hero-sky {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: calc(var(--header-h) + 52px) 24px 0;
  text-align: center;
  background:
    radial-gradient(55% 45% at 18% 30%, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0) 70%),
    radial-gradient(45% 38% at 82% 22%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 70%),
    radial-gradient(60% 45% at 60% 75%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 70%),
    radial-gradient(40% 32% at 35% 12%, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 65%),
    linear-gradient(180deg, #8ec9ee 0%, #aed9f4 30%, #d3ebfa 62%, #eef7fd 100%);
}

h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.12;
  font-weight: 550;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  text-wrap: balance;
}

.hero-sub {
  font-size: 17px;
  color: rgba(14, 42, 77, 0.72);
  margin-bottom: 26px;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Cockpit-Mockup ---- */

.hero-browser {
  display: grid;
  grid-template-columns: 210px 1fr;
  max-width: 1180px;
  margin: 52px auto 0;
  text-align: left;
  background: #fbfcfe;
  border-radius: 18px 18px 0 0;
  box-shadow: var(--shadow-window);
  font-size: 12px;
  min-height: 460px;
  overflow: hidden;
}

.traffic-lights { display: flex; gap: 6px; }
.traffic-lights i { width: 11px; height: 11px; border-radius: 50%; }
.traffic-lights i:nth-child(1) { background: #ff5f57; }
.traffic-lights i:nth-child(2) { background: #febc2e; }
.traffic-lights i:nth-child(3) { background: #28c840; }

.hb-sidebar {
  padding: 14px 12px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #33475c;
}
.hb-side-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.hb-side-title { font-size: 10px; color: var(--muted-light); letter-spacing: 0.04em; }

.hb-side-label {
  font-size: 10px;
  font-weight: 550;
  color: var(--muted-light);
  margin: 8px 4px 3px;
}

.hb-side-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border-radius: 7px;
  line-height: 1.2;
}
.hb-side-item:hover { background: rgba(14, 42, 77, 0.04); }
.hb-side-item.active { background: #fff; box-shadow: 0 1px 3px rgba(14, 42, 77, 0.1); font-weight: 550; }
.hb-count { margin-left: auto; font-size: 10px; color: var(--muted-light); font-family: var(--font-mono); }

.hb-side-foot {
  margin-top: auto;
  padding: 8px 6px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  color: var(--muted);
}

.hb-fav {
  width: 15px; height: 15px;
  flex-shrink: 0;
  border-radius: 4px;
  background: var(--c, #dbe4ef);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--muted-light);
}
.status-dot.ok { background: var(--green); }
.status-dot.wait { background: var(--amber); }
.status-dot.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.35); }
  50% { box-shadow: 0 0 0 5px rgba(22, 163, 74, 0); }
}

.hb-main { display: flex; flex-direction: column; background: #fbfcfe; }

.hb-urlrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 8px;
}
.hb-tab-title { font-weight: 550; font-size: 12.5px; }
.hb-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 10.5px;
  color: var(--muted);
  background: #fff;
}

.hb-canvas {
  flex: 1;
  margin: 4px 16px 0;
  background: #fff;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  padding: 32px 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Workflow-Diagramm */
.flow {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr 40px 1fr;
  align-items: center;
  gap: 0;
}
.flow-node {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(14, 42, 77, 0.05);
  animation: node-glow 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 1.5s);
}
@keyframes node-glow {
  0%, 20%, 100% { border-color: var(--border); box-shadow: 0 2px 8px rgba(14, 42, 77, 0.05); }
  8% { border-color: var(--blue-bright); box-shadow: 0 2px 14px rgba(63, 142, 222, 0.3); }
}
.flow-node strong { font-size: 11.5px; font-weight: 550; letter-spacing: -0.01em; }
.flow-node em { font-style: normal; font-size: 9.5px; color: var(--muted-light); }
.flow-ic {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--c) 12%, #fff);
  color: var(--c);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.flow-link {
  position: relative;
  height: 2px;
  background-image: repeating-linear-gradient(90deg, var(--blue-bright) 0 5px, transparent 5px 10px);
  background-size: 10px 2px;
  animation: dash-move 0.8s linear infinite;
  margin: 0 4px;
}
@keyframes dash-move { to { background-position: 10px 0; } }

.flow-dot {
  position: absolute;
  top: 50%; left: 0;
  width: 7px; height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 6px rgba(27, 95, 176, 0.6);
  animation: dot-travel 4.5s ease-in-out infinite;
}
.flow-dot.d2 { animation-delay: 1.5s; }
.flow-dot.d3 { animation-delay: 3s; }
@keyframes dot-travel {
  0% { left: -4%; opacity: 0; }
  8% { opacity: 1; }
  28% { left: 100%; opacity: 1; }
  33% { opacity: 0; }
  100% { left: 100%; opacity: 0; }
}

/* Protokoll + Tageszahlen */
.hb-panels {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 14px;
}
.hb-panel-title {
  display: block;
  font-size: 10px;
  font-weight: 550;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-light);
  margin-bottom: 8px;
}
.hb-log {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fbfcfe;
}
.hb-log ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.log-line {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  animation: log-in 0.4s ease both;
}
.log-line.dim { color: var(--muted-light); }
.log-time { color: var(--muted-light); font-size: 10px; flex-shrink: 0; padding-top: 1px; }
@keyframes log-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.hb-today {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fbfcfe;
  display: flex;
  flex-direction: column;
}
.today-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  padding: 4px 0;
}
.today-stat b { font-size: 16px; color: var(--foreground); min-width: 34px; }

/* ---- Unterseiten-Hero ---- */

.page-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: calc(var(--header-h) + 48px) 24px 56px;
  text-align: center;
  background:
    radial-gradient(50% 60% at 25% 20%, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0) 70%),
    radial-gradient(45% 55% at 80% 30%, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #a5d3f0 0%, #cde7f8 55%, #eef7fd 100%);
}
.page-hero h1 {
  font-size: clamp(30px, 3.6vw, 44px);
  margin-bottom: 12px;
}
.page-hero .hero-sub { margin-bottom: 0; max-width: 620px; margin-left: auto; margin-right: auto; }

.main-nav a.active { background: rgba(14, 42, 77, 0.08); }

/* ============ Projekt-Leiste (Demo-Seiten) ============ */

/* Sitzt im Seiten-Hero über der Überschrift, direkt unter der Hauptnavigation. */
/* safe center statt center: Zentriert wird nur, solange alle Einträge nebeneinander
   passen. Auf schmalen Geräten schöbe echtes Zentrieren den ersten Eintrag über die
   linke Kante hinaus - dorthin lässt sich nicht zurückscrollen, er wäre verloren.
   safe fällt bei Überlauf auf linksbündig zurück, alles bleibt erreichbar. */
.projekt-nav {
  display: flex;
  justify-content: safe center;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 22px;
}
.projekt-nav-item {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--foreground);
  white-space: nowrap;
}
a.projekt-nav-item { transition: background 0.15s ease; }
a.projekt-nav-item:hover { background: rgba(255, 255, 255, 0.45); }
.projekt-nav-item.active {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ============ Typo-Bausteine ============ */

h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
  font-weight: 550;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  text-wrap: balance;
}
h2.left { text-align: left; }

/* Auszeichnung für Abschnittsüberschriften, die kleiner als eine h2 aussehen sollen.
   Zeilenhöhe und Umbruch stehen hier explizit, weil das Element ein h2 ist und sonst
   dessen Werte erbte - die Ebene folgt der Dokumentstruktur, die Optik dieser Klasse. */
.h3-lg {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.6;
  font-weight: 550;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  text-wrap: wrap;
}

.section-sub {
  font-size: 16px;
  color: var(--muted);
  text-wrap: pretty;
}
.section-sub.left { max-width: 640px; }

.section { padding: 88px 0; }

/* Nur für Screenreader: Die Demo tauscht große Inhaltsbereiche aus, was sehende
   Nutzer sehen und alle anderen nicht. clip-path statt display:none, weil ein
   ausgeblendetes Element nicht vorgelesen wird. */
.sr-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Rechtstexte: eine schmale Lesespalte. Impressum und Datenschutzerklärung sind
   Fließtext zum Nachschlagen, kein Marketing - deshalb kein Raster, keine Karten. */
.rechtstext { max-width: 720px; margin: 0 auto; }
.rechtstext h2 { text-align: left; font-size: 22px; margin: 44px 0 14px; }
.rechtstext h2:first-of-type { margin-top: 0; }
.rechtstext h3 { font-size: 16px; font-weight: 550; margin: 24px 0 8px; }
.rechtstext p, .rechtstext li { color: var(--muted); line-height: 1.7; }
.rechtstext p { margin-bottom: 14px; }
.rechtstext ul { margin: 0 0 14px 20px; }
.rechtstext li { margin-bottom: 6px; }
.rechtstext a { color: var(--blue); }
.rechtstext address { font-style: normal; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.rechtstext .stand { font-size: 13px; color: var(--muted); margin-top: 48px; }

/* ============ Intro ============ */

.intro { padding: 88px 0; }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
  max-width: 980px;
}
.intro-text { display: flex; flex-direction: column; gap: 20px; }
.intro-text p { color: var(--muted); font-size: 16px; }
.intro-text strong { color: var(--foreground); font-weight: 550; }

/* ============ Panel-Sektionen ============ */

.panel-section { padding: 0 var(--gutter); margin: 8px 0; }

.panel {
  background: linear-gradient(180deg, #f3f6fb 0%, #edf2f9 100%);
  border-radius: var(--radius-xl);
  padding: 88px 32px;
  max-width: 1408px;
  margin: 0 auto;
}

.panel-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.panel-head .text-link { margin-bottom: 18px; }

/* ---- Leistungs-Karten ---- */

.cap-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
}
.cap-card { width: calc((100% - 48px) / 3); min-width: 280px; }

.cap-visual {
  height: 210px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 18px;
}
.cap-card figcaption, .pw-card figcaption, .priv-card figcaption {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}
.cap-card strong, .pw-card strong, .priv-card strong {
  color: var(--foreground);
  font-weight: 550;
}

/* Visual: Belegverarbeitung */
.v-doc { display: flex; gap: 16px; align-items: center; }
.v-doc-paper {
  width: 86px; height: 110px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.v-doc-line { height: 6px; border-radius: 3px; background: var(--blue-soft); }
.v-doc-line.w70 { width: 70%; } .v-doc-line.w50 { width: 50%; } .v-doc-line.w60 { width: 60%; }
.v-scanline {
  position: absolute;
  left: 0; right: 0;
  height: 26px;
  background: linear-gradient(180deg, rgba(63,142,222,0) 0%, rgba(63,142,222,0.18) 50%, rgba(63,142,222,0) 100%);
  border-top: 1px solid rgba(63,142,222,0.5);
  animation: scan 2.6s ease-in-out infinite;
}
@keyframes scan { 0% { top: -30%; } 50% { top: 100%; } 100% { top: -30%; } }
.v-doc-chips { display: flex; flex-direction: column; gap: 8px; }
.v-chip {
  font-size: 10.5px;
  font-weight: 500;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 6px;
  padding: 4px 9px;
  opacity: 0;
  transform: translateX(-6px);
}
.visible .v-chip { animation: chip-in 0.45s ease var(--vd, 0s) forwards; }
@keyframes chip-in { to { opacity: 1; transform: none; } }

/* Visual: E-Mail-Triage */
.v-mail { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 230px; }
.v-mail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 8px 10px;
  opacity: 0;
  transform: translateY(6px);
}
.visible .v-mail-row { animation: chip-in 0.45s ease var(--vd, 0s) forwards; }
.v-mail-line { height: 6px; border-radius: 3px; background: var(--blue-soft); flex: 1; }
.v-tag {
  font-size: 9.5px;
  font-weight: 550;
  border-radius: 5px;
  padding: 2px 7px;
  flex-shrink: 0;
}
.v-tag.t1 { background: #e7f6ec; color: var(--green-text); }
.v-tag.t2 { background: var(--blue-soft); color: var(--blue); }
.v-tag.t3 { background: #fdeeee; color: #d42222; }

/* Visual: Sync */
.v-sync { display: flex; align-items: center; gap: 14px; }
.v-sys {
  width: 60px; height: 60px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfcfe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  box-shadow: 0 2px 8px rgba(14, 42, 77, 0.05);
}
.v-sync-lane {
  position: relative;
  width: 90px; height: 2px;
  background-image: repeating-linear-gradient(90deg, var(--border) 0 5px, transparent 5px 10px);
}
.v-sync-lane i {
  position: absolute;
  top: 50%;
  width: 8px; height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--blue-bright);
  animation: sync-dot 2.4s linear infinite;
}
.v-sync-lane i:nth-child(2) { animation-delay: 0.8s; }
.v-sync-lane i:nth-child(3) { animation-delay: 1.6s; }
@keyframes sync-dot {
  0% { left: -5%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Visual: Freigabe */
.v-approve {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfcfe;
  padding: 14px 16px;
  font-size: 12px;
  text-align: center;
  line-height: 1.45;
  position: relative;
  width: 200px;
}
.v-approve-btns { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.v-approve-btns span {
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 500;
  background: #fff;
}
.v-approve-btns .ok { background: var(--foreground); color: #fff; border-color: var(--foreground); }
.visible .v-approve-btns .ok { animation: btn-press 5s ease-in-out infinite 1s; }
@keyframes btn-press {
  0%, 18%, 100% { transform: none; }
  8% { transform: scale(0.94); }
}
.v-approve-done {
  position: absolute;
  left: 50%; bottom: -14px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 10px;
  font-weight: 550;
  color: var(--green-text);
  background: #e7f6ec;
  border-radius: 999px;
  padding: 3px 10px;
  opacity: 0;
}
.visible .v-approve-done { animation: done-in 5s ease-in-out infinite 1s; }
@keyframes done-in {
  0%, 10% { opacity: 0; transform: translateX(-50%) translateY(4px); }
  16%, 85% { opacity: 1; transform: translateX(-50%); }
  95%, 100% { opacity: 0; }
}

/* Visual: Reporting */
.v-report { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.v-bars { display: flex; align-items: flex-end; gap: 10px; height: 100px; }
.v-bars i {
  width: 22px;
  height: var(--h);
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--blue-bright), var(--blue));
  transform: scaleY(0);
  transform-origin: bottom;
}
.visible .v-bars i { animation: bar-grow 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--vd, 0s) forwards; }
@keyframes bar-grow { to { transform: scaleY(1); } }
.v-report-label { font-size: 9.5px; color: var(--muted-light); }

/* ============ Nutzen (Vergleich + Stats) ============ */

.bench-container { max-width: 1024px; }

.bench-table {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
}
.bench-row {
  display: grid;
  grid-template-columns: 170px 1fr 96px;
  align-items: center;
  gap: 24px;
  padding: 14px 12px;
  border-bottom: 1px solid #eef2f8;
}
.bench-row:last-child { background: var(--panel-bg); border-radius: 10px; border-bottom-color: transparent; }

.bench-name { font-size: 14px; font-weight: 500; }
.bench-score { font-size: 13px; text-align: right; color: var(--muted); }
.bench-row:last-child .bench-score { color: var(--foreground); font-weight: 500; }

.bench-bar { height: 14px; border-radius: 4px; overflow: hidden; }
.bar {
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: #d9e2ee;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.bar-primary { background: var(--blue); }
.bench-table.animated .bar { width: calc(var(--w) * 1%); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.stat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat b {
  font-size: 26px;
  font-weight: 550;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat span:last-child { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

.bench-tabs-wrap { margin-top: 32px; }
.bench-tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--panel-bg);
  border-radius: 10px;
  width: 100%;
}
.bench-tab {
  flex: 1;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}
.bench-tab.active { background: #fff; color: var(--foreground); box-shadow: 0 1px 3px rgba(14, 42, 77, 0.12); }

/* ---- Herleitung: woraus sich die Zeiten oben zusammensetzen ---- */

.calc-title {
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.01em;
  margin: 38px 0 14px;
}

.calc-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.calc-row {
  display: grid;
  grid-template-columns: 1fr 86px 1.45fr;
  align-items: baseline;
  gap: 20px;
  padding: 13px 18px;
  border-bottom: 1px solid #eef2f8;
}

.calc-head {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-light);
  background: var(--panel-bg);
}

.calc-step { font-size: 14px; font-weight: 500; }
.calc-time { font-size: 13px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.calc-mech { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Die Zeile, die beim Kunden bleibt, ist abgesetzt: sie erklärt die Restzeit
   und gehört nicht zu den Schritten, die entfallen. */
.calc-row-rest { background: var(--blue-soft); }
.calc-row-rest .calc-time { color: var(--foreground); font-weight: 500; }
.calc-row-rest .calc-mech { color: #2f4a68; }
.calc-rest-time {
  color: var(--blue);
  font-weight: 600;
  font-size: 13px;
  margin-right: 6px;
  font-variant-numeric: tabular-nums;
}
.calc-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--blue);
}

.calc-row-sum {
  background: var(--panel-bg);
  border-bottom: none;
}
.calc-row-sum .calc-step,
.calc-row-sum .calc-time { font-weight: 550; color: var(--foreground); }
.calc-after {
  font-size: 13px;
  color: var(--blue);
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}

.calc-note {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 12px;
}

/* ============ Ablauf (Stepper) ============ */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.steps-line {
  position: absolute;
  top: 17px; left: 8%; right: 8%;
  height: 2px;
  background: var(--border);
  transform: scaleX(0);
  transform-origin: left;
}
.steps.visible .steps-line { animation: line-draw 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards; }
@keyframes line-draw { to { transform: scaleX(1); } }

.step { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.step-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--foreground);
  color: #fff;
  font-size: 14px;
  font-weight: 550;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px #fff;
}

.step-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  background: #fff;
  flex: 1;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.step-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.step-card h2 { font-size: 17px; line-height: 1.6; font-weight: 550; letter-spacing: -0.015em; margin: 10px 0 6px; text-wrap: wrap; }
.step-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

.step-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 550;
  border-radius: 999px;
  padding: 3px 10px;
  background: var(--blue-soft);
  color: var(--blue);
}
.step-tag.free { background: #e7f6ec; color: var(--green-text); }

.steps-note {
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--muted-light);
}

/* ============ Sicherheit ============ */

.pw-head { max-width: 720px; margin-bottom: 48px; }
.pw-head .text-link { margin-bottom: 14px; }

.pw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 96px;
}

.pw-visual {
  height: 240px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pw-v1 { background: linear-gradient(135deg, #e7f0fa 0%, #d4e5f7 100%); }
.pw-v2 { background: linear-gradient(135deg, #eef2f9 0%, #dfe7f2 100%); }
.pw-v3 { background: linear-gradient(135deg, #e3f4ec 0%, #d3ecdf 100%); }

/* Visual: Hosting DE */
.sec-host { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sec-server {
  width: 120px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(14, 42, 77, 0.1);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.sec-server i { height: 10px; border-radius: 3px; background: var(--blue-soft); }
.sec-server-led {
  position: absolute;
  top: 12px; right: 12px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.8s ease-in-out infinite;
}
.sec-host-label { font-size: 11px; font-weight: 550; }
.sec-host-chip {
  font-size: 10px;
  font-weight: 550;
  background: #fff;
  color: var(--blue);
  border-radius: 999px;
  padding: 3px 10px;
  box-shadow: 0 1px 4px rgba(14, 42, 77, 0.1);
}

/* Visual: Isolierte Instanzen */
.sec-iso { display: flex; gap: 12px; align-items: center; }
.sec-box {
  width: 74px; height: 90px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(14, 42, 77, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 550;
  color: var(--muted);
}
.sec-box.mid { transform: translateY(-10px); }
.sec-lock { font-size: 16px; }

/* Visual: Kontrollierter Modus */
.sec-guard {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(14, 42, 77, 0.08);
  width: 100%;
  max-width: 250px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
}
.sec-guard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
}
.sec-guard-row:hover { background: #fbfcfe; }
.sec-guard-row em {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 550;
  border-radius: 5px;
  padding: 2px 7px;
  white-space: nowrap;
}
.sec-guard-row .wait { background: #fdf3e4; color: var(--amber-text); }
.sec-guard-row .ok { background: #e7f6ec; color: var(--green-text); }

/* ---- Infrastruktur-Banner ---- */

.pw-banner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: stretch;
}

/* Rasterkinder bekommen von Haus aus min-width: auto und werden dadurch nie
   schmaler als ihr längster Inhalt. Bei 320px schob das den Banner über den
   Bildschirmrand hinaus, obwohl die Spalte längst 1fr war. */
.pw-banner > * { min-width: 0; }

.pw-banner-copy { padding: 24px 0; }
.pw-banner-title {
  font-size: 24px;
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 20px;
  text-wrap: wrap;
}
.pw-banner-title span { color: var(--muted-light); }

.pw-banner-feats { margin-top: 40px; display: flex; flex-direction: column; gap: 20px; }
.pw-banner-feats dt { font-weight: 550; font-size: 14px; }
.pw-banner-feats dd { color: var(--muted); font-size: 13.5px; max-width: 46ch; }

.pw-banner-visual {
  border-radius: var(--radius-lg);
  background: radial-gradient(90% 90% at 80% 15%, #16395f 0%, #0e2a4d 55%, #081726 100%);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Zwei feste 130px-Karten plus Zwischenraum ergeben 326px - mehr, als bei 320px
   Bildschirmbreite zur Verfügung steht. Umbrechen statt überlaufen; auf breiten
   Schirmen passen sie ohnehin nebeneinander. */
.infra-choice { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.infra-card {
  width: 130px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
}
.infra-card em { font-style: normal; font-size: 10px; color: rgba(255, 255, 255, 0.5); }
.infra-card.active {
  background: rgba(63, 142, 222, 0.18);
  border-color: rgba(63, 142, 222, 0.55);
  box-shadow: 0 0 24px rgba(63, 142, 222, 0.25);
  animation: infra-glow 3.5s ease-in-out infinite;
}
@keyframes infra-glow {
  0%, 100% { box-shadow: 0 0 24px rgba(63, 142, 222, 0.25); }
  50% { box-shadow: 0 0 36px rgba(63, 142, 222, 0.45); }
}
.infra-ic {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.infra-or { font-size: 11px; color: rgba(255, 255, 255, 0.4); }

/* ============ Zusammenarbeit ============ */

.priv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
}

.priv-visual {
  height: 210px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
  color: var(--muted);
}

/* Visual: Festpreis */
.work-offer {
  width: 130px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbfcfe;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.work-offer-head { font-size: 9px; color: var(--muted-light); letter-spacing: 0.05em; text-transform: uppercase; }
.work-line { height: 6px; border-radius: 3px; background: var(--blue-soft); }
.work-line.w80 { width: 80%; } .work-line.w60 { width: 60%; } .work-line.w70 { width: 70%; }
.work-offer-price {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 550;
  color: var(--foreground);
  display: flex;
  justify-content: space-between;
}
.work-offer-price b { color: var(--green); }

/* Visual: Zahlung */
.work-pay { display: flex; align-items: center; gap: 10px; }
.work-pay-chip {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbfcfe;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 10px;
  color: var(--muted);
  text-align: center;
}
.work-pay-chip b { font-size: 15px; color: var(--foreground); }
.work-pay-arrow { color: var(--muted-light); }

/* Visual: Stabilisierung */
.work-stab { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.work-days { display: grid; grid-template-columns: repeat(5, 18px); gap: 6px; }
.work-days .d {
  height: 18px;
  border-radius: 5px;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  position: relative;
}
.work-days .d.on { background: var(--blue-soft); border-color: #c3d8f0; }
.work-days .d.on::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--blue);
}
.work-days .d.cur { border-color: var(--blue); animation: pulse-border 1.6s ease-in-out infinite; }
@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(27, 95, 176, 0.3); }
  50% { box-shadow: 0 0 0 4px rgba(27, 95, 176, 0); }
}
.work-stab-label { font-size: 10.5px; font-weight: 550; color: var(--muted); }

/* Visual: Monitoring */
.work-monitor { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--blue-bright); }
.pulse-path {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
}
.visible .pulse-path { animation: pulse-draw 3s linear infinite; }
@keyframes pulse-draw {
  0% { stroke-dashoffset: 260; }
  70%, 100% { stroke-dashoffset: 0; }
}
.work-monitor-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 550;
  color: var(--muted);
}

/* ============ CTA (Split-Karte) ============ */

.cta-section { padding: 40px var(--gutter) 56px; }

.cta-card {
  max-width: 1120px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  background: linear-gradient(120deg, #0f2f56 0%, #0e2a4d 55%, #0a1f3a 100%);
  color: #fff;
}

.cta-copy { padding: 56px 56px 56px 48px; }
.cta-copy h2 {
  color: #fff;
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 14px;
}
.cta-copy p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15.5px;
  max-width: 46ch;
  margin-bottom: 24px;
}

.cta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.cta-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.cta-list .check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(63, 142, 222, 0.25);
  color: #8fc1f2;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-light { background: #fff; color: var(--foreground); }
.btn-light:hover { background: #e7eff9; }

.cta-side {
  background: rgba(255, 255, 255, 0.04);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
}
.cta-mini {
  width: 100%;
  max-width: 300px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px 20px;
  font-size: 12.5px;
}
.cta-mini-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.cta-mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.cta-mini-row:last-child { border-bottom: none; }
.cta-mini-row .mono {
  margin-left: auto;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.45);
}

.cta-tel { margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, 0.72); }
.cta-tel a { color: #8fc1f2; font-weight: 600; }
.cta-tel a:hover { text-decoration: underline; }

/* Variante der Split-Karte auf der Startseite: sie trägt das Kontaktformular in
   der rechten Spalte und die Ablauf-Karte links unter den Häkchen. Dadurch sind
   beide Spalten gefüllt und die Karte passt auf eine Bildschirmhöhe. Die sechs
   Unterseiten nutzen weiter die Kurzfassung darüber und bleiben unverändert. */
.cta-card-formular { grid-template-columns: 1fr 1fr; }
.cta-card-formular .cta-copy { padding: 44px 44px 44px 40px; }
.cta-card-formular .cta-copy p { margin-bottom: 18px; }
.cta-card-formular .cta-list { gap: 8px; margin-bottom: 24px; }
.cta-card-formular .cta-side {
  display: block;
  padding: 44px;
}

/* ============ Kontaktformular ============ */

/* Zweispaltiges Raster statt Hüllelementen im Markup: kontakt-senden.php baut die
   Fehlerseite aus byte-exakten Fragmenten von index.html, deshalb bleibt das
   Formular-Markup unangetastet und die Paarung passiert allein hier. */
.kontakt-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kontakt-form > * { grid-column: 1 / -1; }
.kontakt-form > .form-row-halb { grid-column: auto; }
.kontakt-form > button { justify-self: start; }

.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.form-row .erforderlich { color: #8fc1f2; margin-left: 2px; }
.form-row .optional { color: rgba(255, 255, 255, 0.45); font-weight: 400; }

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: rgba(255, 255, 255, 0.35); }
.form-row input:focus,
.form-row textarea:focus { outline: 2px solid var(--blue-bright); outline-offset: 1px; }
.form-row textarea { resize: vertical; min-height: 84px; }

.form-row-checkbox { flex-direction: row; align-items: flex-start; gap: 10px; }
.form-row-checkbox input { width: auto; margin-top: 3px; }
.form-row-checkbox label { font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.form-row-checkbox label a { color: #8fc1f2; text-decoration: underline; }

/* Für Menschen unsichtbar, aber im Markup vorhanden - einfache Bot-Skripte
   füllen Formularfelder blind aus und verraten sich damit. */
.kf-honeypot { position: absolute; left: -9999px; top: -9999px; }

.form-fehler {
  padding: 10px 14px;
  border-radius: var(--radius);
  background: rgba(217, 119, 6, 0.18);
  border: 1px solid rgba(217, 119, 6, 0.4);
  color: #fff3e0;
  font-size: 13.5px;
}

.kontakt-status {
  display: none;
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
}
.kontakt-status:target { display: block; }
.kontakt-status-erfolg {
  background: rgba(22, 163, 74, 0.18);
  border: 1px solid rgba(22, 163, 74, 0.4);
  color: #eafff1;
}
.kontakt-status-fehler {
  background: rgba(217, 119, 6, 0.18);
  border: 1px solid rgba(217, 119, 6, 0.4);
  color: #fff3e0;
}

/* ============ Übersichtskacheln (Homepage) ============ */

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1064px;
  margin: 0 auto;
}
.overview-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.overview-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
  border-color: #c3d8f0;
}
.overview-ic {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.overview-card h2 {
  font-size: 16.5px;
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: inherit;
  margin-bottom: 0;
  text-wrap: wrap;
}
.overview-card p { font-size: 13.5px; color: var(--muted); line-height: 1.5; flex: 1; }
.overview-card .card-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
}
.overview-card:hover .card-link { text-decoration: underline; }

.section-more { text-align: center; margin-top: 36px; }

/* Ablauf-Teaser (Homepage) */
.teaser-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1064px;
  margin: 40px auto 0;
  counter-reset: teaser;
}
.teaser-step {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  background: #fff;
}
.teaser-step::before {
  counter-increment: teaser;
  content: counter(teaser, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue);
  display: block;
  margin-bottom: 10px;
}
.teaser-step h3 { font-size: 16px; font-weight: 550; margin-bottom: 6px; }
.teaser-step p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ============ Demo-Seite (Belegverarbeitung) ============ */

.demo-facts-section { padding: 72px 0 24px; }

.demo-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.demo-fact {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.demo-fact-ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}
.demo-fact h2 {
  font-size: 15.5px;
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: inherit;
  margin-bottom: 0;
  text-wrap: wrap;
}
.demo-fact h2 b { color: var(--blue); font-weight: 550; font-variant-numeric: tabular-nums; }
.demo-fact p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.demo-fact .mono { font-size: 12.5px; color: var(--foreground); }

/* ---- Belegauswahl ---- */

.demo-picker-wrap {
  max-width: 1180px;
  margin: 0 auto 24px;
  max-height: 240px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.demo-picker-wrap::-webkit-scrollbar {
  width: 6px;
}
.demo-picker-wrap::-webkit-scrollbar-track {
  background: transparent;
}
.demo-picker-wrap::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.demo-picker {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.demo-card {
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.demo-card:hover { border-color: #c3d8f0; box-shadow: var(--shadow-soft); transform: translateY(-1px); }
.demo-card.active { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }

.demo-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.demo-card-id { font-size: 10px; color: var(--muted-light); }
.demo-card-name {
  font-size: 12.5px;
  font-weight: 550;
  letter-spacing: -0.01em;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo-card-meta { font-size: 11px; color: var(--muted); }

.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 550;
  border-radius: 999px;
  padding: 2px 7px;
  white-space: nowrap;
  flex-shrink: 0;
}
.demo-pill.ok { background: #e7f6ec; color: var(--green-text); }
.demo-pill.wait { background: #fdf3e4; color: var(--amber-text); }

/* ---- Verarbeitungsfenster ---- */

.demo-window {
  max-width: 1180px;
  margin: 0 auto;
  background: #fbfcfe;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-window);
  overflow: hidden;
}

.dw-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 12px 16px;
}
.dw-title { font-size: 12px; font-weight: 550; color: var(--muted); }
.dw-replay {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 11px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.dw-replay:hover { background: var(--panel-bg); color: var(--foreground); }

.dw-canvas {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 24px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.dw-panel-title {
  display: block;
  font-size: 10px;
  font-weight: 550;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-light);
  margin-bottom: 10px;
}

/* Reichweite der Prüfregeln - was sie erkennen und was nicht. */
.dw-panel-note {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: -4px 0 12px;
}

/* Schritte */
.dw-flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.dw-step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fbfcfe;
  padding: 12px 14px;
  opacity: 0.4;
  transition: opacity 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}
.dw-step.erledigt { opacity: 1; background: #fff; }
.dw-step.aktiv { border-color: var(--blue-bright); box-shadow: 0 2px 14px rgba(63, 142, 222, 0.25); }
.dw-step-head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.dw-step-num {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--panel-bg);
  color: var(--muted);
  font-size: 9.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dw-step.erledigt .dw-step-num { background: var(--blue-soft); color: var(--blue); }
.dw-step.erledigt.s-beanstandet .dw-step-num { background: #fdf3e4; color: var(--amber-text); }
.dw-step-head strong { font-size: 12.5px; font-weight: 550; letter-spacing: -0.01em; }
.dw-step-dauer { margin-left: auto; font-size: 10px; color: var(--muted-light); }
.dw-step p { font-size: 11.5px; color: var(--muted); line-height: 1.45; }

/* Bild + Felder */
.dw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
/* Ohne min-width:0 zieht die nicht umbrechende Positionstabelle die Spalte auf. */
.dw-grid > * { min-width: 0; }
.dw-shot, .dw-fields, .dw-checks, .dw-start, .dw-vorschlag {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.demo-window[data-stufe="1"] [data-ab="1"],
.demo-window[data-stufe="2"] [data-ab="1"], .demo-window[data-stufe="2"] [data-ab="2"],
.demo-window[data-stufe="3"] [data-ab="1"], .demo-window[data-stufe="3"] [data-ab="2"],
.demo-window[data-stufe="3"] [data-ab="3"],
.demo-window[data-stufe="4"] [data-ab="1"], .demo-window[data-stufe="4"] [data-ab="2"],
.demo-window[data-stufe="4"] [data-ab="3"], .demo-window[data-stufe="4"] [data-ab="4"] {
  opacity: 1;
  transform: none;
}

.dw-shot-frame {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-bg);
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.dw-shot-frame img { width: 100%; height: auto; max-height: 460px; object-fit: contain; }
.dw-shot figcaption { font-size: 11.5px; color: var(--muted-light); line-height: 1.45; margin-top: 8px; }

.dw-scan {
  position: absolute;
  left: 0; right: 0;
  height: 30px;
  background: linear-gradient(180deg, rgba(63,142,222,0) 0%, rgba(63,142,222,0.22) 50%, rgba(63,142,222,0) 100%);
  border-top: 1px solid rgba(63,142,222,0.6);
  opacity: 0;
}
.demo-window[data-stufe="1"] .dw-scan { opacity: 1; animation: scan 2.2s ease-in-out infinite; }

.dw-field-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fbfcfe;
  padding: 6px 14px;
  margin-bottom: 18px;
}
.dw-field-list dt {
  font-size: 12px;
  color: var(--muted);
  padding: 7px 0;
  border-bottom: 1px solid #eef2f8;
}
.dw-field-list dd {
  font-size: 12.5px;
  font-weight: 500;
  text-align: right;
  padding: 7px 0;
  border-bottom: 1px solid #eef2f8;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.dw-field-list dt:nth-last-of-type(1), .dw-field-list dd:nth-last-of-type(1) { border-bottom: none; }
.dw-field-list dd.fehlt { color: var(--amber); font-style: italic; font-weight: 400; }
.dw-unlesbar { font-size: 12.5px; color: var(--amber); }

.dw-pos-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.dw-pos { width: 100%; border-collapse: collapse; font-size: 12px; background: #fbfcfe; }
.dw-pos th, .dw-pos td { padding: 8px 12px; text-align: left; white-space: nowrap; }
.dw-pos th {
  font-size: 9.5px;
  font-weight: 550;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-light);
  border-bottom: 1px solid var(--border);
}
.dw-pos td { border-bottom: 1px solid #eef2f8; color: var(--muted); }
.dw-pos tr:last-child td { border-bottom: none; }
.dw-pos .num { text-align: right; }
.dw-pos td.num { color: var(--foreground); font-variant-numeric: tabular-nums; }
.dw-pos td:first-child { white-space: normal; min-width: 150px; }

/* Prüfrechnung */
.dw-rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: start; }
.dw-rules > * { min-width: 0; }
.dw-rule {
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  background: #fbfcfe;
  padding: 12px 14px;
  height: 100%;
}
.dw-rule.fail { border-left-color: var(--amber); background: #fffaf3; }
.dw-rule-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.dw-rule-head strong { font-size: 12.5px; font-weight: 550; letter-spacing: -0.01em; }
.dw-rule-verdict {
  margin-left: auto;
  font-style: normal;
  font-size: 9.5px;
  font-weight: 550;
  border-radius: 5px;
  padding: 2px 7px;
  background: #e7f6ec;
  color: var(--green-text);
  white-space: nowrap;
}
.dw-rule.fail .dw-rule-verdict { background: #fdf3e4; color: var(--amber-text); }

.dw-calc {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12.5px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  overflow-wrap: anywhere;
}
.dw-calc-eq { color: var(--muted-light); }
.dw-calc b { font-weight: 550; }
.dw-calc-vs { font-size: 11px; color: var(--muted); margin-top: 6px; overflow-wrap: anywhere; }
.dw-calc-vs b { font-weight: 550; color: var(--foreground); }
.dw-calc-vs b.bad { color: var(--amber); }
.dw-rule-text { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin-top: 8px; }

/* Ergebnis */
.dw-result {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: var(--radius);
  padding: 16px 18px;
  border: 1px solid var(--border);
}
.dw-result.ok { background: #f1faf4; border-color: #cceada; }
.dw-result.wait { background: #fdf8f0; border-color: #f2ddbd; }
.dw-result-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.dw-result-head strong { font-size: 14.5px; font-weight: 550; letter-spacing: -0.015em; }
.dw-result p { font-size: 12.5px; color: var(--muted); line-height: 1.55; max-width: 82ch; }

button.text-link {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}

/* ============ Footer ============ */

.site-footer { padding: 20px 0; border-top: 1px solid var(--border); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted-light);
}

.footer-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; }
.footer-links a { color: var(--foreground); }
.footer-links a:hover { text-decoration: underline; }
.footer-social { display: flex; gap: 12px; color: var(--muted-light); }
.footer-social a:hover { color: var(--foreground); }

/* ============ Animationssystem ============ */

.load-up {
  opacity: 0;
  transform: translateY(8px);
  animation: load-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms) forwards;
}
.load-up.deep { transform: translateY(24px); }
@keyframes load-up { to { opacity: 1; transform: none; } }

/* Der unsichtbare Ausgangszustand hängt an der .js-Klasse, die ein Inline-Skript
   im Kopf jeder Seite setzt. Nur JavaScript kann ihn wieder auflösen - bleibt es
   aus, blockiert oder scheitert, wären die Inhalte sonst dauerhaft weg. Ohne
   .js-Klasse ist alles von Anfang an sichtbar, mit ihr laufen die Animationen. */
.js .reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease var(--d, 0ms),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms);
}
.js .reveal.deep { transform: translateY(20px); }
.js .reveal.visible { opacity: 1; transform: none; }

.js .bench-table .bench-row {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.bench-table.visible .bench-row { opacity: 1; transform: none; }
.bench-table.visible .bench-row:nth-child(2) { transition-delay: 90ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Mit .js skopiert, sonst gewinnt der Ausgangszustand über die Spezifität. */
  .js .reveal, .load-up, .js .bench-table .bench-row {
    opacity: 1; transform: none; transition: none; animation: none;
  }
  .bar { transition: none; }
  .status-dot.pulse, .pill-dot, .flow-node, .flow-link, .flow-dot,
  .marquee-track, .v-scanline, .v-sync-lane i, .sec-server-led,
  .infra-card.active, .work-days .d.cur { animation: none; }
  .v-chip, .v-mail-row { opacity: 1; transform: none; animation: none; }
  .v-bars i { transform: none; }
  .v-approve-done { opacity: 1; animation: none; }
  .pulse-path { stroke-dashoffset: 0; animation: none !important; }
  .steps-line { transform: none; }
  .dw-scan { display: none; }
  .dw-step, .dw-shot, .dw-fields, .dw-checks, .dw-result, .dw-start, .dw-vorschlag { transition: none; }
}

/* ============ Responsive ============ */

@media (max-width: 1024px) {
  .hb-sidebar { display: none; }
  .hero-browser { grid-template-columns: 1fr; }
  .pw-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; margin-bottom: 72px; }
  .cap-card { width: calc((100% - 24px) / 2); }
  .priv-grid { grid-template-columns: repeat(2, 1fr); }
  .pw-banner { grid-template-columns: 1fr; }
  .intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .steps-line { display: none; }
  .stat-row { grid-template-columns: 1fr; }
  .overview-grid, .teaser-steps { grid-template-columns: repeat(2, 1fr); }
  .cta-card { grid-template-columns: 1fr; }
  .cta-side { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.08); }
  .cta-copy, .cta-card-formular .cta-copy, .cta-card-formular .cta-side { padding: 40px 32px; }
  .demo-facts { grid-template-columns: 1fr; }
  .demo-picker { grid-template-columns: repeat(3, 1fr); }
  .dw-flow { grid-template-columns: repeat(2, 1fr); }
  .dw-grid { grid-template-columns: 1fr; }
  .dw-shot-frame img { max-height: 380px; }
  .dw-rules { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .header-inner { padding: 0 24px; }
  .section { padding: 64px 0; }
  .panel { padding: 64px 20px; }
  .container { padding: 0 20px; }
  .cap-card { width: 100%; max-width: 420px; }
  .kontakt-form { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 10px; }
  .flow-link { display: none; }
  .hb-panels { grid-template-columns: 1fr; }
  .bench-row { grid-template-columns: 110px 1fr 76px; gap: 10px; padding: 11px 6px; }
  /* Drei Spalten sind hier zu eng: Schritt und Zeit bleiben in einer Zeile,
     die Erklärung rutscht darunter. Die Kopfzeile ergibt dann keinen Sinn. */
  .calc-row { grid-template-columns: 1fr auto; gap: 4px 14px; padding: 14px 16px; }
  .calc-head { display: none; }
  .calc-mech { grid-column: 1 / -1; margin-top: 2px; }
  .calc-row-sum .calc-after { grid-column: 1 / -1; text-align: right; }
  .br-desktop { display: none; }
  .tech-strip { flex-direction: column; gap: 10px; }
  .demo-facts-section { padding: 48px 0 8px; }
  .demo-picker { grid-template-columns: repeat(2, 1fr); }
  .dw-flow { grid-template-columns: 1fr; }
  .dw-canvas { padding: 20px 14px 24px; }
  .dw-top { padding: 10px 12px; gap: 10px; }
  .dw-title { font-size: 11px; }
  .dw-replay { font-size: 10.5px; padding: 4px 9px; }

  /* Erklärender Fließtext wird mobil größer. Nur echte Prosa, nicht Labels,
     Tabellenzellen oder Beschriftungen unter Kennzahlen: die bleiben klein,
     sonst kippt die Hierarchie. */
  .cap-card figcaption,
  .pw-card figcaption,
  .priv-card figcaption,
  .calc-mech,
  .step-card p,
  .steps-note,
  .overview-card p,
  .teaser-step p,
  .demo-fact p { font-size: 15px; }
}

@media (max-width: 480px) {
  .priv-grid { grid-template-columns: 1fr; }
  .hero-sky { padding-top: calc(var(--header-h) + 32px); }
  .overview-grid, .teaser-steps { grid-template-columns: 1fr; }
  .demo-picker { grid-template-columns: 1fr; }
  .demo-window { border-radius: var(--radius-lg); }
  .dw-field-list { padding: 4px 11px; gap: 0 10px; }
  .dw-field-list dt { font-size: 11.5px; }
  .dw-field-list dd { font-size: 12px; }
}

/* ============ Demo: E-Mail-Triage ============ */

/* Ohne min-width:0 weitet ein langer Betreff die Karte statt zu ellipsieren -
   Grid-Items schrumpfen sonst nicht unter ihre Inhaltsbreite. overflow:hidden
   nimmt zusätzlich das automatische Grössenminimum raus (Gürtel und Hosenträger,
   je nach Engine greift das eine oder das andere zuerst). */
.demo-picker > .demo-card { min-width: 0; overflow: hidden; }

/* Die Mail-Ansicht ersetzt das Belegbild: gleiche Rolle, gleicher Platz im Raster. */
.dw-mail {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.dw-mail-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: #fbfcfe;
  font-size: 12px;
}
.dw-mail-head dt { color: var(--muted-light); }
.dw-mail-head dd { color: var(--foreground); overflow-wrap: anywhere; }
.dw-mail-head dd.dw-mail-betreff { font-weight: 550; }
.dw-mail-body {
  padding: 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 420px;
  overflow-y: auto;
}

/* Antwortentwurf: sichtbar vorbereitet, sichtbar nicht versendet. */
.dw-draft {
  margin-top: 14px;
  border: 1px dashed #a9c6e8;
  border-radius: var(--radius);
  background: var(--blue-soft);
  padding: 12px 14px;
}
.dw-draft-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.dw-draft-head strong { font-size: 12.5px; font-weight: 550; letter-spacing: -0.01em; }
.dw-draft-badge {
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 550;
  border-radius: 5px;
  padding: 2px 7px;
  background: #fff;
  color: var(--blue);
  white-space: nowrap;
}
.dw-draft-text {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Prioritäts-Pills */
.demo-pill.prio-hoch { background: #fdecec; color: #cb2e32; }
.demo-pill.prio-mittel { background: var(--blue-soft); color: var(--blue); }
.demo-pill.prio-niedrig { background: #eef2f7; color: var(--muted); }

/* ============ Demo: Sync ============ */

/* Die Sync-Demo erzählt einen ganzen Lauf statt eines Einzelfalls: erst das
   Laufprotokoll samt Bilanz, dann die Änderungen, die der Lauf selbst
   geschrieben hat, dann die Prüfliste als Arbeitsvorrat - und zu jedem Fall
   ein Detailfenster mit Gegenüberstellung, Zuordnung, Prüfregeln, Ergebnis.
   Das Detailfenster nutzt die Bausteine der Belegverarbeitungs-Demo weiter
   (.demo-window, .dw-flow, .dw-rule, .dw-result), alles Übrige steht hier. */

.dw-result .dw-panel-title { margin: 14px 0 10px; }

/* ---- Der Lauf: Protokoll links, Bilanz rechts ---- */

.lauf-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 20px;
  align-items: start;
}
.lauf-grid > * { min-width: 0; }

.lauf-log {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fbfcfe;
  overflow: hidden;
}
/* Die Zeilen erscheinen einzeln, während der Lauf abgespielt wird. */
.lauf-log-zeile {
  display: grid;
  grid-template-columns: 14px 66px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 13px;
  border-bottom: 1px solid #eef2f8;
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.lauf-log-zeile:last-child { border-bottom: none; }
.lauf-log-zeile.da { opacity: 1; transform: none; }
.lauf-log-zeile.aktiv { background: #fff; box-shadow: inset 3px 0 0 var(--blue-bright); }
.ll-id { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted-light); }
.ll-name {
  font-weight: 500;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ll-tat {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ll-tat b { font-weight: 550; color: var(--foreground); }
.lauf-log-zeile.wait .ll-tat b { color: var(--amber-text); }

.lauf-bilanz { display: flex; flex-direction: column; gap: 12px; }
.bilanz-kachel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px 18px;
}
.bilanz-kachel.ok { background: #f1faf4; border-color: #cceada; }
.bilanz-kachel.wait { background: #fdf8f0; border-color: #f2ddbd; }
.bilanz-zahl {
  display: block;
  font-size: 38px;
  line-height: 1.05;
  font-weight: 550;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
}
.bilanz-kachel.ok .bilanz-zahl { color: var(--green-text); }
.bilanz-kachel.wait .bilanz-zahl { color: var(--amber-text); }
.bilanz-titel { font-size: 13px; font-weight: 550; letter-spacing: -0.01em; display: block; }
.bilanz-note { font-size: 11.5px; color: var(--muted); line-height: 1.45; margin-top: 4px; }

/* ---- Was der Lauf selbst geschrieben hat ---- */

.schreib-tabelle-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fbfcfe;
}
.schreib-tabelle { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.schreib-tabelle th {
  font-size: 9.5px;
  font-weight: 550;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-light);
  text-align: left;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.schreib-tabelle td {
  padding: 10px 14px;
  border-bottom: 1px solid #eef2f8;
  color: var(--muted);
  vertical-align: middle;
}
.schreib-tabelle tr:last-child td { border-bottom: none; }
.schreib-tabelle .st-ziel { color: var(--foreground); font-weight: 500; white-space: nowrap; }
.schreib-tabelle .st-id { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted-light); display: block; }
.schreib-tabelle .st-wandel { white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-alt { color: var(--muted-light); text-decoration: line-through; text-decoration-thickness: 1px; }
.st-pfeil { color: var(--muted-light); margin: 0 6px; }
.st-neu { color: var(--green-text); font-weight: 550; }

/* ---- Prüfliste als Arbeitsvorrat ---- */

.pl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pl-grid > * { min-width: 0; }
.pl-karte {
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #f2ddbd;
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  background: #fffdfa;
  padding: 16px 18px;
  transition: box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.pl-karte:hover { box-shadow: var(--shadow-soft); transform: translateY(-1px); background: #fff; }
.pl-karte.active { box-shadow: 0 0 0 1px var(--amber); background: #fff; }
.pl-kopf { display: flex; align-items: center; gap: 10px; }
.pl-kopf .mono { font-size: 10.5px; color: var(--muted-light); }
.pl-regel {
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 550;
  border-radius: 5px;
  padding: 2px 7px;
  background: #fdf3e4;
  color: var(--amber-text);
  white-space: nowrap;
}
.pl-name { font-size: 14px; font-weight: 550; letter-spacing: -0.015em; line-height: 1.3; }

/* Der Gegensatz in einer Zeile - das, worum es fachlich geht. */
.pl-gegensatz {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}
.pl-seite { min-width: 0; }
.pl-seite-name {
  display: block;
  font-size: 9.5px;
  font-weight: 550;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-light);
  margin-bottom: 2px;
}
.pl-seite-wert {
  display: block;
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.pl-vs {
  align-self: center;
  font-size: 13px;
  color: var(--amber);
  font-weight: 550;
}
.pl-feld { font-size: 10.5px; color: var(--muted-light); margin-bottom: 6px; display: block; }
.pl-frage { font-size: 12.5px; font-weight: 550; color: var(--amber-text); letter-spacing: -0.01em; }
/* Die Modellbegründungen sind teils sehr lang. In der Karte reichen drei Zeilen
   zur Einordnung, vollständig steht sie im Detailfenster darunter. */
.pl-grund {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.pl-oeffnen {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: -2px;
}

/* ---- Fall-Detail: Gegenüberstellung statt zwei getrennter Feldlisten ---- */

.diff-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fbfcfe; }
.diff { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.diff th {
  font-size: 9.5px;
  font-weight: 550;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-light);
  text-align: left;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.diff th:nth-child(2), .diff th:nth-child(3) { width: 34%; }
.diff td { padding: 9px 14px; border-bottom: 1px solid #eef2f8; vertical-align: top; }
.diff tr:last-child td { border-bottom: none; }
.diff .d-feld { color: var(--muted); white-space: nowrap; }
.diff .d-wert { font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.diff tr.ungleich { background: #fffaf3; }
.diff tr.ungleich .d-wert { color: var(--amber-text); font-weight: 550; }
.diff tr.ungleich .d-feld { color: var(--amber-text); }
.diff .d-leer { color: var(--muted-light); font-style: italic; font-weight: 400; }
.diff .d-marke {
  display: block;
  font-size: 9.5px;
  font-weight: 550;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--amber-text);
  white-space: nowrap;
  margin-top: 2px;
}

/* Konfidenz gegen den Schwellenwert - warum der Vorschlag reicht oder nicht. */
.konf {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fbfcfe;
  padding: 14px 16px;
}
.konf-kopf { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.konf-kopf strong { font-size: 12.5px; font-weight: 550; letter-spacing: -0.01em; }
.konf-wert { font-size: 20px; font-weight: 550; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.konf-wert.ok { color: var(--green-text); }
.konf-wert.wait { color: var(--amber-text); }
.konf-spur {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: #e8eef7;
  overflow: visible;
}
.konf-fuell {
  height: 100%;
  border-radius: 999px;
  background: var(--green);
  width: 0;
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.konf-fuell.wait { background: var(--amber); }
.konf-schwelle {
  position: absolute;
  top: -5px;
  bottom: -5px;
  width: 2px;
  background: var(--navy);
  border-radius: 2px;
}
.konf-legende {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10.5px;
  color: var(--muted-light);
  margin-top: 8px;
}
.konf-text { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin-top: 10px; }

/* Ergebniszeile: was tatsächlich in welches System geschrieben wurde. */
.erg-schreib {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  border: 1px solid #cceada;
  border-radius: 8px;
  background: #fff;
  padding: 10px 13px;
  margin-top: 10px;
  font-size: 12.5px;
}
.erg-schreib .es-ziel { font-weight: 550; }
.erg-schreib .st-wandel { font-variant-numeric: tabular-nums; }
.erg-nichts { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

@media (max-width: 1024px) {
  .lauf-grid { grid-template-columns: 1fr; }
  .lauf-bilanz { flex-direction: row; }
  .lauf-bilanz > * { flex: 1; }
  .pl-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .lauf-bilanz { flex-direction: column; }
  /* Die Aussage rutscht unter den Namen. Der Umbruch muss mit: nowrap kann eine
     Gitterspalte nicht schrumpfen lassen, die Zeile liefe aus dem Kasten. */
  .lauf-log-zeile { grid-template-columns: 14px 60px minmax(0, 1fr); row-gap: 2px; }
  .ll-tat { grid-column: 3; white-space: normal; }
  .pl-gegensatz { grid-template-columns: 1fr; }
  .pl-vs { justify-self: start; }
  /* Beide Tabellen behalten ihre Form und scrollen in ihrem Container, statt
     sich auf schmalen Geräten zu Buchstabensäulen zu quetschen - dasselbe
     Verhalten wie .dw-pos in der Belegverarbeitungs-Demo. */
  .schreib-tabelle { min-width: 520px; }
  .diff { min-width: 460px; }
}
/* Ein Vergleich, den man nur durch Scrollen sieht, ist keiner: Unterhalb dieser
   Breite passen Feld, Shop-Wert und Warenwirtschaft-Wert nicht mehr lesbar
   nebeneinander. Die Zeile wird deshalb zum Block, die Werte stehen
   untereinander - dieselbe Form, die .pl-gegensatz auf der Prüfliste schon hat.
   Die Spaltenköpfe entfallen; ihre Beschriftung kommt aus data-seite. */
@media (max-width: 560px) {
  .diff { min-width: 0; }
  .diff thead { display: none; }
  .diff tr, .diff td { display: block; }
  .diff tr { padding: 11px 14px; border-bottom: 1px solid #eef2f8; }
  .diff tr:last-child { border-bottom: none; }
  .diff td { padding: 0; border-bottom: none; }
  .diff .d-feld { white-space: normal; margin-bottom: 6px; }
  .diff .d-wert + .d-wert { margin-top: 8px; }
  .diff .d-wert::before {
    content: attr(data-seite);
    display: block;
    font-size: 9.5px;
    font-weight: 550;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-light);
    margin-bottom: 1px;
  }
}

/* Fünf Nav-Einträge: auf mittleren Breiten etwas kompakter, unter 768px greift
   ohnehin das bestehende Ausblenden der Hauptnavigation. */
@media (max-width: 1024px) {
  .main-nav { gap: 2px; }
  .main-nav a { padding: 6px 9px; font-size: 12.5px; white-space: nowrap; }
}
/* Unter 940px passen vier Einträge nicht mehr neben Logo und CTA. Statt die
   Navigation ersatzlos auszublenden - dann führte nur noch der Footer weiter -
   übernimmt ein natives Aufklappmenü: kein JavaScript, von Haus aus mit Tastatur
   bedienbar, und es funktioniert auch, wenn ein Skript scheitert. */
.nav-mobil { display: none; position: relative; }

.nav-mobil > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--foreground);
  cursor: pointer;
}
.nav-mobil > summary::-webkit-details-marker { display: none; }
.nav-mobil > summary:hover { background: var(--panel-bg); }
.nav-mobil[open] > summary { background: var(--panel-bg); }

/* display gehört an [open]: Ein eigenes display überschreibt die Browserregel, die
   den Inhalt eines geschlossenen <details> ausblendet - das Menü stünde sonst offen. */
.nav-mobil-liste {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  display: none;
  flex-direction: column;
  gap: 2px;
  min-width: 212px;
  padding: 8px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
/* :not(.btn) - sonst überschriebe die Linkfarbe hier die der Schaltfläche, und der
   Handlungsaufruf stünde dunkel auf dunkel. */
.nav-mobil-liste a:not(.btn) {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--foreground);
}
.nav-mobil[open] > .nav-mobil-liste { display: flex; }
.nav-mobil-liste a:not(.btn):hover { background: var(--panel-bg); }
.nav-mobil-liste a.active { color: var(--blue); font-weight: 550; }

/* Der Handlungsaufruf liegt im Menü bereit, wird aber erst gebraucht, wenn er
   oben im Kopf keinen Platz mehr hat. */
.nav-mobil-cta { display: none; margin-top: 6px; justify-content: center; }

@media (max-width: 940px) {
  .main-nav { display: none; }
  .nav-mobil { display: block; }
}

@media (max-width: 600px) {
  .header-inner > .btn-dark { display: none; }
  .nav-mobil-cta { display: inline-flex; }
}
