/* =========================================================
   FS ON Docs – Styles
   ========================================================= */

:root {
  --bg: #0d0d0d;
  --bg-elev: #171717;
  --bg-elev-2: #1f1f1f;
  --bg-hover: #1c1c1c;
  --bg-active: #262626;
  --border: #262626;
  --border-strong: #333333;
  --text: #ececec;
  --text-strong: #ffffff;
  --text-muted: #a3a3a3;
  --text-faint: #6e6e6e;
  --link: #ffffff;
  --pill-bg: #ffffff;
  --pill-text: #0d0d0d;
  --code-bg: #1a1a1a;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  --scrim: rgba(0, 0, 0, 0.6);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --header-top: 64px;
  --header-sub: 48px;
  --header-h: calc(var(--header-top) + var(--header-sub));
  --sidebar-w: 284px;
  --rail-w: 272px;
  --content-w: 780px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-elev: #f7f7f7;
  --bg-elev-2: #f0f0f0;
  --bg-hover: #f3f3f3;
  --bg-active: #ececec;
  --border: #e8e8e8;
  --border-strong: #d9d9d9;
  --text: #1f1f1f;
  --text-strong: #0d0d0d;
  --text-muted: #5d5d5d;
  --text-faint: #9a9a9a;
  --link: #0d0d0d;
  --pill-bg: #0d0d0d;
  --pill-text: #ffffff;
  --code-bg: #f4f4f4;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  --scrim: rgba(0, 0, 0, 0.3);
  color-scheme: light;
}

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

html { scroll-padding-top: calc(var(--header-h) + 24px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--text-muted); outline-offset: 2px; border-radius: 8px; }

/* ======================= Header ======================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.topbar-row {
  height: var(--header-top);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
}

.topbar-left { display: flex; align-items: center; gap: 8px; }
.topbar-right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text-strong); }
.logo-mark { width: 30px; height: 30px; }
.logo-text { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }

.topnav { display: flex; align-items: center; gap: 2px; }
.topnav a {
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.15s;
}
.topnav a:hover { background: var(--bg-hover); }
.topnav a.active { background: var(--bg-active); color: var(--text-strong); }

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-text);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  margin-right: 10px;
  transition: opacity 0.15s;
}
.pill-btn:hover { opacity: 0.88; }

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--text);
  transition: background 0.15s;
}
.icon-btn:hover { background: var(--bg-hover); }
.icon-btn.sm { width: 28px; height: 28px; border-radius: 8px; }

.i-sun { display: none; }
:root[data-theme="light"] .i-sun { display: block; }
:root[data-theme="light"] .i-moon { display: none; }

.menu-btn { display: none; }

.subnav {
  height: var(--header-sub);
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 34px;
  padding: 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 15.5px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.15s;
}
.subnav a:hover { color: var(--text); }
.subnav a.active { color: var(--text-strong); font-weight: 500; }
.subnav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--text-strong);
  border-radius: 2px;
}

/* ======================= Layout ======================= */

.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--rail-w);
  min-height: calc(100vh - var(--header-h));
}
.layout.no-sidebar { grid-template-columns: minmax(0, 1fr); }
.layout.no-sidebar .sidebar,
.layout.no-sidebar .rail { display: none; }

/* ======================= Sidebar ======================= */

.sidebar {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 28px 16px 48px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.side-product { display: none; }

.side-link {
  display: block;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 15.5px;
  color: var(--text);
  transition: background 0.15s;
}
.side-link:hover { background: var(--bg-hover); }
.side-link.active { background: var(--bg-active); color: var(--text-strong); }

.side-group { margin-top: 26px; }
.side-group:first-of-type { margin-top: 0; }
.side-group-title {
  padding: 7px 12px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-strong);
}
.side-group .side-link { padding-left: 24px; }

.side-tabs { display: none; }

/* ======================= Content ======================= */

.content {
  padding: 48px 56px 120px;
  outline: none;
  min-width: 0;
}

.doc {
  max-width: var(--content-w);
  margin: 0 auto 0 max(0px, calc((100% - var(--content-w)) / 2 - 40px));
}
.layout.no-sidebar .doc { margin: 0 auto; }

.doc h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-strong);
}

.doc .lead {
  margin: 14px 0 0;
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-muted);
}

.doc h2 {
  margin: 48px 0 0;
  font-size: 25px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-strong);
}
.doc h2 a.anchor { color: inherit; }
.doc h2 a.anchor:hover::after {
  content: " #";
  color: var(--text-faint);
}

.doc p { margin: 16px 0 0; font-size: 17px; }

