/* CogniRail - öffentliche Website. Mobile first: Basis = Smartphone, größere Breiten per min-width.
   Keine externen Ressourcen, keine Inline-Styles (CSP-tauglich). Touch-Ziele mindestens 44 px. */
:root {
  --bg: #0b0f14;
  --bg-2: #0f1419;
  --bg-3: #1a2332;
  --card: #1e293b;
  --border: #2d3a4a;
  --text: #f1f5f9;
  --text-2: #b4c0cf;
  --muted: #8a99ad;
  --accent: #00d4ff;
  --accent-ink: #001018;
  --accent-2: #1e90ff;
  --l1: #22d3ee; --l2: #a855f7; --l3: #f59e0b; --l4: #10b981; --l5: #3b82f6; --l6: #ec4899;
  --ok: #10b981; --warn: #f59e0b; --fail: #ef4444; --sev: #a78bfa;
  --radius: 12px;
  --radius-sm: 8px;
  --wrap: 1200px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Fußzeile immer am unteren Rand, auch wenn die Seite kürzer als der Viewport ist (z. B. 404) */
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
}
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }
main:focus { outline: none; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px;
  border-radius: var(--radius-sm); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--accent-ink); }

/* Kopfzeile */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 20, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(45, 58, 74, 0.7);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }
.brand img { width: 40px; height: 23px; }
.brand .rail { color: var(--accent); }
.nav-toggle {
  display: none; margin-left: auto; background: transparent; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 12px; min-height: 44px; font: inherit; font-size: .95rem; cursor: pointer;
  align-items: center; gap: 8px;
}
.js .nav-toggle { display: inline-flex; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.main-nav { margin-left: auto; }
.js .main-nav { display: none; width: 100%; margin: 0 0 16px; }
.js .main-nav.is-open { display: block; }
.main-nav ul { list-style: none; display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.main-nav a:not(.btn) {
  display: flex; align-items: center; min-height: 44px; min-width: 44px;
  color: var(--text-2); text-decoration: none; font-size: .95rem; padding: 10px 12px; border-radius: var(--radius-sm);
}
.main-nav .btn { margin: 8px 0 0; padding: 9px 16px; font-size: .95rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius-sm); font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
  line-height: 1.2; min-height: 44px;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }

/* Sektionen */
.section { padding: 64px 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-alt-2 { background: var(--bg-3); }
.eyebrow { display: inline-block; color: var(--accent); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.lead { color: var(--text-2); font-size: 1.15rem; max-width: 68ch; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* Hero */
.hero { padding: 56px 0 72px; overflow: hidden; position: relative; }
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .55; }
.hero-lines path { fill: none; stroke-width: 1.5; stroke-linecap: round; }
.hero-lines .flow { stroke-dasharray: 6 18; animation: flow 14s linear infinite; }
.hero-lines .l1 { stroke: var(--l1); }
.hero-lines .l2 { stroke: var(--l2); }
.hero-lines .l3 { stroke: var(--l3); }
.hero-lines .l4 { stroke: var(--l4); }
.hero-lines .l5 { stroke: var(--l5); }
.hero-lines .l6 { stroke: var(--l6); }
.hero-lines .base { opacity: .28; }
@keyframes flow { to { stroke-dashoffset: -480; } }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 20% 40%, rgba(11, 15, 20, 0.92) 0%, rgba(11, 15, 20, 0.6) 45%, rgba(11, 15, 20, 0.2) 100%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(1.6rem, 8.4vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; margin-bottom: 22px; }
.hero h1 .hl { color: var(--accent); }
.hero h1, .prose h1 { overflow-wrap: break-word; hyphens: none; text-wrap: balance; }
/* Überzeile unter 360 px mit engerem Buchstabenabstand, damit sie bei 320 px einzeilig bleibt (ab 360 px wie alle Überzeilen) */
.hero .eyebrow { letter-spacing: .08em; }
.hero .lead { margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cta .btn { flex: 1 1 auto; }

/* App-Visual */
.visual { position: relative; }
.visual::before {
  content: ""; position: absolute; inset: 8% 6%; z-index: -1;
  background: radial-gradient(closest-side, rgba(0, 212, 255, 0.28), rgba(0, 212, 255, 0));
  filter: blur(30px);
}
.app-frame {
  background: linear-gradient(180deg, #131b26, #0f1419);
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 212, 255, 0.06);
}
.app-frame svg { width: 100%; height: auto; }
/* Karten */
.grid { display: grid; gap: 20px; }
.grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
.card {
  position: relative; background: var(--card); border-radius: var(--radius); padding: 22px;
  border: 1px solid var(--border);
  transition: transform .2s ease, border-color .2s ease;
}
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--text-2); }
.icon {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(0, 212, 255, 0.08); color: var(--accent); border: 1px solid rgba(0, 212, 255, 0.22);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card.c-l2 .icon { color: var(--l2); background: rgba(168, 85, 247, 0.08); border-color: rgba(168, 85, 247, 0.25); }
.card.c-l3 .icon { color: var(--l3); background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.25); }
.card.c-l4 .icon { color: var(--l4); background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.25); }
.card.c-l5 .icon { color: var(--l5); background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.28); }
.card.c-l6 .icon { color: var(--l6); background: rgba(236, 72, 153, 0.08); border-color: rgba(236, 72, 153, 0.25); }
.card .line-top { position: absolute; left: 28px; right: 28px; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), transparent); }

