:root {
    --main-color: var(--bs-danger);
    --chill-color: #333;
}
body {
    font-size: 1em;
}
.wrapper {
    max-width: 40em;
    margin-left: auto;
    margin-right: auto;
}

h1 {
    font-size: 4em;
    text-align: center;
}
h2 {
    font-size: 3em;
    font-weight: 500;
    margin: 1em 0 0.2em;
}
h3 {
    font-size: 2em;
    color: var(--main-color);
    line-height: 1.4em;
    margin: 1em 0 0.2em;
}
a {
    color: var(--chill-color);
    font-weight: 700;
}

img, iframe {
    max-width: 100%;
    margin: 1em auto;
}

blockquote {
    background: #f9f9f9;
    border-left: 5px solid var(--main-color);
    margin: 1.5em 0;
    padding: 1em 1.5em;
    font-style: italic;
    color: #555;
    font-size: 0.95em;
}

/* --- Hero Banner --- */
.hero-banner {
    width: 100%;
    height: 280px;
    /* Gebruik de main-color maar laat hem verlopen naar een iets lichtere tint */
    background: linear-gradient(135deg, var(--main-color) 0%, #ff9f8a 100%); 
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2em;
}

.hero-logo-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5em 3em;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1); /* Zachte schaduw tilt hem op */
}

.hero-logo-box img {
    max-height: 120px;
    width: auto;
    margin: 0;
    display: block;
}

/* --- Mission Statement (Open Definitie) --- */
.mission-statement {
    font-size: 1.6em; 
    line-height: 1.4;
    text-align: center;
    color: var(--main-color); 
    font-weight: 300; 
    font-style: italic;
    max-width: 900px;
    margin: 2rem auto 1rem auto; 
    padding: 0 1rem;
}

/* --- Navigatie --- */

nav {
    background-color: #000;
    padding: 1em;
}
nav a {
    color: #fff;
    font-size: 1.2em;
    padding: 0 0.4em;
}
main {
    padding-bottom: 80px;
}
footer {
    background-color: var(--main-color);
    color: #fff;
    min-height: 200px;
    padding: 2em 0;
}
footer a {
    color: #fff;
    font-weight: 900;
}

.main-item {
    background-color: var(--main-color);
    color: #fff;
    margin: 0.5em; /* Iets minder marge rondom */
    text-align: center;
    padding: 1em 2em; /* Iets compacter dan de 1.4em */
    font-size: 1.2em;
    font-weight: 600;
    text-decoration: none;
    
    /* De modernisering: */
    border-radius: 50px; /* Pil-vorm (past bij de tags en banner) */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s;
    border: 2px solid transparent; /* Voorbereiding op hover */
    
    /* Zorg dat de breedte flexibel is, niet hard 300px */
    width: auto; 
    min-width: 200px;
    display: inline-block;
}

.main-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    color: #fff;
    text-decoration: none;
    /* Optioneel: iets lichter maken bij hover */
    filter: brightness(110%);
}

.footer-box {
    display: flex;
    margin-top: 40px;
    margin-bottom: 40px;
}
.footer-box__left {
}
.footer-box__right {
    margin-left: auto;
}

/* --- Nieuws Cards Component --- */

.news-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 2em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
}

.news-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.news-card__meta {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 0.5em;
}

.news-card__meta a {
    /* Overschrijf de standaard dikke link stijl voor metadata */
    font-weight: 400;
    color: #666;
    text-decoration: underline;
}

.news-card h3 {
    /* Reset de grote margin-top van de standaard h3 */
    margin-top: 0;
    margin-bottom: 0.5em;
    font-size: 1.6em; /* Iets compacter dan de standaard 2em */
}

.news-card h3 a {
    text-decoration: none;
}

.news-card p {
    margin-bottom: 1em;
    line-height: 1.6;
}

.news-card__footer {
    display: flex;
    justify-content: flex-end; /* Tag rechts uitlijnen */
}


/* TAGS */
a.tag {
    display: inline-block;
    color: var(--chill-color);
    margin: 0.2em 0.5em;
    font-size: 0.9rem;
    font-weight: 200;
    line-height: 1rem;
    text-decoration: none;
    vertical-align: text-bottom;
}
.tag.makers { border-bottom: 3px solid var(--bs-pink); }
.tag.open-access { border-bottom: 3px solid var(--bs-danger); }
.tag.open-source { border-bottom: 3px solid var(--bs-warning); }
.tag.open-design { border-bottom: 3px solid var(--bs-info); }
.tag.open-glam { border-bottom: 3px solid var(--bs-success); }
.tag.open-onderwijs { border-bottom: 3px solid var(--bs-teal); }
.tag.open-onderzoek { border-bottom: 3px solid var(--bs-primary); }
.tag.open-overheid { border-bottom: 3px solid var(--bs-purple); }
.tag.open-zorg { border-bottom: 3px solid var(--bs-orange); }
.tag.unknown-theme { border-bottom: 3px solid var(--bs-gray); }

/* Container voor de tags */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8em;
    margin: 2em 0;
}

/* De algemene stijl voor de tag-knop */
a.tag {
    display: inline-block;
    padding: 0.6em 1.2em;
    border-radius: 50px; /* Maakt ze pil-vormig */
    background-color: #f8f9fa; /* Lichte achtergrond */
    border: 1px solid #e9ecef;
    border-bottom-width: 4px; /* De kleur-balk blijft, maar dikker */
    color: var(--chill-color);
    font-size: 1em; /* Iets groter */
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.1s, box-shadow 0.1s;
    margin: 0; /* Margin wordt nu geregeld door de gap in de container */
}

