/* Farben ---------------------------------------------------------------- */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --text: #17202b;
  --muted: #5a6573;
  --border: #dde2e8;
  --accent: #1d5fd1;
  --accent-hover: #164ba8;
  --accent-text: #ffffff;
  --accent-soft: #e5eefc;
  --mark-bg: #fff1b8;
  --mark-text: #5c4400;
  --focus: #1d5fd1;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f141a;
    --surface: #171e26;
    --surface-2: #1e2731;
    --text: #e6ebf0;
    --muted: #9aa6b3;
    --border: #2b3642;
    --accent: #6ea2ff;
    --accent-hover: #8fb7ff;
    --accent-text: #0b1220;
    --accent-soft: #1b2a44;
    --mark-bg: #4a3b06;
    --mark-text: #ffe38a;
    --focus: #8fb7ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0f141a;
  --surface: #171e26;
  --surface-2: #1e2731;
  --text: #e6ebf0;
  --muted: #9aa6b3;
  --border: #2b3642;
  --accent: #6ea2ff;
  --accent-hover: #8fb7ff;
  --accent-text: #0b1220;
  --accent-soft: #1b2a44;
  --mark-bg: #4a3b06;
  --mark-text: #ffe38a;
  --focus: #8fb7ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

main { flex: 1; }
main:focus { outline: none; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin-top: 1.8em; }
h3 { font-size: 1.1rem; margin-top: 1.4em; }
p, ul, ol, address { margin: 0 0 1em; }
address { font-style: normal; }

a { color: var(--accent); text-underline-offset: .15em; }
a:hover { color: var(--accent-hover); }

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

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 1360px) { .container { max-width: 1260px; padding: 0 24px; } }
@media (min-width: 1680px) { .container { max-width: 1440px; } }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  padding: 8px 14px; background: var(--accent); color: var(--accent-text);
  border-radius: 6px; text-decoration: none;
}
.skip-link:focus { top: 8px; }

mark.placeholder {
  background: var(--mark-bg);
  color: var(--mark-text);
  padding: 0 .3em;
  border-radius: 3px;
  font-style: italic;
}

/* Kopfzeile ------------------------------------------------------------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 5;
}
.header-inner {
  display: flex; align-items: center; gap: 12px 14px; flex-wrap: wrap;
  min-height: 64px; padding-top: 8px; padding-bottom: 8px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none;
  margin-right: auto;
}
.logo { display: block; height: 34px; width: auto; overflow: visible; }
.logo-tile { fill: var(--accent); }
.logo-line { fill: none; stroke: var(--accent-text); stroke-width: 2.4; stroke-linecap: round; }
.logo-ticks { stroke-width: 1.6; opacity: .75; }
.logo-hub { fill: var(--accent-text); }
.logo-word { fill: var(--text); font: 500 20px system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; letter-spacing: -.01em; }
.logo-word-strong { font-weight: 800; }
.brand-footer { margin: 0 0 6px; }
.brand-footer .logo { height: 26px; }

.main-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a:not(.btn) {
  display: block; padding: 6px 9px; border-radius: 6px;
  color: var(--text); text-decoration: none;
}
.main-nav a:not(.btn):hover { background: var(--surface-2); }
.main-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

.theme-toggle {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text); cursor: pointer;
}
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

/* Unter 1100 px passt das Menü nicht mehr neben das Logo: eigene Zeile darunter */
@media (max-width: 1099px) {
  .main-nav { order: 3; width: 100%; }
}
@media (max-width: 640px) {
  .main-nav ul { justify-content: flex-start; }
}

/* Schaltflächen --------------------------------------------------------- */
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 8px;
  background: var(--accent); color: var(--accent-text);
  font-weight: 600; text-decoration: none; border: 1px solid var(--accent);
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-text); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent); }
.btn-small { padding: 6px 12px; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4em; }

