/**
 * Frontend-Styles für Thema der Woche
 * Startseiten-Snippet (mit CTA) und Archiv-Liste (Blog-Stil)
 * Farbpalette konsistent mit styles.css (#FFD700, #333, #666)
 */

/* ===== Startseiten-Snippet (topic-highlight) ===== */
.topic-highlight {
    padding: 80px 20px;
    background: #f9f9f9;
}

.topic-highlight .section-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.topic-highlight-card {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    max-width: 1200px;
    margin: 0 auto;
}

/* Bild-Container verstecken wenn Bild fehlt */
.topic-highlight-image.img-missing,
.archive-entry-image.img-missing {
    display: none;
}

.topic-highlight-image {
    flex: 0 0 320px;
    overflow: hidden;
}

.topic-highlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topic-highlight-body {
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

/* Meta: Datum + Hashtag-Keywords */
.topic-highlight-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.topic-highlight-date {
    font-size: 0.85rem;
    color: #999;
}

.topic-highlight-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.topic-tag {
    font-size: 0.78rem;
    color: #888;
    background: #f3f3f3;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
}

.topic-highlight-body h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.4rem;
    color: #333;
    line-height: 1.3;
}

.topic-highlight-teaser {
    color: #555;
    line-height: 1.7;
    margin: 0 0 1.2rem 0;
    font-size: 0.98rem;
}

/* CTA-Bereich innerhalb der Highlight-Card */
.topic-highlight-cta {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.topic-highlight-cta p {
    color: #555;
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0 0 0.8rem 0;
    font-style: italic;
}

.topic-cta-btn {
    display: inline-block;
    padding: 0.65rem 1.6rem;
    background: #FFD700;
    color: #333;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    font-size: 0.92rem;
}

.topic-cta-btn:hover {
    background: #f0c800;
    transform: translateY(-1px);
}

/* Archiv-Link unter der Card */
.topic-highlight-archive {
    text-align: center;
    margin-top: 1.2rem;
    font-size: 0.9rem;
}

.topic-highlight-archive a {
    color: #666;
    text-decoration: none;
}

.topic-highlight-archive a:hover {
    color: #FFD700;
}

/* ===== Archiv-Seite ===== */
.archive-hero {
    text-align: center;
    padding: 3rem 0 2rem;
}

.archive-hero h1 {
    font-size: 2rem;
    color: #333;
    margin: 0 0 1rem 0;
}

.archive-hero-intro {
    color: #555;
    font-size: 1.05rem;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
}

.archive-hero-cta-link {
    color: #333;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #FFD700;
    text-underline-offset: 3px;
    transition: color 0.3s;
}

.archive-hero-cta-link:hover {
    color: #FFD700;
}

.archive-list {
    padding: 0 0 3rem;
}

/* Blog-Liste statt Card-Grid */
.archive-entries {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.archive-entry {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e8e8e8;
}

.archive-entry:first-child {
    padding-top: 0;
}

.archive-entry:last-child {
    border-bottom: none;
}

.archive-entry-image {
    flex: 0 0 180px;
    border-radius: 8px;
    overflow: hidden;
}

.archive-entry-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.archive-entry-body {
    flex: 1;
    min-width: 0;
}

.archive-entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.archive-entry-meta time {
    font-size: 0.82rem;
    color: #999;
}

.archive-entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.archive-entry-body h2 {
    font-size: 1.15rem;
    margin: 0 0 0.4rem 0;
    color: #333;
    line-height: 1.3;
}

.archive-entry-body p {
    color: #666;
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.archive-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
    font-size: 1.05rem;
}

/* ===== Admin-spezifisch ===== */
.admin-separator {
    border: none;
    border-top: 2px dashed #e0e0e0;
    margin: 1.5rem 0;
}

.admin-field-hint {
    font-size: 0.82rem;
    color: #888;
    margin: 0 0 0.5rem 0;
    font-style: italic;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .topic-highlight {
        padding: 40px 15px;
    }

    .topic-highlight-card {
        flex-direction: column;
    }

    .topic-highlight-image {
        flex: none;
        height: 200px;
    }

    .topic-highlight-body {
        padding: 1.25rem;
    }

    .topic-highlight-body h3 {
        font-size: 1.2rem;
    }

    .archive-entry {
        flex-direction: column;
        gap: 0.75rem;
    }

    .archive-entry-image {
        flex: none;
    }

    .archive-entry-image img {
        height: 160px;
    }
}
