/* =========================================================
   AOO components/content-misc.css
   ---------------------------------------------------------
   Diverse content-componenten die los stonden van het systeem.
   Samengevoegd en getokeniseerd op 2026-05-07.

   Bevat:
   1. Route card
   2. Cheese table (responsive)
   3. Alert box
   4. Offer grid + cards
   5. Partner grid + cards
   6. Content box (zachte achtergrond)

   Niet hier (eigen conditioneel bestand):
   - Receipt → components/receipt.css

   TODO: overweeg of .aoo-alert-box samengevoegd kan worden
   met .callout--warn in components/callouts.css.
   TODO: overweeg of .aoo-offer-grid en .aoo-partner-grid
   samengevoegd kunnen worden tot één herbruikbaar grid.
   ========================================================= */


/* ---------------------------------------------------------
   1. Route card
--------------------------------------------------------- */

.aoo-route-card {
    margin: 1.25rem 0 1.75rem;
    padding: 1.15rem 1.2rem;
    border: 1px solid #d9e2dc;
    border-radius: 14px;
    background: #f9fbfa;
}

.aoo-route-card__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem 1.1rem;
    align-items: start;
}

.aoo-route-card__item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.aoo-route-card__label {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
    color: #6b7a72;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.aoo-route-card__value {
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.45;
    color: #1f2a24;
}

.aoo-route-card__item--cta {
    justify-content: center;
}

.aoo-route-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: #2f6b4f;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.aoo-route-card__link:hover,
.aoo-route-card__link:focus {
    background: #275740;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

@media (max-width: 680px) {
    .aoo-route-card {
        padding: 1rem;
        border-radius: 16px;
    }

    .aoo-route-card__grid {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
    }

    .aoo-route-card__item {
        display: block;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid #e2ebe5;
    }

    .aoo-route-card__item:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }

    .aoo-route-card__label {
        display: block;
        margin-bottom: 0.22rem;
        font-size: 0.75rem;
    }

    .aoo-route-card__value {
        display: block;
        font-size: 1rem;
        line-height: 1.4;
    }

    .aoo-route-card__item--cta { margin-top: 0.1rem; }

    .aoo-route-card__link {
        width: 100%;
        padding: 0.9rem 1rem;
        border-radius: 12px;
    }
}


/* ---------------------------------------------------------
   2. Cheese table
   Opmerking: de data-label labels zijn niet gedefinieerd in
   de desktop markup. ::before { content: none } is defensief
   maar doet niets actief. Bij gebruik van echte data-labels:
   voeg toe: .aoo-cheese-row > div::before { content: attr(data-label); }
--------------------------------------------------------- */

.aoo-cheese-table {
    margin: 1.5rem 0;
    border: 1px solid #d9e2dc;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.aoo-cheese-row {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1.25fr 1.6fr;
    border-bottom: 1px solid #e6ece8;
}

.aoo-cheese-row:last-child { border-bottom: 0; }

.aoo-cheese-row > div {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    line-height: 1.45;
}

.aoo-cheese-head {
    background: #f3f7f4;
    font-weight: 700;
    color: #24382d;
}

@media (max-width: 760px) {
    .aoo-cheese-head { display: none !important; }

    .aoo-cheese-table {
        border: 0;
        background: transparent;
    }

    .aoo-cheese-row:not(.aoo-cheese-head) {
        display: block;
        margin-bottom: 1rem;
        padding: 0.9rem 1rem;
        border: 1px solid #d9e2dc;
        border-radius: 14px;
        background: #fff;
    }

    .aoo-cheese-row:not(.aoo-cheese-head) > div {
        padding: 0;
        border-bottom: 0;
    }

    .aoo-cheese-row:not(.aoo-cheese-head) > div:nth-child(1) {
        margin-bottom: 0.35rem;
        font-size: 1.05rem;
        font-weight: 700;
        color: #24382d;
    }

    .aoo-cheese-row:not(.aoo-cheese-head) > div:nth-child(2),
    .aoo-cheese-row:not(.aoo-cheese-head) > div:nth-child(3) {
        display: inline;
        font-size: 0.9rem;
        color: #5f6f66;
    }

    .aoo-cheese-row:not(.aoo-cheese-head) > div:nth-child(2)::after {
        content: " · ";
    }

    .aoo-cheese-row:not(.aoo-cheese-head) > div:nth-child(4) {
        margin-top: 0.5rem;
        font-size: 0.95rem;
        line-height: 1.45;
    }
}


