.csb-songbooks {
    margin: 24px 0;
    font-family: inherit;
}

/* -----------------------------------------------------------------------
   Filter-Leiste
----------------------------------------------------------------------- */

.csb-filter {
    background: #f5f6f7;
    border: 1px solid #dde0e3;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.csb-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.csb-filter-label {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.csb-filter select,
.csb-filter input[type="text"] {
    padding: 7px 11px;
    border: 1px solid #c3c7cb;
    border-radius: 5px;
    font-size: 14px;
    background: #fff;
}

.csb-filter input[type="text"] {
    min-width: 180px;
}

.csb-btn {
    padding: 8px 20px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.csb-btn:hover {
    background: #135e96;
}

.csb-reset {
    font-size: 13px;
    color: #666;
    text-decoration: underline;
}

/* -----------------------------------------------------------------------
   Zusammenfassungszeile
----------------------------------------------------------------------- */

.csb-summary {
    color: #555;
    font-size: 13px;
    margin-bottom: 12px;
}

/* -----------------------------------------------------------------------
   Haupttabelle (ein Lied pro Zeile)
----------------------------------------------------------------------- */

.csb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.csb-table th,
.csb-table td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #e4e7ea;
    vertical-align: middle;
}

.csb-table th {
    background: #eef0f3;
    font-weight: 700;
    color: #333;
    border-bottom: 2px solid #cfd3d8;
}

.csb-table .col-title  { width: 36%; }
.csb-table .col-voices { width: 64%; }

.csb-table tbody tr:hover {
    background: #f9fafb;
}

/* Songtitel-Spalte */
.csb-song-title {
    font-weight: 600;
    color: #1a1a1a;
}

/* Stimmen-Spalte: Buttons inline nebeneinander */
.csb-voices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

/* Ein Stimm-Block: Button + optionaler "Stand"-Text darunter */
.csb-voice-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

/* Download-Button pro Stimme */
.csb-download-btn {
    display: inline-block;
    padding: 6px 14px;
    background: #2271b1;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s;
    line-height: 1.4;
}

.csb-download-btn:hover {
    background: #135e96;
}

/* "Stand: …" unter dem Button */
.csb-notes-date {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
    text-align: center;
}

/* Leermeldung */
.csb-empty {
    color: #777;
    font-style: italic;
    padding: 20px 0;
}

/* -----------------------------------------------------------------------
   Responsive
----------------------------------------------------------------------- */

@media ( max-width: 700px ) {
    .csb-filter-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .csb-table .col-title  { width: 40%; }
    .csb-table .col-voices { width: 60%; }

    .csb-table th,
    .csb-table td {
        padding: 10px 10px;
    }

    .csb-voices {
        gap: 7px;
    }

    .csb-download-btn {
        font-size: 12px;
        padding: 5px 10px;
    }
}

@media ( max-width: 480px ) {
    .csb-table,
    .csb-table thead,
    .csb-table tbody,
    .csb-table th,
    .csb-table td,
    .csb-table tr {
        display: block;
    }

    .csb-table thead {
        display: none;
    }

    .csb-table td {
        border: none;
        padding: 6px 0;
    }

    .csb-table tr {
        border-bottom: 2px solid #dde0e3;
        padding: 12px 0;
    }

    .csb-song-title {
        font-size: 15px;
        margin-bottom: 6px;
    }
}
