/*
 * Update-sichere CSS-Datei für eigene Anpassungen.
 * Diese Datei wird bei Modul-Updates nicht überschrieben.
 */

/* === Blog-Karten kompakt halten (Startseite + /blog/) ===
 * Das Site-Theme drückt über generische h2/h3/p-Regeln (z. B. .info-module h3
 * { margin: 25px 0 15px }) große Abstände in die Teaser-Karten. Hier neutralisiert,
 * damit die Karte überall so kompakt aussieht wie im Standard-Modul. */
.abcb-card__body {
    padding: 1.1rem 1.1rem 1.25rem !important;
}
.abcb-card__title {
    margin: 0 0 0.5rem !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    white-space: normal !important;
    word-break: normal !important;
}
.abcb-card__excerpt {
    margin: 0 !important;
}
.abcb-card__cta {
    margin: 0.75rem 0 0 !important;
}
.abcb-card__media {
    margin: 0 !important;
}

.sec-landing-banner--blog-post .right-inner .top .title {
    display: none !important;
}

.abcb-theme-post-page .abcb-breadcrumb {
    margin: 0 0 0.4rem;
}

/* Weniger Abstand zwischen Hero und Breadcrumb */
.abcb-theme-post-page .sec-content-element--blog-post .content-element-inner {
    padding-top: 16px;
}

.abcb-theme-post-page .abcb-breadcrumb__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
    font-size: 0.875rem;
    line-height: 1.6;
}

.abcb-theme-post-page .abcb-breadcrumb__label {
    margin: 0;
    font-weight: 700;
}

/* Breadcrumb-Links normal (nur "Sie sind hier:" bleibt fett) */
.abcb-theme-post-page .abcb-breadcrumb a,
.abcb-theme-post-page .abcb-breadcrumb__item {
    font-weight: 400;
}

.abcb-theme-post-page .abcb-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.abcb-theme-post-page .abcb-breadcrumb__item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.abcb-theme-post-page .abcb-breadcrumb__item + .abcb-breadcrumb__item::before {
    content: "/";
    color: rgba(21, 21, 21, 0.45);
}

.abcb-theme-post-page .abcb-theme-post__layout {
    row-gap: 2rem;
}

.abcb-theme-post-page .abcb-theme-post__main,
.abcb-theme-post-page .abcb-theme-post__aside {
    min-width: 0;
}

/* Sichtbare Beitrags-Überschrift (H1) über dem Hauptbild – im Site-Look */
.abcb-theme-post-page .abcb-theme-post__title {
    color: #4b9ab7;
    font-family: "Verdana", "Geneva", "sans-serif";
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 0.75rem;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 992px) {
    .abcb-theme-post-page .abcb-theme-post__title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .abcb-theme-post-page .abcb-theme-post__title {
        font-size: 24px;
    }
}

.abcb-theme-post-page .abcb-theme-post__meta {
    margin: 0 0 1.25rem;
    font-size: 0.875rem;
    line-height: 1.6;
    font-style: italic;
}

/* "Autor:" fett UND kursiv */
.abcb-theme-post-page .abcb-theme-post__meta strong {
    font-weight: 700;
    font-style: italic;
}

.abcb-theme-post-page .abcb-post__hero {
    margin: 0 0 1.5rem;
}

.abcb-theme-post-page .abcb-post__hero img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.abcb-theme-post-page .abcb-post__content picture,
.abcb-theme-post-page .abcb-post__content img,
.abcb-theme-post-page .abcb-post__content iframe {
    display: block;
    max-width: 100%;
}

.abcb-theme-post-page .abcb-post__content img {
    height: auto;
    border-radius: 4px;
}

.abcb-theme-post-page .abcb-post__content h2 {
    scroll-margin-top: 110px;
}

.abcb-theme-post-page .abcb-post__content a {
    overflow-wrap: anywhere;
}

.abcb-theme-post-page .abcb-theme-post__aside {
    display: grid;
    gap: 1rem;
    align-self: start;
}