/* Startseite ------------------------------------------------------------ */
.hero { padding: clamp(40px, 8vw, 88px) 0 clamp(32px, 6vw, 64px); }
.hero .eyebrow { color: var(--accent); font-weight: 600; margin-bottom: .4em; }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); max-width: 640px; }

.section { padding: 48px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2:first-child { margin-top: 0; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; box-shadow: var(--shadow);
}
.section-alt .card { background: var(--bg); box-shadow: none; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700;
}

/* Textseiten ------------------------------------------------------------ */
.page { padding: 40px 0 56px; }
.page-head { margin-bottom: 1.6em; }
.notice {
  border-left: 4px solid var(--accent); background: var(--accent-soft);
  padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 0 0 1.4em;
}
/* Kontaktformular */
.contact-head { display: grid; grid-template-columns: 1fr minmax(0, 300px); gap: 28px; align-items: center; }
.contact-head h1 { margin-top: 0; }
.contact-photo { aspect-ratio: 4 / 3; object-position: 40% 30%; }
@media (max-width: 640px) { .contact-head { grid-template-columns: 1fr; } .contact-photo { aspect-ratio: 16 / 9; } }
.contact-form-card { padding: clamp(20px, 4vw, 32px); scroll-margin-top: 96px; }
.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 600; font-size: .95rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.req { color: var(--err); }
.field input, .field select, .field textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; width: 100%; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: var(--err); }
.field-err { color: var(--err-text); font-size: .9rem; }
.notice-err { border-left-color: var(--err); background: var(--err-soft); color: var(--err-text); }
.field-human input { max-width: 200px; }
.human-check { display: flex; align-items: center; gap: 14px; justify-self: start; min-width: min(100%, 320px); padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); box-shadow: var(--shadow); }
.human-check[hidden], .field[hidden] { display: none; }
.human-check.hc-missing { border-color: var(--err); }
.hc-box { position: relative; flex: none; width: 30px; height: 30px; padding: 0; border: 2px solid var(--muted); border-radius: 6px; background: var(--surface); cursor: pointer; }
.hc-box:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hc-label { flex: 1; font-weight: 500; cursor: pointer; user-select: none; }
.hc-brand { display: flex; flex-direction: column; align-items: center; font-size: .68rem; line-height: 1.25; text-align: center; color: var(--muted); }
.hc-brand svg { width: 22px; height: 22px; margin-bottom: 2px; fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.6; }
.hc-tick { position: absolute; inset: 2px; width: 22px; height: 22px; fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
.hc-spinner { position: absolute; inset: -2px; border: 3px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; opacity: 0; }
[data-state="busy"] .hc-box { border-color: transparent; background: transparent; cursor: progress; }
[data-state="busy"] .hc-spinner { opacity: 1; animation: hc-spin .8s linear infinite; }
[data-state="done"] .hc-box { border-color: transparent; background: transparent; cursor: default; }
[data-state="done"] .hc-tick { stroke-dashoffset: 0; transition: stroke-dashoffset .35s ease-out; }
@keyframes hc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { [data-state="busy"] .hc-spinner { animation-duration: 2s; } [data-state="done"] .hc-tick { transition: none; } }
.form-privacy { margin: 0; font-size: .9rem; color: var(--muted); }
.contact-form .btn { justify-self: start; }
.form-success h2 { margin-top: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0 0 1em; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  dl.facts { grid-template-columns: 1fr; gap: 0; }
  dl.facts dd { margin-bottom: 8px; }
}

/* 404 ------------------------------------------------------------------- */
.error-page { text-align: center; padding: 72px 0; }
.error-code { font-size: clamp(3rem, 12vw, 6rem); font-weight: 800; color: var(--accent); line-height: 1; margin: 0 0 .2em; }
.error-page .actions { justify-content: center; }

/* Fußzeile -------------------------------------------------------------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 24px 0; margin-top: 32px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }

@media print {
  .site-header, .site-footer, .theme-toggle, .skip-link { display: none; }
  body { background: #fff; color: #000; }
}

/* Kleinigkeiten --------------------------------------------------------- */
.h3 { font-size: 1.1rem; margin-top: 0; }
.spaced { margin-top: 1.6em; }
.draft-banner { background: var(--mark-bg); color: var(--mark-text); font-size: .92rem; padding: 6px 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; overflow-wrap: anywhere; }
.draft-banner code { background: transparent; padding: 0; }

/* ===================================================================== */
/* Marketing-Erweiterung                                                 */
/* ===================================================================== */

:root {
  --ok: #1f9d55;
  --ok-soft: #dcf5e6;
  --ok-text: #136b3a;
  --warn: #e0a106;
  --warn-soft: #fff3cd;
  --warn-text: #7a5600;
  --err: #d64545;
  --err-soft: #fde2e2;
  --err-text: #9b2323;
  --ink: #1b2430;
  --on-ink: #e6ebf0;
  --hero-glow: #dbe7fd;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ok: #3ccf7a;
    --ok-soft: #133524;
    --ok-text: #7ee2a6;
    --warn: #f0b429;
    --warn-soft: #3a2d0a;
    --warn-text: #f7d070;
    --err: #f07070;
    --err-soft: #3d1717;
    --err-text: #f7a3a3;
    --ink: #0a0e13;
    --on-ink: #e6ebf0;
    --hero-glow: #16243d;
  }
}
:root[data-theme="dark"] {
  --ok: #3ccf7a;
  --ok-soft: #133524;
  --ok-text: #7ee2a6;
  --warn: #f0b429;
  --warn-soft: #3a2d0a;
  --warn-text: #f7d070;
  --err: #f07070;
  --err-soft: #3d1717;
  --err-text: #f7a3a3;
  --ink: #0a0e13;
  --on-ink: #e6ebf0;
  --hero-glow: #16243d;
}

