* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f4f6;
    color: #222;
}

a {
    color: inherit;
}

.site-header {
    background: #20242a;
    color: #fff;
    padding: 22px 16px;
}

.site-header .inner,
.container {
    max-width: 1180px;
    margin: 0 auto;
}

.site-header h1 {
    margin: 0 0 5px;
    font-size: 28px;
}

.site-header p {
    margin: 0;
    color: #cfd3d8;
}

.container {
    padding: 24px 16px 40px;
}

.toolbar,
.card,
.calendar-wrap {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 14px rgba(0,0,0,.08);
}

.toolbar {
    padding: 14px;
    margin-bottom: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    display: inline-block;
    border: 0;
    border-radius: 6px;
    padding: 10px 14px;
    background: #292e35;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    opacity: .9;
}

.btn-primary {
    background: #d96d19;
}

.btn-success {
    background: #2d784b;
}

.btn-danger {
    background: #a93434;
}

.btn-light {
    background: #e5e7eb;
    color: #222;
}

.calendar-wrap {
    overflow: hidden;
    margin-bottom: 24px;
}

.calendar-title {
    padding: 18px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.calendar-title h2 {
    margin: 0;
    text-transform: capitalize;
}

.weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.weekdays {
    background: #e8eaed;
    font-weight: bold;
    text-align: center;
}

.weekdays div {
    padding: 11px 5px;
}

.day {
    min-height: 120px;
    padding: 7px;
    border-right: 1px solid #e2e2e2;
    border-bottom: 1px solid #e2e2e2;
    background: #fff;
}

.day:nth-child(7n) {
    border-right: 0;
}

.day.empty {
    background: #f8f8f8;
}

.day-number {
    font-weight: bold;
    margin-bottom: 7px;
}

.day.today .day-number span {
    display: inline-flex;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: #d96d19;
    color: #fff;
}

.event {
    display: block;
    margin: 0 0 5px;
    padding: 5px 7px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    line-height: 1.3;
    overflow: hidden;
}

.event-tourrit { background: #2d784b; }
.event-clubavond { background: #3469a6; }
.event-evenement { background: #b35e17; }
.event-overig { background: #686868; }

.section-title {
    margin: 28px 0 14px;
}

.event-list {
    display: grid;
    gap: 12px;
}

.upcoming-card {
    display: flex;
    align-items: center;
    gap: 18px;
}

.upcoming-photo-link {
    flex: 0 0 90px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.16);
}

.upcoming-photo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.upcoming-content {
    min-width: 0;
}

.card {
    padding: 18px;
}

.card h3 {
    margin: 0 0 8px;
}

.meta {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.detail-text {
    white-space: pre-line;
    line-height: 1.6;
}

.event-photo {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 8px;
    margin: 14px 0 18px;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.field-help { color: #666; font-size: 13px; margin-top: 6px; }
.check-label { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: normal; }
.check-label input { width: auto; }
.admin-preview { display: block; max-width: 240px; max-height: 160px; object-fit: cover; border-radius: 6px; margin-top: 10px; }

@media (max-width: 550px) {
    .upcoming-card { gap: 13px; }
    .upcoming-photo-link { flex-basis: 68px; width: 68px; height: 68px; }
}

.form-card {
    max-width: 760px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #bbb;
    border-radius: 6px;
    font: inherit;
    background: #fff;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.notice {
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: 6px;
    background: #eaf5ee;
    border: 1px solid #b9dec6;
}

.error {
    background: #fdecec;
    border-color: #e8b8b8;
}

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

.admin-table th,
.admin-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    background: #f3f4f6;
}

.login-box {
    max-width: 420px;
    margin: 60px auto;
}

.small {
    font-size: 13px;
    color: #666;
}

@media (max-width: 760px) {
    .day {
        min-height: 88px;
        padding: 4px;
    }

    .event {
        font-size: 10px;
        padding: 4px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-table {
        font-size: 13px;
    }
}

@media (max-width: 560px) {
    .calendar-wrap {
        overflow-x: auto;
    }

    .weekdays,
    .calendar-grid {
        min-width: 700px;
    }

    .toolbar {
        align-items: stretch;
    }

    .toolbar-left,
    .toolbar-right {
        width: 100%;
    }
}
