/* ═══════════════════════════════════════════════════════════════════
   TSC Bietigheim – Blog-Listendarstellung
   Zwei-Spalten-Karte: Bild links · Titel + Auszug + Button rechts
   ═══════════════════════════════════════════════════════════════════ */

/* ── Äußerer Beitrags-Wrapper (Divi) ────────────────────────────── */
.home .et_pb_post,
.blog .et_pb_post {
    padding-bottom: 28px;
    margin-bottom: 28px !important;
    border-bottom: 1px solid #e5e7eb;
}

/* Trennlinie über die tsc-card-wrapper Klasse */
.tsc-card-wrapper {
    padding-bottom: 28px !important;
    margin-bottom: 28px !important;
    border-bottom: 1px solid #e5e7eb !important;
}

/* Divi-eigenes Beitragsbild in der Liste ausblenden */
.home .et_pb_post > a:first-child img,
.blog .et_pb_post > a:first-child img {
    display: none !important;
}

/* Divi-eigene Elemente ausblenden (Datum, Kategorie-Meta etc.) */
.home .et_pb_post .post-meta,
.blog .et_pb_post .post-meta,
.home .et_pb_post .et_pb_title_container,
.blog .et_pb_post .et_pb_title_container {
    display: none !important;
}

/* ── Karte: Flex-Container ──────────────────────────────────────── */
.tsc-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
}

/* ── Spalte 1: Bild ─────────────────────────────────────────────── */
.tsc-card-image {
    flex: 0 0 200px;
    width: 200px;
    height: 140px;
    overflow: hidden;
    border-radius: 6px;
    background: #dde3ea;
}

.tsc-card-image .tsc-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Platzhalter wenn kein Beitragsbild */
.tsc-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dde3ea;
}

.tsc-thumb-placeholder svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Spalte 2: Text ─────────────────────────────────────────────── */
.tsc-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Titel */
.tsc-card-title {
    margin: 0 !important;
    font-size: 1.15rem !important;
    line-height: 1.35 !important;
    font-weight: 700;
}

.tsc-card-title a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.tsc-card-title a:hover {
    opacity: 0.7;
}

/* Auszug */
.tsc-card-excerpt {
    margin: 0 !important;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #444;
    flex: 1;
}

/* Button */
.tsc-card-btn {
    display: inline-block;
    margin-top: 4px;
    padding: 7px 18px;
    background-color: #0C71C3;
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
    align-self: flex-start;
}

.tsc-card-btn:hover {
    background-color: #0958a0;
    color: #fff !important;
}

/* ── Responsive: unter 600 px untereinander ─────────────────────── */
@media (max-width: 600px) {
    .tsc-card {
        flex-direction: column;
    }

    .tsc-card-image {
        flex: none;
        width: 100%;
        height: 180px;
    }
}
