/* Illustrated reference-book theme. Bootstrap and colour samples remain intact. */
@font-face { font-family: 'Source Sans 3'; src: url('../font/source-sans-3-latin-400-normal.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('../font/source-sans-3-latin-600-normal.woff') format('woff'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url('../font/source-sans-3-latin-700-normal.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url('../font/source-serif-4-latin-400-normal.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url('../font/source-serif-4-latin-400-italic.woff') format('woff'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url('../font/source-serif-4-latin-700-normal.woff') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }
:root { --book-ink: #222522; --book-red: #b6262d; --book-line: #d9d9d1; --book-muted: #60635c; --book-sans: 'Source Sans 3', Arial, sans-serif; --book-serif: 'Source Serif 4', Georgia, serif; --bs-body-font-family: var(--book-serif); --bs-body-color: var(--book-ink); --bs-link-color: #a31e26; --bs-link-hover-color: #73151b; }
html { scroll-padding-top: 2rem; }
body { margin: 0; background: #e9e8e2; font-family: var(--book-serif); font-size: 1.0625rem; line-height: 1.75; }
::selection { background: #f5d8cf; color: #222522; }
a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--book-red); outline-offset: 4px; }
.book-shell { max-width: 1600px; padding: 0; margin: 0 auto; background: white; box-shadow: 0 0 50px #27251c12; overflow: visible !important; }
.book-layout { margin: 0; min-height: 100vh; height: auto !important; overflow: visible !important; align-items: stretch; }
.book-sidebar { flex: 0 0 268px; width: 268px; align-self: flex-start; height: 100vh; overflow-y: auto; top: 0; padding: 35px 22px !important; background: #f4f3ee !important; border-top: 8px solid var(--book-red); border-right: 1px solid var(--book-line); font-family: var(--book-sans); }
.book-sidebar > div { padding: 0 !important; display: block !important; min-width: 0; color: var(--book-ink) !important; }
.book-sidebar > div > a { color: var(--book-ink) !important; padding-bottom: 28px !important; margin-bottom: 24px !important; border-bottom: 2px solid var(--book-ink); }
.book-sidebar > div > a .fs-5 { font: 700 1.75rem/1.05 var(--book-sans) !important; letter-spacing: -.055em; }
.book-sidebar .d-none { display: inline !important; }
#menu { display: block; counter-reset: chapter; }
#menu::before { content: 'INHALT'; display: block; color: var(--book-muted); letter-spacing: .18em; font-size: .7rem; font-weight: 700; margin-bottom: 16px; }
#menu > li { counter-increment: chapter; border-bottom: 1px solid var(--book-line); }
#menu .nav-link { position: relative; padding: 12px 0 12px 28px; color: #383b36; font-size: .94rem; line-height: 1.3; }
#menu > li > .nav-link::before { content: counter(chapter, decimal-leading-zero); position: absolute; left: 0; top: 14px; color: var(--book-red); font-size: .7rem; font-weight: 700; }
#menu .nav-link > i { display: none; }
#menu .nav-link:hover, #menu .nav-link[aria-current='page'] { color: var(--book-red); background: #eae8df; }
#menu .nav-link[aria-current='page'] { font-weight: 700; }
#menu .ms-1 { margin-left: 0 !important; }
#menu .collapse, #menu .collapsing { margin-left: 28px !important; padding-bottom: 10px; }
#menu .collapse .nav-link, #menu .collapsing .nav-link { font-size: .86rem; padding: 7px 0; }
.book-content { min-width: 0; padding: 0 clamp(24px, 4.5vw, 76px); border-top: 8px solid var(--book-ink); }
.book-content::before { content: 'LÄNDERBAHNZEIT / GESCHICHTE & MODELLBAU'; display: block; padding: 24px 0 17px; border-bottom: 1px solid var(--book-line); color: var(--book-muted); font: 600 .7rem/1.5 var(--book-sans); letter-spacing: .16em; }
main.tab { margin: 0; overflow: visible !important; }
main.tab > .col { min-width: 0; padding: 38px 0 60px !important; }
h1, h2, h3, h4, h5, h6 { color: var(--book-ink); font-family: var(--book-sans); font-weight: 700; line-height: 1.1; text-wrap: balance; }
main h3 { margin: 2.5rem 0 1.5rem; font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -.035em; }
main > .col > h3:first-child { margin-top: 0; padding-bottom: 24px; border-bottom: 5px solid var(--book-red); font-size: clamp(2.5rem, 4.8vw, 4.8rem); line-height: 1.02; letter-spacing: -.05em; }
main h4 { margin: 2.2rem 0 .8rem; max-width: 35em; font-size: clamp(1.3rem, 2vw, 1.65rem); }
main h5, main h6 { margin: 1.8rem 0 .7rem; font-size: 1.15rem; }
main p { margin-bottom: 1.2rem; max-width: 76ch; hyphens: auto; overflow-wrap: break-word; }
main li { margin-bottom: .55rem; hyphens: auto; }
main li::marker { color: var(--book-red); }
main img { max-width: 100%; height: auto; }
main .figure { margin: 1.4rem 0 2rem; }
.figure-caption, caption { font: 400 .88rem/1.5 var(--book-sans); color: var(--book-muted); padding: .75rem 0; }
.figure-caption { border-top: 1px solid var(--book-line); }
#home > .col > p:has(> img) { max-width: none; margin: 1.8rem 0; padding-bottom: 1.5rem; border-bottom: 1px solid var(--book-line); }
#home > .col > p:has(> img) img { display: block; width: 100%; }
#home > .col > p:has(> img) + p { font-size: 1.18rem; line-height: 1.7; }
#home > .col > ul { padding: 1.4rem 1.6rem 1rem 2.7rem; border-top: 3px solid var(--book-red); background: #f4f3ee; font-family: var(--book-sans); }
.table { display: block; max-width: 100%; overflow-x: auto; margin: 1.6rem 0 2rem; border-top: 3px solid var(--book-ink); font: 400 .94rem/1.5 var(--book-sans); --bs-table-hover-bg: #f0eee6; }
.table > :not(caption) > * > * { padding: .7rem .8rem; border-bottom-color: var(--book-line); }
.table th { background: #f1f0eb; font-weight: 700; vertical-align: bottom; }
.table caption { caption-side: top; }
blockquote { margin: 2rem 0; padding: .8rem 1.5rem; border-left: 4px solid var(--book-red); background: #f4f3ee; }
.form-control, .form-label, .btn, .alert, .code-header { font-family: var(--book-sans); }
.form-control, .btn, .alert, .card { border-radius: 0; }
.form-control { max-width: 32rem; border-color: #a8aaa1; }
.form-control:focus { border-color: var(--book-red); box-shadow: 0 0 0 .2rem #b6262d20; }
.code-card { border-radius: 0; max-width: 100%; }
.code-wrap { max-width: 100%; }
.bibtitle { font-weight: 700; }
#literatur ol { padding-left: 1.6rem; }
#literatur li { padding: .8rem 0 .8rem .5rem; border-bottom: 1px solid var(--book-line); }
.bibmenu { font: 600 .8rem var(--book-sans); }
.book-content > footer { background: white !important; border-top: 1px solid var(--book-ink); margin-left: 0; margin-right: 0; padding: 18px 0 !important; }
.book-content > footer .col::before { content: 'LÄNDERBAHNZEIT'; color: var(--book-muted); font: 600 .7rem var(--book-sans); letter-spacing: .15em; }
@media (min-width: 1400px) { #home > .col { column-count: 2; column-gap: 42px; column-rule: 1px solid var(--book-line); } #home > .col > h3:first-child, #home > .col > p:has(> img), #home > .col > p:has(> img) + p { column-span: all; } #home h4 { break-after: avoid; } #home li { break-inside: avoid; } }
@media (max-width: 900px) { .book-sidebar { flex-basis: 225px; width: 225px; padding: 25px 16px !important; } .book-sidebar > div > a .fs-5 { font-size: 1.5rem !important; } .book-content { padding: 0 26px; } }
@media (max-width: 650px) { body { font-size: 1rem; } .book-layout { display: block; } .book-sidebar { position: relative !important; width: 100%; height: auto; border-right: 0; padding: 20px !important; } .book-sidebar > div > a { padding-bottom: 14px !important; margin-bottom: 14px !important; } #menu { display: flex; flex-wrap: wrap; gap: 0 16px; } #menu::before { width: 100%; margin-bottom: 8px; } #menu > li { width: auto !important; max-width: 100%; } #menu .nav-link { font-size: .85rem; } #menu .collapse, #menu .collapsing { margin-left: 0 !important; } .book-content { padding: 0 22px; border-top-width: 4px; } main.tab > .col { padding-top: 28px !important; } main > .col > h3:first-child { font-size: clamp(2.1rem, 10vw, 3.4rem); overflow-wrap: anywhere; } .book-content::before { font-size: .61rem; letter-spacing: .1em; } }
@media print { body, .book-shell { background: white; box-shadow: none; } .book-sidebar { display: none !important; } .book-content { padding: 0; border: 0; } .book-layout { display: block; } main.tab > .col { padding: 20px 0 !important; } h3, h4, h5 { break-after: avoid; } figure, tr { break-inside: avoid; } .table { display: table; font-size: 9pt; } .code-wrap { white-space: pre-wrap; } a { color: inherit; } }
/* Bootstrap computes link colours from RGB tokens. */
:root { --bs-link-color-rgb: 163, 30, 38; --bs-link-hover-color-rgb: 115, 21, 27; }
.article-meta {
    margin-top: 0.4em;
    color: #666;
    font-size: 0.9em;
}

.article-meta .separator {
    margin: 0 0.5em;
}