/* BAI Sol – Tokens: Tinte, Papier, Petrol; Textmarker nur für „zu klären" */
:root {
  --ink: #15324b;
  --ink-soft: #2b4a66;
  --muted: #4b5b69;
  --paper: #ffffff;
  --sheet: #f1f4f3;
  --rule: #cfd8dc;
  --petrol: #0e6b70;
  --petrol-dark: #0a5357;
  --petrol-tint: #e3f0ef;
  --marker: #ffe766;
  --act: #8a3b12;
  --act-tint: #fbeee6;
  --on-accent: #ffffff;
  --on-marker: #15324b;
  --band: #15324b;
  --band-text: #f3f6f8;
  --band-muted: #c4d0da;
  --band-accent: #9fd6d3;
  --band-line: #5d7a93;
  --shadow: 21, 50, 75;

  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
  --step-4: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space-band: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --wrap: 72rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light dark;
}

/* Dunkle Darstellung: gleiche Rollen, Kontraste nachgerechnet (Text mind. 6:1) */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eef2;
    --ink-soft: #cdd8e0;
    --muted: #a9b8c4;
    --paper: #0f1e2b;
    --sheet: #162a3a;
    --rule: #2c4356;
    --petrol: #5cc3c4;
    --petrol-dark: #8ad6d6;
    --petrol-tint: #173b40;
    --act: #f0a479;
    --act-tint: #3a2418;
    --on-accent: #0f1e2b;
    --band: #0a1620;
    --shadow: 0, 0, 0;
  }
  .draft::after { mix-blend-mode: normal; }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--sans);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--petrol); text-underline-offset: 0.18em; }
a:hover { color: var(--petrol-dark); }
:focus-visible { outline: 3px solid var(--petrol); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: 0.5rem 1rem; z-index: 10; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--petrol);
  color: var(--on-accent);
  font: 600 var(--step-0)/1.2 var(--sans);
  padding: 0.85rem 1.4rem;
  border: 0;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms var(--ease);
}
@media (hover: hover) { .btn:hover { background: var(--petrol-dark); color: var(--on-accent); } }
.btn:active { transform: translateY(1px); }
.btn-small { font-size: var(--step--1); padding: 0.55rem 0.9rem; }

/* Hero */
.hero { padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) 0 clamp(3rem, 2rem + 4vw, 5.5rem); background: linear-gradient(var(--paper) 0 62%, var(--sheet) 62% 100%); }
.hero-plain { background: var(--paper); }
.hero-plain h1 { max-width: 22ch; }
.hero-grid { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: 5fr 7fr; } }
.hero h1 { font-size: var(--step-4); letter-spacing: -0.01em; max-width: 16ch; }
.nowrap { white-space: nowrap; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); margin-top: 1.5rem; max-width: 36rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 2rem; }
.link { font-weight: 600; }
.status { margin-top: 2rem; padding-left: 0.9rem; border-left: 3px solid var(--petrol); color: var(--muted); font-size: var(--step--1); max-width: 30rem; }

/* Aktenblatt-Demo: das eine laute Element der Seite */
.sheet {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  box-shadow: 0 1px 0 var(--rule), 0 18px 40px -18px rgba(var(--shadow), 0.35);
  padding: clamp(1.1rem, 2.5vw, 1.75rem);
  padding-left: clamp(1.5rem, 3.5vw, 2.5rem);
  position: relative;
  font-size: 0.95rem;
}
/* Heftrand wie im Ordner */
.sheet::before {
  content: "";
  position: absolute; top: 1.25rem; bottom: 1.25rem; left: 0.75rem;
  width: 2px;
  background: repeating-linear-gradient(var(--rule) 0 6px, transparent 6px 14px);
}
.sheet-kind { color: var(--petrol); font-weight: 600; font-size: var(--step--1); }
.sheet-head h3 { font-size: var(--step-1); margin-top: 0.35rem; }
.sheet-meta { color: var(--muted); font-size: var(--step--1); margin-top: 0.4rem; }

.matrix { width: 100%; border-collapse: collapse; margin-top: 1.1rem; font-size: 0.9rem; }
.matrix th, .matrix td { text-align: left; vertical-align: top; padding: 0.6rem 0.5rem 0.6rem 0; border-top: 1px solid var(--rule); }
.matrix thead th { font-weight: 600; color: var(--muted); font-size: var(--step--1); border-top: 0; padding-bottom: 0.35rem; }
.matrix tbody th { font-weight: 600; width: 32%; }
.matrix td:nth-child(2) { width: 9.5rem; white-space: nowrap; }

