/* Doku & FAQ (V4) - nutzt die globalen Farb-Variablen (Dunkel/Hell), moderne CSS-Features mit Fallbacks:
   View Transitions, scroll-getriebene Animationen, :has(), Container Queries, @property, color-mix, text-wrap. */

@view-transition { navigation: auto; }
@property --dx-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.dx {
  --dx-surface: color-mix(in srgb, var(--text) 4%, transparent);
  --dx-surface-2: color-mix(in srgb, var(--text) 7%, transparent);
  --dx-line: var(--border);
  --dx-brand: var(--accent);
  --dx-brand-2: var(--info, #5865F2);
  --dx-glow: color-mix(in srgb, var(--dx-brand) 35%, transparent);
  --dx-radius: 16px;
  color: var(--text);
}
.dx *, .dx *::before, .dx *::after { box-sizing: border-box; }
.dx a { color: inherit; }
.dx :focus-visible { outline: 2px solid var(--dx-brand); outline-offset: 2px; border-radius: 6px; }
.dx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Lesefortschritt ---------- */
.dx-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1200; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--dx-brand), var(--cyan, #4FD1E5), var(--dx-brand-2)); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .dx-progress { animation: dx-grow linear both; animation-timeline: scroll(root); }
  @keyframes dx-grow { to { transform: scaleX(1); } }
}

/* ---------- Hero ---------- */
.dx-hero { position: relative; isolation: isolate; text-align: center; padding: clamp(2.2rem, 6vw, 4.2rem) 1rem clamp(1.6rem, 4vw, 2.6rem); overflow: hidden; border-radius: 28px; margin-top: .6rem;
  border: 1px solid var(--dx-line); background: var(--dx-surface); }
