/*
Theme Name: SlaapScore
Theme URI: https://slaapscore.nl
Author: SlaapScore
Author URI: https://slaapscore.nl
Description: Custom klassiek theme voor SlaapScore.nl — onafhankelijke Nederlandse slaapgids voor wearables, hardware en supplementen. Gebouwd met focus op snelheid, leesbaarheid en heldere affiliate-transparantie.
Version: 1.0.6
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: slaapscore
Tags: affiliate, blog, custom-menu, featured-images, full-width-template, threaded-comments
*/

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES — BRAND SYSTEEM
   ========================================================================== */
:root {
    /* Premium sleep-niche palette — warmer, zachter, hoog contrast */
    --kleur-nacht:      #131A2E;  /* diep midnight indigo (warmer dan vorig) */
    --kleur-schemering: #2E4159;  /* zacht middenblauw */
    --kleur-dageraad:   #D6E4F0;  /* mistige ochtendlucht */
    --kleur-herstel:    #A8C8B5;  /* sage groen, rustig herstel */
    --kleur-rust:       #FBF8F3;  /* warm cream, papier-achtig */
    --kleur-wit:        #FFFFFF;
    --kleur-actie:      #C9532B;  /* terracotta, premium minder fluo */
    --kleur-actie-hover:#A53F1C;  /* dieper voor hover */
    --kleur-tekst:      #1F2330;  /* zachter dan zwart */
    --kleur-subtekst:   #5B6473;
    --kleur-rand:       #E8DFCF;  /* warm rand passend bij cream */
    --kleur-accent:     #C8A24A;  /* zacht goud voor scores/badges */

    --font-kop: "DM Serif Display", Georgia, "Times New Roman", serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --schaduw-sm: 0 1px 2px rgba(19, 26, 46, 0.06);
    --schaduw-md: 0 4px 14px rgba(19, 26, 46, 0.08);
    --schaduw-lg: 0 12px 32px rgba(19, 26, 46, 0.14);

    --overgang: 200ms ease;

    --container-max: 1140px;
    --container-pad: 24px;
}

/* ==========================================================================
   2. RESET
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol {
    margin: 0;
    padding: 0;
}

ul[role="list"], ol[role="list"] {
    list-style: none;
}

img, picture, svg, video {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

a {
    color: var(--kleur-nacht);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--overgang);
}

a:hover {
    color: var(--kleur-actie);
}

/* ==========================================================================
   3. BASE TYPOGRAFIE
   ========================================================================== */
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--kleur-tekst);
    background-color: var(--kleur-rust);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--kleur-nacht);
    line-height: 1.25;
    margin-bottom: 0.6em;
}

h1 {
    font-family: var(--font-kop);
    font-weight: 400;
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    letter-spacing: -0.01em;
}

h2 {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: -0.005em;
}

h3 {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--kleur-schemering);
}

h4 {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.1rem;
}

p {
    margin-bottom: 1.25em;
}

strong, b {
    font-weight: 600;
    color: var(--kleur-nacht);
}

small {
    font-size: 0.875rem;
    color: var(--kleur-subtekst);
}

blockquote {
    border-left: 4px solid var(--kleur-dageraad);
    padding: 16px 24px;
    background: var(--kleur-rust);
    margin: 24px 0;
    font-style: italic;
}

.label,
.meta-label {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--kleur-subtekst);
}

