body {
    background: #f2f4f7;
    font-family: Arial, sans-serif;
}

.card {
    width: 420px;
    margin: 60px auto;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

h2 {
    margin-top: 0;
    text-align: center;
}

label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

input, textarea, select {
    width: 100%;
    margin-top: 5px;
    padding: 8px;
    box-sizing: border-box;
}

select[multiple] {
    height: 90px;
}

button {
    margin-top: 20px;
    width: 100%;
    padding: 10px;
    border: none;
    background: #007bff;
    color: #fff;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background: #0056b3;
}

.success {
    border-left: 6px solid #28a745;
}

.error {
    border-left: 6px solid #dc3545;
}

/* =========================
   Admin-Seite Erweiterungen
   ========================= */

.card-wide {
    width: min(1200px, calc(100% - 40px));
}

.filters {
    margin-top: 10px;
    padding: 10px 0 0 0;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(160px, 1fr));
    gap: 12px;
    align-items: end;
}

.filters-actions {
    display: flex;
    gap: 10px;
    align-items: end;
}

.filters-actions button {
    margin-top: 0;
    width: auto;
    padding: 10px 14px;
}

.btn-secondary {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 5px;
    background: #e9ecef;
    color: #111;
    text-decoration: none;
    border: 1px solid #d0d7de;
}

.btn-secondary:hover {
    background: #dde2e6;
}

.stats {
    margin-top: 14px;
    padding: 10px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    font-size: 14px;
}

.btn-link {
    text-decoration: none;
}

.table-wrap {
    margin-top: 14px;
    overflow-x: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.log-table th, .log-table td {
    padding: 10px;
    border-bottom: 1px solid #eef1f4;
    vertical-align: top;
    text-align: left;
}

.log-table thead th {
    background: #f6f8fa;
    position: sticky;
    top: 0;
    z-index: 1;
}

.log-table tbody tr:hover {
    background: #fbfdff;
}

.subject {
    max-width: 360px;
    word-break: break-word;
}

.muted {
    color: #6c757d;
    padding: 14px;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    border: 1px solid transparent;
}

.badge-success {
    background: #e9f7ef;
    border-color: #b7e4c7;
    color: #1b7f3a;
}

.badge-error {
    background: #fdecea;
    border-color: #f5c2c7;
    color: #b02a37;
}

.hint {
    margin-top: 14px;
    color: #6c757d;
    font-size: 13px;
}

/* Mobile */
@media (max-width: 980px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
    .stats {
        grid-template-columns: 1fr;
    }
}
