/* deCode – Interaktive Systeme · Landingpage */

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/jbmono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/jbmono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #f6f6f4;
  --bg-alt: #eeeeeb;
  --surface: #ffffff;
  --ink: #0e1116;
  --text: #2a2f37;
  --muted: #666d77;
  --faint: #969ca5;
  --line: #e0e0dc;
  --line-strong: #cfcfca;
  --accent: #2350d8;
  --accent-ink: #1a3ca8;
  --accent-soft: #e9eefc;
  --dark: #0e1116;
  --dark-2: #161a20;
  --dark-line: #262c34;
  --dark-text: #c5cbd3;
  --ok: #1f9d55;
  --err: #c0392b;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  font-feature-settings: "cv11", "ss01", "tnum" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: .78em; letter-spacing: .02em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn .i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #242a33; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand-logo { height: 26px; width: auto; }
.brand-sub { font-size: 13.5px; color: var(--muted); padding-left: 14px; border-left: 1px solid var(--line-strong); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--text); position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-cta { margin-left: 4px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 18px; height: 1.6px; background: var(--ink); margin: 0 auto; position: relative; transition: transform .25s var(--ease), background-color .2s; }
.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; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.hero::before {
  /* dezentes perspektivisches Raster */
  content: ""; position: absolute; inset: auto -20% 0 -20%; height: 62%;
  background-image:
    linear-gradient(to right, rgba(14,17,22,.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14,17,22,.055) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(900px) rotateX(62deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.eyebrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.eyebrow span {
  font: 500 12.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
}
.hero h1 { font-size: clamp(2.1rem, 1.1rem + 3.9vw, 4.1rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 17ch; }
.hero h1 .h1-soft { color: var(--faint); font-weight: 500; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1.15fr) auto; gap: 40px; align-items: end; margin-top: 32px; }
.lead { font-size: clamp(1.05rem, .98rem + .35vw, 1.22rem); line-height: 1.6; color: var(--text); max-width: 60ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-shot { margin: clamp(40px, 6vw, 64px) 0 0; }
.frame { position: relative; border-radius: var(--radius); background: var(--surface); padding: 8px; border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 30px 60px -30px rgba(14,17,22,.28), 0 12px 24px -16px rgba(14,17,22,.14); }
.frame img { border-radius: 8px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #e4e7eb; }
.corner { position: absolute; width: 14px; height: 14px; border-color: var(--ink); border-style: solid; opacity: .5; }
.corner.tl { top: -9px; left: -9px; border-width: 1px 0 0 1px; }
.corner.tr { top: -9px; right: -9px; border-width: 1px 1px 0 0; }
.corner.bl { bottom: -9px; left: -9px; border-width: 0 0 1px 1px; }
.corner.br { bottom: -9px; right: -9px; border-width: 0 1px 1px 0; }
figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); }
figcaption .mono { color: var(--ink); text-transform: uppercase; letter-spacing: .06em; margin-right: 10px; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line-strong); }
.facts li { padding: 20px 20px 0 0; display: grid; gap: 2px; }
.facts li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.facts strong { color: var(--ink); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.facts span { font-size: 14.5px; color: var(--muted); }

/* ---------- Technologie ---------- */
.tech { background: var(--dark); color: var(--dark-text); }
.tech-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.tech-title { color: #fff; font-size: clamp(1.25rem, 1rem + .9vw, 1.6rem); line-height: 1.3; font-weight: 500; letter-spacing: -0.015em; }
.tech-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-list li { font: 400 13.5px/1 var(--mono); color: #dfe3e8; padding: 10px 13px; border: 1px solid var(--dark-line); border-radius: 8px; background: var(--dark-2); }

/* ---------- Sektionen ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--bg-alt); }
.sec-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 64px); }
.sec-num { font: 500 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.sec-num span { color: var(--accent); }
.sec-num::after { content: ""; width: 40px; height: 1px; background: var(--line-strong); }
.sec-head h2, .profile h2 { font-size: clamp(1.75rem, 1.1rem + 2.3vw, 2.75rem); line-height: 1.12; letter-spacing: -0.03em; }
.sec-lead { margin-top: 18px; font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.note { margin-top: 28px; font-size: 13.5px; color: var(--faint); }

/* Leistungen */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-strong); }
.service { padding: 36px 32px 8px 0; }
.service + .service { padding-left: 32px; border-left: 1px solid var(--line); }
.svc-ico { width: 44px; height: 44px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 26px; }
.service h3 { font-size: 1.3rem; margin-bottom: 12px; letter-spacing: -0.02em; }
.service p { color: var(--text); font-size: 16px; }
.ticks { margin-top: 20px; display: grid; gap: 8px; }
.ticks li { font-size: 15px; color: var(--muted); padding-left: 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--accent); }

/* Anwendungsfälle */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.case:hover { box-shadow: 0 24px 48px -28px rgba(14,17,22,.3); }
.case-img { margin: 0; background: #e4e7eb; border-bottom: 1px solid var(--line); overflow: hidden; }
.case-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--ease); }
.case:hover .case-img img { transform: scale(1.015); }
.case-body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.case-tag { color: var(--accent); text-transform: uppercase; letter-spacing: .07em; font-size: 12px; }
.case h3 { font-size: 1.28rem; letter-spacing: -0.02em; }
.case p { font-size: 15.5px; color: var(--text); }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.meta li { font: 400 12.5px/1 var(--mono); color: var(--muted); padding: 7px 10px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); }

