* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Arial, sans-serif;
  background: #f4f5f7;
  color: #1c1e21;
}

a { color: #2a5db0; text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  background: #1c1e21;
  color: #fff;
}
.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.topbar .brand { color: #fff; font-weight: 700; font-size: 18px; }
.topbar .nav { display: flex; gap: 16px; flex: 1; }
.topbar .nav a, .topbar .logout { color: #cfd3d8; }
.topbar .nav a:hover, .topbar .logout:hover { color: #fff; }

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

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel {
  background: #fff;
  border: 1px solid #e2e4e8;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}

.login-box {
  max-width: 340px;
  margin: 80px auto;
  text-align: center;
}

.stack { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.field label { font-size: 13px; color: #555; }

input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
textarea { font-family: ui-monospace, Consolas, monospace; }

.btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  color: #1c1e21;
  cursor: pointer;
  font-size: 14px;
}
.btn:hover { background: #f0f1f3; text-decoration: none; }
.btn-primary { background: #2a5db0; color: #fff; border-color: #2a5db0; }
.btn-primary:hover { background: #234d92; }
.btn-danger { background: #fff; color: #b3261e; border-color: #e3a29d; }
.btn-danger:hover { background: #fbe3e1; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

.row-inline { display: flex; gap: 10px; align-items: center; }

.flash {
  background: #e7f3e8;
  border: 1px solid #b7dfb9;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 16px;
}
.flash p { margin: 0; }
.flash-error {
  background: #fbe3e1;
  border-color: #f0b8b3;
  color: #8a241d;
}
.error { color: #b3261e; }
.muted { color: #6b7076; font-size: 13px; }

.table-scroll { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; background: #fff; }
table.grid th, table.grid td {
  border: 1px solid #e2e4e8;
  padding: 10px 12px;
  text-align: left;
  font-size: 14px;
}
table.grid th { background: #fafafa; }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}
.badge-gruen { background: #e2f5e4; color: #1e7c2e; }
.badge-gelb { background: #fdf3d6; color: #8a6500; }
.badge-rot { background: #fbe3e1; color: #b3261e; }
.badge-unbekannt, .badge-fehlt { background: #eceef0; color: #555; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card h3 { margin: 0; }

.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 14px; }

.version { margin-bottom: 12px; }
.version-inhalt {
  white-space: pre-wrap;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  background: #fafafa;
  padding: 12px;
  border-radius: 6px;
  max-height: 300px;
  overflow-y: auto;
}