.doc code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 2px 7px;
  border-radius: 7px;
  background: var(--code-bg);
  border: 1px solid var(--border);
}

.placeholder {
  margin-top: 18px;
  padding: 22px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  color: var(--text-faint);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.placeholder svg { flex: none; }

.meta-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 13px;
  color: var(--text-muted);
}

/* Prev / Next */
.pager {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pager a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.15s, background 0.15s;
}
.pager a:hover { border-color: var(--border-strong); background: var(--bg-hover); }
.pager .dir { font-size: 13px; color: var(--text-muted); }
.pager .ttl { font-size: 16px; font-weight: 500; color: var(--text-strong); }
.pager .next { text-align: right; grid-column: 2; }

/* ======================= Home ======================= */

.home { max-width: 1080px; margin: 0 auto; padding-top: 24px; }
.home h1 { font-size: 52px; letter-spacing: -0.03em; }
.home .lead { max-width: 640px; }

.home-section-title {
  margin: 64px 0 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-elev);
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.product-card:hover { border-color: var(--border-strong); background: var(--bg-elev-2); }
.product-card .pc-top { display: flex; align-items: center; justify-content: space-between; }
.product-card .pc-name { margin-top: auto; padding-top: 28px; font-size: 19px; font-weight: 600; color: var(--text-strong); letter-spacing: -0.01em; }
.product-card .pc-desc { margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--text-muted); }
.product-card .pc-arrow { color: var(--text-faint); transition: color 0.2s, transform 0.2s; }
.product-card:hover .pc-arrow { color: var(--text-strong); transform: translate(2px, -2px); }

.mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--bg-active);
  border: 1px solid var(--border-strong);
  color: var(--text-strong);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.mono.sm { width: 22px; height: 22px; border-radius: 6px; font-size: 10.5px; }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.quick-card {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.15s, background 0.15s;
}
.quick-card:hover { border-color: var(--border-strong); background: var(--bg-hover); }
.quick-card .qc-title { font-weight: 500; color: var(--text-strong); font-size: 16px; }
.quick-card .qc-desc { margin-top: 4px; font-size: 14.5px; color: var(--text-muted); line-height: 1.5; }

/* ======================= Right rail ======================= */

.rail {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 40px 24px 40px 8px;
}

.product-select { position: relative; }
.product-select-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg-elev);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-strong);
  text-align: left;
  transition: border-color 0.15s;
}
.product-select-btn:hover { border-color: var(--text-faint); }
.product-select-btn .ps-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-select-btn .ps-caret { color: var(--text-muted); flex: none; }

.product-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  z-index: 30;
  padding: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  display: none;
}
.product-select.open .product-menu { display: block; }
.product-menu-label { padding: 6px 10px 4px; font-size: 12px; color: var(--text-faint); }
.product-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 14.5px;
  color: var(--text);
}
.product-menu a:hover { background: var(--bg-active); }
.product-menu a .pm-kind { margin-left: auto; font-size: 12px; color: var(--text-faint); }
.product-menu a.current { color: var(--text-strong); }
.product-menu a .pm-check { margin-left: 6px; color: var(--text-strong); }

.toc { margin-top: 30px; position: relative; }
.toc::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
}
.toc a {
  position: relative;
  display: block;
  padding: 6px 0 6px 18px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-muted);
  transition: color 0.15s;
}
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--text-strong); }
.toc a.active::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--text-strong);
  border-radius: 2px;
}

.copy-btn {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--pill-bg);
  color: var(--pill-text);
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.15s;
}
.copy-btn:hover { opacity: 0.88; }

/* ======================= Ask AI ======================= */

.ask-ai {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 35;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-text);
  font-size: 16px;
  font-weight: 500;
  box-shadow: var(--shadow);
  transition: transform 0.15s;
}
.ask-ai:hover { transform: translateY(-1px); }

.ask-pop {
  position: fixed;
  right: 28px;
  bottom: 92px;
  z-index: 36;
  width: 340px;
  max-width: calc(100vw - 32px);
  padding: 16px;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  display: none;
}
.ask-pop.open { display: block; }
.ask-pop-head { display: flex; align-items: center; justify-content: space-between; font-weight: 600; color: var(--text-strong); }
.ask-pop-text { margin: 8px 0 14px; font-size: 14.5px; color: var(--text-muted); line-height: 1.5; }
.ask-pop-input {
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  font-size: 14.5px;
  color: var(--text-faint);
  cursor: not-allowed;
}

