/* ===== Hero ===== */

.ao-hero {
    background: var(--light-blue);
    padding: 0 0 2.5rem;
}

.ao-hero h1 {
    margin: 1rem 0 0.5rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
}

.ao-intro {
    margin: 1rem 0 1.25rem;
    line-height: 1.7;
    color: #333;
}

.ao-btn {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.65rem 1.75rem;
    background: var(--primary-blue);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.18s ease;
}

.ao-btn:hover {
    background: var(--accent-blue);
    color: #fff;
    text-decoration: none;
}

/* ===== Secties ===== */

.ao-sectie {
    padding: 2.5rem 0;
}

.ao-sectie--wit   { background: #fff; }
.ao-sectie--licht { background: var(--very-light-blue); }
.ao-sectie--grijs { background: var(--color-gray-light); }

.ao-sectie h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    color: #333;
}

.ao-h2--grijs {
    color: #888;
}

/* ===== Grid ===== */

.aanbieder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
}

.aanbieder-tegel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem 1rem;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.ao-sectie--wit .aanbieder-tegel {
    background: #f9fbfd;
}

.aanbieder-tegel:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    transform: translateY(-2px);
    text-decoration: none;
}

.aanbieder-tegel__logo {
    width: 100%;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aanbieder-tegel__logo img {
    max-width: 100px;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.aanbieder-tegel__naam {
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    color: #222;
}

.aanbieder-tegel__omschrijving {
    font-size: 0.775rem;
    color: #666;
    text-align: center;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.aanbieder-grid--inactief .aanbieder-tegel {
    opacity: 0.45;
}

.aanbieder-grid--inactief .aanbieder-tegel:hover {
    opacity: 0.65;
}

/* ===== FAQ ===== */

.faq {
    max-width: 720px;
}

.faq__item {
    border-bottom: 1px solid #e8e8e8;
}

.faq__item:first-of-type {
    border-top: 1px solid #e8e8e8;
}

.faq__vraag {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq__vraag::-webkit-details-marker { display: none; }

.faq__vraag::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 300;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

details[open] .faq__vraag::after {
    transform: rotate(45deg);
}

.faq__antwoord {
    margin: 0 0 1rem;
    line-height: 1.6;
    color: #444;
    font-size: 0.9rem;
}

/* ===== Aanbieder detailpagina — hero ===== */

.ad-hero__inner {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 1rem;
}

.ad-hero__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1rem;
    width: 120px;
    height: 80px;
}

.ad-hero__logo img {
    max-width: 100px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.ad-hero__tekst {
    flex: 1;
}

.ad-hero__tekst h1 {
    margin: 0 0 0.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.ad-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.ao-btn--sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

/* ===== Aanbieder detailpagina — productkaarten ===== */

.ad-categorie-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.5rem 0 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--kleur-primair, #0057a8);
}

.ad-categorie-header .ad-categorie-titel {
    margin: 0;
    padding: 0;
    border: none;
}

.ad-categorie-titel {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--kleur-tekst, #1a1a1a);
    margin: 1.5rem 0 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--kleur-primair, #0057a8);
}

.ad-producten {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ad-product-kaart {
    border: 1px solid #e0e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.ao-sectie--wit .ad-product-kaart {
    background: #f9fbfd;
}

.ad-product-kaart__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--very-light-blue);
    border-bottom: 1px solid #dce8f5;
}

.ad-product-kaart__naam {
    font-weight: 700;
    font-size: 1rem;
    color: #222;
}

/* ===== Aanbieder detailpagina — specs (details/summary) ===== */

.ad-specs {
    border-bottom: 1px solid #e8eef5;
}

.ad-specs:last-of-type {
    border-bottom: none;
}

.ad-specs__titel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #444;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.ad-specs__titel::-webkit-details-marker { display: none; }

.ad-specs__titel::after {
    content: '+';
    font-size: 1.1rem;
    font-weight: 300;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

details[open] .ad-specs__titel::after {
    transform: rotate(45deg);
}

/* Losse tekst in een opengeklapte sectie (productinfo, let-op) hoort op dezelfde kantlijn als de
   titel en de tabelcellen; zonder dit plakt hij tegen de rand van de kaart. */
.ad-specs > p {
    margin: 0;
    padding: 0.25rem 1.25rem 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #444;
}

.ad-specs__tabel {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.ad-specs__tabel tr {
    border-top: 1px solid #f0f4f8;
}

.ad-specs__tabel th {
    width: 55%;
    padding: 0.55rem 1.25rem;
    text-align: left;
    font-weight: 400;
    color: #555;
    background: #fafcff;
}

.ad-specs__tabel td {
    padding: 0.55rem 1.25rem;
    font-weight: 600;
    color: #222;
}

/* Rente-specifiek */
.ad-specs--rente .ad-specs__tabel th,
.ad-specs--kolommen .ad-specs__tabel th {
    width: auto;
}

/* Caption alleen voor screenreaders: de summary toont de titel al */
.ad-specs__tabel caption {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* Sectiekop in een specs-tabel (bijv. voorwaarden-groepen) */
.ad-specs__tabel th[colspan] {
    font-weight: 600;
    color: #222;
}

.ad-rente-waarde {
    color: var(--kleur-primair, #0057a8);
    font-weight: 700;
}

.ad-rente-datum {
    font-size: 0.78rem;
    font-weight: 400;
    color: #888;
    margin-left: 0.5rem;
}

/* ===== Aanbieder detailpagina — contact ===== */

.ad-contactinfo {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #333;
}

.ad-contactinfo a {
    color: var(--primary-blue);
    text-decoration: none;
}

.ad-contactinfo a:hover {
    text-decoration: underline;
}

/* ===== Gedeeld ===== */

.last-updated {
    font-size: 0.8rem;
    color: #777;
    margin: 0.25rem 0 0.5rem;
}
