/* tenantree.de — gemeinsames Stylesheet
   Farbwelt "Canopy on SAP Horizon". Keine externen Ressourcen. */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations"),
       url(fonts/inter-latin-ext-wght-normal.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: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/inter-latin-wght-normal.woff2) format("woff2-variations"),
       url(fonts/inter-latin-wght-normal.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;
}

/* ---------- Farben ---------- */
:root {
  color-scheme: light dark;
  --root: #001b36;
  --stratus: #0078cf;
  --canopy: #05a4a0;
  --agent: #653bbe;
  --text: #1d2d3e;
  --label: #556b82;
  --line: #e5e5e5;
  --page: #f5f6f7;
  --surface: #ffffff;
  --surface-2: #eef2f6;
  --link: #0064d9;
  --link-hover: #004fae;
  --accent-text: #0064d9;      /* Akzent für Text (AA auf hell) */
  --canopy-text: #03716e;      /* Canopy als Textfarbe (AA auf hell) */
  --agent-text: #5a32ad;
  --btn: #0064d9;
  --btn-hover: #004fae;
  --btn-text: #ffffff;
  --focus: #0064d9;
  --logo-ink: #001b36;
  --success-bg: #e8f6ef; --success-line: #2e8a57; --success-text: #1b5e3a;
  --error-bg: #fdecec;   --error-line: #c62828;   --error-text: #8a1c1c;
  --shadow: 0 1px 2px rgba(0, 27, 54, .06), 0 4px 16px rgba(0, 27, 54, .06);

  /* Diagramme */
  --dg-node: #ffffff;
  --dg-node-2: #f2f6fa;
  --dg-stroke: #9db0c4;
  --dg-text: #1d2d3e;
  --dg-muted: #556b82;
  --dg-zone: #eaf3fb;
  --dg-zone-2: #e6f6f5;
  --dg-agent: #efe9fa;

  /* Dunkle Bänder (Hero, Abschluss, Fußzeile) bleiben in beiden Modi dunkel */
  --band: #001b36;
  --band-2: #062846;
  --band-text: #e8eef5;
  --band-muted: #a9bdd2;
  --band-line: rgba(255, 255, 255, .16);

  --radius: 10px;
  --radius-sm: 6px;
  --maxw: 1440px;
  --gutter: clamp(16px, 4vw, 48px);
  --measure: 70ch;
  --font: "Inter Variable", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text: #e3eaf2;
    --label: #a3b5c8;
    --line: #26384b;
    --page: #0b1622;
    --surface: #111f2e;
    --surface-2: #162a3d;
    --link: #6cb4ff;
    --link-hover: #9ccbff;
    --accent-text: #6cb4ff;
    --canopy-text: #3fd0cb;
    --agent-text: #b9a2f0;
    --btn: #1a7fe0;
    --btn-hover: #3b93e8;
    --focus: #6cb4ff;
    --logo-ink: #ffffff;
    --success-bg: #12301f; --success-line: #49b47a; --success-text: #bfeccf;
    --error-bg: #3a1616;   --error-line: #e57373;   --error-text: #ffd0d0;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
    --dg-node: #14263a;
    --dg-node-2: #1a3047;
    --dg-stroke: #4e6884;
    --dg-text: #e3eaf2;
    --dg-muted: #a3b5c8;
    --dg-zone: #0f2a44;
    --dg-zone-2: #0c302f;
    --dg-agent: #261c42;
    --band: #06111d;
    --band-2: #0b1d30;
  }
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.4rem); letter-spacing: -.015em; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li + li { margin-top: .35em; }
code { font-family: var(--mono); font-size: .92em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--surface); color: var(--link); padding: .6rem 1rem; border-radius: var(--radius-sm);
  box-shadow: var(--shadow); font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.3rem); color: var(--label); max-width: 62ch; }