.dx-hero::before { content: ""; position: absolute; inset: -40%; z-index: -1; filter: blur(60px); opacity: .55;
  background: conic-gradient(from var(--dx-angle) at 50% 50%, var(--dx-brand), var(--dx-brand-2), var(--cyan, #4FD1E5), #9B59B6, var(--dx-brand));
  animation: dx-spin 24s linear infinite; }
.dx-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 50% 0%, transparent 30%, var(--bg) 100%); opacity: .85; }
@keyframes dx-spin { to { --dx-angle: 360deg; } }
body.theme-light .dx-hero::before { opacity: .3; }
.dx-eyebrow { display: inline-flex; gap: .45rem; align-items: center; padding: .3rem .8rem; border-radius: 99px; font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  border: 1px solid color-mix(in srgb, var(--dx-brand) 40%, transparent); background: color-mix(in srgb, var(--dx-brand) 12%, transparent); }
.dx-hero h1 { margin: 1rem auto .6rem; max-width: 20ch; font: 800 clamp(2rem, 6vw, 3.6rem)/1.05 var(--font-display, inherit); letter-spacing: -.035em; text-wrap: balance; }
.dx-hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--dx-brand), var(--cyan, #4FD1E5) 55%, var(--dx-brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dx-hero p.dx-lead { margin: 0 auto; max-width: 60ch; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.6; text-wrap: pretty; }

.dx-searchbtn { position: relative; display: flex; align-items: center; gap: .8rem; width: min(640px, 100%); margin: 1.6rem auto 0; padding: .95rem 1.1rem; text-align: left; cursor: pointer;
  color: var(--muted); font: inherit; font-size: 1rem; border-radius: 16px; border: 1px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, conic-gradient(from var(--dx-angle), var(--dx-brand), var(--dx-brand-2), var(--cyan, #4FD1E5), var(--dx-brand)) border-box;
  box-shadow: 0 18px 50px -18px var(--dx-glow); transition: transform .35s var(--ease, ease), box-shadow .35s; animation: dx-spin 8s linear infinite; }
.dx-searchbtn:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -16px var(--dx-glow); }
.dx-searchbtn span.t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx kbd, .dx-kbd { font: 600 .72rem/1 var(--font-mono, ui-monospace, monospace); padding: .28rem .5rem; border-radius: 6px; border: 1px solid var(--dx-line); background: var(--dx-surface-2); color: var(--muted); }
.dx-stats { display: flex; gap: .5rem 1.2rem; justify-content: center; flex-wrap: wrap; margin-top: 1.1rem; color: var(--muted); font-size: .85rem; }
.dx-stats b { color: var(--text); }
.dx-chips { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-top: 1rem; }
.dx-chip { display: inline-flex; gap: .4rem; align-items: center; padding: .38rem .85rem; border-radius: 99px; font-size: .85rem; text-decoration: none; border: 1px solid var(--dx-line); background: var(--dx-surface); transition: border-color .2s, transform .3s var(--ease, ease); }
.dx-chip:hover { border-color: var(--dx-brand); transform: translateY(-2px); }

/* ---------- Layout ---------- */
.dx-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2.4rem; align-items: start; margin-top: 1.6rem; padding-bottom: 5rem; }
.dx-shell.has-toc { grid-template-columns: 260px minmax(0, 1fr) 220px; }
@media (max-width: 1240px) { .dx-shell.has-toc { grid-template-columns: 260px minmax(0, 1fr); } .dx-toc { display: none; } }
@media (max-width: 920px) { .dx-shell, .dx-shell.has-toc { grid-template-columns: 1fr; gap: 1rem; } }
.dx-side { view-transition-name: dx-side; position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 112px); overflow-y: auto; scrollbar-width: thin; padding-right: .3rem; }
.dx-main { view-transition-name: dx-main; min-width: 0; }
@media (max-width: 920px) { .dx-side { position: static; max-height: none; } .dx-nav { display: none; } .dx-nav.show { display: block; } }
.dx-navbtn { display: none; width: 100%; padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--dx-line); background: var(--dx-surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
@media (max-width: 920px) { .dx-navbtn { display: block; } }
.dx-filter { width: 100%; margin-bottom: .7rem; padding: .6rem .8rem; border-radius: 10px; border: 1px solid var(--dx-line); background: var(--dx-surface); color: var(--text); font: inherit; font-size: .88rem; }
.dx-cat-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .55rem .6rem; background: none; border: 0; border-radius: 8px; color: var(--text); font: inherit; font-weight: 650; font-size: .9rem; cursor: pointer; text-align: left; }
.dx-cat-toggle:hover { background: var(--dx-surface); }
.dx-caret { color: var(--muted); font-size: .7rem; transition: transform .25s var(--ease, ease); }
.dx-cat.open .dx-caret { transform: rotate(90deg); }
.dx-cat-links { display: none; flex-direction: column; margin: 0 0 .4rem .95rem; padding-left: .7rem; border-left: 1px solid var(--dx-line); }
.dx-cat.open .dx-cat-links { display: flex; }
.dx-link { display: flex; align-items: center; gap: .4rem; padding: .38rem .55rem; border-radius: 8px; font-size: .84rem; color: var(--muted); text-decoration: none; }
.dx-link:hover { color: var(--text); background: var(--dx-surface); }
.dx-link.active { color: var(--dx-brand); font-weight: 650; background: color-mix(in srgb, var(--dx-brand) 12%, transparent); }
.dx-link[hidden], .dx-cat[hidden] { display: none; }
.dx-new { background: linear-gradient(135deg, var(--dx-brand-2), #9B59B6); color: #fff; font-size: .58rem; font-weight: 800; letter-spacing: .05em; border-radius: 5px; padding: .1rem .35rem; }
.dx-new.big { font-size: .7rem; vertical-align: middle; }
.dx-count { margin-left: auto; font-size: .68rem; padding: 0 .4rem; border-radius: 8px; background: var(--dx-surface-2); }

/* ---------- Startseite ---------- */
.dx-h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 2.6rem 0 1rem; font: 750 1.35rem/1.2 var(--font-display, inherit); letter-spacing: -.02em; }
.dx-h2:first-child { margin-top: 0; }
.dx-h2 small { font-family: inherit; font-weight: 500; font-size: .82rem; letter-spacing: 0; color: var(--muted); text-align: right; }

.dx-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; counter-reset: dx-step; }
.dx-step { position: relative; display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.1rem 1.1rem 1.2rem; border-radius: var(--dx-radius); text-decoration: none; border: 1px solid var(--dx-line); background: var(--dx-surface); transition: transform .35s var(--ease, ease), border-color .2s; }
.dx-step::before { counter-increment: dx-step; content: counter(dx-step); display: grid; place-items: center; width: 1.7rem; height: 1.7rem; margin-bottom: .3rem; border-radius: 50%; font-weight: 800; font-size: .85rem; color: #fff; background: linear-gradient(135deg, var(--dx-brand), var(--dx-brand-2)); }
.dx-step:hover { transform: translateY(-3px); border-color: var(--dx-brand); }
.dx-step strong { font-size: 1rem; } .dx-step span { color: var(--muted); font-size: .84rem; line-height: 1.45; }

.dx-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 30%); gap: 1rem; overflow-x: auto; padding: .2rem .2rem 1rem; scroll-snap-type: x proximity; scrollbar-width: thin; }
@media (max-width: 700px) { .dx-rail { grid-auto-columns: 80%; } }
.dx-newcard { scroll-snap-align: start; display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.2rem; border-radius: var(--dx-radius); text-decoration: none; font-size: .84rem;
  border: 1px solid color-mix(in srgb, var(--dx-brand-2) 45%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--dx-brand-2) 14%, transparent), color-mix(in srgb, #9B59B6 6%, transparent));
  transition: transform .35s var(--ease, ease); }
