/* Print-Stylesheet für PDF-Druck */

/* Basis Print-Styling */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    /* Navbar verstecken */
    .navbar {
        display: none !important;
    }

    /* Body Styling für Print */
    body {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 !important;
        background-color: white !important;
        color: #000 !important;
        font-size: 12pt;
        line-height: 1.6;
    }

    /* Container anpassen */
    .container-main {
        max-width: 100%;
        padding: 0.5in;
        margin: 0;
    }

    /* Hero Section für Print */
    .hero {
        page-break-after: always;
        padding: 1in 0.5in !important;
        margin-bottom: 0 !important;
        background: white !important;
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }

    .hero h1 {
        font-size: 28pt;
        margin-bottom: 0.5in;
        margin-top: 0;
        color: #000 !important;
    }

    .hero p {
        font-size: 12pt;
        color: #000 !important;
    }

    /* Kapitel Styling für Print */
    .chapter {
        page-break-inside: avoid;
        page-break-after: always;
        padding: 0.5in !important;
        margin-bottom: 0 !important;
        background: white !important;
        border: 1px solid #999 !important;
        border-left: 5px solid #000 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .chapter-number {
        font-size: 10pt;
        color: #333 !important;
        margin-bottom: 0.25in;
        font-weight: bold;
    }

    .chapter-title {
        font-size: 18pt;
        color: #000 !important;
        margin-bottom: 0.5in;
        margin-top: 0;
        font-weight: bold;
        page-break-after: avoid;
    }

    .chapter-content {
        font-size: 12pt;
        color: #000 !important;
    }

    /* Absätze */
    p {
        margin-bottom: 0.25in;
        margin-top: 0;
        orphans: 3;
        widows: 3;
        page-break-inside: avoid;
    }

    /* Überschriften */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
        color: #000 !important;
        margin-bottom: 0.25in;
        margin-top: 0.5in;
    }

    h3 {
        font-size: 14pt !important;
        margin-top: 0.5in !important;
        margin-bottom: 0.25in !important;
        color: #000 !important;
    }

    /* Quote Box */
    .quote-box {
        background: #f5f5f5 !important;
        border-left: 4px solid #000 !important;
        border-top: none !important;
        border-right: none !important;
        border-bottom: none !important;
        padding: 0.5in !important;
        margin: 0.5in 0 !important;
        font-style: italic;
        color: #333 !important;
        page-break-inside: avoid;
        page-break-after: avoid;
        font-size: 11pt;
    }

    /* Footer verstecken */
    footer {
        display: none !important;
    }

    /* Links */
    a {
        color: #000 !important;
        text-decoration: none !important;
    }

    /* Bilder */
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    /* Tabellen */
    table {
        border-collapse: collapse;
        width: 100%;
        page-break-inside: avoid;
    }

    th, td {
        border: 1px solid #999;
        padding: 0.25in;
        text-align: left;
        color: #000;
    }

    th {
        background: #e0e0e0 !important;
        color: #000 !important;
    }

    /* Seitengröße und Ränder */
    @page {
        size: A4;
        margin: 1in 0.75in;
    }

    @page :first {
        margin-top: 1in;
    }

    /* Keine Überschrift/Fußzeile auf der ersten Seite bei Chrome */
    @page :first {
        @bottom-center {
            content: "";
        }
    }
}
