:root {
    --hk: #9c3;        /* Hoofdkleur groen */
    --hk-donker: #5a8522;
    --lichtgrijs: #f6f8f4;
    --tekst: #444;
    --wit: #ffffff;
}

body {
    font-family: Poppins, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--tekst);
    background-color: #fafbf9;margin: 0;
    padding: 20px;
    line-height: 1.6;
}

.route-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--wit);
    padding: 40px;
    border-radius: 11px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Actiebalk bovenaan */
.actie-balk {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 33px;
    flex-wrap: wrap;
    gap: 11px;
}

.terug-link {
    text-decoration: none;
    color: var(--hk-donker);
    font-weight: 600;
}

.terug-link:hover {
    text-decoration: underline;
}

.btn-print {
    background: var(--hk);
    color: var(--wit);
    border: none;
    padding: 11px 22px;
    border-radius: 33px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(140, 198, 63, 0.3);
    transition: transform 0.2s, background 0.2s;
}

.btn-print:hover {
    background: var(--hk-donker);
    transform: translateY(-2px);
}

/* Header & Badges */
.route-header {
    text-align: center;
    margin-bottom: 35px;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 11px;
    flex-wrap: wrap;
}

.badge {
    background: var(--lichtgrijs);
    color: var(--hk-donker);
    padding: 6px 14px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.route-header h1 {
    margin: 44px 0 0 0;
    font-size: 32px;
    color: var(--tekst);
}

/* 3-koloms Infokaarten */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.info-kaart {
    background: var(--lichtgrijs);
    padding: 20px;
    border-radius: 11px;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    border-left: 4px solid var(--hk);
}

.kaart-icoon {
    font-size: 22px;
    color: var(--hk-donker);
    margin-top: 2px;
}

.info-kaart h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--hk-donker);
}

.info-kaart p {
    margin: 0;
    font-size: 15px;
}

.sub-info {
    margin-top: 6px !important;
    font-size: 14px !important;
    color: var(--hk-donker);
}

.maps-link {
    display: inline-block;
    color: var(--hk-donker);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.maps-link:hover {
    text-decoration: underline;
}

/* Intro & Foto naast elkaar */
.route-intro {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
}

.intro-tekst h2 {
    margin-top: 0;
}

.extra-toelichting {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #d5dfd0;
    font-size: 14.5px;
}

.intro-foto img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    display: block;
}

@media (max-width: 700px) {
    .route-intro { grid-template-columns: 1fr; }
    .route-container { padding: 20px; }
}

/* Jouw Knooppunten Cirkels */
.knooppunten-sectie {
    text-align: center;
    background: var(--lichtgrijs);
    padding: 30px 20px 15px 20px;
    border-radius: 16px;
    margin-bottom: 40px;
}

.knooppunten-sectie h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

p.kp, p.kpplus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    text-align: center;
    border-radius: 50%;
    border: 2px solid var(--hk);
    width: 64px;
    height: 64px;
    margin: 0 -4px 10px -4px;
    font-weight: 700;
    background: var(--wit);
    box-sizing: border-box;
}

p.kp:first-child, p.kpplus:first-child {
    background: var(--hk);
    color: var(--wit);
}

p.kp img, p.kpplus img {
    display: block;
}

.groen {
    color: var(--hk-donker);
}

/* Routekaart & Tip */
.kaart-sectie {
    text-align: center;
    margin-bottom: 30px;
}

.routekaart-img {
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid #e0e6dc;
}

.print-tip {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 30px;
}

.route-footer {
    text-align: center;
    font-size: 14px;
    color: #6c756d;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.route-footer img {
    vertical-align: middle;
    margin-bottom: 4px;
}




/* =========================================
   PRINT.CSS - Gebalanceerd over het hele A4
   ========================================= */
@media print {
    @page {
        margin: 10mm 12mm;
        size: A4 portrait;
    }

    body {
        background: none;
        padding: 0;
        font-size: 10.5pt;
        line-height: 1.45;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .no-print {
        display: none !important;
    }

    .route-container {
        box-shadow: none;
        padding: 0;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        min-height: 273mm; /* Vult de volledige A4-hoogte (297mm minus boven- en ondermarge) */
    }

    /* Meer witruimte tussen titel en de 3 infokaarten */
    .route-header {
        margin-bottom: 33px;
    }

    .badge {
        padding: 4px 12px;
        font-size: 8.5pt;
    }

    .route-header h1 {
        font-size: 20pt;
        margin-top: 22px;
    }

    /* 3 infokaarten */
    .info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 11px;
        margin-bottom: 33px;
    }

    .info-kaart {
        padding: 12px 14px;
        gap: 11px;
        break-inside: avoid;
    }

    .kaart-icoon svg {
        width: 18px;
        height: 18px;
    }

    .info-kaart h3 {
        font-size: 9pt;
        margin-bottom: 4px;
    }

    .info-kaart p {
        font-size: 9.5pt;
    }

    /* Introtekst en sfeerfoto */
    .route-intro {
        grid-template-columns: 1.35fr 0.65fr;
        gap: 22px;
        margin-bottom: 33px;
    }

    .route-intro h2,
    .knooppunten-sectie h2,
    .kaart-sectie h2 {
        font-size: 13pt;
        margin-bottom: 8px;
    }

    .intro-foto img {
        max-height: 155px;
        width: 100%;
        object-fit: cover;
        box-shadow: none;
    }

    .extra-toelichting {
        margin-top: 8px;
        padding-top: 8px;
        font-size: 9pt;
    }

    /* Knooppunt-cirkels */
    .knooppunten-sectie {
        padding: 14px 16px 8px 16px;
        margin-bottom: 20px;
        break-inside: avoid;
    }

    p.kp, p.kpplus {
        width: 44px;
        height: 44px;
        font-size: 10pt;
        margin: 0 -3px 8px -3px;
        border-width: 1.5px;
    }

    p.kp img, p.kpplus img {
        width: 24px;
        height: 24px;
    }

    p.kp svg, p.kpplus svg {
        width: 18px;
        height: 18px;
    }

    /* Routekaart zakt automatisch netjes naar onderen op het A4 */
    .kaart-sectie {
        margin-top: auto;
        margin-bottom: 12px;
        break-inside: avoid;
    }

    .routekaart-img {
        max-height: 270px;
        width: auto;
        max-width: 100%;
    }

    /* Footer helemaal onderaan het A4 */
    .route-footer {
        padding-top: 10px;
        font-size: 9pt;
    }

    .route-footer img {
        width: 20px;
        height: 20px;
    }
}
