/* ── Qurbani öffentliche Liste ───────────────────────────────── */

.qbl-wrap {
    max-width: 1200px;
    margin: 24px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a1a;
}

/* Header */
.qbl-header {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #2e7d32;
    color: #fff;
    padding: 18px 24px;
    border-radius: 10px 10px 0 0;
    font-size: 1.5rem;
}
.qbl-header h2 { margin: 0 0 3px; font-size: 1.25rem; font-weight: 800; }
.qbl-header p  { margin: 0; opacity: .85; font-size: .85rem; }

/* Filter */
.qbl-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    background: #f6f7f7;
    border: 1px solid #dce0e4;
    border-top: none;
    padding: 14px 16px;
}
.qbl-filter input[type="text"],
.qbl-filter input[type="date"],
.qbl-filter select {
    padding: 8px 12px;
    border: 1.5px solid #b0b8c1;
    border-radius: 6px;
    font-size: .88rem;
    height: 38px;
    background: #fff;
    box-sizing: border-box;
}
.qbl-filter input[type="text"] { min-width: 220px; }
.qbl-date-range {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .88rem;
    color: #555;
}
.qbl-btn-filter,
.qbl-btn-reset {
    padding: 8px 18px;
    border-radius: 6px;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 38px;
}
.qbl-btn-filter { background: #2e7d32; color: #fff; }
.qbl-btn-filter:hover { background: #388e3c; color: #fff; }
.qbl-btn-reset  { background: #eeeeee; color: #444; }
.qbl-btn-reset:hover  { background: #e0e0e0; }

/* Zusammenfassung */
.qbl-summary {
    display: flex;
    gap: 20px;
    padding: 10px 16px;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-top: none;
    font-size: .9rem;
    color: #1b5e20;
}
.qbl-summary strong { font-weight: 800; }

/* Tabellen-Container: horizontal scrollbar auf Mobile */
.qbl-table-wrap {
    overflow-x: auto;
    border: 1px solid #dce0e4;
    border-top: none;
    border-radius: 0 0 10px 10px;
}

/* Tabelle */
.qbl-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    font-size: .86rem;
    background: #fff;
}
.qbl-table thead tr { background: #388e3c; }
.qbl-table thead th {
    color: #fff;
    font-weight: 700;
    text-align: left;
    padding: 11px 13px;
    border-right: 1px solid #2e7d32;
    white-space: nowrap;
}
.qbl-table thead th:last-child { border-right: none; }
.qbl-table tbody tr { border-bottom: 1px solid #e8e8e8; transition: background .12s; }
.qbl-table tbody tr:nth-child(even) { background: #f9fafb; }
.qbl-table tbody tr:hover { background: #f1f8e9; }
.qbl-table tbody td {
    padding: 10px 13px;
    vertical-align: middle;
    border-right: 1px solid #eeeeee;
}
.qbl-table tbody td:last-child { border-right: none; }

/* Status-Badges */
.qbl-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid transparent;
}
.qbl-badge-open        { background: #e3f2fd; color: #1565c0; border-color: #90caf9; }
.qbl-badge-paid        { background: #e8f5e9; color: #1b5e20; border-color: #a5d6a7; }
.qbl-badge-in_progress { background: #fff8e1; color: #e65100; border-color: #ffe082; }
.qbl-badge-completed   { background: #ede7f6; color: #4527a0; border-color: #ce93d8; }

/* Notizen */
.qbl-notes {
    font-size: .82rem;
    color: #555;
    cursor: help;
}

/* Leer */
.qbl-empty {
    text-align: center;
    padding: 50px;
    color: #888;
    font-size: 1.05rem;
    background: #fff;
    border: 1px solid #dce0e4;
    border-top: none;
    border-radius: 0 0 10px 10px;
}

/* Paginierung */
.qbl-pagination {
    display: flex;
    gap: 6px;
    margin-top: 16px;
    flex-wrap: wrap;
    justify-content: center;
}
.qbl-page-btn {
    padding: 7px 14px;
    border: 1.5px solid #b0b8c1;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: .88rem;
    font-weight: 600;
    background: #fff;
    transition: all .15s;
}
.qbl-page-btn:hover { border-color: #2e7d32; color: #2e7d32; background: #e8f5e9; }
.qbl-page-active { background: #2e7d32 !important; color: #fff !important; border-color: #2e7d32 !important; }

/* Hinweis unten */
.qbl-readonly-note {
    text-align: center;
    margin-top: 14px;
    color: #888;
    font-size: .82rem;
}

/* ── Passwort-Formular ───────────────────────────────────────── */
.qbl-pw-wrap {
    display: flex;
    justify-content: center;
    padding: 50px 20px;
}
.qbl-pw-box {
    background: #fff;
    border: 1px solid #dce0e4;
    border-radius: 12px;
    padding: 40px 36px;
    text-align: center;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.qbl-pw-icon { font-size: 3rem; margin-bottom: 12px; }
.qbl-pw-box h3 { margin: 0 0 8px; font-size: 1.2rem; color: #1a1a1a; }
.qbl-pw-box p  { margin: 0 0 20px; color: #666; font-size: .9rem; }
.qbl-pw-error {
    background: #ffebee;
    color: #c62828;
    border-radius: 6px;
    padding: 8px 14px;
    margin-bottom: 14px;
    font-size: .88rem;
    font-weight: 600;
}
.qbl-pw-box form { display: flex; flex-direction: column; gap: 12px; }
.qbl-pw-box input[type="password"] {
    padding: 11px 14px;
    border: 1.5px solid #b0b8c1;
    border-radius: 7px;
    font-size: .95rem;
    text-align: center;
    letter-spacing: 2px;
}
.qbl-pw-box input:focus { outline: none; border-color: #2e7d32; box-shadow: 0 0 0 3px rgba(46,125,50,.15); }
.qbl-pw-box button {
    padding: 11px;
    background: #2e7d32;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
}
.qbl-pw-box button:hover { background: #388e3c; }

/* ── Mobile: Karten-Layout ───────────────────────────────────── */
@media (max-width: 700px) {
    .qbl-filter { flex-direction: column; align-items: stretch; }
    .qbl-filter input[type="text"],
    .qbl-filter select,
    .qbl-btn-filter,
    .qbl-btn-reset { width: 100%; }
    .qbl-date-range { flex-direction: column; }
    .qbl-summary { flex-direction: column; gap: 6px; }
}
