/* News & Ratgeber – Börsen-Testbericht */

.boerse-articles-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.boerse-articles-all {
    color: var(--kb-accent-dark);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.boerse-articles-all:hover,
.boerse-articles-all:focus {
    text-decoration: underline;
}

.boerse-articles-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 8px;
}

.boerse-article-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--kb-border);
    border-radius: var(--kb-radius);
    box-shadow: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.boerse-article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.boerse-article-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
}

.boerse-article-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.boerse-article-card:hover .boerse-article-image img {
    transform: scale(1.04);
}

.boerse-article-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
}

.boerse-article-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 16px 18px 18px;
}

.boerse-article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 0.8125rem;
}

.boerse-article-type {
    padding: 2px 8px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 600;
}

#boerse-ratgeber .boerse-article-type {
    background: #ecfdf5;
    color: #047857;
}

.boerse-article-title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.boerse-article-title a {
    color: var(--kb-text);
    text-decoration: none;
}

.boerse-article-title a:hover,
.boerse-article-title a:focus {
    color: var(--kb-accent-dark);
}

.boerse-article-excerpt {
    flex-grow: 1;
    margin: 0 0 14px;
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.6;
}

.boerse-article-more {
    align-self: flex-start;
    color: var(--kb-accent-dark);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.boerse-article-more:hover,
.boerse-article-more:focus {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .boerse-articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .boerse-articles-grid {
        grid-template-columns: 1fr;
    }
}