.dx-newcard:hover { transform: translateY(-3px); }
.dx-newcard .dx-new { align-self: flex-start; } .dx-newcard strong { font-size: 1rem; } .dx-newcard span.s { color: var(--muted); line-height: 1.45; }

.dx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.1rem; }
.dx-cards:has(.dx-card:hover) .dx-card:not(:hover) { opacity: .72; }
.dx-card { container-type: inline-size; position: relative; overflow: hidden; padding: 1.3rem; border-radius: 20px; border: 1px solid var(--dx-line); background: var(--dx-surface); transition: opacity .25s, border-color .25s, transform .35s var(--ease, ease); }
.dx-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--dx-brand) 20%, transparent), transparent 62%); }
.dx-card:hover { border-color: color-mix(in srgb, var(--dx-brand) 55%, var(--dx-line)); transform: translateY(-3px); }
.dx-card:hover::before { opacity: 1; }
.dx-card-head { position: relative; display: flex; gap: .9rem; align-items: center; margin-bottom: .8rem; text-decoration: none; }
.dx-card-ico { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; font-size: 1.5rem; border-radius: 14px; background: var(--dx-surface-2); }
.dx-card h3 { margin: 0; font-size: 1.05rem; } .dx-card .m { color: var(--muted); font-size: .8rem; }
.dx-card ul { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .15rem; font-size: .88rem; }
.dx-card li a { display: block; padding: .28rem .1rem; color: var(--muted); text-decoration: none; border-radius: 6px; } .dx-card li a:hover { color: var(--dx-brand); }
.dx-card .more { color: var(--muted); font-size: .8rem; padding-top: .2rem; }
@container (min-width: 380px) { .dx-card ul { columns: 2; column-gap: 1rem; } }

