/*
 Theme Name:   Kulturpilger
 Theme URI:    https://www.kulturpilger.de
 Description:  Child Theme of Twenty Fourteen 
 Author:       KuPi Webseiten AG
 Author URI:   https://www.kulturpilger.de
 Template:     twentyfourteen
 Version:      1.0.0
*/

@import url("../twentyfourteen/style.css");

/* ================================
   Featured Items
   ================================ */
.featured-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    justify-content: space-between;
    align-items: stretch;
}

.featured-item {
    flex: 1 1 calc(33% - 20px);
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: transform 0.3s, box-shadow 0.3s;
}

.featured-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.featured-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.featured-item .entry-title {
    margin: 6px 10px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
}

.featured-item .entry-title a {
    text-decoration: none;
    color: inherit;
}

.featured-item .entry-title a:hover {
    color: #0073aa;
}

@media (max-width: 1024px) { .featured-item { flex: 1 1 calc(50% - 20px); } }
@media (max-width: 600px) { .featured-item { flex: 1 1 100%; } }

/* ================================
   Feed / Blog
   ================================ */
.blog-feed {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.feed-item {
    flex: 1 1 calc(33% - 20px);
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    padding: 15px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feed-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* ================================
   Events: Zweispaltig
   ================================ */
.feed-item.event-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
}

.feed-item.event-item .event-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feed-item.event-item .event-image {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-item.event-item .event-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center center;
    border-radius: 4px;
}

/* Normal Posts: einspaltig, Bilder im Text */
.feed-item:not(.event-item) {
    flex-direction: column;
}

.feed-item:not(.event-item) .entry-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 4px;
}

/* Responsive: Mobile */
@media (max-width: 768px) {
    .feed-item.event-item {
        flex-direction: column;
    }
    .feed-item.event-item .event-image {
        flex: none;
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 1024px) { .feed-item { flex: 1 1 calc(50% - 20px); } }
@media (max-width: 600px) { .feed-item { flex: 1 1 100%; } }

/* Event Label */
.event-label {
    display: inline-block;
    background-color: #792B29;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Feed-Titel & Meta */
.feed-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
}

.feed-title a { text-decoration: none; color: #222; }
.feed-title a:hover { color: #0073aa; }

.feed-meta {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 10px;
}

/* Event-Infos */
.event-info {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

.event-info .spacer { height: 10px; }

.entry-content {
    margin-top: 10px;
}
