/* ZEITGLEIS structure 1.0.31: scoped additions; existing CI remains authoritative. */
#zeitgleis-root .zg-entry-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
#zeitgleis-root .zg-entry-card{display:block;border:1px solid #deded8;padding:20px;color:inherit;text-decoration:none;border-radius:12px}
#zeitgleis-root .zg-entry-card img{width:100%;height:180px;object-fit:cover}
#zeitgleis-root .zg-entry-card span{color:#b9382b}
#zeitgleis-root .zg-join{background:#b9382b;color:#fff!important;border-radius:4px;padding:10px 16px}
#zeitgleis-root .pagecrumb{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
#zeitgleis-root .pagecrumb>*{flex:0 0 auto}
#zeitgleis-root .pagecrumb>[aria-current=page]{flex:0 1 auto;min-width:0;overflow-wrap:normal;word-break:normal}
#zeitgleis-root .zg-1988{max-width:1000px}
#zeitgleis-root .zg-1988 section{margin:48px 0}
#zeitgleis-root .zg-1988 img{width:100%;height:auto;display:block}
#zeitgleis-root .zg-1988 figure{margin:24px 0}
#zeitgleis-root .zg-1988 figcaption{font-size:.9em;padding:12px 0}
#zeitgleis-root .zg-1988 .caption-credit{display:block}
#zeitgleis-root .zg-news-full>.zg-news-item{margin-block:2rem;border-bottom:1px solid #deded8;padding-block:1rem 2rem}
#zeitgleis-root .hero h1{font-size:clamp(1.85rem,5vw,3.6rem);word-break:normal;overflow-wrap:normal}
#zeitgleis-root #gebaeudeschnitt .zg-home-tech{padding-inline:0}
@media(max-width:720px){#zeitgleis-root .zg-entry-grid{grid-template-columns:1fr}#zeitgleis-root .zg-1988 section{margin:32px 0}#zeitgleis-root .pagecrumb{font-size:.9em}}

/* Repair: long heading, explicit card sizes and CI typography. */
#zeitgleis-root .hero .zg-home-heading h1{max-width:none;font-size:clamp(28px,3vw,44px);line-height:1.14;letter-spacing:-.025em;word-break:normal;overflow-wrap:normal;hyphens:auto}
#zeitgleis-root .zg-entry-grid,#zeitgleis-root .zg-newscards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
#zeitgleis-root .zg-entry-card{min-width:0;color:var(--ink,#20282b)}
#zeitgleis-root .zg-entry-card img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;display:block}
#zeitgleis-root .zg-entry-card h3{font-family:inherit;font-size:1.35rem;line-height:1.25;margin:18px 0 10px}
#zeitgleis-root .zg-entry-card p{font-family:inherit;font-size:1rem;line-height:1.6}
#zeitgleis-root .zg-news-item{min-width:0}
#zeitgleis-root .zg-newscards>.zg-news-item{border:1px solid var(--line,#dcdcd7);border-radius:12px;padding:24px}
#zeitgleis-root .zg-newscards h3{font-size:1.35rem;line-height:1.3}
@media(max-width:900px){#zeitgleis-root .zg-entry-grid,#zeitgleis-root .zg-newscards{grid-template-columns:1fr}#zeitgleis-root .hero .zg-home-heading h1{font-size:clamp(26px,5.7vw,38px)}}
#zeitgleis-root a.zg-entry-card,#zeitgleis-root a.zg-entry-card p,#zeitgleis-root a.zg-entry-card h3{color:var(--ink,#20282b)!important}
#zeitgleis-root a.zg-entry-card span{color:var(--red,#c63026)!important}
#zeitgleis-root .hero .zg-home-heading h1{word-break:normal!important;overflow-wrap:normal!important;hyphens:auto!important;max-width:none!important}
/* Ortsname und lange Titelwörter nur an Wortgrenzen umbrechen. */
#zeitgleis-root .hero .zg-home-heading h1{hyphens:none!important;text-wrap:balance}

/* History overview: paired editorial cards, no self-link or duplicate sign teaser. */
#zeitgleis-root .zg-history-extra{padding-top:48px;padding-bottom:64px}
#zeitgleis-root .zg-history-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
#zeitgleis-root .zg-history-card{display:flex;flex-direction:column;min-width:0;border:1px solid var(--line,#dcdcd7);border-radius:12px;overflow:hidden;background:#fff}
#zeitgleis-root .zg-history-picture{display:block;height:250px;overflow:hidden;background:var(--paper,#f6f4ef)}
#zeitgleis-root .zg-history-picture img{display:block;width:100%;height:100%;object-fit:cover}
#zeitgleis-root .zg-history-signs img{object-fit:contain;padding:12px}
#zeitgleis-root .zg-history-card-body{padding:28px;display:flex;flex-direction:column;flex:1;gap:14px}
#zeitgleis-root .zg-history-card-body p,#zeitgleis-root .zg-history-card-body h3{margin:0}
#zeitgleis-root .zg-history-card-body h3{font-family:inherit;font-size:clamp(24px,2.3vw,32px);line-height:1.2;letter-spacing:-.02em}
#zeitgleis-root .zg-history-card-body>.textlink{margin-top:auto;padding-top:12px}
@media(max-width:700px){#zeitgleis-root .zg-history-grid{grid-template-columns:1fr}#zeitgleis-root .zg-history-picture{height:220px}#zeitgleis-root .zg-history-card-body{padding:22px}}

#zeitgleis-root .zg-source-note{padding:28px;border:1px solid #d9d6d2;border-radius:12px;background:#faf9f6;margin-bottom:40px}#zeitgleis-root .zg-source-note figure{max-width:816px;margin:24px 0}#zeitgleis-root .zg-source-note figure img{display:block;width:100%;height:auto;object-fit:contain;border-radius:0}#zeitgleis-root .zg-source-note figcaption{font-size:14px;line-height:1.5;margin-top:12px}@media(max-width:700px){#zeitgleis-root .zg-source-note{padding:20px}}

/* 1.0.31.4: Auffindbarkeit und zusammengehörige Inhalte. */
#zeitgleis-root footer .zg-download-link{display:inline-flex;align-items:center;color:#fff!important;font-weight:700;border:1px solid rgba(255,255,255,.7);border-radius:6px;padding:8px 14px;margin-right:14px;text-decoration:none}
#zeitgleis-root footer .zg-download-link:hover,#zeitgleis-root footer .zg-download-link:focus-visible{background:#fff;color:#222!important;outline-offset:3px}
#zeitgleis-root .zg-contribute-shortcuts{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
#zeitgleis-root .zg-story-building{margin-top:28px;margin-bottom:36px}
#zeitgleis-root .zg-story-building figure{max-width:960px;margin:0 auto 20px}
#zeitgleis-root .zg-story-building .picture{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in}
#zeitgleis-root .zg-story-building img{display:block;width:100%;height:auto;max-height:640px;object-fit:contain}
#zeitgleis-root .zg-story-building figcaption{padding-top:12px;font-size:15px;line-height:1.5}
#zeitgleis-root .zg-story-building .caption-credit{display:block}
#zeitgleis-root .zg-news-part{margin:20px 0;padding:0;border:0;background:transparent}
#zeitgleis-root .zg-news-part h4{font-family:inherit;font-size:21px;line-height:1.3;margin:0 0 10px}
#zeitgleis-root .zg-anchor-alias{display:block;scroll-margin-top:100px}

/* 1.0.31.6: shared festival cards, consistent main navigation and banner logo. */
#zeitgleis-root #bahnhofsfeste-buergerfeste{scroll-margin-top:120px}
#zeitgleis-root .zg-festival-grid .zg-history-picture{height:auto;aspect-ratio:3/2}
#zeitgleis-root .zg-festival-grid .zg-history-picture img{width:100%;height:100%;object-fit:cover}
#zeitgleis-root .zg-banner-brand{display:flex;justify-content:center;align-items:center}
#zeitgleis-root .introline .zg-banner-brand img{display:block;width:150px;height:auto;max-width:100%;max-height:170px;object-fit:contain}
@media(min-width:901px){
 #zeitgleis-root header .nav #zg-primary-nav{display:flex;align-items:center;justify-content:flex-end;gap:24px;flex-wrap:wrap}
 #zeitgleis-root header .nav #zg-primary-nav>.zg-nav-group{gap:0;margin:0;padding:0;flex:0 0 auto}
 #zeitgleis-root header .nav #zg-primary-nav>a:not(.zg-join),#zeitgleis-root header .nav #zg-primary-nav>.zg-nav-group>a{padding:10px 0;margin:0}
 #zeitgleis-root header .nav #zg-primary-nav .zg-nav-toggle{margin:0 0 0 4px;width:24px;min-width:24px;padding:0;min-height:44px}
 #zeitgleis-root header .nav #zg-primary-nav>.zg-join{margin:0;padding:10px 16px}
}
@media(max-width:700px){#zeitgleis-root .introline .zg-banner-brand img{width:112px;max-height:130px}}

/* 1.0.31.7: readable historical essays; images and interaction unchanged. */
#zeitgleis-root .zg-reading137 {max-width:78ch;}
#zeitgleis-root .zg-reading137 p {line-height:1.8;margin:0 0 1.25em;}
#zeitgleis-root .zg-reading137 h2 {margin-top:1.6em;margin-bottom:.6em;}
#zeitgleis-root .zg-reading137 .zg-research-note {font-size:.9em;line-height:1.65;border-top:1px solid #d8d5cd;padding-top:1em;margin-top:2em;}
#zeitgleis-root .zg-remise-research {margin:2.5rem auto;}
#zeitgleis-root .zg-rights-text {line-height:1.75;}

/* 1.0.31.8: consistent form rhythm and reading spacing. */
#zeitgleis-root #bildfreigabe > .actions {margin:24px 0 28px;}
#zeitgleis-root #bildfreigabe .zg-rights-text p {margin:0 0 1em;}
#zeitgleis-root #zg-rights-form fieldset {padding:0;border:0;min-width:0;}
#zeitgleis-root #zg-rights-form label.check {display:flex;align-items:flex-start;gap:12px;margin:24px 0 18px;line-height:1.65;}
#zeitgleis-root #zg-rights-form label.check input {flex:0 0 20px;width:20px;height:20px;margin:4px 0 0;}
#zeitgleis-root #zg-rights-form label.check span {font-size:inherit;line-height:inherit;color:inherit;}
#zeitgleis-root #zg-rights-form .formnote {margin:0 0 22px;line-height:1.65;}
#zeitgleis-root #zg-rights-form button[type=submit] {margin:0;max-width:100%;white-space:normal;}
#zeitgleis-root .zg-reading137 h2 {margin-top:1.35em;margin-bottom:.6em;}
#zeitgleis-root .zg-reading137 h3 {margin-top:1.3em;margin-bottom:.6em;}
#zeitgleis-root .zg-reading137 p {margin-bottom:1.15em;}

/* 1.0.31.9: a shared article column; no changes to navigation or overview cards. */
#zeitgleis-root .sitepage:is([id^="seite-artikel-"],[id^="seite-bahnhofsfest-"],#seite-erste-lokomotivremise) {--zg-article-width:960px;}
#zeitgleis-root .sitepage:is([id^="seite-artikel-"],[id^="seite-bahnhofsfest-"],#seite-erste-lokomotivremise) > :is(.pageintro,.readingbody,.zg-story-building,.zg-1988,.zg-1993,.zg-remise-article,.articleback,.pagecrumb) {
 width:min(var(--zg-article-width),calc(100% - 48px))!important;max-width:var(--zg-article-width)!important;margin-inline:auto!important;padding-inline:0;box-sizing:border-box;
}
#zeitgleis-root .sitepage:is([id^="seite-artikel-"],[id^="seite-bahnhofsfest-"],#seite-erste-lokomotivremise) .pageintro h1 {
 max-width:none;font-size:calc(clamp(2rem,3.7vw,3rem) * var(--text-scale,1));line-height:1.15;letter-spacing:-.025em;margin:0 0 24px;text-wrap:balance;
}
#zeitgleis-root .sitepage:is([id^="seite-artikel-"],[id^="seite-bahnhofsfest-"],#seite-erste-lokomotivremise) .zg-story-building figure {max-width:none;margin:0 0 24px;}
#zeitgleis-root .sitepage:is([id^="seite-artikel-"],[id^="seite-bahnhofsfest-"],#seite-erste-lokomotivremise) :is(.readingbody,.zg-1988,.zg-1993,.zg-remise-article) :is(h2,h3) {
 font-family:inherit;font-size:calc(clamp(1.5rem,2.4vw,2rem) * var(--text-scale,1));line-height:1.25;letter-spacing:-.015em;font-weight:700;margin:36px 0 16px;padding:0;
}
#zeitgleis-root .sitepage:is([id^="seite-artikel-"],[id^="seite-bahnhofsfest-"],#seite-erste-lokomotivremise) :is(.readingbody,.zg-1988,.zg-1993) p {
 font-size:calc(1.0625rem * var(--text-scale,1));line-height:1.75;margin:0 0 20px;
}
#zeitgleis-root .sitepage:is([id^="seite-artikel-"],[id^="seite-bahnhofsfest-"]) .zg-story-building figcaption {max-width:none;width:100%;box-sizing:border-box;}
@media(max-width:700px){
 #zeitgleis-root .sitepage:is([id^="seite-artikel-"],[id^="seite-bahnhofsfest-"],#seite-erste-lokomotivremise) > :is(.pageintro,.readingbody,.zg-story-building,.zg-1988,.zg-1993,.zg-remise-article,.articleback,.pagecrumb) {width:calc(100% - 32px)!important;}
}
/* 1.0.31.10: shared source, timeline, card and image-viewer presentation. */
#zeitgleis-root .zg-history-addition {margin:32px 0;padding:0;scroll-margin-top:120px;}
#zeitgleis-root .zg-history-addition figure,#zeitgleis-root .zg-history-person figure {margin:24px 0;}
#zeitgleis-root .zg-history-addition img,#zeitgleis-root .zg-history-person img {display:block;width:100%;height:auto;}
#zeitgleis-root .zg-history-addition figcaption,#zeitgleis-root .zg-history-person figcaption {font-size:calc(.875rem * var(--text-scale,1));line-height:1.65;margin:12px 0 0;color:var(--muted,#545b60);}
#zeitgleis-root .zg-history-person {padding:24px;border-left:4px solid var(--red,#8b2941);background:var(--paper,#f5f3ef);margin:28px 0;}
#zeitgleis-root .zg-history-person h3 {margin-top:12px!important;}
#zeitgleis-root .zg-source-figure {padding:16px;background:#f3efe8;border:1px solid #d6d1c9;}
#zeitgleis-root .zg-original-details {margin:24px 0;border:1px solid var(--line,#d1d3d4);padding:0;}
#zeitgleis-root .zg-original-details > summary {padding:14px 18px;cursor:pointer;font-weight:700;line-height:1.5;}
#zeitgleis-root .zg-original-details > :not(summary) {margin:16px;}
#zeitgleis-root .zg-photo-open {display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in;}
#zeitgleis-root .zg-photo-open img {display:block;max-width:100%;height:auto;margin:auto;}
#zeitgleis-root .zg-timeline-detail {display:flex;flex-direction:column;height:100%;background:var(--paper,#f5f3ef);border-top:4px solid var(--red,#8b2941);}
#zeitgleis-root .zg-timeline-detail > summary {padding:22px;cursor:pointer;min-height:390px;display:flex;flex-direction:column;box-sizing:border-box;}
#zeitgleis-root .zg-timeline-detail > summary:after {content:'＋';font-size:24px;line-height:1;margin-top:12px;color:var(--red,#8b2941);}
#zeitgleis-root .zg-timeline-detail[open] > summary:after {content:'−';}
#zeitgleis-root .zg-timeline-title {display:block;font-weight:700;font-size:calc(1.25rem * var(--text-scale,1));line-height:1.3;margin:12px 0 16px;}
#zeitgleis-root .zg-timeline-story {padding:0 22px 22px;font-size:calc(1rem * var(--text-scale,1));line-height:1.7;}
#zeitgleis-root .zg-timeline-story .zg-original-details {background:white;}
#zeitgleis-root .zg-timeline-story .zg-source-figure {padding:8px;margin:10px;}
#zeitgleis-root .zg-timeline-story figure img {width:100%;height:auto;}
#zeitgleis-root .zg-timeline-story figcaption {font-size:calc(.875rem * var(--text-scale,1));margin-top:12px;line-height:1.6;}
#zeitgleis-root .zg-timeline-story a {padding:0;background:none;border:0;min-height:0;height:auto;display:inline;color:var(--red,#8b2941);text-decoration:underline;}
#zeitgleis-root .zg-timeline-story .zg-photo-open {display:block;}
#zeitgleis-root .zg-station-dates {padding:14px 16px;background:var(--paper,#f5f3ef);border-left:3px solid var(--red,#8b2941);font-variant-numeric:tabular-nums;line-height:1.7;}
#zeitgleis-root .zg-station-line {display:block;}
#zeitgleis-root .zg-station-line + .zg-station-line {margin-top:8px;}
#zeitgleis-root .zg-date-range {display:flex;flex-wrap:wrap;gap:6px 24px;margin:4px 0;}
#zeitgleis-root .zg-date-range > span {white-space:nowrap;}
#zeitgleis-root .zg-date-label {font-size:.85em;color:var(--muted,#545b60);}
#zeitgleis-root #seite-aktuelles > #termine {margin:28px auto 48px;padding-inline:0;}
#zeitgleis-root #seite-aktuelles .eventgrid,#zeitgleis-root .zg-news-full,#zeitgleis-root .zg-launch-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start;}
#zeitgleis-root #seite-aktuelles .eventcard,#zeitgleis-root #seite-aktuelles .zg-news-item {display:flex;flex-direction:column;min-width:0;border:1px solid var(--line,#d1d3d4);background:var(--white,#fff);padding:24px;margin:0;}
#zeitgleis-root #seite-aktuelles .eventtext {padding:0;}
#zeitgleis-root #seite-aktuelles .eventimage {width:100%;height:auto;max-height:280px;object-fit:contain;margin-bottom:20px;}
#zeitgleis-root #seite-aktuelles :is(.eventcard,.zg-news-item) :is(h3,h4) {font-size:calc(1.35rem * var(--text-scale,1));line-height:1.35;margin:12px 0 16px;}
#zeitgleis-root .zg-news-launch {grid-column:1/-1;}
#zeitgleis-root .zg-news-launch > header {margin:8px 0 24px;}
#zeitgleis-root .zg-news-launch > header h3 {font-size:calc(1.5rem * var(--text-scale,1));margin:10px 0 0;}
#zeitgleis-root #zg-photo-viewer {width:min(1200px,96vw);max-width:96vw;max-height:94dvh;overflow:auto;padding:16px;border:0;background:#171b20;color:#fff;box-sizing:border-box;}
#zeitgleis-root #zg-photo-viewer::backdrop {background:#000d;}
#zeitgleis-root #zg-photo-viewer form {display:flex;justify-content:flex-end;margin:0 0 14px;position:sticky;top:0;}
#zeitgleis-root #zg-photo-viewer .zg-photo-close {background:#fff;color:#171b20;border:1px solid #fff;border-radius:4px;padding:10px 18px;min-height:44px;cursor:pointer;font:inherit;}
#zeitgleis-root #zg-photo-viewer > img {display:block;max-width:100%;width:auto;height:auto;max-height:74dvh;object-fit:contain;margin:auto;}
#zeitgleis-root #zg-photo-viewer .zg-photo-caption {font-size:calc(.95rem * var(--text-scale,1));line-height:1.6;margin:16px 0 0;color:white;}
#zeitgleis-root .zg-viewer-title {font-size:1.3rem;font-weight:700;}
#zeitgleis-root :is(.zg-photo-open,.zg-photo-close,.zg-timeline-detail > summary):focus-visible {outline:3px solid #146bb0;outline-offset:4px;}
@media(max-width:700px){
 #zeitgleis-root #seite-aktuelles .eventgrid,#zeitgleis-root .zg-news-full,#zeitgleis-root .zg-launch-grid {grid-template-columns:minmax(0,1fr);}
 #zeitgleis-root .zg-history-person {padding:18px;}
 #zeitgleis-root .zg-timeline-detail > summary {min-height:340px;}
 #zeitgleis-root #seite-aktuelles :is(.eventcard,.zg-news-item) {padding:20px;}
}
#zeitgleis-root .zg-chronicle {margin:32px 0;border:1px solid var(--line,#d1d3d4);background:#fff;scroll-margin-top:120px;}
#zeitgleis-root .zg-chronicle > summary {padding:22px;font-size:calc(1.3rem * var(--text-scale,1));font-weight:700;cursor:pointer;}
#zeitgleis-root .zg-chronicle-intro {padding:0 24px;}
#zeitgleis-root .zg-chronicle-event {margin:0 24px 16px;border:1px solid var(--line,#d1d3d4);scroll-margin-top:120px;}
#zeitgleis-root .zg-chronicle-event > summary {padding:20px;cursor:pointer;font-weight:700;line-height:1.5;}
#zeitgleis-root .zg-chronicle-year {color:var(--red,#8b2941);margin-right:20px;}
#zeitgleis-root .zg-chronicle-event .zg-timeline-story {max-width:900px;padding:4px 20px 20px;}
#zeitgleis-root .zg-chronicle-event .zg-source-figure {max-width:620px;padding:16px;margin:20px auto;}
@media(max-width:700px){#zeitgleis-root .zg-chronicle-event {margin:0 12px 12px;}#zeitgleis-root .zg-chronicle-event > summary {padding:16px;}#zeitgleis-root .zg-chronicle-event .zg-timeline-story {padding:0 16px 16px;}#zeitgleis-root .zg-chronicle-year {display:block;margin:0 0 8px;}}
#zeitgleis-root .zg-source-figure .zg-photo-open img {width:auto;max-width:100%;max-height:420px;object-fit:contain;margin:auto;}
/* 1.0.31.11: preserve the established visual language throughout the content. */
#zeitgleis-root {--zg-radius:12px;}
#zeitgleis-root #inhalt :is(.historycard,.entrycard,.zg-entry-card,.zg-history-card,.zg-news-item,.eventcard,.zg-history-person,.zg-source-figure,.zg-original-details,.zg-chronicle,.zg-chronicle-event,.zg-survivor-card,.zg-archive-item,.startjoin,.callout) {border-radius:var(--zg-radius);}
#zeitgleis-root #inhalt :is(figure,.zg-entry-card,.zg-history-picture,.entryimage,.eventcard,.newslead) img {border-radius:var(--zg-radius);}
#zeitgleis-root #inhalt .zg-source-figure img {border-radius:6px;}
#zeitgleis-root #inhalt .zg-photo-open {border-radius:var(--zg-radius);}
#zeitgleis-root #inhalt .timeline > li > a {border-radius:var(--zg-radius);}
#zeitgleis-root .sitepage:is([id^="seite-artikel-"],[id^="seite-bahnhofsfest-"],#seite-erste-lokomotivremise) > .wrap {
 width:min(960px,calc(100% - 48px))!important;max-width:960px!important;margin-inline:auto!important;padding-inline:0!important;box-sizing:border-box;
}
#zeitgleis-root .sitepage:is([id^="seite-artikel-"],[id^="seite-bahnhofsfest-"],#seite-erste-lokomotivremise) > .research-sources {margin-top:32px;margin-bottom:32px;}
#zeitgleis-root .zg-chronicle {border:1px solid #d2c4bf;border-left:4px solid var(--red,#a8241c);background:var(--paper,#f5f3ef);box-shadow:0 3px 12px #20282b08;margin:36px 0 44px;}
#zeitgleis-root .zg-chronicle > summary {list-style:none;display:flex;align-items:center;gap:24px;padding:26px 28px;font-size:calc(1.35rem * var(--text-scale,1));line-height:1.4;}
#zeitgleis-root .zg-chronicle > summary::-webkit-details-marker {display:none;}
#zeitgleis-root .zg-chronicle > summary:after {content:'+';display:grid;place-items:center;margin-left:auto;flex:0 0 40px;width:40px;height:40px;border-radius:50%;color:white;background:var(--red,#a8241c);font-size:26px;font-weight:400;}
#zeitgleis-root .zg-chronicle[open] > summary:after {content:'−';}
#zeitgleis-root .zg-chronicle > summary:hover {color:var(--red,#a8241c);}
#zeitgleis-root .zg-chronicle-event {background:white;}
#zeitgleis-root .zg-chronicle-intro {padding:0 28px 12px;}
#zeitgleis-root #zg-photo-viewer {border-radius:16px;padding:16px 20px 20px;background:#171b20;box-shadow:0 18px 80px #0008;scrollbar-width:thin;scrollbar-color:#737980 #171b20;}
#zeitgleis-root #zg-photo-viewer .zg-photo-toolbar {display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;max-width:none;box-sizing:border-box;padding:0 0 12px;margin:0 0 16px;background:#171b20;border:0;border-bottom:1px solid #ffffff26;position:sticky;top:0;z-index:2;color:#e6e8ea;}
#zeitgleis-root #zg-photo-viewer .zg-photo-toolbar > span {font-size:.95rem;font-weight:600;letter-spacing:.02em;}
#zeitgleis-root #zg-photo-viewer .zg-photo-close {display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;margin:0;border:1px solid #ffffff40;border-radius:50%;background:#ffffff12;color:white;box-shadow:none;cursor:pointer;line-height:1;}
#zeitgleis-root #zg-photo-viewer .zg-photo-close:hover {background:#ffffff28;border-color:#ffffff90;}
#zeitgleis-root #zg-photo-viewer .zg-photo-close svg {display:block;width:24px;height:24px;pointer-events:none;}
#zeitgleis-root #zg-photo-viewer > img {border-radius:8px;max-height:70dvh;}
#zeitgleis-root #zg-photo-viewer .zg-photo-caption {margin:16px auto 0;max-width:960px;color:#e6e8ea;font-size:.9rem;line-height:1.6;}
@media(max-width:700px){
 #zeitgleis-root .sitepage:is([id^="seite-artikel-"],[id^="seite-bahnhofsfest-"],#seite-erste-lokomotivremise) > .wrap {width:calc(100% - 32px)!important;}
 #zeitgleis-root .zg-chronicle > summary {padding:20px 18px;gap:14px;font-size:calc(1.15rem * var(--text-scale,1));}
 #zeitgleis-root .zg-chronicle-intro {padding-inline:18px;}
 #zeitgleis-root #zg-photo-viewer {padding:12px;border-radius:12px;}
}

