/* Featured Image Styles für Blog Posts */

/* Post Featured Image - Einzelne Post-Seite */
.post-featured-image {
    width: 100%;
    margin: 30px 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.featured-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

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

/* Responsive Featured Image */
@media (max-width: 768px) {
    .post-featured-image {
        margin: 20px 0;
        border-radius: 8px;
    }
    
    .featured-img {
        height: 300px;
        object-fit: cover;
    }
}

@media (min-width: 769px) {
    .post-featured-image {
        margin: 40px 0;
    }
    
    .featured-img {
        max-height: 600px;
        object-fit: cover;
    }
}

/* Post Image in Grid (index.php) */
.post-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #d6e6bb 0%, #c0d99f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    overflow: hidden;
}

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

.post-image img[loading="lazy"] {
    background: linear-gradient(135deg, #d6e6bb 0%, #c0d99f 100%);
}

/* Hover Effekt für Post Cards */
.post-card:hover .post-image img {
    transform: scale(1.05);
}

/* No Image Placeholder */
.post-image.no-image {
    font-size: 64px;
    background: linear-gradient(135deg, #d6e6bb 0%, #c0d99f 100%);
    color: rgba(255, 255, 255, 0.8);
}

.post-image.no-image span {
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Image Fehler Fallback */
img[alt] {
    background-color: #f5f5f5;
}

img:broken {
    content: '';
    display: none;
}

/* Print Styles */
@media print {
    .post-featured-image {
        max-height: 400px;
        page-break-inside: avoid;
    }
    
    .featured-img {
        max-width: 100%;
    }
}