/* ---------- Logo ---------- */
.logo { display: block; height: 28px; width: auto; }
.logo .ink { fill: var(--logo-ink); }
.logo .stratus { fill: #0078cf; }
.logo .canopy { fill: #05a4a0; }
.on-dark .logo .ink, .site-footer .logo .ink { fill: #ffffff; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
@supports not (background: color-mix(in srgb, white 50%, transparent)) {
  .site-header { background: var(--surface); }
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; padding: 6px 0; flex: none; }
.brand:focus-visible { outline-offset: 6px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav li + li { margin-top: 0; }
.site-nav a.nav-link {
  display: block; padding: .5rem .75rem; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; font-weight: 500; font-size: .97rem;
}
.site-nav a.nav-link:hover { background: var(--surface-2); color: var(--text); }
.site-nav a.nav-link[aria-current="page"] { color: var(--accent-text); box-shadow: inset 0 -2px 0 var(--stratus); border-radius: 0; }
.nav-toggle {
  display: none; margin-left: auto; align-items: center; gap: .5rem;
  background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .5rem .75rem; font: inherit; font-weight: 500; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: inline; }

@media (max-width: 960px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.25rem;
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .js .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav a.nav-link { padding: .85rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .site-nav a.nav-link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--stratus); padding-left: .85rem; }
  .site-nav .btn { margin-top: 1rem; justify-content: center; }
  /* Ohne JavaScript: Navigation umbrechen statt einklappen */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-bottom: .5rem; }
  html:not(.js) .site-nav { width: 100%; margin-left: 0; flex-wrap: wrap; }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; }
  html:not(.js) .site-nav a.nav-link { border-bottom: 0; padding: .4rem .5rem; }
}

/* ---------- Schaltflächen ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.2rem; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--btn); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-hover); color: var(--btn-text); }
.btn-secondary { background: transparent; color: var(--accent-text); border-color: currentColor; }
.btn-secondary:hover { background: var(--surface-2); color: var(--link-hover); }
.btn-small { padding: .5rem .9rem; font-size: .95rem; }
.on-dark .btn-secondary { color: #ffffff; border-color: rgba(255, 255, 255, .55); }
.on-dark .btn-secondary:hover { background: rgba(255, 255, 255, .1); color: #ffffff; }
.on-dark .btn-primary { background: #1a7fe0; }
.on-dark .btn-primary:hover { background: #3b93e8; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(3rem, 2rem + 4vw, 6rem) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 72ch; margin-bottom: clamp(1.75rem, 1rem + 2vw, 3rem); }
.section-head p { color: var(--label); font-size: 1.08rem; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  color: var(--canopy-text); margin-bottom: .75rem;
}
.on-dark .eyebrow { color: #5fd9d4; }

.on-dark { background: var(--band); color: var(--band-text); }
.on-dark a:not(.btn) { color: #9ccbff; }
.on-dark .lead, .on-dark .muted { color: var(--band-muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(0, 120, 207, .35), transparent 60%),
    radial-gradient(900px 500px at 10% 120%, rgba(5, 164, 160, .22), transparent 60%),
    var(--band);
  padding: clamp(3rem, 2rem + 5vw, 7rem) 0 clamp(3rem, 2rem + 4vw, 6rem);
}
.hero-grid { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.hero h1 { color: #ffffff; max-width: 20ch; }
.hero .lead { color: var(--band-muted); margin-bottom: 2rem; }
.hero .claim {
  margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--band-line);
  font-weight: 600; color: #ffffff; letter-spacing: .01em;
}
.hero .claim span { color: #5fd9d4; }
.hero-art { width: 100%; max-width: 640px; justify-self: center; }
.hero-art svg { display: block; width: 100%; height: auto; }

.page-hero { padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) 0 clamp(2rem, 1.5rem + 3vw, 4rem); }
.page-hero h1 { color: #ffffff; max-width: 24ch; }
.page-hero .lead { color: var(--band-muted); }
.page-hero.hero { padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }

/* ---------- Raster und Karten ---------- */
.grid { display: grid; gap: clamp(1rem, .75rem + 1vw, 1.75rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 1rem + .8vw, 1.75rem); box-shadow: var(--shadow);
}
.section-alt .card { background: var(--page); box-shadow: none; }
.card h3 { margin-bottom: .5rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .meta { font-size: .85rem; color: var(--label); font-weight: 500; margin-bottom: .35rem; display: block; }
.card ul { padding-left: 1.1em; color: var(--text); }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--dg-zone); color: var(--accent-text);
}
.card-icon svg { width: 24px; height: 24px; }
.card-icon.canopy { background: var(--dg-zone-2); color: var(--canopy-text); }
.card-icon.agent { background: var(--dg-agent); color: var(--agent-text); }

