/* Constanter - stijl.css */

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Variabelen */
:root {
    --achtergrond:     #F5F1EB;
    --achtergrond-alt: #EAE5DC;
    --tekst:           #2C3340;
    --accent:          #6B5A3E;   /* contrast vs achtergrond: 5.9:1, WCAG AA */
    --accent-goud:     #C4A97D;   /* lichtere goud voor tekst op donkere foto */
    --tekst-zwak:      #7A6A4F;   /* gedempte tekst voor bronvermeldingen */
    --lijn:            rgba(107, 90, 62, 0.18);
    --lijn-sterk:      rgba(107, 90, 62, 0.35);
    --inhoud:          680px;
    --breed:           960px;
    --nav-hoogte:      72px;
}

/* Basis */
html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--achtergrond);
    color: var(--tekst);
    font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    font-weight: 300;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

/* Koppenstructuur */
h1 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 2.1rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    text-wrap: balance;
}

h3 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 2.75rem;
    margin-bottom: 0.75rem;
    text-wrap: balance;
}

p {
    margin-bottom: 1.25rem;
}

p:last-child {
    margin-bottom: 0;
}

/* Links */
a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

a:hover {
    color: var(--tekst);
    text-decoration-color: var(--tekst);
}

/* Skip-link voor toetsenbordgebruikers */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 200;
    background: var(--accent);
    color: #fff;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    color: #fff;
}

/* =====================
   Navigatie - fixed, transparant over hero
   ===================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 2rem;
    height: var(--nav-hoogte);
    display: flex;
    align-items: center;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease;
}

/* Achtergrond verschijnt zodra hero voorbij is */
.site-header.heeft-achtergrond {
    background: var(--achtergrond);
    border-bottom-color: var(--accent);
}

.nav {
    max-width: var(--breed);
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

/* Tekst in nav: wit over hero, donker daarna */
.nav-naam {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    transition: color 0.3s;
}

.site-header.heeft-achtergrond .nav-naam {
    color: var(--tekst);
}

.nav-naam:hover {
    color: var(--accent-goud);
    text-decoration: none;
}

.site-header.heeft-achtergrond .nav-naam:hover {
    color: var(--accent);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.nav-links a {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.site-header.heeft-achtergrond .nav-links a {
    color: var(--tekst);
    text-transform: none;
    letter-spacing: 0.03em;
    font-size: 0.875rem;
}

.nav-links a:hover,
.nav-links a.actief {
    color: var(--accent-goud);
    border-bottom-color: var(--accent-goud);
}

.site-header.heeft-achtergrond .nav-links a:hover,
.site-header.heeft-achtergrond .nav-links a.actief {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Hamburgerknop: verborgen op breed scherm */
.nav-knop {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-knop-balk {
    display: block;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.92);
    transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.3s;
}

.site-header.heeft-achtergrond .nav-knop-balk,
.site-header.menu-open .nav-knop-balk {
    background-color: var(--tekst);
}

.site-header.menu-open .nav-knop-balk:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .nav-knop-balk:nth-child(2) {
    opacity: 0;
}

.site-header.menu-open .nav-knop-balk:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobiele navigatie */
@media (max-width: 760px) {
    .nav-knop {
        display: flex;
    }

    .site-header.menu-open {
        background: var(--achtergrond);
        border-bottom-color: var(--accent);
    }

    .site-header.menu-open .nav-naam {
        color: var(--tekst);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-hoogte);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--achtergrond);
        border-bottom: 1px solid var(--accent);
        padding: 0.5rem 0 1rem;
    }

    .site-header.menu-open .nav-links {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a,
    .site-header.heeft-achtergrond .nav-links a {
        display: block;
        padding: 0.7rem 2rem;
        color: var(--tekst);
        text-transform: none;
        letter-spacing: 0.03em;
        font-size: 1rem;
        border-bottom: none;
    }

    .nav-links a:hover,
    .nav-links a.actief,
    .site-header.heeft-achtergrond .nav-links a:hover,
    .site-header.heeft-achtergrond .nav-links a.actief {
        color: var(--accent);
        border-bottom: none;
    }
}

/* =====================
   Secties algemeen
   ===================== */

.sectie {
    scroll-margin-top: var(--nav-hoogte);
    padding: 5.5rem 2rem;
}

/* Wisselende achtergrond per sectie */
.sectie.alt {
    background-color: var(--achtergrond-alt);
}

.sectie-inhoud {
    max-width: var(--inhoud);
    margin: 0 auto;
}

.sectie-breed {
    max-width: var(--breed);
    margin: 0 auto;
}

.sectie-label {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.6rem;
    display: block;
}

/* =====================
   Welkom / hero
   ===================== */

#welkom {
    padding: 0;
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 620px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-foto {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
    display: block;
}

/* Verloop: donker bovenaan (achter nav) en onderin (achter tekst) */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.60) 0%, rgba(0,0,0,0.10) 32%),
        linear-gradient(to top,    rgba(0,0,0,0.68) 0%, rgba(0,0,0,0.30) 38%, transparent 65%);
    z-index: 1;
    pointer-events: none;
}