/* ZEITGLEIS design rule: 12px rounded content images and information boxes. */
#zeitgleis-root {--zg-radius:12px;}
#zeitgleis-root #inhalt img,
#zeitgleis-root #zg-photo-viewer > img {border-radius:var(--zg-radius)!important;}
#zeitgleis-root #inhalt :is(.infobox,.info-box,.zg-infobox,[data-zg-infobox],aside,.callout,.facebookbox,.joinbox,.formnote,.zg-ai-note,.zg-release-note,.zg-research-note,.zg-rights-panel,.zg-source-note,.zg-history-person,.zg-source-figure,.zg-original-details,.zg-chronicle,.zg-chronicle-event,.zg-station-dates,.zg-timeline-detail,.historycard,.entrycard,.zg-entry-card,.zg-history-card,.zg-news-item,.eventcard,.zg-survivor-card,.zg-archive-item,.startjoin) {border-radius:var(--zg-radius);}
/* Stretch only within each row. No fixed heights or text truncation. */
#zeitgleis-root #seite-aktuelles :is(.eventgrid,.zg-news-full,.zg-launch-grid) {align-items:stretch;}
#zeitgleis-root #seite-aktuelles :is(.eventcard,.zg-news-item) {align-self:stretch;box-sizing:border-box;}
#zeitgleis-root #seite-aktuelles .eventtext {display:flex;flex-direction:column;flex:1;}
#zeitgleis-root #seite-aktuelles .eventtext > .fullarticle {margin-top:auto;}
#zeitgleis-root #seite-aktuelles .zg-news-item > a:last-child,
#zeitgleis-root #seite-aktuelles .zg-news-item > p:last-child:has(> a:only-child) {margin-top:auto;margin-bottom:0;padding-top:16px;}
#zeitgleis-root #seite-aktuelles .eventimage {height:220px;object-fit:contain;}

