/* ============================================================
   Quiz template (templates/quiz-template.php).
   Bouwt op de landing-styleguide: lp-hero, lp-plate, lp-faq
   en lp-close. Zo werkt het komt als shortcode in de tekst.
   Hier alleen wat deze pagina eigen heeft. De kop volgt het
   spoke template (blogpost-commercieel.php).
   ============================================================ */

/* ---------- Kop ----------
   Zelfde opzet als de gesplitste kop van het spoke template (.lp-post-split in
   blogpost.css): tekst links, slides rechts, op smal scherm onder elkaar en
   altijd links uitgelijnd. */
.landing section.qt-hero {
    display: grid;
    /* Bredere hero dan het spoke template: de slides zijn hier het product.
       Tekst compacter dan daar, zodat de kolom niet hoger wordt dan de preview. */
    grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    max-width: 1320px;
    padding: 72px 24px 32px;
    text-align: left;
}
.landing .qt-hero .lp-breadcrumbs {
    justify-content: flex-start;
}
.landing .qt-hero h1 {
    font-size: clamp(28px, 3vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.03em;
    text-wrap: balance;
}
.landing .qt-hero .lp-lede {
    max-width: 580px;
    margin: 16px 0 0;
    font-size: 17px;
    line-height: 1.6;
    text-wrap: pretty;
}
.landing .qt-hero .lp-actions {
    justify-content: flex-start;
    margin-top: 24px;
}
/* Auteursregel: stijl uit blogpost.css (.lp-post-meta), hier alleen links */
.landing .qt-hero .lp-post-meta {
    justify-content: flex-start;
    margin-top: 24px;
}
.landing .qt-hero .lp-breadcrumbs {
    margin-bottom: 16px;
}

/* Plate rond de slideshow, rustig zoals bij het spoke template: grijze haarlijn,
   zachte grijze schaduw, niet kantelen (er wordt in geklikt) */
.landing .qt-plate,
.landing .qt-plate:hover {
    /* container voor de cqw in de iframehoogte hieronder */
    container-type: inline-size;
    position: relative;
    /* strakkere hoeken dan de plates op de landingspagina's (16px) */
    border-radius: 8px;
    margin: 0;
    border-color: var(--lp-border);
    box-shadow: 0 1px 2px rgba(24, 24, 27, 0.04), 0 12px 32px -16px rgba(24, 24, 27, 0.12);
    transform: none;
}
/* Vaste hoogte vanaf de eerste paint, zodat de kop niet verspringt: 16:9-stage
   plus de miniaturenstrook van 64px (8 marge + 2×3 padding + 88×9/16 miniatuur).
   Verander je die maten in css/quiz-slides.css, pas dan deze 64px mee aan. */
.landing .qt-slides {
    display: block;
    width: 100%;
    height: calc(100cqw * 9 / 16 + 64px);
    border: 0;
}
/* Uitgelichte afbeelding precies op de plek van .qt-stage in de iframe (css/quiz-slides.css) */
.landing .qt-eerste {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 100cqw;
    height: calc(100cqw * 9 / 16);
    object-fit: cover;
    border: 1px solid #e9e7e2;
    border-radius: 4px;
}
@media (max-width: 700px) {
    /* plate-padding is daar 6px (landing.css) */
    .landing .qt-eerste {
        top: 6px;
        left: 6px;
    }
}

/* Smal scherm: onder elkaar */
@media (max-width: 928px) {
    .landing section.qt-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
        max-width: 640px;
        padding-bottom: 24px;
    }
}
@media (max-width: 700px) {
    .landing section.qt-hero {
        padding: 48px 18px 24px;
    }
}

/* ---------- USP-band ----------
   Band over de volle breedte onder de hero. Past alles op één rij, dan staat hij stil
   en gecentreerd; anders zet het script in quiz-template.php is-lopend (schuiven,
   met kopieën van de lijst) of bij reduced motion is-gewrapt (meerdere regels). */
.landing .qt-ticker {
    /* hero heeft zelf al 32px onderpadding */
    margin-top: 16px;
    padding: 14px 0;
    overflow: hidden;
    border-top: 1px solid var(--lp-border);
    border-bottom: 1px solid var(--lp-border);
}
.landing .qt-ticker-band {
    display: flex;
    justify-content: center;
}
.landing .qt-ticker-set {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}
.landing .qt-ticker-set li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 24px;
    font-size: 15px;
    white-space: nowrap;
    color: var(--lp-ink);
}
.landing .qt-ticker-set svg {
    flex: none;
    width: 16px;
    height: 16px;
    color: var(--lp-accent);
}