/* Hover effect: "Indrukken" of omhoog komen */
a.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background-color: #fff;
}

/* --- Initiatieven Grid --- */

.initiatives-grid {
    display: grid;
    /* Automatisch kolommen maken van minimaal 300px breed */
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr)); 
    gap: 1.5em;
    margin-top: 1em;
}

.initiative-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.5em;
    display: flex;
    flex-direction: column; /* Zorgt dat de knop onderaan komt */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.initiative-card h3 {
    margin-top: 0;
    font-size: 1.3em;
    margin-bottom: 0.2em;
}

.initiative-card .year {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 1em;
    font-style: italic;
}

.initiative-card .content {
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 1.5em;
    flex-grow: 1; /* Duwt de knop naar beneden */
}

/* De knop onderaan de kaart */
.btn-visit {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f4f4f4;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 600;
    align-self: flex-start;
    transition: background 0.2s;
}

.btn-visit:hover {
    background-color: #e0e0e0;
    text-decoration: none;
}



/* --- Organisatie Logo Grid --- */

.org-grid {
    display: grid;
    /* Maak kolommen van minimaal 140px breed. Vult de ruimte automatisch op. */
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5em;
    margin: 2em 0;
    padding: 0;
    list-style: none;
}

.org-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 1.5em;
    text-decoration: none;
    color: var(--chill-color);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    height: 100%; /* Zorgt dat alle kaartjes even hoog zijn */
}

.org-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--main-color);
    text-decoration: none;
    color: var(--main-color);
}

.org-logo-box {
    width: 100%;
    height: 80px; /* Vaste hoogte voor het logo-gebied */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1em;
}

.org-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Optioneel: Maak logo's zwart-wit voor een rustig beeld */
    filter: grayscale(100%); 
    opacity: 0.8;
    transition: filter 0.2s, opacity 0.2s;
}

/* Bij hover: kleur terugbrengen */
.org-card:hover .org-logo-box img {
    filter: grayscale(0%);
    opacity: 1;
}

.org-title {
    font-size: 0.9em;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}


/* --- Personen Grid --- */
.people-grid {
    display: grid;
    /* Kolommen van minimaal 260px breed */
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
    gap: 1em;
    list-style: none;
    padding: 0;
    margin: 2em 0;
}

.person-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 1.2em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Zorgt voor gelijke hoogte in de rij */
    text-decoration: none;
    color: var(--chill-color);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.person-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    border-color: var(--main-color);
    text-decoration: none;
    color: inherit;
}

.person-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8em;
}

.person-name {
    font-weight: 700;
    font-size: 1.1em;
    line-height: 1.3;
}

.lid-badge {
    font-size: 0.75em;
    color: #999;
    background: #f8f8f8;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    margin-left: 10px;
}

/* De tags container */
.person-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto; /* Duwt de tags naar de onderkant van de kaart */
}

.person-card .tag {
    font-size: 0.7em;       /* Iets kleiner dan de hoofdnavigatie */
    padding: 0.3em 0.8em;   
    margin: 0;              
    pointer-events: none;   
}

/* De individuele tag pill */
.mini-tag {
    font-size: 0.75em;
    background-color: #f0f0f0; /* Neutraal grijs */
    color: #555;
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}


/* --- Laposta Nieuwsbrief Styling --- */

.newsletter-box {
    background-color: #f4f4f4;
    padding: 2em;
    border-radius: 8px;
    margin: 3em auto;
    max-width: 600px; /* Niet te breed */
    text-align: center;
    border: 1px solid #e0e0e0;
}

.newsletter-box h3 {
    margin-top: 0;
    color: var(--main-color);
}

.newsletter-box form {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
    max-width: 350px; /* Het formulier zelf smal houden */
    margin: 1em auto;
    text-align: left;
}

/* Labels iets netter maken */
.newsletter-box label {
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: -0.5em; /* Dichter op het invoerveld */
    color: #555;
}

/* De invoervelden */
.newsletter-box input[type="text"],
.newsletter-box input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}

/* De knop (stijl overnemen van je .main-item pill buttons) */
.newsletter-box input[type="submit"] {
    background-color: var(--main-color);
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 1em;
    width: 100%;
    transition: all 0.2s;
}

.newsletter-box input[type="submit"]:hover {
    filter: brightness(110%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}


/* 2. Het Bestuur (Team Grid) */
.team-grid {
    display: grid;
    /* Automatisch kolommen maken: minimaal 220px breed */
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
    gap: 1.5em;
    margin-top: 2em;
    margin-bottom: 3em;
    list-style: none; /* Geen puntjes */
    padding: 0;
}

.team-member {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 1.5em;
    display: flex;
    flex-direction: column;
    text-decoration: none; /* Link streep weg */
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.team-member:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: var(--main-color);
    text-decoration: none;
    color: inherit;
}

.team-member strong {
    display: block;
    font-size: 1.1em;
    color: var(--main-color);
    margin-bottom: 0.2em;
}

.team-member span {
    font-size: 0.9em;
    color: #666;
}



/* --- Mobiele aanpassingen --- */

/* Mobiele aanpassing voor de cards */
@media screen and (max-width: 680px) {
    .news-card {
        padding: 1rem;
    }
    .news-card h3 {
        font-size: 1.4em;
    }
}

@media screen and (max-width: 680px) {
    .wrapper {
        padding-left: 1em;
        padding-right: 1em;
    }
    .foto-banner__content {
        font-size: 1em;
    }
    .footer-box {
        display: block;
    }
    .footer-box__right {
        margin-top: 40px;
    }
}

/* Mission statement */
@media screen and (max-width: 680px) {
    .mission-statement {
        font-size: 1.3em;
    }
}