/* Round the outer content surface, never a logo or a credit separator. */
#zeitgleis-root #inhalt :is(figure,.introline,.archive-note,.newslead,.newsbrief,.card,.audit,.contact,.contactmail,.signproject,.source-note,.zg-quote,.zg-room,.zg-era-card,.zg-interactive-figure,.zg-hotspot-hint,.zg-image-tools,.zg-steam-stage,.zg-stage,.hotinfo,.zg-research-note,.zg-source-note) {border-radius:var(--zg-radius)!important;}
#zeitgleis-root #inhalt .introline {border-radius:var(--zg-radius)!important;}
#zeitgleis-root #inhalt :is(.zg-banner-brand,.brand,.logo) img,
#zeitgleis-root #inhalt img.zg-logo {border-radius:0!important;}
#zeitgleis-root #inhalt :is(figcaption,.caption-credit,.zg-external-note) {border-radius:0!important;}
/* Internal parts of a framed image share its outside shape, not separate pills. */
#zeitgleis-root #inhalt .zg-interactive-figure > :is(.zg-steam-stage,.zg-stage) {border-radius:var(--zg-radius) var(--zg-radius) 0 0!important;}
#zeitgleis-root #inhalt .zg-interactive-figure > .zg-hotspot-hint {border-radius:0 0 var(--zg-radius) var(--zg-radius)!important;}

