/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:         #F5F2EE;
    --surface:    #FFFFFF;
    --border:     #E2DDD7;
    --text:       #1A1714;
    --muted:      #8C857D;
    --accent:     #E8624A;
    --accent-2:   #4A90D9;
    --today-bg:   #1A1714;
    --today-text: #F5F2EE;
    --shadow:     0 4px 24px rgba(26,23,20,.10);
    --radius:     14px;
    --font-head:  'Playfair Display', Georgia, serif;
    --font-body:  'DM Sans', sans-serif;
}

html, body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
}

.hidden { display: none !important; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 28px;
    height: 62px;
    background: var(--surface);
    border-bottom: 1.5px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-back {
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    padding: 6px 10px;
    border-radius: 8px;
    transition: color .15s, background .15s;
    margin-right: 4px;
}
.header-back:hover { color: var(--text); background: var(--bg); }

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.header-logo {
    font-size: 22px;
    color: var(--accent);
    line-height: 1;
}

.header-title {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.header-nav {
    display: flex;
    gap: 4px;
    background: var(--bg);
    border-radius: 10px;
    padding: 4px;
}

.view-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 7px;
    cursor: pointer;
    color: var(--muted);
    transition: all .18s;
}
.view-btn.active {
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 1px 6px rgba(26,23,20,.1);
}
.view-btn:hover:not(.active) { color: var(--text); }

.btn-new {
    background: var(--accent);
    color: #fff;
    border: none;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity .18s, transform .12s;
    white-space: nowrap;
}
.btn-new:hover { opacity: .88; transform: translateY(-1px); }
.btn-new:active { transform: translateY(0); }

/* =============================================
   CALENDAR BAR
   ============================================= */
.cal-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 28px 12px;
}

.cal-title {
    font-family: var(--font-head);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    min-width: 260px;
}

.nav-btn {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 9px;
    width: 36px; height: 36px;
    font-size: 18px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--text);
    transition: background .15s, transform .12s;
}
.nav-btn:hover { background: var(--bg); transform: scale(1.06); }

.btn-today {
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 13px;
    cursor: pointer;
    color: var(--muted);
    transition: all .15s;
}
.btn-today:hover { border-color: var(--text); color: var(--text); }

/* =============================================
   MAIN CONTENT
   ============================================= */
.main-content {
    padding: 0 28px 40px;
}

/* =============================================
   MONTH VIEW
   ============================================= */
