/**
 * kfz-web Print Stylesheet
 * Optimiert Fahrzeugseiten für den Druck
 */

@media print {
    /* Hide non-essential elements */
    .kfzweb-gallery__nav,
    .kfzweb-gallery__thumbs,
    .kfzweb-btn,
    .kfzweb-contact-form,
    #wpadminbar,
    header,
    footer,
    nav,
    aside,
    .sidebar,
    .kfzweb-filters,
    .kfzweb-pagination,
    .kfzweb-sort,
    .kfzweb-back-link,
    .wp-block-navigation,
    .comments-area,
    .related-vehicles {
        display: none !important;
    }
    
    /* Optimize layout */
    .kfzweb-single {
        display: block !important;
    }
    
    .kfzweb-single__main,
    .kfzweb-single__sidebar {
        width: 100% !important;
        float: none !important;
    }
    
    /* Show full images */
    .kfzweb-gallery__main-image img {
        max-width: 100%;
        page-break-inside: avoid;
    }
    
    /* Typography for print */
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    /* Show URLs for links */
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
    
    /* Don't show URL for internal/anchor links */
    a[href^="#"]:after,
    a[href^="javascript"]:after {
        content: "";
    }
    
    /* Price prominent */
    .kfzweb-price-box {
        border: 2px solid #000;
        padding: 15px;
        text-align: center;
    }
    
    /* Vehicle details table */
    .kfzweb-specs,
    .kfzweb-details {
        page-break-inside: avoid;
    }
    
    .kfzweb-specs th,
    .kfzweb-specs td {
        border: 1px solid #ccc;
        padding: 8px;
    }
    
    /* QR Code / Print URL section */
    .kfzweb-print-url {
        display: block !important;
        margin-top: 20px;
        padding: 10px;
        border-top: 1px solid #000;
        font-size: 10pt;
    }
    
    /* Ensure page breaks work well */
    .kfzweb-vehicle-card {
        page-break-inside: avoid;
    }
    
    /* Remove shadows and effects */
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
}
