:root {
    --bg: #868686;
    --panel: #f1f1f1;
    --panel-soft: #fafafa;
    --text: #242424;
    --muted: #5f5f5f;
    --line: rgba(0,0,0,.12);
    --accent: #b69657;
    --accent-dark: #8b6f3e;
    --danger: #b14545;
    --shadow: 0 24px 80px rgba(0,0,0,.14);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: radial-gradient(circle at top left, #f5f5f5 0, #d6d6d6 42%, #c5c5c5 100%);
    color: var(--text);
    line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-bg::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(214,189,127,.08), transparent 25%),
        linear-gradient(300deg, rgba(255,255,255,.04), transparent 35%);
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 18px;
}

.login-card,
.panel {
    position: relative;
    width: min(100%, 480px);
    background: rgba(255,255,255,.88);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.login-card { padding: 42px; }

.brand {
    text-align: center;
    margin-bottom: 32px;
}

.brand-mark {
    width: 64px;
    height: 64px;
    display: inline-grid;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(145deg, #ececec, #d8d8d8);
    border: 1px solid var(--line);
    color: var(--accent);
    font-size: 28px;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 14px; }
h1 { font-size: clamp(28px, 4vw, 44px); letter-spacing: .08em; }
h2 { font-size: clamp(24px, 3vw, 34px); }
p { color: var(--muted); margin: 0 0 18px; }

.form-group { margin-bottom: 18px; }
label { display: block; margin-bottom: 8px; color: #e5e5e5; font-weight: 700; }
input[type="text"], input[type="password"] {
    width: 100%;
    padding: 15px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--text);
    font-size: 16px;
    outline: none;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(214,189,127,.14); }

.btn,
button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #171717;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover { background: #e2cb91; text-decoration: none; }
.btn.secondary { background: #ececec; color: var(--text); border: 1px solid var(--line); }

.login-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }

.error {
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: rgba(245,155,155,.12);
    border: 1px solid rgba(245,155,155,.35);
    color: var(--danger);
}

.page-header {
    max-width: 1120px;
    margin: 0 auto;
    padding: 26px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.header-title { display: flex; align-items: center; gap: 14px; }
.header-title .brand-mark { width: 48px; height: 48px; margin: 0; font-size: 20px; border-radius: 16px; }

.page-shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 18px 60px;
}
.small-shell { min-height: 100vh; display: grid; place-items: center; }
.panel { width: 100%; padding: 34px; }
.center-text { text-align: center; }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 26px 0;
}
.card {
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 24px;
}
.card p { font-size: 15px; }

.audio-list { margin-top: 22px; display: grid; gap: 12px; }
.audio-item {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #ffffff;
}
.audio-number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e9e9e9;
    color: var(--accent-dark);
    font-weight: 800;
}
.audio-title strong { color: var(--text); display: block; }
.audio-title span { color: var(--muted); font-size: 14px; }

.pdf-frame {
    width: 100%;
    height: 76vh;
    min-height: 520px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
}

.footer-note { margin-top: 24px; font-size: 14px; color: #8f8f8f; text-align: center; }

@media (max-width: 820px) {
    .grid-3 { grid-template-columns: 1fr; }
    .login-card, .panel { padding: 24px; border-radius: 22px; }
    .page-header { align-items: flex-start; flex-direction: column; }
    .audio-item { grid-template-columns: 38px 1fr; }
    .audio-item .btn { grid-column: 1 / -1; }
}


/* Selma Kurz audio popup */
.audio-open-btn { white-space: nowrap; }
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(38, 38, 38, .55);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 9999;
}
.modal-overlay.is-open { display: flex; }
.modal-card {
    width: min(100%, 760px);
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 26px;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    overflow: hidden;
}
.modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 16px;
    border-bottom: 1px solid rgba(0,0,0,.08);
}
.modal-head h3 { margin-bottom: 6px; }
.modal-close {
    border: 0;
    background: #ececec;
    color: #333;
    border-radius: 999px;
    width: 42px;
    height: 42px;
    font-size: 24px;
    cursor: pointer;
}
.modal-body { padding: 24px; }
.audio-player-wrap {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 22px;
    background: linear-gradient(180deg, #fafafa, #efefef);
    padding: 22px;
}
.audio-player-wrap audio {
    width: 100%;
    margin-bottom: 18px;
}
.equalizer {
    height: 110px;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 8px;
    padding: 8px 0 4px;
}
.eq-bar {
    width: 18px;
    min-height: 12px;
    height: 20px;
    border-radius: 999px 999px 6px 6px;
    background: linear-gradient(180deg, #cbb27c 0%, #a38242 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
    transition: height .10s linear;
}
.eq-caption {
    margin-top: 10px;
    font-size: 14px;
    color: #6a6a6a;
    text-align: center;
}
.page-subtle {
    color: #666 !important;
}
.header-title span.inline-user {
    color:#666;
    font-size:14px;
}
@media (max-width: 640px) {
    .modal-head, .modal-body { padding: 18px; }
    .eq-bar { width: 12px; gap: 6px; }
}


/* Aanpassing: breder, groter en responsive voor oudere doelgroep */
.page-header,
.page-shell {
    max-width: 1320px;
}

body {
    font-size: 18px;
    line-height: 1.72;
}

p,
.audio-title span,
.card p {
    font-size: 18px;
}

.login-card {
    width: min(100%, 560px);
    padding: 48px;
}

.panel {
    padding: clamp(32px, 4vw, 54px);
}

h1 {
    font-size: clamp(34px, 4vw, 52px);
    letter-spacing: .07em;
}

h2 {
    font-size: clamp(28px, 3vw, 40px);
    margin-top: 12px;
}

h3 {
    font-size: 22px;
}

.card {
    padding: 28px;
}

.audio-item {
    grid-template-columns: 52px 1fr auto;
    padding: 20px 22px;
}

.audio-number {
    width: 42px;
    height: 42px;
    font-size: 17px;
}

.btn,
button.btn {
    min-height: 54px;
    font-size: 17px;
    padding: 14px 26px;
}

input[type="text"],
input[type="password"] {
    min-height: 54px;
    font-size: 18px;
}

.pdf-frame {
    min-height: 620px;
}

.footer-note {
    font-size: 16px;
}

@media (max-width: 980px) {
    .page-shell,
    .page-header {
        max-width: 100%;
        padding-left: 22px;
        padding-right: 22px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 17px;
    }

    .login-card,
    .panel {
        padding: 24px 20px;
        border-radius: 22px;
    }

    h1 {
        font-size: 34px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 21px;
    }

    p,
    .audio-title span,
    .card p {
        font-size: 17px;
    }

    .audio-item {
        grid-template-columns: 44px 1fr;
        gap: 12px;
        padding: 18px;
    }

    .audio-item .btn,
    .audio-item .audio-open-btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .audio-number {
        width: 38px;
        height: 38px;
    }

    .login-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .login-actions .btn {
        width: 100%;
    }

    .pdf-frame {
        min-height: 70vh;
    }
}
