:root {
  --ki-blue: #2b56b0;
  --ki-blue-dark: #1e3f85;
  --ki-orange: #e8531f;
  --ki-orange-dark: #c8420f;
  --ink: #1a1f2b;
  --ink-soft: #4a5262;
  --line: #e2e6ee;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-tint: #eef2fa;
  --radius: 10px;
  --shadow: 0 2px 14px rgba(26, 31, 43, 0.07);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

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

.logo-kinside img { height: 46px; width: auto; display: block; }

.nav {
  display: flex;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

.nav a:hover { color: var(--ki-blue); border-bottom-color: var(--ki-orange); }

.nav a.nav-cta {
  background: var(--ki-orange);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius);
  border-bottom: none;
}

.nav a.nav-cta:hover { background: var(--ki-orange-dark); border-bottom: none; }

.burger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 18px;
  cursor: pointer;
  color: var(--ki-blue);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--bg-tint) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 56px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ki-orange);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.18;
  margin: 0 0 18px;
  color: var(--ki-blue-dark);
  letter-spacing: -0.5px;
}

.hero p.lead {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 780px;
  margin: 0 0 30px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}

.btn-primary { background: var(--ki-blue); color: #fff; }
.btn-primary:hover { background: var(--ki-blue-dark); }
.btn-secondary { background: #fff; color: var(--ki-blue); border-color: var(--ki-blue); }
.btn-secondary:hover { background: var(--bg-tint); }
.btn-orange { background: var(--ki-orange); color: #fff; }
.btn-orange:hover { background: var(--ki-orange-dark); }

/* ---------- Partner band ---------- */
.partner-band {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}

.partner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.partner-logo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 30px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  min-height: 100px;
}

.partner-logo img { max-height: 56px; max-width: 100%; width: auto; display: block; }

.partner-plus {
  font-size: 30px;
  color: var(--ki-orange);
  font-weight: 300;
}

.partner-claim {
  text-align: center;
  margin-top: 26px;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.partner-claim strong { color: var(--ki-blue-dark); }

.badge-partner {
  display: inline-block;
  background: var(--bg-tint);
  color: var(--ki-blue-dark);
  border: 1px solid #cdd9f0;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}

/* ---------- Sections ---------- */
section { padding: 62px 0; }
section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

h2 {
  font-size: 30px;
  color: var(--ki-blue-dark);
  margin: 0 0 10px;
  letter-spacing: -0.3px;
}

.section-sub {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 800px;
  margin: 0 0 34px;
}

h3 { font-size: 20px; color: var(--ki-blue-dark); margin: 0 0 8px; }

p { margin: 0 0 16px; }

a { color: var(--ki-blue); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card p:last-child { margin-bottom: 0; }

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: var(--bg-tint);
  color: var(--ki-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 14px;
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--ki-orange);
  border-radius: var(--radius);
  padding: 22px 26px 22px 24px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  align-items: start;
  box-shadow: var(--shadow);
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ki-blue);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 { margin-bottom: 6px; }
.step p:last-child { margin-bottom: 0; }

.step .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ki-orange);
  margin-bottom: 6px;
}

/* ---------- Downloads ---------- */
.dl-list { display: grid; gap: 16px; }

.dl-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.dl-meta { flex: 1 1 420px; min-width: 260px; }
.dl-meta h3 { margin-bottom: 4px; }
.dl-meta p { margin: 0; color: var(--ink-soft); font-size: 16px; }

.dl-type {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  color: #fff;
  background: var(--ki-blue);
  border-radius: 5px;
  padding: 3px 9px;
  margin-bottom: 8px;
}

.dl-type.pdf { background: var(--ki-orange); }

/* ---------- Notice ---------- */
.notice {
  background: #fff8f4;
  border: 1px solid #f5d3c2;
  border-left: 4px solid var(--ki-orange);
  border-radius: var(--radius);
  padding: 22px 26px;
}

.notice h3 { color: var(--ki-orange-dark); }
.notice p:last-child { margin-bottom: 0; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 16px;
  overflow: hidden;
}

th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-tint); color: var(--ki-blue-dark); font-weight: 700; font-size: 15px; }
tr:last-child td { border-bottom: none; }

/* ---------- CTA ---------- */
.cta {
  background: var(--ki-blue);
  color: #fff;
  text-align: center;
  padding: 58px 0;
}

