/* Modern Responsive CSS voor Bosbeleving */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Adobe Color Palette */
    --color-dark-gray: #575859;
    --color-dark-green: #3D7340;
    --color-medium-dark-green: #528C49;
    --color-medium-green: #5DA649;
    --color-light-green: #70BF4B;
    --color-white: #FFFFFF;
    
    /* Legacy variable names for compatibility */
    --primary-color: #FFFFFF;
    --secondary-color: #5DA649;
    --accent-color: #70BF4B;
    --text-color: #FFFFFF;
    --bg-image: url('../images/back-2.gif');
    --nav-bg: url('../images/nav-1.jpg');
    --leaf-bg: url('../_borders/blad-1.gif');
    --nav2-bg: url('../nav-2.jpg');
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: var(--text-color);
    background-image: var(--bg-image);
    background-repeat: repeat;
    background-attachment: fixed;
    background-color: var(--color-dark-green); /* Fallback kleur (Adobe Color) */
    line-height: 1.7;
    min-height: 100vh;
    letter-spacing: 0.01em;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin: 1.5rem 0 1rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-light-green);
}

h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-light-green);
}

h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

p {
    margin: 1.25rem 0;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:visited {
    color: var(--color-medium-green);
}

a:hover {
    color: var(--color-light-green);
    text-decoration: underline;
}

a:active {
    color: var(--color-medium-dark-green);
}

/* Container */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

/* Navigation */
.nav-container {
    width: 100%;
    margin: 0 auto 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.nav-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0;
    list-style: none;
    background-image: var(--nav-bg);
    background-repeat: repeat;
    background-color: var(--color-medium-dark-green); /* Fallback kleur (Adobe Color) */
}

.nav-menu li {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-menu li:last-child {
    border-right: none;
}

.nav-menu a {
    display: block;
    padding: 1.2rem 0.5rem;
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    position: relative;
    text-transform: lowercase;
    letter-spacing: 0.05em;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--color-light-green);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover {
    background-color: rgba(112, 191, 75, 0.25);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-menu a:hover::after {
    width: 80%;
}

/* Main Content Area */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background-image: var(--leaf-bg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    min-height: 474px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

/* Fallback voor als afbeelding niet laadt */
.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(61, 115, 64, 0.2);
    z-index: 0;
}

.content-box {
    background: linear-gradient(135deg, rgba(61, 115, 64, 0.5) 0%, rgba(82, 140, 73, 0.4) 100%);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(112, 191, 75, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 
                0 0 0 1px rgba(255, 255, 255, 0.1) inset,
                0 2px 4px rgba(112, 191, 75, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 
                0 0 0 1px rgba(255, 255, 255, 0.15) inset,
                0 4px 8px rgba(112, 191, 75, 0.3);
}

.content-section {
    text-align: left;
}

.content-section ul,
.content-section ol {
    margin: 1.5rem 0;
    padding-left: 2.5rem;
}

.content-section li {
    margin: 0.75rem 0;
    line-height: 1.9;
    padding-left: 0.5rem;
    position: relative;
    font-size: 1.05rem;
}

.content-section ul li::marker {
    color: var(--color-light-green);
    font-weight: bold;
}

.content-section ul li::before {
    content: '🌿';
    position: absolute;
    left: -2rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

.content-section ol li {
    counter-increment: list-counter;
}

.content-section ol {
    counter-reset: list-counter;
}

.content-section ol li::marker {
    color: var(--color-light-green);
    font-weight: bold;
}

.content-section a {
    color: var(--color-light-green);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(112, 191, 75, 0.5);
    text-underline-offset: 3px;
    transition: all 0.3s ease;
    padding: 2px 4px;
    border-radius: 3px;
}

.content-section a:hover {
    color: var(--color-white);
    text-decoration: none;
    background: linear-gradient(135deg, rgba(112, 191, 75, 0.3) 0%, rgba(93, 166, 73, 0.25) 100%);
    transform: translateX(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.title-section h4 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.9;
}

.title-section h1 {
    margin: 1.5rem 0;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-light-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.meta-info {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(112, 191, 75, 0.15);
    border-radius: 12px;
    border-left: 4px solid var(--color-light-green);
}

.meta-info p {
    margin: 0.75rem 0;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Footer Section */
.footer-section {
    margin-top: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-nav {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background-image: var(--nav2-bg);
    background-repeat: repeat;
    background: linear-gradient(135deg, var(--color-medium-dark-green) 0%, var(--color-dark-green) 100%);
    padding: 2rem;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.footer-nav > a {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 600;
    font-style: italic;
    background: rgba(112, 191, 75, 0.2);
    border-radius: 8px;
    border: 2px solid rgba(112, 191, 75, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-bottom: 1.5rem;
}

.footer-nav > a:hover {
    background: rgba(112, 191, 75, 0.35);
    border-color: var(--color-light-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(112, 191, 75, 0.3);
}

.footer-links {
    width: 100%;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-links p {
    margin: 1rem 0;
    white-space: normal;
    line-height: 1.8;
    font-size: 1rem;
}

/* Credits styling - zeer subtiel en niet opvallend */
.footer-credits {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.65rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.45);
    opacity: 0.6;
    font-weight: 300;
}

.footer-credits strong {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
}

.footer-credits a {
    color: rgba(112, 191, 75, 0.5);
    text-decoration: none;
    font-weight: 300;
}

.footer-credits a:hover {
    color: rgba(112, 191, 75, 0.7);
    text-decoration: underline;
}

/* Responsive Design - Mobile First */

/* Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h4 {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
    }
    
    .nav-menu a {
        padding: 0.75rem 0.25rem;
        font-size: 0.85rem;
    }
    
    .main-content {
        min-height: 300px;
        padding: 1rem 0.5rem;
        background-size: cover;
        background-position: center;
    }
    
    .content-box {
        padding: 1.5rem 1rem;
        max-width: 100%;
        border-radius: 15px;
    }
    
    .container {
        padding: 0.5rem;
    }
    
    .main-content {
        max-width: 100%;
    }
    
    .footer-nav {
        padding: 1.5rem 1rem;
        font-size: 0.9rem;
        border-radius: 12px;
    }
    
    .footer-nav a {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .footer-credits {
        font-size: 0.6rem;
        line-height: 1.3;
        margin-top: 0.75rem;
        padding-top: 0.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .content-section ul li::before {
        left: -1.8rem;
    }
}

/* Medium devices (tablets, 768px and down) */
@media (max-width: 767.98px) {
    .nav-menu {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .main-content {
        min-height: 400px;
        background-size: cover;
        max-width: 100%;
    }
    
    .content-box {
        max-width: 90%;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .nav-menu {
        grid-template-columns: repeat(9, 1fr);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1600px;
        padding: 1rem 3rem;
    }
    
    .main-content {
        max-width: 1400px;
        padding: 3rem 2rem;
    }
    
    .content-box {
        max-width: 1100px;
        padding: 2.5rem;
    }
    
    .footer-section {
        max-width: 1400px;
    }
}

/* Ultra wide screens (1920px and up) */
@media (min-width: 1920px) {
    .container {
        max-width: 1800px;
        padding: 1rem 4rem;
    }
    
    .main-content {
        max-width: 1600px;
        padding: 3rem 2rem;
    }
    
    .content-box {
        max-width: 1200px;
        padding: 3rem;
    }
    
    .footer-section {
        max-width: 1600px;
    }
    
    /* Betere leesbaarheid op grote schermen */
    body {
        font-size: 18px;
    }
    
    .content-section {
        font-size: 1.1rem;
        line-height: 1.8;
    }
}

/* Print Styles */
@media print {
    body {
        background-image: none;
        background-color: white;
        color: black;
    }
    
    .nav-menu,
    .footer-section {
        display: none;
    }
    
    .main-content {
        background-image: none;
        background-color: white;
    }
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-medium-dark-green);
    color: var(--color-white);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
    background: var(--color-dark-green);
    color: var(--color-white);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid var(--color-light-green);
    outline-offset: 2px;
    background-color: rgba(112, 191, 75, 0.2);
}

