/* Basis-Stile */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 0;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 10px 0;
    z-index: 1000; /* Sicherstellen, dass die Kopfzeile über anderen Inhalten liegt */
}
.has_error{
    background-color: red !important;
}

/* Hauptinhalt: Abstand zur fixierten Kopfzeile */
main {
    padding-top: 60px; /* Platz für die Kopfzeile, die 60px hoch ist */
    padding-bottom: 60px; /* Platz für die Fußzeile */
}

h1 {
    margin: 0;
    font-size: 2rem;
}

/* Container für die Sensoren */
.sensor-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
    padding: 10px;
}

/* Karte für jeden Sensor */
.sensor-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
    padding: 10px;
    text-align: center;
    max-height: 110px;
}

.sensor-title {
    /*color: #e77e3c;*/
    color: #4CAF50;
    font-size: 1.5rem;
    font-weight: bold;
    padding-bottom: 15px;
    /*margin-bottom: 10px;*/
}


.sensor-data {
    font-size: 1.05rem;
    color: black;
}

.sensor-data p {
    margin: 3px;
}

.sensor-mac {
    font-size: x-small;
}

.sensor-nocheck{
    border: red 3px solid;
    margin: 20px 50px;
    padding: 5px;
}

.temperature {
    font-weight: bold;
    color: black;
}

.status_ok {
    color: #56e73c;
    background-color: white;
}

.status_warn {
    background-color: #ffff0f;
    color: black;
}

.status_error {
    background-color: #e74c3c;
    color: yellow;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 10px;
    z-index: 1000; /* Sicherstellen, dass die Fußzeile über anderen Inhalten liegt */
}

footer p {
    margin: 10px 0;
    font-size: 1rem;
}

footer a {
    color: #4CAF50;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 600px) {
    h1 {
        font-size: 1.5rem;
    }

    .sensor-container {
        grid-template-columns: 1fr;
    }

    .sensor-card {
        padding: 15px;
    }

    footer p {
        font-size: 0.9rem;
    }
}