.context-line {
  margin-top: 32px; padding: 18px 22px; border-left: 3px solid var(--accent);
  background: rgba(0, 212, 255, 0.05); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-2); max-width: 900px;
}
.context-line p { margin: 0; }

/* Schritte */
.steps { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px 20px; counter-reset: step; position: relative; }
.steps::before {
  display: none; content: ""; position: absolute; top: 24px; left: 24px; right: 24px; height: 2px;
  background: linear-gradient(90deg, var(--l1), var(--l5), var(--l2), var(--l4));
  opacity: .5;
}
.step { position: relative; padding-top: 68px; }
.step .num {
  position: absolute; top: 0; left: 0; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
  background: var(--bg); border: 2px solid var(--accent); color: var(--accent);
}
.step p { color: var(--text-2); margin: 0; }

/* Ziel-Zeile */
.goal {
  margin-top: 40px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 20px; border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.12), rgba(30, 144, 255, 0.04));
  border: 1px solid rgba(0, 212, 255, 0.3);
}
.goal .goal-label { font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; }
.goal p { margin: 0; font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; }
.goal small { display: block; color: var(--muted); font-weight: 400; font-size: .9rem; margin-top: 4px; }

/* Sicherheit */
.check-list { list-style: none; display: grid; gap: 14px; }
.check-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; color: var(--text-2); }
.check-list li strong { color: var(--text); }
.check-list svg { width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: var(--ok); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }

/* KI */
.ki-list { list-style: none; display: grid; gap: 18px; margin-top: 28px; }
.ki-list li { padding-left: 18px; border-left: 2px solid var(--l2); }
.ki-list h3 { font-size: 1.05rem; margin-bottom: .3em; }
.ki-list p { color: var(--text-2); margin: 0; }
.copilot {
  margin: 0; background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(168, 85, 247, 0.08);
}
.copilot-head { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--border); background: #131b26; color: var(--text-2); font-size: .9rem; font-weight: 700; }
.copilot-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--l2); }
.copilot-q { margin: 18px 18px 14px auto; max-width: 85%; width: fit-content; padding: 10px 14px; border-radius: 12px 12px 4px 12px; background: rgba(0, 212, 255, 0.12); border: 1px solid rgba(0, 212, 255, 0.3); color: var(--text); }
.copilot-a { margin: 0 18px 18px; padding: 14px 16px; border-radius: 12px 12px 12px 4px; background: var(--bg-2); border: 1px solid var(--border); }
.copilot-a p { color: var(--text-2); margin: 0 0 .7em; font-size: .95rem; }
.copilot-a p:last-child { margin: 0; }
.copilot-hint strong { color: var(--text); }
.copilot-src { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted) !important; font-size: .85rem !important; }
.chip { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #d8b4fe; background: rgba(168, 85, 247, 0.16); border: 1px solid rgba(168, 85, 247, 0.4); }

/* Häufige Fragen */
.faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.faq-item h3 { font-size: 1.05rem; }
.faq-item p { color: var(--text-2); margin: 0; }
abbr[title] { text-decoration: underline dotted rgba(180, 192, 207, 0.5); text-underline-offset: 3px; cursor: help; }

/* Kontakt */
.contact {
  text-align: center; max-width: 820px; margin: 0 auto; padding: 40px 20px;
  border-radius: 18px; border: 1px solid var(--border);
  background: radial-gradient(ellipse at top, rgba(0, 212, 255, 0.14), rgba(0, 212, 255, 0) 60%), var(--card);
}
.contact .lead { margin: 0 auto 28px; }
.contact-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px; }


