/* Ergänzungen für die erweiterte Evaluationsseite. */
.site-header { position: relative; }
:root { --section-nav-height: 90px; }
.page-sections {
    position: sticky;
    top: 0;
    z-index: 90;
    padding: 10px 0;
    background: #fff;
    border-bottom: 1px solid #d8e4de;
    box-shadow: 0 4px 18px rgba(20,55,43,.08);
}
.page-sections .content-width { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.page-sections a { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border-radius: 8px; color: var(--green-deep); font-size: 15px; font-weight: 650; text-decoration: none; text-align: center; }
.page-sections a > span { font-size: 12px; opacity: .75; }
.page-sections a:hover { background: #edf5f1; }
.page-sections a[aria-current="location"] { background: var(--green-deep); color: #fff; box-shadow: inset 0 -3px #8fd3b5; }
.transparency-section { padding: clamp(60px, 8vw, 100px) 0; background: #edf3f0; }
.transparency-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 50px; align-items: center; }
.transparency-heading h2 { margin: 0 0 24px; color: var(--ink); font-size: clamp(32px, 4vw, 48px); letter-spacing: -.035em; line-height: 1.12; }
.transparency-heading p:last-child { max-width: 830px; margin: 0; }
.documentation-count { padding: 26px 32px; border-left: 2px solid #b8d3c5; color: var(--green-deep); }
.documentation-count strong { display: block; font-size: 64px; letter-spacing: -.05em; line-height: 1.1; }
.documentation-count span { display: block; margin-top: 8px; font-size: 14px; font-weight: 650; }
.documentation-note { margin: 32px 0; padding: 24px 28px; border-left: 4px solid var(--green); border-radius: 0 12px 12px 0; background: #fff; font-size: 15px; }
.documentation-note strong { color: var(--green-deep); }
.documentation-note p { margin: 10px 0 0; }
.dispatch-overview { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; margin: -8px 0 32px; padding: 22px 26px; color: var(--green-deep); background: #f2f8f4; border: 1px solid #c9dfd2; border-radius: 12px; }
.dispatch-overview strong { display: block; margin-bottom: 5px; color: var(--green-deep); font-size: 18px; }
.dispatch-overview p { margin: 0; font-size: 14px; line-height: 1.6; }
.dispatch-date { display: grid; place-items: center; width: 58px; height: 58px; color: #fff; background: var(--green-deep); border-radius: 10px; font-size: 22px; font-weight: 800; line-height: 1; }
.dispatch-date span { display: block; margin-top: -10px; font-size: 10px; letter-spacing: .12em; }
.topic-navigation { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.topic-navigation a { display: flex; align-items: flex-start; gap: 12px; padding: 20px; background: var(--green-deep); color: white; border-radius: 12px; font-size: 15px; font-weight: 650; text-decoration: none; }
.topic-navigation a > span:first-child { color: #bce6d3; }
.topic-navigation a > span:last-child { margin-left: auto; }
.topic-navigation a:hover { background: var(--green-dark); }
.case-group, .transparency-section, #documents-title, #summary-viewer-title, #viewer-title, #evaluation-ueberblick, #evaluation-lesen { scroll-margin-top: calc(var(--section-nav-height) + 24px); }
.case-group { margin-top: 64px; }
.case-group-heading { display: flex; align-items: flex-start; gap: 22px; margin-bottom: 26px; }
.group-number { flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: var(--green-deep); background: #d5e7de; font-size: 19px; font-weight: 800; }
.case-group-heading h3 { margin: 0 0 12px; color: var(--ink); font-size: clamp(25px, 3vw, 34px); line-height: 1.2; letter-spacing: -.025em; }
.case-group-heading p { max-width: 940px; margin: 0; font-size: 16px; }
.case-list { display: grid; gap: 12px; }
.authority-case { min-width: 0; background: white; border: 1px solid #cdded4; border-radius: 14px; scroll-margin-top: calc(var(--section-nav-height) + 24px); }
.authority-case[open] { box-shadow: 0 10px 30px rgba(20,55,43,.06); }
.authority-case summary { display: flex; align-items: center; gap: 20px; padding: 25px 28px; list-style: none; cursor: pointer; border-radius: 14px; }
.authority-case summary::-webkit-details-marker { display: none; }
.authority-case summary:hover { background: #f6faf8; }
.case-summary-title { flex: 1; min-width: 0; }
.case-subtitle { display: block; margin-bottom: 6px; font-size: 13px; color: #59655f; }
.case-summary-title strong { display: block; color: var(--ink); font-size: 21px; font-weight: 700; line-height: 1.25; }
.case-status { display: inline-block; padding: 7px 11px; border-radius: 6px; font-size: 12px; line-height: 1.3; font-weight: 750; }
.status-received { color: #245d4a; background: #e5f0eb; }
.status-sent { color: #15533c; background: #e2f2e8; }
.status-scheduled { color: #735116; background: #f9edcf; }
.status-prepared { color: #515b60; background: #eef0f2; }
.status-pending { color: #795519; background: #fbf1dc; }
.status-answered { color: #25516e; background: #e6eff7; }
.case-expand { position: relative; flex: 0 0 28px; width: 28px; height: 28px; border: 1px solid #bdd4c7; border-radius: 50%; color: var(--green-dark); }
.case-expand::before, .case-expand::after { position: absolute; content: ''; width: 10px; height: 2px; background: currentColor; left: 8px; top: 12px; }
.case-expand::after { transform: rotate(90deg); }
.authority-case[open] .case-expand::after { display: none; }
.case-body { padding: 0 28px 28px; }
.case-context { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding-top: 24px; border-top: 1px solid #e0e8e3; }
.case-context h4 { margin: 0 0 8px; color: var(--green-deep); font-size: 15px; }
.case-context p { margin: 0; font-size: 15px; }
.case-response { padding-left: 24px; border-left: 3px solid #d5e7de; }
.case-note { margin: 22px 0 0; padding: 14px 18px; color: #5e543c; background: #faf6ed; border-radius: 8px; font-size: 14px; }
.source-list { list-style: none; padding: 0; margin: 25px 0 0; }
.source-list li { display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; border-top: 1px solid #e0e8e3; }
.source-list li:last-child { padding-bottom: 0; }
.source-description { min-width: 0; }
.source-kind { color: var(--green-dark); font-size: 12px; font-weight: 700; }
.source-description h5 { margin: 5px 0; color: var(--ink); font-size: 16px; font-weight: 650; line-height: 1.4; }
.source-description p { margin: 0; color: #68716c; font-size: 12px; }
.source-actions { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-start; justify-content: center; gap: 9px; font-size: 13px; }
.source-actions a { color: var(--green-deep); font-weight: 650; text-underline-offset: 4px; }
.source-actions .source-open { display: inline-flex; align-items: center; gap: 12px; padding: 9px 15px; border: 1px solid #b5cdbf; border-radius: 999px; text-decoration: none; background: #edf5f1; }
.source-actions .source-open:hover { background: #d9ece2; }
.back-to-top { display: inline-block; margin-top: 18px; color: var(--green-deep); font-size: 13px; text-underline-offset: 4px; }
.documentation-footnote { max-width: 950px; margin: 42px 0 0; color: #59655f; font-size: 13px; }
.topic-label { flex: 1; }
.topic-label small { display: block; margin-top: 8px; color: #c6e5d6; font-size: 12px; font-weight: 500; }
.case-guide { margin: 20px 0 0; max-width: 900px; color: #52665b; font-size: 14px; }
.case-document-counts { display: block; margin-top: 10px; color: #59655f; font-size: 12px; line-height: 1.6; }
.correspondence { display: grid; gap: 18px; margin-top: 26px; }
.correspondence-bundle { min-width: 0; padding: 22px; border: 1px solid #c9dfd2; border-left: 4px solid #36815d; border-radius: 10px; background: #f2f8f4; }
.bundle-scheduled { border-color: #ead8ad; border-left-color: #a8751b; background: #fff9eb; }
.bundle-incoming { border-color: #cddde9; border-left-color: #427498; background: #f2f6fa; }
.bundle-prepared, .bundle-archive { border-color: #deded8; border-left-color: #8d9082; background: #f7f7f3; }
.bundle-heading { display: flex; align-items: flex-start; gap: 12px; }
.direction-icon { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 50%; background: #deece3; color: #225b40; font-size: 20px; font-weight: 700; }
.bundle-scheduled .direction-icon { background: #f3e4bd; color: #765116; }
.bundle-incoming .direction-icon { background: #e1ebf3; color: #315f80; }
.bundle-prepared .direction-icon, .bundle-archive .direction-icon { background: #e8e8df; color: #5e6354; }
.bundle-heading h4 { margin: 2px 0 6px; color: var(--green-deep); font-size: 16px; line-height: 1.4; }
.bundle-scheduled h4 { color: #735116; }
.bundle-incoming h4 { color: #315f80; }
.bundle-prepared h4, .bundle-archive h4 { color: #535b4b; }
.bundle-heading p { margin: 4px 0 0; color: #526158; font-size: 13px; }
.correspondence .source-list { margin-top: 18px; }
.correspondence .source-list li { padding: 20px 0; border-top-color: #d3e0d8; }
.correspondence .source-list li:last-child { padding-bottom: 0; }
.bundle-incoming .source-open { border-color: #b7cddb; background: #e6eff5; color: #315f80; }
.source-description .reply-page { margin-top: 8px; color: #315f80; font-weight: 650; }
.reading-transition { display: flex; align-items: center; gap: 30px; margin-top: 44px; padding: 28px; background: #fff; border: 1px solid #cdded4; border-radius: 12px; }
.reading-transition strong { color: var(--green-deep); font-size: 21px; }
.reading-transition p { margin: 8px 0 0; font-size: 15px; }
.reader-description { max-width: 740px; margin: 18px 0 0; font-size: 17px; }
.reader-navigation { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 26px; font-size: 14px; font-weight: 650; color: var(--green-deep); text-underline-offset: 4px; }
.transparency-section :focus-visible, .page-sections :focus-visible { outline: 3px solid #007c50; outline-offset: 4px; }
.topic-navigation a:focus-visible { outline-offset: 5px; }
@media (max-width: 900px) {
    .topic-navigation { grid-template-columns: 1fr; }
    .transparency-heading { gap: 24px; }
}
@media (max-width: 767px) {
    .page-sections { padding: 6px 0; }
    .page-sections .content-width { width: 96%; gap: 4px; }
    .page-sections a { padding: 10px 5px; font-size: 12px; line-height: 1.4; min-height: 54px; }
    .page-sections a > span { display: none; }
    .correspondence-bundle { padding: 16px; }
    .bundle-heading { gap: 9px; }
    .bundle-heading h4 { font-size: 15px; }
    .reading-transition { align-items: flex-start; flex-direction: column; gap: 18px; padding: 22px; }
    .reader-description { font-size: 16px; }
    .transparency-heading { grid-template-columns: 1fr; }
    .documentation-count { display: flex; align-items: center; gap: 18px; padding: 0; border: 0; }
    .documentation-count strong { font-size: 42px; }
    .documentation-count span { margin: 0; }
    .documentation-note { padding: 20px; }
    .dispatch-overview { align-items: flex-start; gap: 14px; padding: 18px; }
    .dispatch-date { width: 48px; height: 48px; font-size: 18px; }
    .case-group-heading { gap: 14px; }
    .group-number { width: 38px; height: 38px; font-size: 15px; }
    .authority-case summary { display: grid; grid-template-columns: minmax(0, 1fr) 28px; padding: 22px 20px; gap: 12px; }
    .case-summary-title { grid-column: 1; grid-row: 1; }
    .case-expand { grid-column: 2; grid-row: 1 / 3; }
    .case-status { grid-column: 1; grid-row: 2; justify-self: start; }
    .case-body { padding: 0 20px 22px; }
    .case-context { grid-template-columns: 1fr; gap: 20px; }
    .case-response { padding-left: 16px; }
    .source-list li { flex-direction: column; gap: 16px; }
    .source-actions { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 12px 18px; }
    .case-summary-title strong, .source-description h5 { overflow-wrap: anywhere; }
}
@media print {
    .page-sections, .topic-navigation, .back-to-top { display: none; }
    .authority-case { break-inside: avoid; }
}
