.doc-page {
    background: #ffffff;
    color: #1a1a1a;
    /* width (nicht nur max-width) nötig, weil .doc-page in Flex-Containern (MudStack im
       Redaktions-Dialog/auf der Detailseite) sonst nur so breit wird wie sein Inhalt -
       je nach Akte (breite Tabellen vs. kurzer Text) unterschiedlich schmal statt einheitlich */
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 40px 48px;
    font-family: "Times New Roman", Times, serif;
    line-height: 1.5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.doc-letterhead {
    display: flex;
    align-items: center;
    gap: 16px;
}

.doc-letterhead__logo {
    height: 64px;
    width: 64px;
    object-fit: contain;
}

.doc-letterhead__org {
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.75;
}

.doc-letterhead__title {
    font-size: 22px;
    font-weight: 700;
}

.doc-hr {
    border: none;
    border-top: 2px solid #1a1a1a;
    margin: 16px 0 24px;
}

.doc-section {
    margin-bottom: 20px;
}

.doc-section__heading {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #ccc;
    padding-bottom: 4px;
    margin-bottom: 10px;
}

.doc-kv {
    display: flex;
    gap: 8px;
    font-size: 14px;
    padding: 2px 0;
}

.doc-kv__key {
    min-width: 180px;
    opacity: 0.65;
}

.doc-pre {
    white-space: pre-wrap;
    font-size: 14px;
    margin: 0 0 8px;
}

/* Sonstige Informationen ist Quill-HTML - Ausrichtung/Einzug/Schriftgröße (ql-align-*,
   ql-indent-*, ql-size-*) sind im Quill-Stylesheet an .ql-editor als Elternklasse gebunden
   und würden ohne sie ohne Wirkung bleiben. Die Editor-Chrome-Eigenschaften (feste Höhe,
   Scroll, Innenabstand) werden hier zurückgesetzt, weil das kein Eingabefeld ist. */
.doc-page .ql-editor.doc-ql {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 0;
    font-size: 14px;
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.doc-table th,
.doc-table td {
    border: 1px solid #ccc;
    padding: 6px 8px;
    text-align: left;
}

.doc-table th {
    background: #f2f2f2;
}

.redacted-block {
    background: #111;
    color: #111;
    border-radius: 2px;
    padding: 0 4px;
    user-select: none;
}

@media print {
    body * {
        visibility: hidden;
    }

    .doc-page, .doc-page * {
        visibility: visible;
    }

    .doc-page {
        position: absolute;
        inset: 0;
        box-shadow: none;
        max-width: none;
        margin: 0;
    }
}