.tag { display: inline-block; font-size: var(--step--1); font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 2px; }
.tag-act { background: var(--act-tint); color: var(--act); }
.tag-info { background: var(--petrol-tint); color: var(--petrol-dark); }
mark {
  color: var(--on-marker);
  background: linear-gradient(100deg, transparent 0.15em, var(--marker) 0.25em, var(--marker) calc(100% - 0.3em), transparent calc(100% - 0.1em));
  padding: 0.05em 0.15em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.tag-open { color: var(--on-marker); }

.draft { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--ink); }
.draft h4 { font-size: var(--step-0); }
.draft blockquote { margin: 0.6rem 0 0; font-family: var(--serif); font-size: 1.02rem; line-height: 1.55; }
.facts { display: flex; flex-wrap: wrap; gap: 0.4rem 1.75rem; margin: 0.8rem 0 0; font-size: var(--step--1); }
.facts div { display: flex; gap: 0.4rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }

.sheet-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem 1rem; margin-top: 1.25rem; padding: 0.9rem 1rem; background: var(--sheet); border-radius: 2px; }
.release-status { font-size: var(--step--1); color: var(--muted); max-width: 22rem; }
.btn-release { font-size: 0.95rem; padding: 0.75rem 1.1rem; min-height: 2.75rem; }
.sheet-note { margin-top: 0.8rem; font-size: var(--step--1); color: var(--muted); }

/* Freigegeben: Stempel landet auf dem Entwurf, Status wechselt */
.draft { position: relative; }
.draft::after {
  content: "Freigegeben";
  position: absolute; right: 0.25rem; bottom: 0.1rem;
  font: 700 1.05rem/1 var(--serif);
  color: var(--petrol);
  border: 2px solid var(--petrol);
  border-radius: 3px;
  padding: 0.35rem 0.6rem;
  mix-blend-mode: multiply;
  transform: rotate(-7deg) scale(1.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--ease), transform 240ms var(--ease);
}
.demo[data-state="frei"] .draft::after { opacity: 0.9; transform: rotate(-7deg) scale(1); }
.demo[data-state="frei"] .release-status { color: var(--petrol-dark); font-weight: 600; }
.demo[data-state="frei"] .sheet-foot { background: var(--petrol-tint); }
.btn-release[data-variant="ghost"] { background: transparent; color: var(--petrol); box-shadow: inset 0 0 0 2px var(--petrol); }
.btn-release[data-variant="ghost"]:hover { background: var(--paper); color: var(--petrol-dark); }
@media (prefers-reduced-motion: reduce) { .draft::after { transition: none; } }

/* Bänder: Überschrift in der Randspalte wie eine Aktennotiz */
.band { padding: var(--space-band) 0; }
.band-sheet { background: var(--sheet); }
.band-ink { background: var(--band); color: var(--band-text); }
.band-ink a { color: var(--band-accent); }
.split { display: grid; gap: 1.5rem clamp(2rem, 5vw, 5rem); }
@media (min-width: 52rem) { .split { grid-template-columns: minmax(14rem, 4fr) 8fr; } }
.split > h2 { font-size: var(--step-3); max-width: 16ch; }
@media (min-width: 52rem) { .split > h2 { position: sticky; top: 2rem; align-self: start; } }
.split > div { max-width: 44rem; }
.lead-sm { font-size: var(--step-1); line-height: 1.55; }
.after { margin-top: 1.75rem; color: var(--muted); }
.subhead { font-size: var(--step-1); margin: 2.25rem 0 1rem; }
.band-ink .after, .band-ink .note { color: var(--band-muted); }

/* Ablauf: echte Reihenfolge, daher nummeriert */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.75rem 1fr; column-gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--rule); }
.steps li::before { content: counter(step); grid-row: span 2; font: 700 var(--step-2)/1 var(--serif); color: var(--petrol); }
.steps h3 { font-size: var(--step-1); }
.steps p { color: var(--muted); margin-top: 0.25rem; }
.steps .step-key { background: var(--petrol-tint); margin: 0 calc(-1 * 1rem); padding-left: 1rem; padding-right: 1rem; border-top-color: var(--petrol); }

