:root {
    --primary: #1e88e5;
    --operational: #4caf50;
    --degraded: #ff9800;
    --outage: #e74c3c;
    --bg: #121212;
    --card-bg: #1e1e1e;
    --text: #e0e0e0;
    --border: #333;
    --fandom: #3a6d8c;
    --sally: #e2027b;
    --incident: #e74c3c;
    --development: #64b5f6;
    --opnv-green: #8bc34a;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: min(1920px, 100%);
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary);
}

.header-divider {
    border-bottom: 2px solid var(--primary);
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.section-divider {
    border-bottom: 2px solid var(--primary);
    margin: 15px 0;
    padding: 4px 0;
}

.status-overview {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.status-card {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--status-color);
    transition: all 0.3s ease;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    max-width: 1920px;
    margin: 0 auto 15px;
}

.incident-timeline {
    border-radius: 8px;
    overflow: hidden; /* Wichtig für innere abgerundete Ecken */
}

.incident-event {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 5px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
}

.incident-event:hover {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 5px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(80, 80, 80, 0.5);
    align-items: center;
}

.incident-time {
    font-size: 0.85rem;
    color: var(--degraded);
    padding-right: 15px;
    border-right: 1px dashed rgba(255, 255, 255, 0.2);
}

.incident-description {
    font-size: 0.95rem;
    line-height: 1.5;
    padding-left: 10px;
}

.incident-description i {
    font-style: italic;
}

.status-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.status-card h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--primary);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    font-weight: bold;
    background: rgba(30, 136, 229, 0.1);
    padding: 5px 10px;
    border-radius: 20px;
}

.status-indicator, .server-status {
    display: inline-flex;
    align-items: center;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(30, 136, 229, 0.1);
    margin-left: auto; /* Nach rechts ausrichten */
  }

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    background-color: var(--status-color);
}

.status-description {
    color: #aaa;
    font-size: 0.95rem;
}

.server-list {
    margin-top: 10px;
}

.server-list table {
    width: 100%;
    border-collapse: collapse;
}

.server-list tr {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.server-list td {
    padding: 6px 0;
}

.server-list td:last-child {
    text-align: right;
    width: 30%;
  }

.server-status {
    justify-content: flex-end;
    background: rgba(139, 195, 74, 0.1); 
    align-items: center;
}

.server-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
  }

.opening-hours {
    margin-top: 8px;
    font-size: 0.9rem;
}

.opening-hours table {
    width: 100%;
    border-collapse: collapse;
}

.opening-hours td {
    padding: 4px 0;
}

.opening-hours tr.current-day {
    font-weight: bold;
    color: var(--primary);
    background-color: rgba(30, 136, 229, 0.1);
}

.opening-hours tr:not(.current-day):nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.03);
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.operational { --status-color: var(--operational); }
.degraded { --status-color: var(--degraded); }
.outage { --status-color: var(--outage); }
.development { --status-color: var(--development); }

/* LOMLA Modding Card */
.modding-card {
    border-left: 4px solid var(--primary);
    background: linear-gradient(to right, rgba(30, 136, 229, 0.1), var(--card-bg));
}

.modding-card h3 {
    color: var(--text);
}

.modding-indicator {
    background: rgba(30, 136, 229, 0.3);
    color: var(--primary);
}

/* Website Card */
.llm-card {
    border-left: 4px solid var(--primary);
    background: linear-gradient(to right, rgba(30, 136, 229, 0.05), var(--card-bg));
}

.llm-card h3 {
    color: var(--text);
}

.llm-indicator {
    background: rgba(30, 136, 229, 0.2);
    color: var(--primary);
}

/* Roblox-spezifische Card */
.roblox-card {
    border-left: 4px solid var(--opnv-green);
    background: linear-gradient(to right, rgba(139, 195, 74, 0.05), var(--card-bg));
}

.roblox-card h3 {
    color: var(--opnv-green);
}

.roblox-indicator {
    background: rgba(139, 195, 74, 0.2);
}

/* Fandom Wiki-spezifische Card */
.wiki-card {
    border-left: 4px solid var(--fandom);
    background: linear-gradient(to right, rgba(58, 109, 140, 0.05), var(--card-bg));
}

.wiki-card h3 {
    color: var(--fandom);
}

.wiki-indicator {
    background: rgba(58, 109, 140, 0.2);
}

/* Sally Bollywood-spezifische Card */
.sally-card {
    border-left: 4px solid var(--sally);
    background: linear-gradient(to right, rgba(226, 2, 123, 0.05), var(--card-bg));
}

.sally-card h3 {
    color: var(--sally);
}

.sally-indicator {
    background: rgba(226, 2, 123, 0.2);
}

