/* public/css/wiki.css */

/* =========================================================
   Wiki.js Integration - bereinigtes isoliertes Layout
   Root: #wiki-isolated-app
   ========================================================= */

body.wiki-page {
    --wiki-top-gap: 8px;
    --wiki-sidebar-width: 320px;
    --wiki-toc-width: 260px;
    --wiki-bg: #111315;
    --wiki-panel: #171a1f;
    --wiki-panel-2: #1b1b1b;
    --wiki-panel-3: #22262d;
    --wiki-code-bg: #0b0d10;
    --wiki-border: rgba(255, 255, 255, .10);
    --wiki-border-soft: rgba(255, 255, 255, .08);
    --wiki-text: #f3f4f6;
    --wiki-text-soft: rgba(255, 255, 255, .62);
    --wiki-text-muted: rgba(255, 255, 255, .46);
    --wiki-accent: #f6b21a;
    --wiki-link: #ff5a5a;
    --wiki-link-hover: #ff7b7b;
}

body.light-mode.wiki-page {
    --wiki-bg: #eeeeee;
    --wiki-panel: #ffffff;
    --wiki-panel-2: #ffffff;
    --wiki-panel-3: #f4f4f4;
    --wiki-code-bg: rgba(0, 0, 0, .06);
    --wiki-border: rgba(0, 0, 0, .12);
    --wiki-border-soft: rgba(0, 0, 0, .10);
    --wiki-text: #111111;
    --wiki-text-soft: rgba(0, 0, 0, .62);
    --wiki-text-muted: rgba(0, 0, 0, .52);
    --wiki-link: #c62828;
    --wiki-link-hover: #e53935;
}

/* =========================================================
   Page-Shell neutralisieren
   ========================================================= */

body.wiki-page #app-container,
body.wiki-page #content,
body.wiki-page #content-area {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* Die globale Navbar ist fixed. #content ist der Scrollcontainer. */
body.wiki-page #content {
    position: relative !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    padding-top: var(--global-nav-height, 48px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scroll-behavior: smooth !important;
}

body.wiki-page #content-area {
    height: auto !important;
    min-height: calc(100dvh - var(--global-nav-height, 48px)) !important;
    overflow: visible !important;
}

body.wiki-page #sidebar,
body.wiki-page #mobile-hamburger,
body.wiki-page #mobile-sidebar-grabber,
body.wiki-page #sidebar-backdrop,
body.wiki-page footer {
    display: none !important;
    pointer-events: none !important;
}

html:has(body.wiki-page),
body.wiki-page {
    overflow: hidden !important;
}

/* =========================================================
   Wiki Root
   ========================================================= */

body.wiki-page #wiki-isolated-app {
    all: initial;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    color: var(--wiki-text) !important;

    display: grid !important;
    grid-template-columns: var(--wiki-sidebar-width) minmax(0, 1fr) var(--wiki-toc-width) !important;
    gap: 14px !important;
    align-items: start !important;

    width: 100% !important;
    max-width: none !important;
    min-height: calc(100dvh - var(--global-nav-height, 48px)) !important;

    margin: 0 !important;
    padding: var(--wiki-top-gap) 12px 24px 12px !important;
    box-sizing: border-box !important;

    background: var(--wiki-bg) !important;
    background-image: none !important;
}

body.wiki-page #wiki-isolated-app,
body.wiki-page #wiki-isolated-app * {
    box-sizing: border-box !important;
}

body.wiki-page #wiki-isolated-app button,
body.wiki-page #wiki-isolated-app input,
body.wiki-page #wiki-isolated-app a {
    font: inherit !important;
}

/* =========================================================
   Linke Wiki-Navigation
   ========================================================= */

body.wiki-page #wiki-isolated-app .wiki-iso-nav {
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr) !important;
    align-content: start !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;

    position: sticky !important;
    top: var(--wiki-top-gap) !important;
    max-height: calc(100dvh - var(--global-nav-height, 48px) - 24px) !important;
    overflow: hidden !important;

    background: var(--wiki-panel-2) !important;
    background-image: none !important;
    border: 1px solid var(--wiki-border) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.wiki-page #wiki-isolated-app .wiki-iso-nav-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 18px 18px 12px 18px !important;
    background: var(--wiki-panel-2) !important;
    border-bottom: 1px solid var(--wiki-border-soft) !important;
}

body.wiki-page #wiki-isolated-app .wiki-iso-nav h2 {
    margin: 0 !important;
    color: var(--wiki-accent) !important;
    font-size: 1.35rem !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
}

body.wiki-page #wiki-isolated-app #wiki-reload-btn,
body.wiki-page #wiki-isolated-app #wiki-sort-open-btn {
    appearance: none !important;
    border: 1px solid rgba(246, 178, 26, .70) !important;
    background: rgba(246, 178, 26, .12) !important;
    color: var(--wiki-accent) !important;
    border-radius: 999px !important;
    padding: 8px 12px !important;
    font-size: .84rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: none !important;
}

body.wiki-page #wiki-isolated-app #wiki-reload-btn:hover,
body.wiki-page #wiki-isolated-app #wiki-sort-open-btn:hover {
    background: rgba(246, 178, 26, .22) !important;
}

body.wiki-page #wiki-isolated-app #wiki-search {
    appearance: none !important;
    width: calc(100% - 36px) !important;
    margin: 12px 18px 14px 18px !important;
    border: 1px solid var(--wiki-border) !important;
    background: #262626 !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 11px 12px !important;
    outline: none !important;
    box-shadow: none !important;
}

body.light-mode.wiki-page #wiki-isolated-app #wiki-search {
    background: #f4f4f4 !important;
    color: #111111 !important;
    border-color: rgba(0, 0, 0, .22) !important;
}

body.wiki-page #wiki-isolated-app #wiki-search::placeholder {
    color: rgba(255, 255, 255, .55) !important;
}

