body {
  justify-content: center;
  align-items: center;
  min-height: 90vh;
  background: #f5f6fa;
  font: 14px/1.4 system-ui, Arial, sans-serif;
  margin: 0 auto;
  padding: 2em;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 3em 5em;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  background: #fff;
}

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

th,
td {
  padding: 8px;
  border-bottom: 1px solid #e5e7eb;
	text-align:left;
}

.small {
  font-size: 12px;
  color: #6b7280;
}
.capitalize{
text-transform: capitalize;	
}
.badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.badge.ok {
  background: #d1fae5;
}

.badge.fail {
  background: #fee2e2;
}

/* Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #d1d5db;
  border-radius: 9999px;
  transition: .2s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}

input:checked + .slider {
  background: #10b981;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Progress */
.progress {
  background: #e5e7eb;
  border-radius: 8px;
  height: 10px;
  width: 120px;
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
}

.progress.ok > span {
  background: #10b981;
}

.progress.warn > span {
  background: #f59e0b;
}

.progress.bad > span {
  background: #ef4444;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  background: #3498db;
  color: #fff;
  font-weight: 600;
  transition: background 0.2s;
  margin-left: 8px;
}

.btn:hover {
  background: #2980b9;
}

.btn-secondary {
  background: #95a5a6;
}

.btn-secondary:hover {
  background: #7f8c8d;
}

th:nth-child(1), td:nth-child(1) { width: 18%; } /* Name */
th:nth-child(2), td:nth-child(2) { width: 4%; }  /* Aktiv */
th:nth-child(3), td:nth-child(3) { width: 18%; } /* URL */
th:nth-child(4), td:nth-child(4) { width: 6%; }  /* HTTP */
th:nth-child(5), td:nth-child(5) { width: 10%; } /* CMS/Version */
th:nth-child(6), td:nth-child(6) { width: 10%; } /* Letzter Check */
th:nth-child(7), td:nth-child(7) { width: 8%; } /* Latenz */
th:nth-child(8), td:nth-child(8) { width: 8%; } /* Ø 7d */
th:nth-child(9), td:nth-child(9) { width: 8%; }  /* Uptime */
th:nth-child(10), td:nth-child(10) { width: 6%; } /* SSL */
th:nth-child(11), td:nth-child(11) { width: 10%; } /* Notizen */

/* Stat-Kacheln unterhalb der Überschrift */
.stats{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:12px;
  margin: 12px 0 16px;
}
.stat{
  background:#bcdaee;
  border:2px solid #e5e7eb;
  border-radius:12px;
  padding:12px 14px;
  box-shadow:0 4px 12px rgba(0,0,0,.04);
}

div.stat.active{
background: #90d79b;
}

div.stat.deactive{
background: #e39e97;
}
.stat-title{
  font-size:12px;
  margin-bottom:6px;
}
.stat-value{
  font-size:22px;
  font-weight:700;
}
.stat.span-2{ 
	grid-column: span 2; 
	background: #fff;
}

/* Zahlen rechtsbündig in Tabellen (falls noch nicht gesetzt) */
td.num, th.num { text-align:right; white-space:nowrap; }

/* Optional: gleiche Spaltenbreiten über alle Tag-Tabellen */
table { table-layout: fixed; }
th, td { overflow:hidden; text-overflow: ellipsis; white-space: nowrap; }

th.ping, td.ping { width: 200px; }
th.intervall, td.intervall { width: 200px; }