/* VCPSystem Pro – Stylesheet. Keine externen Ressourcen (Schriften = Systemschriften). */
:root {
  color-scheme: dark light;
  --bg: #061320;
  --bg-alt: #0a1c2d;
  --surface: #0e2438;
  --surface-2: #132f48;
  --text: #e9f2f9;
  --muted: #a3b8ca;
  --border: rgba(160, 200, 230, 0.16);
  --brand: #34c0e6;
  --brand-strong: #0f92b6;
  --accent: #ffd60a;
  --accent-ink: #1b1600;
  --ok: #4ade80;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f9fc;
    --bg-alt: #e9f1f7;
    --surface: #ffffff;
    --surface-2: #f0f6fb;
    --text: #0b1b2a;
    --muted: #465c70;
    --border: rgba(11, 27, 42, 0.14);
    --brand: #0a7a99;
    --brand-strong: #075f78;
    --accent: #ffd60a;
    --accent-ink: #1b1600;
    --ok: #15803d;
    --shadow: 0 10px 28px rgba(11, 27, 42, 0.12);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--font); text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw + 0.5rem, 3.4rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.55rem, 2.4vw + 0.6rem, 2.2rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 0.7rem 1rem; z-index: 100; border-radius: 0 0 8px 0; font-weight: 700; }
.skip:focus { left: 0; }
.eyebrow { display: inline-flex; gap: 0.5rem; align-items: center; font: 600 0.82rem/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--accent); border-radius: 2px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(12px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand small { display: block; font-weight: 500; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.nav { display: flex; gap: 0.2rem; align-items: center; }
.nav a { color: var(--text); text-decoration: none; padding: 0.55rem 0.8rem; border-radius: 10px; font-weight: 550; font-size: 0.97rem; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--surface-2); box-shadow: inset 0 -3px 0 var(--accent); }
.nav .ext::after { content: "↗"; font-size: 0.8em; margin-left: 0.25em; color: var(--muted); }
.nav-toggle { display: none; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 0.55rem 0.8rem; font: 600 0.95rem var(--font); cursor: pointer; }
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--border); padding: 0.6rem 1.25rem 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: 0.8rem 0.9rem; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.35rem; border-radius: 12px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; cursor: pointer; font-size: 1rem; font-family: var(--font); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(255, 214, 10, 0.25); }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(255, 214, 10, 0.4); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--brand); background: var(--surface); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4.5rem); background:
  radial-gradient(900px 420px at 12% -10%, rgba(52, 192, 230, 0.20), transparent 60%),
  radial-gradient(700px 360px at 95% 20%, rgba(255, 214, 10, 0.10), transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero h1 .mark { color: var(--text); background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 75%, transparent) 62%); padding: 0 0.12em; margin: 0 -0.12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero-art { background: linear-gradient(160deg, var(--surface), var(--surface-2)); border: 1px solid var(--border); border-radius: 22px; padding: 1.2rem; box-shadow: var(--shadow); }
.hero-art svg { width: 100%; height: auto; }
.hero-art figcaption { margin-top: 0.7rem; font-size: 0.85rem; color: var(--muted); text-align: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }
.bus-dash { stroke-dasharray: 6 10; animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -32; } }

/* Sektionen */
@media (min-width: 881px) { .sticky { position: sticky; top: 96px; } }
section { padding: clamp(2.8rem, 6vw, 5rem) 0; }
section.alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 70ch; margin-bottom: 2rem; }
.grid { display: grid; gap: 1.1rem; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.2rem; position: relative; }
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); margin-bottom: 0.9rem; }
.card .icon svg { width: 24px; height: 24px; }
a.card { text-decoration: none; color: inherit; transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease; }
a.card:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow); }
.card .more { display: inline-block; margin-top: 0.6rem; color: var(--brand); font-weight: 650; font-size: 0.95rem; }

/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-top: -2.2rem; position: relative; z-index: 2; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.stat b { display: block; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; color: var(--text); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 0.93rem; }
.stat-note { margin: 0.8rem 0 0; font-size: 0.82rem; color: var(--muted); }

/* Zeitleiste */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.4rem; border-left: 3px solid var(--border); display: grid; gap: 1.3rem; }
.timeline li { position: relative; padding-left: 1.2rem; }
.timeline li::before { content: ""; position: absolute; left: -2.02rem; top: 0.45em; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent); }
.timeline time { display: block; font: 700 0.85rem var(--mono); color: var(--brand); margin-bottom: 0.15rem; }
.timeline b { display: block; }

/* Chips / Badges */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.chip { padding: 0.4rem 0.8rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-size: 0.92rem; }
button.chip { cursor: pointer; font: inherit; color: var(--text); }
button.chip:hover { border-color: var(--brand); }
button.chip[aria-pressed="true"] { background: var(--brand-strong); color: #fff; border-color: transparent; }
.tag { display: inline-block; padding: 0.15rem 0.55rem; font: 600 0.74rem var(--font); letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); border-radius: 6px; }

/* Plattformen */
.platform { display: grid; gap: 0.6rem; }
.platform h3 { display: flex; align-items: center; gap: 0.6rem; }

/* FAQ */
details.faq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 0.7rem; }
details.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
details.faq[open] summary::after { content: "–"; }
details.faq .answer { padding: 0 1.2rem 1.1rem; color: var(--muted); }
details.faq .answer p:last-child { margin: 0; }

/* Hinweisbox */
.notice { border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--border)); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.notice h3 { margin-bottom: 0.4rem; }
.notice ul { margin: 0.4rem 0 0; }

