body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f6f8;
  color: #222;
  margin: 0;
}
header {
  background: #123b69;
  color: #fff;
  padding: 18px 24px;
}
header a {
  color: #fff;
  text-decoration: none;
  margin-right: 14px;
}
.container {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px;
}
.card {
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
label {
  display: block;
  margin: 10px 0 6px;
  font-weight: bold;
}
input, select, textarea, button {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid #c7cbd1;
  border-radius: 6px;
  font: inherit;
}
textarea {
  min-height: 90px;
}
button, .button {
  display: inline-block;
  width: auto;
  background: #123b69;
  color: #fff;
  border: none;
  text-decoration: none;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 6px;
  margin-right: 8px;
}
.button.secondary {
  background: #6b7280;
}
.button.danger {
  background: #b42318;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}
.stat-value {
  font-size: 28px;
  font-weight: bold;
  margin-top: 8px;
}
.flash-success, .flash-error {
  padding: 12px 14px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.flash-success {
  background: #dcfce7;
  color: #166534;
}
.flash-error {
  background: #fee2e2;
  color: #991b1b;
}
.muted {
  color: #6b7280;
  font-size: 0.95rem;
}
.inactive {
  font-style: italic;
  color: #6b7280;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.actions-cell {
  white-space: nowrap;
}
.compact-stat .stat-value {
  font-size: 22px;
}


.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.header-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.header-user {
  margin-left: 0;
}

.header-logo-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-logo {
  height: 72px;
  width: auto;
  display: block;
}

@media (max-width: 700px) {
  .header-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-logo {
    height: 56px;
  }
}


/* --- TuS Design Anpassung --- */
body {
  background: #f4f7fb;
  font-family: Arial, sans-serif;
}

header {
  background: #0b4ea2;
  color: white;
  padding: 15px 20px;
}

nav a {
  color: white;
  margin-right: 15px;
  text-decoration: none;
  font-weight: bold;
}

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

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

h2, h3 {
  color: #0b4ea2;
}

button {
  background: #0b4ea2;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
}

button:hover {
  opacity: 0.9;
}

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

table th {
  background: #e6eef9;
  text-align: left;
  padding: 8px;
}

table td {
  padding: 8px;
  border-bottom: 1px solid #eee;
}


.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: bold;
}

.status-ok {
  background: #dcfce7;
  color: #166534;
}

.status-warning {
  background: #fef3c7;
  color: #92400e;
}

.status-danger {
  background: #fee2e2;
  color: #991b1b;
}

.status-neutral {
  background: #e5e7eb;
  color: #374151;
}

.status-neutral {
  background: #e5e7eb;
  color: #374151;
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.plain-list {
  margin: 0;
  padding-left: 18px;
}
.plain-list li {
  margin-bottom: 8px;
}


.welcome-card {
  text-align: center;
  padding: 40px;
}

.welcome-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.welcome-logo {
  height: 92px;
  width: auto;
  display: block;
}


.header-brand strong {
  font-size: 1.2rem;
  line-height: 1.25;
}

.header-brand small {
  font-size: 0.95rem;
  opacity: 0.95;
}

.welcome-card h2 {
  margin-top: 0;
  line-height: 1.3;
}


.status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: bold;
}

.status-online {
  background: #dcfce7;
  color: #166534;
}

.status-offline {
  background: #e5e7eb;
  color: #374151;
}

.status-inactive {
  background: #fee2e2;
  color: #991b1b;
}


.traffic-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.traffic-red {
  background: #dc2626;
}

.traffic-yellow {
  background: #f59e0b;
}

.traffic-green {
  background: #16a34a;
}

.overview-row.traffic-red td {
  background: #fef2f2;
}

.overview-row.traffic-yellow td {
  background: #fffbeb;
}

.overview-row.traffic-green td {
  background: #f0fdf4;
}


.pf11-warning {
  background: #fee2e2;
  border: 1px solid #b42318;
  color: #991b1b;
  padding: 12px 14px;
  border-radius: 6px;
  margin: 12px 0;
  font-weight: bold;
}

.pf11-warning-inline {
  display: inline-block;
  background: #b42318;
  color: #fff;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 0.9rem;
}

.stats-tabbar {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:16px 0;
}

.stats-tab {
  display:inline-block;
  padding:10px 14px;
  border-radius:8px;
  background:#eef2f7;
  color:#123;
  text-decoration:none;
  font-weight:600;
}

.stats-tab.active {
  background:#0b4f7a;
  color:#fff;
}

.stats-kpi-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
  gap:12px;
  margin:12px 0;
}

.stats-kpi-card {
  min-height:88px;
}

.stats-kpi-value {
  font-size:26px;
  font-weight:700;
  margin-top:8px;
}

.stats-table td,
.stats-table th {
  white-space:nowrap;
}

.stats-table .summary-row td {
  background:#f4f7fa;
}


.button.success {
  background: #14833b;
  color: #fff;
}
.button.success:hover {
  opacity: 0.92;
}
nav a.admin-green-link {
  color: #a6f3b9;
}
nav a.admin-green-link:hover {
  color: #d6ffe0;
}
.locked-quarter-row td {
  background: #fef2f2;
}
