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

:root {
    --red:       #C0392B;
    --red-deep:  #922B21;
    --red-light: #F9ECEA;
    --red-mid:   #E8C3BE;
    --ink:       #1A1410;
    --charcoal:  #2C2420;
    --warm-bg:   #FAF6F0;
    --parchment: #F2EBE0;
    --sand:      #E8DDD0;
    --sand-dark: #C8BAA8;
    --text:      #1A1410;
    --muted:     #7A6E66;
    --border:    rgba(26,20,16,0.12);
    --gold:      #B8860B;
    --gold-light:#F5EDD6;
}

body {
    background-color: var(--warm-bg);
    /* Een subtiele ruis/grain overlay */
    background-image: url("https://www.transparenttextures.com/patterns/p6.png");
    position: relative;
    font-family: 'Source Sans 3', sans-serif;
    color: var(--text);
    overflow-x: hidden;
}

header{
    position: sticky;
    top: 0;
    z-index: 1000; /* Zorg dat dit boven alles blijft */
    display: flex;
    justify-content: space-around;
    background-color: var(--ink);
    border-bottom: 2px solid var(--red);
}

/* NAV */
nav {
    background: var(--ink);
    display: flex; align-items: center; justify-content: space-around;
    padding: 0 2.5rem;
}

nav ul{
    list-style: none;
    display: flex;
}

nav a{
    display: flex;
    text-decoration: none;
    padding: 1em 2em;
}
.nav-brand {
    display: flex; align-items: center; gap: 0.9rem;
}
.pelckmans-badge {
    background: var(--red);
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 3px;
    text-transform: uppercase;
}
.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #fff;
    letter-spacing: -0.01em;
}
.nav-divider {
    width: 1px; height: 20px;
    background: rgba(255,255,255,0.2);
}
.nav-links {
    display: flex; list-style: none;
}

.nav-links a {
    width: 100%;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    transition: color 0.2s;
}
.nav-links a:hover { background-color: var(--red-deep)}
.nav-cta {
    transition: background 0.2s;
    letter-spacing: 0.02em;
}

/* HERO */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 62px);
    position: relative;
    overflow: hidden;
}
.hero-left {
    background: var(--charcoal);
    padding: 5rem 3.5rem 5rem 4rem;
    display: flex; flex-direction: column; justify-content: center;
    position: relative;
}
.hero-left::after {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 3px; height: 100%;
    background: linear-gradient(to bottom, transparent, var(--red), transparent);
}
.hero-overline {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 2rem;
}
.overline-line {
    width: 32px; height: 2px; background: var(--red);
}
.overline-text {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.6rem, 4.5vw, 4rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
.hero-title-italic {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.6rem, 4.5vw, 4rem);
    font-weight: 400;
    font-style: italic;
    color: var(--red-mid);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.75rem;
    display: block;
}
.hero-sub {
    color: rgba(255,255,255,0.5);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 400px;
    margin-bottom: 2.5rem;
    font-weight: 300;
}
.hero-actions {
    display: flex; gap: 1rem; align-items: center;
}
.btn-red {
    background: var(--red);
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    letter-spacing: 0.03em;
}
.btn-red:hover { background: var(--red-deep); transform: translateY(-1px); }
.btn-ghost {
    color: rgba(255,255,255,0.55);
    font-size: 0.875rem;
    text-decoration: none;
    display: flex; align-items: center; gap: 0.5rem;
    transition: color 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 1px;
}
.btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.5); }
.hero-stats {
    display: flex; gap: 2.5rem; margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--red-mid);
    line-height: 1;
}
.stat-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-right {
    background: var(--parchment);
    padding: 4rem 3rem;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 2rem;
    position: relative;
}
.hero-right::before {
    content: '';
    position: absolute; inset: 0;
    background-image: repeating-linear-gradient(
            45deg,
            transparent,
            transparent 18px,
            rgba(26,20,16,0.025) 18px,
            rgba(26,20,16,0.025) 19px
    );
    pointer-events: none;
}

