:root {
    --oranje: #f4802a;
    --oranje-donker: #d9631a;
    --tekst: #2b2b2b;
    --achtergrond: #fdfaf6;
    --vak: #ffffff;
    --rand: #ecdfd2;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--tekst);
    background: var(--achtergrond);
    line-height: 1.6;
}

a {
    color: var(--oranje-donker);
}

.site-header {
    background: var(--vak);
    border-bottom: 4px solid var(--oranje);
}

.header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.header-inner img.logo {
    height: 64px;
    width: 64px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--oranje);
}

.site-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--oranje-donker);
    margin: 0;
}

nav.main-menu {
    background: var(--oranje);
}

nav.main-menu ul {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.25rem;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

nav.main-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

nav.main-menu a:hover,
nav.main-menu a.actief {
    background: var(--oranje-donker);
}

main {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
    min-height: 40vh;
}

main h1 {
    color: var(--oranje-donker);
    margin-top: 0;
}

.btn {
    display: inline-block;
    background: var(--oranje);
    color: #fff;
    padding: 0.7rem 1.25rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

.btn:hover {
    background: var(--oranje-donker);
    color: #fff;
}

.site-footer {
    background: var(--vak);
    border-top: 1px solid var(--rand);
    text-align: center;
    padding: 1.25rem;
    font-size: 0.9rem;
    color: #777;
}

.melding {
    background: #eaf7ea;
    border: 1px solid #b8e0b8;
    color: #276227;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.foutmelding {
    background: #fbe9e9;
    border: 1px solid #eab5b5;
    color: #8a2222;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* Admin */
.admin-body {
    background: #f2f2f2;
}

.admin-wrap {
    max-width: 900px;
    margin: 2rem auto;
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.admin-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

table.admin-table {
    width: 100%;
    border-collapse: collapse;
}

table.admin-table th,
table.admin-table td {
    text-align: left;
    padding: 0.6rem;
    border-bottom: 1px solid var(--rand);
}

form.admin-form label {
    display: block;
    font-weight: 600;
    margin: 1rem 0 0.3rem;
}

form.admin-form input[type="text"],
form.admin-form input[type="number"],
form.admin-form input[type="password"],
form.admin-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

form.admin-form textarea {
    min-height: 220px;
    font-family: Consolas, monospace;
    font-size: 0.9rem;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    background: #f4f4f4;
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    padding: 0.4rem;
}

.editor-toolbar button,
.editor-toolbar select {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.editor-toolbar button:hover {
    background: var(--oranje);
    color: #fff;
    border-color: var(--oranje);
}

.toolbar-sep {
    width: 1px;
    align-self: stretch;
    background: #ccc;
    margin: 0 0.2rem;
}

.editor-visual {
    min-height: 220px;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 0 0 4px 4px;
    background: #fff;
}

.editor-visual:focus {
    outline: 2px solid var(--oranje);
    outline-offset: -1px;
}

.editor-visual a {
    color: var(--oranje-donker);
    text-decoration: underline;
}

.toggle-html-btn {
    margin-top: 0.5rem;
    background: none;
    border: none;
    color: #777;
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

form.admin-form .checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

form.admin-form .checkbox-row input {
    width: auto;
}

.admin-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
}

.stats-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.stats-card {
    flex: 1 1 140px;
    background: #fdf3ea;
    border: 1px solid var(--rand);
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
}

.stats-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--oranje-donker);
}

.stats-label {
    display: block;
    font-size: 0.8rem;
    color: #777;
    margin-top: 0.2rem;
}

.stats-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 180px;
    padding: 1rem 0.5rem 0;
    border-bottom: 1px solid var(--rand);
}

.stats-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.stats-bar-count {
    font-size: 0.75rem;
    color: #777;
    margin-bottom: 0.2rem;
}

.stats-bar {
    width: 100%;
    max-width: 24px;
    background: var(--oranje);
    border-radius: 3px 3px 0 0;
}

.stats-bar-label {
    font-size: 0.7rem;
    color: #777;
    margin-top: 0.4rem;
    white-space: nowrap;
}

.login-wrap {
    max-width: 380px;
    margin: 4rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
