/* Reset en basisstijlen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-image: url('Achtergrond.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    padding-top: 80px;
    min-height: 100vh;
}

/* Overlay voor betere leesbaarheid - HIER IS DE WIJZIGING: minder vaag */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5); /* Witheid achtergrond */
    z-index: -1;
}

/* Header en navigatie */
header {
    background-color: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    backdrop-filter: blur(5px);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo container */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* BBA Logo (alleen afbeelding) */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 50px;
    
}

.logo-img {
    height: 65px;
    width: auto;
    border-radius: 5px;
    background-color: white;
    padding: 4px;
}

/* DJ T&J logo en tekst */
.dj-credit {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 0.9rem;
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.dj-text {
    font-weight: 300;
}

.dj-logo {
    height: 30px;
    width: auto;
    border-radius: 3px;
    background-color: white;
    padding: 2px;
}

/* Hamburger menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1100;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Navigatie */
nav {
    transition: all 0.3s ease;
}

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

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

nav ul li a:hover {
    background-color: rgba(52, 152, 219, 0.8);
    transform: translateY(-2px);
}

nav ul li a.active {
    background-color: rgba(52, 152, 219, 0.9);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Hoofdinhoud */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.welcome-section {
    background-color: rgba(255, 255, 255, 0.92);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.welcome-section h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 3px solid #3498db;
    padding-bottom: 15px;
}

.welcome-content {
    max-width: 800px;
    margin: 0 auto;
}

.welcome-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.8;
    text-align: center;
}

.student-count {
    background-color: #3498db;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
}

/* Klassenaam */
.classroom-image {
    margin: 30px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.image-placeholder {
    height: 300px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    backdrop-filter: blur(2px);
}

.highlight-box {
    background-color: rgba(232, 244, 252, 0.9);
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid #3498db;
    margin: 30px 0;
    backdrop-filter: blur(2px);
}

.highlight-box h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.note-box {
    background-color: rgba(255, 243, 205, 0.9);
    border: 1px solid rgba(255, 234, 167, 0.8);
    border-left: 5px solid #f39c12;
    padding: 20px;
    border-radius: 5px;
    margin-top: 30px;
    backdrop-filter: blur(2px);
}

.note-box strong {
    color: #d35400;
}

/* Overlay voor mobiel menu */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
    backdrop-filter: blur(3px);
}

.overlay.active {
    display: block;
}

/* Footer */
footer {
    background-color: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 30px 20px;
    margin-top: 50px;
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    margin-bottom: 10px;
}

/* Hamburger animatie wanneer actief */
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Zorg dat overlay werkt */
.overlay.active {
    display: block;
}

/* Zorg dat nav werkt */
nav.active {
    right: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .hamburger-menu {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: rgba(44, 62, 80, 0.98);
        padding: 100px 20px 20px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        z-index: 1000;
        backdrop-filter: blur(10px);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    nav ul li a {
        display: block;
        padding: 15px;
        text-align: center;
        font-size: 1.1rem;
        background-color: rgba(255, 255, 255, 0.1);
    }

    .logo-img {
        height: 40px;
    }

    .dj-credit {
        font-size: 0.8rem;
    }
    
    .dj-logo {
        height: 25px;
    }

    .welcome-section {
        padding: 25px;
    }

    .welcome-section h1 {
        font-size: 2rem;
    }

    .image-placeholder {
        height: 200px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 10px;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .dj-credit {
        display: none; /* Verberg op zeer kleine schermen */
    }
    
    .welcome-section {
        padding: 20px;
    }
    
    .welcome-section h1 {
        font-size: 1.8rem;
    }
}

/* Aanvullende stijlen voor andere pagina's */
.page-header {
    background-color: rgba(255, 255, 255, 0.92);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-header h1 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 15px;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

.page-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Witte achtergronden voor content secties */
.birthday-table,
.photo-gallery,
.project-preview,
.date-overview,
.homework-overview,
.info-section,
.project-description {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(3px);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Achtergrond voor herfsthuiswerk project header */
.project-header {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.9) 0%, rgba(211, 84, 0, 0.9) 100%);
    backdrop-filter: blur(5px);
}

/* Lightbox achtergrond */
.lightbox {
    background-color: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
}

/* Klassenfoto netjes binnen de randen */
.classroom-image img {
    display: block;        /* Foto op eigen regel */
    max-width: 80%;        /* Foto nooit breder dan 80% van container */
    height: auto;          /* Hoogte schaalt mee */
    margin: 0 auto;        /* Centreert de foto */
    border-radius: 8px;    /* Mooie afgeronde hoeken */
}
