/* Order it Simple — Website.
   Komplett eigenständig: keine externen Ressourcen (Schrift lokal → DSGVO, kein Google-Fonts-CDN).
   Strikte CSP (nginx.conf): KEINE style-Attribute und kein Inline-CSS im HTML — alles hier. */

/* ---------- Schrift: Inter (SIL OFL 1.1, siehe fonts/OFL.txt) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/inter-latin-800-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --ink: #0b1324;
  --ink-2: #334155;
  --muted: #5b6b82;
  --line: #e3e8f0;
  --line-2: #d5deeb;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --brand: #1d4ed8;
  --brand-2: #2563eb;
  --brand-soft: #eaf0ff;
  --navy: #070e22;
  --navy-2: #0c1733;
  --ok: #16a34a;
  --warn: #d97706;
  --crit: #dc2626;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 19, 36, .06);
  --shadow: 0 1px 2px rgba(11, 19, 36, .05), 0 12px 32px -14px rgba(11, 19, 36, .22);
  --shadow-lg: 0 40px 90px -30px rgba(2, 8, 23, .75);
  --maxw: 1180px;
  --header-h: 72px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #93b4ff; outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; 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: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }
/* Icons: Lucide (wie in der App) als Sprite assets/icons.svg — erzeugt von tools/lucide-sprite.mjs */
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: .98rem; line-height: 1; white-space: nowrap;
  padding: 14px 20px; border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn .icon { width: 18px; height: 18px; stroke-width: 2.2; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(29, 78, 216, .3), 0 10px 24px -10px rgba(29, 78, 216, .75); }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #c4cfde; }
