* { box-sizing: border-box; }
body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    background: #f4f5f7;
    color: #222;
}
.topbar {
    background: #1d2b3a;
    color: #fff;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar h1 { margin: 0; font-size: 20px; }
.topbar nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 16px;
    font-size: 14px;
    opacity: .85;
}
.topbar nav a:hover { opacity: 1; text-decoration: underline; }

main { padding: 24px; max-width: 1100px; margin: 0 auto; }

table.uebersicht {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
table.uebersicht th, table.uebersicht td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    font-size: 14px;
}
table.uebersicht th { background: #eef1f4; font-weight: 600; }
table.uebersicht a { color: #1d4ed8; text-decoration: none; }

.status-ok { }
.status-bald { background: #fff7e0; }
.status-ueberfaellig { background: #fde2e1; }
.status-erledigt { color: #9ca3af; }
.status-erledigt td { text-decoration: line-through; }

.erledigt-checkbox { width: 18px; height: 18px; }

body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.login-box {
    background: #fff;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
    width: 300px;
}
.login-box h1 { font-size: 18px; margin-top: 0; text-align: center; }
.login-box label { display: block; margin-bottom: 14px; font-size: 14px; }
.login-box input {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.login-box button {
    width: 100%;
    padding: 10px;
    background: #1d2b3a;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.fehler { color: #c0392b; font-size: 13px; }

.formular { background: #fff; padding: 24px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.formular label { display: block; margin-bottom: 12px; font-size: 14px; }
.formular input, .formular select { width: 100%; padding: 6px; margin-top: 4px; border: 1px solid #ccc; border-radius: 4px; }
.pos-row { display: grid; grid-template-columns: 1.2fr 1.5fr 1fr 1fr 1fr auto; gap: 8px; align-items: end; margin-bottom: 8px; }
.pos-row label { margin-bottom: 0; font-size: 12px; }
button, .btn { cursor: pointer; }
