/* KAIKI GmbH – kaiki.ai
   Farben aus dem Logo (Cyan, Grün, Violett) + KAIKI-Grundfarben.
   Keine Inline-Styles verwenden (Content-Security-Policy). */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --cyan: #1ACEDE;
  --cyan-dark: #0E7C87;
  --cyan-light: #E6F9FC;
  --yellow: #FFFF88;
  --yellow-hover: #FAFF5C;
  --green: #40D89E;
  --green-light: #E7FAF2;
  --violet: #4B2C82;
  --ink: #1D1E20;
  --text: #4A4D53;
  --muted: #62666E;
  --dark: #2D3748;
  --paper: #F6F9FA;
  --white: #FFFFFF;
  --line: #E3E6E1;
  --line-strong: #D0D5CD;
  --on-dark: #E4E8EE;
  --on-dark-muted: #C3CAD5;
  --wrap: 1200px;
  --gutter: 24px;
  --section: 96px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id] { scroll-margin-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  font-feature-settings: "cv11", "ss01";
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--cyan-dark); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -0.015em; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: 56px; font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: 40px; font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.005em; }
p { margin: 0; }
mark { background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); color: inherit; padding: 0 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
p + p { margin-top: 14px; }
ul { margin: 0; padding: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }
.section { padding: var(--section) 0; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--dark); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan-dark); }
.section-dark .eyebrow { color: var(--cyan); }
.lead { font-size: 20px; max-width: 600px; }
.section-head { max-width: 720px; }
.section-head p { margin-top: 16px; }
.mt-48 { margin-top: 48px; }
.mt-32 { margin-top: 32px; }
.mt-24 { margin-top: 24px; }
.small { font-size: 15px; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 8px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--dark); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-yellow { background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-hover); color: var(--ink); }
.btn-cyan { background: var(--cyan); color: var(--ink); }
.btn-cyan:hover { background: #4DDAE7; color: var(--ink); }
.btn-small { min-height: 42px; padding: 9px 18px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 22px; letter-spacing: 0.02em; }
.brand img { width: 59px; height: 56px; }
.brand span small { font-weight: 600; color: var(--cyan-dark); font-size: 22px; letter-spacing: 0; }
.header-actions { display: flex; align-items: center; gap: 28px; }
.nav { display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--text); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--cyan); }

.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 16px; }
.menu .icon-close { display: none; }
.menu[open] .icon-open { display: none; }
.menu[open] .icon-close { display: block; }
.menu-panel { position: absolute; right: 0; top: 54px; width: min(320px, calc(100vw - 32px)); background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(29,30,32,.12); padding: 10px; }
.menu-panel a { display: block; padding: 12px 14px; border-radius: 8px; text-decoration: none; font-weight: 500; }
.menu-panel a:hover { background: var(--cyan-light); }

