/* Aktuelles Page Styles */

.page-hero--small {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #004080 100%);
    padding: 3rem 0;
    text-align: center;
    color: white;
}

.page-hero--small h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Groups Grid */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    padding: 3rem 0;
}

/* Group Section */
.group-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--group-color, var(--primary-blue));
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.group-header h2 {
    font-size: 1.25rem;
    color: var(--text-dark, #222222);
    margin: 0;
}

.view-all {
    font-size: 0.9rem;
    color: var(--group-color, var(--primary-blue));
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.view-all:hover {
    opacity: 0.7;
}

/* Posts List */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-card {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.post-card:hover {
    background: #f8f9fa;
}

.post-image {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
}

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

.post-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ccc;
}

.post-content {
    flex: 1;
    min-width: 0;
}

.post-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--text-dark);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.post-subtitle {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 0.25rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-date {
    font-size: 0.8rem;
    color: #999;
}

/* No Posts */
.no-posts {
    padding: 2rem;
    text-align: center;
    color: #888;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 900px) {
    .groups-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .page-hero--small h1 {
        font-size: 2rem;
    }

    .group-section {
        padding: 1.25rem;
    }

    .post-card {
        padding: 0.5rem;
    }

    .post-image {
        width: 70px;
        height: 50px;
    }

    .post-content h3 {
        font-size: 0.9rem;
    }
}

/* ========================
   Group Archive Page
   ======================== */

.archive-header {
    background: linear-gradient(135deg, var(--group-color, var(--primary-blue)) 0%, color-mix(in srgb, var(--group-color, var(--primary-blue)) 80%, black) 100%);
    padding: 3rem 0;
    color: white;
    text-align: center;
}

.archive-header h1 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.archive-header p {
    opacity: 0.9;
}

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

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.post-card-large {
    display: block;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.post-card-large .post-image {
    width: 100%;
    height: 180px;
    border-radius: 0;
}

.post-card-large .post-content {
    padding: 1.25rem;
}

.post-card-large h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    -webkit-line-clamp: 2;
}

.post-card-large .post-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ========================
   Single Post Page
   ======================== */

.single-post {
    padding: 3rem 0;
}

.post-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.post-header {
    margin-bottom: 2rem;
    text-align: left;
}

.post-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.post-group-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    background: var(--group-color, var(--primary-blue));
}

.post-header h1 {
    font-size: 2.25rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.post-header .subtitle {
    font-size: 1.25rem;
    color: #666;
    font-weight: 400;
}

.post-featured-image {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark, #222222);
    text-align: left;
}

.post-body p,
.post-body li,
.post-body strong,
.post-body em {
    color: var(--text-dark, #222222);
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body h2 {
    font-family: var(--font-heading, 'Blogger Sans', sans-serif);
    color: var(--text-dark, #222222);
    font-size: 1.6rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
}

.post-body h3 {
    font-family: var(--font-heading, 'Blogger Sans', sans-serif);
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1.5rem 0 0.8rem 0;
}

.post-body ul,
.post-body ol {
    margin: 0 0 1.5rem 1.5rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.post-body a {
    color: var(--primary-blue, #0064ad);
    text-decoration: underline;
}

.post-body a:hover {
    color: var(--primary-orange, #ec7c32);
}

.post-body strong {
    font-weight: 700;
}

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
}

.pagination a {
    background: #f0f0f0;
    color: var(--text-dark);
}

.pagination a:hover {
    background: var(--primary-blue);
    color: white;
}

.pagination .current {
    background: var(--primary-blue);
    color: white;
}