/* Illustrationen (SVG in views/illustrations) ---------------------------- */
.ill { display: block; width: 100%; height: auto; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.ill-panel { fill: var(--surface); stroke: var(--border); }
.ill-soft { fill: var(--accent-soft); }
.ill-bar { fill: var(--surface-2); }
.ill-side { fill: var(--surface-2); }
.ill-card { fill: var(--surface); stroke: var(--border); }
.ill-card-strong { stroke: var(--accent); stroke-width: 1.5; }
.ill-row { fill: var(--surface-2); }
.ill-input { fill: var(--surface-2); stroke: var(--border); }
.ill-chip { fill: var(--accent); }
.ill-menu-active { fill: var(--accent); }
.ill-menu-active-soft { fill: var(--accent-soft); stroke: var(--accent); }
.ill-accent { fill: var(--accent); }
.ill-accent-soft { fill: var(--accent-soft); }
.ill-ink { fill: var(--ink); }
.ill-track { fill: var(--surface-2); }
.ill-ok { fill: var(--ok); }
.ill-warn { fill: var(--warn); }
.ill-err { fill: var(--err); }
.ill-ok-soft { fill: var(--ok-soft); }
.ill-warn-soft { fill: var(--warn-soft); }
.ill-err-soft { fill: var(--err-soft); }
.ill-dot-r { fill: #ff5f57; } .ill-dot-y { fill: #febc2e; } .ill-dot-g { fill: #28c840; }
.ill-sep, .ill-grid line { stroke: var(--border); stroke-width: 1; }
.ill-limit { stroke: var(--err); stroke-width: 1.2; stroke-dasharray: 5 4; }
.ill-flow path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 6; opacity: .7; }
.ill-pulse { fill: var(--accent); }
.ill-bars rect { fill: var(--accent); opacity: .35; }
.ill-trend { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.ill-area { fill: var(--accent); opacity: .12; }
.ill-line-accent, .ill-line-ok, .ill-line-warn { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.ill-line-accent { stroke: var(--accent); } .ill-line-ok { stroke: var(--ok); } .ill-line-warn { stroke: var(--warn); }
.ill-on-accent-line { fill: none; stroke: var(--accent-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ill-on-accent-fill { fill: var(--accent-text); }
.ill-on-ink-line { stroke: var(--on-ink); stroke-width: 1.5; }
.ill-w3 { stroke-width: 3; } .ill-w4 { stroke-width: 6; }
.ill-note { fill: var(--warn); }
.ill-clip { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; }
.ill-t { fill: var(--text); font-size: 13px; }
.ill-ts { fill: var(--muted); font-size: 11.5px; }
.ill-th { fill: var(--text); font-size: 14px; font-weight: 650; }
.ill-big { fill: var(--text); font-size: 24px; font-weight: 750; }
.ill-mono { fill: var(--muted); font: 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ill-on-accent { fill: var(--accent-text); }
.ill-on-chip { fill: var(--accent-text); }
.ill-on-ink { fill: var(--on-ink); }
.ill-ok-text { fill: var(--ok-text); } .ill-warn-text { fill: var(--warn-text); } .ill-err-text { fill: var(--err-text); } .ill-accent-text { fill: var(--accent); }
.ill-strong-muted { font-weight: 700; letter-spacing: .06em; font-size: 10.5px; }

@media (prefers-reduced-motion: no-preference) {
  .ill-flow path { animation: ill-dash 1.6s linear infinite; }
  .ill-pulse { animation: ill-pulse 2.4s ease-in-out infinite; }
}
@keyframes ill-dash { to { stroke-dashoffset: -24; } }
@keyframes ill-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

.figure {
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--surface);
}
.figure-plain { box-shadow: none; background: transparent; border-radius: 18px; }

/* Hero ------------------------------------------------------------------ */
.hero-xl {
  position: relative;
  padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 80px);
  background:
    radial-gradient(1000px 420px at 85% -10%, var(--hero-glow), transparent 70%),
    radial-gradient(700px 360px at -10% 110%, var(--hero-glow), transparent 70%);
  overflow: hidden;
}
.hero-grid { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1fr 1.2fr; } }
.hero-xl h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.025em; line-height: 1.08; }
.hero-xl h1 .accent { color: var(--accent); }
.hero-xl .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 560px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: .9rem; color: var(--muted); margin-bottom: 1.1em;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.btn-lg { padding: 13px 24px; font-size: 1.05rem; border-radius: 10px; }
/* Ohne 3D-Drehung, damit der Screenshot gestochen scharf bleibt */
.hero-tilt { transform: none; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.6em 0 0; padding: 0; list-style: none; }
.badges li { padding: 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: .88rem; font-weight: 500; }

/* Abschnitte ------------------------------------------------------------ */
.section-lg { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { max-width: 720px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -.02em; margin-top: 0; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.eyebrow-tag { display: inline-block; color: var(--accent); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .6em; }

.feature-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.feature-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 24px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); color: var(--text); }
.feature-card h3 { margin: 4px 0 2px; font-size: 1.15rem; }
.feature-card p { color: var(--muted); margin: 0; }
.feature-card .more { margin-top: auto; padding-top: 10px; color: var(--accent); font-weight: 600; }
.feature-card .more::after { content: " →"; }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; }
.feature-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1.3fr; }
  .split.reverse { grid-template-columns: 1.3fr 1fr; }
  .split.reverse > :first-child { order: 2; }
}
.split + .split { margin-top: clamp(56px, 8vw, 104px); }
.split h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); letter-spacing: -.02em; margin-top: 0; }
.split .lead { color: var(--muted); font-size: 1.08rem; }