body.light-mode.wiki-page #wiki-isolated-app #wiki-search::placeholder {
    color: rgba(0, 0, 0, .48) !important;
}

body.wiki-page #wiki-isolated-app .wiki-iso-page-list {
    display: block !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: calc(100dvh - var(--global-nav-height, 48px) - 130px) !important;
    padding: 0 !important;
    background: var(--wiki-panel-2) !important;
    box-shadow: none !important;
}

/* Gruppen */
body.wiki-page #wiki-isolated-app .wiki-nav-group {
    display: block !important;
    margin: 0 !important;
    padding: 13px 0 10px 0 !important;
    border-top: 1px solid var(--wiki-border) !important;
    background: transparent !important;
}

body.wiki-page #wiki-isolated-app .wiki-nav-group:first-child {
    border-top: 0 !important;
}

body.wiki-page #wiki-isolated-app .wiki-nav-group-title,
body.wiki-page #wiki-isolated-app h3.wiki-nav-group-title {
    all: unset !important;
    display: block !important;
    box-sizing: border-box !important;
    margin: 0 18px 8px 18px !important;
    padding: 0 !important;
    color: var(--wiki-text-soft) !important;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: .88rem !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    letter-spacing: .01em !important;
    text-transform: none !important;
}

body.wiki-page #wiki-isolated-app .wiki-nav-group-items {
    display: grid !important;
    gap: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Seiteneinträge */
body.wiki-page #wiki-isolated-app .wiki-page-link {
    appearance: none !important;
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 7px 18px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--wiki-text) !important;
    box-shadow: none !important;
    text-align: left !important;
    cursor: pointer !important;
}

body.wiki-page #wiki-isolated-app .wiki-page-link:hover {
    background: rgba(255, 255, 255, .06) !important;
}

body.light-mode.wiki-page #wiki-isolated-app .wiki-page-link:hover {
    background: rgba(0, 0, 0, .055) !important;
}

body.wiki-page #wiki-isolated-app .wiki-page-link.is-active {
    background: rgba(255, 255, 255, .08) !important;
    border-left: 4px solid var(--wiki-accent) !important;
    padding-left: 14px !important;
}

body.light-mode.wiki-page #wiki-isolated-app .wiki-page-link.is-active {
    background: rgba(246, 178, 26, .16) !important;
}

body.wiki-page #wiki-isolated-app .wiki-page-arrow {
    display: block !important;
    color: var(--wiki-text) !important;
    font-size: 1.7rem !important;
    line-height: 1 !important;
    font-weight: 400 !important;
    opacity: .95 !important;
    transform: translateY(-1px) !important;
}

body.wiki-page #wiki-isolated-app .wiki-page-text {
    display: grid !important;
    min-width: 0 !important;
    gap: 2px !important;
}

body.wiki-page #wiki-isolated-app .wiki-page-text strong {
    display: block !important;
    color: var(--wiki-text) !important;
    font-size: .93rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
}

body.wiki-page #wiki-isolated-app .wiki-page-text small {
    display: block !important;
    margin: 0 !important;
    color: var(--wiki-text-muted) !important;
    font-size: .76rem !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

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

body.wiki-page #wiki-isolated-app .wiki-iso-content-card {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: calc(100dvh - var(--global-nav-height, 48px) - 16px) !important;
    margin: 0 !important;
    padding: 28px 34px !important;
    background: var(--wiki-panel) !important;
    border: 1px solid var(--wiki-border-soft) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

body.wiki-page #wiki-isolated-app .wiki-iso-content-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 18px !important;
    margin: 0 0 22px 0 !important;
    padding: 0 0 18px 0 !important;
    min-height: 56px !important;
    border-bottom: 1px solid var(--wiki-border) !important;
}

body.wiki-page #wiki-isolated-app #wiki-title {
    margin: 0 !important;
    color: var(--wiki-accent) !important;
    font-size: 2.05rem !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    text-align: left !important;
}

body.wiki-page #wiki-isolated-app #wiki-description {
    margin: 7px 0 0 0 !important;
    color: var(--wiki-text-soft) !important;
    font-size: .98rem !important;
}

body.wiki-page #wiki-isolated-app #wiki-open-original {
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    align-self: flex-start !important;
    margin: 2px 0 0 0 !important;
    padding: 9px 14px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(246, 178, 26, .70) !important;
    background: rgba(246, 178, 26, .12) !important;
    color: var(--wiki-accent) !important;
    font-size: .9rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

body.wiki-page #wiki-isolated-app #wiki-open-original:hover {
    background: rgba(246, 178, 26, .22) !important;
}

body.wiki-page #wiki-isolated-app .wiki-iso-status {
    margin: 0 0 14px 0 !important;
    color: var(--wiki-text-soft) !important;
    font-size: .92rem !important;
}

body.wiki-page #wiki-isolated-app .wiki-iso-status.is-error {
    color: #ff6b6b !important;
}

body.wiki-page #wiki-isolated-app .wiki-iso-muted {
    color: var(--wiki-text-soft) !important;
    font-size: .95rem !important;
}

body.wiki-page #wiki-isolated-app .wiki-iso-content {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 500px !important;
    margin: 0 !important;
    color: rgba(255, 255, 255, .90) !important;
    line-height: 1.65 !important;
    font-size: 1.02rem !important;
    overflow: visible !important;
    overflow-wrap: anywhere !important;
}

body.light-mode.wiki-page #wiki-isolated-app .wiki-iso-content {
    color: #1a1a1a !important;
}

body.wiki-page #wiki-isolated-app .wiki-iso-content p,
body.wiki-page #wiki-isolated-app .wiki-iso-content li,
body.wiki-page #wiki-isolated-app .wiki-iso-content span,
body.wiki-page #wiki-isolated-app .wiki-iso-content div {
    color: inherit !important;
}