.scenarios, .profiles { margin: 0; display: grid; gap: 1.5rem; }
.scenarios div { padding-left: 1.1rem; border-left: 3px solid var(--ink); }
.scenarios dt, .profiles dt { font: 700 var(--step-1)/1.3 var(--serif); }
.scenarios dd, .profiles dd { margin: 0.35rem 0 0; color: var(--muted); }
@media (min-width: 40rem) { .profiles { grid-template-columns: 1fr 1fr; } }
.profiles { margin-top: 1.75rem; }

.diagram { margin: 2rem 0 0; }
.diagram svg { width: 100%; height: auto; display: block; }
.d-zone { fill: var(--sheet); stroke: var(--ink); stroke-width: 2; stroke-dasharray: 8 6; }
.d-zone-label { font: 700 17px var(--serif); fill: var(--ink); }
.d-box { fill: var(--paper); stroke: var(--rule); stroke-width: 1.5; }
.d-key { stroke: var(--petrol); stroke-width: 2.5; }
.d-title { font: 700 18px var(--serif); fill: var(--ink); }
.d-text { font: 15px var(--sans); fill: var(--muted); }
.d-small { font: 13px var(--sans); fill: var(--act); }
.d-line { stroke: var(--ink); stroke-width: 2; fill: none; }
.d-arrow { stroke: var(--act); stroke-dasharray: 5 5; }

/* InvoNivo-Fristen */
.timeline { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.25rem; position: relative; }
@media (min-width: 40rem) {
  .timeline { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding-top: 1.25rem; }
  .timeline::before { content: ""; position: absolute; top: 0.4rem; left: 0; right: 0; height: 2px; background: var(--rule); }
  .timeline li::before { content: ""; position: absolute; top: 0; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--paper); border: 2px solid var(--petrol); }
  .band-ink .timeline::before { background: var(--band-line); }
  .band-ink .timeline li::before { background: var(--band); border-color: var(--band-accent); }
  .timeline li { position: relative; padding-top: 1.1rem; }
}
.timeline time { font: 700 var(--step-2)/1.1 var(--serif); color: var(--ink); }
.timeline p { margin-top: 0.35rem; color: var(--muted); font-size: 0.95rem; }
.band-ink .timeline time { color: var(--band-text); }
.band-ink .timeline p { color: var(--band-muted); }
.points { margin: 2rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.5rem; }
.points li::marker { color: var(--petrol); }

/* Preis */
.calc { margin: 2rem 0 0; }
.calc figcaption { font-weight: 600; margin-bottom: 0.6rem; }
.calc table { border-collapse: collapse; width: 100%; max-width: 28rem; font-variant-numeric: tabular-nums; }
.calc th, .calc td { text-align: left; padding: 0.55rem 1rem 0.55rem 0; border-top: 1px solid var(--rule); }
.calc thead th { font-size: var(--step--1); color: var(--muted); font-weight: 600; border-top: 0; }
.calc td:last-child { font: 700 var(--step-1)/1.2 var(--serif); }
.note { margin-top: 0.9rem; font-size: var(--step--1); color: var(--muted); }

.mail { color: var(--muted); }

/* Rechtsseiten */
.legal { padding: var(--space-band) 0; }
.legal .wrap { max-width: 44rem; }
.legal h1 { font-size: var(--step-3); margin-bottom: 1.5rem; }
.legal h2 { font-size: var(--step-1); margin: 2rem 0 0.5rem; }
.legal p, .legal li { margin-bottom: 0.6rem; }
.draft-flag { background: var(--marker); color: var(--on-marker); padding: 0.75rem 1rem; margin-bottom: 1.5rem; }

/* Schmale Bildschirme: Matrix als Liste */
@media (max-width: 34rem) {
  .matrix thead { display: none; }
  .matrix tr { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 0.75rem; padding: 0.7rem 0; border-top: 1px solid var(--rule); }
  .matrix th, .matrix td { border: 0; padding: 0; width: auto !important; }
  .matrix td:nth-child(3) { grid-column: 1 / -1; color: var(--muted); }
}

/* ---------- Icons ---------- */
.icon { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 2.5rem; height: 2.5rem; color: var(--petrol); stroke-width: 1.4; }