.checks { list-style: none; padding: 0; margin: 1.2em 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231f9d55' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}
.link-more { font-weight: 600; text-decoration: none; }
.link-more::after { content: " →"; }

/* Vorteile -------------------------------------------------------------- */
.benefits { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.benefit { padding: 22px; border-radius: 16px; background: var(--bg); border: 1px solid var(--border); }
.benefit strong { display: block; font-size: 1.08rem; margin-bottom: 6px; }
.benefit p { margin: 0; color: var(--muted); }
.benefit .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-text); font-weight: 800; margin-bottom: 12px; }

/* Ablauf ---------------------------------------------------------------- */
.timeline { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); counter-reset: tl; list-style: none; padding: 0; margin: 0; }
.timeline li { counter-increment: tl; position: relative; padding: 56px 22px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.timeline li::before {
  content: counter(tl); position: absolute; left: 22px; top: 18px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 800;
}
.timeline strong { display: block; margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--muted); }

/* CTA ------------------------------------------------------------------- */
.demo-card { display: grid; gap: 24px; grid-template-columns: 1fr auto; align-items: center; padding: clamp(22px, 4vw, 36px); }
.demo-card h2 { margin: 8px 0 .4em; }
.demo-roles { display: flex; flex-wrap: wrap; gap: 8px; margin: 1em 0 0; padding: 0; list-style: none; }
.demo-roles li { padding: 4px 12px; border-radius: 999px; background: var(--surface-2); font-size: .9rem; font-weight: 500; }
.demo-action { display: grid; gap: 8px; justify-items: center; text-align: center; }
@media (max-width: 760px) { .demo-card { grid-template-columns: 1fr; } .demo-action { justify-items: start; text-align: left; } }
.cta-band {
  border-radius: 24px; padding: clamp(32px, 6vw, 64px);
  background: var(--accent); color: var(--accent-text);
  display: grid; gap: 20px; align-items: center; grid-template-columns: 1fr;
}
@media (min-width: 800px) { .cta-band { grid-template-columns: 1.4fr auto; } }
.cta-band h2 { color: inherit; margin: 0 0 .3em; font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.02em; }
.cta-band p { margin: 0; opacity: .9; font-size: 1.08rem; }
.cta-band .actions { margin: 0; }
.btn-inverse { background: var(--accent-text); color: var(--accent); border-color: var(--accent-text); }
.btn-inverse:hover { background: var(--surface); color: var(--accent); border-color: var(--surface); }
.btn-outline-inverse { background: transparent; color: var(--accent-text); border-color: currentColor; }
.btn-outline-inverse:hover { background: rgba(255, 255, 255, .12); color: var(--accent-text); border-color: currentColor; }

