.jm-sites-grid-toolbar {
    margin: 8px 0 12px;
    font-size: 14px;
}

.jm-sites-grid {
    display: grid;
    gap: 20px;
}

/* Spaltensteuerung über Klassen (jm-cols-X) */
.jm-sites-grid.jm-cols-1 { grid-template-columns: repeat(1, minmax(0,1fr)); }
.jm-sites-grid.jm-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.jm-sites-grid.jm-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.jm-sites-grid.jm-cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.jm-sites-grid.jm-cols-5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.jm-sites-grid.jm-cols-6 { grid-template-columns: repeat(6, minmax(0,1fr)); }

/* Breakpoints: Desktop 4 Spalten, Tablet 2, Smartphone 1 */
@media (max-width: 1023px) {
    .jm-sites-grid.jm-cols-4,
    .jm-sites-grid.jm-cols-5,
    .jm-sites-grid.jm-cols-6 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 639px) {
    .jm-sites-grid[class*="jm-cols-"] { grid-template-columns: repeat(1, minmax(0,1fr)); }
}

.jm-site-card {
    display: block;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    background: #fff;
    color: inherit;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    transition: transform .15s, box-shadow .15s;
}
.jm-site-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,.08);
}
.jm-site-card h3 {
    margin: 0 0 6px 0;
    font-size: 16px;
}

.jm-site-logo {
    text-align: center;
    margin-bottom: 10px;
}
.jm-site-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;   /* Bild proportional einpassen */
    border-radius: 8px;    /* optional: abgerundete Ecken */
    background: #fff;      /* optional: Hintergrund falls transparent */
    display: inline-block;
}


.jm-sm-status { display:flex; align-items:center; font-weight:600; margin:6px 0; }
.jm-sm-dot { display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:8px; }
.jm-sm-up { background:#46b450; }
.jm-sm-down { background:#dc3232; }
.jm-sm-na { background:#999; }

.jm-sm-meta { font-size:12px; color:#555; margin:4px 0; }
.jm-sm-badges { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.jm-sm-badge { font-size:11px; border-radius:999px; padding:3px 8px; background:#f1f5f9; border:1px solid #e2e8f0; }
.jm-sm-foot { margin-top:10px; font-size:11px; color:#666; }

/* ---------- Layout: volle Breite des Mediums ---------- */
/* Die Breite/Position wird per JS auf den Viewport gesetzt (funktioniert unabhängig vom Theme-Layout). */
.jm-sm-wrap { box-sizing: border-box; }
.jm-sm-full { padding: 0 16px; }
@media (min-width: 1024px) { .jm-sm-full { padding: 0 32px; } }
body:has(.jm-sm-full) { overflow-x: hidden; }

/* ---------- Tabs ---------- */
.jm-sm-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin:8px 0 16px; border-bottom:1px solid #e2e8f0; }
.jm-sm-tabs { display:flex; gap:4px; }
.jm-sm-tab { background:none; border:0; border-bottom:3px solid transparent; padding:10px 18px; font-size:15px; font-weight:600; cursor:pointer; color:#475569; }
.jm-sm-tab.is-active { color:#0f172a; border-bottom-color:#2563eb; }
.jm-sm-wrap.has-js .jm-sm-panel { display:none; }
.jm-sm-wrap.has-js .jm-sm-panel.is-active { display:block; }
.jm-sm-logout { font-size:13px; color:#475569; display:flex; align-items:center; gap:8px; }

/* ---------- Statistik ---------- */
.jm-sm-panel h2 { font-size:18px; margin:24px 0 10px; }
.jm-sm-muted { color:#64748b; font-size:14px; }
.jm-sm-card { border:1px solid #e2e8f0; border-radius:10px; background:#fff; padding:12px; margin-bottom:12px; }
.jm-sm-chart { width:100%; height:auto; max-height:260px; display:block; }
.jm-sm-axis { stroke:#cbd5e1; stroke-width:1; }
.jm-sm-axt { fill:#64748b; font-size:11px; }
.jm-sm-line { fill:none; stroke:#2563eb; stroke-width:2; }
.jm-sm-pt { fill:#2563eb; }
.jm-sm-scroll { overflow-x:auto; }
.jm-sm-table { width:100%; border-collapse:collapse; background:#fff; border:1px solid #e2e8f0; border-radius:10px; font-size:14px; }
.jm-sm-table th, .jm-sm-table td { text-align:left; padding:8px 12px; border-bottom:1px solid #eef2f6; vertical-align:top; }
.jm-sm-table th { background:#f8fafc; font-weight:600; white-space:nowrap; }
.jm-sm-days { margin:6px 0 0; padding-left:18px; font-size:13px; }
.jm-sm-badge-warn { background:#fef3c7; border-color:#fcd34d; font-weight:600; }

/* ---------- Anmeldung ---------- */
.jm-sm-login { max-width:420px; margin:24px auto; padding:20px; border:1px solid #e2e8f0; border-radius:10px; background:#fff; }
.jm-sm-login input[type=email] { width:100%; box-sizing:border-box; padding:10px; margin:8px 0 12px; border:1px solid #cbd5e1; border-radius:6px; font-size:16px; }
.jm-sm-btn { background:#2563eb; color:#fff; border:0; border-radius:6px; padding:10px 16px; font-size:15px; cursor:pointer; }
.jm-sm-btn-ghost { background:none; color:#2563eb; border:1px solid #cbd5e1; padding:4px 10px; font-size:13px; }
.jm-sm-notice { padding:10px 12px; border-radius:6px; background:#ecfdf5; border:1px solid #a7f3d0; font-size:14px; }
.jm-sm-notice-err { background:#fef2f2; border-color:#fecaca; }

/* Sortierbare Spalten */
.jm-sm-sortable th:not([data-nosort]) { cursor:pointer; user-select:none; }
.jm-sm-sortable th:not([data-nosort]):hover { background:#eef2f6; }
.jm-sm-sortable th[aria-sort="ascending"]::after { content:" \25B2"; font-size:10px; }
.jm-sm-sortable th[aria-sort="descending"]::after { content:" \25BC"; font-size:10px; }

.jm-sm-upd { list-style:none; margin:4px 0 0; padding:0; font-size:13px; }
.jm-sm-upd li { margin:2px 0; }
