/* Operanta — Marketing-Seite
 *
 * Farben und Abstände stammen aus dem Design-System der Anwendung
 * (frontend/app/globals.css), damit Seite und Produkt zusammengehören.
 *
 * Bewusst OHNE externe Schriftarten oder Skripte: die Seite lädt nichts von
 * fremden Servern. Das ist nicht nur schnell, es hält auch die
 * Datenschutzerklärung kurz — es gibt keine Drittanbieter, über die etwas
 * gesagt werden müsste.
 *
 * Ebenso bewusst ohne "style"-Attribute im HTML: die Content-Security-Policy
 * in staticwebapp.config.json erlaubt nur style-src 'self'. Alles, was
 * gestaltet wird, steht deshalb hier. */

/* Inter, selbst gehostet (48 KB, variabel 100-900). Die Systemschrift war der letzte
 * Baustein, der die Seite nach Betriebssystem-Dialog aussehen liess statt nach Produkt —
 * und eine Schrift vom eigenen Server aendert nichts an der Datenschutz-Aussage:
 * es gibt weiterhin keine fremden Server. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-var.woff2") format("woff2");
}

:root {
  --brand: #26528a;
  --brand-strong: #1d416f;
  --brand-soft: #e8eef6;
  --brand-tint: #f4f7fb;
  --accent: #e8923a;
  --accent-soft: #fdf1e3;
  --review: #4338ca;
  --review-soft: #eceafb;
  --ok: #2e7052;
  --ok-soft: #e3f2ea;
  --warn: #876010;
  --warn-soft: #fef3e2;
  --head-bg: #16304f;

  --bg: #eef1f0;
  --surface: #ffffff;
  --surface-2: #f8faf9;
  --border: #e0e6ea;
  --text: #10151a;
  --text-muted: #59636b;

  --on-dark: #cfdcec;
  --on-dark-dim: #9db2cd;

  --radius: 12px;
  --radius-lg: 16px;
  --measure: 62ch;
  --page: 1140px;

  --shadow-sm: 0 1px 2px rgba(16, 30, 26, 0.04);
  --shadow-card: 0 1px 2px rgba(16, 30, 26, 0.04), 0 10px 28px rgba(16, 30, 26, 0.05);
  --shadow-lift: 0 2px 4px rgba(16, 30, 26, 0.05), 0 18px 40px rgba(16, 30, 26, 0.1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
  font-weight: 660;
}

h1 {
  font-size: clamp(2.05rem, 1.35rem + 2.8vw, 3.35rem);
  letter-spacing: -0.028em;
}

h2 {
  font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.2rem);
  letter-spacing: -0.022em;
}

h3 {
  font-size: 1.2rem;
}

h4 {
  font-size: 1.06rem;
}

p {
  margin: 0 0 1rem;
  max-width: var(--measure);
}

a {
  color: var(--brand);
}

img {
  max-width: 100%;
}

.wrap {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Der Symbolvorrat liegt unsichtbar im Dokument; display:none würde in
   manchen Browsern die <use>-Verweise mit aushebeln. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #23303c;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  z-index: 50;
}

.skip:focus {
  left: 0;
}

:where(a, summary, details):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Piktogramme ───────────────────────────────────────────────── */

.card-icon svg,
.chip-icon,
.mini-icon,
.use-icon,
.notice-icon,
.trail-icon,
.flow-arrow,
.stack-icon,
.step-icon svg,
.qa-src svg,
.actor svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Kopfzeile ─────────────────────────────────────────────────── */

