/* CSS Reset en basisstijlen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark-blue: #1B2845;
    --blue: #216A8A;
    --yellow: #FFC857;
    --light-bg: #F4F6FA;
    --white: #FFFFFF;
    --black: #111827;
    --gray: #6B7280;
    --border: #E5E7EB;
    --success: #10B981;
    --error: #EF4444;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--light-bg);
}

/* Header stijlen - niet meer sticky */
.menu-header {
    background: var(--dark-blue);
    padding: 1rem 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-link:hover {
    color: var(--yellow);
}

/* Hero sectie */
.hero {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--blue) 100%);
    color: var(--white);
    padding: 4rem 1rem 3rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.4;
}

.cta-button {
    display: inline-block;
    background: var(--yellow);
    color: var(--black);
    padding: 0.875rem 1.75rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    font-size: 0.95rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 200, 87, 0.3);
}

/* Algemene container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Sectie titels */
.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-blue);
    font-weight: 700;
    line-height: 1.2;
}

/* Diensten sectie */
.services-section {
    padding: 3rem 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--blue);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--gray);
    line-height: 1.5;
}

/* Over ons sectie */
.about-section {
    padding: 3rem 0;
    background: var(--light-bg);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--gray);
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--blue);
    line-height: 1;
}

.stat-label {
    color: var(--gray);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Klanten sectie */
.clients-section {
    padding: 3rem 0;
    background: var(--white);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    align-items: center;
}

.client-logo {
    background: var(--light-bg);
    padding: 1.5rem;
    text-align: center;
    border-radius: 8px;
    font-weight: bold;
    color: var(--blue);
    border: 1px solid var(--border);
    font-size: 0.9rem;
}

/* Main content */
.main-content {
    padding: 2rem 0;
}

/* Page header styles */
.page-header {
    margin-bottom: 2rem;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.5;
}

/* Cards grid voor list pages */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--dark-blue);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.card-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.card-link:hover {
    color: var(--blue);
}

.card-text {
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Blog specifieke stijlen */
.blog-section {
    padding: 2rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border);
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-title {
    color: var(--dark-blue);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.blog-card-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card-link:hover {
    color: var(--blue);
}

.blog-card-excerpt {
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.blog-card-meta {
    color: var(--gray);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
}

/* Article stijlen */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.article-hero {
    margin-bottom: 2rem;
}

.article-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.article-caption {
    color: var(--gray);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 0.5rem;
}

.article-header {
    margin-bottom: 2rem;
    text-align: center;
}

.article-title {
    font-size: 2.25rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.article-meta {
    color: var(--gray);
    font-size: 0.9rem;
}

.article-body {
    line-height: 1.7;
}

/* Related articles */
.related-articles {
    padding: 2rem 0;
    background: var(--light-bg);
    margin-top: 3rem;
}

.related-title {
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    border: 1px solid var(--border);
}

.related-card:hover {
    transform: translateY(-3px);
}

.related-card-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-card-content {
    padding: 1.25rem;
}

.related-card-title {
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.related-card-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.related-card-link:hover {
    color: var(--blue);
}

.related-card-excerpt {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Pagination */
.pagination-container {
    margin-top: 2rem;
}

.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.page-item {
    margin: 0 0.25rem;
}

.page-link {
    display: block;
    padding: 0.5rem 1rem;
    background: var(--white);
    color: var(--blue);
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.page-link:hover {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.page-item.active .page-link {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

/* Footer */
.footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--yellow);
    font-size: 1.1rem;
}

.footer-section p,
.footer-section ul {
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

/* Markdown body styles */
.markdown-body {
    line-height: 1.7;
    font-size: 1rem;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    color: var(--dark-blue);
    margin: 2rem 0 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.markdown-body h1 {
    font-size: 2rem;
}

.markdown-body h2 {
    font-size: 1.75rem;
}

.markdown-body h3 {
    font-size: 1.5rem;
}

.markdown-body h4 {
    font-size: 1.25rem;
}

.markdown-body p {
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.markdown-body a {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.3s;
}

.markdown-body a:hover {
    color: var(--yellow);
}

.markdown-body ul,
.markdown-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.markdown-body li {
    margin-bottom: 0.5rem;
    color: var(--gray);
}

.markdown-body blockquote {
    border-left: 4px solid var(--blue);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: var(--gray);
    font-style: italic;
}

.markdown-body code {
    background: var(--light-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
    color: var(--dark-blue);
}

.markdown-body pre {
    background: var(--dark-blue);
    color: var(--white);
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.markdown-body pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Mobile First Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 0.5rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        padding: 1.25rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .client-logo {
        padding: 1rem;
        font-size: 0.8rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .pagination {
        gap: 0.25rem;
    }

    .page-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .clients-grid {
        grid-template-columns: 1fr;
    }

    .service-icon {
        font-size: 2rem;
    }

    .markdown-body h1 {
        font-size: 1.75rem;
    }

    .markdown-body h2 {
        font-size: 1.5rem;
    }

    .markdown-body h3 {
        font-size: 1.25rem;
    }
}

/* Print styles */
@media print {
    .menu-header,
    .footer,
    .cta-button {
        display: none;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
        line-height: 1.4;
    }

    .container {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --dark-blue: #000000;
        --blue: #0000FF;
        --yellow: #FFFF00;
        --light-bg: #FFFFFF;
        --white: #FFFFFF;
        --black: #000000;
        --gray: #333333;
        --border: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .service-card,
    .card,
    .blog-card,
    .related-card {
        transition: none;
    }

    .cta-button:hover {
        transform: none;
    }
}

/* Focus styles voor toegankelijkheid */
a:focus,
button:focus,
.page-link:focus,
.card-link:focus,
.blog-card-link:focus,
.related-card-link:focus {
    outline: 2px solid var(--yellow);
    outline-offset: 2px;
}

/* Selection styles */
::selection {
    background: var(--yellow);
    color: var(--black);
}

::-moz-selection {
    background: var(--yellow);
    color: var(--black);
}