/* ============================================================
   BEHANDELMETHODES.CSS
   ============================================================ */

html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #f7f6fd;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    flex: 1;
}

.page-title {
    margin-top: calc(var(--navbar-height) + 2.5rem);
    text-align: center;
    margin-bottom: 8px;
}

.page-title h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    display: inline-block;
}

.page-title h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-green-btn);
    border-radius: 2px;
    margin: 8px auto 0;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding: 32px 0 48px;
}

.card-container .card {
    width: 260px;
    height: 300px;
    flex-shrink: 0;
    cursor: pointer;
}

/* Titel — altijd zichtbaar op de afbeelding */
.card-title {
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
    z-index: 5;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.card:hover .card-title {
    opacity: 0;
}

/* Overlay volledig verborgen standaard */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        rgba(206, 201, 240, 0.97) 0%,
        rgba(218, 216, 235, 0.92) 65%,
        transparent 100%
    );
    padding: 16px 20px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 4;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover .card-overlay {
    transform: translateY(0);
}

.card-overlay h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    text-align: center;
}

.card-overlay .overlay-hint {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

/* Verberg standaard h3/p uit global.css, maar NIET de card-title */
.card-container .card > h3:not(.card-title),
.card-container .card > p {
    display: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .card-container .card {
        width: 100%;
        max-width: 440px;
        height: 220px;
    }

    .card-overlay { transform: translateY(0); }
    .card-title { opacity: 0; }

    .page-title { margin-top: calc(var(--navbar-height) + 1.5rem); }
    .page-title h1 { font-size: 1.6rem; }
}