/* ==========================*/
/* Carousel Component CSS    */
/* Update: 2026-02-19 18:27  */
/* ==========================*/

/* ========================================== */
/* 1. CONTAINER & LAYOUT                      */
/* ========================================== */

.action-container {
    max-width: 56.6em;
    margin: 2em auto 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: transparent;
    display: flex;
    flex-direction: column;
    padding: 10px;
    position: relative;
    z-index: 2;
}

.action-block {
    width: 90%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Zwarte underlay voorkomt flits bij overgang tussen slides */
.action-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: #000;
    border-radius: 0;
    overflow: hidden;
    border: 0;
    border-left: 1px solid rgba(60, 188, 179, 0.042);
    border-right: 1px solid rgba(60, 188, 179, 0.042);
}

/* ========================================== */
/* 2. TABS NAVIGATION                         */
/* ========================================== */

.action-tabs {
    display: flex;
    width: 100%;
}

/* Override alle product-card stijlen wanneer in .action-tabs context */
.action-tabs .product-card {
    flex: 1;
    min-height: unset;
    min-width: 0;
    max-width: none;
    width: auto;
    margin: 0;
    padding: 9px 16px 13px 16px;
    background: rgba(30, 39, 53, 0.98);
    border-radius: 0;
    border-top: none;
    box-shadow: none;
    cursor: pointer;
    text-align: center;
    opacity: 0.65;
    transition: opacity 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Verberg icon en paragraaf in de tabs */
.action-tabs .product-card .product-icon,
.action-tabs .product-card p {
    display: none;
}

.action-tabs .product-card h3 {
    font-size: .95em;
    font-weight: 600;
    margin: 0;    
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.3;
}

/* Actieve tab: volle helderheid + teal streep onderin (standaard voor rooster) */
.action-tabs .product-card.active {
    opacity: 1;
    background: rgba(35, 45, 61, 0.98);
    box-shadow: inset 0 -3px 0 rgba(60, 188, 180, 0.65);
    cursor: default;
}

.action-tabs .product-card.active::before {
    display: none;
}

/* Hover op inactieve tab - duidelijker contrast voor betere zichtbaarheid */
.action-tabs .product-card:not(.active):hover {
    opacity: 0.90;
    background: rgba(40, 50, 68, 0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.action-tabs .product-card:not(.active):active {
    opacity: 0.95;
    transform: none;
}

/* Scheidingslijn tussen de tabs */
.action-tabs .product-card:first-child,
.action-tabs .product-card:nth-child(2) {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

/* ========================================== */
/* 3. LABEL                                  */
/* ========================================== */

.action-label {
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    /* Gebruik labelFadeNarrowcasting voor rooster mode om flitsen te voorkomen */
    /* (zelfde als narrowcasting en wachtwoordreset - geen opacity 0 momenten tijdens de loop) */
    animation: labelFadeNarrowcasting var(--action-cycle-duration) ease-in-out infinite;
    background: linear-gradient(180deg,
            color-mix(in srgb, #3CBCB4 6%, #2a3441) 0%,
            color-mix(in srgb, #3CBCB4 4%, #232d3d) 100%);
    padding: 8px 28px;
    border-radius: 1px 3px 0 0;
    box-shadow: inset 0 1px 0 rgba(60, 188, 180, 0.05);
    border-bottom: 1px solid rgba(60, 188, 180, 0.13);
    width: calc(100%);
    max-width: none;
    box-sizing: border-box;
    position: relative;
    margin-bottom: 0;
}

.label-main::after {
    content: '';
    /* Inhoud beheerd door labelTextPersoonlijkRooster animatie */
    animation: labelTextPersoonlijkRooster var(--action-cycle-duration) ease-in-out infinite;
    font-size: .95em;
    font-weight: 600;
    color: #fff;
}

/* ========================================== */
/* 4. IMAGES & VISIBILITY                    */
/* ========================================== */

.action-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.8s ease-in-out;
    transform: none;
    border-radius: 0;
    box-shadow: none;
}

/* Standaard: rooster afbeeldingen zichtbaar */
.action-img.mode-rooster {
    visibility: visible;
}

/* Mode-based visibility: standaard alleen rooster zichtbaar */
.action-img.mode-narrowcasting {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.action-img.mode-wachtwoordreset {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* Rooster mode: toon alleen rooster afbeeldingen */
.action-container[data-mode="rooster"] .action-img.mode-rooster {
    visibility: visible;
    pointer-events: auto;
}

.action-container[data-mode="rooster"] .action-img.mode-narrowcasting {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    animation: none !important;
}

/* Narrowcasting mode: toon alleen narrowcasting afbeeldingen */
.action-container[data-mode="narrowcasting"] .action-img.mode-rooster {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    animation: none !important;
}

.action-container[data-mode="narrowcasting"] .action-img.mode-narrowcasting {
    visibility: visible;
    pointer-events: auto;
}

.action-container[data-mode="wachtwoordreset"] .action-img.mode-rooster,
.action-container[data-mode="wachtwoordreset"] .action-img.mode-narrowcasting {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    animation: none !important;
}

/* Wachtwoordreset mode: toon alleen wachtwoordreset afbeeldingen */
.action-container[data-mode="wachtwoordreset"] .action-img.mode-wachtwoordreset {
    visibility: visible;
    pointer-events: auto;
}

/* Wachtwoordreset: alle slides gelijke z-index, linear fades zodat timing exact klopt */
.action-container[data-mode="wachtwoordreset"] .action-img-1.mode-wachtwoordreset {
    z-index: 1;
    animation: fadeWachtwoordreset1 var(--wachtwoordreset-cycle-duration) linear infinite;
}

.action-container[data-mode="wachtwoordreset"] .action-img-2.mode-wachtwoordreset {
    z-index: 1;
    animation: fadeWachtwoordreset2 var(--wachtwoordreset-cycle-duration) linear infinite;
}

.action-container[data-mode="wachtwoordreset"] .action-img-3.mode-wachtwoordreset {
    z-index: 1;
    animation: fadeWachtwoordreset3 var(--wachtwoordreset-cycle-duration) linear infinite;
}

.action-container[data-mode="wachtwoordreset"] .action-img-4.mode-wachtwoordreset {
    z-index: 1;
    animation: fadeWachtwoordreset4 var(--wachtwoordreset-cycle-duration) linear infinite;
}

/* Animatie logica - duur via --action-cycle-duration in :root */
/* Alleen animeren wanneer rooster mode actief is */
.action-container[data-mode="rooster"] .action-img-1.mode-rooster {
    z-index: 3;
    animation: fadeImg1 var(--action-cycle-duration) ease-in-out infinite;
}

.action-container[data-mode="rooster"] .action-img-2.mode-rooster {
    z-index: 2;
    animation: fadeImg2 var(--action-cycle-duration) ease-in-out infinite;
}

.action-container[data-mode="rooster"] .action-img-3.mode-rooster {
    z-index: 1;
}

/* Narrowcasting: alle slides gelijke z-index, linear fades zodat timing exact klopt */
.action-container[data-mode="narrowcasting"] .action-img-1.mode-narrowcasting {
    z-index: 1;
    animation: fadeNarrowcasting1 var(--narrowcasting-cycle-duration) linear infinite;
}

.action-container[data-mode="narrowcasting"] .action-img-2.mode-narrowcasting {
    z-index: 1;
    animation: fadeNarrowcasting2 var(--narrowcasting-cycle-duration) linear infinite;
}

.action-container[data-mode="narrowcasting"] .action-img-3.mode-narrowcasting {
    z-index: 1;
    animation: fadeNarrowcasting3 var(--narrowcasting-cycle-duration) linear infinite;
}

.action-container[data-mode="narrowcasting"] .action-img-4.mode-narrowcasting {
    z-index: 1;
    animation: fadeNarrowcasting4 var(--narrowcasting-cycle-duration) linear infinite;
}

/* ========================================== */
/* 5. CONSTRUCTION OVERLAY                    */
/* ========================================== */

.construction-overlay {
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    position: absolute;
    top: 12px;
    right: 60px;
    z-index: 6;
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.action-container[data-mode="wachtwoordreset"] .construction-overlay {
    display: flex;
}

.construction-overlay-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
    opacity: 0.9;
}

.construction-overlay-icon svg {
    display: block;
    width: 14px;
    height: 14px;
    transform: translateY(1px);
}

/* ========================================== */
/* 6. SCAN INDICATOR                         */
/* ========================================== */

.scan-indicator {
    position: absolute;
    bottom: 20%;
    left: 57.5%;
    transform: translate(-50%, 50%);
    width: 83px;
    height: 83px;
    border: 3.9px solid #fff;
    box-shadow: 0 0 34px 14px rgba(60, 188, 180, 0.7), inset 0 0 19px rgba(60, 188, 180, 0.5);
    background-color: rgba(60, 188, 180, 0.2);
    border-radius: 50%;
    z-index: 4;
    opacity: 0;
    pointer-events: none;
    animation: scanPing var(--action-cycle-duration) ease-in-out infinite;
}

.action-container[data-mode="narrowcasting"] .scan-indicator,
.action-container[data-mode="wachtwoordreset"] .scan-indicator {
    display: none;
}

/* ========================================== */
/* 7. CAROUSEL DOTS                           */
/* ========================================== */

.carousel-dots {
    position: absolute;
    bottom: 18px;
    right: 28px;
    display: flex;
    gap: 5px;
    z-index: 5;
    pointer-events: none;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transition: background 0.3s, transform 0.3s;
}

/* Dot visibility per mode */
.carousel-dot.dot-4 {
    display: none;
}

.action-container[data-mode="narrowcasting"] .carousel-dot.dot-4,
.action-container[data-mode="wachtwoordreset"] .carousel-dot.dot-4 {
    display: flex;
}

/* Wachtwoordreset dot animaties */
.action-container[data-mode="wachtwoordreset"] .dot-1 {
    animation: dotWachtwoordreset1 var(--wachtwoordreset-cycle-duration) ease-in-out infinite;
}

.action-container[data-mode="wachtwoordreset"] .dot-2 {
    animation: dotWachtwoordreset2 var(--wachtwoordreset-cycle-duration) ease-in-out infinite;
}

.action-container[data-mode="wachtwoordreset"] .dot-3 {
    animation: dotWachtwoordreset3 var(--wachtwoordreset-cycle-duration) ease-in-out infinite;
}

.action-container[data-mode="wachtwoordreset"] .dot-4 {
    animation: dotWachtwoordreset4 var(--wachtwoordreset-cycle-duration) ease-in-out infinite;
}

/* Dot animaties */
.dot-1 {
    animation: dot1Active var(--action-cycle-duration) ease-in-out infinite;
}

.dot-2 {
    animation: dot2Active var(--action-cycle-duration) ease-in-out infinite;
}

.dot-3 {
    animation: dot3Active var(--action-cycle-duration) ease-in-out infinite;
}

.action-container[data-mode="narrowcasting"] .dot-1 {
    animation: dotNarrowcasting1 var(--narrowcasting-cycle-duration) ease-in-out infinite;
}

.action-container[data-mode="narrowcasting"] .dot-2 {
    animation: dotNarrowcasting2 var(--narrowcasting-cycle-duration) ease-in-out infinite;
}

.action-container[data-mode="narrowcasting"] .dot-3 {
    animation: dotNarrowcasting3 var(--narrowcasting-cycle-duration) ease-in-out infinite;
}

.dot-4 {
    animation: dotNarrowcasting4 var(--narrowcasting-cycle-duration) ease-in-out infinite;
}

/* ========================================== */
/* 8. MODE-SPECIFIC STYLES                    */
/* ========================================== */

/* Narrowcasting mode */
.action-container[data-mode="narrowcasting"] .action-tabs .product-card.active[data-mode="narrowcasting"] {
    box-shadow: inset 0 -3px 0 rgba(255, 87, 34, 0.55);
}

.action-container[data-mode="narrowcasting"] .action-label {
    animation: labelFadeNarrowcasting var(--narrowcasting-cycle-duration) ease-in-out infinite;
    background: linear-gradient(180deg,
            color-mix(in srgb, #FF5722 4%, #2a3441) 0%,
            color-mix(in srgb, #FF5722 3%, #232d3d) 100%);
    border-bottom: 1px solid rgba(255, 87, 34, 0.12);
}

.action-container[data-mode="narrowcasting"] .label-main::after {
    animation: labelTextNarrowcasting var(--narrowcasting-cycle-duration) ease-in-out infinite;
}

/* Wachtwoordreset mode */
.action-container[data-mode="wachtwoordreset"] .action-label {
    animation: labelFadeNarrowcasting var(--wachtwoordreset-cycle-duration) ease-in-out infinite;
    background: linear-gradient(180deg,
            color-mix(in srgb, #FF9800 4%, #2a3441) 0%,
            color-mix(in srgb, #FF9800 3%, #232d3d) 100%);
    border-bottom: 1px solid rgba(255, 152, 0, 0.12);
}

.action-container[data-mode="wachtwoordreset"] .label-main::after {
    animation: labelTextWachtwoordreset var(--wachtwoordreset-cycle-duration) ease-in-out infinite;
}

/* ========================================== */
/* 9. KEYFRAME ANIMATIONS                     */
/* ========================================== */

/* Image fade animations - Rooster mode */
@keyframes fadeImg1 {
    0%, 25% { opacity: 1; }
    26%, 100% { opacity: 0; }
}

@keyframes fadeImg2 {
    0%, 25% { opacity: 0; }
    26%, 73% { opacity: 1; }
    75%, 100% { opacity: 0; }
}

/* Image fade animations - Narrowcasting mode */
@keyframes fadeNarrowcasting1 {
    0%, 22% { opacity: 1; }
    25%, 100% { opacity: 0; }
}

@keyframes fadeNarrowcasting2 {
    0%, 22% { opacity: 0; }
    25%, 47% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes fadeNarrowcasting3 {
    0%, 47% { opacity: 0; }
    50%, 72% { opacity: 1; }
    75%, 100% { opacity: 0; }
}

@keyframes fadeNarrowcasting4 {
    0%, 72% { opacity: 0; }
    75%, 97% { opacity: 1; }
    100% { opacity: 0; }
}

/* Image fade animations - Wachtwoordreset mode (4 stappen, slide 3 langer) */
@keyframes fadeWachtwoordreset1 {
    0%, 19% { opacity: 1; }
    22%, 100% { opacity: 0; }
}

@keyframes fadeWachtwoordreset2 {
    0%, 19% { opacity: 0; }
    22%, 44% { opacity: 1; }
    47%, 100% { opacity: 0; }
}

@keyframes fadeWachtwoordreset3 {
    0%, 44% { opacity: 0; }
    47%, 75% { opacity: 1; }
    78%, 100% { opacity: 0; }
}

@keyframes fadeWachtwoordreset4 {
    0%, 75% { opacity: 0; }
    78%, 98% { opacity: 1; }
    100% { opacity: 0; }
}

/* Scan indicator animation */
@keyframes scanPing {
    0%, 5% { opacity: 0; transform: translate(-50%, 50%) scale(0.6); }
    14%, 16% { opacity: 1; transform: translate(-50%, 50%) scale(1); }
    19%, 100% { opacity: 0; transform: translate(-50%, 50%) scale(1.3); }
}

/* Label text animations - Persoonlijk rooster */
@keyframes labelTextPersoonlijkRooster {
    0%, 24% { content: 'Stap 1: Scan je schoolpas of badge'; }
    26%, 73% { content: 'Stap 2: Het rooster verschijnt direct in beeld'; }
    75%, 100% { content: 'Stap 3: Gezien? Snel door naar de volgende les'; }
}

@keyframes labelTextNarrowcasting {
    0%, 22% { content: 'Digitale klok met roosterkoppeling'; }
    25%, 47% { content: 'Beheeromgeving met schermprofielen'; }
    50%, 72% { content: 'Roosterwijzigingen direct zichtbaar'; }
    75%, 100% { content: 'Actueel weeroverzicht'; }
}

@keyframes labelTextWachtwoordreset {
    0%, 19% { content: 'Reset wachtwoord of MFA'; }
    22%, 44% { content: 'Identificatie'; }
    47%, 75% { content: 'Verificatie bijvoorbeeld via medewerker badge'; }
    78%, 100% { content: 'Beheer: Wachtwoord Reset instellingen'; }
}

/* Label fade animations */
@keyframes labelFade {
    0%, 2%, 24%, 26%, 73%, 75%, 98%, 100% { opacity: 0; }
    3%, 22%, 27%, 71%, 77%, 96% { opacity: 1; }
}

@keyframes labelFadeNarrowcasting {
    0% { opacity: 0; }
    3%, 100% { opacity: 1; }
}

/* Dot animations - Rooster mode */
@keyframes dot1Active {
    0%, 25% { background: rgba(255, 255, 255, 0.35); transform: scale(1.3); }
    26%, 100% { background: rgba(255, 255, 255, 0.2); transform: scale(1); }
}

@keyframes dot2Active {
    0%, 25% { background: rgba(255, 255, 255, 0.2); transform: scale(1); }
    26%, 72% { background: rgba(255, 255, 255, 0.55); transform: scale(1.3); }
    73%, 100% { background: rgba(255, 255, 255, 0.2); transform: scale(1); }
}

@keyframes dot3Active {
    0%, 72% { background: rgba(255, 255, 255, 0.2); transform: scale(1); }
    75%, 96% { background: rgba(255, 255, 255, 0.55); transform: scale(1.3); }
    97%, 100% { background: rgba(255, 255, 255, 0.2); transform: scale(1); }
}

/* Dot animations - Narrowcasting mode */
@keyframes dotNarrowcasting1 {
    0%, 22% { background: rgba(255, 255, 255, 0.55); transform: scale(1.3); }
    25%, 97% { background: rgba(255, 255, 255, 0.2); transform: scale(1); }
    100% { background: rgba(255, 255, 255, 0.55); transform: scale(1.3); }
}

@keyframes dotNarrowcasting2 {
    0%, 22% { background: rgba(255, 255, 255, 0.2); transform: scale(1); }
    25%, 47% { background: rgba(255, 255, 255, 0.55); transform: scale(1.3); }
    50%, 100% { background: rgba(255, 255, 255, 0.2); transform: scale(1); }
}

@keyframes dotNarrowcasting3 {
    0%, 47% { background: rgba(255, 255, 255, 0.2); transform: scale(1); }
    50%, 72% { background: rgba(255, 255, 255, 0.55); transform: scale(1.3); }
    75%, 100% { background: rgba(255, 255, 255, 0.2); transform: scale(1); }
}

@keyframes dotNarrowcasting4 {
    0%, 72% { background: rgba(255, 255, 255, 0.2); transform: scale(1); }
    75%, 97% { background: rgba(255, 255, 255, 0.55); transform: scale(1.3); }
    100% { background: rgba(255, 255, 255, 0.2); transform: scale(1); }
}

/* Dot animations - Wachtwoordreset mode (4 stappen, slide 3 langer) */
@keyframes dotWachtwoordreset1 {
    0%, 19% { background: rgba(255, 255, 255, 0.55); transform: scale(1.3); }
    22%, 98% { background: rgba(255, 255, 255, 0.2); transform: scale(1); }
    100% { background: rgba(255, 255, 255, 0.55); transform: scale(1.3); }
}

@keyframes dotWachtwoordreset2 {
    0%, 19% { background: rgba(255, 255, 255, 0.2); transform: scale(1); }
    22%, 44% { background: rgba(255, 255, 255, 0.55); transform: scale(1.3); }
    47%, 100% { background: rgba(255, 255, 255, 0.2); transform: scale(1); }
}

@keyframes dotWachtwoordreset3 {
    0%, 44% { background: rgba(255, 255, 255, 0.2); transform: scale(1); }
    47%, 75% { background: rgba(255, 255, 255, 0.55); transform: scale(1.3); }
    78%, 100% { background: rgba(255, 255, 255, 0.2); transform: scale(1); }
}

@keyframes dotWachtwoordreset4 {
    0%, 75% { background: rgba(255, 255, 255, 0.2); transform: scale(1); }
    78%, 98% { background: rgba(255, 255, 255, 0.55); transform: scale(1.3); }
    100% { background: rgba(255, 255, 255, 0.2); transform: scale(1); }
}

/* ========================================== */
/* 10. ANIMATION CONTROL                      */
/* ========================================== */

/* Pauzeer-functionaliteit voor Intersection Observer */
.action-container.animation-paused .action-label,
.action-container.animation-paused .label-main::after,
.action-container.animation-paused .action-img-1,
.action-container.animation-paused .action-img-2,
.action-container.animation-paused .action-img-3,
.action-container.animation-paused .action-img-4,
.action-container.animation-paused .scan-indicator,
.action-container.animation-paused .carousel-dot {
    animation-play-state: paused !important;
}

/* Herstart-functionaliteit: animaties resetten naar 0% zonder innerHTML-reset */
.action-container.animation-restart .action-label,
.action-container.animation-restart .label-main::after,
.action-container.animation-restart .action-img-1,
.action-container.animation-restart .action-img-2,
.action-container.animation-restart .action-img-3,
.action-container.animation-restart .action-img-4,
.action-container.animation-restart .scan-indicator,
.action-container.animation-restart .carousel-dot {
    animation: none !important;
}

/* ========================================== */
/* 11. MEDIA QUERIES                          */
/* ========================================== */

@media (max-width: 768px) {
    .action-container {
        padding: 0;
        margin: 2em auto 0 auto;
    }

    .action-label {
        padding: 8px 20px;
        width: calc(100% + 1px);
        max-width: none;
        min-width: unset;
        margin: 0 0 0 -1px;
        box-sizing: border-box;
    }

    .label-main::after {
        font-size: 0.86em;
        white-space: nowrap;
        display: block;
        animation-name: labelTextPersoonlijkRooster;
        color: rgba(255, 255, 255, 0.9);
    }

    /* Rondje in proportie bij kleinere afbeelding */
    .scan-indicator {
        width: 47px;
        height: 47px;
        border-width: 2.45px;
        box-shadow: 0 0 19px 7.5px rgba(60, 188, 180, 0.6), inset 0 0 11px rgba(60, 188, 180, 0.4);
    }

    .carousel-dots {
        bottom: 8px;
        right: 12px;
    }

    /* Mobiel: carousel-dots iets kleiner, in verhouding met het blok */
    .carousel-dot {
        width: 5px;
        height: 5px;
    }

    /* Mobiel: "In ontwikkeling" overlay en icoon in verhouding */
    .construction-overlay {
        top: 8px;
        right: 44px;
        padding: 4px 7px;
        gap: 4px;
        font-size: 0.65rem;
        border-radius: 3px;
    }
    .construction-overlay-icon svg {
        width: 10px;
        height: 10px;
    }

    /* Mobiel: tab-boxjes (Persoonlijk rooster, Narrowcasting) in verhouding */
    .action-tabs .product-card {
        padding: 6px 10px 8px 10px;
    }
    .action-tabs .product-card h3 {
        font-size: 0.82em;
    }

    /* ===== MOBILE: VERBERG "WACHTWOORD RESET" TAB ===== */
    /* Op mobiele apparaten (telefoons) wordt de "Wachtwoord reset" tab verborgen */
    /* omdat deze minder mooi staat op kleine schermen. Alleen "Persoonlijk rooster" */
    /* en "Narrowcasting" tabs blijven zichtbaar. */
    .action-tabs .product-card[data-mode="wachtwoordreset"] {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .action-block {
        width: 100%;
    }
}

/* ========================================== */
/* GALERIJ-LINK (op carousel, wit/transparant) */
/* ========================================== */
.galerij-link {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.55);
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
}
.galerij-link:hover,
.galerij-link:focus-visible {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.galerij-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}
.galerij-link-icon {
    display: block;
    line-height: 0;
}
.galerij-link-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* ========================================== */
/* GALERIJ-PAGINA (grid + lightbox)           */
/* ========================================== */
.galerij-page .galerij-section {
    padding-top: 5rem;
    padding-bottom: 3rem;
}
.galerij-page .galerij-section .container {
    padding-left: 1rem;
    padding-right: 1rem;
}
.galerij-header {
    margin-bottom: 1.5rem;
    text-align: center;
}
.galerij-title {
    margin-bottom: 0.5rem;
    color: var(--text-color, #e0e0e0);
}
.galerij-intro {

    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
}
.galerij-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    max-width: 56.6em;
    margin: 0 auto;
}
.galerij-item {
    display: block;
    border-radius: var(--border-radius, 6px);
    overflow: hidden;
    background: var(--card-bg-color, #232d3d);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.galerij-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.galerij-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    vertical-align: middle;
}

/* Galerij: mobiel – intro verbergen, foto's niet aanklikbaar (groot genoeg) */
@media (max-width: 768px) {
    .galerij-page .galerij-intro {
        display: none;
    }
    .galerij-page .galerij-item {
        pointer-events: none;
        cursor: default;
    }
    .galerij-page .galerij-item:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    .galerij-page .galerij-section .container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}
@media (max-width: 480px) {
    .galerij-page .galerij-section .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Terug-link: uitgelijnd met galerij-inhoud, duidelijke positie en hit-oppervlak */
.galerij-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: var(--secondary-color, #3CBCB4);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0.25rem auto 1.25rem auto;
    padding: 0.5rem 0.25rem 0.5rem 0;
    max-width: 56.6em;
    width: 100%;
    box-sizing: border-box;
    transition: color 0.2s ease;
}
.galerij-back:hover,
.galerij-back:focus-visible {
    color: var(--primary-color, #FF5722);
}
.galerij-back-arrow {
    display: inline-flex;
    line-height: 0;
}
.galerij-back-arrow svg {
    width: 1.1em;
    height: 1.1em;
    vertical-align: middle;
}

/* Verberg lege nav op galerijpagina */
body:has(.galerij-page) header nav {
    display: none;
}

/* Gordijn: bijna volledig zwart met beetje doorzichtigheid achter de lightbox (zoals gebruikelijk bij lightbox) */
.galerij-lightbox-curtain {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.94);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
body.galerij-lightbox-open .galerij-lightbox-curtain,
body:has(.galerij-lightbox:target) .galerij-lightbox-curtain {
    opacity: 1;
    pointer-events: auto;
}

/* Lightbox (CSS :target) – soepele overgang, geen flits */
.galerij-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.galerij-lightbox:target {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.galerij-lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.galerij-lightbox-inner img {
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.galerij-lightbox:target .galerij-lightbox-inner img {
    opacity: 1;
}
.galerij-lightbox-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    text-decoration: none;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.5);
    transition: background 0.2s ease, color 0.2s ease;
}
.galerij-lightbox-close:hover,
.galerij-lightbox-close:focus-visible {
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
}
.galerij-lightbox-prev,
.galerij-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.galerij-lightbox-prev:hover,
.galerij-lightbox-prev:focus-visible,
.galerij-lightbox-next:hover,
.galerij-lightbox-next:focus-visible {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}
.galerij-lightbox-prev {
    left: 0.75rem;
}
.galerij-lightbox-next {
    right: 0.75rem;
}
.galerij-lightbox-prev svg,
.galerij-lightbox-next svg {
    width: 26px;
    height: 26px;
    display: block;
}
.galerij-lightbox-caption {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin: 0;
    text-align: center;
    transition: opacity 0.2s ease;
}
.galerij-lightbox:target .galerij-lightbox-caption {
    opacity: 1;
}
