/* Druckoptimierung für die Seite */
@media print {
    /* Hintergrund auf Weiß setzen und Text auf Schwarz */
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Keine Ränder für den Ausdruck */
    body {
        margin: 0;
        padding: 0;
    }

    header {
    	padding: 0;
    	margin: 0;
    }

    /* Entferne nicht druckbare Elemente */
    .no-print {
        display: none !important;
    }

    /* Standardmäßige horizontale Linie für <hr> */
    hr {
        border: 1px solid black !important;
        background: none !important;
        height: 1px !important;
    }

    /* Links: Keine Farbe und keine Unterstreichung */
    a {
        color: black !important;
        text-decoration: none !important;
    }

    /* Bilder nur drucken, wenn sie sinnvoll sind */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Keine unnötigen Umrandungen bei Tabellen */
    table {
        border-collapse: collapse !important;
        width: 100% !important;
    }

    th, td {
        border: 1px solid black !important;
        padding: 5px !important;
    }

    /* Keine Schatten oder Spezialstile für Buttons und Formularelemente */
    button, input, select, textarea {
        background: white !important;
        color: black !important;
        border: 1px solid black !important;
    }

    /* Keine unnötigen Navigations- oder Fußzeilenelemente drucken */
    nav, footer {
        display: none !important;
    }

    /* Optimierung für ein klares Layout ohne unnötige Abstände */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        margin-bottom: 0px;
    }

    p, blockquote, li, table {
        page-break-inside: avoid;
    }

    p {
    	padding: 0px;
    	margin: 0px;
    }

    /* Seite gut nutzbar für den Ausdruck */
    @page {
        size: A4;
        margin: 2cm;
    }
}