/* CTA-Band */
.cta-band { background: linear-gradient(135deg, var(--brand-strong), #0a3a55); color: #fff; border-radius: 22px; padding: clamp(1.6rem, 4vw, 3rem); display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.cta-band h2 { margin: 0 0 0.3rem; color: #fff; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.85); }
.cta-band .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.cta-band .btn-secondary:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* Unterseiten */
.page-head { padding: clamp(2.4rem, 5vw, 4rem) 0 1.4rem; background: radial-gradient(800px 300px at 10% 0%, rgba(52, 192, 230, 0.16), transparent 60%), var(--bg); border-bottom: 1px solid var(--border); }
.page-head p { margin: 0; }
.breadcrumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.8rem; }
.breadcrumb a { color: var(--muted); }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 0.4rem 0.8rem; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--text); background: var(--surface); font-size: 0.92rem; }
.toc a:hover { border-color: var(--brand); }
.feature { display: grid; grid-template-columns: 56px 1fr; gap: 1.1rem; padding: 1.6rem 0; border-top: 1px solid var(--border); scroll-margin-top: 90px; }
.feature:first-of-type { border-top: 0; }
.feature .icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); }
.feature .icon svg { width: 28px; height: 28px; }
.feature h2 { font-size: 1.5rem; margin: 0 0 0.4rem; }
.feature p { color: var(--muted); max-width: 70ch; }
.feature p:last-child { margin-bottom: 0; }
@media (max-width: 600px) { .feature { grid-template-columns: 1fr; } }

/* OCF-Verzeichnis */
.ocf-tools { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.search { position: relative; }
.search input { width: 100%; padding: 0.95rem 1.1rem 0.95rem 2.8rem; border-radius: 12px; border: 2px solid var(--border); background: var(--surface); color: var(--text); font: 400 1.05rem var(--font); }
.search input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent); }
.search svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.ocf-count { font-weight: 650; }
.ocf-cat { margin-bottom: 2rem; }
.ocf-cat h2 { font-size: 1.35rem; display: flex; align-items: baseline; gap: 0.6rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.ocf-cat h2 span { font: 600 0.85rem var(--mono); color: var(--muted); }
.ocf-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0.5rem 1.5rem; }
.ocf-list li { padding: 0.45rem 0 0.45rem 1.2rem; position: relative; border-bottom: 1px dashed var(--border); }
.ocf-list li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 7px; height: 7px; background: var(--accent); border-radius: 2px; transform: rotate(45deg); }
.ocf-list mark { background: color-mix(in srgb, var(--accent) 55%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
.is-hidden { display: none !important; }
.empty { padding: 2rem; text-align: center; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted); }

/* Glossar */
.glossary dt { font-weight: 750; margin-top: 1.4rem; scroll-margin-top: 90px; }
.glossary dt small { font: 600 0.8rem var(--mono); color: var(--brand); margin-left: 0.4rem; }
.glossary dd { margin: 0.2rem 0 0; color: var(--muted); max-width: 70ch; }

/* Formular */
.form { display: grid; gap: 1.1rem; max-width: 640px; }
.field label { display: block; font-weight: 650; margin-bottom: 0.35rem; }
.field input, .field select, .field textarea { width: 100%; padding: 0.8rem 1rem; border: 2px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: 400 1rem var(--font); }
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent); }
.field .hint { font-size: 0.88rem; color: var(--muted); margin-top: 0.3rem; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: 0.3rem; accent-color: var(--brand-strong); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 1rem 1.2rem; border-radius: var(--radius-sm); border: 1px solid; margin-bottom: 1.2rem; }
.alert-error { border-color: #f87171; background: color-mix(in srgb, #f87171 12%, var(--surface)); }
.alert-ok { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--surface)); }
.alert ul { margin: 0.4rem 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 2.6rem 0 2rem; margin-top: 2rem; font-size: 0.96rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.footer-grid h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.8rem; font-weight: 700; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.footer-grid a { color: var(--text); text-decoration: none; }
.footer-grid a:hover { color: var(--brand); text-decoration: underline; }
.footer-bottom { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.88rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

@media (max-width: 560px) { .stats { grid-template-columns: 1fr 1fr; margin-top: 1.2rem; } .stat { padding: 0.9rem 1rem; } }
@media (max-width: 480px) { .brand small { display: none; } .btn-row .btn { width: 100%; } }

@media print { .site-header, .site-footer, .btn-row, .nav-toggle { display: none; } body { background: #fff; color: #000; } }

/* Tabellen, Schrittliste, Linkliste (System- und Ressourcen-Seiten) */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 0.85rem 1.1rem; text-align: left; vertical-align: top; border-top: 1px solid var(--border); }
.tbl tr:first-child th, .tbl tr:first-child td { border-top: 0; }
.tbl th { font-weight: 650; width: 28%; min-width: 11rem; }
.tbl td { color: var(--muted); }
.tbl td.num { white-space: nowrap; text-align: right; font: 700 1rem var(--mono); color: var(--text); width: 5.5rem; }
.steps { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.6rem; }
.steps li::marker { color: var(--brand); font-weight: 800; }
.linklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.linklist li { padding: 0.7rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.linklist a { text-decoration: none; font-weight: 600; }
.linklist a:hover { text-decoration: underline; }
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { border-color: var(--brand); }

.tbl td.act { white-space: nowrap; text-align: right; width: 7rem; }
.tbl td.act a { font-weight: 650; text-decoration: none; }
.tbl td.act a:hover { text-decoration: underline; }
