/* Print Stylesheet for MixFritz */

@media print {
    body {
        font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
        color: #000;
        background-color: #fff;
        margin: 20mm;
        font-size: 12pt;
        line-height: 1.4;
    }

    /* Hide elements not relevant for print */
    header nav,
    footer,
    .no-print,
    button,
    input[type="submit"],
    .hs-collapse,
    .hs-overlay,
    .breadcrumb-container,
    .cta-button,
    .hero-section .bg-cover, /* Assuming hero background image is not needed */
    .bg-handwerk-blau, /* Example: if this is a dark background not suitable for print */
    .text-handwerk-orange, /* Example: if this color is too light for print */
    script,
    iframe {
        display: none !important;
    }

    /* Ensure header and logo are visible and styled for print */
    header#page-header {
        background-color: #fff !important;
        color: #000 !important;
        border-bottom: 2px solid #000;
        padding: 10px 0;
        text-align: left;
        position: static !important; /* Override sticky positioning */
        height: auto !important; /* Override fixed height */
    }

    header#page-header .logo-container {
        display: block !important; /* Ensure logo is visible */
        text-align: left !important;
        padding: 0 !important;
        margin: 0 0 10px 0 !important;
    }

    header#page-header .logo-text {
        font-size: 24pt !important;
        font-weight: bold !important;
        color: #000 !important; /* Ensure logo text is black for print */
        text-shadow: none !important; /* Remove glow effects */
    }

    header#page-header .logo-subtext {
        font-size: 14pt !important;
        color: #333 !important; /* Darker grey for subtext */
        display: block !important;
    }

    /* Style links for print */
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }

    a[href^="http"]::after,
    a[href^="https"]::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #555;
    }

    a[href^="#"]::after,
    a[href^="mailto:"]::after {
        content: ""; /* Don't show URL for internal or mailto links */
    }

    /* Ensure main content is printable */
    main {
        margin-top: 0;
    }

    h1, h2, h3, h4, h5, h6 {
        color: #000 !important;
        page-break-after: avoid;
    }

    p, li, dt, dd {
        widows: 3;
        orphans: 3;
    }

    img {
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid;
    }

    /* Specific logo for print if needed, or ensure existing one is styled */
    .print-logo {
        display: block;
        text-align: center; /* Or left, as preferred */
        margin-bottom: 20px;
    }

    .print-logo .logo-text {
        font-size: 28pt;
        font-weight: bold;
        color: #000;
    }

    .print-logo .logo-subtext {
        font-size: 16pt;
        color: #333;
    }

    /* Example: If you have a specific logo image for print */
    /* .print-logo-image { display: block; width: 200px; margin: 0 auto 20px auto; } */

    /* Table styling for print */
    table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 1em;
    }

    th, td {
        border: 1px solid #ccc;
        padding: 0.5em;
        text-align: left;
    }

    thead {
        background-color: #eee;
    }

    /* Ensure specific sections are printable if they were hidden by default */
    .printable-section {
        display: block !important;
    }
}