/**
 * Vilstein Theme - Blog-spezifische Styles
 */

/* Blog Container und Layout */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 15px 40px;
}

.page-header {
    text-align: left;
    margin-bottom: 50px;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #333;
    position: relative;
}

.page-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #89CFF0;
}

.page-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
}

/* Blog Grid Layout */
.blog-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Blog Posts */
.blog-post {
    margin-bottom: 30px;
}

/* Featured Post */
.featured-post {
    margin-bottom: 40px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 30px;
}

.post-image-container {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
}

.post-image {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.featured-post:hover .post-image {
    transform: scale(1.05);
}

.post-content {
    padding: 0;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.post-author, .post-date {
    margin-right: 15px;
}

.post-title {
    margin: 10px 0;
    font-size: 1.8rem;
    color: #333;
}

.post-excerpt {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
}

.read-more {
    display: inline-block;
    color: #89CFF0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #3DB9DC;
}

/* Standard Post Layout */
.standard-post {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #eaeaea;
}

.post-thumbnail {
    flex: 0 0 120px;
    margin-right: 20px;
    overflow: hidden;
    border-radius: 8px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.standard-post:hover .post-thumbnail img {
    transform: scale(1.05);
}

.standard-post .post-content {
    flex: 1;
}

.standard-post .post-title {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
}

.standard-post .post-excerpt {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Sidebar */
.blog-sidebar {
    padding-top: 10px;
}

.sidebar-widget {
    margin-bottom: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.widget-title {
    background-color: #89CFF0;
    color: white;
    padding: 15px 20px;
    margin: 0;
    font-size: 1.2rem;
}

.category-list, .recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li, .recent-posts-list li {
    border-bottom: 1px solid #eee;
    padding: 10px 20px;
}

.category-list li:last-child, .recent-posts-list li:last-child {
    border-bottom: none;
}

.category-list a, .recent-posts-list a {
    color: #444;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
}

.category-list a:hover, .recent-posts-list a:hover {
    color: #89CFF0;
}

/* Suchfeld */
.search-widget {
    padding: 20px;
}

.search-form {
    display: flex;
    position: relative;
}

.search-field {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    font-size: 0.9rem;
}

.search-submit {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #89CFF0;
    cursor: pointer;
}

/* Neueste Beiträge in der Sidebar */
.recent-post-item {
    display: flex;
    padding: 15px 20px !important;
}

.recent-post-thumb {
    flex: 0 0 60px;
    margin-right: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.recent-post-thumb img {
    width: 100%;
    height: 60px;
    object-fit: cover;
}

.recent-post-content {
    flex: 1;
}

.recent-post-content a {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.recent-post-content .post-date {
    font-size: 0.8rem;
    color: #888;
}

/* Pagination */
.blog-pagination {
    margin-top: 40px;
    text-align: center;
}

.page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border-radius: 4px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers.current {
    background: #89CFF0;
    color: white;
}

.page-numbers:hover:not(.current) {
    background: #e0e0e0;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        margin-top: 40px;
    }
    
    .standard-post {
        flex-direction: column;
    }
    
    .post-thumbnail {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
}