/* ============================================================
   FRONTEND PAGE-SPECIFIC LAYOUT
   ============================================================ */


/* ============================================================
   IDEEËN (MUZIEKKEUZE) — card-stijl in 3 regels
   Titel boven, componist regel 2, arrangeur regel 3.
   Koppel-badge rechts uitgelijnd.
   ============================================================ */

.idee-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
}

.idee-header-left {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}

.idee-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.idee-header-title {
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.idee-header-componist {
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.idee-header-arrangeur {
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.idee-header-right {
    flex: 0 0 auto;
}

/* Koppel-form (idee-actions) staat bovenaan in geopende body,
   boven de detail-velden — afgedwongen door HTML-volgorde. */
.idee-card .idee-actions {
    margin-bottom: 12px;
}

/* Idee-footer knoppenrij: compacte buttons, wrap met gap */
.idee-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.idee-footer .button {
    height: 28px;
    padding: 0 10px;
    font-size: 13px;
}

.idee-footer .button i,
.idee-footer .button svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

/* Inline icoon-link in detail-paragraaf (zoals "Luister hier") */
.idee-details a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
}

.idee-details a i,
.idee-details a svg {
    width: 14px;
    height: 14px;
}

/* --- Filter-balk boven idee-overzicht --- */

.idee-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 12px;
    margin-bottom: 16px;
    background: var(--gray-50, #f9fafb);
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 8px;
}

.filter-search {
    position: relative;
    flex: 1 1 220px;
    min-width: 0;
    display: flex;
    align-items: center;
}

.filter-search i,
.filter-search svg {
    position: absolute;
    left: 10px;
    width: 16px;
    height: 16px;
    color: var(--gray-500, #6b7280);
    pointer-events: none;
}

.filter-search input {
    width: 100%;
    height: 32px;
    padding: 0 10px 0 32px;
    border: 1px solid var(--gray-300, #d1d5db);
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
}

.filter-search input:focus {
    outline: 2px solid var(--color-platform-accent, #f97316);
    outline-offset: -1px;
    border-color: transparent;
}

.filter-chips {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-chips-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600, #4b5563);
    margin-right: 2px;
}

.filter-chip {
    height: 26px;
    padding: 0 10px;
    border: 1px solid var(--gray-300, #d1d5db);
    border-radius: 999px;
    background: #fff;
    color: var(--gray-700, #334155);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.12s ease;
}

.filter-chip:hover {
    background: var(--gray-100, #f3f4f6);
}

.filter-chip.active {
    background: var(--color-platform-accent, #f97316);
    border-color: var(--color-platform-accent, #f97316);
    color: #fff;
}

.filter-sort {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-sort label {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600, #4b5563);
}

.filter-sort select {
    height: 28px;
    padding: 0 24px 0 8px;
    border: 1px solid var(--gray-300, #d1d5db);
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    cursor: pointer;
}

/* --- Detail-blok hiërarchie --- */

/* Primaire stat-chips: graad / duur / bezetting */
.idee-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.idee-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 6px;
    background: var(--gray-50, #f9fafb);
    min-width: 0;
}

.idee-stat-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-500, #6b7280);
}

.idee-stat-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900, #0f172a);
    line-height: 1.3;
    overflow-wrap: anywhere;
}

/* Secundaire info: compact 2-koloms label/value grid */
.idee-meta-grid {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 4px 12px;
    margin: 0 0 12px;
    font-size: 13px;
}

.idee-meta-grid dt {
    font-weight: 600;
    color: var(--gray-700, #334155);
}

.idee-meta-grid dd {
    margin: 0;
    color: var(--gray-700, #334155);
    overflow-wrap: anywhere;
}

/* YouTube-regel */
.idee-youtube {
    margin: 0 0 12px;
    font-size: 14px;
}

/* Opmerking als blok met subtiele border-left */
.idee-opmerking {
    margin: 0 0 12px;
    padding: 8px 12px;
    border-left: 3px solid var(--gray-300, #d1d5db);
    background: var(--gray-50, #f9fafb);
    border-radius: 0 4px 4px 0;
}

.idee-opmerking strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray-500, #6b7280);
    margin-bottom: 4px;
}

.idee-opmerking p {
    margin: 0;
    font-size: 14px;
    color: var(--gray-800, #1f2937);
}

/* Aangemaakt-door/op subtiele meta-regel */
.idee-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 12px;
    color: var(--gray-500, #6b7280);
}

.idee-meta i,
.idee-meta svg {
    width: 13px;
    height: 13px;
}

/* Op desktop: kaart-body content niet over de volle breedte uitstrekken */
@media (min-width: 768px) {
    .idee-body>* {
        max-width: 640px;
    }
}


/* ============================================================
   EVENEMENT DETAIL — mobiele layout fixes
   Voor evenementen/evenement.php: compactere ideeën,
   compactere concertplanning, titel-bar netjes.
   ============================================================ */

@media (max-width: 768px) {

    /* Page-header: titel + ⋮ altijd op één regel ook bij
       stack-actions variant. Lange titels mogen wrappen
       BINNEN hun eigen kolom — pijl blijft rechts plakken. */
    .page-header--stack-actions .page-title-row {
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
    }

    .page-header--stack-actions .page-title {
        flex: 1 1 auto;
        min-width: 0;
    }

    .page-header--stack-actions .page-header-actions {
        flex: 0 0 auto;
        flex-wrap: nowrap;
    }

    /* Idee-card header: duimpjes weg — kleur-streep links
       laat al zien hoe er gestemd is */
    .idea-card .idea-header .idea-votes {
        display: none;
    }

    /* Idee-card body: stem-module eerst, idee-details eronder */
    .idea-card .idea-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .idea-card .idea-grid .idea-info {
        order: 2;
    }

    .idea-card .idea-grid .idea-stemmen {
        order: 1;
    }

    /* Stem-overzicht (lijst andere stemmen) iets compacter */
    .idea-card .stem-overzicht {
        font-size: 0.9rem;
    }


    /* ----------------------------------------
       CONCERTPLANNING — mobiel compact
       ---------------------------------------- */

    /* 4 tijden samen op 1 regel: Vóór | Na | Speeltijd | Totaal */
    .planning-summary-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        align-items: start;
    }

    .planning-summary-grid>div {
        min-width: 0;
        gap: 0;
    }

    .planning-summary-grid .summary-label {
        font-size: 11px;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .planning-summary-grid strong {
        font-size: 0.92rem;
    }

    /* Pauze + Regel toevoegen op één regel,
       Start + Einde tijden op de volgende regel.
       !important nodig omdat er elders mobile-CSS staat die
       .planning-actions / .concert-times op column zette. */
    .planning-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 8px;
    }

    .planning-actions>.button,
    .planning-actions>button.button {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
        justify-content: center;
    }

    .planning-actions .concert-times {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        flex-basis: 100%;
        gap: 8px;
        align-items: center !important;
    }

    .planning-actions .start-time,
    .planning-actions .end-time-display {
        display: flex;
        align-items: center;
        gap: 6px;
        flex: 1 1 0;
        min-width: 0;
    }

    .planning-actions .start-time input[type="time"] {
        width: auto;
        max-width: 90px;
        flex: 0 1 auto;
        padding: 6px 8px;
    }

    .planning-actions .start-time span,
    .planning-actions .end-time-display span {
        font-size: 13px;
    }

    /* Concertwerken (planning-cards): titel + duur/presentatie
       op gescheiden rijen zodat de input/icons niet inelkaar
       schuiven. */
    .planning-card .idea-header {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .planning-card .planning-left,
    .planning-card .planning-right {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

    .planning-card .planning-right {
        justify-content: flex-end;
    }

    .planning-card .presentatie-input {
        width: 56px;
        max-width: 56px;
        height: 32px;
        min-height: 32px;
        padding: 4px 6px;
        font-size: 13px;
        box-sizing: border-box;
    }

    /* Custom-regel titel-input ook compacter, en zelfde font
       als de andere card-titels (erft van .idea-title parent) */
    .planning-card .regel-label-input {
        height: 32px;
        min-height: 32px;
        padding: 4px 8px;
        box-sizing: border-box;
        font: inherit;
    }

    /* Prullenbak even hoog als de tijd-input (32x32) */
    .planning-card .planning-right .button.icon-only.danger,
    .planning-card .planning-right .button.icon-only {
        width: 32px;
        min-width: 32px;
        height: 32px;
        min-height: 32px;
    }

    .planning-card .planning-right .button.icon-only i,
    .planning-card .planning-right .button.icon-only svg {
        width: 16px;
        height: 16px;
    }

    /* Muziek-noot + mic iconen ook compacter */
    .planning-card .planning-duur,
    .planning-card .planning-presentatie {
        font-size: 13px;
        gap: 4px;
    }

    .planning-card .planning-duur i,
    .planning-card .planning-presentatie i {
        width: 16px;
        height: 16px;
    }

    /* Prullenbak dicht tegen de input/laatste item, met een
       kleine ademruimte van 4px ertussen (container heeft
       gap: 8px, dus -4px geeft netto 4px). */
    .planning-card .planning-right>form:last-child,
    .planning-card .planning-right form:has(button.danger) {
        margin-left: -4px;
    }

}


/* ============================================================
   STEM-MODULE COLLAPSIBLE (eigen stem dichtgeklapt
   als al gestemd, klik op naam om aan te passen)
   ============================================================ */

.stem-row--me-collapsible {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0;
    background: #fafbfc;
    margin-bottom: 12px;
}

.stem-naam--summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-weight: 600;
    color: #334155;
    user-select: none;
}

.stem-naam--summary::-webkit-details-marker {
    display: none;
}

.stem-naam--summary::after {
    content: "▾";
    margin-left: auto;
    color: #94a3b8;
    font-size: 12px;
    transition: transform 0.15s ease;
}

.stem-row--me-collapsible[open] .stem-naam--summary::after {
    transform: rotate(180deg);
}

.stem-naam-vote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
}

.stem-naam-vote i {
    width: 16px;
    height: 16px;
}

.stem-naam-vote--up {
    background: #dcfce7;
    color: #166534;
}

.stem-naam-vote--down {
    background: #fee2e2;
    color: #991b1b;
}

.stem-naam-vote--neutral {
    background: #f1f5f9;
    color: #475569;
}

.stem-naam-hint {
    font-size: 12px;
    font-weight: 400;
    color: #64748b;
}

.stem-row--me-collapsible .stem-form {
    padding: 0 14px 14px;
}


/* ============================================================
   EVENEMENTEN OVERZICHT — mobiele kaart-stijl
   Elk evenement compacter op telefoon: titel + meta op
   minder ruimte, hele card klikbaar via stretched link.
   ============================================================ */

@media (max-width: 768px) {

    /* Maak de outer content-card luchtig — geen dubbele kaders */
    .events-list {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .events-list .list-row {
        display: block;
        position: relative;
        padding: 12px 100px 12px 14px;
        margin-bottom: 10px;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        background: #ffffff;
        grid-template-columns: none;
    }

    .events-list .list-row:last-child {
        margin-bottom: 0;
    }

    .events-list .list-main {
        display: block;
    }

    .events-list .event-left {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 6px 10px;
        margin-bottom: 6px;
    }

    .events-list .event-left a,
    .events-list .list-main>.event-left>a {
        font-size: 1rem;
        font-weight: 700;
        color: #0f172a;
    }

    /* Stretched-link: titel-link dekt hele card → hele kaart tappable */
    .events-list .event-left a::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
    }

    .events-list .list-meta {
        font-size: 13px;
        color: #64748b;
    }

    .events-list .event-right {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 14px;
        grid-template-columns: none;
        width: auto;
        margin: 0;
    }

    .events-list .event-right .stat {
        font-size: 13px;
    }

    /* Bewerken-knop rechts in de card, op dezelfde hoogte als de stats.
       Absolute positionering boven de stretched-link (z-index 2). */
    .events-list-edit {
        position: absolute;
        right: 14px;
        bottom: 12px;
        z-index: 2;
        margin-top: 0;
        padding: 6px 12px;
        font-size: 13px;
    }

}


/* ============================================================
   LOGIN — Klankkamer logo bovenin de pagina
   ============================================================ */

.login-logo {
    max-width: 200px;
    margin: 24px auto 20px;
    text-align: center;
}

.login-logo img {
    width: 100%;
    max-height: 80px;
    height: auto;
    object-fit: contain;
}


/* ============================================================
   BIBLIOTHEEK
   ============================================================ */

.page-bibliotheek .page-meta {
    margin: 16px 0;
}


/* ------------------------------------------------------------
   Table wrapper (geen eigen scroll meer!)
   ------------------------------------------------------------ */

.page-bibliotheek .table-wrapper {
    margin-top: 12px;
    width: 100%;
    overflow: hidden;
}


/* ------------------------------------------------------------
   Base table
   ------------------------------------------------------------ */

.page-bibliotheek table {
    min-width: 1600px;
}

/* ------------------------------------------------------------
   Sticky header (werkt binnen DataTables scrollHead)
   ------------------------------------------------------------ */

.page-bibliotheek thead th {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky-table);

    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}


/* Tweede header rij */

.page-bibliotheek thead tr:nth-child(2) th {
    top: var(--table-header-height);
}


/* ------------------------------------------------------------
   DataTables containment (DE BELANGRIJKE FIX)
   ------------------------------------------------------------ */

/* Wrapper mag nooit breder worden dan content */

.page-bibliotheek .dataTables_wrapper {
    width: 100% !important;
    max-width: 100% !important;
}

/* Scroll container correct begrenzen */

.page-bibliotheek .dataTables_scroll {
    width: 100% !important;
    max-width: 100% !important;
}

/* Head container corrigeren (vaak boosdoener) */

.page-bibliotheek .dataTables_scrollHead {
    width: 100% !important;
    max-width: 100% !important;
}

/* Deze veroorzaakt meestal overflow */

.page-bibliotheek .dataTables_scrollHeadInner {
    width: 100% !important;
}

/* De echte horizontale scroll */

.page-bibliotheek .dataTables_scrollBody {
    overflow-x: scroll !important;
    overflow-y: auto !important;
    border-bottom: 1px solid var(--gray-200);
    max-width: 100% !important;
    max-height: 70vh;
}


/* ------------------------------------------------------------
   Alignment
   ------------------------------------------------------------ */

.page-bibliotheek th,
.page-bibliotheek td {
    text-align: left;
}

.page-bibliotheek th:first-child,
.page-bibliotheek td:first-child {
    text-align: center;
}


/* ------------------------------------------------------------
   Hover polish
   ------------------------------------------------------------ */

.page-bibliotheek tbody tr:hover {
    background: var(--gray-50);
}

.dt-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.dataTables_filter {
    margin: 0;
}

.dataTables_length {
    margin: 0;
}

/* =========================================================
   MARKETING PAGE – SIGNUP LAYOUT
   Zorgt voor nette spacing en centrering van de signup page
========================================================= */

/* HERO sectie bovenaan de pagina */
.hero-section {
    padding: 40px 0 60px;
    text-align: center;
}

/* USP / voordelen sectie */
.signup-benefits-section {
    padding: 20px 0 40px;
}

/* Voordelen grid (2 kolommen) */
.signup-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 30px;
    max-width: 600px;
}

/* Signup formulier sectie */
.signup-section {
    padding: 40px 0 100px;
}

/* Algemene container voor marketing pagina's */
.marketing-page .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.marketing-page .marketing-features-grid {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.marketing-page .marketing-features-grid .feature {
    min-width: 0;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* =========================================================
   MARKETING PAGE – VISUAL POLISH
   Kleine verbeteringen voor betere balans en leesbaarheid
========================================================= */

/* Hero iets sterker maken */
.hero-section h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.landing-subtitle {
    font-size: 16px;
    color: #64748b;
}

/* Voordelen sectie beter centreren */
.signup-benefits-section h3 {
    margin-bottom: 15px;
}

/* Voordelen grid mooier uitlijnen */
.signup-benefits-grid {
    margin-bottom: 10px;
}

/* Pricing iets prominenter maken */
.pricing-block {
    margin-top: 15px;
    font-weight: 500;
}

/* Signup card iets sterker laten “zweven” */
.signup-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 36px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Form titel iets meer ruimte */
.signup-card h3 {
    margin-bottom: 25px;
}

/* ===== Signup page fix ===== */

.hero-section {
    text-align: center;
    padding: 60px 0 30px;
}

.signup-benefits-section {
    text-align: center;
    margin-bottom: 20px;
}

.signup-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    gap: 10px 48px;
    margin: 20px auto;
    max-width: 980px;
}

.signup-benefits-grid>div {
    white-space: nowrap;
    font-size: clamp(0.9rem, 1.4vw, 1rem);
}

.pricing-block {
    margin-top: 18px;
}

.pricing-block .price {
    font-size: 20px;
    font-weight: 600;
}

.pricing-block .price-note {
    font-size: 14px;
    color: #64748b;
}

.signup-section {
    padding: 40px 0 80px;
}

@media (max-width: 900px) {
    .marketing-page .container {
        padding: 0 16px;
    }

    .marketing-page .marketing-features-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    .marketing-page .marketing-features-grid .feature {
        width: 100%;
        padding: 16px 14px;
    }

    .marketing-page .marketing-features-grid .feature h3,
    .marketing-page .marketing-features-grid .feature p {
        white-space: normal;
    }

    .hero-section {
        padding: 44px 0 24px;
    }

    .hero-section h1 {
        font-size: clamp(1.65rem, 6.4vw, 2.2rem);
        line-height: 1.2;
    }

    .landing-subtitle {
        font-size: 0.98rem;
    }

    .signup-benefits-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 10px;
        max-width: 100%;
        text-align: center;
    }

    .signup-benefits-grid>div {
        white-space: nowrap;
        font-size: clamp(0.82rem, 3.4vw, 0.95rem);
    }

    .pricing-block .price {
        font-size: 1.1rem;
    }

    .signup-card,
    .signup-success-card {
        padding: 24px 18px;
        border-radius: 12px;
    }

    .signup-section {
        padding: 28px 0 56px;
    }
}

@media (max-width: 900px) {

    .app-layout-v1 .app-content,
    .app-content {
        padding: 16px;
    }

    .container,
    .marketing-page .container,
    .signup-section .container {
        padding: 0 16px;
    }

    .dashboard-grid,
    .admin-tiles,
    .dashboard-section:nth-of-type(2) .admin-tiles,
    .form-grid-3,
    .form-grid-2,
    .settings-form.form-grid-2,
    .werk-detail-page .detail-cards,
    .werk-detail-page .uitleen-grid,
    .werk-detail-page .work-detail-grid,
    .werk-detail-page .work-detail-2col,
    .events-list .list-row {
        grid-template-columns: 1fr;
    }

    .page-header,
    .page-header-home,
    .actions,
    .actions-inline,
    .planning-actions-left,
    .planning-actions-right,
    .repetitie-preview-row,
    .repetitie-mode-wrapper,
    .rep-focus-row,
    .kk-modal__actions,
    .form-actions-right {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .onderdelen-form,
    .onderdelen-form .form-field,
    .koppel-form,
    .input-inline,
    .event-left {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .onderdelen-overzicht {
        padding-left: 0;
    }

    .data-table.onderdelen-table {
        width: 100%;
    }

    .repetitie-field {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .repetitie-field label {
        width: auto;
    }

    .repetitie-field input[type="date"],
    .repetitie-field input[type="time"] {
        width: 100%;
    }

    .events-list .list-main {
        display: block;
    }

    .events-list .event-right,
    .event-right {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        margin-left: 0;
        column-gap: 10px;
    }

    .list-stats,
    .repetitie-meta {
        flex-wrap: wrap;
        gap: 8px;
    }

    .home-actions {
        position: static;
        top: auto;
        right: auto;
        margin-bottom: 12px;
    }

    .kk-modal {
        padding: 12px;
    }

    .kk-modal__panel {
        width: 100%;
        max-width: 560px;
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .hero-section h1 {
        font-size: clamp(1.4rem, 7vw, 1.9rem);
    }

    .pricing-block .price {
        font-size: 1rem;
    }

    .events-list .event-right,
    .event-right {
        grid-template-columns: 1fr;
        row-gap: 6px;
        justify-items: start;
    }
}

@media (max-width: 900px) {
    .app-home .dashboard-grid {
        grid-template-columns: 1fr;
        justify-content: stretch;
        max-width: 100%;
        width: 100%;
        margin-top: 20px;
    }

    .app-home .dashboard-tile {
        width: 100%;
        padding: 20px;
    }

    .app-home .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .app-home .page-header .header-actions {
        position: static;
        right: auto;
    }
}

/* =========================================================
   LANDING PAGE — LICHT & PREMIUM (scoped op .landing-page)
   In zichzelf staande styling voor index.php. Hogere
   specificiteit dan de signup-bleed, dus die wordt netjes
   overschreven zonder de signup-pagina te raken.
========================================================= */

/* HERO */
.landing-page .hero-section {
    text-align: left;
    padding: 96px 0 80px;
}

.landing-page .platform-logo {
    max-width: 200px;
    margin-bottom: 28px;
}

.landing-page .hero-content h1 {
    font-size: clamp(2.4rem, 4.6vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.08;
    color: var(--gray-900);
    margin-bottom: 18px;
}

.landing-page .hero-content p {
    font-size: 1.18rem;
    line-height: 1.6;
    color: var(--gray-500);
    max-width: 46ch;
    margin-bottom: 32px;
}

.landing-page .hero-actions {
    gap: 14px;
}

.landing-page .button.large {
    padding: 14px 26px;
    font-size: 1.02rem;
    border-radius: 12px;
}

.landing-page .button.primary {
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
    transition: transform .15s ease, box-shadow .15s ease;
}

.landing-page .button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.32);
}

/* PRICING CARD */
.landing-page .hero-pricing-card {
    border: 1px solid var(--gray-200);
    border-radius: 22px;
    padding: 40px 36px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.landing-page .price-big {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.landing-page .hero-pricing-card ul {
    text-align: left;
    margin: 0 0 28px;
}

.landing-page .hero-pricing-card li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--gray-700);
}

.landing-page .hero-pricing-card li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary);
    font-weight: 700;
}

/* GEDEELDE SECTIEKOP */
.landing-page .section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.landing-page .section-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.landing-page .section-head p {
    color: var(--gray-500);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* FEATURES */
.landing-page .features-section {
    background: #ffffff;
    padding: 88px 0;
}

.landing-page .features-grid,
.landing-page .marketing-features-grid {
    gap: 28px;
}

.landing-page .feature {
    text-align: left;
    padding: 34px 30px;
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    transition: transform .18s ease, box-shadow .18s ease;
}

.landing-page .feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.10);
}

.landing-page .feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.10);
    color: var(--color-primary);
    margin-bottom: 20px;
}

.landing-page .feature-icon svg {
    width: 26px;
    height: 26px;
}

.landing-page .feature h3 {
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.landing-page .feature p {
    color: var(--gray-500);
    line-height: 1.6;
}

/* SCREENSHOTS */
.landing-page .screenshots-section {
    padding: 96px 0;
}

.landing-page .screenshot-row {
    gap: 64px;
    margin-bottom: 96px;
}

.landing-page .screenshot-row:last-child {
    margin-bottom: 0;
}

.landing-page .screenshot-img {
    width: 100%;
    border-radius: 18px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
}

.landing-page .screenshot-text h3 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--gray-900);
    margin-bottom: 14px;
}

.landing-page .screenshot-text p {
    color: var(--gray-500);
    font-size: 1.08rem;
    line-height: 1.65;
}

/* CTA */
.landing-page .cta-section {
    padding: 40px 0 100px;
}

.landing-page .cta-section .container {
    background: linear-gradient(135deg, #eef4ff, #f8fafc);
    border: 1px solid var(--gray-200);
    border-radius: 28px;
    padding: 72px 32px;
    text-align: center;
}

.landing-page .cta-section h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--gray-900);
    margin: 0 auto 28px;
    max-width: 640px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .landing-page .hero-section {
        text-align: center;
        padding: 56px 0 40px;
    }

    .landing-page .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .landing-page .hero-actions {
        justify-content: center;
    }

    .landing-page .feature {
        text-align: center;
    }

    .landing-page .feature-icon {
        margin-left: auto;
        margin-right: auto;
    }

    .landing-page .features-section,
    .landing-page .screenshots-section {
        padding: 56px 0;
    }

    .landing-page .screenshot-row {
        margin-bottom: 56px;
    }

    .landing-page .cta-section {
        padding: 24px 0 64px;
    }

    .landing-page .cta-section .container {
        padding: 48px 22px;
    }
}


/* =========================================================
   BIBLIOTHEEK — mobiele kaart-view
   Tabel (DataTables) wordt onder 768px verborgen,
   in plaats daarvan tonen we kaarten per werk.
========================================================= */

.bib-cards,
.bib-mobile-toolbar,
.bib-filter-sheet {
    display: none;
}

@media (max-width: 768px) {

    /* Desktop tabel + DataTables-wrapper + bulk-delete-controls verbergen */
    .page-bibliotheek .table-wrapper,
    .page-bibliotheek #bulkDeleteControls,
    .page-bibliotheek .dataTables_wrapper {
        display: none !important;
    }

    /* Cards activeren */
    .bib-cards {
        display: grid;
        gap: 10px;
        margin-top: 12px;
    }

    .bib-card:not([hidden]) {
        display: block;
        padding: 14px 16px;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        text-decoration: none;
        color: inherit;
        transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .bib-card,
    .bib-card:hover,
    .bib-card:active,
    .bib-card:focus,
    .bib-card * {
        text-decoration: none;
    }

    .bib-card:hover,
    .bib-card:active {
        border-color: #bfdbfe;
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
        transform: translateY(-1px);
    }

    .bib-card-title {
        font-weight: 700;
        font-size: 1.02rem;
        color: #0f172a;
        margin-bottom: 4px;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .bib-card-byline {
        font-size: 0.9rem;
        color: #334155;
        line-height: 1.4;
        margin-bottom: 2px;
        overflow-wrap: anywhere;
    }

    .bib-card-details {
        font-size: 0.82rem;
        color: #64748b;
        line-height: 1.4;
    }

    .bib-cards-empty,
    .bib-cards-no-results {
        padding: 24px;
        text-align: center;
        color: #64748b;
        background: #f8fafc;
        border: 1px dashed #cbd5e1;
        border-radius: 12px;
    }


    /* ----------------------------------------
       Mobiele zoek- en filterbalk boven de cards
       ---------------------------------------- */

    .bib-mobile-toolbar {
        display: flex;
        gap: 8px;
        margin-top: 12px;
        align-items: stretch;
    }

    .bib-search-input {
        flex: 1 1 auto;
        min-width: 0;
        padding: 10px 14px;
        font-size: 0.95rem;
        border: 1px solid #cbd5e1;
        border-radius: 10px;
        background: #ffffff;
        color: #0f172a;
        -webkit-appearance: none;
        appearance: none;
    }

    .bib-search-input:focus {
        outline: none;
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    }

    .bib-filter-button {
        position: relative;
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        border: 1px solid #cbd5e1;
        border-radius: 10px;
        background: #ffffff;
        color: #334155;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
    }

    .bib-filter-button:hover,
    .bib-filter-button:active {
        background: #f1f5f9;
        border-color: #94a3b8;
    }

    .bib-filter-button i {
        width: 20px;
        height: 20px;
    }

    .bib-filter-badge {
        position: absolute;
        top: -6px;
        right: -6px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        background: #dc2626;
        color: #ffffff;
        font-size: 11px;
        font-weight: 700;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }


    /* ----------------------------------------
       Filter overlay + bottom-sheet
       ---------------------------------------- */

    .bib-filter-overlay:not([hidden]) {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.5);
        z-index: 1100;
        animation: mobileNavFadeIn 0.2s ease;
    }

    .bib-filter-sheet {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 85vh;
        background: #ffffff;
        z-index: 1200;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.18);
        transform: translateY(100%);
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        overscroll-behavior: contain;
    }

    .bib-filter-sheet.is-open {
        transform: translateY(0);
    }

    .bib-filter-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 12px 14px 20px;
        border-bottom: 1px solid #e2e8f0;
        flex-shrink: 0;
    }

    .bib-filter-header h2 {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 700;
        color: #0f172a;
    }

    .bib-filter-close {
        width: 40px;
        height: 40px;
        border: none;
        background: transparent;
        border-radius: 8px;
        color: #334155;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
    }

    .bib-filter-close:hover,
    .bib-filter-close:active {
        background: #f1f5f9;
    }

    .bib-filter-close i {
        width: 22px;
        height: 22px;
    }

    .bib-filter-body {
        flex: 1 1 auto;
        overflow-y: auto;
        padding: 14px 20px 8px;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .bib-filter-field {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .bib-filter-label {
        font-size: 0.85rem;
        font-weight: 600;
        color: #475569;
    }

    .bib-filter-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .bib-filter-chip {
        position: relative;
        display: inline-flex;
        align-items: center;
        padding: 8px 14px;
        border: 1px solid #cbd5e1;
        border-radius: 999px;
        background: #ffffff;
        color: #334155;
        font-size: 0.9rem;
        cursor: pointer;
        min-height: 36px;
        transition: background 0.1s ease, border-color 0.1s ease, color 0.1s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .bib-filter-chip:hover {
        background: #f1f5f9;
        border-color: #94a3b8;
    }

    .bib-filter-chip input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .bib-filter-chip:has(input:checked) {
        background: #eff6ff;
        border-color: #2563eb;
        color: #1d4ed8;
        font-weight: 600;
    }

    .bib-filter-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 0;
        font-size: 0.95rem;
        color: #334155;
        cursor: pointer;
        min-height: 44px;
    }

    .bib-filter-toggle input[type="checkbox"] {
        width: 20px;
        height: 20px;
        accent-color: #2563eb;
        flex-shrink: 0;
    }

    .bib-filter-footer {
        flex-shrink: 0;
        display: flex;
        gap: 10px;
        padding: 14px 20px 20px;
        border-top: 1px solid #e2e8f0;
        background: #ffffff;
    }

    .bib-filter-footer .button {
        flex: 1 1 auto;
        justify-content: center;
        min-height: 44px;
    }


    /* ----------------------------------------
       Page-header op mobiel:
       titel en acties blijven op dezelfde regel.
       Acties zijn dankzij het overflow-menu altijd
       compact (primary + ⋮), dus past op 1 regel.
       Lange titels kunnen binnen hun eigen kolom
       wrappen zonder de acties weg te duwen.
       ---------------------------------------- */

    .page-title-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .page-title {
        flex: 1 1 auto;
        min-width: 0;
    }

    .page-title h1 {
        font-size: clamp(1.25rem, 5vw, 1.6rem);
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .page-title .page-icon {
        width: 22px;
        height: 22px;
    }

    .page-header-actions {
        flex: 0 0 auto;
        flex-wrap: nowrap;
        gap: 8px;
        justify-content: flex-end;
    }

    .page-breadcrumbs,
    .breadcrumbs {
        font-size: 0.82rem;
        line-height: 1.3;
    }

}