/* === STÖRUNGSSEITE SPEZIFISCHE STYLES === */

/* Status-Banner */
.status-banner {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.status-banner.all-clear {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 6px solid #4CAF50;
}

.status-banner.disruptions {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 6px solid #ff9800;
}

.status-banner.severe {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-left: 6px solid #E3000B;
}

.status-icon {
    font-size: 2.5rem;
}

.status-banner.all-clear .status-icon { color: #4CAF50; }
.status-banner.disruptions .status-icon { color: #ff9800; }
.status-banner.severe .status-icon { color: #E3000B; }

.status-text h2 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    font-weight: 900;
}

.status-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
}

/* Filter Buttons */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.filter-btn {
    background: white;
    border: 2px solid #ddd;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    border-color: var(--bvg-black);
}

.filter-btn.active {
    background: var(--bvg-black);
    color: var(--bvg-yellow);
    border-color: var(--bvg-black);
}

.filter-btn .count {
    background: #eee;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.filter-btn.active .count {
    background: var(--bvg-yellow);
    color: var(--bvg-black);
}

/* Störungskarten */
.disruption-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.disruption-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.disruption-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.disruption-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
}

.disruption-header-left {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.disruption-type-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.type-stoerung .disruption-type-icon {
    background: #ffebee;
    color: #E3000B;
}

.type-bauarbeiten .disruption-type-icon {
    background: #fff3e0;
    color: #ff9800;
}

.type-umleitung .disruption-type-icon {
    background: #e3f2fd;
    color: #1976d2;
}

.type-info .disruption-type-icon {
    background: #f3e5f5;
    color: #7b1fa2;
}

.disruption-title {
    flex-grow: 1;
}

.disruption-title h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
}

.disruption-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item i {
    color: #999;
}

/* Linien-Badges */
.affected-lines {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.line-badge {
    font-size: 0.85rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--bvg-black);
    color: var(--bvg-yellow);
}

.line-badge.tram {
    background: #E3000B;
    color: white;
}

.line-badge.bus {
    background: #9040A5;
    color: white;
}

/* Priorität / Severity Badge */
.severity-badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.severity-hoch {
    background: #E3000B;
    color: white;
}

.severity-mittel {
    background: #ff9800;
    color: white;
}

.severity-niedrig {
    background: #4CAF50;
    color: white;
}

.severity-info {
    background: #9c27b0;
    color: white;
}

/* Expand Arrow */
.expand-arrow {
    color: #999;
    font-size: 1rem;
    transition: transform 0.3s;
    padding: 10px;
}

.disruption-card.open .expand-arrow {
    transform: rotate(180deg);
}

/* Details Section */
.disruption-details {
    display: none;
    padding: 0 20px 20px 20px;
    border-top: 1px solid #eee;
}

.disruption-card.open .disruption-details {
    display: block;
}

.detail-content {
    padding-top: 20px;
}

.detail-section {
    margin-bottom: 20px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.detail-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

/* Ersatzverkehr Info */
.replacement-info {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 6px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.replacement-info.warning {
    background: #fff3e0;
    border-color: #ffcc80;
}

.replacement-info i {
    color: #4CAF50;
    font-size: 1.2rem;
    margin-top: 2px;
}

.replacement-info.warning i {
    color: #ff9800;
}

.replacement-info p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Timeline für Bauarbeiten */
.timeline-visual {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 15px;
}

.timeline-bar {
    height: 8px;
    background: #ddd;
    border-radius: 4px;
    position: relative;
    margin: 10px 0;
}

.timeline-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8bc34a);
    border-radius: 4px;
}

.timeline-dates {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
}

/* Betroffene Haltestellen */
.affected-stops {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stop-tag {
    background: #f0f0f0;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.stop-tag.closed {
    background: #ffebee;
    color: #c62828;
    text-decoration: line-through;
}

.stop-tag.temp {
    background: #fff3e0;
    color: #e65100;
    border: 1px dashed #ffb74d;
}

/* Keine Störungen */
.no-disruptions {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.no-disruptions i {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 20px;
}

.no-disruptions h3 {
    margin: 0 0 10px 0;
    font-weight: 900;
}

.no-disruptions p {
    color: #666;
    margin: 0;
}

/* Aktualisierungshinweis */
.update-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-size: 0.85rem;
    color: #666;
}

.update-info .refresh-btn {
    background: none;
    border: none;
    color: var(--bvg-black);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.update-info .refresh-btn:hover {
    color: #E3000B;
}

/* Abo-Box */
.subscribe-box {
    background: linear-gradient(135deg, var(--bvg-yellow) 0%, #ffe066 100%);
    padding: 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.subscribe-text h4 {
    margin: 0 0 5px 0;
    font-weight: 900;
    font-size: 1.1rem;
}

.subscribe-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
}

.subscribe-btn {
    background: var(--bvg-black);
    color: var(--bvg-yellow);
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.subscribe-btn:hover {
    transform: scale(1.05);
}

/* Archiv Link */
.archive-link {
    text-align: center;
    margin-top: 30px;
}

.archive-link a {
    color: #666;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.archive-link a:hover {
    color: var(--bvg-black);
}

/* Feiertags-Hinweis */
.holiday-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 6px solid #1976d2;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.holiday-box h4 {
    margin: 0 0 10px 0;
    font-weight: 900;
    color: #1565c0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.holiday-box p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #333;
}

/* Mobile */
@media (max-width: 600px) {
    .disruption-header {
        flex-direction: column;
    }
    
    .disruption-header-left {
        width: 100%;
    }
    
    .severity-badge {
        align-self: flex-start;
    }
    
    .filter-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-btn {
        flex-shrink: 0;
    }
    
    .subscribe-box {
        flex-direction: column;
        text-align: center;
    }
    
    .status-banner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .status-banner {
        flex-direction: column;
        text-align: center;
        width: 100%;
        flex-wrap: wrap;
        padding: 15px 20px; /* etwas kleiner für mobile */
    }

    .status-text h2 {
        font-size: 1.1rem;
    }

    .status-text p {
        font-size: 0.85rem;
    }

    .status-icon {
        font-size: 2rem; /* kleiner – verhindert Überlaufen */
    }
}
