@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&display=swap');

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    color: #eee;
    background: #0a0a0a;
    text-align: center;
    overflow-x: hidden;
    position: relative;
}

/* Sternenhintergrund */
canvas#stars {
    position: fixed; top:0; left:0;
    width:100%; height:100%;
    z-index:-1; display:block;
}

/* Header */
header {
    margin: 20px 10px;
}
header nav {
    margin-top: 15px;
}
header nav a {
    margin: 0 10px;
    text-decoration: none;
    color: #aa00ff;
    font-weight: bold;
}
header nav a:hover {
    color: #ff88ff;
}
.logo {
    width: 120px;
    max-width: 30vw;
    margin-bottom: 10px;
}

/* Section Container */
.section-container {
    padding: 20px 25px;
    border: 2px solid #5500ff;
    border-radius: 15px;
    background: rgba(20,0,40,0.3);
    backdrop-filter: blur(5px);
    margin: 0 auto 30px;
    width: 90%;
    max-width: 700px;
}

/* Service Card */
.card {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
    background: rgba(50,0,80,0.3);
    transition: all 0.3s ease;
    word-wrap: break-word;
    text-align: center;
}

.card.online { border: 1px solid #0f0; background: rgba(0,50,0,0.6); }
.card.offline { border: 1px solid #f00; background: rgba(50,0,0,0.6); }
.card.maintenance { border: 1px solid #ff0; background: rgba(50,50,0,0.6); }

.card:hover { transform: translateY(-3px); box-shadow: 0 0 20px #aa00ff88; }

/* Status Header */
.service-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.service-name {
    font-weight: bold;
    font-size: 1.1em;
}

.service-status {
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online { background: #0f0; animation: glow 1s infinite alternate; }
.status-dot.offline { background: #f00; animation: glow 1s infinite alternate; }
.status-dot.maintenance { background: #ff0; animation: glow 1s infinite alternate; }

.status-text.online { color: #0f0; font-weight: bold; }
.status-text.offline { color: #f00; font-weight: bold; }
.status-text.maintenance { color: #ff0; font-weight: bold; }

@keyframes glow {
    0% { box-shadow: 0 0 5px currentColor; }
    100% { box-shadow: 0 0 15px currentColor; }
}

/* Nachrichten Box */
.messages {
    margin-top: 10px;
    padding: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    font-size: 0.9em;
    color: #ddd;
    text-align: left;
}
.messages div {
    margin: 5px 0;
    padding-left: 10px;
    border-left: 3px solid #aa00ff;
}

/* Details */
details summary {
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 5px;
    color: #aaa;
}

/* Pfeil bei <details> entfernen */
details summary::-webkit-details-marker {
    display: none;
}
details summary::marker {
    content: "";
}

/* Divider */
.divider {
    width: 80%;
    border-top: 2px solid #aa00ff;
    margin: 30px auto;
    box-shadow: 0 0 10px #aa00ff55;
}

/* Footer */
footer {
    margin: 40px 10px;
    font-size: 0.8em;
    color: #888;
    text-align: center;
}

.uptime-value {
    font-weight: bold;
}
