/* Styling für die Header-Karte (überschreibt das Layout aus der styles.css) */
.status-header-card {
    min-height: auto !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 3rem 2rem !important;
}

.status-header-card .intro-text-section {
    padding-top: 0 !important;
    text-align: center !important;
    width: 100%;
}

/* Container für die durchgehende Liste */
.status-list {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Kompakterer Abstand zwischen den Listen-Elementen */
    width: 100%;
}

/* Die neue Status-Karte (Volle Breite) */
.status-card {
    background-color: rgba(17, 17, 17, .6); 
    backdrop-filter: blur(61.23px); 
    -webkit-backdrop-filter: blur(61.23px);
    border-radius: 20px; /* Bei Listen sehen etwas kleinere Rundungen besser aus als 35px */
    border: 1px solid rgba(255, 255, 255, 0.08); 
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease; 
    padding: 1.5rem;
    display: flex;
    flex-direction: column; /* Mobile First: Untereinander */
    gap: 1.25rem;
}

/* Desktop-Layout (Horizontal) */
@media (min-width: 768px) {
    .status-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1.5rem 2.5rem;
    }
    
    /* Hover Effekt für die Liste (slidet leicht nach rechts) */
    .status-card:hover {
        transform: translateX(8px); 
        box-shadow: 0 8px 30px -5px rgba(245, 158, 11, .3); 
        border-color: rgba(245, 158, 11, 0.4);
        background: linear-gradient(rgba(17, 17, 17, .8), rgba(17, 17, 17, .8)) padding-box, linear-gradient(120deg, #F59E0B, #EAB308, #FFA500) border-box;
    }

    .status-card-right {
        align-items: flex-end;
        text-align: right;
    }
}

.status-card-left, .status-card-right {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.status-category {
    font-size: 0.75rem;
    color: #00ff88;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Titel und Domain nebeneinander auf Desktop */
.status-title-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

@media (min-width: 768px) {
    .status-title-row {
        flex-direction: row;
        align-items: baseline;
        gap: 1rem;
    }
}

.status-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.status-domain {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    display: inline-block;
    width: fit-content;
}

/* Zeitangaben */
.status-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Bricht auf Mobile sauber um, falls nötig */
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-dot {
    color: #4b5563;
    font-size: 1rem;
}

/* Status Indikator (Online / Offline) */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.8rem;
    border-radius: 33px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    width: fit-content;
}

.status-badge.online { color: #10B981; border-color: rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.05); }
.status-badge.offline { color: #EF4444; border-color: rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.05); }

.pulse-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.online .pulse-dot { background-color: #10B981; box-shadow: 0 0 10px #10B981; animation: pulse-green 2s infinite ease-in-out; }
.offline .pulse-dot { background-color: #EF4444; box-shadow: 0 0 10px #EF4444; animation: pulse-red 2s infinite ease-in-out; }

@keyframes pulse-green { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }
@keyframes pulse-red { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }

/* --- Neue Timeline Styles --- */
.status-card {
    flex-direction: column !important; /* Überschreibt das alte Layout, damit die Timeline unten sitzt */
    align-items: stretch !important;
}

.status-card-top {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .status-card-top {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.status-timeline-container {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    color: #9ca3af;
    font-weight: 600;
}

.timeline-uptime-text {
    color: #10B981; /* Standardmäßig Grün */
    font-weight: 700;
}
.timeline-uptime-text.warning { color: #F59E0B; }
.timeline-uptime-text.danger { color: #EF4444; }

.timeline-bars {
    display: flex;
    gap: 3px;
    width: 100%;
    height: 35px;
}

.timeline-bar {
    flex: 1;
    border-radius: 3px;
    background-color: #10B981; /* Standardmäßig Grün */
    transition: opacity 0.2s ease, transform 0.2s ease;
    cursor: crosshair;
}

.timeline-bar:hover {
    opacity: 0.8;
    transform: scaleY(1.1);
}

.timeline-bar.offline { background-color: #EF4444; }
.timeline-bar.partial { background-color: #F59E0B; }
.timeline-bar.untracked { background-color: rgba(255, 255, 255, 0.1); cursor: default; }
.timeline-bar.untracked:hover { transform: none; opacity: 1; }

/* --- Zeitfilter --- */
.status-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.time-filter-btn {
    background: rgba(25, 25, 25, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.time-filter-btn:hover {
    background: rgba(30, 30, 30, 0.6);
    color: #e0e0e0;
    border-color: rgba(245, 158, 11, 0.3);
}

.time-filter-btn.active {
    background: linear-gradient(90deg, #F59E0B, #EAB308);
    color: #000;
    border-color: #F59E0B;
}

/* --- Kategorie Gruppierung --- */
.status-category-group {
    margin-bottom: 3rem;
    width: 100%;
}

.category-header {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Wir verstecken die alte Kategorie-Anzeige in der Karte, da sie jetzt drüber steht */
.status-card .status-category {
    display: none; 
}