/* css/paginas/website-functies.css
   Mobiel-eerst. Desktop via @media (min-width: 768px).
   Kleuren: pastel-zand (#F7EDD8) en pastel-rood (#F0DDD0), titels in #C17F5A.
   details/summary: mobiel klapbaar, desktop altijd open via CSS.
*/

/* ── HERO ────────────────────────────────────────────────── */
.wf-hero {
    padding: 48px 20px 32px;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}
.wf-hero-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #C17F5A;
    margin-bottom: 12px;
}
.wf-hero-titel {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    color: #1A1A2E;
    line-height: 1.25;
    margin-bottom: 16px;
}
.wf-hero-tekst {
    font-size: 1rem;
    color: #555;
    line-height: 1.65;
}

/* ── THEMA-CONTAINER ─────────────────────────────────────── */
.wf-themas {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 16px 40px;
    max-width: 760px;
    margin: 0 auto;
}

/* ── THEMA-BLOK ──────────────────────────────────────────── */
.wf-thema {
    border-radius: 16px;
    padding: 24px 20px;
}
.wf-kleur-zand { background: #F7EDD8; }
.wf-kleur-rood { background: #F0DDD0; }

.wf-thema-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.wf-thema-icoon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #C17F5A;
}
.wf-thema-icoon svg {
    width: 100%;
    height: 100%;
    display: block;
}
.wf-thema-titel {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #C17F5A;
    line-height: 1.2;
}

/* ── ONDERDELEN-LIJST ────────────────────────────────────── */
.wf-onderdelen {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wf-onderdeel {
    background: white;
    border-radius: 10px;
    padding: 16px 18px;
}

/* Naam en korte tekst */
.wf-onderdeel-naam {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1A1A2E;
    margin-bottom: 4px;
}
.wf-onderdeel-tekst {
    display: block;
    font-size: 0.88rem;
    color: #555;
    line-height: 1.55;
}
.wf-onderdeel-uitgebreid {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.55;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #EDE8E0;
}
.wf-onderdeel-vervangt {
    font-size: 0.75rem;
    color: #C17F5A;
    margin-top: 8px;
    font-weight: 600;
}

/* ── DETAILS/SUMMARY — MOBIEL ────────────────────────────── */
details {
    /* geen extra styling nodig, wrapper is .wf-onderdeel */
}
details > summary {
    list-style: none;
    cursor: pointer;
}
details > summary::-webkit-details-marker { display: none; }

/* ── DETAILS/SUMMARY — DESKTOP: altijd open, marker weg ─── */
@media (min-width: 768px) {
    details {
        /* Forceer open staat via pointer-events none op summary */
    }
    details > summary {
        pointer-events: none;
        cursor: default;
    }
    /* Toon uitgebreide tekst altijd, ongeacht open/dicht */
    details > .wf-onderdeel-uitgebreid {
        display: block !important;
    }
    /* Zorg dat details zelf altijd "open" gedraagt voor de uitgebreide tekst */
    details:not([open]) > .wf-onderdeel-uitgebreid {
        display: block !important;
    }
}

/* ── CTA ─────────────────────────────────────────────────── */
.wf-cta {
    text-align: center;
    padding: 40px 20px 56px;
    max-width: 560px;
    margin: 0 auto;
}
.wf-cta-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #C17F5A;
    margin-bottom: 12px;
}
.wf-cta-titel {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: #1A1A2E;
    margin-bottom: 12px;
    line-height: 1.25;
}
.wf-cta-tekst {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 24px;
}
.wf-cta-link {
    display: inline-block;
    background: #C17F5A;
    color: white;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: background 0.2s;
}
.wf-cta-link:hover { background: #A66B48; }

/* ── DESKTOP AANPASSINGEN ────────────────────────────────── */
@media (min-width: 768px) {
    .wf-hero {
        padding: 64px 20px 40px;
    }
    .wf-hero-titel {
        font-size: 2.6rem;
    }
    .wf-themas {
        gap: 20px;
        padding: 0 20px 56px;
    }
    .wf-thema {
        padding: 32px 28px;
    }
    .wf-thema-titel {
        font-size: 1.4rem;
    }
    .wf-onderdelen {
        /* Op desktop twee kolommen als er meerdere items zijn */
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    /* Themas met 1 of 3 items: geen grid (voorkomt halflege rijen) */
    .wf-thema:has(.wf-onderdelen > li:only-child) .wf-onderdelen,
    .wf-thema:has(.wf-onderdelen > li:last-child:nth-child(3)) .wf-onderdelen {
        grid-template-columns: 1fr;
        max-width: 560px;
    }
}

@media (min-width: 1024px) {
    .wf-themas {
        max-width: 900px;
    }
}