/* Signs are historical objects: preserve their shape; round only the frame. */
#zeitgleis-root #inhalt #seite-bahnhofsschilder img,
#zeitgleis-root #inhalt .zg-history-signs img,
#zeitgleis-root #inhalt img[src*="bahnhofsschild"],
#zeitgleis-root #zg-photo-viewer > img[src*="bahnhofsschild"],
#zeitgleis-root #inhalt img[data-zg-preserve-shape] {border-radius:0!important;}
#zeitgleis-root #inhalt #seite-bahnhofsschilder figure {border-radius:var(--zg-radius)!important;}

#zeitgleis-root .zg-survivor-station {font-weight:400;}
#zeitgleis-root .zg-survivor-station .zg-station-label {font-weight:700;}

/* Remise image stories: intrinsic rows accommodate long titles and large text. */
#zeitgleis-root #seite-erste-lokomotivremise .zg-remise-alltag-grid > article {display:grid;grid-template-rows:subgrid;grid-row:span 3;row-gap:16px;min-width:0;}
#zeitgleis-root #seite-erste-lokomotivremise .zg-remise-alltag-grid > article > h3 {margin:0!important;font-size:calc(1.25rem * var(--text-scale,1));line-height:1.35;}
#zeitgleis-root #seite-erste-lokomotivremise .zg-remise-alltag-grid > article > figure {margin:0!important;}
#zeitgleis-root #seite-erste-lokomotivremise .zg-remise-alltag-grid > article > p {margin:0;}
#zeitgleis-root #seite-erste-lokomotivremise .zg-remise-alltag-grid figure :is(img,.zg-photo-open) {display:block;width:100%;height:auto;}
#zeitgleis-root #seite-erste-lokomotivremise .zg-remise-alltag-grid figure img {aspect-ratio:16/9;object-fit:contain;}

