/* =============================================
   USBmicrofoons.nl — Stylesheet
   System font stack, geen externe dependencies
   ============================================= */

:root {
    --color-bg:          #FAFAFA;
    --color-bg-off:      #F0F2F5;
    --color-bg-footer:   #111827;

    --color-text:        #111827;
    --color-muted:       #6B7280;
    --color-border:      #E5E7EB;

    --color-accent:      #DC2626;
    --color-accent-hover:#B91C1C;

    --color-primary:     #1E3A5F;
    --color-primary-hover:#152B47;

    --color-link:        #1D4ED8;
    --color-link-hover:  #1E40AF;

    --color-bol:         #0000a4;
    --color-amazon:      #FF9900;
    --color-coolblue:    #003b8e;

    --font-main: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
    --font-mono: 'Courier New', monospace;

    --radius:    6px;
    --container: 1140px;
    --shadow:    0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.06);
}

/* =============================================
   Reset & base
   ============================================= */

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

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 17px;
    line-height: 1.75;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.4rem; }

a { color: var(--color-link); text-decoration: underline; text-underline-offset: 2px; transition: color .15s; }
a:hover { color: var(--color-link-hover); }

/* Skip link voor toegankelijkheid */
.skip-link {
    position: absolute;
    top: -40px;
    left: 1rem;
    background: var(--color-primary);
    color: #fff;
    padding: .4rem .8rem;
    border-radius: var(--radius);
    z-index: 200;
    transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* =============================================
   Container
   ============================================= */

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }

/* =============================================
   Header
   ============================================= */

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: .65rem;
    padding-bottom: .65rem;
    gap: 1.5rem;
}

.site-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.site-logo:hover { opacity: .85; }
.site-logo img { height: 40px; width: auto; }

/* Nav */
.main-nav > ul {
    list-style: none;
    padding: 0;
    display: flex;
    align-items: center;
}

.main-nav > ul > li { position: relative; }

.main-nav > ul > li > a {
    display: block;
    color: var(--color-text);
    padding: .4rem .65rem;
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius);
    transition: background .15s;
    white-space: nowrap;
}
.main-nav > ul > li > a:hover { background: var(--color-bg-off); }

/* Dropdown */
.dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    list-style: none;
    padding: .4rem 0;
    min-width: 210px;
    z-index: 200;
}
.dropdown li a {
    display: block;
    padding: .45rem 1rem;
    font-size: .85rem;
    color: var(--color-text);
    text-decoration: none;
    white-space: nowrap;
    transition: background .1s;
}
.dropdown li a:hover { background: var(--color-bg-off); }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
    border-radius: var(--radius);
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    transition: transform .25s, opacity .25s;
    border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   Buttons
   ============================================= */

.btn {
    display: inline-block;
    padding: .65rem 1.4rem;
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, transform .1s;
    cursor: pointer;
}
.btn:active { transform: scale(.98); }

