:root {
  --rot: #CC0000;          /* Canon Red */
  --gelb: #E6A700;
  --grau: #8a8a8a;
  --gruen: #2e8b57;
  --bg: #f5f5f5;
  --card: #ffffff;
  --text: #1a1a1a;
}
* { box-sizing: border-box; margin: 0; }
body {
  font-family: 'Montserrat', system-ui, sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px;
}
header {
  background: #fff; border-bottom: 3px solid var(--rot);
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px; flex-wrap: wrap; gap: 10px;
}
.brand { font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; gap: 16px; }
.logo { width: 92px; display: block; }           /* min 70px Web + Schutzraum via gap */
.logo-login { width: 130px; display: block; margin: 0 auto 18px; }
.brand span { color: var(--rot); }
.brand.big { font-size: 1.5rem; margin-bottom: 20px; text-align: center; }
nav a { margin-left: 20px; text-decoration: none; color: var(--text); font-weight: 600; }
nav a:hover { color: var(--rot); }
nav a.muted { color: #999; }
main { max-width: 1200px; margin: 24px auto; padding: 0 20px; }
.card {
  background: var(--card); border-radius: 10px; padding: 20px 24px;
  margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.card.warn { border-left: 5px solid var(--gelb); }
.card.ok { border-left: 5px solid var(--gruen); }
.card.delta { border-left: 5px solid var(--rot); }
h1 { font-size: 1.3rem; margin-bottom: 12px; }
h2 { font-size: 1.05rem; margin-bottom: 12px; }
.statrow { display: flex; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.stat {
  background: var(--card); border-radius: 10px; padding: 16px 28px; text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.08); min-width: 110px;
}
.stat .num { font-size: 2rem; font-weight: 700; }
.stat.rot .num { color: var(--rot); }
.stat.gelb .num { color: var(--gelb); }
.stat.grau .num { color: var(--grau); }
.dot {
  display: inline-block; width: 11px; height: 11px; border-radius: 50%;
  margin-right: 8px; vertical-align: baseline;
}
.dot.rot { background: var(--rot); }
.dot.gelb { background: var(--gelb); }
.dot.grau { background: var(--grau); }
.dot.ok { background: var(--gruen); }
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid #eee; white-space: nowrap; }
td:nth-child(2) { white-space: normal; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: #666; }
tr.krit td { background: #fff5f5; }
table.kv td:first-child { color: #666; width: 45%; }
a { color: var(--rot); }
.muted { color: #888; }
.small { font-size: .82rem; }
.error { color: var(--rot); margin: 8px 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .grid2 { grid-template-columns: 1fr; } }
input[type=text], input[type=password] {
  padding: 10px 14px; border: 1px solid #ccc; border-radius: 8px;
  font-family: inherit; font-size: 1rem; width: 100%;
}
.searchform { display: flex; gap: 10px; }
.searchform input { flex: 1; }
button {
  background: var(--rot); color: #fff; border: 0; border-radius: 8px;
  padding: 10px 22px; font-family: inherit; font-weight: 600; font-size: 1rem; cursor: pointer;
}
button:hover { filter: brightness(1.1); }
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-box {
  background: var(--card); padding: 40px; border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12); width: 340px;
}
.login-box form { display: flex; flex-direction: column; gap: 14px; }
input[type=file] { margin: 12px 0; display: block; }