/* ---------- Kopfzeile und Navigation ---------- */
.site-header .wrap { max-width: 88rem; }
.site-header { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--rule); }
.header-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0 1.25rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; margin-right: auto; color: var(--ink); text-decoration: none; font: 700 1.3rem/1 var(--serif); }
.brand-mark { width: 1.6rem; height: 1.6rem; fill: none; stroke: var(--petrol); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark rect { stroke: var(--ink); stroke-width: 2; }

.nav, .nav .sub { list-style: none; margin: 0; padding: 0; }
.nav a, .sub-toggle { color: var(--ink); text-decoration: none; font: 500 0.95rem/1.3 var(--sans); }
.sub-toggle { display: inline-flex; align-items: center; gap: 0.2rem; background: none; border: 0; padding: 0; cursor: pointer; }
.sub-toggle .icon { width: 1.1rem; height: 1.1rem; transition: transform 160ms var(--ease); }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav .sub a { display: block; padding: 0.65rem 0.8rem; border-radius: 3px; }
.nav .sub strong { display: block; font: 700 1rem/1.3 var(--serif); }
.nav .sub span { display: block; font-size: 0.85rem; color: var(--muted); }
.nav .sub a:hover, .nav .sub a:focus-visible { background: var(--sheet); }
.nav-cta { display: none; }
.nav a.btn { color: var(--on-accent); }

.nav-toggle { display: none; align-items: center; gap: 0.4rem; min-height: 2.75rem; padding: 0 0.75rem; background: none; border: 1px solid var(--rule); border-radius: 4px; color: var(--ink); font: 600 0.95rem var(--sans); cursor: pointer; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: inline; }

/* Desktop: waagerechte Navigation mit Aufklappmenüs */
@media (min-width: 80rem) {
  .nav { display: flex; align-items: center; gap: 1.4rem; }
  .nav > li > a, .sub-toggle { padding: 1.45rem 0; }
  .nav > li > a:hover, .sub-toggle:hover { color: var(--petrol); }
  .nav > li > a[aria-current="page"], .has-sub.is-current > .sub-toggle { box-shadow: inset 0 -3px 0 var(--petrol); }
  .has-sub { position: relative; }
  .nav .sub {
    position: absolute; top: 100%; left: -0.8rem; min-width: 19rem; padding: 0.5rem;
    background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--petrol); border-radius: 0 0 4px 4px;
    box-shadow: 0 18px 36px -18px rgba(var(--shadow), 0.4);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity 140ms var(--ease), transform 140ms var(--ease), visibility 140ms;
  }
  .has-sub:hover .sub, .has-sub:focus-within .sub, .sub-toggle[aria-expanded="true"] + .sub { opacity: 1; visibility: visible; transform: none; }
  .header-cta { margin-left: 0.5rem; }
}

/* Tablet und Smartphone: Hamburger-Menü mit aufklappbaren Unterpunkten */
@media (max-width: 79.99rem) {
  .nav-toggle { display: inline-flex; order: 3; }
  .header-cta { order: 2; }
  .main-nav { display: none; order: 4; flex-basis: 100%; padding: 0.5rem 0 1.25rem; border-top: 1px solid var(--rule); max-height: calc(100vh - 4.5rem); overflow-y: auto; }
  .nav-open .main-nav { display: block; }
  .nav > li { border-bottom: 1px solid var(--sheet); }
  .nav > li > a, .sub-toggle { display: flex; width: 100%; min-height: 3rem; align-items: center; justify-content: space-between; font-size: 1.05rem; }
  .nav > li > a[aria-current="page"] { color: var(--petrol); font-weight: 700; }
  .nav .sub { display: none; padding: 0 0 0.75rem 0.75rem; }
  .sub-toggle[aria-expanded="true"] + .sub { display: block; }
  .nav-cta { display: block; border-bottom: 0 !important; padding-top: 1rem; }
  .nav-cta .btn { width: 100%; text-align: center; }
}
@media (max-width: 40rem) { .header-cta { display: none; } }

/* ---------- Startseite ---------- */
.hero-sub { font: 700 var(--step-2)/1.25 var(--serif); color: var(--petrol); margin-top: 1.25rem; }
.btn-ghost { background: transparent; color: var(--petrol); box-shadow: inset 0 0 0 2px var(--petrol); }
@media (hover: hover) { .btn-ghost:hover { background: var(--petrol-tint); color: var(--petrol-dark); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-text, .hero .demo { animation: rise 600ms var(--ease) both; }
  .hero .demo { animation-delay: 140ms; }
}
/* nur Bewegung, keine Transparenz: Inhalt bleibt sichtbar, auch wenn Animationen pausieren */
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }

