.foto {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: center;

    img {
        max-width: 80%;
        height: auto;
        border-radius: 8px;
    }
}

.foto-txt {
    max-width: 100%;

    h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}


.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--link);
    color: var(--bg);
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;

    &:hover {
        background-color: var(--link-hover);
        box-shadow: 0 0 12px oklch(0.45 0.13 255 / 0.6);
    }
}

.oef {
    margin-top: 3rem;

    li {
        display: flex;
        flex-direction: column;
        position: relative;
    }
}

.oef h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.overlay-link {
    position: absolute;
    inset: 0;
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
}

.oef li a:not(.overlay-link) {
    z-index: 1;
}

.oef-lijst {
    display: grid;
    gap: 2rem;
}

.oef-card {
    position: relative;
    background-color: var(--bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px oklch(0 0 0 / 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    img {
        width: 100%;
        object-fit: cover;
        background-color: var(--bg);
    }

    h3 {
        margin: 0.5rem 1rem 0.25rem;
        font-size: 1.25rem;
    }

    p {
        margin: 0 1rem 1rem;
        color: oklch(0.373 0.005 236.64);
    }

    a {
        display: inline-block;
        margin: 0 1rem 1rem;
        text-decoration: none;
        font-size: 0.95rem;
        color: var(--txt);

        &:hover {
            text-decoration: underline;
        }
    }

    &:hover {
        box-shadow: 0 6px 16px oklch(0 0 0 / 0.1);
        transform: translateY(-2px);
    }
}


section ul li a {
    color: var(--link);
    text-decoration: none;
    margin-right: 1rem;
}

section ul li a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
}

.soc {
    margin-top: 3rem;
    text-align: center;

    h2 {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }
}

.soc-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    align-items: stretch;
    padding: 0;
}

.soc-card {
    background-color: var(--bg);
    border-radius: 10px;
    box-shadow: 0 2px 8px oklch(0 0 0 / 0.06);
    transition: transform 0.2s ease,
    box-shadow 0.2s ease;
}

.soc-card:hover {
    box-shadow: 0 6px 16px oklch(0 0 0 / 0.1);
}

.soc-link {
    display: grid;
    place-items: center;
    gap: 0.5rem;
    padding: 1.25rem;
    text-decoration: none;
    color: var(--txt);
}

.soc-link:focus-visible {
    outline: 3px solid var(--link-hover);
    outline-offset: 3px;
}

.soc-icon {
    width: 3rem;
    height: 3rem;
    color: var(--link);
}

.soc-label {
    font-weight: 600;
}

.lijn {
    height: 3px;
    width: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--link), var(--link-hover));
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}


@media (min-width: 48em) {
    .foto {
        display: grid;
        grid-template-columns: 1fr 1fr;      /* inspiratie van https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/grid-template-columns maar code zelf geschreven */
        grid-template-rows: auto auto;
        gap: 2rem;
        align-items: center;
        text-align: left;
    }

    .foto-txt {
        grid-column: 1;
        grid-row: 1;
    }

    .foto img {
        grid-column: 2;
        grid-row: 1 / 3;
        max-width: 100%;
    }

    .foto .btn {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
    }

    .foto-txt h1 {
        margin-bottom: 4rem;
    }

    .oef-lijst {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2rem;
    }

    .oef-card img {
        height: 16rem;
        object-fit: cover;
    }

    .oef h2 {
        text-align: left;
    }

    h2 {
        text-align: left;
    }

    .soc h2 {
        text-align: center;
    }

    .soc-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        max-width: 30rem;
        margin: 0 auto;
    }

    .oef-card p {
        color: var(--txt);
    }
}
