/* WordPress News Extension - Styling 
   Optimiert für TYPO3 12.4 und moderne Browser */

.wp-news-wrapper {
    margin: 3rem 0;
}

.wp-news-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1a365d;
    border-bottom: 3px solid #0ea5e9;
    padding-bottom: 0.75rem;
}

/* Grid Layout für News-Items */
.wp-news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Einzelner News-Artikel */
.wp-news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.wp-news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Bild-Bereich */
.wp-news-image {
    position: relative;
    overflow: hidden;
    background: #e5e7eb;
    aspect-ratio: 16/9;
}

.wp-news-image a {
    display: block;
    height: 100%;
}

.wp-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wp-news-item:hover .wp-news-image img {
    transform: scale(1.05);
}

/* Content-Bereich */
.wp-news-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.wp-news-headline {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.wp-news-headline a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wp-news-headline a:hover {
    color: #0ea5e9;
}

/* Teaser/Excerpt */
.wp-news-teaser {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.wp-news-teaser p {
    margin: 0;
}

/* Meta-Informationen */
.wp-news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

.wp-news-meta time {
    color: #64748b;
    font-size: 0.875rem;
}

.wp-news-readmore {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.wp-news-readmore:hover {
    color: #0284c7;
}

/* Leere Nachricht */
.wp-news-empty {
    text-align: center;
    padding: 3rem;
    color: #64748b;
    font-style: italic;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .wp-news-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .wp-news-title {
        font-size: 1.5rem;
    }
    
    .wp-news-headline {
        font-size: 1.125rem;
    }
}

/* Nordsee/Ostfriesland Theme (optional) */
.wp-news-wrapper.theme-ostfriesland .wp-news-title {
    color: #1e40af;
    border-color: #0ea5e9;
}

.wp-news-wrapper.theme-ostfriesland .wp-news-readmore {
    color: #0ea5e9;
}

.wp-news-wrapper.theme-ostfriesland .wp-news-headline a:hover {
    color: #0ea5e9;
}