/**
 * News System - Responsive Stylesheet
 * Universell verwendbar für Admin und Frontend
 */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

/* News Container */
.news-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 20px;
}

/* News Article */
.news-article {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.news-article:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.news-article:last-child {
    margin-bottom: 0;
}

/* News Title */
.news-article-title {
    color: #1976D2;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

/* News Date */
.news-article-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-article-date .date-icon {
    font-size: 16px;
}

.news-article-date .time {
    color: #999;
}

/* News Content */
.news-article-content {
    color: #444;
    font-size: 16px;
    line-height: 1.8;
}

.news-article-content p {
    margin-bottom: 15px;
}

.news-article-content p:last-child {
    margin-bottom: 0;
}

/* Single News (Vollansicht) */
.news-single {
    max-width: 800px;
    margin: 30px auto;
}

.news-single .news-article-title {
    font-size: 32px;
    margin-bottom: 15px;
}

/* No News Message */
.no-news {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}

/* Error Message */
.news-error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-container {
        padding: 0 15px;
        margin: 15px auto;
    }
    
    .news-article {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .news-article-title {
        font-size: 20px;
    }
    
    .news-single .news-article-title {
        font-size: 26px;
    }
    
    .news-article-content {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .news-article {
        padding: 15px;
    }
    
    .news-article-title {
        font-size: 18px;
    }
    
    .news-single .news-article-title {
        font-size: 22px;
    }
    
    .news-article-content {
        font-size: 14px;
    }
    
    .news-article-date {
        font-size: 13px;
    }
}

/* Alternative Styles - Kompakt */
.news-container.compact .news-article {
    padding: 15px 20px;
    margin-bottom: 15px;
}

.news-container.compact .news-article-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.news-container.compact .news-article-content {
    font-size: 14px;
}

/* Alternative Styles - Modern mit Akzentfarbe */
.news-container.modern .news-article {
    border-left: 4px solid #2196F3;
}

.news-container.modern .news-article:hover {
    border-left-color: #1976D2;
}

/* Alternative Styles - Card Style */
.news-container.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.news-container.cards .news-article {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .news-container.cards {
        grid-template-columns: 1fr;
    }
}

/* News Ticker Style */
.news-ticker {
    background: #1976D2;
    color: white;
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
}

.news-ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.news-ticker-item {
    display: inline-block;
    padding: 0 50px;
}

.news-ticker-item::before {
    content: "•";
    margin-right: 10px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .news-article {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .news-article-title {
        color: #64B5F6;
    }
    
    .news-article-date {
        color: #999;
    }
    
    .news-article-content {
        color: #ccc;
    }
}