body.wiki-page #wiki-isolated-app .wiki-iso-content h1,
body.wiki-page #wiki-isolated-app .wiki-iso-content h2,
body.wiki-page #wiki-isolated-app .wiki-iso-content h3,
body.wiki-page #wiki-isolated-app .wiki-iso-content h4 {
    color: var(--wiki-text) !important;
    margin: 1.35em 0 .65em 0 !important;
    line-height: 1.2 !important;
    scroll-margin-top: 90px !important;
}

body.wiki-page #wiki-isolated-app .wiki-iso-content h1 {
    text-align: center !important;
    font-size: 2rem !important;
    font-weight: 900 !important;
    padding-bottom: .22em !important;
    border-bottom: 2px solid rgba(246, 178, 26, .75) !important;
}

body.wiki-page #wiki-isolated-app .wiki-iso-content h2 {
    text-align: center !important;
    font-size: 1.65rem !important;
    font-weight: 600 !important;
    padding-bottom: .22em !important;
    border-bottom: 2px solid rgba(246, 178, 26, .75) !important;
}

body.wiki-page #wiki-isolated-app .wiki-iso-content h3 {
    font-size: 1.35rem !important;
    font-weight: 650 !important;
}

body.wiki-page #wiki-isolated-app .wiki-iso-content p {
    margin: 0 0 1em 0 !important;
}

body.wiki-page #wiki-isolated-app .wiki-iso-content ul,
body.wiki-page #wiki-isolated-app .wiki-iso-content ol {
    padding-left: 1.4em !important;
    margin: .5em 0 1em 0 !important;
}

/* Links im Content */
body.wiki-page #wiki-content a,
body.wiki-page .wiki-iso-content a {
    color: var(--wiki-link) !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(255, 90, 90, .75) !important;
    text-underline-offset: 2px !important;
    font-weight: 600 !important;
    background: transparent !important;
}

body.wiki-page #wiki-content a:hover,
body.wiki-page .wiki-iso-content a:hover {
    color: var(--wiki-link-hover) !important;
}

body.wiki-page #wiki-content a:visited,
body.wiki-page .wiki-iso-content a:visited {
    color: var(--wiki-link) !important;
}

/* Code */
body.wiki-page #wiki-isolated-app .wiki-iso-content pre,
body.wiki-page #wiki-isolated-app .wiki-iso-content pre *,
body.wiki-page #wiki-isolated-app .wiki-iso-content code,
body.wiki-page #wiki-isolated-app .wiki-iso-content code * {
    color: #f1f5f9 !important;
}

body.light-mode.wiki-page #wiki-isolated-app .wiki-iso-content pre,
body.light-mode.wiki-page #wiki-isolated-app .wiki-iso-content pre *,
body.light-mode.wiki-page #wiki-isolated-app .wiki-iso-content code,
body.light-mode.wiki-page #wiki-isolated-app .wiki-iso-content code * {
    color: #111111 !important;
}

body.wiki-page #wiki-isolated-app .wiki-iso-content code {
    background: rgba(0, 0, 0, .35) !important;
    border: 1px solid var(--wiki-border-soft) !important;
    border-radius: 6px !important;
    padding: 2px 5px !important;
}

body.wiki-page #wiki-isolated-app .wiki-iso-content pre {
    background: var(--wiki-code-bg) !important;
    border: 1px solid var(--wiki-border) !important;
    border-radius: 10px !important;
    padding: 14px !important;
    overflow: auto !important;
}

body.wiki-page #wiki-isolated-app .wiki-iso-content pre a,
body.wiki-page #wiki-isolated-app .wiki-iso-content code a {
    color: inherit !important;
    text-decoration: none !important;
    font-weight: inherit !important;
}

/* Tabellen */
body.wiki-page #wiki-isolated-app .wiki-iso-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 14px 0 !important;
}

body.wiki-page #wiki-isolated-app .wiki-iso-content th,
body.wiki-page #wiki-isolated-app .wiki-iso-content td {
    border: 1px solid rgba(255, 255, 255, .14) !important;
    padding: 8px 10px !important;
    text-align: left !important;
}

/* Bilder linksbündig */
body.wiki-page #wiki-content img,
body.wiki-page .wiki-iso-content img {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 18px 0 !important;
    border-radius: 12px !important;
    border: 1px solid var(--wiki-border) !important;
    background: rgba(0, 0, 0, .20) !important;
}

body.wiki-page #wiki-content figure,
body.wiki-page .wiki-iso-content figure,
body.wiki-page #wiki-content p:has(img),
body.wiki-page .wiki-iso-content p:has(img) {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
}

/* WICHTIG / Markierungen */
body.wiki-page #wiki-content mark,
body.wiki-page .wiki-iso-content mark,
body.wiki-page #wiki-content .warning,
body.wiki-page #wiki-content .danger,
body.wiki-page #wiki-content .alert,
body.wiki-page .wiki-iso-content .warning,
body.wiki-page .wiki-iso-content .danger,
body.wiki-page .wiki-iso-content .alert {
    background: transparent !important;
    color: #ff4d4d !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-weight: 800 !important;
    box-shadow: none !important;
}

body.light-mode.wiki-page #wiki-content mark,
body.light-mode.wiki-page .wiki-iso-content mark,
body.light-mode.wiki-page #wiki-content .warning,
body.light-mode.wiki-page #wiki-content .danger,
body.light-mode.wiki-page #wiki-content .alert,
body.light-mode.wiki-page .wiki-iso-content .warning,
body.light-mode.wiki-page .wiki-iso-content .danger,
body.light-mode.wiki-page .wiki-iso-content .alert {
    color: #c62828 !important;
}

/* Wiki.js Ankerzeichen entfernen */
body.wiki-page #wiki-isolated-app .wiki-iso-content .toc-anchor,
body.wiki-page #wiki-isolated-app .wiki-iso-content .anchor,
body.wiki-page #wiki-isolated-app .wiki-iso-content .header-anchor,
body.wiki-page #wiki-isolated-app .wiki-iso-content a[href^="#"].toc-anchor,
body.wiki-page #wiki-isolated-app .wiki-iso-content a[href^="#"].anchor,
body.wiki-page #wiki-isolated-app .wiki-iso-content a[href^="#"].header-anchor {
    display: none !important;
}