.site-header {
  background: var(--head-bg);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.logo img {
  width: 132px;
  height: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

/* Nur die Sprungmarken bekommen die Unterstreichung beim Überfahren. Ohne das
   :not(.btn) gewinnt diese Regel gegen .btn-ghost und färbt dessen untere
   Kante durchsichtig — die Schaltfläche sieht dann unten abgeschnitten aus. */
.site-nav a:not(.btn) {
  color: #d0dded;
  text-decoration: none;
  font-size: 0.94rem;
  white-space: nowrap;
  padding-block: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a.btn {
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:not(.btn):hover {
  color: #fff;
  border-bottom-color: var(--accent);
}

/* Die Kopfzeile darf die Seite nicht breiter machen als das Fenster: auf
   schmalen Geräten trägt die Schaltfläche deshalb die kurze Beschriftung. */
.nav-cta-short {
  display: none;
}

/* ── Schaltflächen ─────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease,
    box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #23303c;
  box-shadow: 0 6px 18px rgba(232, 146, 58, 0.28);
}

.btn-primary:hover {
  background: #d8842f;
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline {
  border-color: var(--brand);
  color: var(--brand);
  background: transparent;
}

.btn-outline:hover {
  background: var(--brand-soft);
}

/* ── Abschnitte ────────────────────────────────────────────────── */

section {
  padding: clamp(52px, 7vw, 92px) 0;
}

.section-light {
  background: var(--surface);
}

.section-dark {
  background: linear-gradient(168deg, #23486f, #14283f);
  color: #fff;
}

.section-dark h2,
.section-dark h4 {
  color: #fff;
}

.lead {
  font-size: 1.16rem;
  color: var(--text-muted);
  max-width: 60ch;
}

.lead-light {
  color: var(--on-dark);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 12px;
}

.eyebrow-light {
  color: var(--accent);
}

.closer {
  margin-top: 32px;
  font-size: 1.08rem;
  max-width: 58ch;
}

.micro {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-muted);
  margin: 22px 0 10px;
}

/* ── Aufmacher ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  background: linear-gradient(162deg, #2b5990 0%, #1d416f 46%, #14283f 100%);
  color: #fff;
  padding-block: clamp(52px, 7vw, 96px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.7;
}

.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -140px;
  top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 146, 58, 0.24), transparent 68%);
  pointer-events: none;
}

.hero > .wrap {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}

.hero h1 {
  max-width: 17ch;
}

.hero-lead {
  color: var(--on-dark);
  font-size: 1.14rem;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* ── Marken-Plaketten ──────────────────────────────────────────── */

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 28px 0 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 14px 6px 11px;
}

.chip-icon {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--accent);
}

.chips-plain {
  margin-top: 0;
}

.chips-plain .chip {
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-color: #d5e0ee;
}

.chip-sm {
  font-size: 0.82rem;
  padding: 4px 12px;
}

/* ── App-Fenster im Aufmacher ──────────────────────────────────
   Nachgebaute Oberfläche der Anwendung: marineblaue Seitenleiste mit
   Projekt-Schritten, heller Editor mit weißen Bausteinen. Nur HTML, CSS
   und eingebettetes SVG — kein Screenshot, keine echten Daten. */

.app {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 64px rgba(4, 14, 26, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--bg);
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0 16px;
  background: var(--head-bg);
  color: #d0dded;
  font-size: 0.82rem;
}

.app-crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
}

.app-crumb i {
  font-style: normal;
  color: #7a92b0;
}

.app-crumb strong {
  color: #fff;
  font-weight: 600;
}

.app-top-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.app-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: #8fd3b0;
  background: rgba(111, 184, 148, 0.14);
  border: 1px solid rgba(111, 184, 148, 0.3);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.app-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #23303c;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-body {
  display: flex;
  align-items: stretch;
}

.app-side {
  flex: 0 0 172px;
  background: linear-gradient(168deg, #264e7f, #16304f);
  padding: 16px 10px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-logo {
  width: 96px;
  height: auto;
  margin: 2px 8px 14px;
}

.app-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.62);
}

.app-nav-item svg {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-nav-item.is-active {
  background: rgba(255, 255, 255, 0.17);
  color: #fff;
  font-weight: 600;
}

.app-proj {
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.app-proj-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fa8c6;
  padding: 0 10px 8px;
}

.app-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.82);
}

