/* static/css/style.css */

/* --- Globale Variabelen en Reset --- */
:root {
    --primary-color: #0056b3;
    --secondary-color: #007bff;
    --accent-color: #ffc107;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --text-color: #333;
    --border-color: #dee2e6;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family);
    line-height: 1.6;
    margin: 0;
    background-color: var(--light-gray);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; }

/* --- Container & Lay-out --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 2em auto;
    padding: 2em;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.flex-container { display: flex; gap: 40px; align-items: center; }
.flex-container .text-content, .flex-container .image-content { flex: 1; }

h1, h2, h3 { color: var(--primary-color); border-bottom: 2px solid #eee; padding-bottom: 10px; margin-top: 0; }
a { color: var(--secondary-color); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Navigatie --- */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1em 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { font-size: 1.5em; font-weight: bold; color: var(--primary-color); text-decoration: none; }
.main-nav { display: flex; align-items: center; }
.main-nav a { margin: 0 15px; text-decoration: none; color: var(--text-color); font-weight: 500; transition: color 0.3s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--secondary-color); }
.nav-user { color: #6c757d; margin-right: 1em; }

/* --- Knoppen --- */
.btn { display: inline-block; padding: 12px 24px; border: none; border-radius: 5px; cursor: pointer; text-decoration: none; font-size: 1em; font-weight: bold; text-align: center; transition: all 0.3s ease; }
.btn-primary { background-color: var(--secondary-color); color: white; }
.btn-primary:hover { background-color: var(--primary-color); }
.btn-accent { background-color: var(--accent-color); color: var(--dark-gray); }
.btn-accent:hover { background-color: #e0a800; }
.btn-secondary { background-color: #6c757d; color: white; }
.btn-secondary:hover { background-color: #5a6268; }

/* --- Formulieren --- */
form { margin-top: 1.5em; }
input[type="text"], input[type="password"], input[type="datetime-local"], select { width: 100%; padding: 12px; margin-bottom: 1em; border: 1px solid var(--border-color); border-radius: 4px; font-size: 1em; box-sizing: border-box; }

/* --- Hero Sectie --- */
.hero { background: linear-gradient(rgba(0, 86, 179, 0.8), rgba(0, 86, 179, 0.8)) no-repeat center center/cover; color: #fff; text-align: center; padding: 80px 20px; }
.hero h1 { font-size: 3em; color: white; border: none; }
.hero p { font-size: 1.25em; }

/* --- Kaarten --- */
.card { background-color: #fff; border: 1px solid var(--border-color); margin-bottom: 15px; padding: 20px; border-radius: 5px; }
.card strong { display: block; margin-bottom: 5px; font-size: 1.2em; color: var(--primary-color); }
code { background-color: #e9ecef; padding: 0.2em 0.4em; border-radius: 3px; font-family: monospace; }
pre { background-color: #e9ecef; padding: 1em; border-radius: 4px; white-space: pre-wrap; word-wrap: break-word; }

/* --- Tabellen --- */
table { width: 100%; border-collapse: collapse; margin-top: 1.5em; }
th, td { padding: 12px; border-bottom: 1px solid var(--border-color); text-align: left; }
th { background-color: var(--light-gray); font-weight: 600; }
tr:hover { background-color: #f1f3f5; }

/* --- Flash Berichten --- */
.flash { padding: 1em; margin-bottom: 1em; border-radius: 4px; border-width: 1px; border-style: solid; }
.flash.success { border-color: #28a745; background-color: #d4edda; color: #155724; }
.flash.error { border-color: #dc3545; background-color: #f8d7da; color: #721c24; }
.flash.info { border-color: #007bff; background-color: #cce5ff; color: #004085; }

/* --- Footer --- */
.main-footer { background-color: var(--dark-gray); color: #fff; text-align: center; padding: 2em 0; margin-top: auto; }
.main-footer a { color: var(--accent-color); }
.main-footer p { margin: 5px 0 0; }

/* --- STYLES FOR THE INFO PAGE LAYOUT --- */
.info-page-container { max-width: 900px; margin: 2em auto; padding: 0; background-color: transparent; box-shadow: none; }
.info-card { background-color: #fff; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); padding: 2.5em 3em; margin-bottom: 2.5em; text-align: center; }
.info-card h2 { border-bottom: none; margin-top: 0; margin-bottom: 0.75em; font-size: 1.8em; }
.info-card p { max-width: 650px; margin-left: auto; margin-right: auto; margin-bottom: 1.5em; color: #555; font-size: 1.1em; line-height: 1.7; }
.info-card img { border-radius: 8px; max-width: 100%; }

/* --- FOTOGALERIJEN --- */
.image-gallery { display: flex; gap: 20px; justify-content: center; margin-top: 1.5em; flex-wrap: wrap; }
.image-gallery .gallery-item { text-align: center; width: 30%; min-width: 200px; }
.image-gallery img { max-width: 100%; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.image-gallery p { font-size: 0.9em; color: #666; margin-top: 0.5em; }

/* --- ACCORDION Q&A PAGINA --- */
.accordion { margin-top: 2em; }
.accordion details { background-color: #fff; border: 1px solid var(--border-color); border-radius: 5px; margin-bottom: 1em; transition: background-color 0.2s ease; }
.accordion details[open] { background-color: var(--light-gray); }
.accordion summary { font-weight: bold; font-size: 1.2em; padding: 1.2em; cursor: pointer; list-style: none; position: relative; color: var(--primary-color); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '▼'; position: absolute; right: 1.5em; font-size: 0.8em; transition: transform 0.2s ease; }
.accordion details[open] summary::after { transform: rotate(-180deg); }
.accordion .answer { padding: 0 1.5em 1.5em 1.5em; line-height: 1.7; }
.accordion .answer blockquote { border-left: 4px solid var(--secondary-color); padding-left: 1em; margin-left: 0; font-style: italic; color: #555; }
.accordion .answer cite { display: block; margin-top: 1em; font-size: 0.9em; color: #777; }

/* --- ✅ NIEUWE ALGEMENE CONTROLEBALK STIJL --- */
.controls-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 1em; /* Beetje padding voor de look */
}
.controls-bar span {
    color: #666;
    font-size: 0.9em;
    white-space: nowrap;
}
.controls-bar label {
    font-weight: bold;
    white-space: nowrap;
    margin: 0;
}
.controls-bar select {
    width: auto; /* Overruled de algemene 'width: 100%' */
    min-width: 220px;
    margin: 0; /* Verwijder de standaard marge */
}