/* Basis */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background: #f9f9f9;
    color: #333;
}

main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Header & Footer */
header,
.site-footer {
    background: #0066cc;
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
}

header .top-bar {
    display: flex;
    justify-content: flex-end;
    margin: 0 auto;
    max-width: 800px;
}

header h1 { margin-top: 1rem; }
.site-footer p { margin: 0; }

/* Navigatie - hoofdmenu en submenu gecombineerd */
.buttons-bar,
.submenu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    align-items: center;
}

.buttons-bar img {
    height: 2.5rem;
    width: auto;
}

.header-button,
.submenu a {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    background: #0066cc;
    color: #fff;
    border-bottom: 2px solid #fff;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.header-button:hover,
.submenu a:hover {
    background: #004c99;
}

.header-button.active {
    border-left: 2px solid #fff;
}

.submenu {
    margin-top: 0.2rem;
    padding: 0.1rem 0;
}
.submenu.active {
    border-left: 2px solid #fff;
    background: #004c99;
}

.submenu a {
    font-size: 0.85em;
}

.future-link {
    color: #ccc;
    background: #666;
    pointer-events: none;
}

.future-link::after {
    content: ' (binnenkort)';
    font-size: 0.85em;
    color: #aaa;
}

/* Knoppen */
button.button,
a.button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background: #0066cc;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

button.button:hover { background: #004c99; }

/* Formulier */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
}

.honeypot { display: none; }

#resultMsg {
    margin-top: 1rem;
    color: #006600;
    background: #e6ffe6;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

/* CV secties */
main section {
    border-bottom: 2px solid #ddd;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

main section:last-child {
    border-bottom: none;
}

/* Publicaties - Correcte lay-out */
.publication-item {
    margin-bottom: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f5f5f5;
    overflow: hidden;
}

.publication-item summary {
    padding: 0.6rem 1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #f5f5f5;
    transition: background 0.2s;
}

/* Verberg standaard browser-pijl */
.publication-item summary::-webkit-details-marker {
    display: none;
}

/* Achtergrondkleur veranderen bij openen */
.publication-item[open] summary {
    background: #e6e6e6;
    border-bottom: 1px solid #ddd;
}

/* Titel over de volle breedte */
.pub-header h3 {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.3;
    width: 100%;
}

/* Referentie en pijl op één rij onder de titel */
.pub-header .pub-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    width: 100%;
}

.pub-ref {
    margin: 0;
    color: #777;
    font-size: 0.9em;
    line-height: 1.4;
}

.pub-ref a {
    color: #0066cc;
    text-decoration: underline;
}

/* De pijl rechts */
.pub-arrow {
    font-size: 0.8em;
    color: #555;
    transition: transform 0.2s ease;
    margin-left: 1rem;
}

.publication-item[open] .pub-arrow {
    transform: rotate(180deg);
}

/* Inhoud van de publicatie */
.publication-item > div {
    padding: 0.5rem 1rem;
    background: #fff;
}

.abstract-text {
    margin: 0;
    line-height: 1.6;
    color: #444;
}

/* Responsive */
@media (max-width: 560px) {
    .submenu {
        flex-direction: column;
    }
}