/* Dokumentlayout. Alle Regeln betreffen ausschließlich den Seiteninhalt. */
body.zw-document-layout #page {
    box-sizing: border-box;
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 28px 20px 40px;
}
body.zw-document-layout.zw-document-wide #page {
    max-width: 1200px;
}
.zw-calendar-notice {
    margin: 0 0 20px;
    padding: 10px 16px;
    border: 1px solid #b9d5e8;
    border-radius: 4px;
    background: #edf6fc;
    color: #243746;
    font-size: 16px;
    text-align: center;
}
.zw-calendar-notice a {
    color: #125781;
    font-weight: 600;
    text-decoration: underline;
}
.zw-calendar-notice a:hover {
    color: #0d3d5b;
}
.zw-calendar-notice a:focus-visible {
    outline: 2px solid #125781;
    outline-offset: 3px;
}
body.zw-document-layout #content.site-content {
    display: block;
    padding: 0;
}
body.zw-document-layout #primary {
    float: none;
    width: 100%;
    min-width: 0;
}
body.zw-document-layout #main {
    margin: 0;
}
body.zw-document-layout #main > article {
    margin: 0 0 24px;
}
body.zw-document-layout #main > article > .inside-article,
body.zw-document-layout #main > .page-header,
body.zw-document-layout #main > .comments-area,
body.zw-document-layout #main > .paging-navigation {
    box-sizing: border-box;
    padding: 44px 56px;
    border: 1px solid #e1e7ec;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 6px 24px rgb(36 55 70 / 9%);
    color: #243746;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}
body.zw-document-layout #main .entry-header {
    margin: 0 0 24px;
    text-align: center;
}
body.zw-document-layout #main .entry-title,
body.zw-document-layout #main > .page-header .page-title,
body.zw-document-layout .entry-content > h1 {
    margin: 0 0 24px;
    color: #17649a;
    font-size: clamp(25px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    overflow-wrap: anywhere;
}
body.zw-document-layout #main .entry-title a {
    color: inherit;
}
body.zw-document-layout #main .entry-meta {
    font-size: 13px;
}
body.zw-document-layout #main .entry-content {
    display: flow-root;
    margin-top: 0;
    overflow-wrap: break-word;
}
body.zw-document-layout .entry-content > p {
    margin: 0 0 18px;
}
body.zw-document-layout .entry-content > p:empty {
    display: none;
}
body.zw-document-layout .entry-content > h2 {
    margin: 28px 0 14px;
    color: #243746;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.35;
}
body.zw-document-layout .entry-content > h3 {
    margin: 26px 0 12px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}
body.zw-document-layout .entry-content > .alignfull,
body.zw-document-layout .entry-content > .alignwide {
    position: static;
    left: auto;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}