.abcb-theme-post-page .abcb-theme-box {
    border: 1px solid #ebebeb;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.abcb-theme-post-page .abcb-theme-box .content-box-heading {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #2c6e8a;
    padding: 18px 20px;
    border-bottom: 1px solid #ebebeb;
}

.abcb-theme-post-page .abcb-theme-box__content {
    padding: 18px 20px;
    max-height: none;
    overflow: visible;
}

.abcb-theme-post-page .abcb-theme-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.abcb-theme-post-page .abcb-theme-list li {
    margin: 0;
    padding: 0;
}

.abcb-theme-post-page .abcb-theme-list li::before {
    display: none !important;
}

.abcb-theme-post-page .abcb-theme-list li + li {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid #ebebeb;
}

.abcb-theme-post-page .abcb-theme-list a {
    display: inline-block;
    text-decoration: none;
}

.abcb-theme-post-page .abcb-theme-list a:focus,
.abcb-theme-post-page .abcb-theme-list a:hover {
    color: #151515;
    text-decoration: underline;
}

.abcb-theme-post-page .abcb-theme-list--toc {
    counter-reset: toc;
}

.abcb-theme-post-page .abcb-theme-list--toc li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
}

.abcb-theme-post-page .abcb-theme-list--toc li::before {
    counter-increment: toc;
    content: counter(toc) ".";
    display: block !important;
    position: static;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    color: #2c6e8a;
    font-weight: 700;
}

.abcb-theme-post-page .table-scroll {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.abcb-theme-post-page .table-scroll table {
    min-width: 640px;
}

@media (min-width: 992px) {
    .abcb-theme-post-page .abcb-theme-post__aside {
        position: sticky;
        top: 105px;
    }
}

@media (max-width: 991.98px) {
    .abcb-theme-post-page .abcb-theme-post__aside {
        position: static;
    }
}

@media (max-width: 768px) {
    .abcb-theme-post-page .abcb-breadcrumb__inner,
    .abcb-theme-post-page .abcb-breadcrumb__list {
        align-items: flex-start;
    }

    .abcb-theme-post-page .abcb-theme-box__content,
    .abcb-theme-post-page .abcb-theme-box .content-box-heading {
        padding-left: 16px;
        padding-right: 16px;
    }

    .abcb-theme-post-page .abcb-post__content h2 {
        scroll-margin-top: 90px;
    }
}

/* === Blog-Übersicht (/blog/) als normale Unterseite === */
/* Modul-Rahmen neutralisieren, damit Site-Header/Footer/Banner voll greifen */
main.abcb-archive,
main.abcb-archive > .abcb-shell {
    display: contents;
}

.abcb-theme-archive-page .sec-content-element--blog-archive {
    padding-bottom: 40px;
}

.abcb-theme-archive-page .abcb-archive__head {
    margin-bottom: 1.75rem;
}

/* Übersichts-Titel (H1) im Site-Look – wie .info-module h2 (custom.css: #4b9ab7, 37px) */
.abcb-theme-archive-page .abcb-archive__title {
    color: #4b9ab7;
    font-family: "Verdana", "Geneva", "sans-serif";
    font-size: 37px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 15px;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 992px) {
    .abcb-theme-archive-page .abcb-archive__title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .abcb-theme-archive-page .abcb-archive__title {
        font-size: 25px;
    }
}

/* === Blog-Karten: keine (Hover-)Unterstreichung, kein gelber Link-Hover === */
/* Gilt für Übersicht UND den eingebetteten Teaser auf der Startseite */
.abcb-card__title a,
.abcb-card__title a:hover,
.abcb-card__title a:focus,
.abcb-card__cta a,
.abcb-card__cta a:hover,
.abcb-card__cta a:focus {
    text-decoration: none !important;
}

.abcb-card__title a:hover,
.abcb-card__title a:focus,
.abcb-card__cta a:hover,
.abcb-card__cta a:focus {
    color: inherit !important;
}