/* Past niet: schuiven, randen zacht laten uitlopen. Duur zet het script (vast tempo). */
.landing .qt-ticker.is-lopend {
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.landing .qt-ticker.is-lopend .qt-ticker-band {
    justify-content: flex-start;
    width: max-content;
    animation: qt-ticker 30s linear infinite;
}
.landing .qt-ticker.is-lopend:hover .qt-ticker-band {
    animation-play-state: paused;
}
@keyframes qt-ticker {
    to { transform: translateX(-50%); }
}

/* Past niet en reduced motion: over meerdere regels */
.landing .qt-ticker.is-gewrapt .qt-ticker-set {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 0;
}

@media (max-width: 700px) {
    .landing .qt-ticker {
        margin-top: 8px;
    }
}

/* ---------- Wat zit erin (shortcode [wat_zit_erin]) ----------
   Staat in .lp-post-body: lijsten en kopjes van het artikel hier terugzetten.
   Kaarten in de stijl van het hoe-het-werkt-blok: warme tint, dunne rand. */
.landing .lp-post-body .qt-inhoud {
    margin: 72px 0;
    text-align: center;
}
.landing .lp-post-body .qt-inhoud header {
    margin-bottom: 36px;
}
.landing .lp-post-body .qt-inhoud .lp-overline {
    margin-bottom: 8px;
}
.landing .lp-post-body .qt-inhoud h3 {
    margin: 0;
    font-size: clamp(22px, 2.6vw, 27px);
    line-height: 1.25;
}
.landing .lp-post-body .qt-inhoud header p {
    margin: 10px 0 0;
    font-size: 15px;
    color: var(--lp-muted);
}
.landing .lp-post-body .qt-rondes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    text-align: left;
}
/* Eén kaart (quiz zonder rondes): niet uitrekken over de hele breedte */
.landing .lp-post-body .qt-ronde:only-child {
    width: 100%;
    max-width: 640px;
    justify-self: center;
}
.landing .lp-post-body .qt-ronde {
    display: flex;
    flex-direction: column;
    padding: 28px 28px 24px;
    background: var(--lp-tint);
    border: 1px solid var(--lp-border);
    border-radius: 16px;
}
.landing .lp-post-body .qt-ronde-num {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lp-accent);
}
.landing .lp-post-body .qt-ronde h4 {
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--lp-ink);
}
.landing .lp-post-body .qt-ronde > p {
    margin: 8px 0 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--lp-muted);
}
.landing .lp-post-body .qt-ronde ul {
    display: block;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}
.landing .lp-post-body .qt-ronde li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-top: 1px solid var(--lp-border);
}
.landing .lp-post-body .qt-vraag {
    font-size: 15px;
    line-height: 1.5;
    color: var(--lp-ink);
}
.landing .lp-post-body .qt-vraagtype {
    font-size: 12.5px;
    color: var(--lp-muted);
}
.landing .lp-post-body .qt-ronde-meer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--lp-border);
    font-size: 13px;
    font-weight: 500;
    color: #92600a;
}
/* Even breed als het hoe-het-werkt-blok zodra het past */
@media (min-width: 1100px) {
    .landing .lp-post-body .qt-inhoud {
        width: 1040px;
        max-width: 1040px;
        margin-left: calc(50% - 520px);
        margin-right: calc(50% - 520px);
    }
}
/* Met inhoudsopgave ernaast: niet breder dan 880px, anders raakt hij die kolom */
@media (min-width: 1320px) {
    .landing .lp-post-layout:has(.lp-post-toc) .lp-post-body .qt-inhoud {
        width: 880px;
        max-width: 880px;
        margin-left: calc(50% - 440px);
        margin-right: calc(50% - 440px);
    }
}

/* ---------- Inhoudsopgave ----------
   Breed scherm: zelfde breedte als de hero (1320px), zodat de inhoudsopgave links
   op één lijn staat met de tekst van de hero. Kolom 1 is dan (1272 - 640 - 2×136) / 2 = 180px. */
@media (min-width: 1320px) {
    /* :has, anders wint deze het van de 688px voor pagina's zonder inhoudsopgave (blogpost.css) */
    .landing.quiz-template .lp-post-layout:has(.lp-post-toc) {
        max-width: 1320px;
    }
    .landing.quiz-template .lp-post-toc {
        justify-self: start;
        width: 180px;
    }
}

/* ---------- Meer templates ---------- */
.landing .qt-meer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.landing .qt-kaart {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: 16px;
    text-decoration: none;
    transition: border-color 0.15s, transform 0.15s;
}
.landing .qt-kaart:hover {
    border-color: #d9d5cc;
    transform: translateY(-2px);
}
.landing .qt-kaart-beeld {
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--lp-tint);
    border-bottom: 1px solid var(--lp-border);
}
.landing .qt-kaart-beeld img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.landing .qt-kaart-tekst {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px 22px;
}
.landing .qt-kaart-tekst strong {
    font-family: "Poppins", sans-serif;
    font-size: 17px;
    color: var(--lp-ink);
}
.landing .qt-kaart-tekst span {
    font-size: 14px;
    line-height: 1.6;
    color: var(--lp-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
