/* geaendert 2026-10-15 09:58: BoB2 chapter navigation standard; loaded only by manuals. */
:root:has(.bob-chapter-guide:not(.bob-chapter-guide-dialog)) {
    /* Bootstrap sets smooth scrolling on :root. The controller chooses motion
       explicitly so initial hashes, history and reduced-motion use instant positioning. */
    scroll-behavior: auto;
    --bob-guide-topbar-height: 0px;
    --bob-guide-menu-height: 56px;
    --bob-guide-chapters-height: 80px;
}
/* The normal backend menu stays usable while its school/status row scrolls away. */
body:has(.bob-chapter-guide:not(.bob-chapter-guide-dialog)) > .bob-backend-header-5 {
    position: sticky;
    top: calc(-1 * var(--bob-guide-topbar-height));
    z-index: 1035;
}
body:has(.bob-chapter-guide:not(.bob-chapter-guide-dialog)) > main.inhalt { width: 100%; max-width: none; }
.bob-chapter-guide { width: 100%; max-width: none; }
.bob-chapter-guide .bewerber-guide-hero { margin-bottom: 1rem !important; }
.bob-chapter-nav {
    /* Only the tokens needed by the unmodified PatternFly JumpLinks component.
       No PatternFly base reset, fonts, global theme or other components are loaded. */
    --pf-t--global--spacer--sm: .5rem;
    --pf-t--global--spacer--md: 1rem;
    --pf-t--global--spacer--lg: 1.5rem;
    --pf-t--global--border--color--default: #d6dce2;
    --pf-t--global--border--width--box--default: 1px;
    --pf-t--global--border--width--extra-strong: 3px;
    --pf-t--global--border--radius--pill: 0;
    --pf-t--global--color--brand--accent--default: #0066cc;
    --pf-t--global--text--color--subtle: #46515c;
    --pf-t--global--text--color--regular: #17212b;
    --pf-t--global--icon--color--regular: #17212b;
    --pf-t--global--motion--duration--icon--default: 100ms;
    --pf-t--global--motion--timing-function--default: ease-out;
    position: sticky;
    top: var(--bob-guide-menu-height);
    z-index: 1020;
    background: #fff;
    border-bottom: 1px solid #d6dce2;
    margin-bottom: 1.5rem;
    font-size: .9375rem;
}
.bob-chapter-nav .pf-v6-c-jump-links__main { width: 100%; min-width: 0; }
.bob-chapter-nav .pf-v6-c-jump-links__label {
    margin: 0;
    padding: .55rem .65rem .35rem;
    font-size: .8125rem;
    color: #46515c;
}
.bob-chapter-nav .pf-v6-c-jump-links__list {
    flex-wrap: wrap;
    gap: 0 .3rem;
    margin: 0;
    padding-inline: 0;
    list-style: none;
}
.bob-chapter-nav .pf-v6-c-jump-links__link {
    min-height: 44px;
    align-items: center;
    color: #46515c;
    line-height: 1.35;
}
.bob-chapter-nav .pf-m-current > .pf-v6-c-jump-links__link { font-weight: 600; }
.bob-chapter-nav .pf-v6-c-jump-links__link:focus-visible,
.bob-chapter-nav .pf-v6-c-jump-links__toggle:focus-visible {
    outline: 2px solid #0066cc;
    outline-offset: -3px;
}
.bob-chapter-nav .pf-v6-c-jump-links__link:hover { background: #f2f6fa; }
.bob-chapter-nav .pf-v6-c-jump-links__toggle {
    width: 100%;
    border: 0;
    background: #fff;
    color: #17212b;
    padding: .65rem;
    text-align: left;
    font: inherit;
    min-height: 48px;
}
.bob-chapter-nav .pf-v6-c-jump-links__toggle-icon { float: right; margin-inline-start: .75rem; }
.bob-chapter-guide [id] {
    scroll-margin-top: calc(var(--bob-guide-menu-height) + var(--bob-guide-chapters-height) + 1rem);
}
.bob-chapter-guide :is(h2,h3)[tabindex="-1"]:focus { outline: 2px solid #0066cc; outline-offset: 4px; }
@media (max-width: 767.98px) {
    body:has(.bob-chapter-guide:not(.bob-chapter-guide-dialog)) > main.inhalt { padding: .6rem; }
    .bob-chapter-guide { padding-inline: 0 !important; }
    .bob-chapter-guide .card-body, .bob-chapter-guide .card-header { padding: 1rem !important; }
    .bob-chapter-nav.is-enhanced .pf-v6-c-jump-links__list {
        max-height: min(50vh, 24rem);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .bob-chapter-nav:not(.is-enhanced) .pf-v6-c-jump-links__list { flex-direction: column; }
    .bob-chapter-nav .pf-v6-c-jump-links__item { min-width: 0; }
    .bob-chapter-nav .pf-v6-c-jump-links__link { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
    .bob-chapter-nav .pf-v6-c-jump-links__toggle-icon { transition: none; }
}
@media print {
    body:has(.bob-chapter-guide:not(.bob-chapter-guide-dialog)) > .bob-backend-header-5, .bob-chapter-nav { position: static; }
    .bob-chapter-nav .pf-v6-c-jump-links__toggle { display: none !important; }
    .bob-chapter-nav .pf-v6-c-jump-links__label { display: block !important; }
    .bob-chapter-nav .pf-v6-c-jump-links__list { display: flex !important; max-height: none !important; overflow: visible !important; }
}

/* Role adapters. Applied only on pages loading this stylesheet. */
.bob-guide-header { position: sticky; top: 0; z-index: 1035; }
.bob-chapter-guide { min-width: 0; box-sizing: border-box; }
.bob-chapter-guide img { max-width: 100%; height: auto; }
.bob-chapter-guide :is(.container,.page) { width: 100%; max-width: none; }
.bob-chapter-guide .row > * { min-width: 0; }
.bob-chapter-guide :is(.bob2-api-help-grid,.bob2-api-admin-grid,.bob2-api-report-grid,.help-grid) { display: block; }
.bob-chapter-guide :is(.bob2-api-help-grid,.bob2-api-admin-grid,.bob2-api-report-grid) > aside { width: 100%; }
.bob-chapter-guide .doc-wrap { overflow: visible; }
.bob-chapter-guide .doc-content { padding: 0; }
.bob-chapter-guide .doc-content > .container-fluid > .row > :is(.col-xxl-9,.col-xxl-3) { width: 100%; }
.bob-chapter-guide .doc-content .card { box-shadow: none !important; }
.bob-chapter-nav .pf-v6-c-jump-links__list { text-align: start; }
.bob-chapter-nav .pf-v6-c-jump-links__link { text-decoration: none; }
.bob-chapter-nav .pf-v6-c-jump-links__item { margin: 0; padding: 0; }
.bob-chapter-guide table { max-width: 100%; }
.bob-info-guide .grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); }
body > header#top { scroll-margin-top: var(--bob-guide-menu-height); }
@media (max-width: 767.98px) {
 .bob-chapter-guide { padding-inline: .75rem !important; }
 .bob-chapter-guide.page { padding: 1rem .75rem; }
 .bob-chapter-guide :is(pre,.table-responsive) { max-width: 100%; overflow-x: auto; }
}
@media print { .bob-guide-header { position: static; } }

.bob-chapter-guide-dialog { --bob-guide-menu-height: 0px; --bob-guide-chapters-height: 80px; }
.bob-chapter-guide-dialog.bob-chapter-guide { padding: 0 1.25rem 1rem !important; }
.bob-chapter-guide-dialog .bob-chapter-nav { top: 0; margin-inline: -1.25rem; padding-inline: .5rem; }
.bob-chapter-guide-dialog .csv-doc-section { margin-bottom: 1.75rem; }
.bob-chapter-guide-dialog pre { max-width: 100%; overflow-x: auto; }
