/* Bonuskaart - Stylesheet */
/* Mobile-first, minimalistisch, groen thema */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    /* Primaire kleuren - Fris groen thema */
    --primair: #2E7D32;
    --primair-dark: #1B5E20;
    --primair-light: #4CAF50;
    --accent: #43A047;

    /* Neutrals */
    --wit: #FFFFFF;
    --lichtgrijs: #F8F9FA;
    --grijs: #E0E0E0;
    --donkergrijs: #5F6368;
    --tekst: #202124;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Container */
    --container-max: 800px;
    --container-padding: 1rem;
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--tekst);
    background-color: var(--wit);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primair);
    text-decoration: none;
}

a:hover {
    color: var(--primair-dark);
    text-decoration: underline;
}

h1, h2, h3 {
    line-height: 1.3;
    font-weight: 700;
}

h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

h3 {
    font-size: 1.125rem;
}

p {
    margin-bottom: var(--space-sm);
}

/* ========================================
   Container
   ======================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ========================================
   Header
   ======================================== */
.header {
    background: var(--primair);
    color: var(--wit);
    padding: var(--space-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo:hover {
    color: var(--wit);
    text-decoration: none;
}

/* Header CTA Button */
.header-cta {
    background: var(--wit);
    color: var(--primair);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}

.header-cta:hover {
    background: var(--lichtgrijs);
    color: var(--primair-dark);
    text-decoration: none;
    transform: scale(1.02);
}

/* Navigation */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--wit);
    transition: transform 0.2s;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
}

.nav-toggle-icon::before {
    transform: translateY(-7px);
}

.nav-toggle-icon::after {
    transform: translateY(5px);
}

.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primair);
    list-style: none;
    padding: var(--space-sm) 0;
    border-top: 1px solid var(--primair-dark);
}

.nav-menu.is-open {
    display: block;
}

.nav-link {
    display: block;
    color: var(--wit);
    padding: var(--space-sm) var(--container-padding);
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    background: var(--primair-dark);
    color: var(--wit);
    text-decoration: none;
}

/* ========================================
   Main
   ======================================== */
.main {
    flex: 1;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--primair) 0%, var(--primair-dark) 100%);
    color: var(--wit);
    padding: var(--space-lg) 0 var(--space-xl);
    text-align: center;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: var(--space-xs);
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: var(--space-lg);
}

/* Barcode Figure */
.barcode-figure {
    background: var(--wit);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    max-width: 320px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.barcode-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.barcode-caption {
    color: var(--tekst);
    font-size: 1.1rem;
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--grijs);
    text-align: center;
}

/* ========================================
   Intro Section
   ======================================== */
.intro {
    padding: var(--space-xl) 0;
    background: var(--wit);
}

.intro h2 {
    color: var(--primair);
}

.intro p {
    color: var(--donkergrijs);
    font-size: 1.0625rem;
}

/* ========================================
   FAQ Section
   ======================================== */
.faq {
    padding: var(--space-xl) 0;
    background: var(--lichtgrijs);
}

.faq h2 {
    margin-bottom: var(--space-lg);
}

.faq-item {
    background: var(--wit);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    border-left: 4px solid var(--primair-light);
}

.faq-question {
    color: var(--tekst);
    margin-bottom: var(--space-xs);
}

.faq-answer {
    color: var(--donkergrijs);
    margin-bottom: 0;
}

/* ========================================
   Links Section
   ======================================== */
.links {
    padding: var(--space-xl) 0;
    background: var(--wit);
}

.links h2 {
    margin-bottom: var(--space-lg);
}

.link-cards {
    display: grid;
    gap: var(--space-sm);
}

.link-card {
    display: block;
    background: var(--lichtgrijs);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-decoration: none;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
}

.link-card:hover {
    border-color: var(--primair);
    transform: translateY(-2px);
    text-decoration: none;
}

.link-card h3 {
    color: var(--primair);
    margin-bottom: var(--space-xs);
}

.link-card p {
    color: var(--donkergrijs);
    margin-bottom: 0;
    font-size: 0.9375rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--tekst);
    color: var(--wit);
    padding: var(--space-lg) 0;
    margin-top: auto;
}

.disclaimer {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: var(--space-sm);
}

.footer-nav a {
    color: var(--wit);
    opacity: 0.8;
    font-size: 0.875rem;
}

.footer-nav a:hover {
    opacity: 1;
    color: var(--wit);
}

/* ========================================
   Subpage Styles
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--primair) 0%, var(--primair-dark) 100%);
    color: var(--wit);
    padding: var(--space-lg) 0;
}

.page-header h1 {
    margin-bottom: 0;
}

.page-content {
    padding: var(--space-xl) 0;
}

.page-content h2 {
    color: var(--primair);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.page-content h2:first-child {
    margin-top: 0;
}

.page-content ul {
    margin-left: var(--space-md);
    margin-bottom: var(--space-sm);
}

.page-content li {
    margin-bottom: var(--space-xs);
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center {
    text-align: center;
}

.mt-lg {
    margin-top: var(--space-lg);
}

/* ========================================
   Media Queries
   ======================================== */

/* Large mobile / Small tablet */
@media (min-width: 480px) {
    .hero h1 {
        font-size: 2.25rem;
    }

    .barcode-figure {
        max-width: 360px;
        padding: var(--space-lg);
    }
}

/* Tablet */
@media (min-width: 768px) {
    :root {
        --container-padding: 2rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-toggle {
        display: none;
    }

    .nav-menu {
        display: flex;
        position: static;
        background: transparent;
        padding: 0;
        border-top: none;
        gap: var(--space-xs);
    }

    .nav-link {
        padding: var(--space-xs) var(--space-sm);
        border-radius: var(--radius-sm);
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 255, 255, 0.2);
    }

    .link-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .barcode-figure {
        max-width: 400px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .hero {
        padding: var(--space-xl) 0 calc(var(--space-xl) * 1.5);
    }

    .hero h1 {
        font-size: 2.75rem;
    }
}

/* ========================================
   Fullscreen Barcode Overlay
   ======================================== */
.fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.fullscreen-overlay.is-open {
    display: flex;
}

.fullscreen-overlay img {
    height: 95vh;
    width: auto;
    max-width: 95vw;
    object-fit: contain;
}

.fullscreen-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.fullscreen-hint {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.875rem;
    opacity: 0.8;
}

.barcode-clickable {
    cursor: pointer;
}

.barcode-clickable:hover {
    opacity: 0.95;
}
