/* ═════════════════════════════════════════════════════════════════
 * h24blog — Blog-Styles (Liste, Detail, Block)
 * ═════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────────
 * Block (Home/Footer): 3 neueste Beiträge im Grid
 * ────────────────────────────────────────────────────────────────── */

.h24blog-block {
    margin: 2rem 0;
    padding: 1.5rem 0;
}

.h24blog-block-headline {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1d4d1d;
    text-align: center;
    margin: 0 0 1.5rem 0;
}

.h24blog-block-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}

.h24blog-card {
    background: #fff;
    border: 1px solid #e0e8e0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.h24blog-card:hover {
    box-shadow: 0 4px 16px rgba(29, 77, 29, 0.1);
    transform: translateY(-2px);
}

.h24blog-card-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f3ec;
}

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

.h24blog-card:hover .h24blog-card-image img {
    transform: scale(1.04);
}

.h24blog-card-body {
    padding: 1rem 1.1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.h24blog-card-title {
    margin: 0 0 0.4rem 0;
    font-size: 1.1rem;
    line-height: 1.3;
    font-weight: 700;
}

.h24blog-card-title a {
    color: #1d4d1d;
    text-decoration: none;
}

.h24blog-card-title a:hover {
    text-decoration: underline;
}

.h24blog-card-date {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.h24blog-card-teaser {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.h24blog-block-more {
    text-align: center;
    margin-top: 1.5rem;
}

.h24blog-block-link {
    color: #3a7a3a;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #3a7a3a;
    padding-bottom: 2px;
}

.h24blog-block-link:hover {
    color: #1d4d1d;
    border-color: #1d4d1d;
}

/* ──────────────────────────────────────────────────────────────────
 * Listen-Seite /blog
 * ────────────────────────────────────────────────────────────────── */

.h24blog-list-wrapper {
    max-width: 980px;
    margin: 1rem auto 2rem;
    padding: 0 1rem;
}

.h24blog-list-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1d4d1d;
    margin: 0 0 1.5rem 0;
}

.h24blog-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.h24blog-list-item {
    display: flex;
    gap: 1.2rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e0e8e0;
    border-radius: 8px;
    transition: box-shadow 0.2s ease;
}

.h24blog-list-item:hover {
    box-shadow: 0 2px 12px rgba(29, 77, 29, 0.08);
}

.h24blog-list-image {
    flex: 0 0 240px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 4px;
    background: #f0f3ec;
}

.h24blog-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.h24blog-list-body {
    flex: 1;
}

.h24blog-list-item-title {
    margin: 0 0 0.4rem 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.h24blog-list-item-title a {
    color: #1d4d1d;
    text-decoration: none;
}

.h24blog-list-item-title a:hover {
    text-decoration: underline;
}

.h24blog-list-meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.h24blog-teaser {
    color: #333;
    line-height: 1.55;
    margin: 0 0 0.7rem 0;
}

.h24blog-readmore {
    color: #3a7a3a;
    font-weight: 600;
    text-decoration: none;
}

.h24blog-readmore:hover {
    color: #1d4d1d;
}

/* Mobile: List-Item single column */
@media (max-width: 640px) {
    .h24blog-list-item {
        flex-direction: column;
    }
    .h24blog-list-image {
        flex: none;
        width: 100%;
        aspect-ratio: 16 / 9;
    }
}

/* Pagination */
.h24blog-pagination {
    margin: 2rem 0 1rem;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.h24blog-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.7rem;
    border-radius: 4px;
    color: #1d4d1d;
    text-decoration: none;
    border: 1px solid #d4dccf;
    background: #fff;
    transition: background 0.15s ease;
}

.h24blog-page:hover {
    background: #f2f6f0;
}

.h24blog-page--active {
    background: #1d4d1d;
    color: #fff;
    border-color: #1d4d1d;
    font-weight: 700;
}

.h24blog-empty {
    color: #666;
    text-align: center;
    padding: 2rem 0;
    font-style: italic;
}

/* ──────────────────────────────────────────────────────────────────
 * Beitrag-Detail
 * ────────────────────────────────────────────────────────────────── */

.h24blog-post {
    max-width: 820px;
    margin: 1rem auto 2rem;
    padding: 0 1rem;
}

.h24blog-post-header {
    margin-bottom: 1.5rem;
}

.h24blog-post-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1d4d1d;
    line-height: 1.2;
    margin: 0 0 0.6rem 0;
}

.h24blog-post-meta {
    color: #888;
    font-size: 0.95rem;
}

.h24blog-post-image {
    margin: 0 0 1.5rem 0;
}

.h24blog-post-image img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 8px;
}

.h24blog-post-content {
    color: #2a2a2a;
    line-height: 1.65;
    font-size: 1.05rem;
}

.h24blog-post-content p {
    margin: 0 0 1rem 0;
}

.h24blog-post-content h2,
.h24blog-post-content h3,
.h24blog-post-content h4 {
    color: #1d4d1d;
    margin: 1.5rem 0 0.6rem 0;
}

.h24blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 0.5rem 0;
}

.h24blog-post-content a {
    color: #3a7a3a;
    text-decoration: underline;
}

.h24blog-post-content blockquote {
    margin: 1rem 0;
    padding: 0.6rem 1rem;
    border-left: 4px solid #6ba042;
    background: #f7faf4;
    color: #444;
    font-style: italic;
}

.h24blog-post-footer {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid #e0e8e0;
}

.h24blog-back {
    color: #3a7a3a;
    text-decoration: none;
    font-weight: 600;
}

.h24blog-back:hover {
    color: #1d4d1d;
}

.h24blog-notfound {
    max-width: 600px;
    margin: 3rem auto;
    padding: 0 1rem;
    text-align: center;
}

.h24blog-notfound h1 {
    color: #1d4d1d;
}

/* In Sidebars / schmalen Bereichen: single column */
.left-column .h24blog-block-grid,
.right-column .h24blog-block-grid,
aside .h24blog-block-grid {
    grid-template-columns: 1fr;
}
