* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    color: #222;
}

.topbar {
    background: #1f2937;
    color: white;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar a {
    color: white;
    margin-left: 16px;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.login-card {
    max-width: 420px;
    margin: 80px auto;
}

h1, h2, h3 {
    margin-top: 0;
}

label {
    display: block;
    margin-top: 12px;
    margin-bottom: 4px;
    font-weight: bold;
}

input,
select,
textarea {
    width: 100%;
    padding: 9px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
}

button {
    margin-top: 16px;
    padding: 10px 16px;
    border: none;
    border-radius: 5px;
    background: #2563eb;
    color: white;
    cursor: pointer;
}

button.danger {
    background: #dc2626;
}

.alert {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 16px;
}

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

th,
td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

th {
    background: #f9fafb;
}

.status-offen td {
    border-left: 4px solid #2563eb;
}

.status-erledigt td {
    border-left: 4px solid #16a34a;
}

.status-ueberfaellig td {
    border-left: 4px solid #dc2626;
}

.status-spam td {
    border-left: 4px solid #6b7280;
    opacity: 0.7;
}

.message {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 14px;
    border-left: 4px solid #2563eb;
}

.message header {
    display: flex;
    justify-content: space-between;
    color: #555;
    margin-bottom: 10px;
}

.message pre {
    white-space: pre-wrap;
    font-family: inherit;
}

.inline-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}