/* =========================================================
   Inhaltsverzeichnis
   ========================================================= */

body.wiki-page #wiki-isolated-app .wiki-iso-toc {
    align-self: start !important;
    position: sticky !important;
    top: var(--wiki-top-gap) !important;
    max-height: calc(100dvh - var(--global-nav-height, 48px) - 24px) !important;
    overflow: auto !important;
    margin: 0 !important;
    padding: 16px 14px !important;
    background: var(--wiki-panel-2) !important;
    border: 1px solid var(--wiki-border) !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .22) !important;
}

body.light-mode.wiki-page #wiki-isolated-app .wiki-iso-toc {
    box-shadow: 0 14px 34px rgba(0, 0, 0, .10) !important;
}

body.wiki-page #wiki-isolated-app .wiki-iso-toc-title {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 0 14px 0 !important;
    padding: 0 0 10px 0 !important;
    color: var(--wiki-accent) !important;
    font-size: 1.05rem !important;
    font-weight: 900 !important;
    border-bottom: 1px solid var(--wiki-border) !important;
}

body.wiki-page #wiki-isolated-app .wiki-iso-toc-title::before {
    content: "☰";
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 7px !important;
    background: rgba(246, 178, 26, .16) !important;
    color: var(--wiki-accent) !important;
    font-size: .85rem !important;
    line-height: 1 !important;
}

body.wiki-page #wiki-isolated-app .wiki-iso-toc-list {
    display: grid !important;
    gap: 3px !important;
}

body.wiki-page #wiki-isolated-app .wiki-toc-link {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    color: rgba(255, 255, 255, .72) !important;
    background: transparent !important;
    border: 0 !important;
    border-left: 2px solid transparent !important;
    border-radius: 9px !important;
    padding: 7px 8px 7px 12px !important;
    text-decoration: none !important;
    line-height: 1.28 !important;
    font-size: .88rem !important;
    font-weight: 650 !important;
    transition: background .14s ease, color .14s ease, border-color .14s ease, transform .14s ease !important;
}

body.light-mode.wiki-page #wiki-isolated-app .wiki-toc-link {
    color: rgba(0, 0, 0, .66) !important;
}

body.wiki-page #wiki-isolated-app .wiki-toc-link:hover,
body.wiki-page #wiki-isolated-app .wiki-toc-link.is-active {
    color: var(--wiki-text) !important;
    background: rgba(246, 178, 26, .16) !important;
    border-left-color: var(--wiki-accent) !important;
    transform: translateX(2px) !important;
}

body.wiki-page #wiki-isolated-app .wiki-toc-link-h1 {
    color: rgba(255, 255, 255, .90) !important;
    font-size: .92rem !important;
    font-weight: 850 !important;
}

body.light-mode.wiki-page #wiki-isolated-app .wiki-toc-link-h1 {
    color: rgba(0, 0, 0, .86) !important;
}

body.wiki-page #wiki-isolated-app .wiki-toc-link-h2 {
    margin-left: 10px !important;
    width: calc(100% - 10px) !important;
    padding-left: 13px !important;
    color: rgba(255, 255, 255, .72) !important;
    font-size: .84rem !important;
    font-weight: 700 !important;
}

body.light-mode.wiki-page #wiki-isolated-app .wiki-toc-link-h2 {
    color: rgba(0, 0, 0, .68) !important;
}

body.wiki-page #wiki-isolated-app .wiki-toc-link-h3 {
    margin-left: 22px !important;
    width: calc(100% - 22px) !important;
    padding-left: 13px !important;
    color: rgba(255, 255, 255, .56) !important;
    font-size: .80rem !important;
    font-weight: 600 !important;
}

body.light-mode.wiki-page #wiki-isolated-app .wiki-toc-link-h3 {
    color: rgba(0, 0, 0, .54) !important;
}

body.wiki-page #wiki-isolated-app .wiki-toc-link-h2::before,
body.wiki-page #wiki-isolated-app .wiki-toc-link-h3::before {
    content: "";
    position: absolute !important;
    left: 3px !important;
    top: 50% !important;
    width: 5px !important;
    height: 1px !important;
    background: rgba(246, 178, 26, .45) !important;
}

/* =========================================================
   Sortier-Modal passend zu aktueller wiki.js
   ========================================================= */

body.wiki-page #wiki-sort-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99990 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 72px 24px 24px 24px !important;
    box-sizing: border-box !important;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    color: var(--wiki-text) !important;
    pointer-events: none !important;
}

body.wiki-page #wiki-sort-modal.is-open {
    display: flex !important;
    pointer-events: auto !important;
}

body.wiki-page #wiki-sort-modal .wiki-sort-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1 !important;
    display: block !important;
    background: rgba(0, 0, 0, .62) !important;
    backdrop-filter: blur(5px) !important;
    pointer-events: auto !important;
}

body.wiki-page #wiki-sort-modal .wiki-sort-dialog {
    position: relative !important;
    z-index: 2 !important;
    width: min(1120px, calc(100vw - 48px)) !important;
    max-height: calc(100dvh - 96px) !important;
    margin: 0 auto !important;
    transform: none !important;
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr) auto !important;
    background: var(--wiki-panel) !important;
    color: var(--wiki-text) !important;
    border: 1px solid rgba(255, 255, 255, .14) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .55) !important;
    overflow: hidden !important;
    filter: none !important;
    backdrop-filter: none !important;
    pointer-events: auto !important;
}

body.light-mode.wiki-page #wiki-sort-modal .wiki-sort-dialog {
    border-color: rgba(0, 0, 0, .14) !important;
}

body.wiki-page #wiki-sort-modal .wiki-sort-head,
body.wiki-page #wiki-sort-modal .wiki-sort-footer {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 14px !important;
    padding: 16px 18px !important;
    background: var(--wiki-panel-2) !important;
    border-color: var(--wiki-border) !important;
}

