:root {
  --paper: #fbf4e8;
  --paper-strong: #f3e6d3;
  --ink: #24302f;
  --muted: #66726e;
  --petrol: #0f5d5a;
  --petrol-dark: #0a3f3d;
  --sage: #b8c6a4;
  --coral: #d76f4c;
  --brass: #c2933f;
  --mist: #e7eee6;
  --white: #fffaf2;
  --line: rgba(36, 48, 47, 0.16);
  --shadow: 0 22px 60px rgba(36, 48, 47, 0.12);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  padding: 0.6rem 0.8rem;
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 244, 232, 0.94);
  backdrop-filter: blur(18px);
}

.nav-shell,
.section-inner,
.hero-inner {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(15, 93, 90, 0.4);
  border-radius: 8px;
  background: var(--petrol);
  color: var(--white);
  font-weight: 800;
}

.brand strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.3;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  border-radius: 8px;
  padding: 0.55rem 0.72rem;
  color: #394743;
  font-size: 0.93rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(15, 93, 90, 0.08);
  color: var(--petrol-dark);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}

.hero {
  min-height: 660px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(36, 48, 47, 0.08);
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, rgba(251, 244, 232, 0.98) 0%, rgba(251, 244, 232, 0.92) 42%, rgba(251, 244, 232, 0.28) 72%, rgba(251, 244, 232, 0.08) 100%),
    url("/assets/ki-prozess-workflow-hero.jpg");
  background-position: center;
  background-size: cover;
}

.hero-inner {
  padding: 82px 0 64px;
}

.hero-content {
  width: min(100%, 720px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
  color: var(--petrol-dark);
  font-weight: 800;
  font-size: 0.88rem;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--coral);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 1.1rem;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 4.45rem;
  font-weight: 760;
}

h2 {
  margin-bottom: 0.85rem;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 2.65rem;
  font-weight: 720;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.2rem;
}

.lead {
  max-width: 710px;
  color: #3e4d49;
  font-size: 1.25rem;
}

.hero .lead {
  max-width: 680px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.72rem 1rem;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--petrol);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(15, 93, 90, 0.2);
}

.button.primary:hover {
  background: var(--petrol-dark);
}

.button.secondary {
  border-color: rgba(36, 48, 47, 0.22);
  background: rgba(255, 250, 242, 0.74);
}

.button.secondary:hover {
  border-color: rgba(15, 93, 90, 0.48);
  color: var(--petrol-dark);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

.hero-proof li {
  border: 1px solid rgba(36, 48, 47, 0.14);
  border-radius: 8px;
  padding: 0.46rem 0.62rem;
  background: rgba(255, 250, 242, 0.72);
  color: #384843;
  font-size: 0.92rem;
  font-weight: 750;
}

.section {
  padding: 88px 0;
}

.section.compact {
  padding: 56px 0;
}

.section.band {
  background: var(--white);
}

.section.petrol {
  background: var(--petrol-dark);
  color: var(--white);
}

.section.sage {
  background: var(--mist);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 3rem;
  align-items: start;
}

.section-intro {
  max-width: 720px;
  margin-bottom: 2.1rem;
}

.section-intro.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.spaced-top {
  margin-top: 2.2rem;
}

.section-intro p,
.muted {
  color: var(--muted);
}

.petrol .muted,
.petrol .section-intro p {
  color: rgba(255, 250, 242, 0.78);
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.service-card,
.use-case,
.region-card,
.faq-item,
.legal-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.74);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

.card,
.service-card,
.use-case,
.region-card,
.faq-item {
  padding: 1.25rem;
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  display: block;
  width: 42px;
  height: 6px;
  margin-bottom: 1.25rem;
  border-radius: 4px;
  background: var(--coral);
}

.service-card:nth-child(2)::before,
.use-case:nth-child(2n)::before {
  background: var(--petrol);
}

.service-card:nth-child(3)::before,
.use-case:nth-child(3n)::before {
  background: var(--brass);
}

.service-card:nth-child(4)::before {
  background: var(--sage);
}

.card p,
.service-card p,
.use-case p,
.region-card p,
.faq-item p {
  color: #596762;
}

.card p:last-child,
.service-card p:last-child,
.use-case p:last-child,
.region-card p:last-child,
.faq-item p:last-child {
  margin-bottom: 0;
}

.use-case::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  margin-bottom: 0.9rem;
  border-radius: 3px;
  background: var(--coral);
}

