/* Grundlegende Stile für die Seite */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 20px;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    color: #1c1e21;
}

header p {
    color: #606770;
    font-size: 0.9em;
}

/* Das Grid-Layout für die Status-Karten */
#status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Design der einzelnen Karten */
.card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 5px solid #ccc; /* Standard-Randfarbe */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4em;
    color: #1c1e21;
}

.status-display {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 8px;
    border-radius: 5px;
    text-align: center;
}

.details {
    font-size: 0.8em;
    color: #606770;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #e9ebee;
    padding-top: 10px;
}

/* Farben für die verschiedenen Status */
.status-on {
    border-left-color: #42b72a;
}
.status-on .status-display {
    background-color: #e9f6eb;
    color: #42b72a;
}

.status-off {
    border-left-color: #606770;
}
.status-off .status-display {
    background-color: #f0f2f5;
    color: #333;
}

.status-error {
    border-left-color: #fa3e3e;
}
.status-error .status-display {
    background-color: #fbe9e9;
    color: #fa3e3e;
}

.error-message {
    color: #fa3e3e;
    text-align: center;
    grid-column: 1 / -1; /* Nimmt die volle Breite ein */
}