/* ---------------------------------------------------------
   3. Alert box
   ---------------------------------------------------------
   TODO: overweeg samenvoegen met .callout--warn in
   components/callouts.css. Enig verschil nu: oranje
   border-left (#c2410c) vs. warn-border token.
   Als je tokens wil gebruiken: background: var(--warn-bg);
   border-left-color: var(--warn-border);
--------------------------------------------------------- */

.aoo-alert-box {
    margin: 24px 0;
    padding: 16px 18px;
    background: #fff7ed;
    border-left: 4px solid #c2410c;
    border-radius: 10px;
}


/* ---------------------------------------------------------
   4. Offer grid + cards
   ---------------------------------------------------------
   TODO: vergelijk met .aoo-partner-grid hieronder —
   beiden zijn 3-koloms grids met cards. Overweeg samen-
   voegen tot één .aoo-card-grid met een modifier.
--------------------------------------------------------- */

.aoo-offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 24px 0;
}

.aoo-offer-card {
    padding: 20px;
    border: 1px solid var(--ring, #e5e7eb);
    border-radius: 14px;
    background: #fff;
}

.aoo-offer-card h3 { margin-top: 0; }

/* ---------------------------------------------------------
   .aoo-button — losse knopstijl
   TODO: vervang door .btn--primary uit components/buttons.css
   LET OP: kleur hier is #b91c1c (donkerder rood dan brand
   #ed1c24). Als je wil uniformeren: gebruik var(--brand).
--------------------------------------------------------- */
.aoo-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #b91c1c;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.aoo-button:hover {
    background: #7f1d1d;
    color: #fff;
}

@media (max-width: 768px) {
    .aoo-offer-grid { grid-template-columns: 1fr; }
}


/* ---------------------------------------------------------
   5. Partner grid + cards
   ---------------------------------------------------------
   TODO: vergelijk met .aoo-offer-grid hierboven.
   Gebruikt var(--border-color) — niet bestaand token.
   Gecorrigeerd naar var(--ring, #e5e7eb).
--------------------------------------------------------- */

.aoo-partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin: 1.5rem 0 2rem;
}

.aoo-partner-card {
    border: 1px solid var(--ring, #e5e7eb);
    border-radius: 14px;
    padding: 1.5rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.aoo-partner-card h3 { margin: 0; }
.aoo-partner-card p  { margin: 0 0 auto; }

.aoo-partner-logo {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.aoo-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    border-top: 1px solid var(--ring, #e5e7eb);
    padding-top: 1rem;
}

.aoo-link-row a { font-weight: 600; }

@media (max-width: 900px) {
    .aoo-partner-grid { grid-template-columns: 1fr; }
}


/* ---------------------------------------------------------
   6. Content box
   ---------------------------------------------------------
   Zachte groene achtergrond achter hoofdtekst.
   Gebruikt op pagina's met sidebar/TOC-layout.

   TODO: overweeg tokens toevoegen aan foundation/tokens.css:
     --aoo-surface-green: #f7faf3;
     --aoo-border-green: rgba(93, 117, 74, 0.16);
   Dan worden de hardcoded kleuren hier vervangbaar.
--------------------------------------------------------- */

.aoo-content-box {
    background: #f7faf3;
    border: 1px solid rgba(93, 117, 74, 0.16);
    border-radius: 22px;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: 0 12px 34px rgba(40, 35, 25, 0.06);
}

.aoo-content-box > *:first-child { margin-top: 0; }
.aoo-content-box > *:last-child  { margin-bottom: 0; }