.process-list {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.process-step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 1rem;
  align-items: start;
  border-top: 1px solid rgba(255, 250, 242, 0.24);
  padding-top: 1rem;
}

.process-step:first-child {
  border-top: 0;
  padding-top: 0;
}

.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: grid;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 250, 242, 0.28);
  border-radius: 8px;
  color: var(--paper);
  font-weight: 900;
}

.mini-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.mini-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.65rem;
}

.mini-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 0.55rem;
  border-radius: 3px;
  background: var(--coral);
}

.profile-panel {
  border-left: 5px solid var(--coral);
  padding: 1.25rem 0 1.25rem 1.35rem;
}

.profile-panel strong {
  color: var(--petrol-dark);
}

.quote-band {
  border-top: 1px solid rgba(36, 48, 47, 0.12);
  border-bottom: 1px solid rgba(36, 48, 47, 0.12);
  padding: 1.2rem 0;
  color: var(--petrol-dark);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.25;
}

.region-card a,
.text-link {
  color: var(--petrol-dark);
  font-weight: 850;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  border: 1px solid rgba(255, 250, 242, 0.2);
  border-radius: 8px;
  padding: 2rem;
  background: rgba(255, 250, 242, 0.08);
}

.cta-panel h2 {
  margin-bottom: 0.45rem;
}

.page-hero {
  padding: 82px 0 64px;
  background:
    linear-gradient(90deg, rgba(251, 244, 232, 0.98), rgba(251, 244, 232, 0.76)),
    url("/assets/ki-prozess-workflow-hero.jpg");
  background-position: center;
  background-size: cover;
}

.page-hero h1 {
  max-width: 900px;
  font-size: 3.65rem;
}

.breadcrumb {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--petrol-dark);
  font-weight: 780;
  text-decoration: none;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.pill {
  border: 1px solid rgba(36, 48, 47, 0.14);
  border-radius: 8px;
  padding: 0.42rem 0.58rem;
  background: rgba(255, 250, 242, 0.72);
  color: #40504b;
  font-size: 0.92rem;
  font-weight: 760;
}

.legal-box {
  padding: 1.5rem;
  background: var(--white);
}

.legal-box + .legal-box {
  margin-top: 1rem;
}

.legal-box dl {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0.8rem 1rem;
  margin: 0;
}

.legal-box dt {
  color: var(--muted);
  font-weight: 800;
}

.legal-box dd {
  margin: 0;
}

.notice {
  border-left: 5px solid var(--brass);
  padding: 1rem 1.1rem;
  background: rgba(194, 147, 63, 0.12);
  color: #51442d;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 38px 0;
  background: #efe1cb;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-links a {
  color: #394743;
  font-size: 0.94rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--petrol-dark);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.reveal {
  opacity: 0.001;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 980px) {
  body {
    font-size: 17px;
  }

  h1 {
    font-size: 3.15rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .hero {
    min-height: 600px;
    background-image:
      linear-gradient(90deg, rgba(251, 244, 232, 0.98) 0%, rgba(251, 244, 232, 0.9) 58%, rgba(251, 244, 232, 0.48) 100%),
      url("/assets/ki-prozess-workflow-hero.jpg");
    background-position: 58% center;
  }

  .split,
  .grid.three,
  .grid.four,
  .footer-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    align-items: start;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 76px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.65rem;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 0.78rem;
  }

  .brand small {
    display: none;
  }

  .hero-inner {
    padding: 66px 0 48px;
  }

  .hero {
    min-height: 0;
  }

  h1,
  .page-hero h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 2rem;
  }

  .lead {
    font-size: 1.08rem;
  }

  .section {
    padding: 64px 0;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }

  .legal-box dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .brand strong {
    font-size: 0.94rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  h1,
  .page-hero h1 {
    font-size: 2.1rem;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .process-step {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    padding: 1.25rem;
  }
}