/* Textseiten */
.page { padding: 72px 0 96px; }
.prose { max-width: 760px; }
/* Mobil kleiner, damit lange Wörter wie „Datenschutzerklärung“ bei 320 px nicht im Wort brechen */
.prose h1 { font-size: clamp(1.4rem, 7.4vw, 2rem); font-weight: 800; margin-bottom: 28px; }
.prose h2 { font-size: 1.35rem; margin-top: 40px; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { padding-left: 1.25em; margin-bottom: 1em; }
.prose li { margin-bottom: .35em; }
.prose address { font-style: normal; color: var(--text); margin-bottom: 1em; }
.prose .note { color: var(--muted); font-size: .95rem; }
.notfound { display: grid; place-items: center; text-align: center; }
.notfound .lead { max-width: 46ch; margin-inline: auto; text-wrap: balance; }
.notfound-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 8px 0 0; }
.notfound .code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 12px; }

/* Fußzeile */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 48px 0 36px; color: var(--muted); font-size: .95rem; }
/* Unten Platz für „Nach oben“ (nur auf Seiten mit Knopf), damit die letzte Zeile mobil nicht verdeckt wird */
.js body:has(> .to-top) .site-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 32px; align-items: center; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0 24px; justify-content: flex-start; align-items: center; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none; }
.footer-links a[aria-current="page"] { color: var(--text); text-decoration: underline; }
.copyright { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 20px; margin: 8px 0 0; font-size: .875rem; }

/* Scroll-Reveal: nur mit JS und nur ohne reduzierte Bewegung */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Nach oben: erscheint erst nach dem Scrollen (nur mit JS), mobil oberhalb der Safe-Area */
.to-top { display: none; }
.js .to-top {
  display: grid; place-items: center; position: fixed; z-index: 40;
  right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(30, 41, 59, 0.94); color: var(--accent); border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.js .to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease; }
/* Ausgeblendet, solange ein Bedienelement im Bereich des Knopfs liegt (z. B. Karussell-Pfeile, Fragen, Kontakt) */
.js .to-top.is-visible.is-gesperrt {
  opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.to-top:focus-visible { outline-offset: 3px; border-radius: 50%; }

/* Nur für Screenreader sichtbar */
.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;
}