body.zw-document-layout .entry-content img {
    box-shadow: none;
    border-radius: 3px;
}
body.zw-document-layout .entry-content .zw-document-photo-center {
    margin: 0 auto 24px;
    text-align: center;
}
body.zw-document-layout .entry-content .zw-document-photo-center img {
    max-width: min(100%, 350px);
    height: auto;
}
body.zw-document-layout .entry-content .zw-document-photo-left,
body.zw-document-layout .entry-content .zw-document-photo-right {
    width: 180px;
    max-width: 40%;
    margin: 4px 20px 14px 0;
    float: left;
}
body.zw-document-layout .entry-content .zw-document-photo-right {
    float: right;
    margin: 4px 0 14px 20px;
}
body.zw-document-layout .entry-content :is(.zw-document-photo-left, .zw-document-photo-right) figure {
    float: none;
    margin: 0;
    max-width: 100%;
}
body.zw-document-layout .entry-content :is(.zw-document-photo-left, .zw-document-photo-right) img {
    max-width: 100%;
    height: auto;
}
body.zw-document-layout .entry-content .zw-document-facts {
    clear: both;
    margin: 24px 0;
    padding: 16px 20px;
    list-style: none;
    border-left: 4px solid #8cbde1;
    border-radius: 3px;
    background: #edf5fb;
}
body.zw-document-layout .entry-content .zw-document-facts > li {
    margin: 0 0 8px;
    padding-left: 108px;
    text-indent: -108px;
}
body.zw-document-layout .entry-content .zw-document-facts > li:last-child {
    margin-bottom: 0;
}
body.zw-document-layout .entry-content .zw-document-facts > li > strong:first-child {
    display: inline-block;
    min-width: 104px;
    text-indent: 0;
}
body.zw-document-layout .entry-content .zw-calendar-card {
    font-size: 14px;
}
body.zw-document-layout .entry-content > .zw-calendar-cards {
    clear: both;
    margin: 26px auto;
}
body.zw-document-layout .entry-content > .wp-block-kadence-image:has(a[href*="/zwar-kalender/"]) {
    clear: both;
    width: 100%;
    max-width: none;
    margin: 28px 0 0;
    padding-top: 18px;
    border-top: 1px solid #cdd9e2;
    text-align: center;
}
body.zw-document-layout .entry-content > .wp-block-kadence-image:has(a[href*="/zwar-kalender/"]) img {
    width: 58px;
    height: auto;
}
body.zw-document-layout .entry-content > .wp-block-kadence-image:has(a[href*="/zwar-kalender/"]) figcaption {
    margin: 8px 0 0;
    font-size: 14px;
}
body.zw-document-layout .entry-content > iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-bottom: 24px;
}
body.zw-document-layout .entry-content > .wp-block-table {
    max-width: 100%;
    overflow-x: auto;
}
body.zw-document-layout .entry-content > .wp-block-kadence-image:has(a[href*="/zwar-kalender/"]) mark,
body.zw-document-home .entry-content .zw-groups-heading mark {
    background: transparent;
    color: #17649a;
}
body.zw-document-layout .entry-content .zw-gruppen-news-text {
    min-width: 0;
}
/* Die Startseite behält genügend Platz für Gruppen und aktuelle Meldungen. */
body.zw-document-home .entry-content > p:first-of-type {
    margin-bottom: 28px;
    color: #17649a !important;
    font-size: clamp(22px, 2.5vw, 28px) !important;
    line-height: 1.35;
}
body.zw-document-home .entry-content .zw-document-photo-left {
    width: 38%;
    max-width: 360px;
    margin: 4px 26px 24px 0;
}
body.zw-document-home .entry-content > p.has-contrast-background-color {
    padding: 0;
    color: #243746 !important;
    background: transparent !important;
    font-size: 17px !important;
}
body.zw-document-home .entry-content > .zw-groups-heading,
body.zw-document-home .entry-content > p.has-text-align-center:not(:first-of-type) {
    clear: both;
    margin: 32px 0 24px;
    padding-top: 24px;
    border-top: 1px solid #cdd9e2;
    gap: 18px 28px;
}
body.zw-document-home .entry-content .zw-groups-heading p {
    margin: 0;
}
body.zw-document-home .entry-content .kb-gallery-type-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
}
body.zw-document-home .entry-content .kb-gallery-type-grid > li {
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
}
body.zw-document-home .entry-content .kb-gallery-type-grid .kadence-blocks-gallery-item-inner {
    box-shadow: 0 2px 8px rgb(36 55 70 / 12%);
}
body.zw-document-home .entry-content > .wp-block-columns {
    clear: both;
    gap: 24px;
    margin-top: 32px;
}
body.zw-document-home .entry-content > .wp-block-columns > .wp-block-column {
    box-sizing: border-box;
    min-width: 0;
    padding: 22px 18px;
    border: 1px solid #d7e6f1;
    border-radius: 4px;
    background: #edf5fb !important;
}
body.zw-document-home .entry-content > .wp-block-columns > .wp-block-column > p {
    margin: 0 0 20px;
    padding: 0;
    min-height: 0 !important;
    background: transparent !important;
    font-size: 16px !important;
    line-height: 1.6;
}
body.zw-document-home .entry-content > .wp-block-columns > .wp-block-column > p:first-child {
    color: #17649a;
    font-size: 19px !important;
}
body.zw-document-home .entry-content > .wp-block-columns > .wp-block-column > p:first-child > br:first-child {
    display: none;
}
body.zw-document-home .entry-content > .wp-block-columns .wp-block-columns {
    margin-bottom: 0;
}
body.zw-document-home .entry-content > .wp-block-columns :is(.zwat-open, .kb-button) {
    border-radius: 4px;
    background: #17649a;
    color: #fff;
}
body.zw-document-home .entry-content > .wp-block-columns :is(.zwat-open, .kb-button):is(:hover, :focus-visible) {
    background: #135580;
}
@media (max-width: 1024px) {
    body.zw-document-home .entry-content .kb-gallery-type-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 768px) {
    body.zw-document-layout #page {
        padding: 20px 12px 28px;
    }
    body.zw-document-layout #main > article > .inside-article,
    body.zw-document-layout #main > .page-header,
    body.zw-document-layout #main > .comments-area,
    body.zw-document-layout #main > .paging-navigation {
        padding: 28px 24px;
    }
}
@media (max-width: 600px) {
    body.zw-document-layout #page {
        padding: 14px 10px 24px;
    }
    body.zw-document-layout #main > article > .inside-article,
    body.zw-document-layout #main > .page-header,
    body.zw-document-layout #main > .comments-area,
    body.zw-document-layout #main > .paging-navigation {
        padding: 26px 20px;
    }
    body.zw-document-layout .entry-content .zw-document-photo-left,
    body.zw-document-layout .entry-content .zw-document-photo-right {
        float: none;
        width: 100%;
        max-width: 260px;
        margin: 0 auto 18px;
    }
    body.zw-document-layout .entry-content .zw-document-facts {
        padding: 14px;
    }
    body.zw-document-layout .entry-content .zw-document-facts > li {
        padding-left: 0;
        text-indent: 0;
    }
    body.zw-document-layout .entry-content .zw-document-facts > li > strong:first-child {
        display: block;
        min-width: 0;
    }
    body.zw-document-layout .entry-content .zw-gruppen-news-wrapper > [data-zw-news-type] {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    body.zw-document-layout .entry-content :is(.zw-gruppen-news-group-image, .zw-gruppen-news-info-image) {
        flex: none !important;
        width: 120px;
        max-width: 100%;
        margin: 0 auto;
    }
    body.zw-document-home .entry-content .zw-news-card {
        flex-direction: column;
    }
    body.zw-document-home .entry-content .kb-gallery-type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}
@media print {
    body.zw-document-layout #page {
        max-width: none;
        padding: 0;
    }
    body.zw-document-layout #main > article > .inside-article {
        padding: 20px;
        border: 0;
        box-shadow: none;
    }
    body.zw-document-layout #main .entry-header,
    body.zw-document-layout .entry-content .zw-document-facts,
    body.zw-document-layout .entry-content .zw-calendar-card {
        break-inside: avoid;
    }
}
