/* 1. Algemene Layout & Variabelen */
:root {
    --primary: #059669;        /* Chiquer Smaragdgroen */
    --primary-hover: #047857;  /* Donkerder groen voor hover */
    --border: #1e293b;         /* Subtiele blauw-grijze border */
    --bg-dark: #0f172a;        /* Diep donkerblauw */
    --text-muted: #64748b;     /* Rustig grijs voor secundaire tekst */
    --gray-area: #94a3b8;      /* Kleur voor het 'Grijze Gebied' in logo */
}

/* Basis resets voor sticky footer */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-dark);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}

main {
    flex: 1 0 auto; /* Zorgt dat content de ruimte vult en footer omlaag duwt */
}

/* 2. Header */
header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content { display: flex; flex-direction: column; align-items: center; text-align: center; }
.logo { font-weight: 800; font-size: 1.8rem; text-decoration: none; line-height: 1; margin-bottom: 8px; }
.logo-gray { color: var(--gray-area); }
.logo-green { color: var(--primary); }
.payoff { color: var(--gray-area); font-size: 0.85rem; font-style: italic; }

/* 3. Artikel Layout & Sidebar - Geforceerd met Grid */
.article-flex-container {
    display: grid;
    /* De tekst krijgt 1 fractie van de ruimte, de sidebar exact 320px */
    grid-template-columns: 1fr 320px; 
    gap: 40px;
    padding: 60px 0;
    align-items: start;
}

.main-content {
    min-width: 0; /* Voorkomt dat tekst de grid kapot drukt */
}

/* We richten ons op de wrapper die in je artikelen staat */
.sidebar-content {
    width: 320px !important;
}

.sticky-sidebar {
    position: sticky;
    top: 100px;
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 16px;
}

/* Mobiele weergave: terug naar 1 kolom */
@media (max-width: 992px) {
    .article-flex-container {
        grid-template-columns: 1fr;
        padding: 30px 0;
    }
    .sidebar-content {
        width: 100% !important;
    }
    .sticky-sidebar {
        position: static;
    }
}

/* 4. Definitieve Footer */
.site-footer {
    flex-shrink: 0;
    padding: 60px 0 30px;
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.footer-column {
    flex: 1;
    min-width: 220px;
}

.footer-column h4 {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary);
}

/* Subtiele WhatsApp CTA */
.wa-footer-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted) !important;
    text-decoration: none;
    font-weight: 500;
    margin-top: 20px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.wa-footer-link:hover {
    color: var(--primary) !important;
    border-bottom: 1px solid var(--primary);
}

.wa-footer-link::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    margin-right: 10px;
}

.footer-logo-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-top: 15px;
    max-width: 280px;
}

/* 5. Copyright balk */
.footer-bottom-bar {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 15px;
}

.bottom-links a:hover {
    color: #ffffff;
}

/* 6. Responsive aanpassingen */
@media (max-width: 992px) {
    .article-flex-container {
        flex-direction: column;
        padding: 30px 0;
    }
    .sidebar {
        width: 100%;
        position: static;
        margin-top: 30px;
    }
    .footer-bottom-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .bottom-links {
        display: flex;
        justify-content: center;
    }
}

/* De Argux Layout Fix */
.article-flex-container {
    display: flex; 
    gap: 40px; 
    padding: 60px 0; 
    align-items: flex-start;
}

.main-content {
    flex: 2;
}

.sidebar-content {
    flex: 1; 
    min-width: 300px;
}

@media (max-width: 992px) {
    .article-flex-container {
        flex-direction: column;
    }
}