/* ======================= Search ======================= */

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--scrim);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 16px;
}
.search-overlay.open { display: flex; }
.search-box {
  width: 640px;
  max-width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.search-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  height: 56px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.search-input-row input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  font: inherit;
  font-size: 16px;
  color: var(--text-strong);
}
.search-input-row input::placeholder { color: var(--text-faint); }
kbd {
  font-family: var(--font);
  font-size: 12px;
  padding: 2px 7px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text-muted);
}
.search-results {
  list-style: none;
  margin: 0;
  padding: 8px;
  max-height: 52vh;
  overflow-y: auto;
}
.search-results li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
}
.search-results li a.sel { background: var(--bg-active); }
.search-results .sr-title { color: var(--text-strong); font-size: 15px; }
.search-results .sr-path { font-size: 13px; color: var(--text-muted); }
.search-empty { padding: 28px 12px; text-align: center; color: var(--text-faint); font-size: 14.5px; }

/* ======================= Toast ======================= */

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  z-index: 70;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--pill-bg);
  color: var(--pill-text);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.scrim {
  position: fixed;
  inset: 0;
  z-index: 44;
  background: var(--scrim);
  display: none;
}

/* ======================= Responsive ======================= */

@media (max-width: 1240px) {
  :root { --rail-w: 240px; --sidebar-w: 260px; }
  .content { padding: 44px 40px 120px; }
  .topnav a { padding: 6px 10px; }
}