/* Hero-inhoud: gecentreerd onderin het scherm */
.hero-inhoud {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 2rem 5rem;
    color: #fff;
    text-align: center;
}

.hero-supertitel {
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.90);
    margin-bottom: 0.75rem;
    display: block;
    text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}

.hero-naam {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: clamp(4rem, 10vw, 7.5rem);
    font-weight: 600;
    line-height: 0.95;
    color: #fff;
    margin: 0 0 1.5rem;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.hero-ondertitel {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    font-weight: 300;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 auto 2.25rem;
    max-width: 580px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

/* Kerngegevens */
.hero-data {
    display: flex;
    gap: 0.5rem 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.25rem;
}

.hero-data-item {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.hero-data-item strong {
    color: var(--accent-goud);
    font-weight: 400;
}

/* Scroll-hint */
.hero-scroll {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    cursor: pointer;
    display: block;
}

/* Intro onder de hero */
.intro {
    max-width: var(--inhoud);
    margin: 0 auto;
    padding: 4rem 2rem 5rem;
}

.intro p {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

/* =====================
   Foto's in secties
   ===================== */

figure {
    margin: 2.25rem 0;
}

.sectie-foto {
    width: auto;
    max-width: 100%;
    max-height: 520px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

figcaption {
    font-size: 0.8rem;
    color: var(--accent);
    font-style: italic;
    margin-top: 0.6rem;
    line-height: 1.5;
    text-align: center;
}

/* =====================
   Technische gegevens
   ===================== */

.tech-specs {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0;
    border-top: 1px solid var(--lijn-sterk);
    margin-top: 0.5rem;
}

.tech-specs dt {
    font-size: 0.875rem;
    color: var(--accent);
    padding: 0.55rem 1.5rem 0.55rem 0;
    border-bottom: 1px solid var(--lijn);
    font-weight: 400;
}

.tech-specs dd {
    font-size: 0.875rem;
    color: var(--tekst);
    padding: 0.55rem 0;
    margin: 0;
    text-align: right;
    border-bottom: 1px solid var(--lijn);
}

/* Gedicht / citaat */
.gedicht {
    margin: 1.75rem 0 1.75rem 1.5rem;
    padding-left: 1.25rem;
    border-left: 2px solid var(--accent);
    font-style: italic;
}

.gedicht p {
    margin-bottom: 0.75rem;
}

.gedicht footer {
    font-size: 0.85rem;
    font-style: normal;
    color: var(--accent);
}

/* Aanvulling van internet, nog te controleren door de eigenaar */
.web-aanvulling {
    margin: 1.5rem 0;
    padding: 0.9rem 1.1rem;
    border: 1px dashed var(--accent);
    background-color: rgba(196, 169, 125, 0.10);
}

.web-aanvulling .web-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.web-aanvulling p {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.web-aanvulling p:last-child {
    margin-bottom: 0;
}

/* Bronnenlijst */
.bronnen-lijst {
    margin-top: 0.5rem;
    border-top: 1px solid var(--lijn-sterk);
}

.bronnen-lijst dt {
    font-family: 'EB Garamond', Georgia, serif;
    font-weight: 600;
    padding-top: 0.9rem;
}

.bronnen-lijst dd {
    font-size: 0.9rem;
    margin: 0;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--lijn);
}

.bron {
    font-style: italic;
    color: var(--tekst-zwak, #8a7a5e);
    font-size: 0.9em;
}

/* =====================
   Tijdlijn (Geschiedenis)
   ===================== */

.tijdlijn {
    margin-top: 3rem;
}

.tijdlijn-item {
    display: flex;
    align-items: flex-start;
}

/* Linkerkolom: jaar + punt */
.tijdlijn-links {
    width: 5.5rem;
    flex-shrink: 0;
    padding-right: 1.25rem;
    padding-top: 0.15rem;
    text-align: right;
    position: relative;
}

.tijdlijn-jaar {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1.4;
    display: block;
}

/* Punt precies op de lijn, op hoogte van het jaar */
.tijdlijn-links::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent);
    z-index: 1;
}

/* Rechterkolom: border = de tijdlijnlijn, foto en tekst */
.tijdlijn-rechts {
    flex: 1;
    min-width: 0;
    border-left: 1px solid var(--lijn-sterk);
    padding-left: 2rem;
    padding-bottom: 3.5rem;
}

.tijdlijn-item:last-child .tijdlijn-rechts {
    padding-bottom: 0;
    border-left-color: var(--lijn);
}

/* =====================
   Foto's - globale lijst
   ===================== */

/* Alle sitefoto's behalve de hero krijgen een klassiek kader:
   dunne rand in accentkleur, lichte mat en subtiele schaduw */
.foto {
    display: block;
    border: 1px solid var(--lijn-sterk);
    padding: 8px;
    background-color: #FDFBF7;
    box-shadow: 0 3px 14px rgba(44, 51, 64, 0.08);
    box-sizing: border-box;
}

/* Tijdlijnfoto's: volle breedte, max hoogte, altijd ingelijst */
.tijdlijn-foto {
    width: auto;
    max-width: 100%;
    max-height: 460px;
    margin: 0 auto 1.5rem;
}

/* Staande foto's mogen iets hoger */
.tijdlijn-foto.staand {
    max-height: 560px;
}

/* Tekst */
.tijdlijn-tekst {
    font-size: 0.975rem;
    line-height: 1.8;
}

.tijdlijn-tekst p {
    margin-bottom: 1rem;
}

.tijdlijn-tekst p:last-child {
    margin-bottom: 0;
}

.tijdlijn-tekst p.bron {
    margin-top: 1rem;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--accent);
}

/* =====================
   Tijdlijn - kop en intro per item
   ===================== */

.tijdlijn-kop {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--tekst);
    margin-bottom: 0.3rem;
}

.tijdlijn-intro {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--tekst);
    margin-bottom: 1.5rem;
}

/* Onderschrift bij tijdlijnfoto's */
.tijdlijn-rechts figure {
    margin: 0 0 1.5rem 0;
}

.tijdlijn-rechts .tijdlijn-foto {
    margin-bottom: 0.6rem;
}

.tijdlijn-rechts figcaption {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--accent);
    line-height: 1.5;
}