/* FAQ ------------------------------------------------------------------- */
.pricing-foot { display: grid; gap: 24px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: center; margin-top: 28px; }
.pricing-terms { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pricing-terms li { position: relative; padding-left: 28px; }
.pricing-terms li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.pricing-cta p { margin: 0 0 14px; }
.pricing-cta .actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.pricing-page { padding-top: 0; }
.editions { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); max-width: 900px; margin: 0 auto; }
.editions .pricing-terms { margin-top: 16px; }
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8em 0 0; color: var(--muted); }

/* Funktions-Detailseite ------------------------------------------------- */
.detail-hero { padding: clamp(32px, 6vw, 72px) 0 clamp(24px, 4vw, 48px); background: radial-gradient(900px 380px at 90% -20%, var(--hero-glow), transparent 70%); }
.detail-hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); letter-spacing: -.025em; line-height: 1.1; }
.breadcrumb { font-size: .92rem; color: var(--muted); margin-bottom: 1.2em; }
.breadcrumb a { color: var(--muted); }
.detail-sections { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.detail-sections .card h2 { font-size: 1.15rem; margin: 0 0 .5em; }
.feature-nav { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.feature-nav a { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-size: .95rem; }
.feature-nav a:hover { border-color: var(--accent); color: var(--accent); }
.feature-nav a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.next-feature { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 26px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); }
.next-feature:hover { border-color: var(--accent); color: var(--text); }
.next-feature span { color: var(--muted); }
.next-feature strong { font-size: 1.2rem; color: var(--accent); }
.footer-features { max-width: 440px; }

/* Screenshots ------------------------------------------------------------ */
.shot {
  margin: 0; border-radius: 14px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(16, 24, 40, .08), 0 18px 48px rgba(16, 24, 40, .14);
}
.shot-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.shot-bar span:nth-child(1) { background: #ff5f57; } .shot-bar span:nth-child(2) { background: #febc2e; } .shot-bar span:nth-child(3) { background: #28c840; }
.shot img { display: block; width: 100%; height: auto; image-rendering: auto; }
.shot-dark { display: none !important; }
:root[data-theme="dark"] .shot-light { display: none !important; }
:root[data-theme="dark"] .shot-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-light { display: none !important; }
  :root:not([data-theme="light"]) .shot-dark { display: block !important; }
}

/* Fotos ------------------------------------------------------------------ */
.photo { display: block; width: 100%; height: auto; border-radius: 18px; object-fit: cover; }

.photo-band { position: relative; min-height: 340px; display: grid; align-items: end; overflow: hidden; color: #fff; }
.photo-band-img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
.photo-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 14, 28, .15) 0%, rgba(8, 14, 28, .78) 100%); }
.photo-band-text { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 44px; }
.photo-band-kicker { margin: 0 0 .4em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; opacity: .85; }
.photo-band-title { margin: 0; max-width: 760px; font-size: clamp(1.5rem, 3.6vw, 2.4rem); font-weight: 750; line-height: 1.2; letter-spacing: -.02em; }