/* ==========================================================================
   4. UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 64px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 64px; }

.section {
    padding: 80px 0;
}

.section-sm {
    padding: 48px 0;
}

.bg-nacht { background: var(--kleur-nacht); color: var(--kleur-wit); }
.bg-rust { background: var(--kleur-rust); }
.bg-wit { background: var(--kleur-wit); }
.bg-dageraad { background: var(--kleur-dageraad); }
.bg-herstel { background: var(--kleur-herstel); }

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--overgang);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-actie {
    background: var(--kleur-actie);
    color: var(--kleur-wit);
    border-color: var(--kleur-actie);
    box-shadow: var(--schaduw-md);
}

.btn-actie:hover,
.btn-actie:focus-visible {
    background: var(--kleur-actie-hover);
    border-color: var(--kleur-actie-hover);
    color: var(--kleur-wit);
    transform: translateY(-1px);
    box-shadow: var(--schaduw-lg);
}

.btn-ghost {
    background: transparent;
    color: var(--kleur-wit);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--kleur-wit);
    color: var(--kleur-wit);
}

.btn-primair {
    background: var(--kleur-nacht);
    color: var(--kleur-wit);
    border-color: var(--kleur-nacht);
}

.btn-primair:hover {
    background: var(--kleur-schemering);
    border-color: var(--kleur-schemering);
    color: var(--kleur-wit);
}

.btn-groot {
    padding: 18px 36px;
    font-size: 16px;
}

.btn-blok {
    display: flex;
    width: 100%;
}

/* ==========================================================================
   6. HEADER & NAV
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--kleur-nacht);
    color: var(--kleur-wit);
    box-shadow: var(--schaduw-md);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--kleur-wit);
    text-decoration: none;
    line-height: 1;
    transition: opacity 200ms ease;
}

.site-logo:hover {
    color: var(--kleur-wit);
    opacity: 0.85;
}

.site-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(214, 228, 240, 0.18) 0%, rgba(214, 228, 240, 0.06) 100%);
    color: var(--kleur-dageraad);
    flex-shrink: 0;
    transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1), background 300ms ease;
}

.site-logo:hover .site-logo-mark {
    transform: rotate(-12deg) scale(1.05);
    background: linear-gradient(135deg, rgba(214, 228, 240, 0.32) 0%, rgba(214, 228, 240, 0.12) 100%);
}

.site-logo-mark svg {
    width: 22px;
    height: 22px;
}

.site-logo-tekst {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-merk {
    font-family: var(--font-kop);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--kleur-wit);
}

.logo-tld {
    color: var(--kleur-dageraad);
    font-weight: 400;
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--kleur-dageraad);
    margin-top: 5px;
    opacity: 0.85;
}

/* Header CTA — premium oranje knop */
.header-cta {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: var(--kleur-actie);
    color: var(--kleur-wit);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px rgba(201, 83, 43, 0.25);
    transition: transform 250ms cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 250ms ease,
                background 200ms ease;
}

.header-cta:hover {
    background: var(--kleur-actie-hover);
    color: var(--kleur-wit);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(201, 83, 43, 0.4);
}

.header-cta svg {
    transition: transform 250ms cubic-bezier(0.22, 1, 0.36, 1);
}

.header-cta:hover svg {
    transform: translateX(2px);
}

@media (min-width: 769px) {
    .header-cta {
        display: inline-flex;
    }
    .nav-wrapper .site-nav {
        display: flex;
        align-items: center;
        gap: 24px;
    }
}

.hoofdmenu {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hoofdmenu a {
    color: var(--kleur-wit);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
    transition: color var(--overgang);
}

.hoofdmenu a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 100%;
    height: 2px;
    background: var(--kleur-actie);
    transition: right var(--overgang);
}

.hoofdmenu a:hover::after,
.hoofdmenu .current-menu-item a::after {
    right: 0;
}

.hoofdmenu a:hover {
    color: var(--kleur-dageraad);
}

.hamburger {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: var(--kleur-wit);
}

.hamburger svg {
    width: 24px;
    height: 24px;
}

.breadcrumbs {
    padding: 14px 0;
    font-size: 13px;
    color: var(--kleur-subtekst);
    background: var(--kleur-wit);
    border-bottom: 1px solid var(--kleur-rand);
}

.breadcrumbs a {
    color: var(--kleur-schemering);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--kleur-actie);
}

.breadcrumbs .scheiding {
    margin: 0 8px;
    color: var(--kleur-rand);
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.site-footer {
    background: var(--kleur-nacht);
    color: var(--kleur-wit);
    margin-top: 80px;
}

.footer-top {
    padding: 64px 0 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
}

.footer-brand .logo-merk {
    color: var(--kleur-wit);
    font-size: 28px;
}

.footer-tagline {
    font-family: var(--font-kop);
    font-size: 20px;
    color: var(--kleur-dageraad);
    margin-top: 12px;
    line-height: 1.4;
}

.footer-kolom h4 {
    color: var(--kleur-wit);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.footer-kolom ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-kolom li {
    margin-bottom: 10px;
}

.footer-kolom a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--overgang);
}

.footer-kolom a:hover {
    color: var(--kleur-wit);
}

.sociaal-lijst {
    display: flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sociaal-lijst a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--kleur-wit);
    transition: background var(--overgang);
}

.sociaal-lijst a:hover {
    background: var(--kleur-actie);
}

.sociaal-lijst svg {
    width: 18px;
    height: 18px;
}

.footer-onder {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
}

/* ==========================================================================
   8. LAYOUT PRIMITIVES
   ========================================================================== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.content-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
}

/* ==========================================================================
   9. SECTIE KOPPEN
   ========================================================================== */