/* Shared reading column also covers standalone blocks outside .sitepage. */
#zeitgleis-root {--zg-reading-width:960px;--zg-page-gutter:24px;}
@media(max-width:700px){#zeitgleis-root {--zg-page-gutter:16px;}}
#zeitgleis-root #inhalt > :is(#zg-map1881,.zg-outlook) {
 width:min(var(--zg-reading-width),calc(100% - 2 * var(--zg-page-gutter)))!important;
 max-width:var(--zg-reading-width)!important;margin-inline:auto!important;padding-inline:0!important;box-sizing:border-box;
}
#zeitgleis-root #inhalt > #zg-map1881 {margin-block:40px;}
#zeitgleis-root #inhalt > .zg-outlook {margin-block:40px;}
#zeitgleis-root #seite-erste-lokomotivremise .zg-remise-article > h1 {
 font-size:calc(clamp(2rem,3.7vw,3rem) * var(--text-scale,1));line-height:1.15;letter-spacing:-.025em;margin:0 0 24px;
}
#zeitgleis-root #inhalt > :is(#zg-map1881,.zg-outlook) > h2 {
 font-family:inherit;font-size:calc(clamp(1.5rem,2.4vw,2rem) * var(--text-scale,1));font-weight:700;line-height:1.25;letter-spacing:-.015em;margin:16px 0;
}
#zeitgleis-root #inhalt > :is(#zg-map1881,.zg-outlook) > p:not(.eyebrow) {
 font-size:calc(1.0625rem * var(--text-scale,1));line-height:1.75;margin:0 0 20px;
}
#zeitgleis-root #zg-map1881 :is(.photo,.picker,.map-tools,.zg-map-tip) {border-radius:var(--zg-radius);}
/* A credit line is text, not an independent rounded panel. */
#zeitgleis-root #inhalt p.zg-ai-note {border-radius:0!important;}