body.wiki-page #wiki-sort-modal .wiki-sort-head {
    border-bottom: 1px solid var(--wiki-border) !important;
}

body.wiki-page #wiki-sort-modal .wiki-sort-footer {
    align-items: center !important;
    justify-content: flex-end !important;
    border-top: 1px solid var(--wiki-border) !important;
}

body.wiki-page #wiki-sort-modal .wiki-sort-head h2 {
    margin: 0 !important;
    color: var(--wiki-accent) !important;
    font-size: 1.35rem !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
}

body.wiki-page #wiki-sort-modal .wiki-sort-head p {
    margin: 5px 0 0 0 !important;
    color: var(--wiki-text-soft) !important;
    font-size: .92rem !important;
}

body.wiki-page #wiki-sort-modal .wiki-sort-close {
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border-radius: 999px !important;
    font-size: 1.4rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

body.wiki-page #wiki-sort-modal .wiki-sort-status {
    min-height: 24px !important;
    padding: 10px 18px !important;
    background: var(--wiki-panel) !important;
    color: var(--wiki-text-soft) !important;
    font-size: .9rem !important;
}

body.wiki-page #wiki-sort-modal .wiki-sort-status.is-error {
    color: #ff6b6b !important;
}

body.wiki-page #wiki-sort-modal .wiki-sort-list {
    overflow: auto !important;
    padding: 18px !important;
    background: var(--wiki-panel) !important;
    color: var(--wiki-text) !important;
}

body.wiki-page #wiki-sort-modal .wiki-sort-group {
    margin: 0 0 16px 0 !important;
    background: #1d2026 !important;
    border: 1px solid var(--wiki-border) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
}

body.light-mode.wiki-page #wiki-sort-modal .wiki-sort-group {
    background: #ffffff !important;
}

body.wiki-page #wiki-sort-modal .wiki-sort-group-head {
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) auto auto !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 14px !important;
    background: var(--wiki-panel-3) !important;
    border-bottom: 1px solid var(--wiki-border) !important;
}

body.wiki-page #wiki-sort-modal .wiki-sort-group-head strong {
    color: var(--wiki-text) !important;
    font-size: 1rem !important;
    font-weight: 850 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.wiki-page #wiki-sort-modal .wiki-sort-count {
    color: var(--wiki-text-muted) !important;
    font-size: .82rem !important;
    font-weight: 700 !important;
}

body.wiki-page #wiki-sort-modal .wiki-sort-pages {
    display: grid !important;
    gap: 6px !important;
    padding: 10px !important;
}

body.wiki-page #wiki-sort-modal .wiki-sort-page {
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) minmax(120px, auto) auto !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 10px !important;
    background: #15181d !important;
    color: var(--wiki-text) !important;
    border: 1px solid var(--wiki-border-soft) !important;
    border-radius: 10px !important;
}

body.light-mode.wiki-page #wiki-sort-modal .wiki-sort-page {
    background: #ffffff !important;
}

body.wiki-page #wiki-sort-modal .wiki-sort-page-title {
    color: var(--wiki-text) !important;
    font-size: .92rem !important;
    font-weight: 750 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.wiki-page #wiki-sort-modal .wiki-sort-page small {
    color: var(--wiki-text-muted) !important;
    font-size: .78rem !important;
    font-weight: 500 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.wiki-page #wiki-sort-modal .wiki-sort-handle {
    color: var(--wiki-text-soft) !important;
    font-size: 1.15rem !important;
    cursor: grab !important;
    user-select: none !important;
}

body.wiki-page #wiki-sort-modal .is-dragging {
    opacity: .45 !important;
}

body.wiki-page #wiki-sort-modal .wiki-sort-move-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

body.wiki-page #wiki-sort-modal button {
    appearance: none !important;
    border: 1px solid var(--wiki-border) !important;
    background: rgba(255, 255, 255, .06) !important;
    color: var(--wiki-text) !important;
    border-radius: 10px !important;
    padding: 7px 10px !important;
    font-size: .85rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

body.light-mode.wiki-page #wiki-sort-modal button {
    background: rgba(0, 0, 0, .04) !important;
}

body.wiki-page #wiki-sort-modal button:hover {
    background: rgba(255, 255, 255, .12) !important;
}

body.wiki-page #wiki-sort-modal .wiki-sort-primary {
    border-color: rgba(246, 178, 26, .85) !important;
    background: var(--wiki-accent) !important;
    color: #111111 !important;
}

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

@media (max-width: 1200px) {
    body.wiki-page #wiki-isolated-app {
        grid-template-columns: 300px minmax(0, 1fr) !important;
    }

    body.wiki-page #wiki-isolated-app .wiki-iso-toc {
        display: none !important;
    }
}

@media (max-width: 900px) {
    body.wiki-page #wiki-isolated-app {
        grid-template-columns: 1fr !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    body.wiki-page #wiki-isolated-app .wiki-iso-nav,
    body.wiki-page #wiki-isolated-app .wiki-iso-toc {
        position: static !important;
        max-height: none !important;
    }

    body.wiki-page #wiki-isolated-app .wiki-iso-toc {
        display: block !important;
        order: 2 !important;
    }

    body.wiki-page #wiki-isolated-app .wiki-iso-content-card {
        order: 3 !important;
    }

    body.wiki-page #wiki-isolated-app .wiki-iso-content-head {
        display: grid !important;
    }

    body.wiki-page #wiki-isolated-app #wiki-open-original {
        justify-self: start !important;
    }

    body.wiki-page #wiki-sort-modal {
        padding: 64px 12px 12px 12px !important;
    }

    body.wiki-page #wiki-sort-modal .wiki-sort-dialog {
        width: calc(100vw - 24px) !important;
        max-height: calc(100dvh - 76px) !important;
    }

    body.wiki-page #wiki-sort-modal .wiki-sort-page {
        grid-template-columns: 28px minmax(0, 1fr) auto !important;
    }

    body.wiki-page #wiki-sort-modal .wiki-sort-page small {
        display: none !important;
    }
}

