/* Lokale Styles, keine externen Fonts oder Ressourcen. iPad-first, responsiv. */
:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1c2430;
  --muted: #5b6673;
  --line: #d9e0e7;
  --primary: #0b5fa5;
  --primary-dark: #084a80;
  --danger: #b3261e;
  --warn-bg: #fff6e0;
  --warn-line: #f0c36d;
  --info-bg: #e8f1fb;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
}
.topbar { background: #12263a; color: #fff; }
.topbar-inner {
  max-width: 1100px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { font-weight: 600; }
.badge {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  background: #f0c36d; color: #3a2a00; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 20px; }
.footer { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 24px 16px 40px; }
h1 { font-size: 1.6rem; margin: 8px 0 12px; }
h2 { font-size: 1.25rem; margin: 0 0 6px; }
h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.muted { color: var(--muted); margin-top: 0; }
.small { font-size: 0.9rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 18px;
}
.card-narrow { max-width: 520px; margin: 40px auto; }
.notice { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius); padding: 12px 14px; }
.alert { border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px; }
.alert-error { background: #fdecea; border: 1px solid #f2b8b5; color: #7a1b16; }
.alert-info { background: var(--info-bg); border: 1px solid #b7d1ee; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.count { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px 16px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field-wide { grid-column: 1 / -1; }
.field-check { flex-direction: row; align-items: center; gap: 10px; padding-top: 22px; }
.field-check input { width: 22px; height: 22px; margin: 0; }
label { font-size: 0.92rem; font-weight: 600; }
.field-check label { font-weight: 500; }
input[type="text"], input[type="email"], input[type="password"], select, textarea {
  font: inherit; color: inherit; min-height: 44px; padding: 8px 10px;
  border: 1px solid #b9c3cd; border-radius: 8px; background: #fff; width: 100%;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus { outline: 3px solid #9cc3ec; outline-offset: 1px; }
input:invalid, select:invalid, textarea:invalid { border-color: #d9a3a0; }
.row { border: 1px dashed #b9c3cd; border-radius: var(--radius); padding: 12px 14px 14px; margin: 0 0 12px; }
.row legend { font-weight: 700; padding: 0 6px; }
.row .btn-small { margin-top: 12px; }
.empty { color: var(--muted); font-style: italic; margin: 8px 0 12px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0 24px; }
.btn {
  display: inline-block; font: inherit; font-weight: 600; min-height: 44px; padding: 10px 18px;
  border-radius: 8px; border: 1px solid transparent; cursor: pointer; text-decoration: none; text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-ghost { background: transparent; color: inherit; border-color: var(--line); }
.topbar .btn-ghost { color: #fff; border-color: #4a6078; }
.btn-danger { background: #fff; color: var(--danger); border-color: var(--danger); }
.btn-small { min-height: 36px; padding: 6px 12px; font-size: 0.9rem; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.inline-form { display: inline; margin: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: #eef2f6; white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
table.kv th { width: 40%; background: #eef2f6; }
td.unknown { background: var(--warn-bg); font-weight: 600; }
.kv-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.kv-list dt { font-weight: 600; }
.kv-list dd { margin: 0; }
.unknowns li { background: var(--warn-bg); padding: 4px 8px; border-radius: 6px; margin-bottom: 4px; }
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 12px; }
  .card { padding: 14px; }
  .fields { grid-template-columns: 1fr; }
  .kv-list { grid-template-columns: 1fr; }
}
/* Navigation und RMM-Gerätebestand */
.nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nav-link { color: #fff; text-decoration: none; padding: 6px 10px; border-radius: 6px; font-weight: 600; }
.nav-link:hover { background: #24405c; }
.nav-active { background: #24405c; }
td.conf-high { color: #1e6b3a; font-weight: 600; }
td.conf-medium { background: var(--warn-bg); font-weight: 600; }
td.conf-low { background: #fdecea; font-weight: 700; }