#zeitgleis-root #inhalt :is(.downloadcard,.downloadbundle,.lococard,.zg-ai-card,.brandstatement,form) {border-radius:var(--zg-radius);}
#zeitgleis-root #inhalt :is(.brandstatement,.zg-ai-card) img,
#zeitgleis-root #inhalt .lococard img {border-radius:0!important;}
#zeitgleis-root footer a {color:#e4e8e8!important;}
#zeitgleis-root footer .zg-download-link {color:#fff!important;}

/* 1.0.31.18: one left text edge for all mobile navigation entries. */
@media(max-width:900px){
 #zeitgleis-root.zg-mobile-ready header .nav #zg-primary-nav > .zg-nav-group > a,
 #zeitgleis-root.zg-mobile-ready header .nav #zg-primary-nav > a:not(.zg-join){
  display:flex;align-items:center;justify-content:flex-start;text-align:left!important;padding:12px!important;margin:0;box-sizing:border-box;
 }
 #zeitgleis-root.zg-mobile-ready header .nav #zg-primary-nav > .zg-nav-group > a{flex:1 1 0;min-width:0;}
 #zeitgleis-root.zg-mobile-ready header .nav #zg-primary-nav .zg-nav-toggle{margin:0;flex:0 0 48px;min-width:48px;}
 #zeitgleis-root.zg-mobile-ready header .nav #zg-primary-nav > .zg-join{padding:12px!important;text-align:left;justify-content:flex-start;}
}
#zeitgleis-root .zg-audio-card + .zg-audio-card{margin-top:32px;}
#zeitgleis-root #zg-fensterblick,#zeitgleis-root #zg-wasserkran-1975{margin-block:32px;}
#zeitgleis-root :is(#zg-fensterblick,#zg-wasserkran-1975) .zg-source-figure{margin-inline:0;}
#zeitgleis-root :is(#zg-fensterblick,#zg-wasserkran-1975) img{display:block;width:100%;height:auto;object-fit:contain;border-radius:var(--zg-radius,12px);}