/* =========================================================
   Wiki-Content: Hyperlinks hellblau
   ========================================================= */

body.wiki-page #wiki-content a,
body.wiki-page .wiki-iso-content a {
    color: #6ecbff !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(110, 203, 255, 0.75) !important;
    text-underline-offset: 2px !important;
    font-weight: 600 !important;
    background: transparent !important;
}

body.wiki-page #wiki-content a:hover,
body.wiki-page .wiki-iso-content a:hover {
    color: #9bddff !important;
    text-decoration-color: rgba(155, 221, 255, 0.95) !important;
}

body.wiki-page #wiki-content a:visited,
body.wiki-page .wiki-iso-content a:visited {
    color: #8fd8ff !important;
}

/* Links in Codeblöcken nicht einfärben */
body.wiki-page #wiki-content pre a,
body.wiki-page #wiki-content code a,
body.wiki-page .wiki-iso-content pre a,
body.wiki-page .wiki-iso-content code a {
    color: inherit !important;
    text-decoration: none !important;
    font-weight: inherit !important;
}

body.light-mode.wiki-page #wiki-content a,
body.light-mode.wiki-page .wiki-iso-content a {
    color: #0277bd !important;
    text-decoration-color: rgba(2, 119, 189, 0.75) !important;
}

body.light-mode.wiki-page #wiki-content a:hover,
body.light-mode.wiki-page .wiki-iso-content a:hover {
    color: #01579b !important;
    text-decoration-color: rgba(1, 87, 155, 0.95) !important;
}

body.light-mode.wiki-page #wiki-content a:visited,
body.light-mode.wiki-page .wiki-iso-content a:visited {
    color: #1565c0 !important;
}

/* =========================================================
   Wiki: Content-Kachel farblich an Sidebar/TOC angleichen
   ========================================================= */

body.wiki-page #wiki-isolated-app .wiki-iso-content-card {
    background: #1b1b1b !important;
    background-image: none !important;
    border-color: rgba(255, 255, 255, .10) !important;
}

/* Wiki-Content selbst nicht nochmal dunkler einfärben */
body.wiki-page #wiki-content,
body.wiki-page #wiki-isolated-app .wiki-iso-content {
    background: transparent !important;
}

/* Lightmode passend */
body.light-mode.wiki-page #wiki-isolated-app .wiki-iso-content-card {
    background: #ffffff !important;
    background-image: none !important;
}

/* =========================================================
   Wiki: Codefelder linksbündiger / weniger Innenabstand
   ========================================================= */

body.wiki-page #wiki-content pre,
body.wiki-page .wiki-iso-content pre {
    padding: 10px 12px !important;
    margin: 14px 0 22px 0 !important;
    background: #0b0d10 !important;
    border: 1px solid rgba(255, 255, 255, .10) !important;
    border-radius: 10px !important;
    overflow: auto !important;
}

/* Code im pre nicht zusätzlich einrücken */
body.wiki-page #wiki-content pre code,
body.wiki-page .wiki-iso-content pre code {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    white-space: pre !important;
}

/* Inline-Code bleibt als kleines Badge erhalten */
body.wiki-page #wiki-content :not(pre)>code,
body.wiki-page .wiki-iso-content :not(pre)>code {
    padding: 2px 5px !important;
    background: rgba(0, 0, 0, .35) !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    border-radius: 6px !important;
}

/* =========================================================
   Wiki: H2-Unterstreichung nur unter dem Text, nicht volle Breite
   ========================================================= */

body.wiki-page #wiki-content h2,
body.wiki-page .wiki-iso-content h2 {
    display: block !important;
    width: fit-content !important;
    max-width: 100% !important;

    margin-left: auto !important;
    margin-right: auto !important;

    padding-bottom: .22em !important;

    border-bottom: 2px solid rgba(246, 178, 26, .75) !important;

    text-align: center !important;
}

/* Falls H2 zu lang ist, darf er umbrechen */
body.wiki-page #wiki-content h2,
body.wiki-page .wiki-iso-content h2 {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

/* =========================================================
   WIKI - Wiki.js-like Copy Button for Code Blocks
   - Copy button directly inside/right of each code box
   - Removes the extra outer frame around copied code boxes
   ========================================================= */

body.wiki-page #wiki-isolated-app .wiki-code-copy-wrap {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin: 0 0 1rem 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
}

body.wiki-page #wiki-isolated-app .wiki-code-copy-wrap pre {
    margin: 0 !important;
    padding: 14px 58px 14px 14px !important;
    border-radius: 8px !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: var(--wiki-code-bg) !important;
}

body.wiki-page #wiki-isolated-app .wiki-code-copy-wrap pre code {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

body.wiki-page #wiki-isolated-app .wiki-code-copy-btn {
    appearance: none !important;
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 20 !important;

    min-width: 42px !important;
    height: 22px !important;
    padding: 0 8px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 0 !important;
    border-radius: 7px !important;
    background: rgba(108, 117, 125, 0.92) !important;
    color: #ffffff !important;

    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;

    cursor: pointer !important;
    box-shadow: none !important;
}

body.wiki-page #wiki-isolated-app .wiki-code-copy-btn:hover {
    background: rgba(130, 139, 149, 0.98) !important;
}

body.wiki-page #wiki-isolated-app .wiki-code-copy-btn:active {
    transform: translateY(1px) !important;
}

body.light-mode.wiki-page #wiki-isolated-app .wiki-code-copy-wrap pre {
    background: var(--wiki-code-bg) !important;
}

body.light-mode.wiki-page #wiki-isolated-app .wiki-code-copy-btn {
    background: rgba(96, 106, 116, 0.92) !important;
    color: #ffffff !important;
}