.btn-primary {
    background: var(--color-accent);
    color: #fff;
}
.btn-primary:hover { background: var(--color-accent-hover); color: #fff; }

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
.btn-secondary:hover { background: var(--color-primary); color: #fff; }

/* Affiliate buttons */
.btn-affiliate {
    display: inline-block;
    padding: .45rem 1rem;
    border-radius: var(--radius);
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: .01em;
    transition: opacity .15s, transform .1s;
    text-align: center;
}
.btn-affiliate:active { transform: scale(.97); }
.btn-affiliate:hover { opacity: .88; }

.btn-bol     { background: var(--color-bol);     color: #fff; }
.btn-amazon  { background: var(--color-amazon);  color: #111; }
.btn-coolblue{ background: var(--color-coolblue); color: #fff; }

.btn-sm { padding: .35rem .75rem; font-size: .78rem; }

/* =============================================
   Sections
   ============================================= */

.section { padding: 4rem 0; }
.section-alt { background: var(--color-bg-off); padding: 4rem 0; }

/* =============================================
   Breadcrumb
   ============================================= */

.breadcrumb {
    padding: .6rem 0 .4rem;
    font-size: .82rem;
}
.breadcrumb ol {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .1rem;
    color: var(--color-muted);
}
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb a { color: var(--color-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-link); text-decoration: underline; }
.breadcrumb .bc-sep { margin: 0 .3rem; }
.breadcrumb .bc-current { color: var(--color-text); }

/* =============================================
   Article layout
   ============================================= */

.page-wrap { padding: 1.5rem 0 4rem; }

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

.article-hero { margin-bottom: 1.5rem; }
.article-hero-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    aspect-ratio: 1200/630;
    object-fit: cover;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
    font-size: .82rem;
    color: var(--color-muted);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.article-rating {
    color: #F59E0B;
    font-weight: 700;
    font-size: .9rem;
}

/* Markdown content styling */
.article-body h1, .article-body h2, .article-body h3,
.article-body h4, .article-body h5, .article-body h6 {
    line-height: 1.3;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 2rem;
    margin-bottom: .75rem;
}
.article-body h2 { font-size: 1.5rem; }
.article-body h3 { font-size: 1.2rem; }
.article-body h4 { font-size: 1rem; }
.article-body > *:first-child { margin-top: 0; }

.article-body p { margin-bottom: 1.1rem; }
.article-body ul, .article-body ol { margin-bottom: 1.1rem; }
.article-body li { margin-bottom: .3rem; }

.article-body strong { font-weight: 700; }
.article-body em { font-style: italic; }
.article-body code {
    background: var(--color-bg-off);
    border: 1px solid var(--color-border);
    border-radius: 3px;
    padding: .1rem .35rem;
    font-family: var(--font-mono);
    font-size: .85em;
}

/* Tables */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    display: block;
}
.article-body table th {
    background: var(--color-primary);
    color: #fff;
    padding: .6rem 1rem;
    text-align: left;
    font-weight: 600;
}
.article-body table td {
    padding: .6rem 1rem;
    border-bottom: 1px solid var(--color-border);
}
.article-body table tr:nth-child(even) td { background: var(--color-bg-off); }

.affiliate-note {
    font-size: .82rem;
    color: var(--color-muted);
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

/* =============================================
   Sidebar
   ============================================= */

.sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 1.25rem; }

.sidebar-widget {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.sidebar-widget-accent { border-color: var(--color-primary); }
.sidebar-widget-cta { border-color: var(--color-accent); background: #fff8f8; }

.sidebar-widget h3 { font-size: 1rem; font-weight: 700; margin-bottom: .75rem; color: var(--color-primary); }
.sidebar-widget ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.sidebar-widget ul a { font-size: .88rem; text-decoration: none; color: var(--color-link); }
.sidebar-widget ul a:hover { text-decoration: underline; }

.widget-price { font-size: .88rem; color: var(--color-muted); margin-bottom: .75rem; }

.widget-affiliate-btns { display: flex; flex-direction: column; gap: .5rem; }
.widget-affiliate-btns .btn-affiliate { text-align: center; padding: .5rem 1rem; }

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

.site-footer { background: var(--color-bg-footer); color: #D1D5DB; padding: 3.5rem 0 2rem; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-logo { display: inline-block; margin-bottom: 1rem; }
.footer-logo img { filter: brightness(0) invert(1); opacity: .85; }

.site-footer p { font-size: .85rem; line-height: 1.65; color: #9CA3AF; }
.footer-affiliate-notice { margin-top: .75rem; font-size: .8rem; }

.site-footer h3 { font-size: .88rem; font-weight: 700; color: #F9FAFB; margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .05em; }

.site-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.site-footer ul a { font-size: .85rem; color: #9CA3AF; text-decoration: none; transition: color .15s; }
.site-footer ul a:hover { color: #F9FAFB; }

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem;
    font-size: .8rem;
    color: #6B7280;
}
.footer-bottom a { color: #9CA3AF; text-decoration: none; }
.footer-bottom a:hover { color: #F9FAFB; }

/* =============================================
   FAQ accordion
   ============================================= */

.faq { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }

.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:last-child { border-bottom: none; }

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background .15s;
    color: var(--color-text);
    font-family: var(--font-main);
}
.faq-question:hover { background: var(--color-bg-off); }
.faq-question::after { content: '+'; font-size: 1.3rem; font-weight: 300; flex-shrink: 0; transition: transform .2s; }
.faq-question[aria-expanded="true"]::after { transform: rotate(45deg); }

.faq-answer { padding: 0 1.25rem; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s; }
.faq-answer.open { max-height: 600px; padding: .25rem 1.25rem 1rem; }
.faq-answer p { font-size: .92rem; color: var(--color-muted); }

/* =============================================
   Blog grid
   ============================================= */

.blog-header { margin-bottom: 2rem; padding-top: 1rem; }
.blog-header h1 { font-size: 2rem; color: var(--color-primary); margin-bottom: .5rem; }
.blog-header p { color: var(--color-muted); }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1.5rem;
    padding-bottom: 4rem;
}

.blog-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: box-shadow .2s, transform .2s;
}
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.blog-card-link {
    display: block;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
}
.blog-card-label {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-accent);
    margin-bottom: .5rem;
}
.blog-card-title { font-size: 1.05rem; font-weight: 700; color: var(--color-primary); margin-bottom: .5rem; line-height: 1.4; }
.blog-card-desc { font-size: .87rem; color: var(--color-muted); line-height: 1.6; margin-bottom: .75rem; }
.blog-card-date { font-size: .78rem; color: var(--color-muted); }

/* =============================================
   Use cases strip
   ============================================= */

.use-cases-section { background: var(--color-primary); padding: .75rem 0; }
.use-cases-inner { display: flex; align-items: center; gap: 2rem; overflow-x: auto; }
.use-cases-label { font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.6); white-space: nowrap; flex-shrink: 0; }

.use-cases-grid { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

.use-case-item {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 500;
    padding: .35rem .7rem;
    border-radius: 100px;
    transition: background .15s;
    white-space: nowrap;
}
.use-case-item:hover { background: rgba(255,255,255,.1); color: #fff; }
.use-case-item svg { width: 15px; height: 15px; stroke: currentColor; }

/* =============================================
   Error page
   ============================================= */

.error-page { text-align: center; padding: 5rem 1rem; }
.error-code { font-size: 6rem; font-weight: 900; color: var(--color-border); line-height: 1; margin-bottom: 1rem; }
.error-page h1 { font-size: 1.75rem; margin-bottom: 1rem; color: var(--color-primary); }
.error-page p { color: var(--color-muted); margin-bottom: 2rem; }
.error-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }
.error-links a { font-size: .9rem; color: var(--color-link); text-decoration: none; }
.error-links a:hover { text-decoration: underline; }

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 900px) {
    .article-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
    .sidebar-widget { flex: 1; min-width: 260px; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-col-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: fixed;
        top: 65px;
        left: 0; right: 0; bottom: 0;
        background: #fff;
        overflow-y: auto;
        border-top: 1px solid var(--color-border);
        z-index: 99;
    }
    .main-nav.open { display: block; }
    .main-nav > ul { flex-direction: column; padding: 1rem; gap: .25rem; }
    .main-nav > ul > li > a { padding: .7rem 1rem; }
    .dropdown { position: static; border: none; box-shadow: none; display: block; padding-left: 1rem; }
    .nav-toggle { display: flex; }

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

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.9rem; }
}

/* =============================================
   Animate-in
   ============================================= */

@media (prefers-reduced-motion: no-preference) {
    .animate-in {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity .5s ease, transform .5s ease;
    }
    .animate-in.visible { opacity: 1; transform: none; }
    .delay-1 { transition-delay: .1s; }
    .delay-2 { transition-delay: .2s; }
    .delay-3 { transition-delay: .3s; }
}