.split { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .split.wide-left { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.9rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--canopy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.crosslist { list-style: none; padding: 0; }
.crosslist li { position: relative; padding-left: 1.9rem; }
.crosslist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--label) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

/* ---------- Kennzahlenband / Leitsatz ---------- */
.principles { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.principles > div { background: var(--surface); padding: 1.5rem clamp(1.25rem, 1rem + 1vw, 2rem); }
.principles strong { display: block; font-size: 1.15rem; margin-bottom: .35rem; }
.principles p { color: var(--label); margin: 0; }

/* ---------- Diagramme ---------- */
.figure { margin: 0; }
.figure figcaption { color: var(--label); font-size: .92rem; margin-top: .9rem; max-width: 80ch; }
.diagram {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(.75rem, .5rem + 1vw, 1.5rem); overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.diagram svg { display: block; width: 100%; height: auto; min-width: 720px; }
.diagram:focus-visible { outline-offset: 4px; }
.scroll-hint { display: none; font-size: .85rem; color: var(--label); margin: .5rem 0 0; }
@media (max-width: 780px) { .scroll-hint { display: block; } }

/* SVG-Klassen (Diagramme und Illustration) */
.dg-node { fill: var(--dg-node); stroke: var(--dg-stroke); stroke-width: 1.5; }
.dg-node-2 { fill: var(--dg-node-2); stroke: var(--dg-stroke); stroke-width: 1.2; }
.dg-zone { fill: var(--dg-zone); stroke: var(--stratus); stroke-width: 1.5; }
.dg-zone-2 { fill: var(--dg-zone-2); stroke: var(--canopy); stroke-width: 1.5; }
.dg-zone-dashed { fill: none; stroke: var(--dg-stroke); stroke-width: 1.5; stroke-dasharray: 6 5; }
.dg-agent { fill: var(--dg-agent); stroke: var(--agent); stroke-width: 1.5; }
.dg-gate { fill: var(--dg-zone); stroke: var(--stratus); stroke-width: 2.5; }
.dg-line { fill: none; stroke: var(--dg-stroke); stroke-width: 2; }
.dg-flow { fill: none; stroke: var(--stratus); stroke-width: 2.5; }
.dg-flow-canopy { fill: none; stroke: var(--canopy); stroke-width: 2.5; }
.dg-flow-dashed { fill: none; stroke: var(--canopy); stroke-width: 2; stroke-dasharray: 6 5; }
.dg-arrow { fill: var(--stratus); }
.dg-arrow-canopy { fill: var(--canopy); }
.dg-arrow-muted { fill: var(--dg-stroke); }
.dg-text { fill: var(--dg-text); font-family: var(--font); font-size: 15px; }
.dg-title { fill: var(--dg-text); font-family: var(--font); font-size: 16px; font-weight: 650; }
.dg-small { fill: var(--dg-muted); font-family: var(--font); font-size: 13px; }
.dg-label { fill: var(--dg-muted); font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.dg-accent { fill: var(--accent-text); font-family: var(--font); font-size: 13px; font-weight: 600; }
.dg-canopy-text { fill: var(--canopy-text); font-family: var(--font); font-size: 13px; font-weight: 600; }
.dg-badge { fill: var(--stratus); }
.dg-badge-text { fill: #ffffff; font-family: var(--font); font-size: 13px; font-weight: 700; }
.dg-icon { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dg-lock { fill: none; stroke: var(--canopy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Hero-Illustration (dunkler Hintergrund) */
.hx-line { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 2; }
.hx-flow { fill: none; stroke: #5fd9d4; stroke-width: 2.5; }
.hx-flow-agent { fill: none; stroke: #a58bea; stroke-width: 2.5; stroke-dasharray: 7 6; }
.hx-node { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .35); stroke-width: 1.5; }
.hx-node-ga { fill: rgba(0, 120, 207, .25); stroke: #3b9be6; stroke-width: 2; }
.hx-node-sa { fill: rgba(0, 120, 207, .14); stroke: #3b9be6; stroke-width: 1.5; }
.hx-leaf { fill: rgba(5, 164, 160, .22); stroke: #2cc3be; stroke-width: 1.5; }
.hx-agent { fill: rgba(101, 59, 190, .3); stroke: #a58bea; stroke-width: 2; }
.hx-gate { fill: #0a2a4a; stroke: #ffffff; stroke-width: 2; }
.hx-text { fill: #ffffff; font-family: var(--font); font-size: 14px; font-weight: 600; }
.hx-small { fill: #b9cbe0; font-family: var(--font); font-size: 12px; }
.hx-label { fill: #8fa7c1; font-family: var(--font); font-size: 11px; font-weight: 650; letter-spacing: .08em; }
.hx-dot { fill: #5fd9d4; }
@media (prefers-reduced-motion: no-preference) {
  .hx-pulse { animation: hx-pulse 3.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
  .hx-dash { animation: hx-dash 2.4s linear infinite; }
}
@keyframes hx-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes hx-dash { to { stroke-dashoffset: -26; } }

/* ---------- Schrittfolgen (Freigabeablauf, Einführung) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); counter-reset: step; }
.steps > li { margin: 0; position: relative; }
.step {
  height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.35rem; position: relative;
}
.section-alt .step { background: var(--page); }
.step-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.step-num {
  flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--stratus); color: #ffffff; font-weight: 700; font-size: .95rem;
}
.step-icon { flex: none; color: var(--accent-text); margin-left: auto; }
.step-icon svg { width: 28px; height: 28px; display: block; }
.step h3 { font-size: 1.05rem; margin: 0; }
.step p { margin: 0; color: var(--label); font-size: .97rem; }
.step.is-human { border-color: var(--agent); }
.step.is-human .step-num { background: var(--agent); }
.step.is-human .step-icon { color: var(--agent-text); }
.step-tag { display: inline-block; margin-top: .75rem; font-size: .8rem; font-weight: 600; color: var(--agent-text); }

/* Verbinder: senkrecht auf schmalen, waagerecht auf breiten Bildschirmen */
.steps > li:not(:last-child)::after {
  content: ""; position: absolute; left: 1.25rem; bottom: -1rem; width: 2rem; height: 1rem;
  background: linear-gradient(var(--stratus), var(--stratus)) center / 2px 100% no-repeat;
}
@media (min-width: 720px) and (max-width: 1099px) {
  .steps-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-5 > li:not(:last-child)::after { display: none; }
}
@media (min-width: 1100px) {
  .steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
  .steps-5 > li:not(:last-child)::after {
    left: auto; right: -1.5rem; top: 2.25rem; bottom: auto; width: 1.5rem; height: 12px;
    background:
      linear-gradient(var(--stratus), var(--stratus)) left center / calc(100% - 6px) 2px no-repeat,
      conic-gradient(from -135deg at 100% 50%, var(--stratus) 90deg, transparent 0) right center / 8px 12px no-repeat;
  }
}

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .98rem; }
caption { text-align: left; padding: 1rem 1.25rem; font-weight: 600; color: var(--label); caption-side: top; }
th, td { text-align: left; vertical-align: top; padding: .9rem 1.25rem; border-top: 1px solid var(--line); }
thead th { border-top: 0; background: var(--surface-2); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--label); }
tbody th { font-weight: 600; width: 22%; }
.compare th:nth-child(2), .compare td:nth-child(2) { background: color-mix(in srgb, var(--stratus) 5%, transparent); }
.compare thead th.plan { font-size: 1.05rem; text-transform: none; letter-spacing: 0; color: var(--text); }
.compare thead th.plan small { display: block; font-size: .85rem; color: var(--label); font-weight: 500; margin-top: .2rem; }
@media (max-width: 720px) {
  /* Vergleichstabelle als Karten je Zeile */
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tr { display: block; border-top: 1px solid var(--line); padding: .5rem 0; }
  .compare tbody tr:first-child { border-top: 0; }
  .compare th, .compare td { display: block; border: 0; padding: .35rem 1rem; width: auto; background: none !important; }
  .compare tbody th { padding-top: .75rem; font-size: 1rem; }
  .compare td::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--label); }
}

/* ---------- Hinweise ---------- */
.note {
  border-left: 4px solid var(--stratus); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem; margin: 1.5rem 0;
}
.note p:last-child { margin-bottom: 0; }
.note.canopy { border-left-color: var(--canopy); }
.note.agent { border-left-color: var(--agent); }

/* ---------- Formular ---------- */
.form-grid { display: grid; gap: 1.1rem 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .full { grid-column: 1 / -1; } }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
.field .hint { font-weight: 400; color: var(--label); font-size: .88rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid #8396ab; border-radius: var(--radius-sm); padding: .65rem .8rem; min-height: 46px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: var(--error-line); }
.field-error { color: var(--error-text); font-size: .88rem; margin-top: .3rem; }
.check { display: flex; gap: .75rem; align-items: flex-start; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; flex: none; accent-color: var(--btn); }
.check label { font-weight: 400; margin: 0; }
.req { color: var(--error-text); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin-top: 1.25rem; border: 1px solid; }
.form-status:empty { display: none; }
.form-status.success { background: var(--success-bg); border-color: var(--success-line); color: var(--success-text); }
.form-status.error { background: var(--error-bg); border-color: var(--error-line); color: var(--error-text); }
.form-status a { color: inherit; font-weight: 600; }
.contact-aside dl { margin: 0; }
.contact-aside dt { font-weight: 600; margin-top: 1rem; }
.contact-aside dd { margin: .2rem 0 0; color: var(--label); }

/* ---------- Abschluss-Band ---------- */
.cta-band { padding: clamp(3rem, 2rem + 3vw, 5rem) 0; background:
  radial-gradient(800px 400px at 100% 0%, rgba(5, 164, 160, .22), transparent 60%), var(--band); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-inner h2 { color: #ffffff; margin-bottom: .4rem; }
.cta-inner p { color: var(--band-muted); margin: 0; max-width: 60ch; }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--band); color: var(--band-muted); padding: 3rem 0 2rem; font-size: .95rem; border-top: 1px solid var(--band-line); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); } }
.site-footer h2 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #ffffff; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: .45rem; }
.site-footer a { color: var(--band-text); text-decoration: none; }
.site-footer a:hover { color: #ffffff; text-decoration: underline; }
.site-footer .logo { height: 26px; margin-bottom: 1rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--band-line); display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; }

/* ---------- Rechtstexte ---------- */
.legal { padding: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) 0; }
.legal address { font-style: normal; }
.legal .stand { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--label); font-size: .92rem; }
.legal h1 { font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem); }

/* ---------- Druck ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .skip-link { display: none !important; }
  body { background: #ffffff; color: #000000; }
  .on-dark, .hero { background: #ffffff !important; color: #000000; }
  .hero h1, .page-hero h1 { color: #000000; }
}

/* Bildzeichen in der Hero-Illustration */
.mk-canopy { fill: #05a4a0; }
.mk-ink { fill: #ffffff; }
.mk-stratus { fill: #0078cf; }
.hx-pulse.d1 { animation-delay: .4s; }
.hx-pulse.d2 { animation-delay: .8s; }
.hx-pulse.d3 { animation-delay: 1.2s; }

/* Abstände */
.mt-grid { margin-top: clamp(1rem, .75rem + 1vw, 1.75rem); }
.mt-1 { margin-top: 1.5rem; }
.mt-section { margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); }

/* Formularhilfen und Sichtbarkeit mit und ohne JavaScript */
html:not(.js) .js-only { display: none !important; }
.js .no-js-only { display: none !important; }
.hint-text { color: var(--label); font-size: .9rem; margin-bottom: 1.25rem; }
.field p.hint { margin: .35rem 0 0; }
.h3 { font-size: 1.2rem; }