/* Shared caption and image treatment for the two editorial additions. */
#zeitgleis-root :is(#zg-fensterblick,#zg-wasserkran-1975) .zg-source-figure,
#zeitgleis-root :is(#zg-fensterblick,#zg-wasserkran-1975) .zg-photo-open,
#zeitgleis-root :is(#zg-fensterblick,#zg-wasserkran-1975) .zg-photo-open img{border-radius:var(--zg-radius,12px)!important;}
#zeitgleis-root :is(#zg-fensterblick,#zg-wasserkran-1975) .zg-source-figure figcaption{font-size:calc(.875rem * var(--text-scale,1));font-weight:400;line-height:1.65;color:var(--muted,#545b60);margin:12px 0 0;padding:0;text-align:left;letter-spacing:normal;}

#zeitgleis-root :is(#zg-fensterblick,#zg-wasserkran-1975) .zg-photo-open img{width:auto!important;height:auto!important;aspect-ratio:auto!important;max-width:100%!important;max-height:420px;display:block;margin-inline:auto;}

/* Historical route articles: inherit the established reading width and typography. */
#zeitgleis-root .zg-route-history{margin:36px 0 0;padding:28px 0 0;border-top:1px solid var(--line,#dedbd5);scroll-margin-top:120px;}
#zeitgleis-root .zg-route-history h2{font-size:calc(1.75rem * var(--text-scale,1));line-height:1.3;margin:0 0 20px;}
#zeitgleis-root .zg-route-history .eyebrow{font-size:.875rem;}
#zeitgleis-root .zg-route-sources{padding:14px 18px;border:1px solid var(--line,#dedbd5);border-radius:12px;background:var(--paper,#f6f4ef);margin:24px 0;}
#zeitgleis-root .zg-route-sources summary{cursor:pointer;font-weight:700;}
#zeitgleis-root .zg-route-sources p{font-size:calc(.875rem * var(--text-scale,1));line-height:1.65;}

