/* =========================================
   SCHAAP CMS - STYLE.CSS (DEFINITIEVE VERSIE MET STICKY FOOTER)
   ========================================= */

/* 1. BASIS & RESET */
* { box-sizing: border-box; }

body { 
    background-color: white; 
    color: #000; 
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; 
    margin: 0; 
    padding: 0; 
    overflow-x: hidden; 
    line-height: 1.6;

    /* --- CRUCIAAL VOOR DE FOOTER --- */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Zorgt dat de pagina minstens schermhoogte is */
}

/* Dit blok duwt de footer naar beneden als de inhoud kort is */
#main-content {
    flex: 1;                /* Pak alle beschikbare ruimte */
    display: flex;          /* Zorgt dat inhoud netjes schaalt */
    flex-direction: column; /* Alles onder elkaar */
    width: 100%;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
a:hover { color: #cc3333; }

h1, h2, h3 { 
    color: #000; 
    text-transform: uppercase; 
    margin-top: 0; 
    line-height: 1.2;
} 
img { max-width: 100%; height: auto; display: block; }

/* 2. HEADER */
.top-bar { 
    background-color: #1e73be; 
    text-align: center; 
    padding: 10px; 
    color: #fff; 
    position: relative; 
    z-index: 200; 
}

.top-bar a { 
    color: #fff; 
    font-weight: bold; 
    text-decoration: none;
}

.top-bar a:hover {
    text-decoration: underline;
}

header { 
    background-color: #000; 
    padding: 30px 0; 
    width: 100%; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    border-bottom: 1px solid #222; 
    transition: all 0.4s ease-in-out;
}
header.kleef-vast { 
    padding: 10px 0; 
    background-color: rgba(0,0,0,0.95); 
    border-bottom: 1px solid #1e73be; 
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.header-flex { 
    display: flex; 
    flex-direction: column; 
    align-items: center;    
    justify-content: center;
}

.logo {
    margin-bottom: 20px; 
    transition: 0.4s;
}

.logo img { 
    max-width: 250px; 
    height: auto; 
    display: block;
    margin: 0 auto;
}

header.kleef-vast .logo img { max-width: 150px; }
header.kleef-vast .logo { margin-bottom: 10px; }

.desktop-nav ul { list-style: none; padding: 0; margin: 0; }
.desktop-nav li { display: inline-block; margin: 0 25px; }
.desktop-nav a { 
    color: #fff; 
    font-size: 16px; 
    text-transform: uppercase; 
    font-weight: bold;
    letter-spacing: 1px;
}

/* 3. MOBIEL MENU */
.hamburger-btn { display: none; cursor: pointer; font-size: 24px; color: #fff; border: 1px solid #fff; padding: 5px 10px; border-radius: 4px; }

.mobile-menu-overlay { 
    position: fixed; top: 0; right: -300px; width: 300px; height: 100vh; 
    background-color: #111; z-index: 1000; 
    transition: right 0.4s ease-in-out, visibility 0.4s; 
    box-shadow: -5px 0 15px rgba(0,0,0,0.5); padding: 60px 20px; box-sizing: border-box; overflow-y: auto;
    visibility: hidden; 
}
.mobile-menu-overlay.open { right: 0; visibility: visible; }

.close-btn { position: absolute; top: 20px; right: 20px; font-size: 30px; cursor: pointer; color: #fff; }

.mobile-menu-overlay ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu-overlay li { display: block; margin-bottom: 10px; border-bottom: 1px solid #333; padding-bottom: 10px; }

/* WITTE TEKST IN MOBIEL MENU */
.mobile-menu-overlay a { 
    font-size: 18px; 
    text-transform: uppercase; 
    display: block; 
    color: #ffffff !important; 
    font-weight: bold;
}

/* SUBMENU MOBIEL */
.mobile-menu-overlay ul ul { 
    margin-top: 10px;
    padding-left: 20px; 
    border-top: none;
}
.mobile-menu-overlay ul ul li { 
    border-bottom: none; 
    margin-bottom: 5px; 
    padding-bottom: 0;
}
.mobile-menu-overlay ul ul a { 
    font-size: 16px; 
    text-transform: none; 
    color: #ccc !important; 
}

.site-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 900; opacity: 0; pointer-events: none; transition: 0.3s; }
.site-overlay.active { opacity: 1; pointer-events: all; }

@media (max-width: 900px) {
    .header-flex { flex-direction: row; justify-content: space-between; }
    .logo { margin-bottom: 0; }
    .logo img { max-width: 180px; margin: 0; }
    .desktop-nav { display: none; }
    .hamburger-btn { display: block; }
    header { padding: 15px 0; }
}

/* 4. CONTENT & PARALLAX */
.mijn-blok { 
    width: 100%; 
    min-height: 100vh; 
    padding: 60px 20px; 
    box-sizing: border-box; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative; 
    z-index: 2; 
}
.mijn-inhoud { 
    max-width: 1000px; 
    margin: 0 auto; 
    width: 100%; 
    position: relative; 
    will-change: transform; 
    text-align: center; 
}

.zwart-blok { background-color: #000; color: #fff; }
.zwart-blok h1, .zwart-blok h2, .zwart-blok h3 { color: #fff; }

/* PARALLAX WRAPPER */
.parallax-wrapper { 
    width: 100%; 
    height: 80vh; 
    overflow: hidden; 
    position: relative; 
    z-index: 1; 
    display: block; 
    margin: 0; 
    padding: 0; 
}
.parallax-wrapper img { 
    width: 100% !important; 
    height: 120% !important; 
    min-height: 100vh;
    max-width: none !important; 
    object-fit: cover; 
    object-position: center; 
    position: absolute; 
    top: -10%; 
    left: 0; 
    margin: 0 !important; 
    will-change: transform; 
}

/* Google Maps Iframe Fix */
.google-map-wrapper iframe {
    width: 100% !important;
}

@media (max-width: 900px) {
    .mijn-blok { min-height: auto; height: auto; padding: 80px 20px; display: block; }
    .mijn-inhoud { transform: none !important; }
    .parallax-wrapper { height: 50vh; margin: 0; }
}

/* 5. GASTENBOEK (Template List & Single) */
.gb-grid-container { display: flex; flex-direction: column; gap: 30px; padding: 40px 0; max-width: 900px; margin: 0 auto; }
.gb-card { background: #fff; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-left: 6px solid #ccc; display: flex; align-items: flex-start; padding: 25px; margin-bottom: 10px; }
.gb-card:nth-child(3n+1) { border-left-color: #1e73be; }
.gb-card:nth-child(3n+2) { border-left-color: #ffd600; }
.gb-card:nth-child(3n+3) { border-left-color: #cc3333; }
.gb-photo { flex-shrink: 0; margin-right: 25px; }
.gb-avatar { width: 90px !important; height: 90px !important; min-width: 90px; border-radius: 50%; object-fit: cover; border: 3px solid #f5f5f5; box-shadow: 0 2px 6px rgba(0,0,0,0.15); display: block; }
.gb-content-area { flex-grow: 1; }
.gb-name { color: #000; font-size: 20px; font-weight: bold; margin: 0 0 5px 0; text-transform: capitalize; }
.gb-date { font-size: 12px; color: #999; margin-bottom: 5px; }
.gb-stars { color: #cc3333; font-size: 18px; margin-bottom: 10px; display: block; letter-spacing: 2px; }
.gb-body { color: #000; font-size: 16px; line-height: 1.6; }

/* 6. PAGINERING */
.pagination-wrapper { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee; }
.pagination-btn { display: inline-block; background: #000; color: #fff; padding: 10px 20px; margin: 0 5px; border-radius: 5px; font-weight: bold; font-size: 14px; border: 2px solid #000; }

/* --- DROPDOWN MENU STIJLEN (DESKTOP) --- */
.desktop-nav li { position: relative; }
.desktop-nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #000;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    padding: 0;
    border-top: 2px solid #1e73be;
}
.desktop-nav ul ul li { display: block; margin: 0; width: 100%; text-align: left; border-bottom: 1px solid #333; }
.desktop-nav ul ul li a { display: block; padding: 12px 15px; font-size: 14px; color: #ccc; text-transform: none; }
.desktop-nav ul ul li a:hover { background-color: #222; color: #fff; padding-left: 20px; }
.desktop-nav li:hover > ul { display: block; }
.has-submenu > a::after { content: " ▼"; font-size: 10px; color: #1e73be; margin-left: 5px; }

/* =========================================
   7. FOOTER (FRISSE VERSIE)
   ========================================= */

#main-footer {
    background-color: #f4f4f4; 
    color: #333;
    font-size: 15px;
    margin-top: 0;
    position: relative;
    width: 100%;
    border-top: 1px solid #eee;
}

/* De Rietveld Kleurenstrip */
.rietveld-strip { display: flex; width: 100%; height: 6px; }
.rietveld-strip .r-color { height: 100%; }
.rietveld-strip .r-red { background-color: #cc3333; flex: 1; }
.rietveld-strip .r-blue { background-color: #1e73be; flex: 1; }
.rietveld-strip .r-yellow { background-color: #ffd600; flex: 1; }
.rietveld-strip .r-black { background-color: #000; flex: 2; }

/* De layout */
.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 60px 20px;
    gap: 40px;
}

.footer-col { flex: 1; min-width: 250px; }

/* Titels in de footer */
.footer-col h3 {
    color: #000;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #1e73be;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
}

/* Linkjes */
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li {
    margin-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 5px;
}

.footer-links a, 
.footer-col p a {
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover,
.footer-col p a:hover {
    color: #1e73be;
    padding-left: 5px;
}

/* Subfooter */
.sub-footer {
    background-color: #e9e9e9;
    text-align: center;
    padding: 20px;
    border-top: 1px solid #ddd;
    color: #666;
    font-size: 12px;
}

@media (max-width: 768px) {
    .footer-grid { flex-direction: column; text-align: center; }
    .footer-links a:hover { padding-left: 0; }
}

/* =========================================
   8. REVIEWS SLIDER (DEFINITIEVE VERSIE)
   ========================================= */

.review-slider-container {
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    position: relative;
    height: 350px; 
    overflow: hidden;
}

.review-slide {
    position: absolute; /* Zorgt dat ze stapelen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, transform 1s ease;
    transform: scale(0.95);
    z-index: 1;
    
    /* Uiterlijk */
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    border-top: 5px solid #1e73be;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/* De actieve slide */
.review-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

.rs-text {
    font-size: 18px;
    font-style: italic;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.rs-stars {
    color: #ffd600;
    font-size: 24px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.rs-author {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    margin-top: 10px;
}

/* DIT MAAKT DE FOTO ROND */
.rs-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%; /* <--- HIERDOOR WORDT HET ROND */
    object-fit: cover;
    border: 2px solid #eee;
    background-color: #fff; /* Witte achtergrond voor transparante logo's */
}

.rs-author span { font-size: 15px; color: #000; }

/* Mobiel */
@media (max-width: 600px) {
    .review-slider-container { height: 450px; }
    .rs-text { font-size: 15px; }
    .review-slide { padding: 20px; }
}

/* =========================================
   9. MAGAZINE STIJLEN
   ========================================= */

.magazine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.magazine-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
}

.magazine-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.mc-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-bottom: 4px solid #cc3333; /* Rood accent */
}

/* Wisselende kleuren voor accenten (leuk effect) */
.magazine-card:nth-child(2n) .mc-image { border-bottom-color: #1e73be; }
.magazine-card:nth-child(3n) .mc-image { border-bottom-color: #ffd600; }

.mc-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.mc-content small { color: #999; font-size: 12px; margin-bottom: 10px; display: block; }
.mc-content h3 { font-size: 18px; color: #000; margin-bottom: 10px; line-height: 1.4; }
.mc-content p { color: #666; font-size: 14px; flex-grow: 1; margin-bottom: 20px; }
.btn-link { color: #1e73be; font-weight: bold; font-size: 14px; }

/* Artikel Detail Pagina */
.article-content { font-size: 18px; line-height: 1.8; color: #333; }
.article-content img { max-width: 100%; height: auto; margin: 20px 0; border-radius: 4px; }
.article-content h2, .article-content h3 { margin-top: 30px; color: #000; }

/* =========================================
   10. KRANTEN STYLE (ROSETTE PR)
   ========================================= */

.newspaper-wrapper {
    max-width: 1200px; /* Iets breder voor de krant */
    margin: 0 auto;
    font-family: 'Merriweather', serif; /* De body tekst font */
}

/* De Header (Masthead) */
.paper-header {
    text-align: center;
    padding: 40px 0 20px 0;
    margin-bottom: 40px;
    border-bottom: 4px double #000;
}

.paper-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(30px, 6vw, 70px);
    font-weight: 900;
    text-transform: uppercase;
    color: #000;
    margin: 10px 0;
    line-height: 1;
    letter-spacing: -1px;
}

.paper-meta {
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 5px 0;
    display: flex;
    justify-content: space-between;
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
    color: #555;
}

.paper-divider {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 14px;
    margin-top: 10px;
    position: relative;
}
.paper-divider::before, .paper-divider::after {
    content: "";
    display: inline-block;
    width: 30px;
    height: 1px;
    background: #000;
    vertical-align: middle;
    margin: 0 10px;
}

/* Grid Layout */
.paper-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr); /* 12 kolommen grid */
    gap: 30px;
    align-items: start;
}

.paper-link { text-decoration: none; color: inherit; display: block; }
.paper-link:hover h3 { text-decoration: underline; color: #cc3333; }

/* Algemene Artikel Stijl */
.paper-lead-story, .paper-side-story {
    background: #fff; /* Of transparant laten voor krant-papier look */
    padding: 0;
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
}

.paper-img-wrap img {
    width: 100%;
    height: auto;
    filter: grayscale(100%); /* Zwart-wit foto's voor echte krant look! */
    transition: filter 0.3s;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    padding: 3px;
    background: #fff;
}
.paper-link:hover img { filter: grayscale(0%); /* Kleur bij hover */ }

.paper-date {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 5px;
    font-family: sans-serif;
}

.paper-content h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
    line-height: 1.2;
}

.paper-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #222;
    text-align: justify; /* Uitvullen zoals een krant */
}

.read-more {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 10px;
    display: inline-block;
    color: #cc3333;
    font-family: sans-serif;
}

/* --- DE GROTE LEAD STORY (Artikel 1) --- */
.paper-lead-story {
    grid-column: span 12; /* Volle breedte */
    display: flex;
    flex-direction: column;
    border-bottom: 2px solid #000;
    margin-bottom: 20px;
}
.paper-lead-story .paper-img-wrap { order: 2; margin-top: 20px; }
.paper-lead-story .paper-content { order: 1; text-align: center; }
.paper-lead-story h3 { font-size: 42px; }
.paper-lead-story p { font-size: 18px; max-width: 800px; margin: 0 auto; text-align: center; }

/* --- DE KLEINERE VERHALEN (Artikel 2 t/m 10) --- */
.paper-side-story {
    grid-column: span 4; /* Pakken elk 4 kolommen (dus 3 naast elkaar) */
}
.paper-side-story h3 { font-size: 22px; }

/* Responsief */
@media (max-width: 900px) {
    .paper-side-story { grid-column: span 6; } /* 2 naast elkaar op tablet */
}

@media (max-width: 600px) {
    .paper-lead-story h3 { font-size: 30px; }
    .paper-lead-story p { font-size: 16px; text-align: left; }
    .paper-side-story { grid-column: span 12; } /* Alles onder elkaar op mobiel */
    .paper-content p { text-align: left; }
}

/* =========================================
   FIX: MENU ALTIJD OP 1 REGEL
   ========================================= */

/* Zorg dat de hoofdmenu-items op één lijn blijven */
.desktop-nav > ul {
    display: flex;
    flex-wrap: nowrap !important; 
}

/* Tekst mag niet afbreken en we maken de tussenruimte iets kleiner */
.desktop-nav > ul > li > a {
    white-space: nowrap !important; 
    padding-left: 12px !important;
    padding-right: 12px !important;
}

/* Geef de header op grote schermen net iets meer breedte zodat alles mooi past */
header .container {
    max-width: 1250px !important;
}