/* =========================================================
   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: "Geist", "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: var(--header-top);
  --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; }
}

/* Dienst-Auswahl oben in der Seitenleiste */
.subnav { display: none !important; }
.prod-pick { position: relative; margin-bottom: 22px; }
.prod-pick-btn {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--bg-elev); text-align: left;
  transition: border-color .15s, background .15s;
}
.prod-pick-btn:hover, .prod-pick.open .prod-pick-btn { border-color: var(--border-strong); background: var(--bg-elev-2); }
.prod-pick-btn .mono { width: 34px; height: 34px; border-radius: 9px; font-size: 13px; }
.prod-pick-btn .sh-text { flex: 1; }
.prod-pick-btn .caret { color: var(--text-muted); flex: none; transition: transform .15s; }
.prod-pick.open .caret { transform: rotate(180deg); }
.prod-pick-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;
}
.prod-pick.open .prod-pick-menu { display: block; }
.prod-pick-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; }
.prod-pick-menu a:hover { background: var(--bg-active); }
.prod-pick-menu a.cur { background: var(--bg-active); }
.prod-pick-menu .pm-name { font-size: 14.5px; color: var(--text-strong); }
.prod-pick-menu .pm-kind { font-size: 12.5px; color: var(--text-faint); }
.prod-pick-menu .pm-t { display: flex; flex-direction: column; line-height: 1.3; }
@media (max-width: 820px) { .prod-pick { display: none; } }

/* Seitenleiste: zurück zur Dienst-Auswahl */
.side-back { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 14px 10px; font-size: 14px; color: var(--text-muted); transition: color .15s; }
.side-back:hover { color: var(--text-strong); }
.side-head { padding-top: 0; }
@media (max-width: 820px) { .side-back { display: none; } }

/* Startseite: Dienst-Auswahl größer */
.home .product-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.home .product-card { min-height: 240px; padding: 26px; }
.home .product-card .mono { width: 48px; height: 48px; border-radius: 13px; font-size: 17px; }
.home .product-card .pc-name { font-size: 22px; }
.home .product-card .pc-desc { font-size: 15.5px; }

/* Dienst-Icons (App-Icons / Favicons) */
img.mono.icon { padding: 0; border: 0; background: none; object-fit: cover; display: inline-block; }

/* Fließtexte ausgewogen umbrechen */
.lead, h1 { text-wrap: balance; }

/* ======================= FS ON Logo ======================= */
.logo { gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.brand-fs { font-size: 21px; color: var(--text-strong); }
.brand-on {
  display: inline-flex; align-items: center; justify-content: center;
  height: 22px; padding: 0 6px; border-radius: 6px;
  background: var(--text-strong); color: var(--bg);
  font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
}
.brand-docs { font-size: 18px; font-weight: 500; color: var(--text-muted); letter-spacing: -0.01em; }
.login-brand { display: flex; align-items: center; gap: 10px; }
.login-brand .brand-fs { font-size: 34px; }
.login-brand .brand-on { height: 34px; padding: 0 9px; border-radius: 9px; font-size: 21px; }
.login-brand .brand-docs { font-size: 28px; }

/* Logo: nur Schriftzug */
.wordmark { font-family: var(--font); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: var(--text-strong); white-space: nowrap; }
.brand-docs { font-size: 19px; font-weight: 400; }
.logo { gap: 7px; }
.login-brand { gap: 9px; }
.login-brand .wordmark, .login-brand .brand-docs { font-size: 30px; }

/* Box ohne Label */
.callout-box .callout-title::before { display: none; }
.callout.no-title > :first-child { margin-top: 0; }
.callout p:first-child { margin-top: 0; }

/* Fußnoten (Rechtliches) */
.fn-ref { font-size: 0.72em; line-height: 0; margin-left: 1px; }
.fn-ref a { text-decoration: none !important; color: var(--text-muted) !important; font-weight: 500; padding: 0 1px; }
.fn-ref a:hover { color: var(--text-strong) !important; }
.footnotes { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--border); }
.footnotes ol { margin: 0; padding-left: 22px; font-size: 14px !important; color: var(--text-muted); }
.footnotes li { margin: 6px 0; line-height: 1.6; }
.footnotes li::marker { color: var(--text-faint); }
.footnotes li:target { color: var(--text-strong); }
.fn-back { text-decoration: none !important; color: var(--text-faint) !important; margin-left: 4px; }
.fn-back:hover { color: var(--text-strong) !important; }


