/*
Auteur: Robin van Tussenbroek
Aanmaakdatum: 29-10-2026
Omschrijving: Gedeelde vormgeving en responsive layouts voor Ontdek Culemborg.
*/

/* Centrale kleuren: alle pagina's gebruiken dezelfde basis. */
:root
{
    --paper: #f7f8fa;
    --surface: #ffffff;
    --ink: #14253b;
    --muted: #526276;
    --blue: #194da2;
    --soft: #e8f0fb;
    --line: #d5deea;
    --header: #ffffff;
}

*
{
    box-sizing: border-box;
}

html
{
    scroll-behavior: smooth;
}

body
{
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.7;
}

/* De knop wisselt een class; de donker-moduskleuren blijven in CSS. */
body.dark-mode
{
    --paper: #101c2b;
    --surface: #1a2b40;
    --ink: #eef4fc;
    --muted: #bccbde;
    --blue: #97c2ff;
    --soft: #203651;
    --line: #3a5069;
    --header: #142235;
}

.wrap
{
    width: min(1120px, 90%);
    margin-inline: auto;
}

a
{
    color: var(--blue);
    text-underline-offset: 4px;
}

a:hover
{
    text-decoration-thickness: 2px;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible
{
    outline: 3px solid #d26a17;
    outline-offset: 4px;
}

button, input, select
{
    font: inherit;
}

button, select
{
    cursor: pointer;
}

h1, h2, h3, p, figure
{
    margin-top: 0;
}

h1, h2, h3
{
    line-height: 1.16;
}

h1
{
    font-size: clamp(2.7rem, 6vw, 4.8rem);
    letter-spacing: -0.055em;
    margin-bottom: 24px;
}

h2
{
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

h3
{
    font-size: 1.25rem;
    margin-bottom: 14px;
}

p
{
    margin-bottom: 18px;
}

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

.skip-link
{
    position: absolute;
    top: -100px;
    left: 12px;
    background: var(--surface);
    padding: 12px;
    z-index: 10;
}

.skip-link:focus
{
    top: 10px;
}

.site-header
{
    background: var(--header);
    border-bottom: 1px solid var(--line);
}

.header-top, .footer-inner
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.header-top
{
    padding-block: 20px;
}

.brand
{
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark
{
    background: #194da2;
    color: white;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
}

.nav-list
{
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list a
{
    display: block;
    padding-block: 12px;
    border-bottom: 3px solid transparent;
    color: var(--muted);
    text-decoration: none;
    font-size: .93rem;
}

.nav-list a[aria-current="page"], .nav-list a:hover
{
    color: var(--blue);
    border-bottom-color: var(--blue);
}

.small-button
{
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    padding: 8px 13px;
    border-radius: 4px;
    font-size: .82rem;
}

.button
{
    display: inline-block;
    background: #194da2;
    border: 2px solid #194da2;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: .95rem;
    font-weight: bold;
    line-height: 1.5;
}

.button:hover
{
    background: #103874;
    border-color: #103874;
}

.eyebrow
{
    color: var(--blue);
    font-size: .76rem;
    font-weight: bold;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.lead
{
    color: var(--muted);
    font-size: 1.16rem;
    max-width: 720px;
}

/* Home: een brede introductie met daarnaast een portretfoto. */
.hero
{
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 65px;
    padding-block: 64px;
}

.hero h1
{
    font-size: clamp(3.8rem, 7vw, 6rem);
}

.hero h1 span
{
    color: var(--blue);
}

.hero-photo
{
    margin: 0;
    background: var(--soft);
}

.hero-photo img
{
    width: 100%;
    height: 460px;
    object-fit: cover;
    object-position: center 35%;
}

figcaption
{
    padding: 12px 16px;
    color: var(--muted);
    font-size: .78rem;
}

.intro-grid, .interactive, .map-section
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    margin-block: 35px 72px;
}

.intro-grid
{
    border-top: 1px solid var(--line);
    padding-top: 45px;
}

.section-heading
{
    margin-bottom: 28px;
}

.topic-grid, .cards-grid
{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 65px;
}

.topic
{
    padding: 28px;
    border-top: 3px solid var(--blue);
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
}

.topic:hover
{
    background: var(--soft);
}

.topic-number
{
    display: block;
    color: var(--blue);
    font-size: .8rem;
    margin-bottom: 28px;
}

.topic p
{
    color: var(--muted);
}

.interactive
{
    background: var(--soft);
    border-left: 4px solid var(--blue);
    padding: 35px;
}

label
{
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

input, select
{
    width: 100%;
    border: 1px solid var(--muted);
    background: var(--surface);
    color: var(--ink);
    padding: 12px;
    border-radius: 3px;
    min-height: 48px;
}

select
{
    margin-bottom: 14px;
}

.input-row
{
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.input-row input
{
    min-width: 0;
}

.result
{
    min-height: 3.4em;
    margin-top: 16px;
    margin-bottom: 0;
}

.result.success
{
    font-weight: bold;
}

.page-intro
{
    padding-block: 62px 35px;
    max-width: 850px;
}

.card
{
    background: var(--surface);
    padding: 30px;
    border: 1px solid var(--line);
}

.card h2
{
    font-size: 1.7rem;
}

.card h3
{
    font-size: 1.05rem;
    margin-top: 24px;
}

.notice
{
    border-top: 1px solid var(--line);
    padding-block: 30px 45px;
    max-width: 850px;
}

.notice h2
{
    font-size: 1.45rem;
}

/* Sport: brede afwisselende rijen, los van de lunchindeling. */
.sport-row
{
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    padding: 35px;
    margin-bottom: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.sport-row:nth-child(2)
{
    background: var(--soft);
}

.sport-label span
{
    display: block;
    color: var(--blue);
    margin-bottom: 15px;
}

.table-section
{
    margin-block: 55px 65px;
}

.table-scroll
{
    overflow-x: auto;
}

table
{
    border-collapse: collapse;
    width: 100%;
    background: var(--surface);
    font-size: .94rem;
}

caption
{
    text-align: left;
    color: var(--muted);
    padding-bottom: 14px;
}

th, td
{
    text-align: left;
    padding: 16px;
    border: 1px solid var(--line);
}

thead, tfoot
{
    background: var(--soft);
}

tfoot
{
    font-size: .85rem;
}

.company-list
{
    display: grid;
    gap: 22px;
    margin-bottom: 45px;
}

.company-list .card
{
    border-left: 4px solid var(--blue);
}

/* Geschiedenis: foto met daarnaast een verticale tijdlijn. */
.history-layout
{
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 65px;
    margin-bottom: 45px;
}

.history-photo
{
    margin: 0;
}

.history-photo img
{
    width: 100%;
    max-height: 740px;
    object-fit: cover;
}

.timeline
{
    border-left: 2px solid var(--line);
    padding-left: 32px;
}

.timeline article
{
    padding-bottom: 20px;
}

.year
{
    color: var(--blue);
    font-weight: bold;
    margin-bottom: 8px;
}

.timeline h2
{
    font-size: 1.5rem;
}

.visit-feature
{
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 40px;
}

.visit-feature figure
{
    margin: 0;
}

.visit-feature img
{
    width: 100%;
    height: 410px;
    object-fit: cover;
}

.visit-pair
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 60px;
}

.map-section
{
    grid-template-columns: .8fr 1.2fr;
    align-items: center;
}

iframe
{
    border: 1px solid var(--line);
    width: 100%;
    max-width: 100%;
}

.source-list
{
    max-width: 850px;
    padding-bottom: 60px;
}

.source-list li
{
    padding-block: 5px;
}

.source-list h2
{
    margin-top: 35px;
}

.site-footer
{
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding-block: 30px;
    margin-top: 30px;
    font-size: .85rem;
}

.footer-inner p
{
    margin: 0;
}

/* Op smalle schermen worden kolommen onder elkaar gezet. */
@media (max-width: 760px)
{
    .hero, .intro-grid, .interactive, .history-layout, .visit-feature, .map-section
    {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .hero
    {
        padding-block: 35px;
    }

    .hero-photo img
    {
        height: 390px;
    }

    .topic-grid, .cards-grid, .visit-pair
    {
        grid-template-columns: 1fr;
    }

    .sport-row
    {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 24px;
    }

    .header-top
    {
        flex-wrap: wrap;
        gap: 12px;
    }

    .nav-list
    {
        gap: 0 20px;
    }

    .nav-list a
    {
        padding-block: 8px;
    }

    .interactive
    {
        padding: 24px;
    }

    .footer-inner
    {
        align-items: flex-start;
        flex-direction: column;
    }

    .history-photo img
    {
        max-height: 420px;
        object-position: center 35%;
    }

    .page-intro
    {
        padding-top: 35px;
    }
}

@media (max-width: 420px)
{
    .input-row
    {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce)
{
    html
    {
        scroll-behavior: auto;
    }
}
