/**
 * Kryptoseite News: Magazin-Layout (nur auf diesem Tab geladen).
 */
.crypto-news-magazine {
    background: #fff;
    border: 1px solid var(--kb-border);
    border-radius: var(--kb-radius);
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: none;
}

.crypto-news-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.crypto-news-head .section-title {
    margin-bottom: 0;
}

.crypto-news-all {
    color: var(--kb-cta);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.crypto-news-all:hover {
    text-decoration: underline;
}

/* Top-Story links, zwei Meldungen rechts */
.crypto-news-top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.crypto-news-top--single {
    grid-template-columns: 1fr;
}

.crypto-news-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
}

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

.crypto-news-lead:hover,
.crypto-news-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.crypto-news-image {
    display: block;
    text-decoration: none;
    aspect-ratio: 16 / 9;
    background: var(--kb-warn-soft);
    overflow: hidden;
}

.crypto-news-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.crypto-news-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #d97706;
    font-size: 1.5rem;
    font-weight: 700;
}

.crypto-news-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 20px 20px;
    flex: 1;
}

.crypto-news-lead .crypto-news-body {
    padding: 20px 24px 24px;
}

.crypto-news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
    color: #6b7280;
}

.crypto-news-type {
    background: #fef3c7;
    color: #b45309;
    border-radius: 999px;
    padding: 2px 10px;
    font-weight: 600;
}

.crypto-news-title {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.4;
    color: var(--kb-text);
}

.crypto-news-lead .crypto-news-title {
    font-size: 1.5rem;
    line-height: 1.3;
}

.crypto-news-title a {
    color: inherit;
    text-decoration: none;
}

.crypto-news-title a:hover {
    color: #d97706;
}

.crypto-news-excerpt {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.9375rem;
    /* Auch Texte ohne Leerzeichen (wp_trim_words kürzt nur nach Wörtern) begrenzen */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.crypto-news-lead .crypto-news-excerpt {
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

.crypto-news-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.crypto-news-more {
    margin-top: auto;
    color: var(--kb-cta);
    font-weight: 600;
    text-decoration: none;
}

/* Nebenmeldungen: Bild kleiner, nur Titel */
.crypto-news-card--side .crypto-news-image {
    aspect-ratio: 21 / 9;
}

.crypto-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.crypto-news-empty p {
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .crypto-news-top {
        grid-template-columns: 1fr;
    }

    .crypto-news-side {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .crypto-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .crypto-news-magazine {
        padding: 20px;
    }

    .crypto-news-side,
    .crypto-news-grid {
        grid-template-columns: 1fr;
    }

    .crypto-news-lead .crypto-news-title {
        font-size: 1.25rem;
    }
}
