/* News Ticker Styles */
.news-ticker-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 20px 0;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.news-ticker-header {
    background: linear-gradient(135deg, #0c3868 0%, #0a2d52 100%);
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-ticker-title {
    font-weight: 600;
    font-size: 16px;
}

.news-ticker-update {
    font-size: 12px;
    opacity: 0.9;
}

.news-ticker-content {
    min-height: 120px;
    position: relative;
    overflow: hidden;
}

.news-ticker-loading {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.news-ticker-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.news-ticker-item.active {
    display: block;
}

.news-ticker-item:last-child {
    border-bottom: none;
}

.news-ticker-item-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.news-ticker-item-title a {
    color: #0c3868;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-ticker-item-title a:hover {
    color: #0a2d52;
    text-decoration: underline;
}

.news-ticker-item-meta {
    font-size: 12px;
    color: #666;
    margin: 0 0 8px 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.news-ticker-item-source {
    background: #0c3868;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.news-ticker-item-date {
    color: #888;
}

.news-ticker-item-preview {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.news-ticker-controls {
    background: #f8f9fa;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    border-top: 1px solid #eee;
}

.news-ticker-btn {
    background: #0c3868;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.news-ticker-btn:hover {
    background: #0a2d52;
}

.news-ticker-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Animationen */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.news-ticker-item.slide-in {
    animation: slideIn 0.5s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-ticker-header {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .news-ticker-item {
        padding: 12px 15px;
    }
    
    .news-ticker-item-title {
        font-size: 15px;
    }
    
    .news-ticker-controls {
        padding: 8px 15px;
    }
    
    .news-ticker-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* Dunkles Theme (optional) */
.news-ticker-container.dark-theme {
    background: #2c3e50;
    border-color: #34495e;
    color: #ecf0f1;
}

.news-ticker-container.dark-theme .news-ticker-item {
    border-bottom-color: #34495e;
}

.news-ticker-container.dark-theme .news-ticker-item-title a {
    color: #3498db;
}

.news-ticker-container.dark-theme .news-ticker-item-title a:hover {
    color: #2980b9;
}

.news-ticker-container.dark-theme .news-ticker-controls {
    background: #34495e;
    border-top-color: #4a5f7a;
}