/* ki-einsetzen.at – Stylesheet */

@font-face {
  font-family: "Jakarta";
  src: url("fonts/plus-jakarta-sans-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --navy: #0f1b33;
  --navy-2: #18264a;
  --navy-3: #24345c;
  --cream: #f5f2eb;
  --sand: #ebe6db;
  --stone: #d8d4cb;
  --coral: #fc6e5f;
  --coral-dark: #e85646;
  --ink: #0f1b33;
  --muted: #4a5470;
  --muted-light: #a9b1c7;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(15, 27, 51, .06), 0 12px 32px -12px rgba(15, 27, 51, .18);
  --container: 1160px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--coral); color: var(--navy); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex; align-items: center; gap: .22em;
  font-weight: 800; letter-spacing: -0.045em; text-decoration: none;
  font-size: 1.6rem; line-height: 1; white-space: nowrap;
}
.logo .ki { letter-spacing: -0.02em; }
.logo .switch-mark { width: 1.05em; height: .58em; flex: none; margin: .06em .04em 0 .02em; }
.logo .switch-mark .knob { transition: transform .35s cubic-bezier(.5,1.6,.4,1); }
.logo:hover .switch-mark .knob { transform: translateX(-3px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-coral { background: var(--coral); color: var(--navy); }
.btn-coral:hover { background: #ff8072; }
.btn-ghost { border-color: rgba(15, 27, 51, .18); color: var(--navy); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-ghost-light { border-color: rgba(245, 242, 235, .25); color: var(--cream); }
.btn-ghost-light:hover { border-color: var(--cream); }
.site-header .btn-ghost-light { white-space: nowrap; padding: .6em 1.1em; font-size: .92rem; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); color: var(--cream);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; color: rgba(245, 242, 235, .86); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--cream); }
.nav .btn { padding: .7em 1.35em; }
.menu-toggle {
  display: none; background: none; border: 0; color: var(--cream); padding: 8px; margin-right: -8px; cursor: pointer;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-toggle span + span { margin-top: 6px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding-block: clamp(72px, 10vw, 128px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; flex: none; width: 22px; height: 12px; border-radius: 99px; background: var(--coral) radial-gradient(circle at 70% 50%, var(--cream) 3.5px, transparent 4px); }
.on-dark .eyebrow { color: var(--muted-light); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); margin-top: 16px; }
.section-head p { margin-top: 20px; font-size: 1.15rem; color: var(--muted); max-width: 620px; }
.on-dark { background: var(--navy); color: var(--cream); }
.on-dark .section-head p { color: var(--muted-light); }
.accent { color: var(--coral); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 8vw, 104px) clamp(64px, 9vw, 112px); overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.1rem); letter-spacing: -0.045em; line-height: 1; margin-top: 20px; }
.hero h1 .accent { white-space: nowrap; }
.hero .lead { margin-top: 28px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 560px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px; padding: 0; list-style: none; font-size: .95rem; font-weight: 600; color: var(--muted); }
.hero .proof li { display: flex; align-items: center; gap: 8px; }
.hero .proof svg { color: var(--coral); flex: none; }

/* Demo card (interactive toggle) */
.demo {
  background: var(--navy); color: var(--cream); border-radius: 28px; padding: 28px;
  box-shadow: 0 30px 60px -24px rgba(15, 27, 51, .45);
  position: relative;
}
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid rgba(245, 242, 235, .1); }
.demo-head strong { display: block; font-size: 1.1rem; letter-spacing: -0.01em; }
.demo-head small { color: var(--muted-light); font-size: .85rem; }
.switch {
  --w: 76px; --h: 42px; --p: 5px;
  position: relative; flex: none; width: var(--w); height: var(--h); border-radius: 99px; border: 0; cursor: pointer;
  background: var(--navy-3); transition: background .35s ease; padding: 0;
}
.switch::after {
  content: ""; position: absolute; top: var(--p); left: var(--p);
  width: calc(var(--h) - 2 * var(--p)); height: calc(var(--h) - 2 * var(--p)); border-radius: 50%;
  background: var(--cream); transition: transform .45s cubic-bezier(.5, 1.5, .4, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.switch[aria-checked="true"] { background: var(--coral); }
.switch[aria-checked="true"]::after { transform: translateX(calc(var(--w) - var(--h))); }
.switch-label { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: .9rem; }
.switch-label .state { min-width: 2.2em; text-align: right; color: var(--muted-light); transition: color .3s; }
.demo.is-on .switch-label .state { color: var(--coral); }

.tasks { list-style: none; margin: 8px 0 0; padding: 0; }
.task { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(245, 242, 235, .07); }
.task-name { font-weight: 600; font-size: .98rem; }
.task-time { font-variant-numeric: tabular-nums; font-weight: 700; font-size: .95rem; color: var(--muted-light); transition: color .3s; }
.demo.is-on .task-time { color: var(--coral); }
.task-bar { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: rgba(245, 242, 235, .08); overflow: hidden; }
.task-bar i { display: block; height: 100%; border-radius: inherit; background: var(--muted-light); width: var(--off); transition: width .8s cubic-bezier(.3, .9, .3, 1), background .3s; }
.demo.is-on .task-bar i { width: var(--on); background: var(--coral); }
.demo-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 22px; }
.demo-total small { display: block; color: var(--muted-light); font-size: .85rem; }
.demo-total b { font-size: 2.2rem; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.demo-note { font-size: .75rem; color: var(--muted-light); text-align: right; max-width: 170px; line-height: 1.4; }

/* ---------- Ticker strip ---------- */
.strip { background: var(--sand); border-block: 1px solid rgba(15, 27, 51, .06); overflow: hidden; }
.strip-track { display: flex; gap: 48px; padding-block: 22px; width: max-content; animation: ticker 40s linear infinite; }
.strip-track span { display: inline-flex; align-items: center; gap: 48px; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--navy); white-space: nowrap; }
.strip-track span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Problem ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.problem { padding: 32px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.problem .num { font-size: .85rem; font-weight: 800; color: var(--coral); letter-spacing: .08em; }
.problem h3 { font-size: 1.35rem; margin-top: 14px; }
.problem p { margin-top: 12px; color: var(--muted); }

/* ---------- Angebot ---------- */
.offers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.offer {
  position: relative; padding: clamp(28px, 4vw, 40px); border-radius: var(--radius);
  background: var(--navy-2); border: 1px solid rgba(245, 242, 235, .08);
  display: flex; flex-direction: column; gap: 14px; transition: transform .25s ease, border-color .25s ease;
}
.offer:hover { transform: translateY(-3px); border-color: rgba(252, 110, 95, .5); }
.offer .icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(252, 110, 95, .14); color: var(--coral); display: grid; place-items: center; }
.offer h3 { font-size: 1.5rem; margin-top: 8px; }
.offer p { color: var(--muted-light); }
.offer ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.offer li { display: flex; gap: 10px; font-size: .97rem; color: rgba(245, 242, 235, .9); }
.offer li::before { content: ""; flex: none; width: 16px; height: 9px; margin-top: .55em; border-radius: 99px; background: var(--coral); background-image: radial-gradient(circle at 70% 50%, var(--navy-2) 2.5px, transparent 3px); }
.offer .tag { position: absolute; top: clamp(28px, 4vw, 40px); right: clamp(28px, 4vw, 40px); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 99px; background: var(--coral); color: var(--navy); }

/* ---------- Anwendungen ---------- */
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.use {
  padding: 28px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
}
.use .before-after { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; font-size: .85rem; font-weight: 700; }
.use .before-after .b { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(74, 84, 112, .5); }
.use .before-after .a { color: var(--coral-dark); }
.use h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
.use p { color: var(--muted); font-size: .98rem; }
.use .icon { color: var(--navy); margin-bottom: 6px; }

/* ---------- Ablauf ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; position: relative; }
.step { position: relative; padding: 32px 28px 28px; border-radius: var(--radius); border: 1.5px solid rgba(15, 27, 51, .12); background: var(--cream); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: var(--cream); font-weight: 800; font-size: 1.15rem; margin-bottom: 22px;
}
.step:last-child::before { background: var(--coral); color: var(--navy); }
.step h3 { font-size: 1.3rem; }
.step p { margin-top: 10px; color: var(--muted); }
.step .meta { margin-top: 18px; font-size: .85rem; font-weight: 700; color: var(--navy); display: inline-flex; padding: 6px 12px; border-radius: 99px; background: var(--sand); }

/* ---------- AI Act ---------- */
.callout {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  padding: clamp(28px, 4vw, 44px); border-radius: 28px; background: var(--sand);
}
.callout .badge { width: 72px; height: 72px; border-radius: 20px; background: var(--navy); color: var(--cream); display: grid; place-items: center; font-weight: 800; font-size: .95rem; letter-spacing: -0.01em; }
.callout h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.callout p { margin-top: 8px; color: var(--muted); max-width: 640px; }

/* ---------- Über mich ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.portrait {
  aspect-ratio: 4 / 5; border-radius: 28px; background: var(--navy); position: relative; overflow: hidden;
  display: grid; place-items: center; color: var(--cream);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .placeholder { text-align: center; }
.portrait .placeholder b { display: block; font-size: 5rem; letter-spacing: -0.06em; line-height: 1; }
.portrait .placeholder svg { margin: 18px auto 0; width: 84px; }
.portrait .caption {
  position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 14px 18px; border-radius: 16px;
  background: rgba(245, 242, 235, .96); color: var(--navy); font-size: .9rem; line-height: 1.35;
}
.portrait .caption b { display: block; font-size: 1.05rem; }
.about h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 16px; }
.about .text p { margin-top: 18px; color: var(--muted); font-size: 1.1rem; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.value { padding: 18px; border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow); }
.value b { display: block; font-size: 1rem; letter-spacing: -0.01em; }
.value span { font-size: .88rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid rgba(15, 27, 51, .12); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  font-weight: 700; font-size: 1.15rem; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 44px; height: 24px; border-radius: 99px; background: rgba(15, 27, 51, .14);
  background-image: radial-gradient(circle at 12px 50%, #fff 8px, transparent 8.5px); transition: background-color .3s, background-position .3s;
}
.faq details[open] summary::after { background-color: var(--coral); background-position: 20px 0; }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 720px; }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(2.4rem, 6vw, 4.5rem); letter-spacing: -0.045em; max-width: 900px; margin: 0 auto; }
.cta p { margin: 24px auto 0; max-width: 560px; font-size: 1.15rem; color: var(--muted-light); }
.cta .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.cta .big-switch { margin: 0 auto 32px; --w: 112px; --h: 60px; --p: 7px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--muted-light); border-top: 1px solid rgba(245, 242, 235, .08); padding-block: 40px; font-size: .92rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.site-footer .logo { color: var(--cream); font-size: 1.3rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--cream); }

/* ---------- Legal pages ---------- */
.legal { padding-block: clamp(48px, 8vw, 96px); }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 32px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.legal dt { font-weight: 700; color: var(--navy); }
.legal dd { margin: 0; color: var(--muted); }
.legal .todo { background: rgba(252, 110, 95, .18); padding: 0 .3em; border-radius: 4px; color: var(--navy); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .demo { max-width: 520px; }
  .problem-grid, .steps { grid-template-columns: 1fr; }
  .uses { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; aspect-ratio: 1 / 1; }
  .callout { grid-template-columns: auto 1fr; }
  .callout .btn { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 8px var(--gutter) 24px; border-top: 1px solid rgba(245, 242, 235, .08);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; font-size: 1.15rem; border-bottom: 1px solid rgba(245, 242, 235, .08); }
  .nav .btn { margin-top: 16px; }
  .offers { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 1rem; }
  .logo { font-size: 1.4rem; }
  .uses, .values { grid-template-columns: 1fr; }
  .demo { padding: 22px; border-radius: 24px; }
  .hero .actions .btn { flex: 1 1 100%; }
  .callout { grid-template-columns: 1fr; }
  .callout .badge { width: 60px; height: 60px; }
  .offer .tag { position: static; align-self: flex-start; order: -1; }
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 10px; }
}
