:root {
  color-scheme: dark;
  --bg: #090d0b;
  --panel: #101612;
  --panel-strong: #151d18;
  --line: #2b352f;
  --muted: #9ba69f;
  --text: #f4f7f5;
  --lime: #8bc540;
  --danger: #ff8b7f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }

/* Dieselbe Kopfzeile wie auf der Startseite der Dokumentation - gleiche Hoehe, gleiche
   Marke, gleiche Schrift. Der Markenblock wird beim Bauen aus src/index.html uebernommen. */
.site-header { min-height: 88px; padding: 0 clamp(24px, 5vw, 80px); display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); background: rgba(9,13,11,.94); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-ant-head { display: block; flex: 0 0 auto; width: auto; height: 32px; }
.brand svg { display: block; width: auto; height: 24px; }
.product-label { white-space: nowrap; color: var(--lime); border-left: 1px solid var(--line); padding-left: 24px; font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .17em; }
/* Kein Umbruch, siehe styles.css: Passt die Leiste nicht, schiebt sie sich waagerecht. */
.site-header nav { margin-left: auto; min-width: 0; display: flex; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; align-items: center; justify-content: flex-end; gap: 12px 30px; color: #c3cbc6; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: var(--lime); }

.knowledge-layout {
  display: grid;
  width: min(1540px, 100%);
  min-height: calc(100vh - 88px);
  margin-inline: auto;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  border-inline: 1px solid var(--line);
}

.knowledge-context {
  position: sticky;
  top: 88px;
  align-self: start;
  display: grid;
  min-height: calc(100vh - 88px);
  padding: 52px clamp(24px, 3vw, 42px);
  align-content: start;
  gap: 14px;
  border-right: 1px solid var(--line);
  background: radial-gradient(circle at 40% 2%, rgba(139, 197, 64, .08), transparent 24%), var(--panel);
}
.knowledge-context > span { color: var(--lime); font: 750 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .17em; }
.knowledge-context > strong { margin: 7px 0 3px; font-size: 25px; letter-spacing: -.045em; }
.knowledge-context p { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.knowledge-context a { padding: 13px 0; border-top: 1px solid var(--line); color: #d5dcd8; font: 700 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; }
.knowledge-context a:hover { color: var(--lime); }

.knowledge-article { min-width: 0; padding: clamp(60px, 8vw, 124px) clamp(26px, 7vw, 112px) 130px; }
.knowledge-article > * { max-width: 920px; }
.knowledge-article h1 { max-width: 1050px; margin: 0 0 34px; font-size: clamp(48px, 7.2vw, 104px); font-weight: 820; line-height: .9; letter-spacing: -.065em; }
.knowledge-article h1::before { display: block; margin-bottom: 25px; color: var(--lime); content: "INTEGRATION KNOWLEDGE"; font: 750 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .19em; }
.knowledge-article h2,
.knowledge-article h3,
.knowledge-article h4 { scroll-margin-top: 105px; }
.knowledge-article h2 { margin: 82px 0 24px; padding-top: 34px; border-top: 1px solid var(--line); font-size: clamp(30px, 4vw, 50px); line-height: 1; letter-spacing: -.05em; }
.knowledge-article h3 { margin: 48px 0 16px; color: #eef3f0; font-size: clamp(21px, 2.5vw, 29px); line-height: 1.15; letter-spacing: -.035em; }
.knowledge-article h4 { margin: 34px 0 12px; color: var(--lime); font: 750 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.knowledge-article p,
.knowledge-article li { color: #bec8c2; font-size: 16px; line-height: 1.78; }
.knowledge-article > p:first-of-type { max-width: 820px; color: #d9e1dc; font-size: clamp(18px, 2vw, 22px); line-height: 1.65; }
.knowledge-article ul,
.knowledge-article ol { margin: 18px 0 28px; padding-left: 25px; }
.knowledge-article li { margin: 7px 0; padding-left: 5px; }
.knowledge-article li::marker { color: var(--lime); font-weight: 800; }
.knowledge-article strong { color: var(--text); }
.knowledge-article a { color: var(--lime); text-decoration: underline; text-decoration-color: rgba(139, 197, 64, .35); text-underline-offset: .18em; }
.knowledge-article a:hover { text-decoration-color: var(--lime); }
.knowledge-article code { padding: 2px 6px; border: 1px solid #35433a; border-radius: 3px; color: #d9ff70; background: #080b09; font: .88em/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.knowledge-article pre { max-width: 1050px; margin: 25px 0 34px; padding: 23px 25px; overflow: auto; border: 1px solid var(--line); background: #060907; box-shadow: inset 3px 0 0 var(--lime); }
.knowledge-article pre code { padding: 0; border: 0; color: #d5ded8; background: transparent; font-size: 13px; line-height: 1.7; overflow-wrap: normal; }
.knowledge-article blockquote { max-width: 1050px; margin: 34px 0; padding: 22px 26px; border: 1px solid rgba(139, 197, 64, .35); border-left: 4px solid var(--lime); background: rgba(139, 197, 64, .055); }
.knowledge-article blockquote p { margin: 0; color: #e4eae6; font-size: 15px; }
.knowledge-article table { display: block; width: max-content; max-width: 100%; margin: 28px 0 38px; overflow-x: auto; border-spacing: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); font-size: 14px; }
.knowledge-article th,
.knowledge-article td { min-width: 150px; padding: 15px 17px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.62; }
.knowledge-article th { color: var(--text); background: #18211b; font: 760 11px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .05em; text-transform: uppercase; }
.knowledge-article td { color: #b9c4bd; background: rgba(16, 22, 18, .82); }
.knowledge-article hr { margin: 60px 0; border: 0; border-top: 1px solid var(--line); }

.knowledge-footer { display: flex; min-height: 92px; padding: 28px clamp(22px, 5vw, 76px); align-items: center; gap: 24px; border-top: 1px solid var(--line); color: #818e86; background: #070a08; font-size: 12px; }
.knowledge-footer nav { display: flex; margin-left: auto; flex-wrap: wrap; gap: 14px 25px; }
.knowledge-footer a:hover { color: var(--lime); }

@media (max-width: 980px) {
  .site-header { min-height: 72px; padding-block: 13px 10px; flex-wrap: wrap; gap: 11px 18px; }
  .product-label { display: none; }
  .site-header nav { width: 100%; margin-left: 0; padding: 2px 0 5px; flex-wrap: nowrap; justify-content: flex-start; gap: 22px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
  .site-header nav a { display: block; flex: 0 0 auto; padding-block: 6px; }
  .knowledge-layout { grid-template-columns: 1fr; border-inline: 0; }
  .knowledge-context { position: static; min-height: 0; padding-block: 28px; border-right: 0; border-bottom: 1px solid var(--line); }
  .knowledge-context p { max-width: 600px; }
}

@media (max-width: 640px) {
  .site-header nav { gap: 16px; }
  .knowledge-article { padding-top: 52px; padding-inline: 21px; }
  .knowledge-article h1 { font-size: 45px; }
  .knowledge-article p,
  .knowledge-article li { font-size: 15px; }
  .knowledge-article th,
  .knowledge-article td { min-width: 190px; }
  .knowledge-footer { align-items: flex-start; flex-direction: column; }
  .knowledge-footer nav { margin-left: 0; }
}

/* Wie in der uebrigen Dokumentation: Auf Laptopbreiten ruecken die Ziele enger zusammen. */
@media (min-width: 761px) and (max-width: 1150px) {
  .product-label { display: none; }
}

@media (min-width: 761px) and (max-width: 1470px) {
  .site-header nav { gap: 12px 16px; font-size: 11px; }
}
