@page {
    size: A4;
    margin: 1.8cm;
}

/* ===== PRINT STYLES ===== */
@media print {

    body {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        font-family: "Inter", sans-serif;
        background: #0c0c0c !important;
        color: #e6e6e6 !important;
    }

    /* Hide web-only elements */
    .navbar,
    .navbar-default,
    .navbar-toggle,
    .btn,
    .btn-primary,
    .btn-default,
    .btn-gold,
    .lang-bar,
    .lang-switcher,
    .service-box svg,
    svg.reveal,
    dialog {
        display: none !important;
    }

    /* Keep the nav bar for print, but only the name — not the menu */
    #mainNav {
        position: static !important;
        background: #410303 !important;
        box-shadow: none !important;
        padding: 2mm 0 !important;
        text-align: center !important;
    }

    #mainNav a {
        font-size: 13pt !important;
    }

    #nav-toggle,
    #nav-panel {
        display: none !important;
    }

    /* Force scroll-reveal content visible, regardless of whether the
       fade-in animation ever triggered (e.g. printing before scrolling) */
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Header */
    header {
        padding-top: 18mm !important;
        padding-bottom: 14mm !important;
        text-align: center !important;
        background: #0c0c0c !important;
    }

    header h1 {
        font-size: 22pt !important;
        margin-bottom: 4mm !important;
    }

    header p {
        font-size: 11pt !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        color: #ddd !important;
    }

    /* Section backgrounds */
    section,
    #brief,
    #contact,
    .bg-primary {
        background: #410303 !important;
        color: #e6e6e6 !important;
        padding-top: 8mm !important;
        padding-bottom: 8mm !important;
    }

    #services {
        background: #0c0c0c !important;
        color: #e6e6e6 !important;
        padding-top: 8mm !important;
        padding-bottom: 8mm !important;
    }

    /* Force the 3-column service grid even though print width is
       narrower than the md: breakpoint it normally needs */
    #services .grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 4mm !important;
        page-break-inside: avoid;
    }

    #datenschutz {
        background: #0c0c0c !important;
        color: #e6e6e6 !important;
        padding-top: 8mm !important;
        padding-bottom: 8mm !important;
    }

    .bg-dark {
        background: #0a0a0a !important;
        color: #e6e6e6 !important;
    }

    /* Layout – single column */
    .container,
    .row,
    .col-lg-8,
    .col-lg-8.col-lg-offset-2,
    .col-lg-4,
    .col-md-6 {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Headings – gold */
    h1, h2, h3, h4, h5 {
        font-family: 'Playfair Display', serif;
        color: #d7b56d !important;
        letter-spacing: 0.5px;
        page-break-after: avoid;
        filter: none !important;
    }

    p,
    .footer-note,
    .small-privacy {
        color: #e6e6e6 !important;
        font-size: 11pt !important;
        line-height: 1.6;
    }

    .text-faded,
    .text-muted {
        color: #cccccc !important;
    }

    /* HR – gold accent */
    hr {
        border: 0 !important;
        height: 1px !important;
        background: #d7b56d !important;
        width: 60px !important;
        margin: 4mm auto !important;
    }

    /* Service boxes */
    .service-box {
        border: 1px solid #d7b56d !important;
        background: #0f0f0f !important;
        color: #e6e6e6 !important;
        margin: 0 0 8mm 0 !important;
        padding: 6mm !important;
        page-break-inside: avoid;
        min-height: unset !important;
    }

    .service-box h3 {
        color: #d7b56d !important;
        margin-bottom: 4mm !important;
    }

    .service-box p {
        color: #cccccc !important;
    }

    /* Leistungen block */
    .leistungen-wrapper {
        max-width: 100% !important;
        margin: 8mm 0 0 0 !important;
        text-align: left !important;
    }

    .leistungen-title {
        color: #d7b56d !important;
        margin-bottom: 4mm !important;
    }

    .leistungen-block {
        border-left: 4px solid #d7b56d !important;
        padding-left: 14px !important;
        margin: 0 !important;
    }

    .leistungen-list {
        color: #e8e8e8 !important;
        font-size: 11pt !important;
    }

    .leistungen-list li {
        padding-left: 18px !important;
        margin-bottom: 4px !important;
        color: #e8e8e8 !important;
    }

    .leistungen-list li::before {
        content: "•" !important;
        color: #d7b56d !important;
        font-size: 11pt !important;
        left: 0 !important;
    }

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

    /* Footer */
    .footer-note,
    .small-privacy {
        opacity: 1 !important;
        margin-top: 2mm !important;
        color: rgba(230,230,230,0.85) !important;
    }

    /* Page breaks */
    header,
    #brief,
    #services,
    #datenschutz,
    #contact {
        page-break-inside: avoid;
    }
}
