﻿/* ============================================================
   print.css – Druckoptimierung für wissenschaftliche Kapitel
   ============================================================ */

@media print {

    /* Hintergrundfarben entfernen, Text klar halten */
    * {
        background: transparent !important;
        box-shadow: none !important;
    }

    body {
        color: #000;
        font-size: 12pt;
        line-height: 1.3;
        margin: 0;
        padding: 0;
    }

    /* Navigation, Buttons, interaktive Elemente ausblenden */
    .hauptmenue,
    .chapter-nav,
    #backToTop {
        display: none !important;
    }

    /* Seitenbreite optimal für A4 */
    .page-wrapper {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    /* Überschriften in Schwarz, klare Hierarchie */
    h1, h2, h3, h4 {
        color: #000 !important;
        page-break-after: avoid;
    }

    /* Verhindert, dass Tabellen über Seiten umbrechen */
    table {
        page-break-inside: avoid;
    }

    /* Tabellenränder klar sichtbar */
    table.tabelle th,
    table.tabelle td,
    table.matrix-grid td {
        border-color: #000 !important;
    }

    /* Links als reiner Text */
    a {
        color: #000;
        text-decoration: none;
    }

    /* Optional: URL hinter Links anzeigen */
    /* a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    } */

    /* Bilder druckfreundlich */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Inhaltsverzeichnis kompakt */
    .toc a {
        text-decoration: none;
        color: #000;
    }

    /* Abstract mit dezenter Linie */
    .kapitel-abstract {
        border-left: 2px solid #000;
    }

    /* Seitenumbruch vor großen Überschriften */
    h1 {
        page-break-before: always;
    }

    /* Verhindert unschöne Einzelzeilen */
    p, h1, h2, h3, h4 {
        orphans: 3;
        widows: 3;
    }
}