/* Neue Stile für multiple Incident-Karten */
.incidents-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .incident-event {
        grid-template-columns: 120px 1fr;
        gap: 10px;
    }

    .incident-event:hover {
        grid-template-columns: 120px 1fr;
        gap: 10px;
    }
    
    .incident-time {
        font-size: 0.8rem;
        padding-right: 10px;
    }
    
    .incident-description {
        font-size: 0.9rem;
    }

    .status-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .status-indicator {
        align-self: flex-end;
    }
    
    .incident-event {
        flex-direction: column;
    }

    /* Letztes Element ohne Trennlinie */
    .incident-event:last-child {
    border-bottom: none;
}
    
    .incident-time,
    .incident-description {
        width: 100%;
    }
    
    .incident-description {
        padding-left: 0;
        padding-top: 5px;
    }
}

/* Stile für Incident-Header */
.incidents-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 10px;
}

.incidents-header h2 {
    color: var(--text);
    margin: 0;
    font-size: 1.5rem;
}

.incidents-header h2 i {
    color: var(--incident);
    margin-right: 10px;
}

#refreshIncidents {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#refreshIncidents:hover {
    background: var(--primary);
    color: white;
}

#refreshIncidents.rotating {
    animation: rotate 1s linear infinite;
}

@keyframes doubleSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(720deg); }
}

#refreshIncidents.animate .fa-sync-alt {
    animation: doubleSpin 0.6s ease-out forwards;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.no-incidents-card {
    border-left: 4px solid var(--operational);
    background: linear-gradient(to right, rgba(76, 175, 80, 0.05), var(--card-bg));
}

.no-incidents-card h3 {
    color: var(--operational);
    text-align: center;
}

.loading {
    text-align: center;
    padding: 20px;
    color: var(--degraded);
    background: rgba(255, 165, 0, 0.1);
    border-radius: 8px;
    margin: 10px 0;
    transition: opacity 0.3s ease;
}

.loading-enter-done {
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.fa-spin {
    animation: fa-spin 2s infinite linear;
    margin-right: 10px;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-incidents {
    border-radius: 12px;
    border-left: 4px solid var(--operational);
    background: linear-gradient(to right, rgba(76, 175, 80, 0.05), var(--card-bg));
    text-align: center;
    padding: 30px;
}

.no-incidents-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-incidents h3 {
    color: var(--operational);
    margin-top: 0;
    font-size: 1.4rem;
}

.no-incidents p {
    color: var(--text);
    opacity: 0.8;
    margin-bottom: 0;
}

.no-incidents .fa-check-circle {
    font-size: 1.8rem;
    margin-bottom: 15px;
    display: block;
    color: var(--operational);
}

.current-day {
    font-weight: bold;
    background-color: rgba(30, 136, 229, 0.1);
}

/* Für Fehlerkarten */
.error-card {
    border-radius: 12px;
    border-left: 4px solid var(--degraded);
}

/* ==================== incident-card ==================== */
.incident-card {
    border-left: 4px solid var(--incident);
    background: linear-gradient(to right, rgba(231, 76, 60, 0.05), var(--card-bg));
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    max-width: 1920px;
    margin: 0 auto;
}

.incident-card h3 {
    color: var(--incident);
    margin-top: 0;
    text-align: center;
}

.incident-card {
    border-left: 4px solid var(--incident);
    background: var(--card-bg);
    border-radius: 8px;
}

.incident-card h3 {
    color: var(--incident); /* Standardfarbe */
    margin-top: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Kritische Störung */
.incident-card.critical {
    border-left-color: var(--outage);
    border-radius: 8px;
}
.incident-card.critical h3 {
    color: var(--outage);
}

/* Warnung */
.incident-card.warning {
    border-left-color: var(--degraded);
    border-radius: 8px;
}
.incident-card.warning h3 {
    color: var(--degraded);
}

/* Hinweis */
.incident-card.notice {
    border-left-color: var(--primary);
    border-radius: 8px;
}
.incident-card.notice h3 {
    color: var(--primary);
}

/* Wartung */
.incident-card.maintenance {
    border-left-color: var(--development);
    border-radius: 8px;
}
.incident-card.maintenance h3 {
    color: var(--development);
}

/* Behoben */
.incident-card.resolved {
    border-left-color: var(--operational);
    border-radius: 8px;
}
.incident-card.resolved h3 {
    color: var(--operational);
}

/* ==================== FOOTER ==================== */
footer {
    margin-top: 40px;
    color: #707080;
    font-size: 13px;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--divider-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.footer-links a {
    color: #a0a0b0;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-links span {
    color: #a0a0b0;
}