body.light-mode.wiki-page #wiki-isolated-app .wiki-code-copy-btn:hover {
    background: rgba(77, 86, 96, 0.98) !important;
}

/* =========================================================
   WIKI - TABLE FINAL FIX
   Verhindert helle Tabellenzeilen im Darkmode
   ========================================================= */

body.wiki-page #wiki-isolated-app .wiki-iso-content table {
    width: 100% !important;
    max-width: 100% !important;
    margin: 18px 0 34px 0 !important;

    border-collapse: separate !important;
    border-spacing: 0 !important;

    overflow: hidden !important;
    border-radius: 10px !important;

    border: 1px solid var(--wiki-border) !important;
    box-shadow: none !important;
}

/* Keine Wiki.js/Markdown-Zeilenfarben durchlassen */
body.wiki-page #wiki-isolated-app .wiki-iso-content table tr,
body.wiki-page #wiki-isolated-app .wiki-iso-content table thead,
body.wiki-page #wiki-isolated-app .wiki-iso-content table tbody,
body.wiki-page #wiki-isolated-app .wiki-iso-content table tfoot {
    background: transparent !important;
}

/* Header-Zellen */
body.wiki-page #wiki-isolated-app .wiki-iso-content table th {
    padding: 11px 14px !important;

    color: var(--wiki-text) !important;
    background: rgba(246, 178, 26, 0.18) !important;

    border: 0 !important;
    border-bottom: 1px solid rgba(246, 178, 26, 0.42) !important;

    font-size: 0.95rem !important;
    font-weight: 850 !important;
    line-height: 1.35 !important;
    text-align: left !important;
    vertical-align: top !important;
}

/* Normale Zellen */
body.wiki-page #wiki-isolated-app .wiki-iso-content table td {
    padding: 11px 14px !important;

    color: var(--wiki-text) !important;

    border: 0 !important;
    border-bottom: 1px solid var(--wiki-border-soft) !important;

    font-size: 0.95rem !important;
    line-height: 1.45 !important;
    text-align: left !important;
    vertical-align: top !important;
}

/* Letzte Zeile ohne Unterkante */
body.wiki-page #wiki-isolated-app .wiki-iso-content table tr:last-child td {
    border-bottom: 0 !important;
}

/* =========================================================
   DARKMODE TABLE
   ========================================================= */

body.wiki-page:not(.light-mode) #wiki-isolated-app .wiki-iso-content table,
body:not(.light-mode).wiki-page #wiki-isolated-app .wiki-iso-content table {
    background: #171a1f !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

body.wiki-page:not(.light-mode) #wiki-isolated-app .wiki-iso-content table th,
body:not(.light-mode).wiki-page #wiki-isolated-app .wiki-iso-content table th {
    color: #f8fafc !important;
    background: #6b5418 !important;
    border-bottom-color: rgba(246, 178, 26, 0.45) !important;
}

body.wiki-page:not(.light-mode) #wiki-isolated-app .wiki-iso-content table td,
body:not(.light-mode).wiki-page #wiki-isolated-app .wiki-iso-content table td {
    color: #f3f4f6 !important;
    background: #171a1f !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body.wiki-page:not(.light-mode) #wiki-isolated-app .wiki-iso-content table tbody tr:nth-child(even) td,
body:not(.light-mode).wiki-page #wiki-isolated-app .wiki-iso-content table tbody tr:nth-child(even) td {
    background: #1d2026 !important;
}

body.wiki-page:not(.light-mode) #wiki-isolated-app .wiki-iso-content table tbody tr:hover td,
body:not(.light-mode).wiki-page #wiki-isolated-app .wiki-iso-content table tbody tr:hover td {
    background: #252312 !important;
}

/* Code-Badges in Darkmode-Tabellen */
body.wiki-page:not(.light-mode) #wiki-isolated-app .wiki-iso-content table code,
body:not(.light-mode).wiki-page #wiki-isolated-app .wiki-iso-content table code {
    display: inline-block !important;
    color: #f8fafc !important;
    background: rgba(255, 255, 255, 0.10) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 7px !important;
    padding: 3px 7px !important;
    font-size: 0.88em !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
}

/* =========================================================
   LIGHTMODE TABLE
   ========================================================= */

body.light-mode.wiki-page #wiki-isolated-app .wiki-iso-content table {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08) !important;
}

body.light-mode.wiki-page #wiki-isolated-app .wiki-iso-content table th {
    color: #111827 !important;
    background: rgba(246, 178, 26, 0.22) !important;
    border-bottom-color: rgba(233, 166, 36, 0.45) !important;
}

body.light-mode.wiki-page #wiki-isolated-app .wiki-iso-content table td {
    color: #111827 !important;
    background: #ffffff !important;
    border-bottom-color: rgba(15, 23, 42, 0.10) !important;
}

body.light-mode.wiki-page #wiki-isolated-app .wiki-iso-content table tbody tr:nth-child(even) td {
    background: #f8fafc !important;
}

body.light-mode.wiki-page #wiki-isolated-app .wiki-iso-content table tbody tr:hover td {
    background: rgba(246, 178, 26, 0.12) !important;
}

/* Code-Badges in Lightmode-Tabellen */
body.light-mode.wiki-page #wiki-isolated-app .wiki-iso-content table code {
    display: inline-block !important;
    color: #111827 !important;
    background: rgba(15, 23, 42, 0.07) !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    border-radius: 7px !important;
    padding: 3px 7px !important;
    font-size: 0.88em !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
}

/* =========================================================
   WIKI - Lightmode Inline-Code Lesbarkeit
   Betrifft z.B. `iocharset=utf8`, `rw`, `credentials=...`
   ========================================================= */