.app-step em {
  font-style: normal;
  margin-left: auto;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

.app-step.is-current {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.app-step .st {
  width: 12px;
  height: 12px;
  flex: none;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.st-ok { stroke: #7ad0a8; }
.st-warn { stroke: #e0b459; }
.st-dim { stroke: rgba(255, 255, 255, 0.4); }

.app-canvas {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  height: auto;
  background: var(--bg);
}

.app-canvas text {
  font-family: inherit;
}

.wf-card {
  fill: #ffffff;
  stroke: var(--border);
  stroke-width: 1.4;
}

.wf-active .wf-card {
  stroke: var(--accent);
  stroke-width: 2;
}

.wf-review .wf-card {
  stroke: #b9b3fa;
  stroke-width: 1.6;
}

.wf-done .wf-card {
  fill: #fcfdfe;
}

.wf-tile {
  fill: var(--brand-soft);
}

.tile-accent { fill: var(--accent-soft); }
.tile-review { fill: var(--review-soft); }

.wf-icon {
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-accent { stroke: #b5701f; }
.icon-review { stroke: var(--review); }

.wf-name {
  fill: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-anchor: middle;
}

.wf-actor {
  fill: var(--text-muted);
  font-size: 10px;
  text-anchor: middle;
}

.wf-chip { stroke: none; }
.chip-ok { fill: var(--ok-soft); }
.chip-warn { fill: var(--warn-soft); }
.chip-dim { fill: #e7ecef; }
.chip-review { fill: var(--review-soft); }

.wf-chip-text {
  font-size: 9.5px;
  font-weight: 700;
  text-anchor: middle;
}

.chip-ok-t { fill: var(--ok); }
.chip-warn-t { fill: var(--warn); }
.chip-dim-t { fill: #5c6771; }
.chip-review-t { fill: var(--review); }

.app-note {
  padding: 10px 16px 12px;
  background: var(--head-bg);
  color: #8fa8c6;
  font-size: 0.78rem;
}

/* ── Kernaussagen ──────────────────────────────────────────────── */

.facts {
  background: var(--head-bg);
  padding-block: 0;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border-inline: 1px solid rgba(255, 255, 255, 0.12);
  padding-inline: 0;
}

.fact {
  background: var(--head-bg);
  padding: 26px 26px 28px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.fact-num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
  flex: none;
}

.fact-text {
  color: var(--on-dark);
  font-size: 0.94rem;
  line-height: 1.45;
}

/* ── Gegenüberstellung ─────────────────────────────────────────── */

.compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 38px;
}

.compare-side {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  background: var(--surface);
}

.compare-before {
  background: var(--surface-2);
}

.compare-after {
  border-color: #cfdcec;
  box-shadow: var(--shadow-card);
}

.compare-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  margin-bottom: 18px;
}

.tag {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 10px;
}

.tag-warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.tag-ok {
  background: var(--ok-soft);
  color: var(--ok);
}

/* Der „Heute"-Kasten stapelt die Dateien versetzt und leicht gedreht — der
   Eindruck von Unordnung entsteht im Fluss, nicht über feste Koordinaten.
   So kann bei keiner Fensterbreite etwas aus dem Kasten laufen. */
.scatter {
  height: 206px;
  border: 1px dashed #cfd7dd;
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  overflow: hidden;
}

.file {
  max-width: 100%;
  font-size: 0.8rem;
  padding: 7px 12px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-muted);
}

.file::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: baseline;
}

.file-x::before { background: #4a8f68; }
.file-w::before { background: #3f6fae; }
.file-m::before { background: #b2833a; }

.file:nth-child(1) { margin-left: 2px; transform: rotate(-1.8deg); }
.file:nth-child(2) { margin-left: 46px; transform: rotate(1.4deg); }
.file:nth-child(3) { margin-left: 16px; transform: rotate(-0.9deg); }
.file:nth-child(4) { margin-left: 62px; transform: rotate(2deg); }
.file:nth-child(5) { margin-left: 24px; transform: rotate(-2.4deg); }

.stackview {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  height: 206px;
  display: grid;
  grid-template-rows: repeat(5, 1fr);
}

.stack-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  font-size: 0.87rem;
  border-bottom: 1px solid var(--surface-2);
}

.stack-row:last-child {
  border-bottom: 0;
}

.stack-icon {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--brand);
}

.stack-ver {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--ok);
  background: var(--ok-soft);
  border-radius: 999px;
  padding: 2px 10px;
  font-weight: 600;
}

/* ── Aufzählung mit Haken ──────────────────────────────────────── */

.checks {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 11px;
  max-width: var(--measure);
}

.checks li {
  padding-left: 30px;
  position: relative;
  color: var(--text-muted);
  font-size: 0.97rem;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 15px;
  height: 8px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

.checks-warn li::before {
  top: 0.62em;
  width: 13px;
  height: 0;
  border-left: 0;
  border-bottom: 2px solid #c08a3a;
  transform: none;
}

/* ── Karten ────────────────────────────────────────────────────── */

.group-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 44px;
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}

.group-head-2 {
  margin-top: 46px;
}

.group-dot {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  flex: none;
}

.group-dot-brand { background: var(--brand); }
.group-dot-plain { background: #b7c2cb; }

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  margin-top: 22px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
}

.grid-tight {
  margin-top: 30px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.section-light .card {
  background: var(--surface-2);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: #cfdcec;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.card-top h3,
.card-top h4 {
  margin: 0;
}

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.card-icon svg {
  width: 21px;
  height: 21px;
}

.card-icon-plain {
  background: #eef2f5;
  color: #52616e;
}

.card-icon-review {
  background: var(--review-soft);
  color: var(--review);
}

.card-icon-ai {
  background: var(--accent-soft);
  color: #b5701f;
}

.card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 0;
}

.card-brand {
  border-top: 3px solid var(--brand);
}

.card-review {
  border-top: 3px solid var(--review);
}

.card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-muted);
}

.actor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef2f5;
  border-radius: 999px;
  padding: 3px 11px 3px 8px;
  font-size: 0.8rem;
  color: #4a5560;
}

.actor svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.actor-sys {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.actor-ai {
  background: var(--accent-soft);
  color: #a8681c;
}

/* ── Panels und Hinweise ───────────────────────────────────────── */

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.section-light .panel {
  background: var(--surface-2);
}

.panel h3 {
  margin-bottom: 10px;
}

.panel p:last-child {
  margin-bottom: 0;
}

.panel-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 34px;
  margin-top: 34px;
}

.panel-tint {
  background: linear-gradient(160deg, #fdf6ee, #fbf9f6);
  border-color: #f0dfc9;
}

.notice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--brand-soft);
  border: 1px solid #d5e0ee;
}

.notice p {
  margin: 0;
  color: var(--brand-strong);
  font-size: 0.97rem;
  max-width: 78ch;
}

.notice-icon {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--brand);
  margin-top: 3px;
  stroke-width: 2.2;
}

/* ── Zusammenarbeit ────────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 36px;
  align-items: start;
}

.split .panel {
  height: 100%;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
}

.flow-step {
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 6px 13px;
  background: #eef2f5;
  color: #4a5560;
}

.flow-step-warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.flow-step-ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.flow-arrow {
  width: 18px;
  height: 18px;
  color: #a9b5be;
  flex: none;
}

.qa-demo {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  max-width: none;
}

.qa-q,
.qa-a {
  border-radius: 12px;
  padding: 11px 15px;
  font-size: 0.92rem;
}

.qa-q {
  background: #fff;
  border: 1px solid #ecdcc6;
  color: var(--text);
  font-weight: 600;
  border-bottom-right-radius: 3px;
  justify-self: end;
}

.qa-a {
  background: #fff8ef;
  border: 1px solid #f0dfc9;
  color: var(--text-muted);
  border-bottom-left-radius: 3px;
}

.qa-src {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: #a8681c;
  font-weight: 600;
}

.qa-src svg {
  width: 14px;
  height: 14px;
  flex: none;
}

/* ── Ablauf in Schritten ───────────────────────────────────────── */

.steps {
  counter-reset: step;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  margin-top: 38px;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  counter-increment: step;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.steps li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.steps li::after {
  content: "Schritt " counter(step);
  position: absolute;
  top: 24px;
  right: 22px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #93a3b1;
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  margin-bottom: 16px;
}

.step-icon svg {
  width: 22px;
  height: 22px;
}

.steps strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.06rem;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Bericht ───────────────────────────────────────────────────── */

.figure {
  margin: 38px 0 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3vw, 32px);
  box-shadow: var(--shadow-card);
}

.figure figcaption {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 74ch;
}

.report-svg {
  display: block;
  width: 100%;
  height: auto;
}

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

.page rect:first-child {
  fill: #fbfcfd;
  stroke: var(--border);
  stroke-width: 1.4;
}

.page-done rect:first-child {
  fill: #ffffff;
  stroke: #cfdcec;
  stroke-width: 1.6;
}

.page-label {
  fill: #6b7681;
  font-size: 12.5px;
  font-weight: 600;
}

.page .rule {
  fill: #e4e9ee;
}

.page .ph {
  fill: var(--accent-soft);
  stroke: #eabc84;
  stroke-width: 1.2;
  stroke-dasharray: 4 3;
}

.ph-text {
  fill: #a8681c;
  font-size: 11.5px;
  font-weight: 600;
}

.pipe path {
  stroke: #c4ceda;
}

.pipe rect {
  fill: var(--brand);
}

.pipe-text {
  fill: #fff;
  font-size: 13px;
  font-weight: 600;
  text-anchor: middle;
}

.mini-table rect:first-child {
  fill: #fff;
  stroke: #d7dfe7;
  stroke-width: 1.2;
}

.mini-table .th {
  fill: var(--brand);
}

.mini-table path {
  stroke: #e2e8ee;
  stroke-width: 1;
  fill: none;
}

.mini-chart rect:first-child {
  fill: #fbfcfd;
  stroke: #e2e8ee;
  stroke-width: 1.2;
}

.mini-chart .bar {
  fill: #7ea6d8;
}

.mini-chart .bar-accent {
  fill: var(--accent);
}

.mini-chart path {
  stroke: #cdd6de;
  stroke-width: 1.2;
}

.score {
  fill: var(--brand-strong);
  font-size: 14px;
  font-weight: 700;
}

.seal circle {
  fill: var(--ok-soft);
  stroke: #a9d3bd;
  stroke-width: 1.4;
}

.seal-check {
  fill: none;
  stroke: var(--ok);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.mini h4 {
  margin: 12px 0 6px;
}

.mini p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.mini-icon {
  width: 24px;
  height: 24px;
  color: var(--brand);
}

/* ── Nachgebaute Produktansichten (Scoring, Projektliste) ──────
   Panels mit Kopfleiste und Tabelle, gestaltet wie die Listen der
   Anwendung: schmale Großbuchstaben-Spaltentitel, Stufen-Chips,
   Quellen-Chips. Erfundene Werte, echte Anmutung. */

.mock {
  margin: 38px 0 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.section-light .mock {
  background: var(--surface-2);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.mock-tile {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.mock-tile svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mock-title {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-weight: 600;
  font-size: 0.97rem;
  min-width: 0;
}

.mock-title em {
  font-style: normal;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.mock-total {
  margin-left: auto;
  flex: none;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 6px 16px;
}

.mock-scroll {
  overflow-x: auto;
}

.mock-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--surface);
}

.mock-table th {
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  background: var(--surface-2);
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

/* Projektlisten tragen in der Anwendung eine marineblaue Kopfzeile
   (Design-Token --table-header-bg); die Nachbildung übernimmt das. */
.mock-table-dark-head th {
  background: #1c3c63;
  color: #ffffff;
  border-bottom: 0;
}

.mock-table td {
  padding: 11px 18px;
  border-top: 1px solid var(--border);
  vertical-align: middle;
  white-space: nowrap;
}

.mock-table tbody tr:first-child td {
  border-top: 0;
}

.mock-table tbody tr:hover td {
  background: #f2f6fc;
}

.row-group td {
  font-weight: 600;
  background: var(--surface-2);
}

.row-group:hover td {
  background: var(--surface-2);
}

.row-leaf td:first-child {
  padding-left: 40px;
  color: var(--text-muted);
}

.row-current td:first-child {
  box-shadow: inset 3px 0 0 var(--brand);
}

.lvl {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.lvl-ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.lvl-warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.src {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #eef2f5;
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #4a5560;
  white-space: nowrap;
}

.src svg {
  width: 13px;
  height: 13px;
  flex: none;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cell-score {
  font-weight: 700;
  color: var(--brand-strong);
  font-variant-numeric: tabular-nums;
}

.cell-delta {
  font-weight: 700;
  color: var(--ok);
  font-variant-numeric: tabular-nums;
}

.mock-foot {
  padding: 13px 20px;
  font-size: 0.84rem;
  color: var(--text-muted);
  background: var(--surface);
  border-top: 1px solid var(--border);
  max-width: none;
}

.section-light .figure,
.section-light .mini {
  background: var(--surface-2);
}

/* ── Nachweis ──────────────────────────────────────────────────── */

.card-dark {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}

.card-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 18px 40px rgba(4, 14, 26, 0.35);
}

.card-dark p {
  color: var(--on-dark);
}

.pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(232, 146, 58, 0.18);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.trail-panel {
  margin-top: 28px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 24px clamp(18px, 3vw, 28px);
}

.trail-head-2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  max-width: none;
}

.trail-icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.log li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding: 11px 16px;
  background: rgba(11, 27, 46, 0.72);
  font-size: 0.9rem;
  color: var(--on-dark);
}

.log-time {
  color: var(--on-dark-dim);
  font-variant-numeric: tabular-nums;
  min-width: 108px;
}

.log-who {
  color: #fff;
  font-weight: 600;
  min-width: 96px;
}

/* ── Einsatzfelder ─────────────────────────────────────────────── */

.use {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  border-left: 3px solid var(--brand);
}

.use h4 {
  margin: 14px 0 8px;
}

.use p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.use-icon {
  width: 26px;
  height: 26px;
  color: var(--brand);
}

/* ── Häufige Fragen ────────────────────────────────────────────── */

.faq {
  margin-top: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  max-width: 900px;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq details:last-child {
  border-bottom: 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 54px 18px 22px;
  font-weight: 600;
  position: relative;
  transition: background-color 0.15s ease;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  background: #fff;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 26px;
  top: 26px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  top: 30px;
}

/* Der weiße Hintergrund liegt auf dem geöffneten Element, nicht auf dem
   Absatz: der ist auf Lesebreite begrenzt, und sein Hintergrund würde
   rechts vor der Kante enden — ein grauer Block neben dem Text. */
.faq details[open] {
  background: #fff;
}

.faq p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--text-muted);
  font-size: 0.97rem;
  max-width: 76ch;
}

/* ── Abschluss-Aufruf ──────────────────────────────────────────── */

.cta {
  background: linear-gradient(120deg, var(--brand-soft), #f4f0e8);
  border-top: 1px solid var(--border);
}

.cta .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta h2 {
  margin-bottom: 6px;
}

.cta p {
  margin: 0;
  color: var(--text-muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ── Fußzeile ──────────────────────────────────────────────────── */

.site-footer {
  background: var(--head-bg);
  color: var(--on-dark-dim);
  padding: 46px 0 34px;
  font-size: 0.92rem;
}

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

.footer-brand img {
  width: 34px;
  height: 34px;
  display: block;
  margin-bottom: 12px;
}

.footer-brand p {
  margin: 0;
  max-width: 34ch;
}

.footer-nav,
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.site-footer a {
  color: #d0dded;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ── Rechtstexte ───────────────────────────────────────────────── */

.legal {
  background: var(--surface);
  min-height: 60vh;
  padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 80px);
}

.legal h2 {
  margin-top: 2em;
  font-size: 1.3rem;
}

.legal p,
.legal li {
  color: var(--text-muted);
}

.legal ul {
  max-width: var(--measure);
}

.legal .btn {
  margin-top: 8px;
}

/* ── Schmalere Fenster ─────────────────────────────────────────── */

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

  .hero h1 {
    max-width: 20ch;
  }

  .hero-visual {
    max-width: 660px;
  }

  .split {
    grid-template-columns: 1fr;
  }
}

/* Ab hier passt die vollständige Navigation nicht mehr neben das Logo: die
   drei nachrangigen Sprungmarken entfallen, die Schaltfläche wird kürzer. */
@media (max-width: 1000px) {
  .nav-secondary {
    display: none;
  }

  .nav-cta-long {
    display: none;
  }

  .nav-cta-short {
    display: inline;
  }

  .site-nav {
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .site-nav {
    gap: 16px;
  }

  .site-nav a:not(.btn) {
    font-size: 0.88rem;
  }

  .site-footer .wrap {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16.5px;
  }

  .site-nav a:not(.btn) {
    display: none;
  }

  .site-header .wrap {
    gap: 12px;
    min-height: 60px;
  }

  .logo img {
    width: 112px;
  }

  .nav-cta-long {
    display: none;
  }

  .nav-cta-short {
    display: inline;
  }

  .btn {
    padding: 11px 18px;
  }

  .fact {
    padding: 20px 22px;
  }

  .compare-side,
  .panel {
    padding: 22px;
  }

  .scatter,
  .stackview {
    height: auto;
    min-height: 206px;
  }

  /* Im schmalen Fenster bleibt vom App-Fenster der Editor: die Seitenleiste
     würde die Bausteine auf Briefmarkengröße drücken. */
  .app-side {
    display: none;
  }

  .file {
    margin-left: 0;
    transform: none;
  }

  .log li {
    gap: 2px 16px;
  }
}

/* ── Rücksicht auf Systemeinstellungen ─────────────────────────── */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .card:hover,
  .steps li:hover,
  .btn-primary:hover {
    transform: none;
  }
}

@media print {
  .site-header,
  .hero-actions,
  .cta-actions,
  .skip {
    display: none;
  }

  body {
    background: #fff;
    font-size: 11pt;
  }

  .hero,
  .section-dark,
  .facts {
    background: #fff !important;
    color: #000;
  }

  .faq details {
    break-inside: avoid;
  }
}