/* Hero */
.hero { padding: 88px 0 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.hero h1 { margin-top: 18px; }
.hero .lead { margin-top: 24px; }
.hero .btn-row { margin-top: 34px; }
.facts-box { background: var(--dark); border-radius: 18px; padding: 36px; color: var(--on-dark); }
.facts-box .eyebrow { color: var(--cyan); margin-bottom: 26px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.fact-num { font-size: 40px; font-weight: 800; color: var(--cyan); line-height: 1; letter-spacing: -0.02em; }
.fact-label { margin-top: 8px; font-size: 15px; color: var(--on-dark-muted); }
.fact-bar { display: block; width: 28px; height: 3px; background: #4A5568; margin-bottom: 14px; border-radius: 2px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.section-white .card { background: var(--paper); }
.card-icon { width: 46px; height: 46px; border-radius: 10px; background: var(--yellow); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.card-icon svg { width: 22px; height: 22px; }
.card .more { margin-top: auto; padding-top: 8px; font-weight: 600; }
.tag { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--green-light); color: #11603F; }
.solutions-head { margin-top: 56px; font-size: 20px; }
.solutions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.solution { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--cyan); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.solution h4 { color: var(--ink); margin: 0; font-size: 17px; font-weight: 700; line-height: 1.35; letter-spacing: -0.005em; }
.solution p + p { margin-top: 0; }
.solution p { font-size: 15.5px; }
.solution .solution-ref { margin-top: auto; padding-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--cyan-dark); }
.section-white .solution { background: var(--paper); }
.solutions-cta { margin-top: 24px; color: var(--muted); }

/* Proof / trace */
.proof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.trace { background: #1F2125; border-radius: 14px; overflow: hidden; color: #C9CED6; font-size: 15px; }
.trace-head { padding: 12px 20px; border-bottom: 1px solid #2E3238; color: #8A919C; font-size: 13px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.trace ol { list-style: none; margin: 0; padding: 22px 20px 8px; display: grid; gap: 14px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 14px; }
.trace li { display: flex; gap: 14px; align-items: baseline; }
.trace .n { color: var(--cyan); }
.trace .s { color: #FFFFFF; }
.trace .r { margin-left: auto; color: var(--green); white-space: nowrap; }
.trace-note { margin: 10px 20px 22px; padding: 14px; border: 1px dashed #3A3F47; border-radius: 8px; }
.checks { list-style: none; display: grid; gap: 14px; margin-top: 24px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--cyan-light); border: 2px solid var(--cyan); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps li { border-top: 3px solid var(--yellow); padding-top: 20px; counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font-weight: 800; color: var(--yellow); margin-bottom: 8px; }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { font-size: 15px; }

/* Team */
.team { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: start; }
.people { display: grid; gap: 16px; }
.person { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.person h3 { font-size: 19px; }
.person p { font-size: 15px; margin-top: 4px; }

/* Stack */
.stack-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stack-grid h3 { font-size: 16px; margin-bottom: 10px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; padding: 5px 11px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }
.section-white .chips li { background: var(--paper); }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 700; color: var(--ink); font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 26px; font-weight: 400; color: var(--cyan-dark); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 22px; }

/* CTA */
.cta { background: var(--cyan); border: 0; border-radius: 20px; padding: 56px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cta h2 { font-size: 36px; }
.cta p { margin-top: 10px; color: var(--ink); }
.cta .btn-secondary { border-color: var(--ink); }
.cta a:focus-visible { outline-color: var(--ink); }

/* Product pages */
.page-hero { padding: 80px 0 64px; }
.page-hero h1 { font-size: 52px; margin-top: 16px; max-width: 900px; }
.page-hero .lead { margin-top: 22px; max-width: 720px; }
.page-hero .btn-row { margin-top: 32px; }
.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.kpi { border-left: 3px solid var(--cyan); padding-left: 18px; }
.kpi strong { display: block; font-size: 34px; font-weight: 800; color: var(--ink); line-height: 1.1; letter-spacing: -0.02em; }
.kpi span { font-size: 15px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.prose h2 { font-size: 32px; margin-bottom: 16px; }
.prose h3 { margin: 28px 0 8px; }
.prose ul { padding-left: 20px; margin-top: 12px; }
.prose li + li { margin-top: 6px; }
.note { font-size: 15px; color: var(--muted); margin-top: 16px; }

/* Grounding / Legal */
.doc { padding: 72px 0 96px; }
.doc h1 { font-size: 44px; }
.doc h2 { font-size: 26px; margin: 44px 0 12px; }
.doc h3 { font-size: 19px; margin: 24px 0 8px; }
.doc ul { padding-left: 22px; margin-top: 10px; }
.doc li + li { margin-top: 4px; }
.doc dl { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px 24px; margin: 12px 0 0; }
.doc dt { font-weight: 600; color: var(--ink); }
.doc dd { margin: 0; }
.doc .meta { margin-top: 12px; color: var(--muted); font-size: 15px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark-muted); font-size: 15px; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 40px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--white); font-weight: 800; font-size: 20px; }
.footer-brand img { width: 42px; height: 40px; }
.site-footer h2 { font-size: 14px; color: var(--white); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; font-weight: 700; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--cyan); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid #34363A; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 14px; }

/* 404 */
.notfound { padding: 120px 0; text-align: center; }
.notfound img { margin: 0 auto 28px; width: 140px; height: auto; }
.notfound .btn-row { justify-content: center; margin-top: 28px; }

/* Responsive */
@media (max-width: 1040px) {
  h1 { font-size: 46px; }
  .page-hero h1 { font-size: 44px; }
  .nav { display: none; }
  .menu { display: block; }
  .header-actions { gap: 12px; }
  .hero-grid, .proof, .team, .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .solutions { grid-template-columns: minmax(0, 1fr); }
  .steps, .kpis, .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --section: 64px; --gutter: 16px; }
  body { font-size: 16px; }
  h1, .page-hero h1 { font-size: 36px; }
  h2 { font-size: 30px; }
  .cta h2 { font-size: 28px; }
  .doc h1 { font-size: 34px; }
  .lead { font-size: 18px; }
  .hero { padding: 56px 0 56px; }
  .page-hero { padding: 56px 0 40px; }
  .facts-box { padding: 26px; }
  .fact-num { font-size: 32px; }
  .steps, .kpis, .stack-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .cta { padding: 32px 24px; }
  .header-cta { display: none; }
  .brand img { width: 50px; height: 48px; }
  .doc dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .doc dd { margin-bottom: 10px; }
  .trace .r { margin-left: 0; }
  .trace li { flex-wrap: wrap; gap: 4px 14px; }
}