/* Vier Schritte als Tabs (nur mit JS; ohne JS bleibt das Raster oben) */
.step-visual { display: none; }
.stepper-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; position: relative; margin-bottom: 20px; }
.stepper-tabs::before {
  display: none; content: ""; position: absolute; top: 22px; left: 12.5%; right: 12.5%; height: 2px;
  background: linear-gradient(90deg, var(--l1), var(--l5), var(--l2), var(--l4)); opacity: .5;
}
.stepper-tab {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-height: 64px; padding: 0 2px 10px; margin: 0; background: transparent; color: var(--text-2);
  border: 0; border-bottom: 3px solid transparent; border-radius: 6px 6px 0 0;
  font: inherit; font-size: .8rem; line-height: 1.2; cursor: pointer;
}
.stepper-num {
  position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 1rem;
  background: var(--bg); border: 2px solid var(--accent); color: var(--accent);
}
.stepper-tab[aria-selected="true"] { color: var(--text); font-weight: 700; border-bottom-color: var(--accent); }
.stepper-tab[aria-selected="true"] .stepper-num { background: var(--accent); color: var(--accent-ink); }
.steps.is-stepper { display: block; }
.steps.is-stepper::before { display: none; }
.steps.is-stepper .step {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: center;
  padding: 22px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  animation: schritt-ein .2s ease;
}
.steps.is-stepper .step[hidden] { display: none; }
.steps.is-stepper .step .num { display: none; }
.steps.is-stepper .step h3 {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.steps.is-stepper .step p { font-size: 1.05rem; }
@keyframes schritt-ein { from { opacity: 0; transform: translateY(6px); } }
.js .is-stepper .step-visual {
  display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px; font-size: .875rem; line-height: 1.4; color: var(--text-2);
}
.sv-drop { border: 2px dashed rgba(0, 212, 255, 0.45); border-radius: var(--radius-sm); padding: 14px; text-align: center; }
.sv-drop-label { display: block; color: var(--text); font-weight: 700; margin-bottom: 12px; }
.sv-docs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 12px; }
.sv-doc {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; text-align: left;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-weight: 600;
}
.sv-doc::before { content: ""; flex: none; width: 11px; height: 14px; border: 1.5px solid var(--accent); border-radius: 2px; }
.sv-formats { color: var(--muted); font-size: .8rem; letter-spacing: .04em; }
.sv-list { display: grid; gap: 8px; }
.sv-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 10px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px;
}
.sv-label { color: var(--muted); min-width: 5.5em; }
.sv-val { color: var(--text); font-weight: 600; }
.sv-badge { margin-left: auto; padding: 2px 8px; border: 1px solid; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.sv-badge-ok { color: #6ee7b7; border-color: rgba(16, 185, 129, 0.5); background: rgba(16, 185, 129, 0.12); }
.sv-badge-ki { color: #d8b4fe; border-color: rgba(168, 85, 247, 0.4); background: rgba(168, 85, 247, 0.16); }
.sv-badge-sev { color: #c4b5fd; border-color: rgba(167, 139, 250, 0.5); background: rgba(167, 139, 250, 0.14); }
.sv-badge-fail { color: #fca5a5; border-color: rgba(239, 68, 68, 0.5); background: rgba(239, 68, 68, 0.14); }
.sv-badge-muted { color: var(--text-2); border-color: var(--border); background: var(--card); }
.sv-row-ki { border-color: rgba(168, 85, 247, 0.35); }
.sv-row-sev {
  border-color: rgba(167, 139, 250, 0.5);
  background: repeating-linear-gradient(45deg, rgba(167, 139, 250, 0.16) 0 6px, rgba(167, 139, 250, 0.05) 6px 12px), var(--bg-2);
}
.sv-row-ersetzt .sv-val { color: var(--muted); text-decoration: line-through; }
.sv-date {
  display: inline-block; margin-bottom: 10px; padding: 4px 10px; color: var(--text); font-weight: 700;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px;
}
.sv-export {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 10px;
  color: var(--text); font-weight: 600; border: 1px dashed var(--border); border-radius: 6px;
}
.sv-export::before { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(45deg) translate(-2px, -2px); }

/* Funktionen als Karussell (nur mit JS und nur bis 1080 px) */
.js .carousel.is-carousel .carousel-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  position: relative; padding: 4px 0 8px; scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.js .carousel.is-carousel .carousel-track > .card { flex: 0 0 86%; scroll-snap-align: start; transform: none; }
.carousel-track:focus-visible { outline-offset: 4px; border-radius: var(--radius); }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.carousel-btn {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 50%; cursor: pointer;
  background: var(--card); color: var(--accent); border: 1px solid #5b7090;
}
.carousel-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carousel-btn[aria-disabled="true"] { opacity: .45; cursor: default; }
.carousel-btn:focus-visible { border-radius: 50%; }
/* Darf bei 320 px schmaler werden, damit die Pfeile ihre 48 px behalten */
.carousel-status { margin: 0; flex: 0 1 11em; min-width: 0; text-align: center; color: var(--text-2); font-size: .95rem; font-weight: 600; }

/* Copilot-Beispiel */
.copilot-turn + .copilot-turn { border-top: 1px solid var(--border); }
.copilot-fragen { display: flex; flex-direction: column; gap: 8px; padding: 14px 18px 0; }
.copilot-frage {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; margin: 0;
  text-align: left; font: inherit; font-size: .9rem; line-height: 1.3; cursor: pointer;
  color: var(--text); background: transparent; border: 1px solid rgba(0, 212, 255, 0.6); border-radius: 999px;
}
.copilot-frage[aria-current="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.copilot-frage[aria-current="true"]::before { content: "✓"; content: "✓" / ""; font-weight: 800; }
.copilot-chat.is-demo { display: grid; }
.copilot-chat.is-demo .copilot-turn { grid-area: 1 / 1; border-top: 0; }
.copilot-chat.is-demo .copilot-turn.is-inactive { visibility: hidden; }
.copilot-chat.is-demo .copilot-q { min-height: 2.9em; }
.copilot-a { position: relative; transition: opacity .2s ease; }
.copilot-a.is-pending { opacity: 0; }
.copilot-turn.is-playing .copilot-a > p { opacity: 0; transform: translateY(4px); transition: opacity .25s ease, transform .25s ease; }
.copilot-turn.is-playing .copilot-a > p.is-shown { opacity: 1; transform: none; }
.copilot-a.is-typing::after {
  content: ""; position: absolute; left: 18px; top: 20px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--muted); box-shadow: 12px 0 var(--muted), 24px 0 var(--muted);
  animation: copilot-tippt .9s ease-in-out infinite;
}
@keyframes copilot-tippt { 50% { opacity: .35; } }

/* Häufige Fragen als Akkordeon (nur mit JS) */
.faq.is-accordion { grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 860px; }
.faq.is-accordion .faq-item { padding: 0; }
.faq.is-accordion .faq-item h3 { margin: 0; font-size: 1.05rem; }
.faq-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; min-height: 44px; margin: 0; padding: 18px 22px;
  background: transparent; color: var(--text); border: 0; border-radius: var(--radius);
  font: inherit; font-size: 1.05rem; font-weight: 700; line-height: 1.3; text-align: left; cursor: pointer;
}
.faq-toggle:focus-visible { outline-offset: -2px; border-radius: var(--radius); }
.faq-icon {
  flex: none; width: 11px; height: 11px; margin: 0 4px 4px 0;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq-toggle[aria-expanded="true"] .faq-icon { transform: rotate(-135deg); margin: 6px 4px 0 0; }
/* Nur seitlicher Abstand an der zugeklappten Antwort, damit sie mit hidden="until-found" keine Höhe hat */
.faq.is-accordion .faq-answer { margin: 0; padding: 0 22px; }
.faq.is-accordion .faq-answer:not([hidden]) { padding-bottom: 22px; }

/* Hover nur auf Geräten mit Zeiger; reine Optik, keine Funktion hängt daran */
@media (hover: hover) {
  a:hover { color: #7fe9ff; }
  .brand:hover { color: var(--text); }
  .main-nav a:not(.btn):hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
  .btn-primary:hover { background: #4fe1ff; color: var(--accent-ink); transform: translateY(-1px); }
  .btn-secondary:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
  .card:hover { transform: translateY(-2px); border-color: #3b4c61; }
  .footer-links a:hover { color: var(--accent); text-decoration: underline; }
  .to-top:hover { color: var(--text); border-color: var(--accent); }
  .js .carousel.is-carousel .carousel-track > .card:hover { transform: none; }
  .stepper-tab:hover { color: var(--text); }
  .carousel-btn:not([aria-disabled="true"]):hover, .copilot-frage:hover { border-color: var(--accent); }
  .copilot-frage:not([aria-current="true"]):hover { background: rgba(0, 212, 255, 0.08); }
  .faq-toggle:hover { color: var(--accent); }
}

/* Ab 360 px: Überzeile im Hero mit normalem Buchstabenabstand */
@media (min-width: 360px) {
  .hero .eyebrow { letter-spacing: .12em; }
}
/* Ab 641 px: Tablet */
@media (min-width: 641px) {
  body { font-size: 1.0625rem; }
  .wrap { padding: 0 24px; }
  .section { padding: 96px 0; }
  .hero h1 { font-size: clamp(2.4rem, 4vw, 3.3rem); }
  .hero-cta .btn { flex: 0 1 auto; }
  .prose h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
  .grid-2, .grid-3, .grid-4, .steps, .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-item { padding: 26px; }
  .card { padding: 28px; }
  .contact { padding: 56px 32px; }
  .goal { padding: 24px 28px; }
  .stepper-tab { font-size: .95rem; }
  .sv-docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps.is-stepper .step { padding: 28px; }
  .js .carousel.is-carousel .carousel-track > .card { flex-basis: calc(50% - 8px); }
  .copilot-fragen { flex-direction: row; flex-wrap: wrap; }
  .faq-toggle { padding: 20px 26px; }
  .faq.is-accordion .faq-answer { padding: 0 26px; }
  .faq.is-accordion .faq-answer:not([hidden]) { padding-bottom: 24px; }
}
/* Ab 901 px: zweispaltiger Hero, drei Spalten */
@media (min-width: 901px) {
  .hero { padding: 88px 0 96px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  #intelligenz .split { align-items: center; }
  .site-footer .wrap { grid-template-columns: auto 1fr; }
  .site-footer, .js body:has(> .to-top) .site-footer { padding-bottom: 36px; }
  .footer-links { justify-content: flex-end; }
  .steps.is-stepper .step { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 32px; }
}
/* Ab 961 px: Navigation ausgeklappt */
@media (min-width: 961px) {
  .site-header .wrap { min-height: 68px; }
  .js .nav-toggle { display: none; }
  .js .main-nav { display: block; width: auto; margin: 0 0 0 auto; }
  .main-nav ul { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .main-nav .btn { margin: 0 0 0 8px; }
}
/* Ab 1081 px: vier Schritte und vier Funktionsspalten */
@media (min-width: 1081px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .steps::before { display: block; }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-4 .card { padding: 24px; }
  .stepper-tabs::before { display: block; }
  .stepper-tab { font-size: 1.05rem; }
  /* Am Desktop alle acht Funktionen auf einen Blick, kein Karussell */
  .js .carousel .carousel-track { display: grid; overflow: visible; }
  .carousel-controls { display: none; }
}

@media print {
  .stepper-tabs, .copilot-fragen, .carousel-controls { display: none; }
  .steps.is-stepper .step[hidden] { display: grid; }
  .copilot-chat.is-demo { display: block; }
  .copilot-chat.is-demo .copilot-turn.is-inactive { visibility: visible; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .to-top, .js .to-top.is-visible.is-gesperrt { transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