/* ---------- Artikel ---------- */
.dx-crumbs { display: flex; flex-wrap: wrap; gap: .35rem; font-size: .8rem; color: var(--muted); margin-bottom: 1rem; }
.dx-crumbs a { text-decoration: none; color: var(--muted); } .dx-crumbs a:hover { color: var(--dx-brand); }
.dx-article h1 { margin: 0 0 .6rem; font: 800 clamp(1.7rem, 4vw, 2.4rem)/1.12 var(--font-display, inherit); letter-spacing: -.03em; text-wrap: balance; }
.dx-summary { margin: 0 0 1rem; color: var(--muted); font-size: 1.08rem; line-height: 1.55; text-wrap: pretty; }
.dx-meta { display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; color: var(--muted); font-size: .8rem; }
.dx-tag { padding: .12rem .65rem; border-radius: 99px; background: var(--dx-surface-2); text-decoration: none; color: var(--muted); } .dx-tag:hover { color: var(--dx-brand); }
.dx-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.8rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--dx-line); }
.dx-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: 10px; border: 1px solid var(--dx-line); background: var(--dx-surface); color: var(--text); font: inherit; font-size: .85rem; text-decoration: none; cursor: pointer; transition: border-color .2s, transform .25s var(--ease, ease); }
.dx-btn:hover { border-color: var(--dx-brand); transform: translateY(-1px); }
.dx-btn.pri { border: 0; color: #fff; background: linear-gradient(135deg, var(--dx-brand), var(--dx-brand-2)); }
.dx-btn[hidden] { display: none; }

.dx-body { line-height: 1.75; font-size: 1rem; max-width: 74ch; text-wrap: pretty; }
.dx-body h3 { position: relative; scroll-margin-top: 100px; margin: 2.2rem 0 .6rem; font-size: 1.25rem; letter-spacing: -.01em; }
.dx-body .dx-h-anchor { position: absolute; left: -1.3rem; opacity: 0; color: var(--muted); text-decoration: none; } .dx-body h3:hover .dx-h-anchor { opacity: 1; }
.dx-body p { margin: 0 0 1rem; } .dx-body ul, .dx-body ol { margin: 0 0 1.1rem; padding-left: 1.4rem; } .dx-body li { margin-bottom: .4rem; }
.dx-body a { color: var(--dx-brand); text-underline-offset: 3px; }
.dx-body code, .dx-a code { padding: .14rem .42rem; border-radius: 6px; font: .87em var(--font-mono, ui-monospace, monospace); background: var(--dx-surface-2); border: 1px solid var(--dx-line); }
.dx-body code.dx-cmd, .dx-a code.dx-cmd { cursor: copy; transition: border-color .2s, background .2s; }
.dx-body code.dx-cmd:hover, .dx-a code.dx-cmd:hover { border-color: var(--dx-brand); background: color-mix(in srgb, var(--dx-brand) 14%, transparent); }
.dx-body .callout { position: relative; margin: 1.3rem 0; padding: .95rem 1.1rem .95rem 3rem; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--dx-brand-2) 40%, transparent); background: color-mix(in srgb, var(--dx-brand-2) 9%, transparent); }
.dx-body .callout::before { content: "ℹ️"; position: absolute; left: 1rem; top: .9rem; }
.dx-body .callout.tip { border-color: color-mix(in srgb, #57F287 45%, transparent); background: color-mix(in srgb, #57F287 8%, transparent); } .dx-body .callout.tip::before { content: "💡"; }
.dx-body .callout.warn { border-color: color-mix(in srgb, #FEE75C 55%, transparent); background: color-mix(in srgb, #FEE75C 8%, transparent); } .dx-body .callout.warn::before { content: "⚠️"; }
.dx-body .doc-table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1rem 0; font-size: .9rem; }
.dx-body .doc-table th, .dx-body .doc-table td { padding: .6rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--dx-line); }
.dx-body .doc-table th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.dx-body .doc-dl dt { margin-top: 1rem; font-weight: 700; } .dx-body .doc-dl dd { margin: .2rem 0 0; color: var(--muted); }

/* FAQ-Akkordeon: sanftes Auf-/Zuklappen per ::details-content (Chrome 131+), sonst sofort */
.dx-faq { margin-top: 2.6rem; max-width: 74ch; }
.dx-faq-head { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.dx-faq-head h2 { margin: 0; font-size: 1.4rem; }
.dx-faq-tools { display: flex; flex-wrap: wrap; gap: .5rem; }
.dx-faq-tools input { padding: .5rem .8rem; border-radius: 10px; border: 1px solid var(--dx-line); background: var(--dx-surface); color: var(--text); font: inherit; font-size: .85rem; }
.dx-q { content-visibility: auto; contain-intrinsic-size: auto 64px; scroll-margin-top: 100px; margin-bottom: .7rem; border-radius: 14px; border: 1px solid var(--dx-line); background: var(--dx-surface); transition: border-color .2s, background .2s; }
.dx-q[open] { border-color: color-mix(in srgb, var(--dx-brand) 55%, transparent); background: var(--dx-surface-2); }
.dx-q summary { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; font-weight: 650; cursor: pointer; list-style: none; }
.dx-q summary::-webkit-details-marker { display: none; }
.dx-q summary::after { content: "+"; margin-left: auto; width: 1.5rem; height: 1.5rem; display: grid; place-items: center; border-radius: 50%; color: var(--muted); background: var(--dx-surface-2); transition: transform .3s var(--ease, ease); }
.dx-q[open] summary::after { content: "–"; transform: rotate(180deg); color: var(--dx-brand); }
.dx-anchor { order: 2; opacity: 0; font-size: .8rem; text-decoration: none; } .dx-q summary:hover .dx-anchor, .dx-anchor:focus-visible { opacity: .8; }
.dx-a { padding: 0 1.2rem 1.1rem; line-height: 1.7; font-size: .96rem; } .dx-a p { margin: 0 0 .7rem; } .dx-a a { color: var(--dx-brand); }
@supports (interpolate-size: allow-keywords) {
  .dx-q { interpolate-size: allow-keywords; }
  .dx-q::details-content { block-size: 0; overflow: hidden; transition: block-size .3s var(--ease, ease), content-visibility .3s allow-discrete; }
  .dx-q[open]::details-content { block-size: auto; }
}

.dx-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2.6rem; padding: 1rem 1.3rem; max-width: 74ch; border-radius: 16px; border: 1px solid var(--dx-line); background: var(--dx-surface); }
.dx-feedback .dx-btn[disabled] { opacity: .5; cursor: default; }
.dx-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; max-width: 74ch; }
.dx-pn { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.2rem; border-radius: 14px; text-decoration: none; border: 1px solid var(--dx-line); transition: border-color .2s, transform .3s var(--ease, ease); }
.dx-pn:hover { border-color: var(--dx-brand); transform: translateY(-2px); } .dx-pn.next { text-align: right; align-items: flex-end; } .dx-pn .m { color: var(--muted); font-size: .8rem; }
.dx-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.dx-rel { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem; border-radius: 14px; font-size: .85rem; text-decoration: none; border: 1px solid var(--dx-line); transition: border-color .2s, transform .3s var(--ease, ease); }
.dx-rel:hover { border-color: var(--dx-brand); transform: translateY(-2px); } .dx-rel strong { font-size: .95rem; } .dx-rel .m { color: var(--muted); }

.dx-toc-in { position: sticky; top: 92px; display: flex; flex-direction: column; gap: .1rem; padding-left: 1rem; border-left: 1px solid var(--dx-line); font-size: .83rem; }
.dx-toc-in strong { margin-bottom: .5rem; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.dx-toc-in a { padding: .26rem 0; color: var(--muted); text-decoration: none; } .dx-toc-in a:hover, .dx-toc-in a.on { color: var(--dx-brand); }
.dx-toc-in a.on { font-weight: 650; }

.dx-help { margin-top: 3rem; padding: 2.2rem 1.4rem; text-align: center; border-radius: 24px; border: 1px solid var(--dx-line); background: var(--dx-surface); }
.dx-help h3 { margin: 0 0 .4rem; } .dx-help p { margin: 0 auto 1.2rem; max-width: 56ch; color: var(--muted); }
.dx-help .row { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.dx-machine { margin-top: 1rem; text-align: center; color: var(--muted); font-size: .8rem; }
.dx-machine a { color: var(--dx-brand); }

/* ---------- Such-Palette (<dialog>) ---------- */
.dx-pal { width: min(680px, calc(100vw - 1.5rem)); max-height: min(78vh, 640px); margin: 8vh auto auto; padding: 0; overflow: hidden; color: var(--text); border: 1px solid var(--border-hover, var(--dx-line)); border-radius: 20px; background: var(--card); box-shadow: 0 40px 90px rgba(0, 0, 0, .55); }
.dx-pal[open] { display: flex; flex-direction: column; animation: dx-pop .22s var(--ease, ease); }
.dx-pal::backdrop { background: rgba(5, 6, 12, .6); backdrop-filter: blur(6px); }
@keyframes dx-pop { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.dx-pal-top { display: flex; align-items: center; gap: .7rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--dx-line); }
.dx-pal-top input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 1.05rem; }
.dx-pal-list { overflow-y: auto; padding: .4rem; scrollbar-width: thin; }
.dx-pal-group { padding: .7rem .8rem .3rem; color: var(--muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.dx-res { display: block; padding: .65rem .8rem; border-radius: 12px; text-decoration: none; color: var(--text); }
.dx-res:hover, .dx-res[aria-selected="true"] { background: color-mix(in srgb, var(--dx-brand) 14%, transparent); }
.dx-res .c { color: var(--muted); font-size: .72rem; } .dx-res .t { margin: .1rem 0; font-weight: 650; font-size: .95rem; } .dx-res .s { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.dx-res mark { padding: 0 2px; border-radius: 3px; color: inherit; background: color-mix(in srgb, var(--dx-brand) 35%, transparent); }
.dx-res .q { margin-right: .35rem; padding: 0 .35rem; border-radius: 5px; font-size: .66rem; background: color-mix(in srgb, var(--dx-brand-2) 28%, transparent); }
.dx-none { padding: 1.6rem 1rem; text-align: center; color: var(--muted); font-size: .92rem; }
.dx-none button { border: 0; background: none; color: var(--dx-brand); font: inherit; text-decoration: underline; cursor: pointer; }
.dx-pal-foot { display: flex; gap: 1rem; padding: .6rem 1.1rem; border-top: 1px solid var(--dx-line); color: var(--muted); font-size: .75rem; }

.dx-toast { position: fixed; left: 50%; bottom: 1.6rem; z-index: 1300; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: .6rem 1rem; border-radius: 12px; font-size: .85rem; border: 1px solid var(--border-hover, var(--dx-line)); background: var(--card); box-shadow: var(--shadow-lg); transition: opacity .25s, transform .3s var(--ease, ease); }
.dx-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Scroll-Einblendung (nur wo unterstuetzt) ---------- */
@supports (animation-timeline: view()) {
  .dx-reveal { animation: dx-in linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  @keyframes dx-in { from { opacity: 0; transform: translateY(18px); } }
}

@media (pointer: coarse) { .dx-searchbtn kbd, .dx-pal-foot { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .dx *, .dx *::before, .dx *::after, .dx-pal, .dx-searchbtn { animation: none !important; transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
@media print {
  .dx-hero, .dx-side, .dx-toc, .dx-actions, .dx-feedback, .dx-prevnext, .dx-related, .dx-help, .dx-progress, .dx-machine, .dx-faq-tools { display: none !important; }
  .dx-shell, .dx-shell.has-toc { display: block; } .dx-q { content-visibility: visible; } .dx-q > .dx-a { display: block; }
}