.month-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 6px;
}
.month-grid-header div {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 6px 0;
}
.month-grid-header .weekend { color: #B5ADA5; }

.month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.month-cell {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 11px;
    min-height: 108px;
    padding: 8px 8px 6px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    overflow: hidden;
    position: relative;
}
.month-cell:hover { border-color: #C5BDB5; box-shadow: var(--shadow); }
.month-cell.other-month { background: #FAF8F5; opacity: .55; }
.month-cell.today .cell-day-num {
    background: var(--today-bg);
    color: var(--today-text);
    border-radius: 50%;
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.month-cell.weekend-cell { background: #FAF8F5; }

.cell-day-num {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 4px;
}

.cell-events {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cell-event {
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    border-radius: 5px;
    padding: 2px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: opacity .12s;
}
.cell-event:hover { opacity: .82; }

.cell-more {
    font-size: 10px;
    font-weight: 600;
    color: var(--muted);
    padding: 2px 4px;
}

/* =============================================
   WEEK VIEW
   ============================================= */
.week-grid {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.week-header {
    display: grid;
    grid-template-columns: 56px repeat(7, 1fr);
    border-bottom: 1.5px solid var(--border);
}

.week-header-cell {
    text-align: center;
    padding: 12px 4px;
    border-left: 1px solid var(--border);
}
.week-header-cell:first-child { border-left: none; }
.week-header-day-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .07em;
}
.week-header-day-num {
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-head);
    margin-top: 2px;
}
.week-header-cell.today-col .week-header-day-num {
    background: var(--today-bg);
    color: var(--today-text);
    border-radius: 50%;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    margin: 2px auto 0;
}

.week-body {
    display: grid;
    grid-template-columns: 56px repeat(7, 1fr);
    max-height: 560px;
    overflow-y: auto;
}

.week-time-col {
    display: flex;
    flex-direction: column;
}
.week-time-slot {
    height: 52px;
    display: flex;
    align-items: flex-start;
    padding-top: 4px;
    padding-right: 8px;
    justify-content: flex-end;
    font-size: 10px;
    color: var(--muted);
    font-weight: 500;
    border-bottom: 1px solid #F0EDE9;
}

.week-day-col {
    border-left: 1px solid var(--border);
    position: relative;
    cursor: pointer;
    transition: background .12s;
}
.week-day-col:hover { background: #FDFCFB; }

.week-hour-row {
    height: 52px;
    border-bottom: 1px solid #F0EDE9;
}

.week-event {
    position: absolute;
    left: 3px; right: 3px;
    border-radius: 7px;
    padding: 3px 6px;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    overflow: hidden;
    cursor: pointer;
    z-index: 2;
    transition: opacity .12s;
}
.week-event:hover { opacity: .85; }
.week-event-name { font-weight: 700; display: block; }
.week-event-time { opacity: .85; font-size: 10px; }

/* =============================================
   LIST VIEW
   ============================================= */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 700px;
    margin: 0 auto;
}

.list-day-group { }

.list-day-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
    padding-left: 4px;
}

.list-item {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: box-shadow .15s, border-color .15s;
}
.list-item:hover { border-color: #C5BDB5; box-shadow: var(--shadow); }

.list-color-bar {
    width: 5px;
    border-radius: 99px;
    align-self: stretch;
    min-height: 40px;
    flex-shrink: 0;
}

.list-info { flex: 1; }
.list-naam {
    font-weight: 600;
    font-size: 14px;
}
.list-omschrijving {
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}
.list-tijd {
    font-size: 12px;
    color: var(--muted);
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}

.list-empty {
    text-align: center;
    color: var(--muted);
    padding: 60px 0;
    font-size: 15px;
}

/* =============================================
   MODAL
   ============================================= */
#modal-overlay {
    position: fixed; inset: 0;
    background: rgba(26,23,20,.45);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn .18s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal {
    background: var(--surface);
    border-radius: 18px;
    padding: 32px 32px 28px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 60px rgba(26,23,20,.2);
    animation: slideUp .2s ease;
}

@keyframes slideUp {
    from { transform: translateY(16px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 16px; right: 18px;
    background: var(--bg);
    border: none;
    border-radius: 8px;
    width: 30px; height: 30px;
    font-size: 13px;
    cursor: pointer;
    color: var(--muted);
    transition: background .14s;
}
.modal-close:hover { background: var(--border); color: var(--text); }

.modal-title {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 22px;
}

.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 10px 13px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: border-color .15s;
    resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Color picker */
.color-picker {
    display: flex;
    gap: 10px;
    align-items: center;
}
.color-dot {
    width: 26px; height: 26px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: transform .15s, border-color .15s;
}
.color-dot:hover { transform: scale(1.15); }
.color-dot.active { border-color: var(--text); transform: scale(1.1); }

/* Modal actions */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.btn-save {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    padding: 11px 24px;
    cursor: pointer;
    transition: opacity .15s;
}
.btn-save:hover { opacity: .88; }

.btn-delete {
    background: none;
    color: #C0392B;
    border: 1.5px solid #C0392B;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    padding: 11px 18px;
    cursor: pointer;
    transition: background .14s;
}
.btn-delete:hover { background: #FDF0EE; }

/* =============================================
   DETAIL POPUP
   ============================================= */
#detail-popup {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26,23,20,.35);
    backdrop-filter: blur(3px);
    animation: fadeIn .15s ease;
}

.detail-inner {
    background: var(--surface);
    border-radius: 16px;
    width: 340px;
    overflow: hidden;
    box-shadow: var(--shadow);
    animation: slideUp .18s ease;
}

.detail-color-bar {
    height: 6px;
}

.detail-body {
    padding: 20px 22px 14px;
}

.detail-close {
    position: absolute;
    display: none; /* we use the overlay to close */
}

.detail-naam {
    font-family: var(--font-head);
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 6px;
}
.detail-omschrijving {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 12px;
    white-space: pre-wrap;
}
.detail-tijd {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .04em;
}

.detail-actions {
    padding: 12px 22px 18px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-edit {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 9px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    cursor: pointer;
    transition: border-color .14s;
}
.btn-edit:hover { border-color: var(--text); }

/* close detail via overlay click */
#detail-popup::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 700px) {
    .site-header { padding: 0 14px; gap: 8px; }
    .cal-bar { padding: 12px 14px 8px; }
    .main-content { padding: 0 8px 30px; }
    .cal-title { font-size: 19px; min-width: 0; }
    .month-cell { min-height: 70px; padding: 5px; }
    .form-row { grid-template-columns: 1fr; }
    .modal { margin: 12px; padding: 22px 18px 18px; }
    .header-title { display: none; }
    .btn-new { font-size: 12px; padding: 8px 12px; }
}

/* =============================================
   WEER TOEVOEGINGEN
   ============================================= */

/* Header right */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Weer badge (laden/fout) */
.weer-badge {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 5px;
}
.weer-badge.fout { color: #C0392B; }

@keyframes draaien {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.spin { display: inline-block; animation: draaien 1s linear infinite; }

/* Locatie knop header */
.btn-weer-loc {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 5px 9px;
    font-size: 14px;
    cursor: pointer;
    transition: background .14s;
}
.btn-weer-loc:hover { background: var(--border); }

/* ── Vandaag weer strip ── */
.vandaag-weer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 28px;
    background: linear-gradient(135deg, #FFF8F6 0%, #F0F7FF 100%);
    border-bottom: 1.5px solid var(--border);
    font-size: 13px;
    color: var(--text);
    flex-wrap: wrap;
}
.vw-icon   { font-size: 20px; line-height: 1; }
.vw-tekst  { font-weight: 500; }
.vw-loc-btn {
    margin-left: auto;
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    cursor: pointer;
    color: var(--muted);
    transition: border-color .14s, color .14s;
}
.vw-loc-btn:hover { border-color: var(--text); color: var(--text); }

/* ── Weer in maandcel ── */
.cell-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.cell-weer {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    line-height: 1;
}
.cell-weer-temp {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
}

/* ── Weer in week-header ── */
.week-header-cell {
    /* al gedefinieerd, uitbreiden */
}
.week-header-weer {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 4px 2px 6px;
    font-size: 11px;
}
.whw-icon  { font-size: 16px; }
.whw-temp  { font-weight: 600; font-size: 12px; }
.whw-temp small { font-weight: 400; color: var(--muted); }
.whw-regen { color: #4A90D9; font-size: 10px; font-weight: 500; }

/* ── Weer in lijst ── */
.list-day-label-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 6px;
    padding-left: 4px;
}
.list-dag-weer {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 4px;
}
.list-dag-weer strong { color: var(--text); }
.list-dag-weer em     { font-style: normal; }

/* ── Weer in detail popup ── */
.detail-weer {
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
    background: var(--bg);
    border-radius: 8px;
    padding: 7px 12px;
    display: inline-block;
}

/* ── Locatie modal ── */
#locatie-modal {
    position: fixed;
    inset: 0;
    z-index: 250;
    background: rgba(26,23,20,.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInLoc .18s ease;
}
@keyframes fadeInLoc {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.loc-modal-inner {
    background: var(--surface);
    border-radius: 18px;
    padding: 32px;
    width: 440px;
    max-width: 95vw;
    box-shadow: 0 20px 60px rgba(26,23,20,.2);
    position: relative;
    animation: slideUpLoc .2s ease;
}
@keyframes slideUpLoc {
    from { transform: translateY(14px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.loc-sluiten {
    position: absolute;
    top: 14px; right: 16px;
    background: var(--bg);
    border: none;
    border-radius: 8px;
    width: 30px; height: 30px;
    font-size: 13px;
    cursor: pointer;
    color: var(--muted);
    transition: background .14s;
}
.loc-sluiten:hover { background: var(--border); }

.loc-titel {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}
.loc-sub {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 18px;
}

.loc-zoek-rij {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.loc-zoek-rij input {
    flex: 1;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 10px 13px;
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    background: var(--bg);
    transition: border-color .15s;
}
.loc-zoek-rij input:focus { border-color: var(--accent); }
.loc-zoek-rij button,
#loc-zoek-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    cursor: pointer;
    transition: opacity .15s;
}
.loc-zoek-rij button:hover { opacity: .88; }

#loc-zoek-results {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 8px;
}
.loc-result-btn {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 13px;
    transition: border-color .14s, background .14s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.loc-result-btn:hover { border-color: var(--accent); background: #FFF8F6; }
.loc-result-btn strong { font-size: 14px; }
.loc-result-btn small  { color: var(--muted); font-size: 11px; }

.loc-info { font-size: 13px; color: var(--muted); text-align: center; padding: 10px 0; }

.loc-scheiding {
    text-align: center;
    position: relative;
    margin: 14px 0;
    color: var(--muted);
    font-size: 12px;
}
.loc-scheiding::before, .loc-scheiding::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: var(--border);
}
.loc-scheiding::before { left: 0; }
.loc-scheiding::after  { right: 0; }

.loc-geo-knop {
    width: 100%;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    padding: 12px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.loc-geo-knop:hover { border-color: var(--text); background: #F0EDE9; }

/* =============================================
   CEL WEER — volledig zichtbaar
   ============================================= */
.month-cell {
    min-height: 118px; /* iets hoger voor de weerregel */
}

/* De weer-rij onder de header */
.cell-weer {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    line-height: 1.3;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.cw-icon  { font-size: 13px; }
.cw-temps { font-weight: 600; color: var(--text); white-space: nowrap; }
.cw-regen { color: #4A90D9; font-weight: 500; white-space: nowrap; }

/* Zet cel-header en weer VERTICAAL zodat weer een eigen rij krijgt */
.cell-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2px;
}

/* Weer direct onder header, buiten cell-header */
.month-cell > .cell-weer {
    padding: 0 2px 3px;
    border-bottom: 1px solid #F0EDE9;
    margin-bottom: 5px;
}

/* =============================================
   MODAL WEERKAART
   ============================================= */
.modal-weer-kaart {
    margin-top: 16px;
    background: linear-gradient(135deg, #FFF8F6 0%, #F0F7FF 100%);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    animation: fadeInCard .2s ease;
}
@keyframes fadeInCard {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mwk-links {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mwk-icon {
    font-size: 32px;
    line-height: 1;
}
.mwk-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mwk-dag {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-transform: capitalize;
}
.mwk-omschr {
    font-size: 12px;
    color: var(--muted);
}

.mwk-rechts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}
.mwk-temps {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}
.mwk-min {
    font-size: 15px;
    font-weight: 400;
    color: var(--muted);
}
.mwk-regen {
    font-size: 12px;
    font-weight: 500;
    color: #4A90D9;
}
.mwk-droog {
    font-size: 12px;
    font-weight: 500;
    color: #5BAD6F;
}

/* =============================================
   RESPONSIVE / TELEFOON
   (staat bewust achteraan zodat deze regels winnen van de
    losse toevoegingen hierboven bij gelijke specificiteit)
   ============================================= */
@media (max-width: 720px) {
    body { -webkit-text-size-adjust: 100%; }

    /* ── Header: laat 'm afbreken, nav op een eigen rij ── */
    .site-header {
        flex-wrap: wrap;
        height: auto;
        min-height: 54px;
        padding: 8px 12px;
        gap: 8px 10px;
    }
    .header-left { flex: 0 1 auto; gap: 6px; min-width: 0; }
    .header-title { display: none; }
    .header-right { margin-left: auto; gap: 8px; }
    .header-nav {
        order: 3;
        flex: 1 0 100%;
        justify-content: center;
    }
    .view-btn { padding: 6px 16px; }
    .btn-new { font-size: 12px; padding: 8px 12px; }
    .weer-badge { font-size: 11px; }

    /* ── Kalenderbalk ── */
    .cal-bar {
        padding: 12px 12px 8px;
        gap: 8px;
    }
    .cal-title {
        min-width: 0;
        flex: 1;
        font-size: 18px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .nav-btn { width: 34px; height: 34px; font-size: 16px; }
    .btn-today { padding: 6px 10px; font-size: 11px; }

    .main-content { padding: 0 10px 28px; }
    .vandaag-weer { padding: 9px 14px; font-size: 12px; }

    /* ── Maandweergave: compacter, weer weg uit de cel ── */
    .month-grid { gap: 3px; }
    .month-grid-header div { font-size: 9px; padding: 4px 0; }
    .month-cell { min-height: 64px; padding: 4px; border-radius: 8px; }
    .cell-day-num,
    .month-cell.today .cell-day-num { width: 22px; height: 22px; font-size: 12px; margin-bottom: 2px; }
    .cell-weer { display: none; }
    .cell-event { font-size: 9.5px; padding: 1px 4px; border-radius: 4px; }
    .cell-more { font-size: 9px; }

    /* ── Weekweergave: zijwaarts scrollbaar ── */
    .week-grid { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .week-header,
    .week-body { min-width: 620px; }
    .week-body { max-height: 60vh; }

    /* ── Lijstweergave ── */
    .list-item { padding: 12px 14px; gap: 10px; }
    .list-info { min-width: 0; }
    .list-omschrijving { max-width: none; }
    .list-day-label-wrap { flex-wrap: wrap; gap: 6px 10px; }

    /* ── Modals: passend + geen iOS-zoom bij focus ── */
    #modal-overlay,
    #detail-popup,
    #locatie-modal { padding: 14px; }

    .modal {
        padding: 24px 18px 20px;
        border-radius: 16px;
        max-height: calc(100vh - 28px);
        max-height: calc(100dvh - 28px);
        overflow-y: auto;
    }
    .modal-title { font-size: 20px; margin-bottom: 16px; }
    .form-row { grid-template-columns: 1fr; }
    .form-group input,
    .form-group textarea,
    .loc-zoek-rij input { font-size: 16px; }
    .modal-actions { flex-wrap: wrap; }

    .detail-inner { width: 100%; max-width: 340px; }

    .loc-modal-inner {
        width: 100%;
        max-width: 100%;
        padding: 24px 18px;
        max-height: calc(100vh - 28px);
        max-height: calc(100dvh - 28px);
        overflow-y: auto;
    }
}

@media (max-width: 430px) {
    .header-right { flex: 1 0 100%; margin-left: 0; justify-content: flex-end; }
    .cal-title { font-size: 16px; }
    .month-cell { min-height: 56px; }
    .cell-event { font-size: 9px; }
    .view-btn { padding: 6px 12px; font-size: 12px; }
}