body.light-mode.wiki-page #wiki-isolated-app .wiki-iso-content :not(pre)>code,
body.light-mode.wiki-page #wiki-content :not(pre)>code,
body.light-mode.wiki-page .wiki-iso-content :not(pre)>code {
    display: inline-block !important;

    background: #dddddd !important;
    color: #111827 !important;

    border: 1px solid rgba(144, 144, 144, 0.65) !important;
    border-radius: 6px !important;

    padding: 2px 7px !important;
    margin: 0 2px !important;

    font-family: "Cascadia Code", "Fira Code", "Consolas", "Courier New", monospace !important;
    font-size: 0.92em !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;

    box-shadow: none !important;
}

/* Inline-Code innerhalb Listen sauber ausrichten */
body.light-mode.wiki-page #wiki-isolated-app .wiki-iso-content li code,
body.light-mode.wiki-page #wiki-content li code,
body.light-mode.wiki-page .wiki-iso-content li code {
    vertical-align: baseline !important;
}

/* Links innerhalb Inline-Code nicht hellblau auf gelb erzwingen */
body.light-mode.wiki-page #wiki-isolated-app .wiki-iso-content :not(pre)>code a,
body.light-mode.wiki-page #wiki-content :not(pre)>code a,
body.light-mode.wiki-page .wiki-iso-content :not(pre)>code a {
    color: #111827 !important;
    text-decoration: none !important;
}

/* =========================================================
   Wiki: runde Ecken + gelbe linke Gruppenüberschriften
   ========================================================= */

body.wiki-page #wiki-isolated-app .wiki-iso-nav,
body.wiki-page #wiki-isolated-app .wiki-iso-content-card,
body.wiki-page #wiki-isolated-app .wiki-iso-toc,
body.wiki-page #wiki-isolated-app .wiki-iso-panel,
body.wiki-page #wiki-isolated-app .wiki-card,
body.wiki-page #wiki-isolated-app .wiki-content-card {
    border-radius: 14px !important;
    overflow: hidden !important;
}

body.wiki-page #wiki-isolated-app .wiki-iso-nav-head {
    border-radius: 14px 14px 0 0 !important;
}

body.wiki-page #wiki-isolated-app .wiki-iso-page-list {
    border-radius: 0 0 14px 14px !important;
}

body.wiki-page #wiki-isolated-app .wiki-nav-group-title,
body.wiki-page #wiki-isolated-app h3.wiki-nav-group-title {
    color: var(--wiki-accent) !important;
    font-weight: 800 !important;
}

/* Falls einzelne Inhaltsboxen/Codeblöcke noch eckig sind */
body.wiki-page #wiki-isolated-app pre,
body.wiki-page #wiki-isolated-app code,
body.wiki-page #wiki-isolated-app blockquote,
body.wiki-page #wiki-isolated-app table,
body.wiki-page #wiki-isolated-app img {
    border-radius: 10px !important;
}

/* =========================================================
   Wiki Sort Modal - echter Vordergrund / Hitbox-Fix
   ========================================================= */

body.wiki-page.wiki-sort-modal-open #wiki-isolated-app {
    pointer-events: none !important;
}

body.wiki-page #wiki-sort-modal,
body.wiki-page #wiki-sort-modal.is-open {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    isolation: isolate !important;
}

body.wiki-page #wiki-sort-modal.is-open {
    display: flex !important;
    pointer-events: auto !important;
}

body.wiki-page #wiki-sort-modal .wiki-sort-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 0 !important;
    pointer-events: auto !important;
}

body.wiki-page #wiki-sort-modal .wiki-sort-dialog {
    position: relative !important;
    z-index: 10 !important;
    pointer-events: auto !important;
    isolation: isolate !important;
}

body.wiki-page #wiki-sort-modal .wiki-sort-list {
    position: relative !important;
    z-index: 1 !important;
    min-height: 0 !important;
    pointer-events: auto !important;
}

body.wiki-page #wiki-sort-modal .wiki-sort-footer {
    position: relative !important;
    z-index: 30 !important;
    pointer-events: auto !important;
}

body.wiki-page #wiki-sort-modal .wiki-sort-footer button,
body.wiki-page #wiki-sort-modal #wiki-sort-save-btn {
    position: relative !important;
    z-index: 31 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
}

body.wiki-page #wiki-sort-modal #wiki-sort-save-btn {
    cursor: pointer !important;
}

/* =========================================================
   Wiki: Rechte Inhalt-Kachel scrollbar machen
   ========================================================= */

body.wiki-page #wiki-isolated-app .wiki-iso-toc {
    position: sticky !important;
    top: var(--wiki-top-gap) !important;

    max-height: calc(100dvh - var(--global-nav-height, 48px) - 24px) !important;
    min-height: 0 !important;

    display: flex !important;
    flex-direction: column !important;

    overflow: hidden !important;
}

body.wiki-page #wiki-isolated-app .wiki-iso-toc-title {
    flex: 0 0 auto !important;
}

body.wiki-page #wiki-isolated-app #wiki-toc-list,
body.wiki-page #wiki-isolated-app .wiki-iso-toc-list {
    flex: 1 1 auto !important;
    min-height: 0 !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    padding-right: 6px !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
}

/* Scrollbar passend zum Wiki-Design */
body.wiki-page #wiki-isolated-app #wiki-toc-list::-webkit-scrollbar,
body.wiki-page #wiki-isolated-app .wiki-iso-toc-list::-webkit-scrollbar {
    width: 8px !important;
}

body.wiki-page #wiki-isolated-app #wiki-toc-list::-webkit-scrollbar-thumb,
body.wiki-page #wiki-isolated-app .wiki-iso-toc-list::-webkit-scrollbar-thumb {
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.26) !important;
}

body.light-mode.wiki-page #wiki-isolated-app #wiki-toc-list::-webkit-scrollbar-thumb,
body.light-mode.wiki-page #wiki-isolated-app .wiki-iso-toc-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.22) !important;
}

body.wiki-page #wiki-isolated-app #wiki-toc-list::-webkit-scrollbar-track,
body.wiki-page #wiki-isolated-app .wiki-iso-toc-list::-webkit-scrollbar-track {
    background: transparent !important;
}