/* ======================= Box-Symbole ======================= */
.callout-title { gap: 9px; }
.callout-title::before {
  width: 18px; height: 18px; border-radius: 0; flex: none;
  background: var(--icon-color, var(--text-muted));
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.callout-box .callout-title::before { display: none; }
.callout-note { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 11v6'/%3E%3Cpath d='M12 7.5v.01'/%3E%3C/svg%3E"); --icon-color: #4c9dff; }
.callout-tip { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 21.5h4'/%3E%3Cpath d='M12 2.5a6.5 6.5 0 0 0-3.8 11.8c.5.4.8 1 .8 1.6V16h6v-.1c0-.6.3-1.2.8-1.6A6.5 6.5 0 0 0 12 2.5z'/%3E%3C/svg%3E"); --icon-color: #f5c518; }
.callout-important { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4.5h16v11H9l-5 4z'/%3E%3Cpath d='M12 7.5v4'/%3E%3Cpath d='M12 13.5v.01'/%3E%3C/svg%3E"); --icon-color: #a78bfa; }
.callout-warning { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 2.4 17.6A2 2 0 0 0 4.1 20.6h15.8a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3Cpath d='M12 9.5v4'/%3E%3Cpath d='M12 17v.01'/%3E%3C/svg%3E"); --icon-color: #f59e0b; }
.callout-caution { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2.5h8L21.5 8v8L16 21.5H8L2.5 16V8z'/%3E%3Cpath d='M12 7.5v5'/%3E%3Cpath d='M12 16v.01'/%3E%3C/svg%3E"); --icon-color: #ef4444; }
.callout-tip { border-color: rgba(245, 197, 24, .28); }
.callout-warning { border-color: rgba(245, 158, 11, .32); }
.callout-caution { border-color: rgba(239, 68, 68, .35); }
.callout-note { border-color: rgba(76, 157, 255, .28); }
.callout-important { border-color: rgba(167, 139, 250, .3); }

/* Verweise auf andere Artikel */
.doc-link-missing { color: var(--text-faint); text-decoration: line-through; }

/* FS ON / Learn: ruhige, redaktionelle Oberfläche */
body:not(.admin) { --bg: #080808; --text-faint: #909090; }
:root[data-theme="light"] body:not(.admin) { --bg: #fff; --text-faint: #737373; }
body:not(.admin) .topbar { border-bottom-color: transparent; }
body:not(.admin) .topbar-row { max-width: 1344px; margin: 0 auto; padding: 0 48px; height: 80px; }
body:not(.admin) { --header-top: 80px; }
.brand-slash { color: var(--text-faint); font-size: 24px; font-weight: 300; margin: 0 3px; }
body:not(.admin) .brand-docs { color: var(--text-strong); font-weight: 400; }
body:not(.admin) .logo { gap: 8px; }
body:not(.admin) .topnav { gap: 12px; }
body:not(.admin) .topnav a { font-size: 14px; padding: 8px 4px; margin: 0 8px; border-radius: 0; color: var(--text-muted); background: transparent; position: relative; }
body:not(.admin) .topnav a:hover, body:not(.admin) .topnav a.active { color: var(--text-strong); }
body:not(.admin) .topnav a.active::after { content: ""; position: absolute; height: 1px; background: currentColor; left: 4px; right: 4px; bottom: 2px; }
.skip-link { position: fixed; left: 20px; top: -80px; z-index: 100; padding: 10px 20px; background: var(--pill-bg); color: var(--pill-text); border-radius: 6px; }
.skip-link:focus { top: 12px; }
.editorial-page .content { padding: 0 48px; }
.learn-page { max-width: 1248px; margin: 0 auto; }
.home-intro { padding: 64px 0 66px; }
.home-intro h1 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.1; font-weight: 500; letter-spacing: -.045em; margin: 0; text-wrap: balance; }
.home-intro p { margin: 17px 0 0; color: var(--text-muted); font-size: 18px; line-height: 1.5; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: 21px; line-height: 1.3; font-weight: 500; letter-spacing: -.025em; }
.inline-link { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; white-space: nowrap; color: var(--text-muted); }
.inline-link span { display: inline-flex; }
.inline-link:hover { color: var(--text-strong); }
.news-stage { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.news-card { display: block; min-width: 0; }
.news-cover { overflow: hidden; aspect-ratio: 16 / 10; border-radius: 5px; background: var(--bg-elev); }
.news-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.2,.65,.3,1); }
.news-card:hover .news-cover img { transform: scale(1.025); }
.news-card:focus-visible { outline-offset: 8px; }
.news-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 16px; }
.news-title-row h2, .news-title-row h3 { color: var(--text-strong); font-weight: 500; font-size: 19px; line-height: 1.3; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
.news-featured .news-title-row { margin-top: 22px; }
.news-featured .news-title-row h2 { font-size: clamp(25px, 2.7vw, 36px); line-height: 1.18; letter-spacing: -.035em; }
.news-arrow { flex: none; display: flex; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.news-card:hover .news-arrow, .news-card:focus-visible .news-arrow { opacity: 1; transform: none; }
.news-lead { font-size: 15px; line-height: 1.6; color: var(--text-muted); margin: 12px 0 0; max-width: 60ch; }
.news-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 14px; color: var(--text-faint); font-size: 11px; line-height: 1.5; }
.news-meta > :first-child { color: var(--text-muted); font-weight: 500; }
.news-secondary { display: grid; gap: 36px; }
.news-secondary .news-cover { aspect-ratio: 16 / 10; }
.news-secondary .news-meta { font-size: 10.5px; gap: 5px 10px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; margin-top: 64px; }
.news-cover-default { position: relative; display: flex; align-items: center; justify-content: center; background: #dcece5; color: #183d31; }
.cover-wordmark { font-weight: 500; font-size: clamp(23px, 3vw, 48px); letter-spacing: -.06em; display: flex; align-items: center; gap: 12px; }
.cover-wordmark > span { color: #5b8b76; font-size: 1.4em; font-weight: 300; }
.learn-cover { position: relative; background: #d8eee3; }
.learn-cover-type { position: absolute; left: 7%; top: 50%; transform: translateY(-50%); color: #183d31; font-size: clamp(34px, 4.8vw, 68px); line-height: 1.02; font-weight: 500; letter-spacing: -.06em; }
.guide-cover { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; min-height: 175px; padding: 26px; border-radius: 5px; color: #e1ece5; background: #1b352b; overflow: hidden; }
.guide-cover > :last-child { font-size: clamp(20px, 2vw, 28px); line-height: 1.12; font-weight: 400; letter-spacing: -.04em; }
.guide-glyph { font-size: 118px; font-weight: 300; line-height: .9; color: #a6c7b7; margin: 0 10px -3px 0; }
.news-empty { padding: 4px 0 4px; }
.empty-caption { color: var(--text-muted); font-size: 12px; }
.news-empty h2 { font-size: clamp(21px, 2.2vw, 30px); font-weight: 400; line-height: 1.2; letter-spacing: -.035em; margin: 15px 0; text-wrap: balance; }
.news-empty p { font-size: 14px; line-height: 1.65; color: var(--text-muted); margin: 0; max-width: 33ch; }
.home-documentation { margin-top: 110px; padding-top: 48px; border-top: 1px solid var(--border); }
.home-documentation .section-heading { margin-bottom: 12px; }
.home-documentation .section-heading h2 { font-size: 28px; }
.section-description { color: var(--text-muted); font-size: 15px; margin: 0 0 32px; max-width: 60ch; }
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.service-link { padding: 25px 0; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--border); }
.service-link .mono { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.service-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 5px; }
.service-name { font-size: 17px; font-weight: 500; color: var(--text-strong); letter-spacing: -.02em; }
.service-description { color: var(--text-muted); font-size: 13px; line-height: 1.5; max-width: 44ch; }
.service-arrow { display: flex; flex: none; color: var(--text-faint); transition: transform .2s, color .2s; }
.service-link:hover .service-arrow { transform: translateX(4px); color: var(--text-strong); }
.learn-footer { display: flex; align-items: center; gap: 32px; padding: 36px 0; margin-top: 100px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); }
.footer-brand { color: var(--text-strong); font-weight: 600; font-size: 16px; letter-spacing: -.025em; white-space: nowrap; }
.footer-brand > span { font-weight: 400; color: var(--text-muted); }
.learn-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.learn-footer nav a:hover { color: var(--text-strong); }
.learn-footer > :last-child { margin-left: auto; }
.page-intro { padding: 74px 0 72px; }
.page-intro h1 { margin: 0; font-size: clamp(40px, 5.3vw, 68px); line-height: 1.08; font-weight: 500; letter-spacing: -.05em; text-wrap: balance; }
.page-intro p { margin: 22px 0 0; font-size: 17px; color: var(--text-muted); line-height: 1.6; }
.search-prompt { display: flex; align-items: center; gap: 14px; width: min(100%, 470px); padding: 15px 18px; border-radius: 7px; border: 1px solid var(--border-strong); color: var(--text-muted); margin-top: 32px; text-align: left; font-size: 14px; }
.search-prompt:hover { background: var(--bg-hover); color: var(--text-strong); }
.search-prompt kbd { margin-left: auto; white-space: nowrap; }
.legacy-news { margin-top: 64px; }
.article-back { display: inline-block; font-size: 14px; margin-bottom: 28px; color: var(--text-muted); }
.article-back:hover { color: var(--text-strong); }
.article-cover { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin: 32px 0; border-radius: 5px; }
.retry-btn { margin-top: 24px; padding: 10px 18px; border: 1px solid var(--border-strong); border-radius: 6px; }
body.nav-open { overflow: hidden; }
@media (min-width: 1600px) { .home-intro { padding-top: 82px; padding-bottom: 82px; } }
@media (max-width: 1080px) {
  body:not(.admin) .topbar-row { padding: 0 32px; }
  .editorial-page .content { padding: 0 32px; }
  .news-stage { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 24px; }
  .news-secondary { gap: 28px; }
  .guide-cover { padding: 20px; }
}
@media (max-width: 820px) {
  body:not(.admin) { --header-top: 68px; }
  body:not(.admin) .topbar-row { height: 68px; padding: 0 20px; gap: 8px; }
  body:not(.admin) .topbar-left { gap: 5px; }
  body:not(.admin) .logo { gap: 6px; }
  body:not(.admin) .wordmark, body:not(.admin) .brand-docs { font-size: 17px; }
  .brand-slash { font-size: 21px; margin: 0 1px; }
  .editorial-page .content { padding: 0 24px; }
  .home-intro { padding: 42px 0 46px; }
  .home-intro h1 { font-size: 39px; max-width: 16ch; }
  .home-intro p { font-size: 16px; }
  .news-stage { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .news-featured .news-title-row h2 { font-size: 28px; }
  .news-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .learn-cover-type { font-size: clamp(36px, 7vw, 60px); }
  .news-empty h2 { font-size: 25px; }
  .news-title-row h3 { font-size: 17px; }
  .guide-cover { min-height: 175px; }
  .guide-cover > :last-child { font-size: 24px; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .home-documentation { margin-top: 64px; padding-top: 36px; }
  .home-documentation .section-heading { align-items: start; }
  .home-documentation .section-heading h2 { font-size: 25px; max-width: 14ch; }
  .services-grid { gap: 0 28px; }
  .service-description { font-size: 12px; }
  .learn-footer { margin-top: 64px; flex-wrap: wrap; gap: 20px; padding: 28px 0; }
  .learn-footer > :last-child { width: 100%; margin-left: 0; }
  .page-intro { padding: 44px 0 48px; }
  .page-intro h1 { font-size: 44px; }
}
@media (max-width: 540px) {
  .editorial-page .content { padding: 0 20px; }
  .section-heading { gap: 16px; }
  .section-heading h2 { font-size: 19px; }
  .inline-link { font-size: 12px; gap: 6px; }
  .inline-link svg { width: 15px; }
  .news-featured .news-title-row h2 { font-size: 27px; }
  .news-lead { font-size: 14px; }
  .news-meta { font-size: 10px; gap: 5px 10px; }
  .news-secondary { grid-template-columns: 1fr; gap: 28px; }
  .news-secondary .news-cover { aspect-ratio: 16 / 9; }
  .news-empty { padding: 8px 0; }
  .news-empty h2 br { display: none; }
  .news-empty p { max-width: 40ch; }
  .guide-cover { min-height: 145px; padding: 24px; }
  .guide-cover > :last-child { font-size: 29px; }
  .guide-glyph { font-size: 100px; }
  .news-grid { grid-template-columns: 1fr; margin-top: 36px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-link { padding: 22px 0; }
  .service-description { font-size: 13px; }
  .home-documentation .section-heading { display: block; }
  .home-documentation .section-heading h2 { max-width: none; margin-bottom: 12px; }
  .page-intro h1 { font-size: 38px; }
  .search-prompt { font-size: 13px; padding: 14px; gap: 10px; }
  .learn-footer nav { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

.news-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.news-filters a { display: inline-flex; align-items: center; gap: 12px; border: 1px solid var(--border-strong); border-radius: 999px; padding: 9px 16px; font-size: 13px; color: var(--text-muted); transition: background .15s, color .15s; }
.news-filters a:hover { background: var(--bg-hover); color: var(--text-strong); }
.news-filters a[aria-current] { background: var(--pill-bg); border-color: var(--pill-bg); color: var(--pill-text); }
.news-filters a > span { opacity: .65; font-size: 11px; }
.news-result-count { font-size: 12px; color: var(--text-faint); }
.news-list { margin-top: 0; }
.filter-empty { padding: 48px 0 64px; border-top: 1px solid var(--border); }
.filter-empty h3 { font-size: 26px; font-weight: 400; line-height: 1.2; letter-spacing: -.025em; margin: 0 0 16px; }
.filter-empty p { color: var(--text-muted); font-size: 15px; }
.filter-empty .inline-link { margin-top: 14px; }
.product-news-section + .product-news-section { margin-top: 64px; }
@media (max-width: 540px) {
  .news-filters { gap: 8px; margin-bottom: 32px; }
  .news-filters a { font-size: 12px; padding: 8px 12px; gap: 8px; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.news-card:not(.news-featured) .learn-cover-type { font-size: clamp(27px, 2.8vw, 40px); }

/* Startseite: Aufmacher wie ein Newsroom */
.home-hero { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 40px; }
.home-hero.single { grid-template-columns: minmax(0, 1fr); }
.home-hero .news-secondary .news-lead { display: none; }
.home-latest { margin-top: 96px; }
.home-latest .news-filters { margin-bottom: 36px; }
.home-latest .news-grid { margin-top: 0; }
.news-filters button { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 999px; padding: 8px 16px; font-size: 13px; color: var(--text-muted); transition: background .15s, color .15s; }
.news-filters button:hover { background: var(--bg-hover); color: var(--text-strong); }
.news-filters button[aria-pressed="true"] { background: var(--pill-bg); border-color: var(--pill-bg); color: var(--pill-text); }
.home-hero + .home-documentation, .home-latest + .home-documentation { margin-top: 110px; }
.news-cover-default .cover-wordmark { color: #111; font-size: clamp(20px, 2.4vw, 40px); padding: 0 8%; text-align: center; line-height: 1.05; }
.news-featured .news-cover-default .cover-wordmark { font-size: clamp(30px, 4.2vw, 64px); }

/* Einzelne Meldung */
.news-article { max-width: 1248px; margin: 0 auto; }
.na-head { max-width: 820px; margin: 0 auto; padding: 72px 0 48px; text-align: center; }
.na-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 13px; color: var(--text-muted); }
.na-meta a { color: var(--text-strong); font-weight: 500; }
.na-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }
.na-head h1 { margin: 22px 0 0; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.08; font-weight: 500; letter-spacing: -.045em; color: var(--text-strong); text-wrap: balance; }
.na-lead { margin: 22px auto 0; max-width: 60ch; font-size: 18px; line-height: 1.55; color: var(--text-muted); text-wrap: pretty; }
.news-article .article-cover { margin: 0 0 56px; border-radius: 6px; max-height: 720px; }
.na-body { max-width: 720px; margin: 0 auto; }
.na-related { margin-top: 110px; }
.na-related .news-grid { margin-top: 0; }
@media (max-width: 860px) {
  .home-hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 24px; }
  .home-hero .news-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-latest { margin-top: 64px; }
  .na-head { padding: 44px 0 32px; }
  .na-lead { font-size: 16px; }
  .news-article .article-cover { margin-bottom: 36px; }
}
@media (max-width: 540px) {
  .home-hero .news-secondary { grid-template-columns: 1fr; }
}