.cta h2 { color: #fff; }
.cta p { color: #dbe4f7; max-width: 700px; margin: 0 auto 26px; font-size: 18px; }

.cta .btn-secondary { background: #fff; color: var(--ki-blue); border-color: #fff; }
.cta .btn-secondary:hover { background: #eef2fa; }

/* ---------- Footer ---------- */
.site-footer {
  background: #f0f3f9;
  border-top: 1px solid var(--line);
  padding: 42px 0 30px;
  font-size: 15px;
  color: var(--ink-soft);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-brand img { height: 40px; width: auto; display: block; margin-bottom: 12px; }
.footer-brand p { max-width: 340px; margin: 0; }

.footer-links { display: flex; gap: 46px; flex-wrap: wrap; }
.footer-col h4 { margin: 0 0 10px; font-size: 15px; color: var(--ki-blue-dark); }
.footer-col a { display: block; color: var(--ink-soft); text-decoration: none; margin-bottom: 7px; }
.footer-col a:hover { color: var(--ki-blue); }

.footer-bottom {
  border-top: 1px solid #dde3ee;
  margin-top: 30px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 34px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .burger { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 24px 20px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav a.nav-cta { margin-top: 12px; text-align: center; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 40px; }
  .hero h1 { font-size: 28px; }
  .hero p.lead { font-size: 17px; }
  section { padding: 46px 0; }
  h2 { font-size: 25px; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .partner-inner { gap: 20px; }
  .partner-logo { min-width: 100%; }
  .partner-plus { display: none; }
}

/* ---------- Page hero (Unterseiten) ---------- */
.page-hero {
  background: var(--bg-tint);
  border-bottom: 1px solid var(--line);
  padding: 46px 0 40px;
}

.page-hero h1 {
  font-size: 34px;
  color: var(--ki-blue-dark);
  margin: 0 0 12px;
  letter-spacing: -0.4px;
}

.page-hero p {
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 820px;
  margin: 0;
}

.breadcrumb {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.breadcrumb a { color: var(--ki-blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Prompt-Boxen ---------- */
.prompt-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  overflow: hidden;
}

.prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  flex-wrap: wrap;
}

.prompt-head h3 { margin: 0; }
.prompt-head .meta { font-size: 14px; color: var(--ink-soft); margin: 4px 0 0; }

.copy-btn {
  background: var(--ki-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}

.copy-btn:hover { background: var(--ki-blue-dark); }
.copy-btn.copied { background: var(--ki-orange); }

.prompt-body {
  padding: 20px 22px;
  background: #fbfcfe;
}

.prompt-note {
  padding: 0 22px 20px;
  font-size: 15px;
  color: var(--ink-soft);
}

.prompt-note p { margin: 0 0 8px; }
.prompt-note p:last-child { margin-bottom: 0; }

pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.65;
  color: #23293a;
  max-height: 460px;
  overflow-y: auto;
}

pre.full { max-height: none; }

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  background: var(--bg-tint);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ki-blue-dark);
}

pre code { background: none; padding: 0; color: inherit; font-size: inherit; }

/* ---------- Prose (Anleitungsseite) ---------- */
.prose { max-width: 820px; }
.prose h2 { margin-top: 42px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 28px; }
.prose ol, .prose ul { padding-left: 24px; margin: 0 0 18px; }
.prose li { margin-bottom: 9px; }

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 40px;
}

.toc h3 { margin: 0 0 12px; font-size: 17px; }
.toc ol { margin: 0; padding-left: 22px; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--ki-blue); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

blockquote {
  margin: 20px 0;
  padding: 14px 20px;
  border-left: 4px solid var(--ki-blue);
  background: var(--bg-tint);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-soft);
  font-style: italic;
}

blockquote p:last-child { margin-bottom: 0; }

@media (max-width: 720px) {
  .page-hero h1 { font-size: 26px; }
  .page-hero p { font-size: 16px; }
  pre { font-size: 13px; }
}

/* ---------- Migration: Zwei-Spalten-Fluss ---------- */
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 8px;
}

.flow-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.flow-box h4 { margin: 0 0 6px; font-size: 16px; color: var(--ki-blue-dark); }
.flow-box p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.flow-box.mid { text-align: center; border-color: var(--ki-orange); background: #fff8f4; }

.flow-arrow {
  font-size: 26px;
  color: var(--ki-orange);
  text-align: center;
  font-weight: 300;
}

/* ---------- Migration: Etappen mit Ankern ---------- */
.etappe {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
  scroll-margin-top: 96px;
}

.etappe-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.etappe-num {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--ki-blue);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.etappe-head h3 { margin: 0; flex: 1 1 240px; }

.etappe-body { padding: 22px 24px; }
.etappe-body p:last-child { margin-bottom: 0; }

.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}

.pill-easy { background: #e6f4ec; color: #1f6b41; border: 1px solid #bfe0cd; }
.pill-mid { background: #fff3e2; color: #9a5a10; border: 1px solid #f2d9b3; }
.pill-hard { background: #fdeaea; color: #98302c; border: 1px solid #f3c9c7; }

.mini-steps {
  counter-reset: mini;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.mini-steps li {
  counter-increment: mini;
  position: relative;
  padding: 0 0 0 34px;
  margin-bottom: 11px;
  font-size: 16px;
  color: var(--ink-soft);
}

.mini-steps li::before {
  content: counter(mini);
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-tint);
  color: var(--ki-blue);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-steps li:last-child { margin-bottom: 0; }
.mini-steps li strong { color: var(--ink); }

.warnbox {
  background: #fdf6f5;
  border: 1px solid #f0cfcb;
  border-left: 4px solid #c0392b;
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-top: 18px;
}

.warnbox h4 { margin: 0 0 8px; font-size: 16px; color: #98302c; }
.warnbox p { margin: 0 0 8px; font-size: 15px; }
.warnbox p:last-child { margin-bottom: 0; }

.infobox {
  background: var(--bg-tint);
  border: 1px solid #cdd9f0;
  border-left: 4px solid var(--ki-blue);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-top: 18px;
}

.infobox h4 { margin: 0 0 8px; font-size: 16px; color: var(--ki-blue-dark); }
.infobox p { margin: 0 0 8px; font-size: 15px; }
.infobox p:last-child { margin-bottom: 0; }

/* ---------- Ordnerbaum ---------- */
.tree {
  background: #1e2433;
  color: #d8dEEA;
  border-radius: var(--radius);
  padding: 20px 24px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.85;
  overflow-x: auto;
  margin: 0 0 8px;
}

.tree .c { color: #8f9bb3; }
.tree .f { color: #ffb27a; }

/* ---------- Matrix-Tabelle: Statusfarben ---------- */
.st { font-weight: 700; font-size: 14px; white-space: nowrap; }
.st-yes { color: #1f6b41; }
.st-part { color: #9a5a10; }
.st-no { color: #98302c; }

/* ---------- Quick-Nav Kacheln ---------- */
.quicknav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}

.quicknav a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s;
}

.quicknav a:hover { border-color: var(--ki-orange); transform: translateY(-2px); }
.quicknav .qn-num { font-size: 12px; font-weight: 700; color: var(--ki-orange); letter-spacing: .06em; }
.quicknav .qn-title { display: block; font-size: 15px; font-weight: 600; color: var(--ki-blue-dark); margin-top: 3px; line-height: 1.4; }

@media (max-width: 900px) {
  .quicknav { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); }
}

@media (max-width: 720px) {
  .quicknav { grid-template-columns: 1fr; }
  .tree { font-size: 12.5px; padding: 16px 18px; }
  .etappe-body { padding: 18px; }
  .etappe-head { padding: 16px 18px; }
}

/* ---------- Header: Marke + Partner-Badge ---------- */
.brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.header-badge {
  display: flex;
  align-items: center;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.header-badge img {
  height: 30px;
  width: auto;
  display: block;
}

@media (max-width: 980px) {
  .header-badge img { height: 26px; }
  .brand-group { gap: 12px; }
  .header-badge { padding-left: 12px; }
}

@media (max-width: 720px) {
  .header-badge { display: none; }
}

/* ---------- Partner-Kachel (dezent) ---------- */
.partner-visual {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.partner-visual figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #faf8f5;
  box-shadow: var(--shadow);
}

.partner-visual figure img {
  display: block;
  width: 100%;
  height: auto;
}

.partner-visual-text .badge-partner { margin-bottom: 14px; }

.partner-visual-text p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 17px;
}

.partner-visual-text p:last-child { margin-bottom: 0; }
.partner-visual-text strong { color: var(--ki-blue-dark); }

@media (max-width: 720px) {
  .partner-visual {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 340px;
  }
  .partner-visual-text { text-align: center; }
}

/* ---------- Footer-Link ki-inside.ai ---------- */
.footer-bottom a {
  color: var(--ki-orange);
  text-decoration: none;
  font-weight: 600;
}

.footer-bottom a:hover { text-decoration: underline; }
