:root {
    --accent: #00adb5;
    --bg: #121212;
    --card-bg: #1e1e1e;
    --online: #2ecc71;
    --offline: #e74c3c;
}
body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}
.container {
    text-align: center;
    width: 90%;
    max-width: 1100px;
    padding: 20px;
}
h1 { margin-bottom: 5px; color: var(--accent); font-size: 2.2rem; }
.subtitle { margin-bottom: 40px; color: #666; font-size: 0.9rem; letter-spacing: 1px; }

/* Das Gitter-System */
.grid {
    display: grid;
    /* Standard: 3 Spalten im Browser */
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px;
}

/* Responsive Anpassung für Tablets (2 Spalten) */
@media (max-width: 900px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
}

/* Responsive Anpassung für Handys (1 Spalte) */
@media (max-width: 600px) {
    .grid { grid-template-columns: 1fr; }
    h1 { font-size: 1.8rem; }
}

.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px 20px;
    text-decoration: none;
    color: white;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 173, 181, 0.25);
    border-color: var(--accent);
    background: #252525;
}
.card img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 15px;
}
.icon-placeholder {
    width: 70px;
    height: 70px;
    background: #333;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    margin-bottom: 15px;
}
.card span { font-size: 1.1rem; font-weight: 500; }
.badge {
    font-size: 0.6rem;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 20px;
    margin-top: 12px;
    font-weight: bold;
}
.local { background: #d35400; }
.cloud { background: #0277bd; }
.sys { background: #455a64; }
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}
.online { background-color: var(--online); box-shadow: 0 0 8px var(--online); }
.offline { background-color: var(--offline); box-shadow: 0 0 8px var(--offline); }

.badge {
    display: flex;
    align-items: center;
    justify-content: center;
}