.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { margin-top: 0.9rem; font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); }
.band-ink .section-head p { color: var(--band-muted); }

/* Produktkarten der drei Einsatzbereiche */
.areas { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); list-style: none; margin: 0; padding: 0; }
.area-card {
  position: relative; display: flex; flex-direction: column; gap: 0.8rem;
  background: var(--paper); border: 1px solid var(--rule); border-top: 4px solid var(--petrol); border-radius: 4px;
  padding: 1.6rem 1.5rem 1.4rem;
  transition: border-color 160ms var(--ease), transform 160ms var(--ease);
}
.area-card:hover, .area-card:focus-within { border-color: var(--petrol); }
@media (prefers-reduced-motion: no-preference) { .area-card:hover { transform: translateY(-3px); } }
.area-top { display: flex; align-items: center; justify-content: space-between; }
.area-num { font: 700 var(--step-2)/1 var(--serif); color: var(--petrol); }
.area-card h3 { font-size: var(--step-2); }
.area-claim { font: italic 400 1.05rem/1.45 var(--serif); color: var(--ink-soft); }
.area-card p:not(.area-claim):not(.area-status) { color: var(--muted); }
.area-status { margin-top: auto; padding-top: 0.9rem; border-top: 1px solid var(--rule); font-size: var(--step--1); color: var(--muted); }
.area-status strong { color: var(--petrol-dark); }
.card-link { font-weight: 600; }
.card-link::after { content: ""; position: absolute; inset: 0; }

/* Vertrauenspunkte mit Icon */
.trust { display: grid; gap: 1.75rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); list-style: none; margin: 0; padding: 0; }
.trust li { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.9rem; }
.trust .icon { width: 2rem; height: 2rem; color: var(--petrol); grid-row: span 2; }
.trust strong { font: 700 var(--step-1)/1.3 var(--serif); }
.trust span { color: var(--muted); }
.band-ink .trust .icon { color: var(--band-accent); }
.band-ink .trust span { color: var(--band-muted); }
.more { margin-top: 2.25rem; font-weight: 600; }
/* Einzelne Textlinks: Klickfläche mind. 44 px hoch */
.more a, .card-link { display: inline-block; padding: 0.7rem 0; }

/* Integrationsgrafik */
.flow { margin: 0; display: grid; gap: 0.75rem; align-items: center; }
@media (min-width: 56rem) { .flow { grid-template-columns: 1fr 3rem 1.25fr 3rem 1.15fr; } }
.flow-col { display: grid; gap: 0.6rem; }
.flow-label { font-size: var(--step--1); font-weight: 600; color: var(--muted); }
.flow-node { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 1.1rem 1.2rem; }
.flow-node strong { display: block; font: 700 var(--step-1)/1.2 var(--serif); }
.flow-node > span { display: block; margin-top: 0.25rem; color: var(--muted); font-size: 0.95rem; }
.flow-core .flow-node { border: 2px solid var(--petrol); box-shadow: 0 18px 36px -22px rgba(var(--shadow), 0.45); }
.flow-core ul { margin: 0.8rem 0 0; padding: 0.8rem 0 0; border-top: 1px solid var(--rule); list-style: none; display: grid; gap: 0.35rem; font-size: 0.92rem; }
.flow-core li::before { content: ""; display: inline-block; width: 0.45rem; height: 0.45rem; margin-right: 0.5rem; border-radius: 50%; background: var(--petrol); vertical-align: middle; }
.flow-link { position: relative; height: 2rem; }
.flow-link::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px solid var(--ink); }
@media (min-width: 56rem) {
  .flow-link { height: auto; align-self: center; height: 2px; }
  .flow-link::before { left: 0; right: 0; top: 0; bottom: auto; border-left: 0; border-top: 2px solid var(--ink); }
}
.flow-systems { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.flow-systems li { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 0.7rem 0.9rem; }
.flow-systems li.is-planned { border-style: dashed; }
.flow-node.is-planned { border-style: dashed; }
.flow-node > .state { display: inline-block; margin-top: 0.5rem; }
.plan-after { margin-top: 0.75rem; }
.state { font-size: var(--step--1); font-weight: 600; padding: 0.1rem 0.45rem; border-radius: 2px; white-space: nowrap; background: var(--sheet); color: var(--muted); }
.state-done { background: var(--petrol-tint); color: var(--petrol-dark); }
.flow figcaption, .flow-note { grid-column: 1 / -1; margin-top: 0.75rem; font-size: var(--step--1); color: var(--muted); }

/* Unterseiten */
.page-hero { padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) 0 clamp(2rem, 1.5rem + 3vw, 3.5rem); background: var(--sheet); border-bottom: 1px solid var(--rule); }
.page-hero .icon-lg { margin-bottom: 1rem; }
.page-hero h1 { font-size: var(--step-4); max-width: 20ch; letter-spacing: -0.01em; }
.page-hero .lead { max-width: 42rem; }
.crumb { font-size: var(--step--1); color: var(--muted); margin-bottom: 0.75rem; }
.crumb a { color: var(--muted); }

