.image-content-detail {
    padding: 20px 0 0;
}

.image-content-teaser {
    max-width: 1000px;
    padding-top: 15px;
}

.image-content-detail .caption {
    font-size: 14px;
    color: rgb(84, 133, 248);
}

.image-content-detail p {
    margin-bottom: 0;
}

blockquote.blockquote > p {
    margin-bottom: 0 !important;
}

.transparent-header section {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 330px;
}

.content-section {
    padding: 0;
}

main .breadcrumb-section {
    z-index: 9;
}

/* didaktis.ch specific design rules */
.header-main {
    background-image: url("/fileadmin/user_upload/menushade.png");
    background-repeat: repeat-x;
}

.navigation ul li {
    font-weight: bold;
}

.image-caption {
    width: 100%;
}

.banner-section.small-banner {
    height: 344px;
    margin-top: -104px;
}

.ce-gallery figcaption {
    display: block;
}

.breadcrumb-section {
    margin-bottom: 50px;
}

h1 {
    text-shadow: 2px 2px grey;
}

/* Einheitliche Ausrichtung der Startseiten-Teaserboxen */
@media (min-width: 768px) {
    .teaser-block {
        display: flex;
        flex-direction: column;
        min-height: 680px;
    }

    .teaser-block .btn-group {
        margin-top: auto;
        padding-top: 15px;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .teaser-block .btn-group a {
        margin-right: 0;
    }
}

@media (min-width: 992px) {
    .teaser-block {
        min-height: 450px;
    }
}

@media (min-width: 1200px) {
    .teaser-block {
        min-height: 450px;
    }
}

/* Artikelteaser: Titel -> Datum rechts -> Bild -> Teasertext + einheitliche min-height */
.news-masonry-layout .news-card {
    display: flex;
    flex-direction: column;
}

.news-masonry-layout .news-title h4 {
    margin-top: 0;
    margin-bottom: 6px;
    min-height: 60px;
    align-items: flex-start;
}

.news-masonry-layout .news-meta {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

.news-masonry-layout .news-meta .news-category {
    margin-right: auto;
    padding-left: 0;
}

.news-masonry-layout .news-meta .news-category:before {
    display: none;
}

.news-masonry-layout .news-meta .news-date {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}

.news-masonry-layout .news-img-wrap {
    aspect-ratio: 5 / 3;
    overflow: hidden;
    margin: 0 0 14px;
}

.news-masonry-layout .news-img-wrap a,
.news-masonry-layout .news-img-wrap img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.news-masonry-layout .news-text {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.news-masonry-layout .news-text .more {
    margin-top: auto;
    align-self: flex-start;
}

@media (min-width: 768px) {
    .news-masonry-layout .news-card {
        min-height: 525px;
    }
}

@media (min-width: 992px) {
    .news-masonry-layout .news-card {
        min-height: 530px;
    }
}

@media (min-width: 1200px) {
    .news-masonry-layout .news-card {
        min-height: 520px;
    }
}

/* Forcefully hide bottom cookieconsent revoke button */
.cc-revoke.cc-bottom.active,
.cc-revoke.cc-bottom {
    display: none !important;
}

@media (max-width: 767.98px) {
    header.sticky-header + main {
        margin-top: 58px;
    }

    .content-section {
        padding: 0;
    }

    .ce-intext .ce-gallery {
        margin: 0 !important;
    }
}

/* TYPO3 Erscheinungsbild: Abstände (space_before_class / space_after_class) & Rahmen (frame_class) */
.frame-space-before-extra-small,
.content-section.frame-space-before-extra-small {
    padding-top: 1em;
}

.frame-space-before-small,
.content-section.frame-space-before-small {
    padding-top: 2em;
}

.frame-space-before-medium,
.content-section.frame-space-before-medium {
    padding-top: 3em;
}

.frame-space-before-large,
.content-section.frame-space-before-large {
    padding-top: 4em;
}

.frame-space-before-extra-large,
.content-section.frame-space-before-extra-large {
    padding-top: 5em;
}

.frame-space-after-extra-small,
.content-section.frame-space-after-extra-small {
    padding-bottom: 1em;
}

.frame-space-after-small,
.content-section.frame-space-after-small {
    padding-bottom: 2em;
}

.frame-space-after-medium,
.content-section.frame-space-after-medium {
    padding-bottom: 3em;
}

.frame-space-after-large,
.content-section.frame-space-after-large {
    padding-bottom: 4em;
}

.frame-space-after-extra-large,
.content-section.frame-space-after-extra-large {
    padding-bottom: 5em;
}

.frame-ruler-before:before {
    content: '';
    display: block;
    border-top: 1px solid rgba(0, 0, 0, 0.25);
    margin-bottom: 2em;
}

.frame-ruler-after:after {
    content: '';
    display: block;
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
    margin-top: 2em;
}

.frame-indent {
    margin-left: 15%;
    margin-right: 15%;
}

.frame-indent-left {
    margin-left: 33%;
}

.frame-indent-right {
    margin-right: 33%;
}

/* Kurze Seiten: Hintergrund nach der Fusszeile in Footer-Farbe bis Seitenende fortsetzen */
.body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.body > main {
    flex: 0 0 auto;
}

.body > footer.footer {
    flex: 1 0 auto;
}