/* Anwendungsfälle -------------------------------------------------------- */
.audience-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.audience-card { display: flex; flex-direction: column; }
.audience-card h3 { margin: 10px 0 0; font-size: 1.25rem; }
.audience-card .checks { flex: 1; }
.usecase-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.usecase-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.usecase-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); color: var(--text); }
.usecase-photo { border-radius: 0; aspect-ratio: 16 / 10; }
.usecase-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.usecase-body h3 { margin: 0; font-size: 1.15rem; }
.usecase-body p { margin: 0; color: var(--muted); }
.usecase-body .more { margin-top: auto; padding-top: 10px; color: var(--accent); font-weight: 600; }
.usecase-body .more::after { content: " →"; }
.center { text-align: center; }
.center-nav { justify-content: center; }

.usecase { scroll-margin-top: 90px; }
.usecase-steps { padding-left: 1.3em; display: grid; gap: 8px; }
.usecase-result {
  position: relative; margin: 1.4em 0; padding: 18px 20px 18px 64px; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface));
  border: 1px solid var(--border); border-left: 4px solid var(--accent);
  color: var(--text); font-size: 1.05rem; font-weight: 600; line-height: 1.5;
}
.usecase-result::before {
  content: ""; position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 3L4 14h7l-1 7 9-11h-7z'/%3E%3C/svg%3E") center/16px no-repeat;
}
.usecase-result-label { display: block; margin-bottom: 2px; color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.usecase-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-link { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); text-decoration: none; font-size: .92rem; font-weight: 600; }
.tag-link:hover { background: var(--accent); color: var(--accent-text); }
.usecase-media { position: relative; }
.usecase-hero-photo { aspect-ratio: 4 / 3; }
.usecase-screen-overlap { width: 78%; margin: -22% 0 0 auto; position: relative; }
.usecase.reverse .usecase-screen-overlap { margin: -22% auto 0 0; }
@media (max-width: 600px) { .usecase-screen-overlap { width: 92%; } }