@media (max-width: 1080px) {
  .layout { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .rail { display: none; }
  .side-product { display: block; margin-bottom: 22px; }
  .doc { margin: 0 auto; }
}

@media (max-width: 820px) {
  :root { --header-top: 60px; }
  .menu-btn { display: inline-flex; margin-left: -8px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .subnav { display: none; }
  .topnav { display: none; }
  .topbar-row { grid-template-columns: 1fr auto; }
  :root { --header-h: var(--header-top); }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 45;
    width: min(320px, 86vw);
    height: 100vh;
    background: var(--bg);
    border-right: 1px solid var(--border);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    padding-top: 20px;
  }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open .scrim { display: block; }
  .layout.no-sidebar .sidebar { display: block; }

  .side-tabs { display: block; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
  .side-tabs .side-link { font-weight: 500; }

  .content { padding: 32px 16px 120px; }
  .doc h1 { font-size: 32px; }
  .home h1 { font-size: 38px; }
  .doc .lead { font-size: 18px; }
  .doc h2 { font-size: 22px; margin-top: 40px; }
  .quick-grid { grid-template-columns: 1fr; }
  .pill-btn { display: none; }
  .topbar-row { padding: 0 16px; }
  .ask-ai { right: 16px; bottom: 16px; height: 46px; padding: 0 20px; font-size: 15px; }
  .ask-pop { right: 16px; bottom: 74px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
}

/* ======================= Ergänzungen ======================= */

.logo-sub { color: var(--text-muted); font-weight: 500; }
.logo-mark.sm { width: 20px; height: 20px; flex: none; color: var(--text-strong); }

.layout.no-left { grid-template-columns: minmax(0, 1fr) var(--rail-w); }
.layout.no-left .sidebar { display: none; }
.layout.no-left .doc { margin: 0 auto; }

.pc-kind { font-size: 13px; color: var(--text-faint); margin-top: 2px; }

.updated { margin-top: 56px; font-size: 14px; color: var(--text-faint); }
.updated + .pager { margin-top: 20px; }

.notfound { padding-top: 40px; }
.nf-code { font-size: 15px; font-weight: 500; color: var(--text-faint); margin-bottom: 8px; }
.text-link { text-decoration: underline; text-underline-offset: 3px; color: var(--text-strong); }

/* Ladezustand */
.sk { background: var(--bg-elev-2); border-radius: 8px; animation: sk 1.4s ease-in-out infinite; }
.sk-title { height: 40px; width: 46%; }
.sk-line { height: 18px; width: 80%; margin-top: 18px; }
.sk-line.short { width: 55%; }
@keyframes sk { 50% { opacity: 0.5; } }

/* ----- Fließtext (aus Markdown) ----- */
.prose { margin-top: 8px; }
.prose > :first-child { margin-top: 32px; }
.prose p { margin: 18px 0 0; font-size: 17px; line-height: 1.75; }
.prose h2 { margin-top: 48px; }
.prose h3 { margin: 34px 0 0; font-size: 20px; font-weight: 500; color: var(--text-strong); letter-spacing: -0.01em; }
.prose h4 { margin: 26px 0 0; font-size: 17px; font-weight: 600; color: var(--text-strong); }
.prose h3 a.anchor, .prose h4 a.anchor { color: inherit; }
.prose a:not(.anchor) { color: var(--link); text-decoration: underline; text-decoration-color: var(--text-faint); text-underline-offset: 3px; transition: text-decoration-color 0.15s; }
.prose a:not(.anchor):hover { text-decoration-color: var(--text-strong); }
.prose strong { color: var(--text-strong); font-weight: 600; }
.prose ul, .prose ol { margin: 16px 0 0; padding-left: 26px; font-size: 17px; }
.prose li { margin: 8px 0; padding-left: 4px; }
.prose li::marker { color: var(--text-muted); }
.prose li ul, .prose li ol { margin-top: 6px; }
.prose li.task { list-style: none; margin-left: -22px; display: flex; gap: 10px; align-items: baseline; }
.prose .check { flex: none; width: 15px; height: 15px; border: 1.5px solid var(--text-faint); border-radius: 4px; transform: translateY(2px); }
.prose .check.done { background: var(--text-strong); border-color: var(--text-strong); }
.prose hr { margin: 40px 0; border: 0; border-top: 1px solid var(--border); }
.prose img { display: block; max-width: 100%; height: auto; margin: 24px 0 0; border-radius: 14px; border: 1px solid var(--border); }
.prose blockquote { margin: 20px 0 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--border-strong); color: var(--text-muted); }
.prose blockquote > :first-child { margin-top: 0; }

.codeblock { position: relative; margin-top: 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--code-bg); overflow: hidden; }
.codeblock-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
.codeblock pre { margin: 0; padding: 16px 18px; overflow-x: auto; }
.codeblock pre code { padding: 0; border: 0; background: none; font-size: 14px; line-height: 1.65; color: var(--text); }
.code-copy { font-size: 12.5px; padding: 3px 9px; border-radius: 7px; color: var(--text-muted); transition: background 0.15s, color 0.15s; }
.code-copy:hover { background: var(--bg-active); color: var(--text-strong); }
.code-copy.floating { position: absolute; top: 8px; right: 8px; opacity: 0; }
.codeblock:hover .code-copy.floating { opacity: 1; }

.table-wrap { margin-top: 24px; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.prose th { font-weight: 600; color: var(--text-strong); background: var(--bg-elev); }
.prose tr:last-child td { border-bottom: 0; }

.callout { margin-top: 22px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--bg-elev); }
.callout-title { font-size: 14px; font-weight: 600; color: var(--text-strong); display: flex; align-items: center; gap: 8px; }
.callout-title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); }
.callout-tip .callout-title::before { background: #3fb27f; }
.callout-important .callout-title::before { background: #7c8cff; }
.callout-warning .callout-title::before { background: #e5a33a; }
.callout-caution .callout-title::before { background: #e5534b; }
.callout > p:first-of-type, .callout > :nth-child(2) { margin-top: 6px; }
.callout p, .callout li { font-size: 15.5px; }

@media (max-width: 1080px) {
  .layout.no-left { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .layout.no-left .sidebar { display: block; }
}

/* ======================= FS ON Anpassungen ======================= */

/* Kopf der Seitenleiste: aktueller Dienst */
.side-head {
  display: flex; align-items: center; gap: 12px;
  padding: 4px 10px 18px; margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.side-head .mono { width: 36px; height: 36px; border-radius: 10px; font-size: 14px; }
.sh-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.sh-name { font-size: 16px; font-weight: 600; color: var(--text-strong); letter-spacing: -0.01em; }
.sh-kind { font-size: 13px; color: var(--text-faint); }

/* Nur wenn ein Dienst mehrere Bereiche hat */
.side-tabs-switch {
  display: flex; gap: 2px; padding: 3px; margin: 0 4px 22px;
  border-radius: 11px; background: var(--bg-elev-2); border: 1px solid var(--border);
}
.side-tabs-switch a {
  flex: 1; text-align: center; padding: 5px 8px; border-radius: 8px;
  font-size: 13.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.side-tabs-switch a:hover { color: var(--text); }
.side-tabs-switch a.on { background: var(--bg-active); color: var(--text-strong); }

.side-groups .side-group:first-child { margin-top: 0; }

.eyebrow { margin-bottom: 10px; font-size: 14px; font-weight: 500; color: var(--text-muted); }

.rail-title { font-size: 13px; font-weight: 600; color: var(--text-strong); margin-bottom: 12px; }
.rail .toc { margin-top: 0; }

/* Handy-Menü */
.side-mobile { display: none; }
.side-prod { display: flex; align-items: center; gap: 10px; }
.side-mobile .side-group-title { margin-top: 18px; }

@media (max-width: 820px) {
  .side-mobile { display: block; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
  .side-head { display: none; }
}