/* STORY REVEAL / POSTER SECTION */

.story-reveal {
    background-color: var(--warm-bg);
    /* Een subtiele ruis/grain overlay */
    background-image: url("https://www.transparenttextures.com/patterns/p6.png");
    position: relative;
    padding: 6rem 4rem;
}


.story-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: center;
}
.poster-box {
    position: relative;
    aspect-ratio: 2/3;
    background: #fff;
    box-shadow: 20px 20px 0px var(--red-mid);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.poster-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.poster-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    text-transform: uppercase;
    z-index: 2;
}
.story-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.story-content h2 em {
    font-style: italic;
    font-weight: 400;
    color: var(--red);
}
.story-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.book-showcase {
    display: grid;
    grid-template-columns: repeat(3, 88px);
    gap: 14px;
    position: relative; z-index: 1;
}
.book-card {
    border-radius: 4px;
    aspect-ratio: 2/3;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 0.6rem;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    overflow: hidden;
    box-shadow: 3px 4px 10px rgba(0,0,0,0.25);
}

.book-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

.book-card:hover { transform: translateY(-7px) rotate(-1deg); }
.book-card-1 { background: #8B1A0A; }
.book-card-2 { background: #1A3A5C; }
.book-card-3 { background: #2C1A0A; }
.book-card-4 { background: #0A3A2A; }
.book-card-5 { background: #3A1A5C; }
.book-card-6 { background: #5C3A1A; }
.book-card::after {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 6px; height: 100%;
    background: rgba(0,0,0,0.25);
}
.book-card-text {
    font-family: 'Playfair Display', serif;
    font-size: 0.58rem;
    font-weight: 700;
    color: rgba(255,255,255,0.88);
    line-height: 1.3;
    position: relative; z-index: 1;
}
.book-card-author {
    font-size: 0.5rem;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
    position: relative; z-index: 1;
}
.book-new-tag {
    position: absolute; top: 7px; right: 7px;
    background: var(--red);
    color: #fff;
    font-size: 0.48rem;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.showcase-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: relative; z-index: 1;
    text-align: center;
}

/* MARQUEE */
.marquee-bar {
    background: var(--red);
    padding: 0.65rem 0;
    overflow: hidden;
    white-space: nowrap;
}
.marquee-inner {
    display: inline-flex; gap: 2.5rem;
    animation: marquee 22s linear infinite;
}
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-item {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.04em;
    display: inline-flex; align-items: center; gap: 0.6rem;
}
.marquee-item::before {
    content: '◆';
    font-size: 0.45rem;
    opacity: 0.6;
}

/* GENERIC SECTION */
section { padding: 5rem 4rem; }
.eyebrow {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 1rem;
}
.eyebrow-line { width: 24px; height: 2px; background: var(--red); }
.eyebrow-text {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}
.section-sub {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 480px;
    font-weight: 300;
}

/* GENRES */
.genres-section { background: var(--ink); }
.genres-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 2.5rem;
}
.genres-header .section-title { color: #fff; }
.view-all {
    color: var(--red-mid);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(224,182,177,0.3);
    padding-bottom: 1px;
    transition: all 0.2s;
    white-space: nowrap;
}
.view-all:hover { color: #fff; border-color: rgba(255,255,255,0.5); }
.genres-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    border: 1px solid rgba(255,255,255,0.07);
}
.genre-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    padding: 2rem 1.75rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
}
.genre-card:hover {
    background: rgba(192,57,43,0.2);
    transform: scale(1.05);
    border-color: var(--red);
}
.genre-card:hover .genre-name { color: var(--red-mid); }
.genre-icon {
    font-size: 1.6rem;
    margin-bottom: 3rem;
    margin-left: 1.3rem;
    display: block;
    filter: grayscale(0.2);
    transition: transform 0.3s ease;
    transform: scale(1.2) rotate(-10deg);
}
.genre-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.35rem;
    transition: color 0.2s;
}
.genre-count { font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.genre-hot {
    position: absolute; top: 1rem; right: 1rem;
    font-size: 0.6rem;
    font-weight: 500;
    padding: 3px 7px;
    border-radius: 2px;
    background: rgba(192,57,43,0.2);
    border: 1px solid rgba(192,57,43,0.4);
    color: var(--red-mid);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* BOOKS */
.books-section { background: var(--parchment);
    background-image: url("https://www.transparenttextures.com/patterns/p6.png");
    position: relative;}
.books-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 2.5rem;
}
.books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.book-listing {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid var(--sand);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.book-listing:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}
.book-cover {
    aspect-ratio: 3/2;
    display: flex; align-items: flex-end;
    padding: 1rem;
    position: relative;
}
.bc-1 { background: url("assets/doolhof.png") no-repeat; background-size: cover;}
.bc-2 { background: url("assets/vonk.png") no-repeat; background-size: cover;}
.bc-3 { background: url("assets/stilte.png") no-repeat; background-size: cover; }
.bc-4 { background: url("assets/ster.png") no-repeat; background-size: cover; }
.cover-title {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.92);
    font-weight: 700;
    line-height: 1.25;
}
.cover-author { font-size: 0.68rem; color: rgba(255,255,255,0.55); margin-top: 2px; }
.cover-badge {
    position: absolute; top: 0.75rem; right: 0.75rem;
    background: var(--gold);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.book-info { padding: 1rem 1.1rem; }
.genre-pill {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 2px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.pill-red { background: var(--red-light); color: var(--red-deep); }
.pill-blue { background: #EAF0F8; color: #1A3A5C; }
.pill-brown { background: #F5EEE6; color: #5C3A1A; }
.pill-green { background: #E8F5EE; color: #0A4A2A; }
.book-listing-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.2rem;
    line-height: 1.25;
}
.book-listing-author { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.7rem; }
.book-meta { display: flex; justify-content: space-between; align-items: center; }
.book-stars { color: var(--gold); font-size: 0.72rem; }
.book-reviews { font-size: 0.68rem; color: var(--muted); margin-left: 4px; }
.book-pages { font-size: 0.72rem; color: var(--muted); }

/* COMMUNITY */
.community-section {
    background: var(--warm-bg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.community-visual { display: flex; flex-direction: column; gap: 1rem; }
.review-card {
    background: #fff;
    border-radius: 4px;
    padding: 1.25rem 1.4rem;
    border: 1px solid var(--sand);
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.review-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.07);
}
.review-card.featured {
    border-left: 3px solid var(--red);
    background: #FDFAF9;
}
.review-header {
    display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem;
}
.avatar {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 600;
    flex-shrink: 0;
    font-family: 'Playfair Display', serif;
}
.av-red { background: var(--red-light); color: var(--red-deep); }
.av-brown { background: #F0E8DC; color: #5C3A1A; }
.av-blue { background: #E0EAF5; color: #1A3A5C; }
.reviewer-name { font-weight: 500; font-size: 0.875rem; color: var(--text); }
.reviewer-handle { font-size: 0.72rem; color: var(--muted); }
.review-book {
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem;
    font-style: italic;
    color: var(--muted);
    margin-bottom: 0.5rem;
}
.review-text { font-size: 0.875rem; color: var(--text); line-height: 1.65; font-weight: 300; }
.review-stars { color: var(--gold); font-size: 0.7rem; margin-top: 0.6rem; }

/* CLUBS */
.clubs-section { background: var(--charcoal); }
.clubs-header { margin-bottom: 3rem; }
.clubs-header .section-title { color: #fff; }
.clubs-header .section-sub { color: rgba(255,255,255,0.45); }
.clubs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.club-card {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 2rem 1.75rem;
    transition: all 0.25s;
    cursor: pointer;
    background: rgba(255,255,255,0.02);
}
.club-card:hover {
    background: rgba(192,57,43,0.08);
    border-color: rgba(192,57,43,0.35);
    transform: translateY(-3px);
}
.club-icon {
    width: 44px; height: 44px;
    border-radius: 4px;
    background: rgba(192,57,43,0.2);
    border: 1px solid rgba(192,57,43,0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
}
.club-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}
.club-desc { font-size: 0.85rem; color: rgba(255,255,255,0.45); line-height: 1.65; margin-bottom: 1.5rem; font-weight: 300; }
.club-footer { display: flex; justify-content: space-between; align-items: center; }
.club-members { display: flex; }
.member-pip {
    width: 26px; height: 26px; border-radius: 50%;
    border: 2px solid var(--charcoal);
    margin-left: -7px;
    font-size: 0.6rem;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 600;
    font-family: 'Playfair Display', serif;
}
.member-pip:first-child { margin-left: 0; }
.pip-a { background: var(--red); }
.pip-b { background: #1A3A5C; }
.pip-c { background: #0A3A2A; }
.pip-d { background: #3A1A5C; font-size: 0.48rem; }
.club-join {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    padding: 0.4rem 1.1rem;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Source Sans 3', sans-serif;
    transition: all 0.2s;
    letter-spacing: 0.03em;
}
.club-join:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* CTA */
.cta-section {
    background: var(--red);
    text-align: center;
    padding: 5.5rem 4rem;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '"';
    position: absolute;
    font-family: 'Playfair Display', serif;
    font-size: 28rem;
    font-weight: 700;
    color: rgba(255,255,255,0.05);
    top: -4rem; left: -1rem;
    line-height: 1;
    pointer-events: none;
}
.cta-eyebrow { color: rgba(255,255,255,0.5); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1.25rem; }
.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.025em;
    line-height: 1.12;
    max-width: 560px;
    margin: 0 auto 1.5rem;
}
.cta-title em { font-style: italic; font-weight: 400; color: rgba(255,255,255,0.75); }
.cta-sub {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
    font-weight: 300;
}
.cta-form {
    display: flex; gap: 0.75rem; justify-content: center; max-width: 400px; margin: 0 auto;
}
.cta-input {
    flex: 1;
    border: 1.5px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.12);
    border-radius: 3px;
    padding: 0.85rem 1.2rem;
    font-size: 0.9rem;
    font-family: 'Source Sans 3', sans-serif;
    color: #fff;
    outline: none;
    transition: all 0.2s;
}
.cta-input::placeholder { color: rgba(255,255,255,0.45); }
.cta-input:focus { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.6); }
.btn-white {
    background: #fff;
    color: var(--red-deep);
    padding: 0.85rem 1.75rem;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: 'Source Sans 3', sans-serif;
    letter-spacing: 0.03em;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-white:hover { background: var(--parchment); }

/* FOOTER */
footer {
    background: #0E0B09;
    padding: 2.5rem 4rem;
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-left { display: flex; align-items: center; gap: 1rem; }
.footer-pelckmans {
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.footer-pageturn {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
}
.footer-sep { color: rgba(255,255,255,0.2); font-size: 1rem; }
.footer-links { display: flex; gap: 1.75rem; list-style: none; }
.footer-links a {
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.7); }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.2); }

#open-sidebar-button{
    display: none;
    background: none;
    border: none;
    padding: 1em;
    margin-left: auto;
    cursor: pointer;
}

#close-sidebar-button{
    display: none;
    background: none;
    border: none;
    padding: 1em;
    cursor: pointer;
}

#overlay{
    background: rgba(0,0,0,0.5);
    position: fixed;
    inset:0;
    z-index: 9;
    display: none;
}

/* --- FOOTER RESPONSIVE OPTIMALISATIE --- */
footer {
    background: #0E0B09;
    padding: clamp(2rem, 5vw, 3rem) var(--side-padding);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.footer-pelckmans {
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-pageturn {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
}

.footer-sep {
    color: rgba(255,255,255,0.2);
    font-size: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.75rem;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s, opacity 0.2s;
    white-space: nowrap;
}

.footer-links a:hover {
    color: rgba(255,255,255,0.7);
}

.footer-copy {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.2);
    flex-shrink: 0;
}

/* --- FOOTER MEDIA QUERIES --- */

/* Tablet: Logo links, links en copyright naar de volgende regel of herschikken */
@media (max-width: 1024px) {
    footer {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-links {
        gap: 1.25rem 2rem; /* Meer ruimte tussen rijen op tablet */
    }
}

/* Mobiel: Alles onder elkaar, grotere klikbare links */
@media (max-width: 600px) {
    footer {
        padding: 3rem 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .footer-links a {
        font-size: 0.9rem; /* Iets groter voor duimen */
        display: block;
        padding: 0.5rem;
    }

    .footer-left {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }

    .footer-copy {
        margin-top: 1rem;
        opacity: 0.6;
    }
}

/* Mobile Tweaks */
@media screen and (max-width: 1024px) {
    nav {
        padding: 0 1rem;
        position: fixed;
        top: 0px;
        right:-100%;
        height: 100vh;
        z-index: 10;
        border-left: 1px solid var(--red-deep);
        transition: right 300ms ease-out;
    }

    #open-sidebar-button, #close-sidebar-button {
        display: block;
    }

    nav.show{
        right: 0;
    }

    nav.show ~ #overlay{
        display: block;
    }

    nav ul{
        width: 100%;
        flex-direction: column;
        justify-content: space-around;
    }

    nav a{
        width: 100%;
    }

    .hero { grid-template-columns: 1fr; }
    .hero-left { padding: 4rem 2rem; }
    .hero-stats { gap: 1.5rem; }
    .story-container { grid-template-columns: 1fr; gap: 2rem; }
    .poster-box { box-shadow: 10px 10px 0px var(--red-mid); }
    section { padding: 4rem 2rem; }
    .genres-grid, .books-grid, .clubs-grid { grid-template-columns: repeat(2, 1fr); }
    .community-section { grid-template-columns: 1fr; }

    footer{
        display: flex;
        flex-direction: row;
    }
}
.community-section {
    background: var(--warm-bg);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.community-text {
    max-width: 560px;
}

.com-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text);
}

.community-copy {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 2rem;
    font-weight: 300;
    max-width: 520px;
}

.join-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.4rem;
    border-radius: 4px;
    text-decoration: none;
    background: var(--red);
    color: #fff;
    font-weight: 600;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 18px rgba(192, 57, 43, 0.2);
}

.join-link:hover {
    background: var(--red-deep);
    transform: translateY(-2px);
}

.whatsapp-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 320px;
    gap: 1rem;
}

.whatsapp-badge {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(145deg, #25D366, #128C7E);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 40px rgba(37, 211, 102, 0.25);
    flex-shrink: 0;
}

.whatsapp-badge-icon {
    font-size: 3rem;
    color: #fff;
    line-height: 1;
    transform: translateY(-2px);
}

.whatsapp-card-preview {
    background: #fff;
    border: 1px solid var(--sand);
    border-radius: 14px;
    padding: 1.4rem 1.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    max-width: 280px;
    margin-left: -20px;
}

.whatsapp-card-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.whatsapp-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.12);
}

.whatsapp-live {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 600;
}

.whatsapp-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.whatsapp-card-subtitle {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 1rem;
}

.whatsapp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.whatsapp-tags span {
    font-size: 0.72rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: var(--red-light);
    color: var(--red-deep);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    .community-section {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .community-text {
        max-width: 100%;
    }

    .whatsapp-visual {
        min-height: auto;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .whatsapp-card-preview {
        margin-left: 0;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .community-section {
        gap: 1.75rem;
    }

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

    .community-copy {
        font-size: 0.98rem;
    }

    .whatsapp-badge {
        width: 108px;
        height: 108px;
    }

    .whatsapp-badge-icon {
        font-size: 2.4rem;
    }

    .whatsapp-card-preview {
        padding: 1.1rem 1.2rem;
    }

    .whatsapp-tags {
        gap: 0.4rem;
    }
}

.community-section.show{
    display: block;
}

.community-section{
    display: none;
}