/* Swiss3D Hilfe-Center: ERP-Stil wie im Kundenportal (eckig, ruhige Linien, ein Akzent) */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(inter-latin-400-normal.woff2) format('woff2'), url(inter-latin-ext-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url(inter-latin-500-normal.woff2) format('woff2'), url(inter-latin-ext-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url(inter-latin-600-normal.woff2) format('woff2'), url(inter-latin-ext-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url(inter-latin-700-normal.woff2) format('woff2'), url(inter-latin-ext-700-normal.woff2) format('woff2'); }

:root {
  --n-25: #fafbfc; --n-50: #f5f6f8; --n-75: #eef0f3; --n-100: #e5e7eb; --n-150: #d8dbe0; --n-200: #c9cdd3;
  --n-300: #a6acb5; --n-500: #5a6069; --n-600: #3f444c; --n-700: #2b2f36; --n-800: #1c2027; --n-900: #12151a;
  --a-50: #edf4fe; --a-100: #d8ebff; --a-200: #b4dbff; --a-600: #0065cf; --a-700: #0052ab;
  --ok: #1a7f45; --ok-bg: #e9f6ee; --warn: #9a5b00; --warn-bg: #fff4e0; --bad: #b42318; --bad-bg: #fdecea;
  --mark: #d9262c;
  --top: 60px;
  --side: 272px;
  --toc: 232px;
  --measure: 760px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--top) + 20px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15.5px/1.65 Inter, 'Segoe UI', system-ui, sans-serif; color: var(--n-900); background: #fff; font-feature-settings: 'cv11', 'ss01'; }
a { color: var(--a-600); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--a-600); outline-offset: 2px; }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 50; height: var(--top); background: #fff; border-bottom: 1px solid var(--n-150); display: flex; align-items: center; gap: 24px; padding: 0 24px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--n-900); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { height: 22px; display: block; }
.brand span { padding-left: 14px; border-left: 1px solid var(--n-150); font-weight: 600; font-size: 15px; }
.search { position: relative; flex: 1; max-width: 520px; margin-left: 24px; }
.search input { width: 100%; height: 36px; border: 1px solid var(--n-200); background: var(--n-50); padding: 0 76px 0 36px; font: inherit; font-size: 14px; color: var(--n-900); border-radius: 0; }
.search input:focus { background: #fff; border-color: var(--a-600); outline: none; box-shadow: 0 0 0 3px var(--a-100); }
.search > svg { position: absolute; left: 11px; top: 10px; width: 16px; height: 16px; color: var(--n-500); }
.search kbd { position: absolute; right: 8px; top: 7px; }
kbd { display: inline-block; font: 500 11.5px/1 Inter, sans-serif; color: var(--n-600); border: 1px solid var(--n-200); border-bottom-width: 2px; background: #fff; padding: 4px 6px; }
.top .portal { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; background: var(--a-600); color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap; }
.top .portal:hover { background: var(--a-700); text-decoration: none; }
.top .portal svg { width: 16px; height: 16px; }
.menu-btn { display: none; background: none; border: 1px solid var(--n-200); height: 36px; width: 40px; padding: 0; color: var(--n-700); }
.results { position: absolute; top: 42px; left: 0; right: 0; background: #fff; border: 1px solid var(--n-200); box-shadow: 0 12px 32px rgba(18, 21, 26, .14); max-height: 70vh; overflow: auto; display: none; }
.results.open { display: block; }
.results a { display: block; padding: 10px 14px; border-bottom: 1px solid var(--n-100); color: var(--n-900); }
.results a:hover, .results a.active { background: var(--a-50); text-decoration: none; }
.results .r-t { font-weight: 600; font-size: 14px; }
.results .r-p { font-size: 12.5px; color: var(--n-500); }
.results .r-x { font-size: 13px; color: var(--n-600); margin-top: 2px; }
.results mark { background: var(--a-100); color: inherit; }
.results .empty { padding: 14px; color: var(--n-500); font-size: 14px; }

/* Raster */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr) var(--toc); min-height: calc(100vh - var(--top)); }
.side { position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow: auto; border-right: 1px solid var(--n-150); background: var(--n-25); padding: 20px 0 40px; }
.side .grp { margin: 18px 0 6px; padding: 0 24px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--n-500); }
.side .grp:first-child { margin-top: 0; }
.side a.pg { display: flex; align-items: center; gap: 10px; padding: 6px 24px 6px 21px; color: var(--n-700); font-size: 14.5px; border-left: 3px solid transparent; }
.side a.pg svg { width: 17px; height: 17px; color: var(--n-500); flex: none; }
.side a.pg:hover { background: var(--n-75); text-decoration: none; }
.side a.pg.on { border-left-color: var(--a-600); background: var(--a-50); color: var(--a-700); font-weight: 600; }
.side a.pg.on svg { color: var(--a-600); }
.side .sub { margin: 2px 0 6px; padding: 0; list-style: none; }
.side .sub a { display: block; padding: 4px 24px 4px 48px; font-size: 13.5px; color: var(--n-600); }
.side .sub a:hover { color: var(--a-700); text-decoration: none; background: var(--n-75); }
.doc { padding: 36px 56px 80px; min-width: 0; }
.doc-in { max-width: var(--measure); }
.toc { position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow: auto; padding: 36px 24px 40px 8px; font-size: 13.5px; }
.toc h4 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--n-500); font-weight: 600; }
.toc a { display: block; padding: 4px 0 4px 12px; color: var(--n-600); border-left: 2px solid var(--n-150); line-height: 1.4; }
.toc a:hover { color: var(--a-700); text-decoration: none; }
.toc a.on { color: var(--a-700); border-left-color: var(--a-600); font-weight: 600; }
.toc .help { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--n-150); color: var(--n-600); line-height: 1.5; }
.toc .help b { display: block; color: var(--n-900); margin-bottom: 4px; }