/* ---------- Showroom (dunkel) ---------- */
.showroom { background: var(--dark); color: var(--dark-text); }
.showroom .sec-head h2, .showroom h3 { color: #fff; }
.showroom .sec-num { color: #8d96a2; }
.showroom .sec-num span { color: #8fb0ff; }
.showroom .sec-num::after { background: var(--dark-line); }
.showroom .sec-lead { color: #9aa3ae; }

.demos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.demo-stage {
  position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden;
  background: #e6e9ed; border: 1px solid var(--dark-line); isolation: isolate;
}
.demo[data-demo="twin"] .demo-stage { background: #e3e6ea; }
.demo-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), filter .5s var(--ease); }
.demo-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,17,22,0) 45%, rgba(14,17,22,.38)); pointer-events: none; transition: opacity .4s var(--ease); z-index: 1; }
.demo-start {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 24px 0 18px;
  border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-weight: 600; font-size: 16px; cursor: pointer; white-space: nowrap;
  box-shadow: 0 16px 32px -12px rgba(0,0,0,.45);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.demo-start:hover { background: #242a33; transform: translate(-50%, -50%) scale(1.03); }
.demo-start svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: #fff; fill: var(--ink); }
.demo-hint { position: absolute; left: 16px; bottom: 14px; z-index: 2; color: rgba(255,255,255,.9); font-size: 12px; }
.demo-caption { padding: 22px 4px 0; }
.demo-caption h3 { font-size: 1.2rem; margin-bottom: 6px; }
.demo-caption p { color: #9aa3ae; font-size: 15.5px; max-width: 56ch; }

.demo.loading .demo-start span::after { content: " …"; }
.demo.loading .demo-start { pointer-events: none; opacity: .85; }
.demo.live .demo-poster, .demo.live .demo-start, .demo.live .demo-hint { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.demo.live .demo-stage::after { opacity: 0; }
.demo-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; touch-action: none; outline: none; }

/* Demo-UI (Overlay über dem Canvas) */
.dui { position: absolute; inset: 0; pointer-events: none; z-index: 3; font-size: 14px; color: var(--ink); }
.dui > * { pointer-events: auto; }
.dui-top { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; pointer-events: none; }
.dui-badge { pointer-events: none; font: 500 11.5px/1 var(--mono); letter-spacing: .04em; color: #39414b; background: rgba(255,255,255,.86); border: 1px solid rgba(14,17,22,.08); padding: 7px 9px; border-radius: 7px; display: inline-flex; align-items: center; gap: 7px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.dui-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.dui-bar {
  position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between;
}
.dui-group { display: flex; gap: 6px; align-items: center; background: rgba(255,255,255,.92); border: 1px solid rgba(14,17,22,.08); border-radius: 12px; padding: 5px; box-shadow: 0 8px 24px -12px rgba(14,17,22,.3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; position: relative; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.swatch[aria-pressed="true"]::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent); }
.tbtn { min-height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-weight: 600; font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.tbtn:hover { background: #eef0f3; }
.tbtn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.tbtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tbtn.warn[aria-pressed="true"] { background: #b3261e; }

.twin-panel { position: absolute; right: 12px; top: 52px; width: min(240px, 46%); background: rgba(255,255,255,.94); border: 1px solid rgba(14,17,22,.08); border-radius: 12px; padding: 12px 14px; box-shadow: 0 8px 24px -12px rgba(14,17,22,.3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.twin-panel h4 { margin: 0 0 2px; font-size: 14.5px; color: var(--ink); }
.twin-panel .st { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.twin-panel .st i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.twin-panel .st.warn i { background: #e0a100; }
.twin-panel .st.stop i { background: #d23a2f; }
.twin-panel dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; font-size: 13px; }
.twin-panel dt { color: var(--muted); }
.twin-panel dd { margin: 0; font-family: var(--mono); font-size: 12.5px; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.demo-error { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--ink); background: #e6e9ed; z-index: 4; font-size: 15px; }

/* Clips */
.clips-head { margin: clamp(64px, 8vw, 96px) 0 24px; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--dark-line); padding-top: 32px; }
.clips-head h3 { font-size: 1.3rem; }
.clips-head p { color: #9aa3ae; font-size: 15.5px; }
.clips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.clip { margin: 0; }
.clip video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-sm); background: #1b2027; border: 1px solid var(--dark-line); }
.clip figcaption { color: #9aa3ae; font-size: 14px; }
.clip figcaption .mono { color: #8fb0ff; }

/* ---------- Vorteile ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.value { padding: 32px 28px 0 0; }
.value + .value { padding-left: 28px; border-left: 1px solid var(--line); }
.value-k { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--ink); margin-bottom: 22px; font-size: 13px; }
.value h3 { font-size: 1.2rem; margin-bottom: 10px; }
.value p { font-size: 15.5px; color: var(--text); }

.specs { margin: clamp(48px, 7vw, 80px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.specs div { padding: 28px 28px 26px; }
.specs div + div { border-left: 1px solid var(--line); }
.specs dt { font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); font-weight: 600; color: var(--ink); letter-spacing: -0.035em; line-height: 1; }
.specs dd { margin: 10px 0 0; font-size: 14.5px; color: var(--muted); }

.process { margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: p; }
.process li { padding: 22px 24px 0 0; border-top: 2px solid var(--line-strong); position: relative; }
.process li:first-child { border-top-color: var(--ink); }
.process li + li { padding-left: 0; }
.process .mono { color: var(--accent); font-size: 12.5px; }
.process h3 { font-size: 1.08rem; margin: 8px 0 6px; }
.process p { font-size: 15px; color: var(--muted); padding-right: 12px; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.profile h2 { margin-bottom: 22px; }
.profile > p { color: var(--text); margin-bottom: 14px; max-width: 54ch; }
.person { display: flex; gap: 18px; align-items: center; margin: 36px 0 28px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.avatar { width: 84px; height: 84px; flex: none; border-radius: 50%; background: var(--bg-alt); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar svg { width: 36px; height: 36px; fill: none; stroke: var(--faint); stroke-width: 1.5; }
.person-role { color: var(--accent); text-transform: uppercase; letter-spacing: .07em; font-size: 11.5px; margin-bottom: 4px; }
.person-name { font-weight: 600; color: var(--ink); font-size: 1.08rem; }
.person-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; font-size: 15px; }
.person-links a { text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line-strong); padding: 6px 0 2px; }
.person-links a:hover { border-bottom-color: var(--ink); }
.addr { font-style: normal; font-size: 15px; color: var(--muted); line-height: 1.6; }

.request { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(24px, 4vw, 40px); box-shadow: 0 30px 60px -40px rgba(14,17,22,.3); }
.request h3 { font-size: 1.4rem; margin-bottom: 6px; }
.request-lead { color: var(--muted); font-size: 15.5px; margin-bottom: 22px; }
.request-list { display: grid; gap: 10px; margin-bottom: 28px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.request-list li { font-size: 15px; color: var(--text); padding-left: 22px; position: relative; }
.request-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--accent); }
.request-alt { margin-top: 16px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.request-alt a { color: var(--ink); }

/* ---------- Vergrößern (Lightbox) ---------- */
[data-zoom] { position: relative; }
.zoom-btn {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; padding: 0; border: 0; background: transparent;
  cursor: zoom-in; -webkit-tap-highlight-color: transparent;
}
.clip .zoom-btn { inset: 0 0 auto 0; height: auto; aspect-ratio: 16 / 10; }
.frame .zoom-btn { inset: 8px; width: auto; height: auto; border-radius: 8px; }
.zoom-ico {
  position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(14,17,22,.72); color: #fff; opacity: 0; transform: scale(.92);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.zoom-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.zoom-btn:hover .zoom-ico, .zoom-btn:focus-visible .zoom-ico { opacity: 1; transform: none; }
.zoom-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: none) { .zoom-ico { opacity: 1; transform: none; width: 32px; height: 32px; right: 10px; top: 10px; } }

.lb {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(10,12,15,.94); color: #fff; overflow: hidden;
}
.lb::backdrop { background: rgba(10,12,15,.6); }
.lb[open] { display: grid; animation: lb-in .2s var(--ease); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-fig { margin: 0; display: grid; place-items: center; align-content: center; gap: 14px; padding: 64px 72px 56px; min-height: 0; height: 100dvh; }
.lb-media { display: grid; place-items: center; min-height: 0; width: 100%; height: 100%; }
.lb-media img, .lb-media video { max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); background: #1b2027; }
.lb-media video { width: min(100%, calc((100dvh - 150px) * 1.6)); }
.lb-cap { color: #c5cbd3; font-size: 15px; text-align: center; max-width: 80ch; }
.lb-cap .mono, .lb-count { font-family: var(--mono); }
.lb-count { position: absolute; left: 20px; top: 20px; margin: 0; font-size: 13px; color: #8d96a2; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; cursor: pointer;
  transition: background-color .2s var(--ease);
}
.lb-btn:hover { background: rgba(255,255,255,.16); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { right: 16px; top: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }
@media (max-width: 700px) {
  .lb-fig { padding: 64px 12px 84px; }
  .lb-media img, .lb-media video { max-height: calc(100dvh - 190px); border-radius: 6px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

/* ---------- Demo-Vollbild ---------- */
.dui-right { display: flex; gap: 6px; align-items: flex-start; }
.dui-fs {
  pointer-events: auto; width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(14,17,22,.08);
  background: rgba(255,255,255,.9); color: var(--ink); display: grid; place-items: center; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.dui-fs:hover { background: #fff; }
.dui-fs svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.demo-stage:fullscreen { border-radius: 0; border: 0; aspect-ratio: auto; }
.demo-stage.is-expanded {
  position: fixed; inset: 0; z-index: 200; aspect-ratio: auto; width: 100vw; height: 100dvh; border-radius: 0; border: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
body.demo-expanded { overflow: hidden; }
body.demo-expanded .site-header { visibility: hidden; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; color: var(--text); padding: 6px 0; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Einblend-Animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .brand-sub { display: none; }
  .hero-row { grid-template-columns: 1fr; gap: 28px; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .value:nth-child(3) { padding-left: 0; border-left: 0; }
  .value:nth-child(n+3) { margin-top: 32px; border-top: 1px solid var(--line); }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .specs div:nth-child(3) { border-left: 0; }
  .specs div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  :root { --header-h: 62px; }
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 32px;
    background: var(--bg); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .nav a:not(.btn) { font-size: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav-cta { margin: 24px 0 0; min-height: 54px; font-size: 16px; }
  body.menu-open { overflow: hidden; }

  .hero-row { grid-template-columns: 1fr; gap: 28px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { margin-top: 12px; }
  .tech-inner { grid-template-columns: 1fr; gap: 24px; }
  .services { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 32px 0; border-left: 0; }
  .service + .service { border-top: 1px solid var(--line); }
  .cases { grid-template-columns: 1fr; }
  .demos { grid-template-columns: 1fr; }
  .clips { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .frame { padding: 4px; border-radius: 10px; }
  .frame img { border-radius: 7px; }
  .corner { display: none; }
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 16px 0 0; border-left: 0; margin-top: 0; }
  .values, .specs { grid-template-columns: 1fr; }
  .value, .value + .value { padding: 28px 0 0; border-left: 0; }
  .value + .value { margin-top: 28px; border-top: 1px solid var(--line); }
  .specs div + div { border-left: 0; border-top: 1px solid var(--line); }
  .process { grid-template-columns: 1fr; }
  .case-body { padding: 22px 20px 24px; }
  .demo-stage { aspect-ratio: 4 / 5; }
  .dui-bar { flex-direction: column; align-items: stretch; }
  .dui-group { justify-content: space-between; }
  .demo[data-demo="twin"] .demo-stage { aspect-ratio: 3 / 4; }
  .demo[data-demo="twin"] .dui-bar { flex-direction: row; flex-wrap: nowrap; }
  .demo[data-demo="twin"] .dui-group:first-child { flex: 1; }
  .demo[data-demo="twin"] .dui-bar .tbtn span { display: none; }
  .twin-panel { top: 50px; left: 12px; right: 12px; width: auto; padding: 10px 12px; }
  .twin-panel h4 { font-size: 13.5px; }
  .twin-panel .st { margin-bottom: 6px; }
  .twin-panel dl { grid-template-columns: auto 1fr auto 1fr; gap: 3px 8px; font-size: 12px; }
  .twin-panel dl > :nth-child(n+9) { display: none; }
  .person { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