.detail { display: grid; gap: 1rem 3rem; }
@media (min-width: 52rem) { .detail { grid-template-columns: 1fr 1fr; } }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.check-list li { padding-left: 1.6rem; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0.2rem; top: 0.55em; width: 0.6rem; height: 0.35rem; border-left: 2px solid var(--petrol); border-bottom: 2px solid var(--petrol); transform: rotate(-45deg); }
.plan-list li::before { border-color: var(--muted); border-style: dashed; width: 0.55rem; height: 0.55rem; transform: none; border-width: 2px; border-radius: 50%; top: 0.45em; }
.box-title { font: 700 var(--step-1)/1.3 var(--serif); margin-bottom: 0.75rem; }
.box-title .state { margin-left: 0.4rem; vertical-align: middle; }
.anchor-section { scroll-margin-top: 5rem; }
.anchor-section + .anchor-section { border-top: 1px solid var(--rule); }

/* Handlungsband */
.cta-band { background: var(--band); color: var(--band-text); padding: clamp(3rem, 2rem + 4vw, 5rem) 0; }
.cta-band h2 { font-size: var(--step-3); max-width: 22ch; }
.cta-band p { margin-top: 1rem; max-width: 44rem; color: var(--band-muted); font-size: var(--step-1); line-height: 1.55; }
.cta-band .btn { background: var(--band-accent); color: var(--band); }
.cta-band .btn-ghost { background: transparent; color: var(--band-text); box-shadow: inset 0 0 0 2px var(--band-accent); }
@media (hover: hover) {
  .cta-band .btn:hover { background: var(--band-text); color: var(--band); }
  .cta-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: var(--band-text); }
}