.sectie-kop {
    text-align: center;
    margin-bottom: 48px;
}

.sectie-kop .label {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--kleur-actie);
}

.sectie-kop h2 {
    margin-bottom: 12px;
}

.sectie-kop p {
    color: var(--kleur-subtekst);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   9. ANIMATIES & FLOW
   ========================================================================== */

/* Scroll-reveal basis */
.animeer {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.animeer.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero — sterker reveal bij eerste laden */
.hero-content.animeer { transform: translateY(32px); }
.hero-decoratie.animeer { transform: translateY(0) scale(0.92); opacity: 0; }
.hero-decoratie.animeer.is-visible { transform: translateY(0) scale(1); opacity: 1; }

/* Sticky animated header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1),
                background-color 350ms ease,
                box-shadow 350ms ease,
                padding 350ms ease;
    will-change: transform;
}

.site-header.is-gescrolled {
    background-color: rgba(19, 26, 46, 0.92);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    box-shadow: var(--schaduw-md);
}

.site-header.is-verborgen {
    transform: translateY(-100%);
}

/* Card hover — zachte lift */
.product-card,
.categorie-card,
.post-card {
    transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 350ms ease,
                border-color 350ms ease;
    will-change: transform;
}

.product-card:hover,
.categorie-card:hover,
.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--schaduw-lg);
    border-color: var(--kleur-schemering);
}

/* Categorie-icoon zachte rotatie/schaal bij hover */
.categorie-card .categorie-icoon {
    transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1),
                color 300ms ease;
}

.categorie-card:hover .categorie-icoon {
    transform: scale(1.08) rotate(-4deg);
    color: var(--kleur-actie);
}

/* Buttons — micro-interactie */
.btn {
    position: relative;
    overflow: hidden;
    transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 250ms ease,
                background-color 250ms ease,
                border-color 250ms ease,
                color 250ms ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--schaduw-md);
}

.btn:active {
    transform: translateY(0);
    transition-duration: 100ms;
}

.btn-actie:hover {
    box-shadow: 0 8px 22px rgba(201, 83, 43, 0.32);
}

/* Ripple effect */
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transform: scale(0);
    animation: rippleAnim 600ms cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.btn-ghost-donker .btn-ripple,
.btn-ghost .btn-ripple {
    background: rgba(19, 26, 46, 0.18);
}

@keyframes rippleAnim {
    to {
        transform: scale(2.4);
        opacity: 0;
    }
}

/* Image reveal */
img.is-loading {
    opacity: 0;
    filter: blur(8px);
    transform: scale(1.02);
    transition: opacity 500ms ease, filter 500ms ease, transform 500ms ease;
}

img.is-loaded {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
    transition: opacity 500ms ease, filter 500ms ease, transform 500ms ease;
}

/* Score badge — pulse subtiel */
.product-score-badge,
.score-badge {
    animation: scorePulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes scorePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(200, 162, 74, 0.0); }
    50%      { box-shadow: 0 0 0 8px rgba(200, 162, 74, 0.15); }
}

/* Quiz-banner subtiele drift */
.quiz-banner-visueel svg {
    animation: drift 8s ease-in-out infinite;
}

@keyframes drift {
    0%, 100% { transform: translateY(0) rotate(0); }
    50%      { transform: translateY(-8px) rotate(2deg); }
}

/* Hero decoratie — zachte zweef */
.hero-decoratie svg {
    animation: zweef 12s ease-in-out infinite;
}