/* =====================
   Knop
   ===================== */

.knop {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: background-color 0.2s, color 0.2s;
}

.knop:hover {
    background-color: var(--accent);
    color: var(--achtergrond);
    text-decoration: none;
}

/* =====================
   Uitslagen- en onderhoudslijst
   ===================== */

.uitslagen-lijst {
    list-style: none;
    margin: 1.25rem 0 0 0;
    padding: 0;
    columns: 3;
    column-gap: 2rem;
    font-size: 0.95rem;
}

.uitslagen-lijst li {
    padding: 0.15rem 0;
    break-inside: avoid;
}

.uitslagen-lijst strong,
.onderhoud-lijst strong {
    color: var(--accent);
    font-weight: 600;
    margin-right: 0.5rem;
}

.onderhoud-lijst {
    list-style: none;
    margin: 1.25rem 0 1.5rem 0;
    padding: 0;
}

.onderhoud-lijst li {
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--lijn-sterk);
    line-height: 1.6;
}

@media (max-width: 640px) {
    .uitslagen-lijst {
        columns: 2;
    }
}

/* =====================
   Footer
   ===================== */

.site-footer {
    border-top: 1px solid var(--accent);
    padding: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--accent);
}

/* =====================
   Smalle schermen
   ===================== */

@media (max-width: 640px) {
    html {
        font-size: 17px;
    }

    .sectie {
        padding: 3.5rem 1.25rem;
    }

    .hero {
        min-height: 520px;
    }

    .hero-inhoud {
        padding: 0 1.25rem 4rem;
    }

    .hero-naam {
        font-size: clamp(3rem, 16vw, 4.5rem);
    }

    .hero-data {
        gap: 0.4rem 1.5rem;
    }

    .tijdlijn-links {
        width: 3.6rem;
        padding-right: 0.8rem;
    }

    .tijdlijn-jaar {
        font-size: 0.9rem;
    }

    .tijdlijn-rechts {
        padding-left: 1.1rem;
        padding-bottom: 2.75rem;
    }

    .tech-specs dt {
        padding-right: 0.75rem;
    }
}

/* Rustig scrollen alleen voor wie geen bezwaar heeft tegen beweging */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition: none !important;
    }
}
