:root {
    --bg: #080b14;
    --card-bg: rgba(255, 255, 255, 0.03);
    --accent: #3b82f6;
    --online: #10b981;
    --offline: #ef4444;
    --warn: #facc15;
    --text: #f8fafc;
}

body {
    background: var(--bg);
    background-image: radial-gradient(circle at 50% -10%, #1e293b, #080b14);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    margin: 0;
}

#incident-banner {
    background: var(--offline);
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    display: none;
    position: sticky;
    top: 0;
    z-index: 1000;
}

#global-status-text {
    color: var(--online); /* Standardmäßig grün */
    transition: color 0.3s ease;
}

.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }

header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 50px; }

/* Grid für VMs & Minecraft */
.status-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 20px; 
    margin-bottom: 40px;
}

.card { 
    background: var(--card-bg); 
    backdrop-filter: blur(10px); 
    border: 1px solid rgba(255,255,255,0.05); 
    border-top: 3px solid var(--accent);
    border-radius: 18px; 
    padding: 20px; 
    transition: 0.3s;
    position: relative;
    background: var(--card-bg);
}

.ping-tag { 
    font-family: monospace; 
    font-size: 0.75rem; 
    color: var(--online); 
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

.status-badge { 
    padding: 3px 8px; 
    border-radius: 5px; 
    font-size: 0.65rem; 
    font-weight: bold; 
    text-transform: uppercase;
}

.status-critical {
    color: var(--offline) !important;
}
.circle-critical {
    border-color: var(--offline) !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.health-circle { 
    width: 45px; 
    height: 45px; 
    border-radius: 50%; 
    border: 3px solid var(--online); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: bold; 
    font-size: 0.9rem;
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.refresh-btn {
    background: var(--accent) !important; 
    color: white !important;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
}

.time-select {
    background-color: rgba(255, 255, 255, 0.07) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: background 0.3s ease;
    /* Entfernt Standard-Browser-Styles */
    appearance: none; 
    -webkit-appearance: none;
}

.time-select option {
    background-color: #1a1f2e !important;
    color: white !important;
    padding: 10px;
}


.time-select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #fff;
}

.time-select {
    padding-right: 25px;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2F依svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 10px auto;
}

.time-select:hover, .refresh-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.uptime-clock {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.07);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    backdrop-filter: blur(5px);
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.refresh-btn:hover { opacity: 0.8; }


@keyframes pulse-green {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

#global-status-text:not(.status-critical) {
    animation: pulse-green 3s infinite ease-in-out;
}

/* Minecraft Accordion & Cards */
.pter-accordion { margin-top: 15px; background: rgba(0,0,0,0.2); border-radius: 10px; overflow: hidden; }
.pter-title { padding: 12px; font-size: 0.8rem; color: var(--accent); font-weight: bold; cursor: pointer; display: flex; justify-content: space-between; }
.pter-content { padding: 10px; border-top: 1px solid rgba(255,255,255,0.05); }

.mc-card { 
    background: rgba(255,255,255,0.02); padding: 10px; border-radius: 6px; margin-bottom: 8px; 
    border-left: 3px solid var(--accent); 
}
.motd { display: block; font-size: 0.7rem; color: #94a3b8; font-style: italic; margin: 4px 0; }
.mc-footer { font-size: 0.65rem; font-weight: bold; color: var(--text); }

/* Graphen & Footer */
.history-strip { display: flex; gap: 2px; height: 16px; margin-top: 15px; width: 100%; }
.h-bar { flex: 1; border-radius: 1px; background: rgba(255,255,255,0.1); }
.h-bar.up { background: var(--online); opacity: 0.7; }
.h-bar.down { background: var(--offline); opacity: 1; }
.h-bar.maintenance { background: var(--accent); opacity: 1; }

.cloud-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card-label { font-size: 0.7rem; margin-top: 12px; text-align: center; font-weight: 600; text-transform: uppercase; }

footer { margin-top: 60px; padding: 20px; text-align: center; opacity: 0.5; font-size: 0.8rem; }
.hidden { display: none; }