/* Kontakt */
.contact-card { display: grid; gap: 0.4rem; padding: 1.5rem; border: 1px solid var(--rule); border-left: 4px solid var(--petrol); border-radius: 4px; background: var(--paper); }
.contact-card a { font: 700 var(--step-2)/1.2 var(--serif); }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--sheet); border-top: 1px solid var(--rule); padding: 3rem 0 2.5rem; font-size: var(--step--1); color: var(--muted); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.footer-grid > div { grid-column: span 1; }
@media (min-width: 52rem) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand { font: 700 1.2rem/1 var(--serif); color: var(--ink); margin-bottom: 0.75rem; }
.footer-head { font-weight: 600; color: var(--ink); margin-bottom: 0.6rem; }
.footer-grid p + p { margin-top: 0.6rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.footer-grid nav a { display: inline-block; padding: 0.3rem 0; color: var(--muted); }
.footer-grid nav a:hover { color: var(--petrol); }

/* ---------- Startseite: Aufbau seit 29.10.2026 ---------- */
.hero-solo { background: var(--paper); padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.hero-solo h1 { max-width: 18ch; }
.hero-solo .lead { max-width: 40rem; }

/* Produkttour: Schritte links, Aktenblatt rechts */
.tour-grid { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
@media (min-width: 60rem) { .tour-grid { grid-template-columns: 4fr 7fr; } .tour-grid > div { position: sticky; top: 6rem; } }
.tour-title { font-size: var(--step-3); }
.tour { list-style: none; margin: 1.75rem 0 0; padding: 0; counter-reset: tour; display: grid; gap: 1.25rem; }
.tour li { counter-increment: tour; display: grid; grid-template-columns: 2.25rem 1fr; column-gap: 0.75rem; color: var(--muted); }
.tour li::before { content: counter(tour); grid-row: span 2; font: 700 var(--step-2)/1 var(--serif); color: var(--petrol); }
.tour strong { display: block; color: var(--ink); font-size: var(--step-1); line-height: 1.3; margin-bottom: 0.2rem; }
@media (prefers-reduced-motion: no-preference) { .hero-solo .wrap { animation: rise 600ms var(--ease) both; } }

/* Beleg-Band: was heute läuft */
.proof { padding: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0; }
.proof-grid { display: grid; gap: 1.25rem 3rem; }
@media (min-width: 52rem) { .proof-grid { grid-template-columns: minmax(12rem, 3fr) 9fr; } .proof-note { grid-column: 2; } }
.proof h2 { font-size: var(--step-2); }
.proof-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.proof-list li { padding-left: 1.6rem; position: relative; font-size: var(--step-1); line-height: 1.4; }
.proof-list li::before { content: ""; position: absolute; left: 0.15rem; top: 0.45em; width: 0.6rem; height: 0.35rem; border-left: 2px solid var(--band-accent); border-bottom: 2px solid var(--band-accent); transform: rotate(-45deg); }
.proof-note { color: var(--band-muted); font-size: var(--step--1); }

/* Funktionskacheln mit kleinem Ausschnitt */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.feature { position: relative; display: flex; flex-direction: column; gap: 0.7rem; padding: 1.5rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; }
.feature:hover, .feature:focus-within { border-color: var(--petrol); }
.feature h3 { font-size: var(--step-1); }
.feature > p { color: var(--muted); }
.feature .card-link { margin-top: auto; font-size: var(--step--1); }
.snip { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1rem; margin: 0.3rem 0 0.4rem; padding: 0.8rem 0.9rem; background: var(--sheet); border-left: 3px solid var(--rule); border-radius: 2px; font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.snip-val { font-weight: 600; text-align: right; }
.snip-ok { color: var(--petrol-dark); }

/* Wann KAI tätig wird */
.modes { display: grid; gap: 1.25rem; }
@media (min-width: 44rem) { .modes { grid-template-columns: 1fr 1fr; } }
.mode { padding: 1.4rem 1.5rem; background: var(--paper); border-top: 4px solid var(--petrol); border-radius: 4px; }
.mode h3 { font-size: var(--step-2); }
.mode p { margin-top: 0.5rem; color: var(--muted); }

/* Datenschutz als vier Kacheln */
.trust-tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.25rem; }
.trust-tiles li { padding: 1.4rem; border: 1px solid var(--rule); border-radius: 4px; }
.trust-tiles li { display: flex; flex-direction: column; gap: 0.6rem; }
.feature-planned { border-style: dashed; background: transparent; }
.feature-planned .plan-list { color: var(--muted); }

/* Preismodell */
.price { margin: 0; display: grid; gap: 0; }
.price div { padding: 1.1rem 0; border-top: 1px solid var(--rule); }
.price div:last-child { border-bottom: 1px solid var(--rule); }
.price dt { font: 700 var(--step-1)/1.3 var(--serif); }
.price dd { margin: 0.3rem 0 0; color: var(--muted); }
.price-partner { margin-top: 1.75rem; padding: 1rem 1.2rem; background: var(--petrol-tint); border-left: 4px solid var(--petrol); border-radius: 2px; }

/* Ansprechperson */
.person-grid { display: grid; gap: 1.5rem 2.5rem; align-items: start; }
@media (min-width: 44rem) { .person-grid { grid-template-columns: auto 1fr; } }
.monograms { display: flex; }
.monograms .monogram + .monogram { margin-left: -0.9rem; background: var(--band); }
.monogram { width: 5.5rem; height: 5.5rem; display: grid; place-items: center; border: 2px solid var(--band-accent); border-radius: 50%; font: 700 1.6rem/1 var(--serif); color: var(--band-accent); }

/* FAQ mit nativen Aufklappern */
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.05rem 0; cursor: pointer; list-style: none; font: 700 var(--step-1)/1.35 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 0.6rem; height: 0.6rem; margin: 0.45em 0.3rem 0 0; border-right: 2px solid var(--petrol); border-bottom: 2px solid var(--petrol); transform: rotate(45deg); transition: transform 160ms var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 0 1.2rem; color: var(--muted); max-width: 40rem; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Bildschirmfotos der laufenden App (InvoNivo) */
.shot { margin: 2rem 0 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 1px 0 var(--rule), 0 18px 40px -18px rgba(var(--shadow), 0.35); }
.shot figcaption { margin-top: 0.6rem; color: var(--muted); font-size: var(--step--1); }
.live { display: inline-block; font-size: var(--step--1); font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 2px; background: var(--petrol); color: var(--on-accent); }
