/*-------------------- Tabelle, Bildunterschrift, Abschluss-Störer (Blog) ----------------------*/

/* Tabelle: mehr Abstand zum Text, schlanke Zellen, Linien in Hellgrau, Kopfzeile mit Akzentlinie */
.blogpost-ctn .wp-block-table {
    margin-block: var(--wp--preset--spacing--large) !important;
}

.blogpost-ctn .wp-block-table table {
    border-collapse: collapse;
    width: 100%;
    table-layout: auto;
}

.blogpost-ctn .wp-block-table th,
.blogpost-ctn .wp-block-table td {
    border: 0;
    border-bottom: 1px solid var(--wp--preset--color--custom-secondary);
    padding: .6em 1em .6em 0;
    text-align: left;
    vertical-align: top;
    line-height: 1.3;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: auto;
}

@media (max-width: 781px) {
    .blogpost-ctn .wp-block-table th,
    .blogpost-ctn .wp-block-table td {
        font-size: clamp(.8rem, .75rem + .2vw, .9rem);
        padding-right: .75em;
    }
}

.blogpost-ctn .wp-block-table thead {
    border-bottom: 0;
}

.blogpost-ctn .wp-block-table thead th {
    border-bottom: 2px solid var(--wp--preset--color--secondary);
    font-weight: 700;
}

.blogpost-ctn .wp-block-table tbody td:first-child {
    font-weight: 700;
}

/* Bildunterschrift direkt unter dem Bild, mittig */
.blogpost-ctn .wp-block-image figcaption {
    margin-top: .75em;
    margin-bottom: 0;
    font-size: clamp(.8rem, .75rem + .2vw, .9rem);
    line-height: 1.3;
    text-align: center;
}

/* Steht der Projekt-Störer am Beitragsende, schließt er ohne Abstand an die Autorenbox an */
.blogpost-ctn > .stoerer-projekt-starten:last-child {
    margin-bottom: 0 !important;
}

main > section:has(.blogpost-ctn > .stoerer-projekt-starten:last-child) {
    margin-bottom: 0 !important;
}