@keyframes zweef {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* Section transitions — subtiele gradient overlap voor flow */
.section + .section,
.section + .quiz-banner,
.quiz-banner + .section {
    position: relative;
}

/* Body scroll smoother voor langere pagina's */
html {
    scroll-padding-top: 96px;
}

/* Anchor focus indicator */
:focus-visible {
    outline: 3px solid var(--kleur-actie);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Link onderlijn animatie */
.leesmeer,
.categorie-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 250ms ease, color 200ms ease;
}

.leesmeer:hover,
.categorie-link:hover {
    gap: 10px;
}

.leesmeer svg,
.categorie-link svg {
    transition: transform 250ms cubic-bezier(0.22, 1, 0.36, 1);
}

.leesmeer:hover svg,
.categorie-link:hover svg {
    transform: translateX(2px);
}

/* FAQ open animatie */
details[open] summary ~ * {
    animation: faqSlide 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes faqSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Hamburger icon transitie */
.hamburger svg line {
    transition: transform 300ms ease, opacity 200ms ease;
    transform-origin: center;
}

.hamburger[aria-expanded="true"] svg line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}
.hamburger[aria-expanded="true"] svg line:nth-child(2) {
    opacity: 0;
}
.hamburger[aria-expanded="true"] svg line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

/* Mobiel menu — slide-in */
.hoofdmenu {
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
                opacity 280ms ease;
}

@media (max-width: 768px) {
    .hoofdmenu {
        transform: translateY(-16px);
        opacity: 0;
        pointer-events: none;
    }
    .hoofdmenu.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
}

/* Section padding voor betere flow */
.section {
    position: relative;
}

.section.bg-rust + .section.bg-wit,
.section.bg-wit + .section.bg-rust {
    /* zachte overgang tussen secties */
}

/* Reduced motion override (al in CSS verderop, hier expliciet voor animaties) */
@media (prefers-reduced-motion: reduce) {
    .animeer { opacity: 1 !important; transform: none !important; transition: none !important; }
    .product-score-badge,
    .quiz-banner-visueel svg,
    .hero-decoratie svg,
    .site-header { animation: none !important; }
    .product-card:hover,
    .categorie-card:hover,
    .post-card:hover,
    .btn:hover { transform: none !important; }
}

/* ==========================================================================
   10. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

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

    .content-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    /* Tablet portrait / iPad-portrait tussenlaag */
    h1, .h1 { font-size: clamp(2rem, 5.5vw, 2.75rem); line-height: 1.15; }
    h2, .h2 { font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.2; }
    h3, .h3 { font-size: 1.25rem; }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-decoratie {
        max-width: 320px;
        margin: 0 auto;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .sectie-kop h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
    .sectie-kop p { font-size: 0.95rem; }
}

@media (max-width: 768px) {
    :root {
        --container-pad: 16px;
    }

    html { scroll-padding-top: 72px; }
    body { font-size: 16px; line-height: 1.55; }

    .section {
        padding: 48px 0;
    }
    .section-sm { padding: 32px 0; }

    .container { padding-left: 16px; padding-right: 16px; }

    .hamburger {
        display: flex;
    }

    .hoofdmenu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--kleur-nacht);
        padding: 16px 24px 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 100;
    }

    .hoofdmenu.is-open {
        display: flex;
    }

    .hoofdmenu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .hoofdmenu a {
        display: block;
        padding: 14px 0;
        font-size: 1rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 48px 0 32px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-onder {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    /* Hero */
    .hero { padding: 56px 0 48px; }
    .hero h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
    .hero-sub { font-size: 1rem; }
    .hero-knoppen { flex-direction: column; align-items: stretch; }
    .hero-knoppen .btn { width: 100%; justify-content: center; }

    /* Trust bar */
    .trust-signalen { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .trust-signaal { text-align: center; }
    .trust-signaal strong { font-size: 0.95rem; }

    /* Buttons touch-friendly */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    .btn-groot { min-height: 52px; padding: 14px 24px; font-size: 1rem; }

    /* Quiz banner */
    .quiz-banner-inner { flex-direction: column; text-align: center; }
    .quiz-banner-visueel { margin: 0 auto; }

    /* Tabellen scrollbaar maken */
    table, .vergelijkingstabel {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    /* Afbeeldingen en media */
    img, video, iframe { max-width: 100%; height: auto; }

    /* Formulieren */
    input, textarea, select {
        font-size: 16px; /* voorkomt zoom op iOS */
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 560px) {
    h1, .h1 { font-size: clamp(1.5rem, 8vw, 2rem); }
    h2, .h2 { font-size: 1.35rem; }

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

    .trust-signalen { grid-template-columns: 1fr; gap: 16px; }

    .sectie-kop { margin-bottom: 24px; }
    .sectie-kop .label { font-size: 0.75rem; }

    .product-card-body { padding: 16px; }
    .product-card-body h3 { font-size: 1.125rem; }

    .post-card-horizontaal { flex-direction: column; }
    .post-card-afbeelding { width: 100%; height: 180px; }
}

@media (max-width: 380px) {
    .container { padding-left: 14px; padding-right: 14px; }
    .hero h1 { font-size: 1.6rem; }
    .btn { padding: 10px 16px; font-size: 0.9rem; }
    .logo-merk { font-size: 1.25rem; }
    .logo-sub { font-size: 0.65rem; }
}

/* Touch-device specifieke hover-uitzetten */
@media (hover: none) {
    .product-card:hover,
    .categorie-card:hover,
    .btn:hover { transform: none; }
}

/* Reduced motion voor accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