.btn-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .2); }
.btn-light:hover { background: rgba(255, 255, 255, .15); }
.btn-white { background: #fff; color: var(--brand); box-shadow: 0 12px 30px -12px rgba(2, 8, 23, .5); }
.btn-white:hover { background: #f1f5ff; }
.btn-sm { padding: 11px 16px; font-size: .93rem; border-radius: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.13rem; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: auto; height: 40px; }
.brand b { color: var(--brand); font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--ink-2); font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.site-nav a:hover { color: var(--ink); background: var(--bg-soft); text-decoration: none; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero-shell { padding: 12px 12px 0; }
.hero {
  position: relative; overflow: hidden; border-radius: 28px; color: #e7edf9;
  background:
    radial-gradient(900px 540px at 86% -12%, rgba(59, 130, 246, .36), transparent 62%),
    linear-gradient(165deg, #0f1f47 0%, #0b1736 48%, #081027 100%);
}
/* Hintergrund-Motiv: Bestandsverlauf als Sägezahn (Verbrauch → Lieferung → Verbrauch) + Meldebestand.
   Bewusst produktbezogen statt generischem Raster. Inline-SVG im HTML, hier nur Platzierung. */
.hero-bg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 150px; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr 1fr; gap: 60px; align-items: center; padding-block: 92px 184px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .15); color: #cfe0ff; font-size: .87rem; font-weight: 500;
}
.pill .tag {
  padding: 4px 9px; border-radius: 999px; color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
}
.hero h1 { margin: 22px 0 20px; color: #fff; font-size: clamp(2.6rem, 5.8vw, 4.4rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; }
.grad { background: linear-gradient(90deg, #60a5fa, #22d3ee 60%, #a5f3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 34em; color: #b9c7e0; font-size: clamp(1.06rem, 1.6vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 34px 0 0; padding: 0; list-style: none; color: #9fb2d4; font-size: .93rem; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .icon { width: 18px; height: 18px; color: #22d3ee; stroke-width: 2.4; }

/* Produkt-Vorschau (dekorativ, aria-hidden) */
.mock { position: relative; }
.window {
  overflow: hidden; border-radius: 18px; background: #fff; color: var(--ink);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .1);
  transform: perspective(1800px) rotateY(-7deg) rotateX(2deg); transform-origin: left center;
}
.win-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; background: #f2f4f8; border-bottom: 1px solid var(--line); }
.win-bar i { display: block; width: 11px; height: 11px; border-radius: 50%; }
.win-bar i:nth-child(1) { background: #ff6159; }
.win-bar i:nth-child(2) { background: #ffbd2e; }
.win-bar i:nth-child(3) { background: #28c840; }
.win-url {
  display: flex; align-items: center; gap: 6px; flex: 1; max-width: 270px; height: 24px; margin-left: 12px; padding: 0 10px;
  border-radius: 7px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: .72rem;
}
.win-url .icon { width: 12px; height: 12px; stroke-width: 2.4; color: var(--ok); }
.win-body { display: grid; grid-template-columns: 52px 1fr; }
.win-side { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 0; background: #0f1b3d; }
.win-side span { display: block; width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .12); }
.win-side span.on { background: #2563eb; box-shadow: 0 6px 14px -6px #2563eb; }
.win-main { display: grid; gap: 14px; min-width: 0; padding: 18px 20px 20px; }
.win-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.win-head strong { font-size: 1rem; letter-spacing: -0.01em; }
.win-head small { color: var(--muted); font-size: .74rem; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.kpi b { display: block; font-size: 1.35rem; line-height: 1.1; letter-spacing: -0.02em; }
.kpi span { display: block; color: var(--muted); font-size: .7rem; line-height: 1.3; }
.kpi.crit b { color: var(--crit); }
.kpi.info b { color: var(--brand); }
.kpi.warn b { color: var(--warn); }
.tasks { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.tasks-title { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; background: var(--bg-soft); color: var(--ink-2); font-size: .75rem; font-weight: 600; }
.tasks-title span { color: var(--muted); font-weight: 500; }
.task { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); }
.task p { min-width: 0; font-size: .8rem; font-weight: 600; line-height: 1.3; }
.task small { display: block; color: var(--muted); font-size: .69rem; font-weight: 500; }
.chip { padding: 3px 8px; border-radius: 999px; font-size: .64rem; font-weight: 700; letter-spacing: .02em; }
.chip.crit { background: #fee2e2; color: #b91c1c; }
.chip.warn { background: #fef3c7; color: #b45309; }
.acts { display: flex; gap: 6px; }
.acts span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--line); }
.acts .yes { color: var(--ok); background: #f0fdf4; border-color: #bbf7d0; }
.acts .no { color: var(--muted); }
.acts .icon { width: 13px; height: 13px; stroke-width: 2.6; }
.chart { padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 12px; }
.chart-title { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: var(--muted); font-size: .7rem; }
.chart-title b { color: var(--ink-2); font-weight: 600; }
.bars { position: relative; display: flex; align-items: flex-end; gap: 6px; height: 72px; }
.bars span { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #60a5fa, #2563eb); }
.bars span:nth-child(1) { height: 94%; }
.bars span:nth-child(2) { height: 86%; }
.bars span:nth-child(3) { height: 79%; }
.bars span:nth-child(4) { height: 72%; }
.bars span:nth-child(5) { height: 64%; }
.bars span:nth-child(6) { height: 55%; }
.bars span:nth-child(7) { height: 47%; }
.bars span:nth-child(8) { height: 38%; }
.bars span:nth-child(9) { height: 29%; }
.bars span:nth-child(10) { height: 21%; }
.bars span:nth-child(11) { height: 12%; }
.bars span:nth-child(12) { height: 5%; }
.bars span.low { background: linear-gradient(180deg, #fbbf24, #d97706); }
.bars span.out { background: linear-gradient(180deg, #f87171, #dc2626); }
.bars::after { content: ""; position: absolute; left: 0; right: 0; bottom: 32%; border-top: 1.5px dashed #94a3b8; }
.float-card {
  position: absolute; right: -14px; bottom: -26px; display: flex; align-items: center; gap: 12px; max-width: 270px;
  padding: 12px 14px; border-radius: 14px; background: #fff; color: var(--ink);
  box-shadow: 0 24px 50px -20px rgba(2, 8, 23, .65), 0 0 0 1px rgba(11, 19, 36, .06);
}
.float-card .ic { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #2563eb, #06b6d4); }
.float-card .ic .icon { width: 19px; height: 19px; }
.float-card b { display: block; font-size: .85rem; line-height: 1.3; }
.float-card span { display: block; color: var(--muted); font-size: .76rem; line-height: 1.35; }

/* ---------- Zielgruppe ---------- */
.audience { padding: 34px 0 0; }
.audience p { max-width: 900px; margin: 0 auto; color: var(--muted); font-size: .97rem; text-align: center; }
.audience strong { color: var(--ink-2); font-weight: 600; }

/* ---------- Sektionen ---------- */
.section { padding: 104px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow { display: inline-block; margin-bottom: 14px; color: var(--brand); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.section h2 { font-size: clamp(1.95rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -0.035em; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }

.ic-tile { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); }
.card { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card h3 { margin: 18px 0 8px; font-size: 1.06rem; font-weight: 700; }
.card p { color: var(--muted); font-size: .96rem; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Ablauf */
.step { position: relative; padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step-num {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 15px;
  color: #fff; font-size: 1.2rem; font-weight: 800; background: linear-gradient(135deg, #2563eb, #06b6d4); box-shadow: 0 12px 26px -12px rgba(37, 99, 235, .8);
}
.step h3 { margin-bottom: 10px; font-size: 1.15rem; font-weight: 700; }
.step p { color: var(--muted); font-size: .97rem; }

/* KI-Agenten (dunkel) */
.section.dark {
  color: #e7edf9;
  background:
    radial-gradient(900px 520px at 100% 0%, rgba(37, 99, 235, .35), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(6, 182, 212, .2), transparent 60%),
    var(--navy);
}
.section.dark .eyebrow { color: #67e8f9; }
.section.dark h2 { color: #fff; }
.section.dark .section-head p { color: #a9b8d3; }
.agent { padding: 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); transition: background-color .2s ease, border-color .2s ease; }
.agent:hover { background: rgba(255, 255, 255, .07); border-color: rgba(147, 197, 253, .3); }
.agent .ic-tile { background: rgba(37, 99, 235, .2); color: #93c5fd; }
.agent h3 { margin: 16px 0 8px; color: #fff; font-size: 1.06rem; font-weight: 700; }
.agent p { color: #a9b8d3; font-size: .95rem; }
.loop {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; margin-top: 28px; padding: 34px; border-radius: 22px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .2), rgba(6, 182, 212, .08)); border: 1px solid rgba(147, 197, 253, .22);
}
.loop h3 { margin-bottom: 12px; color: #fff; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.loop > div > p { color: #b9c7e0; }
.loop .note { display: flex; gap: 12px; margin-top: 20px; color: #a9b8d3; font-size: .93rem; }
.loop .note .icon { color: #67e8f9; margin-top: 2px; }
.loop-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: loop; }
.loop-steps li {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 12px; counter-increment: loop;
  background: rgba(7, 14, 34, .6); border: 1px solid rgba(255, 255, 255, .09); color: #dbe5f7; font-size: .95rem;
}
.loop-steps li::before {
  content: counter(loop); display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 8px;
  background: #2563eb; color: #fff; font-size: .8rem; font-weight: 700;
}

/* ERP-Anbindung */
.erp { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.erp .section-head { margin-bottom: 0; }
.ways { display: grid; gap: 12px; margin: 30px 0 0; padding: 0; list-style: none; }
.ways li { display: flex; gap: 14px; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.ways .icon { margin-top: 2px; color: var(--brand); }
.ways b { display: block; font-size: 1rem; }
.ways span { color: var(--muted); font-size: .94rem; }
.flow {
  display: grid; grid-template-columns: 1fr auto 1.15fr; align-items: center; gap: 18px; padding: 30px; border-radius: 22px;
  background: linear-gradient(180deg, #fff, var(--bg-soft)); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.node { padding: 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-align: center; }
.node .ic-tile { margin: 0 auto 12px; }
.node b { display: block; font-size: 1rem; }
.node small { display: block; margin-top: 4px; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.node.ois { color: #fff; text-align: left; border: 0; background: linear-gradient(135deg, #1d4ed8, #0e7490); box-shadow: 0 20px 40px -20px rgba(29, 78, 216, .8); }
.node.ois .brand-mark { width: auto; height: 42px; margin-bottom: 12px; }
.node.ois ul { display: grid; gap: 7px; margin: 12px 0 0; padding: 0; list-style: none; color: #dbeafe; font-size: .86rem; }
.node.ois li { display: flex; align-items: center; gap: 8px; }
.node.ois li .icon { width: 15px; height: 15px; stroke-width: 2.6; color: #67e8f9; }
.pipes { display: grid; gap: 10px; }
.pipe { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.pipe .icon { width: 14px; height: 14px; stroke-width: 2.6; }

/* ---------- Funktionen als Bento-Raster (dunkel) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 24px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .09);
  transition: border-color .2s ease, transform .2s ease;
}
.tile:hover { border-color: rgba(147, 197, 253, .3); transform: translateY(-2px); }
.tile h3 { color: #fff; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.tile p { color: #a9b8d3; font-size: .93rem; line-height: 1.55; }
.tile-wide { grid-column: span 2; }
.tile-head { display: flex; align-items: center; gap: 12px; }
.tile-ic { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: rgba(37, 99, 235, .22); color: #93c5fd; }
.tile-ic .icon { width: 19px; height: 19px; }
.tile-ic.crit { background: rgba(239, 68, 68, .16); color: #fca5a5; }

/* KI-Kachel (groß, 2×2) */
.tile-ki {
  grid-column: span 2; grid-row: span 2; justify-content: flex-end; min-height: 460px; padding: 34px; overflow: hidden;
  background:
    radial-gradient(460px 340px at 88% 108%, rgba(37, 99, 235, .5), transparent 70%),
    radial-gradient(320px 220px at 92% 6%, rgba(96, 165, 250, .16), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
}
.tile-logo { position: absolute; top: 28px; right: 32px; width: auto; height: 104px; filter: drop-shadow(0 16px 26px rgba(37, 99, 235, .5)); }
.tile-ki-body { display: grid; gap: 12px; max-width: 34em; }
.tile-kicker { color: #67e8f9; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tile-ki h3 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); font-weight: 800; letter-spacing: -0.03em; }
.tile-ki p { color: #b9c7e0; font-size: 1rem; }
.agent-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.agent-chips li { padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: #dbe5f7; font-size: .8rem; font-weight: 500; }
.tile-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: #93c5fd; font-size: .95rem; font-weight: 600; }
.tile-link .icon { width: 17px; height: 17px; }
.tile-link:hover { color: #fff; text-decoration: none; }

/* Mini-Visualisierungen (dekorativ, aria-hidden) — sitzen per margin-top:auto am Kachel-Boden */
.viz-range { margin-top: auto; padding-top: 10px; }
.range-track { position: relative; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.range-fill { position: absolute; top: 0; bottom: 0; left: 0; width: 46%; border-radius: 999px; background: linear-gradient(90deg, #2563eb, #60a5fa); }
.range-mark { position: absolute; top: -5px; bottom: -5px; left: 30%; width: 2px; border-radius: 2px; background: #fbbf24; }
.range-labels { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; color: #8ea2c4; font-size: .78rem; }
.range-labels span:first-child::before { content: ""; display: inline-block; width: 12px; height: 3px; margin-right: 7px; border-radius: 2px; background: #fbbf24; vertical-align: middle; }
.range-labels .crit { color: #fca5a5; font-weight: 600; }

/* Engpass-Radar: kritische Komponente (pulsierender Knoten) → blockierte Baugruppen */
.viz-bn { display: grid; grid-template-columns: 34px minmax(36px, 1fr) auto; grid-template-rows: 120px auto; align-items: center; margin-top: auto; padding-top: 8px; }
.bn-node { display: grid; place-items: center; }
.bn-dot {
  position: relative; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fca5a5, #ef4444 62%);
  box-shadow: 0 0 0 5px rgba(239, 68, 68, .16), 0 0 26px rgba(239, 68, 68, .65);
}
.bn-dot::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid rgba(248, 113, 113, .55); animation: bn-pulse 2.4s ease-out infinite; }
@keyframes bn-pulse { from { transform: scale(.55); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.bn-lines { width: 100%; height: 120px; overflow: visible; }
.bn-lines path { fill: none; stroke: rgba(248, 113, 113, .62); stroke-width: 1.6; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; animation: bn-flow 1.4s linear infinite; }
.bn-lines path.warn { stroke: rgba(251, 191, 36, .55); }
@keyframes bn-flow { to { stroke-dashoffset: -22; } }
.bn-targets { display: flex; flex-direction: column; justify-content: space-between; height: 120px; margin: 0; padding: 0; list-style: none; }
.bn-targets li {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 196px; height: 28px; padding: 0 12px;
  border-radius: 8px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: #dbe5f7; font-size: .78rem; font-weight: 500;
}
.bn-targets em { color: #fca5a5; font-size: .7rem; font-style: normal; font-weight: 700; }
.bn-targets li.warn em { color: #fcd34d; }
.tile .bn-caption { grid-column: 1 / -1; margin-top: 12px; color: #8ea2c4; font-size: .8rem; }
.tile .bn-caption b { color: #fca5a5; font-weight: 600; }

.viz-order {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; margin-top: auto; padding: 12px 14px;
  border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
}
.order-item b { display: block; color: #fff; font-size: .86rem; }
.order-item small { color: #8ea2c4; font-size: .74rem; }
.order-qty { color: #93c5fd; font-size: .9rem; font-weight: 700; }
.order-go { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 9px; background: #2563eb; color: #fff; font-size: .78rem; font-weight: 600; }
.order-go .icon { width: 15px; height: 15px; }
.viz-spark { width: 100%; height: 48px; margin-top: auto; }
.viz-spark .area { fill: rgba(96, 165, 250, .15); }
.viz-spark .line { fill: none; stroke: #60a5fa; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.viz-sources, .viz-steps, .viz-meter { display: flex; align-items: center; gap: 6px; margin-top: auto; }
.viz-sources span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.viz-sources span.on { background: #4ade80; box-shadow: 0 0 10px rgba(74, 222, 128, .5); }
.viz-steps span { flex: 1; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.viz-steps span.done { background: #4ade80; }
.viz-steps span.now { background: #fbbf24; }
.viz-meter span { position: relative; flex: 1; height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.viz-meter span::after { content: ""; position: absolute; inset: 0 8% 0 0; border-radius: 999px; background: linear-gradient(90deg, #22c55e, #4ade80); }
.viz-sources small, .viz-steps small, .viz-meter small { flex: none; margin-left: 8px; color: #8ea2c4; font-size: .76rem; }

@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-ki { grid-row: auto; min-height: 400px; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile-ki, .tile-wide { grid-column: auto; }
  .tile-ki { min-height: 0; padding: 26px; }
  .tile-logo { position: static; height: 80px; margin-bottom: 6px; }
  .bn-targets li { min-width: 0; }
  .bn-targets em { display: none; }
  .viz-order { grid-template-columns: minmax(0, 1fr) auto; }
  .order-go { display: none; }
}

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 840px; margin: 0 auto; }
.faq details { padding: 0 24px; border-radius: 14px; background: #fff; border: 1px solid var(--line); transition: box-shadow .2s ease, border-color .2s ease; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--line-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 1.04rem; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--brand); font-size: 1.5rem; font-weight: 400; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* Abschluss-CTA */
.cta { padding: 0 0 104px; }
.cta-panel {
  position: relative; overflow: hidden; padding: 68px 40px; border-radius: 28px; color: #fff; text-align: center;
  background: radial-gradient(700px 320px at 50% -30%, rgba(255, 255, 255, .25), transparent 70%), linear-gradient(135deg, #1d4ed8, #0e7490);
}
.cta-panel h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -0.035em; }
.cta-panel p { max-width: 36em; margin: 14px auto 30px; color: #dbeafe; font-size: 1.1rem; }
.cta-panel .hero-actions { justify-content: center; margin-top: 0; }
.cta-panel .mail { display: block; margin-top: 18px; color: #dbeafe; font-size: .95rem; }
.cta-panel .mail a { color: #fff; font-weight: 600; }

/* Footer */
.site-footer { padding: 64px 0 34px; background: var(--navy); color: #a9b8d3; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .brand { color: #fff; }
.site-footer .brand b { color: #60a5fa; }
.footer-about { max-width: 30em; margin-top: 14px; }
.site-footer h4 { margin: 0 0 14px; color: #fff; font-size: .9rem; font-weight: 600; letter-spacing: .01em; }
.site-footer ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: #a9b8d3; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; }

/* Rechtsseiten / 404 */
.page { padding: 76px 0 104px; }
.page .wrap { max-width: 860px; }
.page h1 { margin-bottom: 18px; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.035em; }
.page p { color: var(--ink-2); }
.page p + p { margin-top: 14px; }
.notice { margin-top: 26px; padding: 18px 20px; border-radius: 14px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; }
.page .actions { margin-top: 30px; }

/* ---------- Einblenden beim Scrollen (nur Elemente unterhalb des ersten Bildschirms, siehe site.js) ---------- */
.reveal { transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.pending { opacity: 0; transform: translateY(18px); }
.d1 { transition-delay: .07s; }
.d2 { transition-delay: .14s; }
.d3 { transition-delay: .21s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.pending { opacity: 1; transform: none; transition: none; }
  .btn, .card, .tile { transition: none; }
  .bn-dot::after, .bn-lines path { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 52px; padding-block: 72px 160px; }
  .hero-bg { height: 120px; }
  .window { transform: none; }
  .float-card { right: 12px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .erp { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 11px;
    border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 16px 18px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 30px -24px rgba(11, 19, 36, .35);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 12px; font-size: 1.02rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .loop { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 84px 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero-shell { padding: 8px 8px 0; }
  .hero { border-radius: 22px; }
  .hero-grid { padding-block: 56px 128px; }
  .hero-bg { height: 96px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .header-cta .btn { display: none; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .kpi b { font-size: 1.1rem; }
  .chart { display: none; }
  .float-card { position: static; max-width: none; margin-top: 14px; }
  .flow { grid-template-columns: 1fr; padding: 22px; }
  .pipes { grid-auto-flow: column; justify-content: center; }
  .pipe .icon { transform: rotate(90deg); }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .cta { padding-bottom: 72px; }
  .cta-panel { padding: 52px 22px; border-radius: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .win-body { grid-template-columns: 40px 1fr; }
  .win-main { padding: 14px; }
  .kpis { gap: 6px; }
  .kpi { padding: 8px; }
  .acts { display: none; }
}
