/* ZelloFunk Artikel: optische Aktualisierung, 17.10.2026.
   CSS nur auf blog.php und post.php geladen. Keine Änderungen an Daten oder Interaktionen. */

/* Übersicht: ruhiger, einheitlicher Aufbau für jedes Beitragsfeld */
.zf-blog-grid { align-items: stretch; }
.zf-blog-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #e3ebf6;
    transition: box-shadow .18s ease;
}
.zf-blog-card:hover { box-shadow: 0 18px 42px rgba(17, 55, 100, .13); }
.zf-blog-image-frame {
    margin: 12px 12px 0;
    padding: 10px;
    border: 1px solid #e0e9f4;
    border-radius: 17px;
    background: linear-gradient(155deg, #fbfdff, #f0f6fd);
    display: grid;
    place-items: center;
    min-height: 196px;
    overflow: hidden;
}
.zf-blog-card .zf-blog-image-frame .card-image {
    display: block;
    width: 100%;
    height: 176px;
    padding: 0 !important;
    object-fit: contain;
    border-radius: 10px;
    background: transparent;
}
.zf-blog-image-frame .category-card-top {
    width: 100%;
    min-height: 176px;
    border-radius: 12px;
}
.zf-blog-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 11px;
    padding: 19px 20px 22px;
}
.zf-blog-category-date { font-size: .82rem; line-height: 1.4; font-weight: 750; }
.zf-blog-title-tile {
    border: 1.5px solid #dc4349;
    border-radius: 13px;
    background: linear-gradient(120deg, #ffe8e9, #fff4f4);
    padding: 12px 13px;
    min-width: 0;
}
.zf-blog-title-tile h3,
.zf-blog-card-body .zf-blog-title-tile h3 {
    margin: 0;
    color: #8d1721;
    font-size: clamp(1.06rem, 1.6vw, 1.25rem);
    line-height: 1.28;
    letter-spacing: -.015em;
    overflow-wrap: anywhere;
}
.zf-blog-author,
.zf-article-author {
    font-size: .92rem;
    color: #526681;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.zf-blog-author strong,
.zf-article-author strong { color: #15355e; font-weight: 850; }
.zf-blog-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 2px;
}
.zf-blog-stats .interaction-heart-inline,
.zf-blog-stats .interaction-heart-row { margin: 0; }
.zf-blog-stats .post-view-badge,
.zf-blog-stats .interaction-heart-button { min-height: 33px; }
.zf-blog-read-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: stretch;
    margin-top: auto;
    border-radius: 12px;
    min-height: 43px;
    text-align: center;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(18, 102, 212, .14);
}
.zf-blog-read-btn:hover { transform: translateY(-1px); }

/* Artikelansicht: Titel und Autor oben, Zähler neben dem Titel */
.zf-article-heading { margin-bottom: 22px; }
.zf-article-heading .badge { display: inline-flex; margin-bottom: 13px; }
.zf-article-heading-main {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.zf-article-title-tile {
    flex: 1;
    min-width: 0;
    padding: clamp(16px, 3vw, 23px);
    border: 1.5px solid #dc4349;
    border-radius: 18px;
    background: linear-gradient(125deg, #ffe6e8 0%, #fff3f4 100%);
}
.article-box .zf-article-title-tile h1 {
    margin: 0;
    color: #8d1721;
    font-size: clamp(1.6rem, 3.4vw, 2.65rem);
    line-height: 1.15;
    letter-spacing: -.032em;
    overflow-wrap: anywhere;
}
.zf-article-heading-stats {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
}
.zf-article-heading-stats .post-view-badge {
    margin: 0;
    min-height: 37px;
}
.zf-article-heart-stat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 11px;
    min-height: 37px;
    border-radius: 999px;
    background: #fff0f3;
    color: #b42345;
    font-size: .92rem;
    line-height: 1;
    font-weight: 850;
    white-space: nowrap;
}
.zf-article-heart-stat strong { font-variant-numeric: tabular-nums; }
.zf-article-author {
    margin-top: 13px;
    padding: 0 2px;
    font-size: 1rem;
}
.zf-article-image-frame {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 26px;
    padding: 10px;
    border: 1px solid #dce7f5;
    border-radius: 21px;
    background: linear-gradient(145deg, #f8fbff, #eef4fc);
    box-shadow: 0 9px 26px rgba(16, 45, 90, .08);
}
.zf-article-image-frame .article-image-link {
    display: block;
    margin: 0;
    max-width: 100%;
    overflow: hidden;
    border-radius: 13px;
}
.zf-article-image-frame .article-image { margin: 0; border-radius: 13px; }
.zf-article-back-row { margin-top: 26px; }
.zf-article-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 19px;
    border: 1px solid #c9ddf6;
    border-radius: 12px;
    color: #1159b2;
    background: #edf5ff;
    font-weight: 850;
    text-decoration: none;
}
.zf-article-back-btn:hover { background: #dcecff; text-decoration: none; }

@media (max-width: 700px) {
    .zf-blog-card-body { padding: 17px 17px 19px; }
    .zf-blog-image-frame { min-height: 174px; }
    .zf-blog-card .zf-blog-image-frame .card-image { height: 156px; }
    .zf-article-heading-main { flex-direction: column; align-items: stretch; }
    .zf-article-heading-stats { flex-direction: row; flex-wrap: wrap; }
    .zf-article-heading-stats .post-view-badge { margin: 0; }
    .zf-article-image-frame { padding: 7px; }
}
