/* KI-Agenten in Human Resources – Landing Page
   Farben und Schrift folgen der Workshop-Präsentation. */

:root {
  --blue: #0a6cfa;
  --blue-dark: #0752c2;
  --blue-50: #eef4ff;
  --blue-100: #d9e7ff;
  --blue-200: #b3cfff;
  --ink: #15151d;
  --slate: #45556c;
  --line: #e2e8f0;
  --mist: #f3f5f8;
  --paper: #ffffff;
  --petrol: #02787d;
  --orange: #cf4b00;

  --font: "Source Sans 3", "Source Sans Pro", "Segoe UI", Arial, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 9vw, 112px);
  --radius: 6px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p, dl, dd, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Typografie ---------- */

h1 {
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.02em;
  hyphens: manual;
}

h2 {
  font-size: clamp(32px, 4.4vw, 46px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.01em;
  max-width: 22ch;
}

h3 { font-size: 22px; line-height: 1.25; font-weight: 700; }

.lead {
  font-size: clamp(19px, 1.8vw, 22px);
  line-height: 1.5;
  color: var(--slate);
  max-width: 62ch;
}

.kicker {
  font-size: 18px;
  font-weight: 600;
  color: var(--blue);
}

.note {
  margin-top: 16px;
  font-size: 16px;
  color: var(--slate);
  max-width: 70ch;
}
.note strong { color: var(--ink); }

/* ---------- Kopfzeile ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}
.brand span[aria-hidden] { color: var(--slate); font-weight: 400; padding: 0 2px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px 28px;
}
.site-nav a {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--blue); }
.site-nav a[aria-current="true"] { border-bottom-color: var(--blue); }
.site-nav .nav-cta {
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: var(--paper);
}
.site-nav .nav-cta:hover { background: var(--blue-dark); color: var(--paper); }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
  position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 13px;
  width: 20px; height: 2px;
  background: var(--ink);
  transition: transform 150ms ease, opacity 150ms ease;
}
.nav-toggle-bar { top: 22px; }
.nav-toggle-bar::before { content: ""; left: 0; top: -6px; }
.nav-toggle-bar::after { content: ""; left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="true"] { border-bottom-color: var(--line); color: var(--blue); }
  .site-nav .nav-cta { margin-top: 16px; text-align: center; }
}

/* ---------- Buttons ---------- */

.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.section-cta { margin-top: 32px; }

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.button-primary { background: var(--blue); color: var(--paper); }
.button-primary:hover { background: var(--blue-dark); color: var(--paper); }
.button-secondary { border: 1px solid #c3cddb; color: var(--ink); }
.button-secondary:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Hero ---------- */

.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 112px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: stretch;
}

.hero-copy { display: flex; flex-direction: column; gap: 24px; justify-content: center; }
.hero-meta { font-size: 17px; font-weight: 600; color: var(--slate); }
.hero-copy .button-row { margin-top: 8px; }

.hero-statement {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(32px, 4vw, 48px);
  background: var(--blue);
  color: var(--paper);
  border-radius: 14px;
}
.hero-statement blockquote { display: flex; flex-direction: column; gap: 20px; }
.hero-statement blockquote p {
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.2;
  font-weight: 700;
}
.hero-statement blockquote p + p { color: var(--blue-100); }
.hero-statement figcaption { font-size: 17px; font-weight: 600; color: var(--blue-50); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Sektionen ---------- */

.section { padding: var(--section) 0; }
.section-tint { background: var(--mist); }
.section-blue { background: var(--blue); color: var(--paper); }

.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; }
.section > .wrap > h2 { margin-bottom: 40px; }

.block-title { margin: 64px 0 20px; }
.section-head + .block-title { margin-top: 0; }
.block-intro { margin: -8px 0 28px; color: var(--slate); max-width: 62ch; }

/* Ausgangslage */
.pressure {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}
.pressure > div { padding: 24px 24px 8px 0; }
.pressure > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.pressure dt { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.pressure dd { color: var(--slate); }

@media (max-width: 860px) {
  .pressure { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pressure > div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 520px) {
  .pressure { grid-template-columns: 1fr; }
  .pressure > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Kette */
.chain {
  list-style: none;
  counter-reset: chain;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  position: relative;
}
.chain::before {
  content: "";
  position: absolute;
  left: 16px; right: 16px; top: 15px;
  height: 2px;
  background: var(--blue-200);
}
.chain li {
  counter-increment: chain;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 48px;
}
.chain li::before {
  content: counter(chain);
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--blue);
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
}
.chain li.is-check::before { border-color: var(--petrol); color: var(--petrol); box-shadow: 0 0 0 4px var(--mist), 0 0 0 6px var(--petrol); }
.chain li.is-human::before { background: var(--orange); border-color: var(--orange); color: var(--paper); }
.chain-name { font-size: 19px; font-weight: 700; }
.chain-text { font-size: 16px; color: var(--slate); }

.legend { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 15px; color: var(--slate); }
.legend-swatch { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--petrol); box-shadow: 0 0 0 2px var(--mist), 0 0 0 4px var(--petrol); }
.legend-row { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 20px; }
.legend-row .legend { margin-top: 0; }
.legend-swatch.legend-swatch-human { background: var(--orange); border-color: var(--orange); box-shadow: none; }

@media (max-width: 960px) {
  .chain { grid-template-columns: 1fr; gap: 20px; }
  .chain::before { left: 15px; right: auto; top: 16px; bottom: 16px; width: 2px; height: auto; }
  .chain li { padding: 4px 0 0 52px; }
}

/* Treppe – das zentrale Bild der Seite */
.stairs {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
}
.step {
  --rise: 64px;
  min-height: calc(230px + var(--i) * var(--rise));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius) var(--radius) 0 0;
  transform-origin: bottom;
}
.step:nth-child(1) { background: #e1ecff; }
.step:nth-child(2) { background: #c8dcff; }
.step:nth-child(3) { background: #a8c8ff; }
.step:nth-child(4) { background: var(--blue); color: var(--paper); }
.step-level { font-size: 15px; font-weight: 700; color: var(--blue-dark); }
.step:nth-child(4) .step-level { color: var(--paper); }
.step-title { font-size: 20px; line-height: 1.25; font-weight: 700; }
.step-text { font-size: 16px; color: var(--slate); }
.step:nth-child(3) .step-text { color: #2c3a4f; }
.step:nth-child(4) .step-text { color: var(--blue-50); }

/* einmalige Aufbau-Animation, nur mit JavaScript und ohne reduzierte Bewegung */
.js .stairs .step { transform: scaleY(0.2); opacity: 0; }
.js .stairs.is-visible .step {
  transform: none;
  opacity: 1;
  transition: transform 520ms cubic-bezier(.2, .7, .2, 1), opacity 300ms ease;
  transition-delay: calc(var(--i) * 140ms);
}
@media (prefers-reduced-motion: reduce) {
  .js .stairs .step { transform: none; opacity: 1; transition: none; }
}

@media (max-width: 860px) {
  .stairs { grid-template-columns: 1fr; }
  .step { min-height: 0; border-radius: var(--radius); }
  .js .stairs .step { transform: none; opacity: 1; }
}

/* Zwei Spalten */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 64px;
}
.panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.section:not(.section-tint) .panel { background: var(--mist); border-color: transparent; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

.panel-solo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: 16px 48px;
  align-items: start;
  margin-top: 64px;
}
.panel-solo + .persona { margin-top: 64px; }
@media (max-width: 760px) { .panel-solo { grid-template-columns: 1fr; } }

.steps-intro { display: flex; flex-direction: column; gap: 12px; }
.steps-intro h3 { font-size: clamp(24px, 2.4vw, 28px); font-weight: 800; }
.steps-intro p { color: var(--slate); }
.steps-list { list-style: none; counter-reset: st; display: flex; flex-direction: column; gap: 4px; }
.steps-list li {
  counter-increment: st;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 4px 12px;
  padding: 14px 0;
  border-bottom: 1px solid #d5dce6;
  color: var(--slate);
}
.steps-list li::before { content: counter(st); grid-row: span 2; font-size: 26px; font-weight: 800; color: var(--blue); line-height: 1.1; }
.steps-list li:first-child { padding-top: 0; }
.steps-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps-list strong { color: var(--ink); font-size: 19px; }

.ticks, .crosses { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ticks li, .crosses li { position: relative; padding-left: 30px; color: var(--slate); }
.ticks li::before, .crosses li::before {
  position: absolute;
  left: 0; top: 0.1em;
  width: 20px; height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}
.ticks li::before { content: "✓"; background: #dff3f2; color: var(--petrol); }
.crosses li::before { content: "✕"; background: #fde8dc; color: var(--orange); }

.process { padding-left: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--slate); }
.process strong { color: var(--ink); }
.process li::marker { color: var(--blue); font-weight: 700; }

.principle {
  margin-top: 28px;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.35;
  font-weight: 700;
  color: var(--blue);
  max-width: 48ch;
}

/* Erfahrungen */
.learnings {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.learnings p {
  padding: 24px;
  background: var(--paper);
  border-radius: var(--radius);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 700;
}
.learnings .learning-tip { background: var(--ink); color: var(--paper); font-weight: 400; }
.learnings .learning-tip strong { display: block; margin-bottom: 4px; }
@media (max-width: 960px) { .learnings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .learnings { grid-template-columns: 1fr; } }

/* Zahlen */
.stats {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 1fr));
  gap: 16px 40px;
  align-items: start;
  padding: clamp(32px, 4vw, 56px);
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
}
.stats-claim { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; font-weight: 700; }
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat-number { font-size: clamp(56px, 7vw, 84px); line-height: 0.95; font-weight: 800; color: #8ec5ff; letter-spacing: -0.02em; }
.stat-text { color: #c3cddb; }
.source { grid-column: 1 / -1; font-size: 14px; color: #a3b0c2; padding-top: 16px; text-align: right; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } .stats-claim { grid-column: 1 / -1; } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

/* Bisher / Heute */
.then-now { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.then-now figure { display: flex; flex-direction: column; gap: 12px; }
.then-now img {
  width: 100%;
  aspect-ratio: 1600 / 1004;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.then-now figure:last-child img { object-fit: contain; background: var(--paper); }
.then-now figcaption { color: var(--slate); }
.then-now .figure-note { font-size: 15px; color: var(--slate); padding-top: 12px; border-top: 1px solid var(--line); }
.then-now figcaption strong { color: var(--ink); }
@media (max-width: 760px) { .then-now { grid-template-columns: 1fr; } }

/* Datenquellen */
.sources {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.sources > div { padding-top: 16px; border-top: 3px solid var(--blue); }
.sources dt { font-size: 20px; font-weight: 700; }
.sources dd { color: var(--slate); }
@media (max-width: 860px) { .sources { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Persona */
.persona {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px;
  margin-top: 64px;
}
.persona-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 40px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  min-height: 280px;
}
.persona-label { font-size: 16px; font-weight: 600; color: #c3cddb; }
.persona-name { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; font-weight: 800; }
.persona-role { color: #c3cddb; }
.persona-views { padding: 32px 0; display: flex; flex-direction: column; gap: 16px; }
.persona-views dl > div {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.persona-views dt { font-weight: 700; }
.persona-views dd { color: var(--slate); }
@media (max-width: 860px) { .persona { grid-template-columns: 1fr; } }

/* Nächste Schritte */
.next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.next > div { padding: 28px; background: var(--mist); border-radius: var(--radius); }
.next dt { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.next dd { color: var(--slate); }
@media (max-width: 860px) { .next { grid-template-columns: 1fr; } }

/* Leitplanken */
.section-blue .kicker { color: var(--blue-100); }
.section-blue a { color: var(--paper); }
.section-blue .button-light { background: var(--paper); color: var(--blue); }
.section-blue .button-light:hover { background: var(--blue-50); color: var(--blue-dark); }
.section-blue :focus-visible { outline-color: var(--paper); }

.guardrails {
  list-style: none;
  counter-reset: g;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.guardrails li {
  counter-increment: g;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
}
.guardrails li::before {
  content: counter(g);
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 4px;
}
.g-title { font-size: 19px; font-weight: 700; }
.g-text { font-size: 16px; color: var(--slate); }
@media (max-width: 1000px) { .guardrails { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .guardrails { grid-template-columns: 1fr; } }

.levels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 40px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}
.levels-intro { display: flex; flex-direction: column; gap: 12px; }
.levels-intro h3 { font-size: clamp(26px, 2.6vw, 32px); font-weight: 800; }
.levels-intro p { color: var(--blue-50); }
.levels-list { list-style: none; counter-reset: lv; display: flex; flex-direction: column; gap: 4px; }
.levels-list li {
  counter-increment: lv;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 4px 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--blue-50);
}
.levels-list li::before { content: counter(lv); grid-row: span 2; font-size: 26px; font-weight: 800; color: var(--paper); line-height: 1.1; }
.levels-list strong { color: var(--paper); font-size: 19px; }
@media (max-width: 860px) { .levels { grid-template-columns: 1fr; } }

/* Tabellen */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 16px; }
th, td { padding: 16px 20px; text-align: left; vertical-align: top; }
thead th { background: var(--mist); font-weight: 700; }
tbody tr { border-top: 1px solid var(--line); }
tbody th { font-weight: 700; width: 22%; }
tbody td { color: var(--slate); }
.compare thead th { background: var(--paper); font-size: 19px; font-weight: 800; }
.compare thead td { background: var(--paper); }

/* Kontakt */
.people {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.person {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.person img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; }
.person-name { font-size: 20px; font-weight: 700; }
.person-role { font-size: 15px; color: var(--slate); margin-bottom: 4px; }
.person a { display: inline-block; padding: 6px 0; font-weight: 600; font-size: 16px; }
@media (max-width: 960px) { .people { grid-template-columns: 1fr; max-width: 560px; } }

/* Fußzeile */
.site-footer { background: var(--mist); border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 32px;
  padding-bottom: 32px;
  font-size: 15px;
  color: var(--slate);
}
.footer-inner strong { color: var(--ink); }
.footer-inner a { font-weight: 600; padding: 8px 0; }
