/* ki.vision – Travido GmbH, 11/2026 */
@font-face {
  font-family: "TravidoSans";
  src: url("../fonts/LiberationSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TravidoSans";
  src: url("../fonts/LiberationSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #9E1A22;
  --red-soft: #F6E8E9;
  --red-line: #E2C9CB;
  --red-deep: #7A1219;
  --dark: #222222;
  --gray: #4D4D4D;
  --muted: #5E5E5E;
  --line: #D5D5D5;
  --bg: #F4F4F4;
  --bg-cool: #EEF1F4;
  --blue: #3D5468;
  --blue-deep: #2A3B4A;
  --blue-soft: #E6EBF0;
  --white: #FFFFFF;
  --hero: #161B20;
  --hero-2: #1C252D;
  --device: #161A1F;
  --device-2: #1E242B;
  --ok: #2E7A4F;
  --warn: #C4922A;
  --shadow: 0 10px 28px rgba(22, 27, 32, 0.08);
  --radius: 12px;
  --max: 1120px;
  --header-h: 72px;
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--red);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "TravidoSans", "Liberation Sans", Arial, Helvetica, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.5;
  font-size: 17px;
}

img { max-width: 100%; height: auto; display: block; }
button, a { font-family: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 1000;
  background: var(--red);
  color: #fff;
  padding: 8px 14px;
  text-decoration: none;
  font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 2px solid var(--red);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}
.logo {
  height: 28px;
  width: auto;
  flex-shrink: 0;
}
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.nav a {
  color: var(--gray);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 8px;
}
.nav a:hover, .nav a:focus-visible { color: var(--red); background: var(--red-soft); }
.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.lang button {
  border: 0;
  background: var(--white);
  color: var(--gray);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 7px 10px;
}
.lang button[aria-pressed="true"] {
  background: var(--dark);
  color: #fff;
}
.lang button:not([aria-pressed="true"]):hover { background: var(--bg); }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 80% 40%, rgba(158, 26, 34, 0.22), transparent 60%),
    linear-gradient(180deg, var(--hero) 0%, var(--hero-2) 100%);
  color: #fff;
  padding: 56px 0 64px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d7c4c6;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.hero h1 .brand { color: #f3d5d7; }
.claims {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0 20px;
}
.claim-line {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}
.claim-line em {
  font-style: normal;
  color: #f0c9cc;
}
.lead {
  color: #c9d0d6;
  font-size: 17px;
  max-width: 38em;
  margin-bottom: 24px;
}
.nowrap { white-space: nowrap; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 0;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-ok:hover { filter: brightness(1.05); }
.btn-quiet {
  background: #2a3138;
  color: #e8ecef;
  border: 1px solid #3d4650;
}
.btn-danger {
  background: transparent;
  color: #e8ecef;
  border: 1px solid #5a6270;
}
.btn-danger.is-armed, .btn-danger:not(:disabled):hover {
  background: #3a2020;
  border-color: #c45a5a;
  color: #fff;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Vehicle */
.vehicle-wrap {
  position: relative;
  min-height: 0;
}
.vehicle-svg { width: 100%; height: auto; display: block; max-height: 520px; }
.cone {
  fill: rgba(158, 26, 34, 0.22);
  stroke: rgba(243, 213, 215, 0.55);
  stroke-width: 1.2;
  transform-box: fill-box;
  animation: conePulse 3.6s ease-in-out infinite;
}
.cone.front { transform-origin: 50% 100%; }
.cone.rear {
  transform-origin: 50% 0%;
  animation-delay: -0.9s;
  fill: rgba(158, 26, 34, 0.16);
}
.cone.left {
  transform-origin: 100% 50%;
  animation-delay: -1.8s;
  fill: rgba(61, 84, 104, 0.28);
  stroke: rgba(198, 214, 226, 0.45);
}
.cone.right {
  transform-origin: 0% 50%;
  animation-delay: -2.7s;
  fill: rgba(61, 84, 104, 0.28);
  stroke: rgba(198, 214, 226, 0.45);
}
.cone.is-hit {
  fill: rgba(214, 70, 76, 0.45);
  stroke: #f3d5d7;
  animation: coneHit 1.1s ease-in-out infinite;
}
@keyframes conePulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
@keyframes coneHit {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
.scan-ring {
  fill: none;
  stroke: rgba(243, 213, 215, 0.35);
  stroke-width: 1.5;
  stroke-dasharray: 6 10;
  animation: scanSpin 14s linear infinite;
  transform-origin: 320px 228px;
  transform-box: view-box;
}
@keyframes scanSpin { to { transform: rotate(360deg); } }

.cam-dot { fill: #f3d5d7; }
.caption-cams {
  text-align: center;
  margin-top: 8px;
  font-size: 13px;
  color: #b7c0c8;
}

/* ===== Sections ===== */
section.block { padding: 72px 0; scroll-margin-top: 96px; }
.hero { scroll-margin-top: 80px; }
section.block.alt { background: var(--bg); }
.slabel {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
h2 {
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.intro {
  color: var(--gray);
  max-width: 46em;
  margin-bottom: 32px;
}

/* Process */
.process {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.step-btn {
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px 10px 14px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  color: inherit;
}
.step-btn:hover { border-color: #bbb; }
.step-btn[aria-current="step"], .step-btn.is-active {
  border-color: var(--red);
  background: #FBF6F6;
  box-shadow: inset 3px 0 0 var(--red);
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-btn[aria-current="step"] .step-num,
.step-btn.is-active .step-num { background: var(--red); }
.step-btn .ttl,
.step-btn .sub { display: block; }
.step-btn .ttl { font-weight: 700; font-size: 14px; line-height: 1.3; }
.step-btn .sub { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.step-btn.is-branch {
  background: var(--blue-soft);
}
.step-detail {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  min-height: 280px;
  box-shadow: var(--shadow);
}
.step-detail h3 { font-size: 22px; margin-bottom: 10px; }
.step-detail p { color: var(--gray); margin-bottom: 12px; }
.parallel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.par {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: var(--bg-cool);
}
.par h4 { font-size: 15px; margin-bottom: 6px; color: var(--blue-deep); }
.par p { font-size: 14px; margin: 0; }
.step-nav {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}
.step-nav .btn {
  background: var(--bg);
  color: var(--dark);
  border: 1px solid var(--line);
}
.step-nav .btn:hover { background: var(--blue-soft); }
.human-note {
  margin-top: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--red-soft);
  border: 1px solid var(--red-line);
  border-radius: 10px;
  padding: 14px 16px;
}
.human-note strong { color: var(--red); display: block; margin-bottom: 2px; }
.human-note p { margin: 0; font-size: 15px; color: var(--dark); }
.branch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.branch article {
  border-radius: 10px;
  padding: 14px;
  border: 1px solid var(--line);
}
.branch .yes { background: #eef7f1; border-color: #b7d8c4; }
.branch .no { background: #f3f4f6; }

/* Simulation */
.sim-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: start;
}
.scenario-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.scenario-row .btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--dark);
}
.scenario-row .btn.is-on,
.scenario-row .btn[aria-pressed="true"] {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--red-deep);
}
.timeline {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 8px;
  margin-bottom: 16px;
}
.t-steps { list-style: none; }
.t-steps li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  padding: 6px 0;
  color: var(--muted);
  border-bottom: 1px solid #eee;
  font-size: 14px;
}
.t-steps li:last-child { border-bottom: 0; }
.t-steps li .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #fff;
  margin-top: 1px;
}
.t-steps li.done { color: var(--dark); font-weight: 700; }
.t-steps li.done .dot { background: var(--red); border-color: var(--red); }
.t-steps li.now { color: var(--red); font-weight: 700; }
.t-steps li.now .dot {
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
  animation: nowPulse 1.4s ease-in-out infinite;
}
.t-steps li.done.now, .t-steps li.is-done-final { color: var(--dark); }
.t-steps li.is-done-final .dot { background: var(--red); border-color: var(--red); box-shadow: none; animation: none; }
@keyframes nowPulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--red-soft); }
  50% { box-shadow: 0 0 0 7px #f3d5d7; }
}

.device {
  background: var(--device);
  color: #e8ecef;
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  border: 1px solid #2c333b;
}
.device-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2c333b;
}
.device-top .name {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9aa3ab;
  font-weight: 700;
}
.device-top .flag { color: var(--warn); font-weight: 700; font-size: 13px; }
.preview {
  background: #0f1215;
  border-radius: 10px;
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  margin-bottom: 12px;
  border: 1px solid #2c333b;
  text-align: center;
  padding: 0;
  color: #9aa3ab;
  font-size: 14px;
  overflow: hidden;
  position: relative;
}
.preview.is-on { color: #e8ecef; }
.preview.has-video { min-height: 0; }
.preview-fallback {
  padding: 16px;
  min-height: 132px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
}
.preview-fallback[hidden] { display: none !important; }
.preview .p-kicker { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #c9a3a6; font-weight: 700; }
.preview .p-title { font-size: 18px; font-weight: 700; color: #fff; }
.preview-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.preview-video-wrap[hidden] { display: none !important; }
.preview-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.osd {
  position: absolute;
  inset: 0;
  pointer-events: none;
  font-family: ui-monospace, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f3f3f3;
  text-shadow: 0 1px 2px #000;
}
.osd-rec {
  position: absolute;
  top: 8px;
  left: 10px;
  color: #e24a4a;
  display: flex;
  align-items: center;
  gap: 6px;
}
.osd-rec i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e24a4a;
  display: block;
  animation: recBlink 1s step-end infinite;
}
.osd-chan {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}
.osd-time {
  position: absolute;
  top: 8px;
  right: 10px;
}
@keyframes recBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}
.event-marker {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 30px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}
.event-marker[hidden] { display: none !important; }
.event-marker span {
  background: rgba(158, 26, 34, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  animation: fadeIn 0.25s ease;
}
.meta { display: grid; gap: 6px; margin-bottom: 14px; font-size: 13px; }
.meta div { display: flex; justify-content: space-between; gap: 10px; }
.meta dt { color: #9aa3ab; }
.meta dd { font-weight: 700; text-align: right; }
.meta dd.warn { color: var(--warn); }
.meta dd.ok { color: #7dcea0; }
.device-actions { display: flex; flex-direction: column; gap: 8px; }
.device-actions[hidden] { display: none !important; }
.device-actions .row { display: flex; gap: 8px; }
.device-actions .btn { flex: 1; min-height: 48px; }
.device-actions .btn-ok { flex: 1.4; }
.hint-sichten {
  font-size: 13px;
  color: #c9a3a6;
  margin-bottom: 8px;
}

.chain {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 18px;
}
.chain h3 { font-size: 16px; margin-bottom: 4px; }
.chain .note { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.chain-list { list-style: none; font-family: ui-monospace, "Liberation Mono", monospace; }
.chain-item {
  position: relative;
  padding: 8px 12px 8px 14px;
  border-left: 2px solid var(--red-line);
  margin-left: 6px;
  background: var(--bg);
  border-radius: 0 8px 8px 0;
  margin-bottom: 6px;
  animation: fadeIn 0.45s ease;
}
.chain-item:last-child { margin-bottom: 0; border-left-color: var(--red); }
.chain-item .ev { font-family: "TravidoSans", Arial, sans-serif; font-weight: 700; font-size: 14px; }
.chain-item .hs { font-size: 11px; color: var(--muted); word-break: break-all; margin-top: 2px; }
.chain-empty { color: var(--muted); font-size: 14px; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.result-banner {
  margin-top: 12px;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  display: none;
}
.result-banner.show { display: block; }
.result-banner.ok { background: #eef7f1; border: 1px solid #b7d8c4; color: #1e4d32; }
.result-banner.neutral { background: var(--bg-cool); border: 1px solid var(--line); color: var(--dark); }

/* Format */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 22px;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--blue);
}
.card.hero-card::before { background: var(--red); }
.card h3 { font-size: 18px; margin: 0 0 8px; }
.card p { color: var(--gray); font-size: 15px; }
.legal-line {
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
}

/* Contact */
.contact-box {
  background: #fff;
  border: 1px solid var(--line, #d8d8d8);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-box a {
  color: var(--red, #9E1A22);
  font-weight: 600;
  text-decoration: none;
}
.contact-box a:hover { text-decoration: underline; }
.contact-links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}

/* Footer */
.site-footer {
  border-top: 2px solid var(--red);
  padding: 28px 0 36px;
  background: var(--white);
  font-size: 13px;
  color: var(--muted);
}
.site-footer .legal { margin-bottom: 12px; max-width: 72em; }
.foot-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--gray);
}
.foot-row a { color: var(--gray); }
.foot-legal-links { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.foot-legal-links a:hover { color: var(--red, #9E1A22); }

@media (max-width: 900px) {
  .hero-grid, .process, .sim-grid, .cards, .parallel, .branch {
    grid-template-columns: 1fr;
  }
  .hero { padding: 28px 0 32px; }
  section.block { padding: 48px 0; scroll-margin-top: 128px; }
  .header-inner { flex-wrap: wrap; padding: 10px 0 8px; gap: 10px 12px; }
  .header-tools { display: contents; }
  .lang { margin-left: auto; }
  .nav { flex: 1 1 100%; margin-left: 0; justify-content: flex-start; order: 5; }
  .vehicle-wrap { min-height: 0; }
  .vehicle-svg { max-height: 300px; margin-inline: auto; }
}

@media (max-width: 560px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  body { font-size: 16px; }
  .logo { height: 24px; }
  .device-actions .row { flex-direction: column; }
  .nav a { padding: 8px 8px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cone, .cone.is-hit, .scan-ring, .t-steps li.now .dot, .chain-item, .osd-rec i, .event-marker span {
    animation: none !important;
  }
}

.device-actions .btn { flex-direction: column; }
.btn .btn-sub { display: block; font-size: 11px; font-weight: 400; opacity: 0.85; margin-top: 1px; }