/* Lightbox --------------------------------------------------------------- */
[data-zoom] { cursor: zoom-in; }
.shot[data-zoom] { transition: transform .25s ease, box-shadow .25s ease; }
.shot[data-zoom]:hover { transform: none; box-shadow: 0 4px 10px rgba(16, 24, 40, .1), 0 26px 60px rgba(16, 24, 40, .2); }
.shot[data-zoom]::after { content: "Zum Vergrößern klicken"; position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(10, 16, 28, .72); color: #fff; font-size: .8rem; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.shot[data-zoom]:hover::after, .shot[data-zoom]:focus-visible::after { opacity: 1; }
.shot { position: relative; }
.lightbox {
  width: min(96vw, 1800px); max-width: none; max-height: 94vh; padding: 0; border: 0;
  background: transparent; overflow: visible; cursor: zoom-out;
}
.lightbox::backdrop { background: rgba(6, 10, 18, .86); backdrop-filter: blur(3px); }
.lightbox img { display: block; width: auto; height: auto; max-width: 100%; max-height: 86vh; margin: 0 auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox-caption { margin: 10px 4px 0; color: #e6ebf0; font-size: .95rem; text-align: center; }
.lightbox-close {
  position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: #fff; color: #17202b; font-size: 26px; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
}
@media (max-width: 600px) { .lightbox-close { top: -48px; right: 0; } }
html.lightbox-open { overflow: hidden; }

/* Anwendungsfälle (Seite) ----------------------------------------------- */
.uc-list { display: grid; gap: clamp(40px, 6vw, 72px); }
.uc { scroll-margin-top: 90px; border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.uc-banner { position: relative; min-height: clamp(240px, 34vw, 400px); display: grid; align-items: end; color: #fff; background: var(--ink); }
.uc-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
.uc-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 14, 28, 0) 25%, rgba(8, 14, 28, .82) 100%); }
.uc-banner-plain { background: linear-gradient(135deg, var(--accent), #0f2f6b); min-height: 200px; }
.uc-banner-text { position: relative; z-index: 1; padding: clamp(20px, 4vw, 40px); max-width: 820px; }
.uc-banner-text h2 { color: #fff; margin: .2em 0 .25em; font-size: clamp(1.6rem, 3.6vw, 2.4rem); letter-spacing: -.02em; }
.uc-banner-text p { margin: 0; font-size: clamp(1rem, 1.8vw, 1.15rem); opacity: .92; }
.uc-num { display: inline-block; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .18); backdrop-filter: blur(4px); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.uc-body { display: grid; gap: clamp(24px, 4vw, 48px); padding: clamp(22px, 4vw, 44px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .uc-body { grid-template-columns: 1fr 1.3fr; } }
.uc-text h3 { margin: 0 0 .4em; font-size: 1.05rem; color: var(--accent); }
.uc-text h3 + p { color: var(--muted); }
.uc-text p + h3, .uc-text ol + h3 { margin-top: 1.4em; }
.uc-steps { list-style: none; counter-reset: ucs; padding: 0; margin: 0 0 1.2em; display: grid; gap: 12px; }
.uc-steps li { counter-increment: ucs; position: relative; padding-left: 40px; }
.uc-steps li::before { content: counter(ucs); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-text); font-weight: 800; font-size: .85rem; }
.uc-visual { position: sticky; top: 90px; }
.uc-caption { margin: 10px 2px 0; color: var(--muted); font-size: .88rem; text-align: center; }
@media (max-width: 959px) { .uc-visual { position: static; } }
.uc-second { margin-top: 22px; }
.small-note { font-size: .92rem; margin-top: .6em; }
/* Bildausschnitt je Foto, damit Gesichter nicht unter Text oder Rand liegen */
.photo[data-photo="besprechung-laptop"] { object-position: center 80%; }
.photo[data-photo="bestandsaufnahme-netzwerkschrank"] { object-position: center 25%; }
.photo[data-photo="techniker-netzwerkschrank"] { object-position: center 22%; }
.photo[data-photo="mitarbeiterin-telefon"] { object-position: center 62%; }

.draft-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.draft-banner-close { flex: none; border: 1px solid currentColor; background: transparent; color: inherit; border-radius: 6px; padding: 2px 10px; font: inherit; font-size: .85rem; cursor: pointer; opacity: .85; }
.draft-banner-close:hover { opacity: 1; }
html.draft-hidden .draft-banner { display: none; }

/* Video ------------------------------------------------------------------ */
.video-section { padding-top: clamp(40px, 6vw, 72px); }
.video-frame { max-width: 1100px; margin: 0 auto; border-radius: 18px; overflow: hidden; background: #0a1020; box-shadow: 0 2px 6px rgba(16, 24, 40, .08), 0 24px 64px rgba(16, 24, 40, .18); }
.video-frame video { display: block; width: 100%; height: auto; }

/* Kopfbereich mit Foto (Startseite) -------------------------------------- */
.hero-photo { background: #0a1020; color: #fff; isolation: isolate; }
.hero-photo-img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; object-fit: cover; z-index: -2; }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(6, 12, 26, .92) 0%, rgba(6, 12, 26, .78) 45%, rgba(6, 12, 26, .45) 100%); }
.hero-photo h1 { color: #fff; }
.hero-photo h1 .accent { color: #8fb7ff; }
.hero-photo .lead { color: #d3dceb; }
.hero-photo .pill { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #e6ebf0; backdrop-filter: blur(4px); }
.hero-photo .badges li { background: rgba(255, 255, 255, .12); color: #e6ebf0; }
.hero-photo .btn { background: #6ea2ff; border-color: #6ea2ff; color: #0b1220; }
.hero-photo .btn:hover { background: #8fb7ff; border-color: #8fb7ff; color: #0b1220; }
.hero-photo .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.hero-photo .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

/* Sicherheitsseite ------------------------------------------------------- */
.sec-hero { min-height: clamp(420px, 52vw, 620px); display: grid; align-items: center; }
.sec-hero-text { max-width: 760px; }
.sec-photo { aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.sec-band { position: relative; min-height: 420px; display: grid; align-items: center; overflow: hidden; color: #fff; isolation: isolate; background: #050a14; }
.sec-band-img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; object-fit: cover; z-index: -2; }
.sec-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4, 8, 18, .9) 0%, rgba(4, 8, 18, .7) 50%, rgba(4, 8, 18, .3) 100%); }
.sec-band-text { padding-top: 64px; padding-bottom: 64px; }
.sec-band .pill { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #e6ebf0; }
.sec-band .pill::before { background: var(--err); }
.sec-band-title { margin: 0 0 .4em; max-width: 780px; font-size: clamp(1.7rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.sec-band-sub { margin: 0; max-width: 640px; font-size: 1.15rem; color: #c8d3e3; }
.photo[data-photo="hacker"].sec-band-img { object-position: 70% center; }

/* Neuigkeiten und Versionsstand (Daten aus config/releases.js und dem Cockpit-Versionsprotokoll) */
.release-strip { background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px 0; }
.release-strip-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.release-strip-inner .link-more { margin-left: auto; }
.release-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.release-stats div { padding: 12px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.release-stats dt { font-size: .82rem; color: var(--muted); }
.release-stats dd { margin: 2px 0 0; font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.news-item h2 { font-size: 1.2rem; margin: 0 0 8px; }
.news-item p { margin: 0 0 12px; }
.footer-version { margin-top: 6px !important; font-size: .85rem; }
.footer-version a { color: var(--muted); text-decoration: none; }
.footer-version a:hover { color: var(--accent); }
@media (max-width: 640px) { .release-strip-inner .link-more { margin-left: 0; } }

/* Große Dashboard-Ansicht auf der Startseite (etwa 1:1, damit die Schrift scharf bleibt) */
.dash-show .shot { max-width: 1048px; margin: 0 auto; }
.dash-points { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); max-width: 1048px; margin: 28px auto 0; padding: 0; list-style: none; }
.dash-points li { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.dash-points strong { display: block; margin-bottom: 2px; }
.dash-points span { color: var(--muted); font-size: .95rem; }
