/* Beiträge Seite Spezifische Styles */

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-light);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Posts Layout */
.posts-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

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

.post-card {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.post-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.post-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    overflow: hidden;
}

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

.post-content {
    padding: 30px;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.post-meta span::before {
    margin-right: 5px;
}

.post-date::before {
    content: '📅';
}

.post-category {
    background: var(--bg-gray);
    padding: 4px 12px;
    border-radius: 12px;
    color: var(--primary-color);
    font-weight: 600;
}

.post-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.post-title a {
    color: var(--text-dark);
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.post-author {
    color: var(--text-light);
    font-size: 0.9rem;
}

.post-author::before {
    content: '✍️';
    margin-right: 5px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination button {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.pagination button:hover,
.pagination button.active {
    background: var(--primary-color);
    color: var(--bg-light);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Sidebar */
.posts-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

/* Categories */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-btn {
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-dark);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    text-align: left;
    transition: var(--transition);
}

.category-btn:hover,
.category-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--bg-light);
}

/* Recent Posts */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-post-item {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-item a {
    color: var(--text-dark);
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

.recent-post-item a:hover {
    color: var(--primary-color);
}

.recent-post-date {
    color: var(--text-light);
    font-size: 0.85rem;
}

.loading {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 40px;
}

.no-posts {
    text-align: center;
    color: var(--text-light);
    padding: 40px;
    background: var(--bg-gray);
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 992px) {
    .posts-layout {
        grid-template-columns: 1fr;
    }

    .posts-sidebar {
        position: static;
    }

    .sidebar-widget {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .post-image {
        height: 200px;
    }

    .post-content {
        padding: 20px;
    }

    .post-title {
        font-size: 1.5rem;
    }

    .post-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
