@page {
    size: 8.5in 11in;
    margin: 0.79in;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 11pt;
    line-height: 1.35;
    color: #222222;
    background-color: #ffffff;
    margin: 0;
    padding: 1.5rem;
}

.report-container {
    max-width: 850px;
    margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    color: #2e74b5;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-weight: bold;
    page-break-inside: avoid;
    page-break-after: avoid;
}

h1 {
    font-size: 20pt;
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.25;
}

h2, h2.western {
    font-size: 16pt;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

h3 {
    font-size: 13pt;
    margin-top: 1.25rem;
    margin-bottom: 0.6rem;
    line-height: 1.25;
}

h4 {
    font-size: 11pt;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

/* Kapitel und Unterkapitel; die id dient als Sprungziel */
.report-section {
    position: relative;
    margin-bottom: 1.5rem;
    scroll-margin-top: 1rem;
}

.report-section.level-1 {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.report-section.level-1:first-of-type {
    margin-top: 2rem;
}

.report-section .report-section {
    position: relative;
    margin-bottom: 1rem;
}

/* Mitwandernder Pfeil zum Inhaltsverzeichnis / Dokumentanfang */
.section-scroll-arrow {
    position: sticky;
    top: 1rem;
    float: right;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: #f1f5f9;
    color: #2e74b5;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    margin-left: 0.5rem;
    margin-bottom: -30px;
    opacity: 0.85;
}

.level-3 > .section-scroll-arrow {
    top: 3.25rem;
    width: 26px;
    height: 26px;
    margin-bottom: -26px;
    background-color: #ffffff;
    opacity: 0.75;
}

.section-scroll-arrow:hover,
.section-scroll-arrow:focus {
    background-color: #2e74b5;
    color: #ffffff;
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.section-scroll-arrow svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    transition: stroke 0.2s;
}

.level-3 > .section-scroll-arrow svg {
    width: 13px;
    height: 13px;
}

@media print {
    .section-scroll-arrow {
        display: none !important;
    }
}

.report-toc {
    margin: 1.5rem 0 2rem;
    padding: 0.75rem 1rem;
    border: 1px solid #cccccc;
    font-size: 10pt;
}

.report-toc > h2 {
    margin-top: 0;
    font-size: 13pt;
}

.report-toc ol {
    margin-bottom: 0;
}

.report-toc li {
    margin-bottom: 0.25rem;
}

.report-toc ol ol {
    margin-top: 0.25rem;
}

p {
    margin-top: 0;
    margin-bottom: 0.85rem;
    line-height: 1.35;
}

ol, ul {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.6rem;
    line-height: 1.35;
}

li > p {
    margin-bottom: 0.4rem;
}

a:link {
    color: #000000;
    text-decoration: underline;
}

a:visited {
    color: #954f72;
    text-decoration: underline;
}

a:hover, a:focus {
    color: #2e74b5;
}

.report-image {
    margin: 1rem 0;
    display: block;
}

.report-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border: none;
}

/* ---------- Tabellen ---------- */

.report-table {
    margin: 1.5rem 0;
    padding: 0;
    overflow-x: auto;
    scroll-margin-top: 1rem;
    -webkit-overflow-scrolling: touch;
}

.report-table table {
    border-collapse: collapse;
    width: 100%;
    font-size: 9pt;
    line-height: 1.25;
}

.report-table th,
.report-table td {
    border: 1px solid #999999;
    padding: 0.25rem 0.4rem;
    vertical-align: top;
    hyphens: auto;
    overflow-wrap: break-word;
}

.report-table thead th {
    background-color: #dddddd;
    font-weight: bold;
    text-align: left;
    vertical-align: bottom;
    white-space: normal;
    hyphens: auto;
    overflow-wrap: break-word;
}

.report-table tbody th {
    text-align: left;
    font-weight: normal;
    white-space: nowrap;
}

.report-table td {
    text-align: right;
    white-space: nowrap;
}

/* Kordon-Tabellen (4-spaltig) Layout und Breiten */
.report-table table.table-kordon,
.report-table table#kordon-st-johann,
.report-table table#kordon-matthaeus {
    width: 100%;
    table-layout: auto;
}

.report-table table.table-kordon th:nth-child(1),
.report-table table.table-kordon td:nth-child(1),
.report-table table#kordon-st-johann th:nth-child(1),
.report-table table#kordon-matthaeus th:nth-child(1) {
    width: 28%;
    min-width: 110px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.report-table table.table-kordon th:nth-child(2),
.report-table table.table-kordon td:nth-child(2),
.report-table table#kordon-st-johann th:nth-child(2),
.report-table table#kordon-matthaeus th:nth-child(2),
.report-table table#kordon-matthaeus td:nth-child(2) {
    width: 14%;
    min-width: 60px;
}

.report-table table.table-kordon th:nth-child(3),
.report-table table.table-kordon td:nth-child(3),
.report-table table#kordon-st-johann th:nth-child(3),
.report-table table#kordon-matthaeus th:nth-child(3),
.report-table table#kordon-matthaeus td:nth-child(3) {
    width: 29%;
    min-width: 110px;
    white-space: normal;
}

.report-table table.table-kordon th:nth-child(4),
.report-table table.table-kordon td:nth-child(4),
.report-table table#kordon-st-johann th:nth-child(4),
.report-table table#kordon-matthaeus th:nth-child(4),
.report-table table#kordon-matthaeus td:nth-child(4) {
    width: 29%;
    min-width: 110px;
    white-space: normal;
}

/* Bezugsmonat vor Eröffnung (im Worddokument orange hinterlegt) */
.report-table tr.row-reference > * {
    background-color: #ff8000;
}

/* Monat der grössten Verkehrsreduktion (im Worddokument grün hinterlegt) */
.report-table tr.row-minimum > * {
    background-color: #bbe33d;
}

/* Zwischenüberschrift / Relationszeile innerhalb von Tabellen */
.report-table tr.row-subheading > * {
    background-color: #f8fafc;
    font-style: italic;
    text-align: left;
    white-space: normal;
}

.report-table th.cell-wrap,
.report-table td.cell-wrap {
    white-space: normal;
}

.report-table figcaption,
figcaption.table-caption {
    font-size: 9pt;
    line-height: 1.35;
    margin-top: 0.4rem;
}

.table-title {
    font-weight: bold;
    display: block;
}

.table-legend {
    list-style: none;
    margin: 0.25rem 0 0;
    padding: 0;
}

.table-legend li {
    margin-bottom: 0.15rem;
}

.legend-swatch {
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    margin-right: 0.35rem;
    border: 1px solid #999999;
    vertical-align: baseline;
}

.legend-swatch.is-reference {
    background-color: #ff8000;
}

.legend-swatch.is-minimum {
    background-color: #bbe33d;
}

.table-note {
    display: block;
    margin-top: 0.25rem;
}

.sdfootnoteanc,
.footnote-ref {
    font-size: 0.75em;
    vertical-align: super;
    line-height: 0;
    text-decoration: none;
    padding: 0 1px;
}

.footnotes-section {
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid #cccccc;
}

.sdfootnote,
.footnote-item {
    font-size: 10pt;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    text-indent: -1.5rem;
}

.sdfootnotesym,
.footnote-backref {
    font-weight: bold;
    margin-right: 0.35rem;
    text-decoration: none;
}