/* ZEITGLEIS source standard: open, aligned to article text, no disclosure box. */
#zeitgleis-root #inhalt .zg-source-block,
#zeitgleis-root .zg-source-block,
#zeitgleis-root #zg-streckenkarte .zg-source-block{
 display:block!important;box-sizing:border-box;background:transparent!important;box-shadow:none!important;
 border:0!important;border-top:1px solid #dedbd5!important;border-radius:0!important;
 margin:24px 0!important;padding:14px 0 0!important;width:auto!important;max-width:100%!important;
 font-size:calc(.875rem * var(--text-scale,1))!important;font-weight:400!important;line-height:1.65!important;color:#454c4f!important;
 text-align:left!important;letter-spacing:normal!important;text-transform:none!important;
}
#zeitgleis-root .zg-source-block :is(p,li,a,span,strong,em),
#zeitgleis-root #zg-streckenkarte .zg-source-block :is(p,li,a,span,strong,em){font-size:inherit!important;line-height:inherit!important;letter-spacing:normal!important;text-transform:none!important;}
#zeitgleis-root .zg-source-block p{margin:0 0 8px!important;padding:0!important;color:inherit!important;}
#zeitgleis-root .zg-source-block .zg-source-label{display:block!important;margin:0 0 6px!important;padding:0!important;font-weight:700!important;color:var(--ink,#20282b)!important;}
#zeitgleis-root .zg-source-block a{display:inline!important;font-weight:400!important;color:var(--red,#a63e32)!important;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere;min-height:0!important;padding:0!important;}
#zeitgleis-root .zg-source-block a:hover{text-decoration-thickness:2px;}
#zeitgleis-root .zg-source-block a:focus-visible{outline:2px solid #075fba;outline-offset:3px;}
#zeitgleis-root .zg-source-block ul{margin:0!important;padding:0 0 0 20px!important;}
#zeitgleis-root .zg-source-block li{margin:0 0 6px!important;}
#zeitgleis-root .zg-source-block .zg-source-block{border:0!important;padding:0!important;margin:8px 0 0!important;}
#zeitgleis-root .research-sources{background:transparent!important;border:0!important;box-shadow:none!important;}
#zeitgleis-root .research-sources p{font-size:calc(.875rem * var(--text-scale,1));line-height:1.65;font-weight:400;}
