/* Frontend Styles für Vereinsmitglieder */
.vereinsmitglieder-frontend {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Filter-Formular */
.vereinsmitglieder-filter {
    background-color: #f8f9fa;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-item label {
    font-weight: bold;
    color: #333;
}

.filter-item select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    cursor: pointer;
}

.filter-item select:hover {
    border-color: #0073aa;
}

.filter-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.filter-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-actions .button-primary {
    background-color: #0073aa;
    color: white;
}

.filter-actions .button {
    background-color: #f1f1f1;
    color: #333;
}

/* Mitglieder-Tabelle */
.vm-mitglieder-table-container {
    overflow-x: auto;
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vm-mitglieder-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid #ddd;
}

.vm-mitglieder-table th,
.vm-mitglieder-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
}

.vm-mitglieder-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.vm-mitglieder-table tr:hover {
    background-color: #f8f9fa;
}

.vm-col-name {
    min-width: 200px;
}

.vm-col-abteilung {
    min-width: 150px;
}

.vm-col-datenschutz {
    min-width: 200px;
}

.vm-col-actions {
    width: 100px;
    text-align: center;
}

.vm-anzeige-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
    font-size: 14px;
    white-space: nowrap;
}

.vm-anzeige-button:hover {
    background-color: #005177;
    color: white;
}

/* Status-Meldungen */
.loading, .error, .no-results {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.error {
    color: #dc3545;
    background-color: #f8d7da;
}

.loading {
    color: #0056b3;
    background-color: #cce5ff;
}

.no-results {
    color: #856404;
    background-color: #fff3cd;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .filter-actions button {
        width: 100%;
        justify-content: center;
    }
    
    .hide-on-mobile {
        display: none !important;
    }
    
    .vm-mitglieder-table {
        font-size: 14px;
    }
    
    .vm-mitglieder-table th,
    .vm-mitglieder-table td {
        padding: 8px;
    }
    
    .vm-col-name {
        min-width: 150px;
    }
    
    .vm-col-abteilung {
        min-width: 100px;
    }
    
    .vm-col-actions {
        width: 50px;
    }
    
    .vm-anzeige-button {
        padding: 8px;
        justify-content: center;
    }
}

/* Icons */
.fas {
    display: inline-block;
    width: 16px;
    text-align: center;
}

/* Detailansicht */
.vm-mitglied-details {
    background: white;
    padding: 25px;
    border-radius: 5px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vm-back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.vm-back-link:hover {
    color: #005177;
}

.vm-detail-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #ddd;
}

.vm-detail-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.vm-detail-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.vm-abteilungen-list,
.vm-datenschutz-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vm-abteilungen-list li,
.vm-datenschutz-list li {
    margin-bottom: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.vm-zustimmung-date {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-top: 4px;
}

.vm-datenschutz-beschreibung {
    margin-top: 4px;
    color: #666;
    font-size: 0.9em;
}

/* Bestehende Styles beibehalten */
.vm-filter-container {
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.vm-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.vm-filter-group {
    flex: 1;
    min-width: 200px;
}

.vm-filter-group:last-child {
    flex: 0 0 auto;
}

.vm-filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.vm-select,
.vm-filter-group input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.vm-search-button {
    display: inline-block;
    background-color: #f0f0f1;
    color: #000000 !important;
    padding: 8px 20px;
    border: 1px solid #2271b1;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    min-width: 120px;
    text-align: center;
    transition: all 0.2s;
}

.vm-search-button:hover {
    background-color: #2271b1;
    color: #ffffff !important;
}

.vm-loading,
.vm-error,
.vm-no-results {
    text-align: center;
    padding: 20px;
    color: #666;
}

.vm-error {
    color: #dc3232;
}

.vm-mitglieder-table-container {
    overflow-x: auto;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.vm-mitglieder-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.vm-mitglieder-table th {
    background: #f1f5f9;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #444;
    border-bottom: 2px solid #e2e8f0;
}

.vm-mitglieder-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
}

.vm-mitglieder-table tr:hover {
    background-color: #f8fafc;
}

.vm-back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #2271b1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.vm-back-link:hover {
    color: #135e96;
}

.vm-mitglied-details {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.vm-mitglied-details h2 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
}

.vm-detail-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.vm-detail-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.vm-detail-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #334155;
}

.vm-abteilungen-list,
.vm-zustimmungen-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vm-abteilungen-list li,
.vm-zustimmungen-list li {
    margin-bottom: 8px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 4px;
}

.vm-zustimmung-date {
    display: block;
    font-size: 0.85em;
    color: #64748b;
    margin-top: 4px;
}

.vm-search-hint {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
    font-style: italic;
}