/* --- Basisinstellingen & Typografie --- */
:root {
    --bg-color: #fcfbfa;
    --card-bg: #ffffff;
    --text-main: #2c3e50;
    --text-muted: #5a6b7c;
    --accent-color: #8da499; 
    --border-color: #e5e9ec;
    --max-width: 700px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Georgia, serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    padding: 0 20px;
}

/* --- Header & Index --- */
.memorial-header {
    text-align: center;
    padding: 60px 0 30px 0;
    max-width: var(--max-width);
    margin: 0 auto;
    border-bottom: 1px solid var(--border-color);
    
    /* Optioneel: voeg hier een sfeervolle, vage achtergrond toe */
    /* background-image: linear-gradient(rgba(252, 251, 250, 0.85), rgba(252, 251, 250, 0.85)), url('utrecht-bg.jpg'); */
    /* background-size: cover; */
    /* background-position: center; */
}

.memorial-header h1 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    font-weight: 400;
}

.header-subtitle {
    font-size: 2.2rem;
    font-family: Georgia, serif;
    margin-top: 10px;
    color: var(--text-main);
}

.memorial-index {
    margin-top: 30px;
}

.memorial-index ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.memorial-index a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.7);
}

.memorial-index a:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* --- Lay-out & Kaarten --- */
.memorial-container {
    max-width: var(--max-width);
    margin: 40px auto;
}

.section-card {
    background: var(--card-bg);
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
}

/* Afbeelding Styling */
.profile-image-container {
    text-align: center;
    margin-bottom: 25px;
}

.profile-image {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Sectie-specifieke stijlen */
h2, h3, h4 {
    font-family: Georgia, serif;
    font-weight: 400;
    margin-bottom: 20px;
    text-align: center;
}

h3 {
    color: var(--text-muted);
    font-size: 1.4rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

/* Aanhef & Titels */
.introduction {
    text-align: center;
}

.dates {
    font-size: 1.3rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 25px;
}

.honors-list {
    list-style: none;
    margin-bottom: 30px;
    font-style: italic;
    color: var(--text-muted);
}

.honors-list li {
    margin-bottom: 5px;
}

.announcement {
    font-size: 1.1rem;
    max-width: 550px;
    margin: 0 auto;
}

/* Gedicht */
.poem-section {
    background-color: #f7f9fa;
    border-left: 3px solid var(--accent-color);
}

.utrecht-poem {
    text-align: center;
    font-style: italic;
}

.utrecht-poem p {
    margin-bottom: 15px;
    color: var(--text-main);
}

.utrecht-poem cite {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: block;
}

/* Familie */
.family-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    text-align: center;
    margin-top: 20px;
}

.family-branch .parent {
    font-size: 1.1rem;
    font-weight: 600;
}

.family-branch .children {
    color: var(--text-muted);
    margin-top: 5px;
}

/* Uitvaart */
.funeral-section {
    text-align: center;
}
.funeral-section p {
    margin-bottom: 10px;
}

/* Donaties */
.donation-wish {
    margin-bottom: 25px;
    text-align: center;
}

.charity-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.charity-item {
    background: #fdfdfd;
    padding: 15px;
    border: 1px dashed var(--border-color);
    border-radius: 6px;
}

.charity-item h4 {
    font-size: 1.05rem;
    text-align: left;
    margin-bottom: 5px;
    color: var(--text-main);
}

.charity-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.charity-item a {
    color: var(--accent-color);
    text-decoration: none;
}

.charity-item a:hover {
    text-decoration: underline;
}

.charity-item .iban {
    font-family: monospace;
    margin-top: 5px;
    background: #f5f7f8;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
}

/* --- Footer --- */
.memorial-footer {
    max-width: var(--max-width);
    margin: 0 auto 60px auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

/* --- Responsive design --- */
@media (max-width: 600px) {
    .family-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-card {
        padding: 25px;
    }
    
    .header-subtitle {
        font-size: 1.8rem;
    }
}
