/* ==========================================================================
   LBV NEWS GRID - STATIC CORE STYLES
   ========================================================================== */

/* --- TOOLBAR --- */
.lbv-news-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.lbv-view-btn {
    background: transparent;
    border: 1px solid #ccc;
    color: #999;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lbv-view-btn:hover {
    border-color: #666;
    color: #666;
}

/* --- CONTAINER BASE --- */
.lbv-news-container {
    display: grid;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    /* Spaltenanzahl wird per Inline-CSS aus PHP gesteuert! */
}

/* --- NEWS ITEM (CARD) --- */
.lbv-news-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.lbv-news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.lbv-item-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

/* Bild Bereich */
.lbv-item-media {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    background-color: #eee;
}

.lbv-item-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.lbv-news-item:hover .lbv-item-media img {
    transform: scale(1.05);
}

.lbv-card-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
}

/* Overlays */
.lbv-overlay-tags {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lbv-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 2px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.lbv-overlay-date {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: #fff;
    color: #333;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Content */
.lbv-item-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.lbv-item-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Verstecken */
.lbv-list-meta,
.lbv-list-arrow {
    display: none;
}

/* --- LIST VIEW OVERRIDES --- */
.view-list .lbv-news-item {
    background-color: #ffffff !important;
    box-shadow: none;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    flex-direction: row;
    align-items: center;
    height: auto;
}

.view-list .lbv-news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.view-list .lbv-item-link {
    flex-direction: row;
    align-items: center;
}

.view-list .lbv-item-media,
.view-list .lbv-overlay-tags,
.view-list .lbv-overlay-date {
    display: none;
}

.view-list .lbv-item-content {
    background-color: transparent !important;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding-right: 3rem;
}

.view-list .lbv-item-title {
    color: #222 !important;
    font-size: 1.15rem;
    -webkit-line-clamp: 2;
}

.view-list .lbv-list-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.4rem;
}

.view-list .lbv-meta-date {
    font-size: 0.85rem;
    font-weight: 700;
}

.view-list .lbv-meta-tags {
    display: flex;
    gap: 0.4rem;
}

.view-list .lbv-list-tag {
    background-color: #f4f4f4;
    color: #666;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

.view-list .lbv-list-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f9f9f9;
    transition: all 0.2s ease;
}

/* --- LOAD MORE --- */
.lbv-load-more-wrapper {
    text-align: center;
    margin-top: 3rem;
    width: 100%;
}

.lbv-load-more-btn {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: opacity 0.3s ease;
    display: inline-block;
}

.lbv-load-more-btn:hover {
    opacity: 0.8;
}

.lbv-load-more-btn.hidden,
.lbv-hidden-item {
    display: none !important;
}