/* Text */
.crumbs { font-size: 13px; color: var(--n-500); margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.crumbs a { color: var(--n-500); }
.crumbs span:not(:last-child)::after { content: '/'; margin-left: 8px; color: var(--n-300); }
h1 { font-size: 32px; line-height: 1.2; letter-spacing: -.015em; margin: 0 0 12px; font-weight: 700; }
.lead { font-size: 17.5px; color: var(--n-600); margin: 0 0 28px; line-height: 1.55; }
h2 { font-size: 23px; line-height: 1.3; letter-spacing: -.01em; margin: 56px 0 14px; padding-top: 22px; border-top: 1px solid var(--n-150); font-weight: 650; }
h3 { font-size: 17.5px; margin: 34px 0 8px; font-weight: 650; }
h2 + h3 { margin-top: 18px; }
h2 .anchor, h3 .anchor { opacity: 0; margin-left: 8px; color: var(--n-300); font-weight: 400; }
h2:hover .anchor, h3:hover .anchor { opacity: 1; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin: 4px 0; }
li::marker { color: var(--n-500); }
strong { font-weight: 600; }
.ui { font-weight: 600; color: var(--n-900); white-space: nowrap; }
.path { font-weight: 500; color: var(--n-700); }
.path .sep { color: var(--n-300); margin: 0 6px; }
code { font: 500 13.5px/1.4 'Cascadia Mono', Consolas, monospace; background: var(--n-75); border: 1px solid var(--n-150); padding: 1px 5px; }
.num { font-variant-numeric: tabular-nums; }
hr { border: 0; border-top: 1px solid var(--n-150); margin: 32px 0; }

/* Ablauf in Schritten: Linie statt Ziffern */
.steps { list-style: none; padding: 0; margin: 18px 0 24px; border-left: 2px solid var(--a-200); }
.steps > li { position: relative; padding: 0 0 18px 26px; margin: 0; }
.steps > li:last-child { padding-bottom: 2px; }
.steps > li::before { content: ''; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; background: #fff; border: 2px solid var(--a-600); border-radius: 50%; }
.steps > li > b:first-child { display: block; font-weight: 600; margin-bottom: 2px; }
.steps > li p:last-child { margin-bottom: 0; }

/* Hinweise */
.note { border: 1px solid var(--n-150); border-left: 3px solid var(--a-600); background: var(--a-50); padding: 12px 16px; margin: 18px 0 22px; font-size: 14.5px; }
.note > b:first-child { display: block; font-size: 13px; font-weight: 600; margin-bottom: 2px; color: var(--a-700); }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note.tip { border-left-color: var(--ok); background: var(--ok-bg); }
.note.tip > b:first-child { color: var(--ok); }
.note.warn { border-left-color: #c77700; background: var(--warn-bg); }
.note.warn > b:first-child { color: var(--warn); }

/* Abbildungen */
figure.shot { margin: 22px 0 28px; }
figure.shot .frame { border: 1px solid var(--n-150); background: var(--n-50); display: block; cursor: zoom-in; position: relative; }
figure.shot .frame img { display: block; width: 100%; height: auto; }
figure.shot.narrow .frame { max-width: 520px; }
figure.shot.mid .frame { max-width: 640px; }
figure.shot figcaption { font-size: 13.5px; color: var(--n-500); margin-top: 8px; line-height: 1.5; }
figure.diagram { margin: 24px 0 30px; border: 1px solid var(--n-150); background: #fff; padding: 22px 22px 14px; }
figure.diagram svg { display: block; width: 100%; height: auto; }
figure.diagram figcaption { font-size: 13.5px; color: var(--n-500); margin-top: 12px; border-top: 1px solid var(--n-100); padding-top: 10px; }
.zoom { position: fixed; inset: 0; z-index: 100; background: rgba(18, 21, 26, .82); display: none; align-items: center; justify-content: center; padding: 32px; cursor: zoom-out; }
.zoom.open { display: flex; }
.zoom img { max-width: 100%; max-height: 100%; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.zoom .cap { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; color: #e5e7eb; font-size: 13px; }

/* Tabellen */
.tbl { width: 100%; border-collapse: collapse; margin: 14px 0 24px; font-size: 14.5px; }
.tbl th { text-align: left; font-weight: 600; font-size: 13px; color: var(--n-600); background: var(--n-50); border-bottom: 1px solid var(--n-150); padding: 9px 12px; }
.tbl td { border-bottom: 1px solid var(--n-100); padding: 9px 12px; vertical-align: top; }
.tbl tr:last-child td { border-bottom: 1px solid var(--n-150); }
.tbl td:first-child { white-space: nowrap; }
.tbl.matrix td:not(:first-child), .tbl.matrix th:not(:first-child) { text-align: center; width: 110px; }
.yes { color: var(--ok); font-weight: 700; }
.no { color: var(--n-300); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; padding: 1px 8px; background: var(--a-50); color: var(--a-700); white-space: nowrap; }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.mute { background: var(--n-75); color: var(--n-600); }

/* Code */
pre.code { background: var(--n-800); color: #e5e7eb; padding: 16px 18px; overflow: auto; font: 13px/1.55 'Cascadia Mono', Consolas, monospace; margin: 14px 0 22px; border-left: 3px solid var(--a-600); }
pre.code .c { color: #8b93a1; }
pre.code .k { color: #9cc8ff; }
pre.code .s { color: #b6e3b0; }

/* Seitenfuss im Artikel */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; }
.pager a { border: 1px solid var(--n-150); padding: 14px 18px; color: var(--n-900); display: block; }
.pager a:hover { border-color: var(--a-600); text-decoration: none; background: var(--a-50); }
.pager small { display: block; color: var(--n-500); font-size: 12.5px; }
.pager b { font-weight: 600; }
.pager .next { text-align: right; grid-column: 2; }
.foot { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--n-150); color: var(--n-500); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Startseite */
.shell.home { grid-template-columns: 1fr; }
.hero { border-bottom: 1px solid var(--n-150); background: var(--n-25); }
.hero-in { max-width: 1120px; margin: 0 auto; padding: 56px 32px 44px; }
.hero h1 { font-size: 38px; margin-bottom: 10px; }
.hero p { font-size: 18px; color: var(--n-600); margin: 0 0 26px; max-width: 640px; }
.hero .search { margin: 0; max-width: 640px; }
.hero .search input { height: 48px; font-size: 16px; padding-left: 44px; background: #fff; }
.hero .search > svg { left: 15px; top: 16px; }
.hero .search kbd { top: 13px; right: 12px; }
.hero .search .results { top: 54px; }
.quick { margin-top: 18px; font-size: 14px; color: var(--n-500); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.home-in { max-width: 1120px; margin: 0 auto; padding: 40px 32px 72px; }
.home-in h2 { border-top: 0; padding-top: 0; margin: 8px 0 18px; font-size: 20px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--n-150); border-left: 1px solid var(--n-150); margin-bottom: 48px; }
.card { border-right: 1px solid var(--n-150); border-bottom: 1px solid var(--n-150); padding: 22px 24px 20px; color: var(--n-900); display: flex; flex-direction: column; background: #fff; }
.card:hover { background: var(--a-50); text-decoration: none; }
.card .ic { width: 22px; height: 22px; color: var(--a-600); margin-bottom: 12px; }
.card h3 { margin: 0 0 6px; font-size: 16.5px; }
.card p { margin: 0 0 12px; font-size: 14px; color: var(--n-600); line-height: 1.5; }
.card ul { list-style: none; padding: 0; margin: auto 0 0; font-size: 13.5px; }
.card li { margin: 3px 0; color: var(--a-700); }
.card li::before { content: '→ '; color: var(--n-300); }
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.tasks { border: 1px solid var(--n-150); }
.tasks a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--n-100); color: var(--n-900); font-size: 14.5px; }
.tasks a:last-child { border-bottom: 0; }
.tasks a:hover { background: var(--a-50); text-decoration: none; }
.tasks a span { color: var(--n-500); font-size: 13px; white-space: nowrap; }
.contact { border: 1px solid var(--n-150); padding: 20px 22px; background: var(--n-25); font-size: 14.5px; }
.contact h3 { margin: 0 0 8px; font-size: 16px; }
.contact p { color: var(--n-600); }
.contact .row { display: flex; gap: 10px; align-items: center; margin: 8px 0; }
.contact svg { width: 17px; height: 17px; color: var(--a-600); }
.demo-note { margin-top: 32px; font-size: 13px; color: var(--n-500); }

/* Schmale Bildschirme */
@media (max-width: 1280px) { .shell { grid-template-columns: var(--side) minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; top: var(--top); left: 0; width: 300px; z-index: 40; transform: translateX(-100%); transition: transform .2s; box-shadow: 8px 0 24px rgba(0, 0, 0, .08); }
  body.nav-open .side { transform: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .doc { padding: 24px 20px 64px; }
  .search { margin-left: 0; }
  .top .portal span, .brand span { display: none; }
  .cards { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  h1 { font-size: 27px; }
}
@media print {
  .top, .side, .toc, .pager, .zoom { display: none !important; }
  .shell { display: block; }
  .doc { padding: 0; }
  h2 { break-after: avoid; }
  figure { break-inside: avoid; }
}
.toc .help a { display: inline; border: 0; padding: 0; color: var(--a-600); }
.is-home .top .search { visibility: hidden; }

/* SEO/Barrierefreiheit-Ergänzungen */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: #fff; padding: 8px 12px; border: 2px solid var(--a-600); }
.skip:focus { left: 12px; }
.meta { font-size: 13px; color: var(--n-500); margin: -16px 0 28px; }
.toc .toc-h { margin: 0 0 10px; padding: 0; border: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--n-500); font-weight: 600; }
.faq h3 { font-size: 16px; margin: 22px 0 4px; }
.faq h3 + p { color: var(--n-700); }
.crumbs { flex-wrap: wrap; }
