/* Funnel (FUNNEL-PER-PLATFORM §E20): het ding, de CTA-blokken, de nieuwsitems. Met de hand geschreven: dit bestand is de bron. */
.gh-content .ding {
    position: relative;
    margin: 2.4em 0;
    padding: 20px 22px 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    scroll-margin-top: 90px;
}
.gh-content .ding-kop { margin: 0 0 .6em; padding-right: 120px; font-size: 1.7rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; opacity: .7; }
.gh-content .ding-uitleg { margin: 0 0 1em; }
.gh-content .ding pre { margin: 0; max-height: 520px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.gh-content .ding-kopieer {
    position: absolute; top: 16px; right: 18px; margin: 0; padding: 6px 14px; border: 0; border-radius: 6px; cursor: pointer;
    background: var(--ghost-accent-color, #3eb0ef); color: #fff; font-size: 1.4rem; font-weight: 600;
}
.gh-content .ding-kopieer:hover { filter: brightness(1.1); }

.funnel-cta {
    margin: 2.4em 0 1em; padding: 24px 26px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.gh-content .funnel-cta { margin: 2.4em 0; }
.funnel-cta-kop { margin: 0 0 .4em; font-size: 2.2rem; font-weight: 800; line-height: 1.25; color: #fff; }
.funnel-cta-tekst { margin: 0 0 1.1em; font-size: 1.7rem; line-height: 1.55; opacity: .85; }
.funnel-cta-knop {
    display: inline-block; padding: 12px 22px; border-radius: 8px; font-size: 1.6rem; font-weight: 700; text-decoration: none !important;
    background: var(--ghost-accent-color, #3eb0ef); color: #fff !important;
}
.funnel-cta-knop:hover { filter: brightness(1.1); }
.funnel-blokken { margin-top: 2em; }
.funnel-nieuwsbrief { margin: .8em 0 2.4em; font-size: 1.5rem; opacity: .7; }
.funnel-nieuwsbrief a { color: inherit !important; text-decoration: underline; font-weight: 600; }

/* nieuws: elk item een blok met een eigen anker, en "wat kun je ermee" */
.gh-content .nieuws-item, .gh-content .anker { scroll-margin-top: 90px; }
.gh-content .wat-kun-je-ermee {
    margin: 1.2em 0 2em; padding: 16px 20px; border-left: 4px solid var(--ghost-accent-color, #3eb0ef);
    background: rgba(255, 255, 255, 0.04); border-radius: 0 8px 8px 0;
}
.gh-content .wat-kun-je-ermee > :first-child { margin-top: 0; }
.gh-content .wat-kun-je-ermee > :last-child { margin-bottom: 0; }

/* /tiktok: tegels als op het TikTok-profiel (9:16) */
.funnel-tiktok-kop { text-align: center; margin: 4vmin auto 3vmin; }
.funnel-tiktok-kop h1 { margin: 0 0 .3em; font-size: 3.2rem; }
.funnel-tiktok-kop p { margin: 0; opacity: .75; font-size: 1.7rem; }
.funnel-tegels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; max-width: 720px; margin: 0 auto 8vmin; padding: 0 4px; }
.funnel-tegel { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 4px; background: #222; color: #fff !important; text-decoration: none !important; }
.funnel-tegel img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.funnel-tegel:hover img { transform: scale(1.03); }
.funnel-tegel-titel { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 8px 8px; font-size: 1.35rem; font-weight: 700; line-height: 1.25;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }
@media (max-width: 480px) { .funnel-tegel-titel { font-size: 1.15rem; padding: 20px 6px 6px; } }
.funnel-tegels-leeg { grid-column: 1 / -1; text-align: center; opacity: .7; font-size: 1.6rem; padding: 4vmin 0; }

/* recept 15 (10 nov): het CTA-blok op maat onderaan een bouwartikel (:::overnemen in de tekst, plugin/lib/artikelcta.mjs).
   De collage is klikbaar, daaronder kop, tekst en de knop naar de case. Met #overnemen laat blokken.hbs het algemene blok weg. */
.gh-content .overnemen {
    margin: 3.2em 0 1.6em; padding: 0; overflow: hidden; border-radius: 18px; scroll-margin-top: 90px;
    background: #f4efe7; border: 1px solid #e3dbcd; color: #1c1a17; box-shadow: 0 24px 60px -32px rgba(0, 0, 0, 0.6);
}
.gh-content .overnemen-beeld { display: block; line-height: 0; border-bottom: 1px solid #e3dbcd; }
.gh-content .overnemen-beeld img { display: block; width: 100%; height: auto; border-radius: 0 !important; transition: opacity .2s; }
.gh-content .overnemen-beeld:hover img { opacity: .94; }
.gh-content .overnemen-tekst { padding: 28px 32px 32px; color: #1c1a17; }
.gh-content .overnemen-tekst h3 { margin: 0 0 .45em; font-size: 2.6rem; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; color: #1c1a17 !important; }
.gh-content .overnemen-tekst p { margin: 0 0 .9em; font-size: 1.75rem; line-height: 1.55; color: #4a453e !important; }
.gh-content .overnemen-tekst ul { list-style: none; margin: 0 0 1.1em !important; padding: 0 !important; display: grid; gap: 10px; }
.gh-content .overnemen-tekst li { position: relative; margin: 0 !important; padding: 12px 14px 12px 46px; border-radius: 12px; background: #fffdf9;
    border: 1px solid #e8e0d3; font-size: 1.65rem; line-height: 1.45; color: #4a453e !important; list-style: none; }
.gh-content .overnemen-tekst li::marker { content: none; }
.gh-content .overnemen-tekst li::before { content: ""; position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; border-radius: 6px;
    background: #b5583a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 14px no-repeat; }
.gh-content .overnemen-tekst li strong { color: #1c1a17; }
.gh-content .overnemen-actie { margin: 1.3em 0 0 !important; }
.gh-content .overnemen-knop {
    display: inline-block; padding: 14px 26px !important; border-radius: 11px !important; font-size: 1.8rem; font-weight: 700;
    text-decoration: none !important; background: #1c1a17 !important; color: #f4efe7 !important; box-shadow: 0 10px 24px -12px rgba(28, 26, 23, 0.7);
}
.gh-content .overnemen-knop:hover { background: #33302b !important; }
@media (max-width: 600px) {
    .gh-content .overnemen-tekst { padding: 20px 18px 24px; }
    .gh-content .overnemen-tekst h3 { font-size: 2.1rem; }
    .gh-content .overnemen-knop { display: block; text-align: center; }
}

/* recept 15: een prompt in een codeblok in de tekst breekt af op de breedte van het artikel (geen horizontale scrollbalk) */
.gh-content pre { white-space: pre-wrap; word-break: break-word; }

/* 10 nov: de leesbalk bovenaan een artikel (funnel.js stap 4) */
.leesbalk { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .25s; }
.leesbalk.is-zichtbaar { opacity: 1; }
.leesbalk span { display: block; height: 100%; background: var(--ghost-accent-color, #1a8cff); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }

/* 10 nov: onderschriften onder beelden: klein, rustig, dicht onder het beeld */
.gh-content figure.kg-image-card figcaption { margin-top: 10px; font-size: 1.45rem; line-height: 1.5; color: inherit; opacity: .68; text-align: center; font-style: italic; }
.gh-content figure.kg-image-card figcaption a { color: inherit; text-decoration: underline; }

/* 10 nov: begrippen (funnel.js stap 6): een stippellijn onder het woord, bij hover een kaartje met de uitleg */
.gh-content a.begrip-link { color: inherit; text-decoration: underline dotted; text-decoration-color: var(--ghost-accent-color, #1a8cff); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.gh-content a.begrip-link:hover { color: var(--ghost-accent-color, #1a8cff); }
.begrip-kaart { position: absolute; z-index: 9998; padding: 14px 16px; border-radius: 12px; background: #24272c; color: #e8e8e8; font-size: 1.45rem; line-height: 1.5;
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .15s, transform .15s; }
.begrip-kaart.is-open { opacity: 1; transform: none; pointer-events: auto; }
.begrip-kaart strong { display: block; margin-bottom: 4px; color: #fff; font-size: 1.5rem; }
.begrip-kaart p { margin: 0 0 8px; }
.begrip-kaart a { color: var(--ghost-accent-color, #1a8cff); font-weight: 600; text-decoration: none; }

/* 10 nov: de begrippenpagina (/begrippen/) */
.gh-content .begrippen { display: grid; gap: 14px; }
.gh-content .begrip { padding: 18px 22px; border-radius: 14px; border: 1px solid var(--color-border, rgba(127, 127, 127, .25)); scroll-margin-top: 90px; }
.gh-content .begrip:target { border-color: var(--ghost-accent-color, #1a8cff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ghost-accent-color, #1a8cff) 25%, transparent); }
.gh-content .begrip h2 { margin: 0 0 .3em !important; font-size: 2.2rem; }
.gh-content .begrip p { margin: 0 0 .4em !important; }
.gh-content .begrip-meer { font-size: 1.5rem; }

/* 11 nov: homepage. Onder het aanmeldveld het nieuwste artikel (was voorbeeldtekst "5.0 · 1.000+ anderen") */
.site-hero-nieuw { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-top: 22px; padding: 7px 14px 7px 7px; border-radius: 999px;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .8); font-size: 1.4rem; text-decoration: none; transition: background .15s, border-color .15s; }
.site-hero-nieuw:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .2); color: #fff; }
.site-hero-nieuw-label { flex: none; padding: 3px 9px; border-radius: 999px; background: var(--ghost-accent-color, #008cff); color: #fff; font-size: 1.2rem; font-weight: 700; }
.site-hero-nieuw-titel { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 11 nov: de nieuwste artikelen als kaarten */
.nieuwste { margin: max(4vmin, 24px) 0 0; }
.nieuwste-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.nieuwste-kaart { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.nieuwste-beeld { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #222; border: 1px solid rgba(255, 255, 255, .07); }
.nieuwste-beeld img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.nieuwste-kaart:hover .nieuwste-beeld img { transform: scale(1.03); }
.nieuwste-leeg { display: flex; align-items: center; justify-content: center; height: 100%; padding: 20px; color: rgba(255, 255, 255, .3); font-weight: 700; text-align: center; }
.nieuwste-meta { margin-top: 14px; color: rgba(255, 255, 255, .4); font-size: 1.3rem; }
.nieuwste-titel { margin-top: 6px; color: #fff; font-size: 1.9rem; font-weight: 700; line-height: 1.3; }
.nieuwste-kaart:hover .nieuwste-titel { color: var(--ghost-accent-color, #008cff); }
.nieuwste-tekst { margin-top: 8px; color: rgba(255, 255, 255, .5); font-size: 1.45rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 991px) { .nieuwste-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .nieuwste-grid { grid-template-columns: minmax(0, 1fr); } }
/* 11 nov: één auteur, dus geen avatar in de lijst (het was een standaardicoontje) */
.post-list-item { grid-template-columns: 1fr auto auto; }
@media (max-width: 767px) { .post-list-item { grid-template-columns: 1fr auto; } }

/* 11 nov: productkaarten in de verhouding van een deelbeeld (1200×630), zodat de Codehustle-kaart niet aan de zijkant wordt afgesneden */
.featured-product-card { aspect-ratio: 1200 / 630; }

/* 12 nov 2026: onder een artikel met een eigen CTA-blok (#overnemen) geen tweede keuze eronder; de nieuwsbriefregel leidt daar af van de ene knop */
body:has(#overnemen) .funnel-nieuwsbrief { display: none; }
