@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../Fonts/lato-light.woff2") format("woff2");
}

@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../Fonts/lato-regular.woff2") format("woff2");
}

@font-face {
    font-family: "Lato";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("../Fonts/lato-italic.woff2") format("woff2");
}

@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../Fonts/lato-medium.woff2") format("woff2");
}

@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../Fonts/lato-semibold.woff2") format("woff2");
}

@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../Fonts/lato-bold.woff2") format("woff2");
}

@font-face {
    font-family: "Lato";
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url("../Fonts/lato-bolditalic.woff2") format("woff2");
}

@font-face {
    font-family: "Dancing Script";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../Fonts/dancing-script-variable.woff2") format("woff2");
}

@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("../Fonts/lato-black.woff2") format("woff2");
}

:root {
    --sm-rust: #A74D33;
    --sm-rust-dark: #A74D33;
    --sm-blue: #AFC9E6;
    --sm-blue-strong: #AFC9E6;
    --sm-beige: #DFD8CB;
    --sm-beige-light: #DFD8CB;
    --sm-grey: #767676;
    --sm-grey-light: #888888;
    --sm-tag-background: #D9D9D9;
    --sm-text: #333333;
    --sm-footer: #333333;
    --sm-white: #fff;
    --kunde-text-dark: var(--sm-text);
    --kunde-blue-dark: var(--sm-rust);
    --sm-content: 1180px;
    --sm-section-padding: clamp(3rem, 6vw, 6rem);
    --sm-content-element-gap: clamp(2.25rem, 3vw, 3rem);
    --sm-content-block-gap: 1rem;
    --sm-news-anchor-offset: 136px;
    --sm-calendar-anchor-offset: 136px;
    --sm-church-panorama-height: 42.9916vw; /* Quellformat: 1912 × 822 */
    --sm-font-sans: "Lato", Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--sm-text);
    background: var(--sm-white);
    font-family: var(--sm-font-sans);
    font-size: 1rem;
    line-height: 1.6;
}

button,
input,
select,
textarea {
    font-family: var(--sm-font-sans);
}

body :where(h1, h2, h3, h4, p, li, a, table) {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.site-main .ce-bodytext a {
    color: var(--sm-rust);
    font-weight: 700;
}

.site-main .frame-type-html > .rahmen > button.cookie_einstellungen {
    background-color: var(--sm-grey);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.site-shell {
    min-height: 100vh;
    background: var(--sm-white);
}

.site-scroll-start,
.site-scroll-end {
    width: 100%;
    height: 0;
}

.site-scroll-navigation {
    position: fixed;
    z-index: 90;
    top: auto;
    right: 0;
    bottom: 24px;
    display: grid;
    gap: 2px;
    transform: none;
}

.site-scroll-navigation__link {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--sm-rust);
    background: rgba(255, 255, 255, 0.5);
    border: 3px solid var(--sm-rust);
    box-shadow: none;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    text-decoration: none;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.site-scroll-navigation__link:first-child {
    border-radius: 8px 0 0 0;
}

.site-scroll-navigation__link:last-child {
    border-radius: 0 0 0 8px;
}

.site-scroll-navigation__link svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-scroll-navigation__link path {
    vector-effect: non-scaling-stroke;
}

.site-scroll-navigation__link:hover,
.site-scroll-navigation__link:focus-visible,
.site-scroll-navigation__link:active {
    color: var(--sm-white);
    background: var(--sm-rust);
    border-color: var(--sm-rust);
}

.site-scroll-navigation__link:focus-visible {
    outline: 3px solid var(--sm-white);
    outline-offset: -6px;
}

.site-topbar__inner,
.home-section__inner,
.site-main__content,
.site-footer__inner {
    width: min(calc(100% - 3rem), var(--sm-content));
    margin-right: auto;
    margin-left: auto;
}

.site-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    color: var(--sm-grey);
    background: var(--sm-white);
    border-bottom: 1px solid rgba(51, 51, 51, 0.08);
    box-shadow: 0 4px 12px rgba(51, 51, 51, 0.12);
    backdrop-filter: none;
}

.site-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 112px;
    gap: 2rem;
}

.site-brand {
    flex: 0 0 clamp(190px, 23vw, 285px);
}

.site-brand :where(.frame, .rahmen, .ce-image, .ce-gallery, .ce-inner, .ce-row, .ce-column, figure) {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.site-brand .ce-center .ce-outer,
.site-brand .ce-center .ce-inner {
    position: static;
    right: auto;
    float: none;
    width: 100%;
}

.site-brand img {
    width: min(100%, 285px);
    max-height: 90px;
    object-fit: contain;
    object-position: left center;
}

.site-brand .frame-sm-logo .ce-gallery {
    position: relative;
}

.site-brand .frame-sm-logo .ce-row {
    transition: opacity 250ms ease;
}

.site-brand .frame-sm-logo .ce-row:first-child {
    position: relative;
    z-index: 1;
    opacity: 1;
}

.site-brand .frame-sm-logo .ce-row:nth-child(2) {
    position: absolute;
    z-index: 2;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .site-brand .frame-sm-logo:hover .ce-row:first-child {
        opacity: 0;
    }

    .site-brand .frame-sm-logo:hover .ce-row:nth-child(2) {
        opacity: 1;
    }
}

.site-brand .frame-sm-logo:focus-within .ce-row:first-child {
    opacity: 0;
}

.site-brand .frame-sm-logo:focus-within .ce-row:nth-child(2) {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .site-brand .frame-sm-logo .ce-row {
        transition-duration: 0.01ms;
    }
}

.site-nav {
    min-width: 0;
}

.hauptnavibox,
.hauptnavi {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: none;
}

.hauptnavi__list,
.dropdown-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dropdown__toggle {
    display: inline-flex;
    width: auto;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.7rem 0.8rem;
    color: var(--sm-grey);
    background: transparent;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.dropdown__toggle::after {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    rotate: 0deg;
    transform: rotate(45deg) translateY(-2px);
    transform-origin: center;
    transition: rotate 0.18s ease;
}

.dropdown.is-open > .dropdown__toggle::after {
    rotate: 180deg;
}

@media (prefers-reduced-motion: reduce) {
    .dropdown__toggle::after {
        transition-duration: 0.01ms;
    }
}

.dropdown__toggle:hover,
.dropdown__toggle:focus-visible {
    color: var(--sm-white);
    background: var(--sm-rust);
}

.hauptnavi__list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.1rem;
}

.nav-item {
    position: relative;
}

.hauptnavi .nav-link {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 0.8rem;
    color: var(--sm-grey);
    border-radius: 0;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.hauptnavi__list > .nav-item > .nav-link {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
}

.hauptnavi .nav-item.active > .nav-link,
.hauptnavi .dropdown-menu__item.active > .nav-link,
.hauptnavi .nav-link:hover,
.hauptnavi .nav-link:focus-visible {
    color: var(--sm-white);
    background: var(--sm-rust);
    outline: none;
}

.hauptnavi__toggleButton {
    display: none;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    padding: 0.4rem;
    color: var(--sm-text);
    background: var(--sm-white);
    border: 1px solid rgba(51, 51, 51, 0.1);
    box-shadow: 0 18px 35px rgba(51, 51, 51, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.dropdown.is-open > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu .nav-link {
    justify-content: flex-start;
    width: 100%;
}

.frame-sm-facility-intro,
.frame-sm-facility-featured {
    scroll-margin-top: var(--sm-news-anchor-offset);
}

/* Section anchors receive programmatic focus for reliable keyboard/screen-reader
   positioning; they are not interactive controls and therefore need no focus ring. */
.frame-sm-facility-intro:focus,
.frame-sm-facility-featured:focus {
    outline: 0;
}

@media (min-width: 901px) {
    .dropdown-menu--sections {
        right: 0;
        left: auto;
    }
}

.site-main {
    overflow-x: clip;
    padding: 0;
    color: var(--sm-text);
    background: var(--sm-white);
}

.site-main .frame,
.home-hero .frame,
.site-footer .frame {
    margin: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.site-main .frame > .rahmen,
.home-hero .frame > .rahmen,
.site-footer .frame > .rahmen {
    width: 100%;
    max-width: none;
    margin: 0;
}

.site-main :where(figure, .ce-gallery, .ce-row, .ce-column) {
    margin: 0;
}

.home-hero {
    position: relative;
    overflow: hidden;
    background: var(--sm-blue);
}

.home-hero .frame-sm-hero,
.home-hero .frame-sm-home-hero,
.home-hero .frame-sm-pfarrleben-hero,
.home-hero .frame-sm-sacrament-hero {
    position: relative;
}

.home-hero .frame-sm-hero > .rahmen > header,
.home-hero .frame-sm-home-hero > .rahmen > header,
.home-hero .frame-sm-pfarrleben-hero > .rahmen > header,
.home-hero .frame-sm-sacrament-hero > .rahmen > header {
    position: absolute;
    z-index: 3;
    bottom: clamp(2rem, 8vw, 7rem);
    left: 0;
    width: fit-content;
    min-width: 40%;
    max-width: 100%;
    padding: clamp(1.2rem, 3vw, 2.2rem) clamp(1.5rem, 4vw, 3rem);
    padding-left: max(1.5rem, calc((100% - var(--sm-content)) / 2));
    color: var(--sm-white);
    background: rgba(167, 77, 51, 0.85);
}

.home-hero .frame-sm-home-hero .sm-home-hero__title {
    display: flex;
    flex-direction: column;
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-weight: 700;
    line-height: 1.15;
}

.home-hero .frame-sm-home-hero :where(.sm-home-hero__eyebrow, .sm-home-hero__name) {
    display: block;
    color: inherit;
}

.home-hero .frame-sm-home-hero .sm-home-hero__eyebrow {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.home-hero .frame-sm-home-hero .sm-home-hero__name {
    font-size: clamp(2rem, 4.7vw, 3.75rem);
    white-space: nowrap;
}

.home-hero .frame-sm-pfarrleben-hero .sm-pfarrleben-hero__label {
    margin: 0;
    color: inherit;
    font-size: clamp(2rem, 4.7vw, 3.75rem);
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}

.home-hero .frame-sm-sacrament-hero .sm-sacrament-hero__title {
    display: flex;
    flex-direction: column;
    gap: 0.08em;
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-weight: 700;
    line-height: 1.1;
}

.home-hero .frame-sm-sacrament-hero :where(.sm-sacrament-hero__eyebrow, .sm-sacrament-hero__name) {
    display: block;
    color: inherit;
    white-space: nowrap;
}

.home-hero .frame-sm-sacrament-hero .sm-sacrament-hero__eyebrow {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.home-hero .frame-sm-sacrament-hero .sm-sacrament-hero__name {
    font-size: clamp(2rem, 4.7vw, 3.75rem);
}

.home-hero .frame-sm-hero > .rahmen > header :where(h1, h2) {
    margin: 0;
    color: inherit;
    line-height: 1.15;
}

.home-hero .frame-sm-hero > .rahmen > header h1 {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 700;
}

.home-hero .frame-sm-hero > .rahmen > header h2 {
    font-size: clamp(2rem, 4.7vw, 3.75rem);
    font-weight: 700;
    white-space: nowrap;
}

.home-hero .frame-sm-hero > .rahmen > header h1:only-child,
.home-hero .frame-sm-hero > .rahmen > header:has(.sm-hero__subtitle) h1 {
    font-size: clamp(2rem, 4.7vw, 3.75rem);
    white-space: nowrap;
}

.home-hero .sm-hero__subtitle {
    margin: 0.65rem 0 0;
    color: inherit;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 400;
    line-height: 1.4;
    overflow-wrap: break-word;
}

.home-hero .ce-center .ce-outer,
.home-hero .ce-center .ce-inner {
    position: static;
    right: auto;
    float: none;
    width: 100%;
}

.home-hero .ce-gallery,
.home-hero .ce-row,
.home-hero .ce-column,
.home-hero figure {
    width: 100%;
    margin: 0;
}

.home-hero img {
    width: 100%;
    height: clamp(155px, var(--sm-church-panorama-height), 660px);
    object-fit: cover;
    object-position: center center;
}

.home-hero::after,
.home-together::after,
.site-footer__accents {
    content: "";
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    height: 12px;
    background: linear-gradient(
        to right,
        var(--sm-grey) 0 20%,
        var(--sm-blue) 20% 40%,
        var(--sm-beige) 40% 60%,
        var(--sm-rust) 60% 80%,
        var(--sm-footer) 80% 100%
    );
}

.sm-sacrament-banner {
    position: relative;
    overflow: hidden;
    color: var(--sm-white);
    background: var(--sm-grey);
}

.sm-sacrament-banner__inner {
    position: relative;
    isolation: isolate;
    display: flex;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: center;
    width: min(calc(100% - 3rem), var(--sm-content));
    min-height: 176px;
    margin-inline: auto;
    padding: 28px 100px 28px 0;
}

.sm-sacrament-banner__inner::after {
    position: absolute;
    z-index: -1;
    top: 50%;
    right: 0;
    width: clamp(80px, 14vw, 200px);
    aspect-ratio: 230.654 / 288.521;
    content: "";
    background: url("../Images/stm_logo_bildmarke.svg") center / contain no-repeat;
    filter: brightness(0) invert(1);
    opacity: 0.08;
    transform: translateY(-50%);
    pointer-events: none;
}

.sm-sacrament-banner .sm-sacrament-banner__title {
    margin: 0;
    color: inherit;
    font-size: clamp(1.65rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.sm-sacrament-banner .sm-sacrament-banner__subtitle {
    margin: 0.5rem 0 0;
    color: inherit;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.4;
}

@media (max-width: 680px) {
    .sm-sacrament-banner__inner {
        min-height: 144px;
        padding-right: 48px;
    }
}

.home-quicklinks {
    background: var(--sm-white);
    border-bottom: 5px solid var(--sm-beige);
}

.home-section__inner.home-quicklinks__content {
    --sm-quicklink-icon-size: clamp(48px, 8vw, 122px);
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
    gap: 0;
    padding-right: clamp(2rem, 4vw, 3.5rem);
    padding-left: clamp(2rem, 4vw, 3.5rem);
    padding-top: 2.6rem;
    padding-bottom: 2.6rem;
}

.frame-sm-quicklink,
.frame-sm-sacrament {
    min-width: 0;
}

.frame-sm-quicklink > .rahmen,
.frame-sm-sacrament > .rahmen {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.frame-sm-quicklink > .rahmen > header,
.frame-sm-sacrament > .rahmen > header {
    order: 2;
    margin-top: 1rem;
}

.frame-sm-quicklink > .rahmen > header {
    box-sizing: border-box;
    width: 100%;
    padding-right: 0.2rem;
    padding-left: 0.2rem;
}

.frame-sm-quicklink > .rahmen > header :where(h2, h3, h4) {
    overflow-wrap: anywhere;
    font-size: clamp(0.62rem, 1.3vw, 1.08rem);
}

.frame-sm-quicklink > header :where(h2, h3, h4),
.frame-sm-sacrament > header :where(h2, h3, h4) {
    margin: 0;
    color: var(--sm-text);
    font-size: clamp(0.88rem, 1.3vw, 1.08rem);
    font-weight: 700;
    line-height: 1.3;
}

.frame-sm-quicklink :where(.ce-image, .ce-textpic),
.frame-sm-sacrament .ce-image {
    order: 1;
}

.frame-sm-quicklink a,
.frame-sm-sacrament a {
    text-decoration: none;
}

.frame-sm-quicklink img {
    width: var(--sm-quicklink-icon-size);
    height: var(--sm-quicklink-icon-size);
    object-fit: contain;
}

.frame-sm-quicklink.frame-layout-20 {
    --sm-quicklink-swap-size: var(--sm-quicklink-icon-size);
}

.frame-sm-quicklink.frame-layout-20 :where(.ce-image, .ce-textpic, .ce-gallery, .ce-outer, .ce-inner) {
    width: var(--sm-quicklink-swap-size);
    height: var(--sm-quicklink-swap-size);
}

.frame-sm-quicklink.frame-layout-20 .ce-gallery {
    position: relative;
    overflow: visible;
}

.frame-sm-quicklink.frame-layout-20 .ce-center :where(.ce-outer, .ce-inner) {
    position: static;
    right: auto;
    float: none;
}

.frame-sm-quicklink.frame-layout-20 .ce-row {
    position: absolute;
    inset: 0;
    width: 100%;
    margin: 0;
    opacity: 1;
    transition: opacity 0.35s ease-in-out;
}

.frame-sm-quicklink.frame-layout-20 .ce-row:nth-child(2) {
    pointer-events: none;
    opacity: 0;
}

.frame-sm-quicklink.frame-layout-20 :where(.ce-column, figure, img) {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
    transform: none;
}

.frame-sm-quicklink.frame-layout-20:has(.ce-row:nth-child(2) img):focus-within .ce-row:first-child {
    opacity: 0;
}

.frame-sm-quicklink.frame-layout-20:focus-within .ce-row:nth-child(2) {
    opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
    .frame-sm-quicklink.frame-layout-20:has(.ce-row:nth-child(2) img):hover .ce-row:first-child {
        opacity: 0;
    }

    .frame-sm-quicklink.frame-layout-20:hover .ce-row:nth-child(2) {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .frame-sm-quicklink.frame-layout-20 .ce-row {
        transition-duration: 0.01ms;
    }
}

.home-welcome {
    background: var(--sm-white);
}

.home-welcome__content {
    padding-top: var(--sm-section-padding);
    padding-bottom: var(--sm-section-padding);
}

.frame-sm-welcome .ce-textpic {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
    align-items: center;
    gap: clamp(2.5rem, 7vw, 7rem);
    max-width: 970px;
    margin: 0 auto;
}

.frame-sm-welcome .ce-gallery {
    width: 100%;
}

.frame-sm-welcome img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 35%;
    border-right: 18px solid var(--sm-beige);
    border-bottom: 18px solid var(--sm-beige);
}

.home-welcome .frame-sm-welcome img {
    border-right: 0;
    border-bottom: 0;
}

.frame-sm-welcome .ce-bodytext {
    color: var(--sm-text);
}

.frame-sm-welcome .ce-bodytext header :where(h1, h2, h3) {
    margin: 0 0 1.7rem;
    color: var(--sm-rust);
    font-family: "Dancing Script", cursive;
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    font-weight: 700;
    line-height: 1.1;
}

.frame-sm-welcome .ce-bodytext p {
    margin: 0 0 1rem;
}

.home-news,
.home-offers,
.home-social {
    position: relative;
    background: var(--sm-beige);
}

.home-news__content,
.home-offers__content,
.home-social__content {
    padding-top: var(--sm-section-padding);
    padding-bottom: var(--sm-section-padding);
}

.frame-sm-section-heading {
    margin-bottom: 2.5rem !important;
}

.frame-sm-section-heading :where(h1, h2, h3) {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.2;
}

.home-news__viewport {
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.home-news__viewport::-webkit-scrollbar {
    display: none;
}

.home-news__track {
    display: flex;
    align-items: stretch;
    gap: 2rem;
    padding: 0.75rem 0 1rem;
}

.frame-sm-news-card {
    --sm-news-card-inline-padding: 1.5rem;
    display: flex;
    flex: 0 0 calc((100% - 4rem) / 3);
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    background: var(--sm-white) !important;
    box-shadow: 0 5px 12px rgba(51, 51, 51, 0.12) !important;
    scroll-snap-align: center;
}

.frame-sm-news-card .news-card__media,
.frame-sm-news-card .news-card__image-link,
.frame-sm-news-card .ce-gallery,
.frame-sm-news-card .ce-row,
.frame-sm-news-card .ce-column,
.frame-sm-news-card figure {
    width: 100%;
}

.frame-sm-news-card img {
    display: block;
    width: 100%;
    height: 185px;
    object-fit: cover;
}

.frame-sm-news-card .ce-bodytext {
    display: flex;
    height: 100%;
    min-height: 270px;
    flex-direction: column;
    padding: 0 var(--sm-news-card-inline-padding);
}

.frame-sm-news-card .news-card__media + .ce-bodytext {
    position: relative;
}

.frame-sm-news-card .news-badge {
    align-self: flex-start;
    margin: 0 0 1rem calc(0rem - var(--sm-news-card-inline-padding));
    padding: 0.45rem 1.2rem 0.45rem var(--sm-news-card-inline-padding);
    color: #333333;
    background: var(--sm-tag-background);
    font-weight: 700;
}

.site-main .frame-sm-news-card .news-badge {
    color: #333333;
}

.frame-sm-news-card .news-badge--announcement {
    background: var(--sm-blue);
}

.frame-sm-news-card .news-badge--report {
    background: var(--sm-beige);
}

.frame-sm-news-card .news-badge--note {
    color: var(--sm-white);
    background: var(--sm-rust);
}

.site-main .frame-sm-news-card .news-badge--note {
    color: var(--sm-white);
}

.frame-sm-news-card .news-card__media + .ce-bodytext .news-badge {
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 0;
    margin: 0;
}

.frame-sm-news-card .news-meta {
    margin-bottom: 0.3rem;
    color: var(--sm-grey);
    font-weight: 600;
}

.frame-sm-news-card .news-card__media + .ce-bodytext .news-meta {
    margin-top: 1rem;
}

.frame-sm-news-card h3 {
    margin: 0 0 0.8rem;
    color: var(--sm-grey);
    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1.15;
}

.site-main .frame-sm-news-card .ce-bodytext h3 a {
    color: inherit;
    text-decoration: none;
}

.site-main .frame-sm-news-card .ce-bodytext h3 a:hover,
.site-main .frame-sm-news-card .ce-bodytext h3 a:focus-visible {
    color: var(--sm-rust);
}

.frame-sm-news-card p {
    margin-bottom: 1rem;
}

.site-main .frame-sm-news-card .ce-bodytext > .news-more {
    display: block;
    margin: auto calc(0rem - var(--sm-news-card-inline-padding)) 0;
    padding: 0.85rem 1rem;
    color: var(--sm-white);
    background: var(--sm-rust);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.site-main .frame-sm-news-card .ce-bodytext > .news-more:hover,
.site-main .frame-sm-news-card .ce-bodytext > .news-more:focus-visible {
    color: var(--sm-white);
    background: var(--sm-rust-dark);
}

.home-news .frame-type-news_pi1,
.home-news .frame-type-newspi1,
.home-news .news,
.home-news .sm-news-list {
    width: 100%;
}

.site-main__content > .frame.frame-type-news_pi1,
.site-main__content > .frame.frame-type-newspi1 {
    width: 100%;
    max-width: var(--sm-content);
    margin-inline: auto;
}

.site-main__content .sm-news-list--layout-20 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

#news-content {
    scroll-margin-top: var(--sm-news-anchor-offset);
}

#termine.calendar-plugin--list {
    scroll-margin-top: var(--sm-calendar-anchor-offset);
}

#news-content:focus,
#termine.calendar-plugin--list:focus {
    outline: none;
}

.site-main__content .sm-news-list--layout-20 .frame-sm-news-card {
    min-height: 100%;
}

.site-main__content:has(.sm-news-detail) > .frame-type-textmedia:first-child {
    display: none;
}

.sm-news-list .f3-widget-paginator,
.sm-news-list .pagination {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
}

.sm-news-list .pagination a,
.sm-news-list .pagination span {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--sm-rust);
    text-decoration: none;
}

.sm-news-list .pagination a:hover,
.sm-news-list .pagination a:focus-visible,
.sm-news-list .pagination .current {
    color: var(--sm-white);
    background: var(--sm-rust);
}

.sm-news-detail {
    display: flex;
    flex-direction: column;
    max-width: 900px;
}

.sm-news-detail__meta {
    order: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin: 0 0 0.6rem;
    color: var(--sm-grey);
    font-weight: 600;
}

.sm-news-detail__meta span {
    padding: 0.2rem 0.7rem;
    background: var(--sm-tag-background);
}

.sm-news-detail h1 {
    order: 1;
    margin: 0 0 1.5rem;
    color: var(--sm-grey);
    font-size: 32px;
}

.sm-news-detail__layout {
    order: 2;
    display: contents;
}

.site-main .sm-news-detail__media {
    order: 2;
    margin: 0 0 2.5rem;
}

.sm-news-detail__media img {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

.sm-news-detail__body > * + * {
    margin-top: var(--sm-content-block-gap);
}

.sm-news-detail__body {
    order: 3;
}

.sm-news-detail__content-elements {
    order: 4;
    min-width: 0;
    margin-top: 2rem;
}

.sm-news-detail__content-elements :is(.frame-sm-news-carousel, .sm-news-gallery) {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
}

#inhaltsbereich .sm-news-detail__content-elements :is(.frame-sm-news-carousel, .sm-news-gallery) header h3 {
    margin: 0 0 0.75rem;
    color: var(--sm-grey);
    font-size: 16px;
    line-height: 1.4;
}

.sm-news-detail__content-elements :is(.frame-sm-news-carousel, .sm-news-gallery) .ce-textpic,
.sm-news-detail__content-elements :is(.frame-sm-news-carousel, .sm-news-gallery) .ce-gallery {
    width: 100%;
    max-width: 100%;
}

.sm-news-detail__content-elements :is(.frame-sm-news-carousel, .sm-news-gallery) .ce-gallery {
    float: none;
}

.sm-news-carousel {
    --f-carousel-gap: 12px;
}

#inhaltsbereich .ce-gallery.sm-news-carousel[data-ce-columns] .ce-column.f-carousel__slide {
    width: calc((100% - 24px) / 3);
}

#inhaltsbereich .sm-news-carousel .f-carousel__slide figure {
    margin: 0;
}

#inhaltsbereich .sm-news-carousel .f-carousel__slide img {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: transparent;
}

@media (max-width: 1199px) {
    #inhaltsbereich .ce-gallery.sm-news-carousel[data-ce-columns] .ce-column.f-carousel__slide {
        width: calc(50% - 7px);
    }
}

@media (max-width: 900px) {
    #inhaltsbereich .sm-news-carousel .f-carousel__slide img {
        height: 160px;
    }
}

@media (max-width: 600px) {
    .sm-news-detail__content-elements :is(.frame-sm-news-carousel, .sm-news-gallery) {
        max-width: 280px;
    }

    #inhaltsbereich .ce-gallery.sm-news-carousel[data-ce-columns] .ce-column.f-carousel__slide {
        width: 100%;
    }

    #inhaltsbereich .sm-news-carousel .f-carousel__slide img {
        height: 165px;
    }
}

.sm-news-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.sm-news-carousel__controls button {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--sm-rust);
    background: transparent;
    cursor: pointer;
}

.sm-news-carousel__controls button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sm-news-carousel__controls button:not([aria-disabled]):hover,
.sm-news-carousel__controls button:focus-visible {
    color: var(--sm-white);
    background: var(--sm-rust);
}

.sm-news-carousel__controls button[aria-disabled] {
    opacity: 0.4;
    cursor: default;
}

.sm-news-carousel__count {
    min-width: 4ch;
    color: var(--sm-grey);
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.sm-news-detail__back {
    order: 5;
    margin: 2rem 0 0;
}

.sm-news-detail__back a {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    padding: 0.55rem 1.4rem;
    color: var(--sm-rust);
    border: 2px solid var(--sm-rust);
    font-weight: 700;
    text-decoration: none;
}

.sm-news-detail__back a:hover,
.sm-news-detail__back a:focus-visible {
    color: var(--sm-white);
    background: var(--sm-rust);
}

/* News metadata and gallery layout apply to every news detail. */
.sm-news-detail__meta {
    gap: 0;
    font-weight: 400;
}

.sm-news-detail__meta .sm-news-author {
    padding: 0;
    background: none;
    white-space: pre-wrap;
}

.sm-news-detail__body {
    max-width: 68ch;
    line-height: 1.65;
}

.sm-news-detail :is(.frame-sm-news-carousel, .sm-news-gallery) header {
    display: none;
}

.sm-news-detail__layout > .sm-news-carousel {
    order: 4;
    width: 100%;
    max-width: 560px;
    margin: 2rem auto 0;
}

#inhaltsbereich .sm-news-carousel .sm-news-detail__media {
    margin: 0;
}

@media (max-width: 600px) {
    .sm-news-detail__layout > .sm-news-carousel {
        max-width: 280px;
    }
}

@media (min-width: 901px) {
    .sm-news-detail {
        max-width: var(--sm-content);
    }

    .sm-news-detail h1 {
        margin-bottom: 2rem;
    }

    .sm-news-detail__layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas: "body media" "extras extras" "back back";
        gap: 2.5rem 3rem;
        align-items: start;
    }

    .sm-news-detail__body { grid-area: body; }
    .site-main .sm-news-detail__layout > .sm-news-detail__media {
        grid-area: media;
        margin: 0;
    }
    .sm-news-detail__content-elements {
        grid-area: extras;
        margin: 0;
    }

    .sm-news-detail__content-elements :is(.frame-sm-news-carousel, .sm-news-gallery) {
        max-width: none;
        margin: 0;
    }

    .sm-news-detail__back {
        grid-area: back;
        margin-top: 0;
    }

    .sm-news-detail__layout:not(:has(.sm-news-detail__media)) {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "body" "extras" "back";
    }

}

.home-news__control {
    position: absolute;
    z-index: 4;
    top: var(--sm-news-control-center, 50%);
    display: inline-flex;
    width: 48px;
    height: 72px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--sm-white);
    background: transparent;
    border: 0;
    font-size: 4rem;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
}

.home-news__control--prev {
    left: max(0.5rem, calc((100% - var(--sm-content)) / 2 - 4rem));
}

.home-news__control--next {
    right: max(0.5rem, calc((100% - var(--sm-content)) / 2 - 4rem));
}

.frame-sm-section-link {
    margin-top: 2rem !important;
    text-align: center;
}

.frame-sm-section-link p {
    margin: 0;
}

.frame-sm-section-link a,
.sm-outline-button {
    display: inline-flex;
    min-width: min(100%, 330px);
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.4rem;
    color: var(--sm-rust);
    background: var(--sm-white);
    border: 2px solid var(--sm-rust);
    font-weight: 700;
    text-decoration: none;
}

.frame-sm-section-link a:hover,
.frame-sm-section-link a:focus-visible,
.sm-outline-button:hover,
.sm-outline-button:focus-visible {
    color: var(--sm-white);
    background: var(--sm-rust);
}

.home-events {
    background: var(--sm-white);
}

.home-events__content {
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) repeat(4, minmax(0, 1fr));
    padding-top: var(--sm-section-padding);
    padding-bottom: var(--sm-section-padding);
}

.home-events :where(.frame-type-cnkalenderdigital_eventpreview, .frame-type-cnkalenderdigital-eventpreview) {
    grid-column: 1 / -1;
    margin: 0 !important;
}

.calendar-plugin--preview {
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) repeat(4, minmax(0, 1fr));
}

.calendar-plugin :where(h1, h2) {
    margin-top: 0;
}

.calendar-plugin--preview > h2 {
    grid-column: 1 / 2;
}

.calendar-plugin nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-column: 2 / -1;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.calendar-plugin nav a {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.6rem;
    background: var(--sm-tag-background);
    font-weight: 700;
    text-decoration: none;
}

.calendar-plugin nav a:is(.is-active, :hover, :focus-visible) {
    color: var(--sm-white);
    background: var(--sm-rust);
}

.calendar-plugin__events {
    grid-column: 1 / -1;
}

.calendar-event {
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) 1fr 1.35fr 2.2fr 1.65fr;
    align-items: center;
    min-height: 62px;
    border-bottom: 2px solid var(--sm-beige);
}

.calendar-event__location {
    min-width: 0;
    overflow-wrap: anywhere;
}

.calendar-event__location-label {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--sm-grey);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.calendar-event[hidden],
.calendar-event.is-initially-hidden {
    display: none;
}

.calendar-plugin__all-link {
    display: inline-flex;
    grid-column: 1 / -1;
    justify-self: center;
    width: fit-content;
    min-width: min(100%, 330px);
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 0.55rem 1.4rem;
    color: var(--sm-rust);
    background: var(--sm-white);
    border: 2px solid var(--sm-rust);
    font-weight: 700;
    text-decoration: none;
}

.calendar-plugin__all-link:is(:hover, :focus-visible) {
    color: var(--sm-white);
    background: var(--sm-rust);
}

.calendar-plugin__message,
.calendar-plugin__empty {
    grid-column: 1 / -1;
}

.calendar-plugin--list {
    padding: var(--sm-section-padding) 0;
}

.calendar-plugin--list nav {
    grid-column: 1 / -1;
}

.home-together {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: var(--sm-white);
    background: var(--sm-blue);
}

.home-together__fixed-background {
    position: fixed;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: brightness(0.88);
    clip-path: inset(var(--sm-together-clip-top, 50vh) 0 var(--sm-together-clip-bottom, 50vh) 0);
    opacity: 0;
}

.home-together.is-fixed-background-active .home-together__fixed-background {
    opacity: 1;
    will-change: clip-path;
}

.home-together.is-fixed-background-active .frame-sm-together {
    z-index: 2;
}

.home-together.is-fixed-background-active .frame-sm-together .ce-column:first-child img {
    visibility: hidden;
}

.home-together::after {
    position: relative;
    z-index: 3;
}

.frame-sm-together {
    --sm-together-join: 36%;
    --sm-together-word-gap: clamp(0.1rem, 0.25vw, 0.35rem);
    --sm-together-mark-width: clamp(180px, 30vw, 390px);
    --sm-together-mark-transparent-right: clamp(1.2rem, 3.2vw, 2.6rem);
    position: relative;
}

.frame-sm-together > .rahmen > header {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: calc(var(--sm-together-join) + var(--sm-together-word-gap));
    width: auto;
    transform: translateY(-50%);
    text-align: left;
}

.frame-sm-together > .rahmen > header :where(h1, h2) {
    margin: 0;
    color: var(--sm-white);
    font-family: var(--sm-font-sans);
    font-size: clamp(3rem, 8.6vw, 7.6rem);
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
}

.frame-sm-together .ce-center .ce-outer,
.frame-sm-together .ce-center .ce-inner {
    position: static;
    right: auto;
    float: none;
    width: 100%;
}

.frame-sm-together .ce-gallery,
.frame-sm-together .ce-row,
.frame-sm-together .ce-column,
.frame-sm-together figure {
    width: 100%;
}

.frame-sm-together .ce-row {
    position: relative;
    display: block;
    height: clamp(155px, 32.5vw, 610px); /* Panorama 2000 × 650, independent of the main hero. */
}

.frame-sm-together .ce-column:first-child {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.frame-sm-together .ce-column:first-child figure {
    height: 100%;
    margin: 0;
}

.frame-sm-together .ce-column:first-child img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: brightness(0.88);
}

.frame-sm-together .ce-column:nth-child(2) {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: calc(100% - var(--sm-together-join) - var(--sm-together-mark-transparent-right));
    left: auto;
    width: var(--sm-together-mark-width);
    transform: translateY(-50%);
}

.frame-sm-together .ce-column:nth-child(2) img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: grayscale(1) brightness(0) invert(1);
}

.home-sacraments {
    background: var(--sm-white);
}

.home-sacraments__content {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1.1rem;
    padding-top: var(--sm-section-padding);
    padding-bottom: var(--sm-section-padding);
}

.home-sacraments .frame-sm-section-heading {
    grid-column: 1 / -1;
}

.frame-sm-sacrament img {
    width: 105px;
    height: 125px;
    object-fit: contain;
}

.frame-sm-sacrament.frame-layout-30 {
    --sm-sacrament-swap-width: 105px;
    --sm-sacrament-swap-height: 125px;
}

.frame-sm-sacrament.frame-layout-30 :where(.ce-image, .ce-gallery, .ce-outer, .ce-inner) {
    width: var(--sm-sacrament-swap-width);
    height: var(--sm-sacrament-swap-height);
}

.frame-sm-sacrament.frame-layout-30 .ce-gallery {
    position: relative;
    overflow: visible;
}

.frame-sm-sacrament.frame-layout-30 .ce-center :where(.ce-outer, .ce-inner) {
    position: static;
    right: auto;
    float: none;
}

.frame-sm-sacrament.frame-layout-30 .ce-row {
    position: absolute;
    inset: 0;
    width: 100%;
    margin: 0;
    opacity: 1;
    transition: opacity 0.35s ease-in-out;
}

.frame-sm-sacrament.frame-layout-30 .ce-row:nth-child(2) {
    pointer-events: none;
    opacity: 0;
}

.frame-sm-sacrament.frame-layout-30 :where(.ce-column, figure, figure > a, img) {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
    transform: none;
}

.frame-sm-sacrament.frame-layout-30:has(a:focus-visible) .ce-row:first-child {
    opacity: 0;
}

.frame-sm-sacrament.frame-layout-30:has(a:focus-visible) .ce-row:nth-child(2) {
    opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
    .frame-sm-sacrament.frame-layout-30:hover .ce-row:first-child {
        opacity: 0;
    }

    .frame-sm-sacrament.frame-layout-30:hover .ce-row:nth-child(2) {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .frame-sm-sacrament.frame-layout-30 .ce-row {
        transition-duration: 0.01ms;
    }
}

.home-offers__content {
    display: grid;
    width: min(calc(100% - 3rem), 1200px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 8.333vw, 7.5rem);
    row-gap: clamp(3rem, 4.722vw, 4.25rem);
    padding-top: clamp(3rem, 5.56vw, 5rem);
    padding-bottom: clamp(4.5rem, 9.72vw, 8.75rem);
}

.home-offers .frame-sm-section-heading {
    grid-column: 1 / -1;
    margin: 0 !important;
}

.home-offers .frame-sm-section-heading header,
.home-offers .frame-sm-section-heading h2 {
    margin: 0;
}

.home-offers .frame-sm-section-heading h2 {
    color: var(--sm-text);
    font-family: var(--sm-font-sans);
    font-size: clamp(1.75rem, 2.222vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
}

.frame-sm-offer-card {
    --sm-offer-padding-inline: clamp(2rem, 4.167vw, 3.75rem);
    overflow: hidden;
    background: var(--sm-white) !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.frame-sm-offer-card > .rahmen,
.frame-sm-offer-card .ce-textpic {
    height: 100%;
}

.frame-sm-offer-card .ce-textpic {
    display: flex;
    flex-direction: column;
}

.frame-sm-offer-card .ce-center .ce-outer,
.frame-sm-offer-card .ce-center .ce-inner {
    position: static;
    right: auto;
    float: none;
    width: 100%;
}

.frame-sm-offer-card .ce-gallery,
.frame-sm-offer-card .ce-row,
.frame-sm-offer-card .ce-column,
.frame-sm-offer-card figure {
    width: 100%;
    margin: 0;
}

.frame-sm-offer-card .ce-gallery a {
    display: block;
}

.home-offers .frame-sm-offer-card .ce-gallery img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 640 / 276;
    border-radius: 0;
    object-fit: cover;
}

.frame-sm-offer-card .ce-bodytext {
    display: flex;
    min-height: 254px;
    flex: 1 1 auto;
    flex-direction: column;
    padding: clamp(2rem, 2.917vw, 2.625rem) var(--sm-offer-padding-inline) 0;
    color: var(--sm-text);
}

.frame-sm-offer-card .ce-bodytext > p:empty {
    display: none;
}

.frame-sm-offer-card h3 {
    margin: 0 0 clamp(1rem, 1.389vw, 1.5rem);
    color: var(--sm-grey);
    font-family: var(--sm-font-sans);
    font-size: clamp(1.5rem, 1.736vw, 1.5625rem);
    font-weight: 700;
    line-height: 1.2;
}

.home-offers .frame-sm-offer-card .ce-bodytext > p {
    margin: 0 0 1rem;
    color: var(--sm-text);
    font-size: clamp(1rem, 1.389vw, 1.25rem);
    line-height: 1.333;
}

.home-offers .frame-sm-offer-card .ce-bodytext > .offer-more {
    display: flex;
    min-height: 3.25rem;
    align-items: center;
    justify-content: center;
    margin: auto calc(-1 * var(--sm-offer-padding-inline)) 0;
    padding: 0.5rem 1rem;
    color: var(--sm-white);
    background: var(--sm-rust);
    font-family: var(--sm-font-sans);
    font-size: clamp(1.125rem, 1.505vw, 1.375rem);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.home-offers .frame-sm-offer-card .ce-bodytext > .offer-more:hover,
.home-offers .frame-sm-offer-card .ce-bodytext > .offer-more:focus-visible {
    color: var(--sm-white);
    background: var(--sm-rust-dark);
}

.home-social__content {
    display: flex;
    width: min(calc(100% - 3rem), 1200px);
    flex-direction: column;
    align-items: center;
    padding-top: clamp(3rem, 5.56vw, 5rem);
    padding-bottom: clamp(4.5rem, 9.72vw, 8.75rem);
}

.home-social .frame-sm-social-follow {
    width: 100%;
    max-width: 900px;
    margin: 0 !important;
    text-align: center;
}

.home-social .frame-sm-social-follow > .rahmen > header {
    margin: 0 0 1.5rem;
}

.home-social .frame-sm-social-follow > .rahmen > header h2 {
    margin: 0;
    color: var(--sm-text);
    font-family: var(--sm-font-sans);
    font-size: clamp(1.75rem, 2.222vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
}

.home-social .sm-social-follow__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 0;
}

.home-social .sm-social-follow__link {
    display: inline-flex;
    min-width: 12rem;
    min-height: 3.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.5rem 1.2rem;
    color: var(--sm-rust);
    background: var(--sm-white);
    border: 2px solid var(--sm-rust);
    font-weight: 700;
    text-decoration: none;
}

.home-social .sm-social-follow__link::before {
    display: block;
    width: 2rem;
    height: 2rem;
    background: currentColor;
    content: "";
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}

.home-social .sm-social-follow__link--instagram::before {
    -webkit-mask-image: url("../Images/social-instagram.svg");
    mask-image: url("../Images/social-instagram.svg");
}

.home-social .sm-social-follow__link--facebook::before {
    -webkit-mask-image: url("../Images/social-facebook.svg");
    mask-image: url("../Images/social-facebook.svg");
}

.home-social .sm-social-follow__link:is(:hover, :focus-visible) {
    color: var(--sm-white);
    background: var(--sm-rust);
}

.site-main__content {
    display: flex;
    flex-direction: column;
    gap: var(--sm-content-element-gap);
    padding-top: var(--sm-section-padding);
    padding-bottom: var(--sm-section-padding);
}

.site-main__content:has(> .frame-sm-facility-featured:last-child),
.site-main__content:has(> .frame-sm-church-copy:last-child) {
    padding-bottom: 0;
}

.site-main__content:has(> .frame-sm-church-intro) {
    gap: 0;
}

.site-main__content > .frame {
    max-width: 900px;
}

.site-main__content > .frame:where(.frame-type-cnkalenderdigital_eventlist, .frame-type-cnkalenderdigital-eventlist) {
    max-width: none;
}

.site-main__content :where(h1, h2, h3) {
    line-height: 1.2;
}

.site-main__content--pfarrleben-detail h1,
.site-main__content--sacrament-detail h1 {
    color: var(--sm-rust);
    font-weight: 700;
    text-align: left;
}

.site-main__content .frame-type-textmedia > .rahmen > header {
    margin: 0 0 var(--sm-content-block-gap);
}

.site-main__content .frame-type-textmedia .ce-bodytext > :where(p, h2, h3, h4, ul, ol, table, blockquote),
.site-main__content .frame-type-textmedia .ce-bodytext :where(td, th) > p {
    margin-top: 0;
    margin-bottom: 0;
}

.site-main__content .frame-type-textmedia .ce-bodytext > * + *,
.site-main__content .frame-type-textmedia .ce-bodytext :where(td, th) > p + p {
    margin-top: var(--sm-content-block-gap);
}

.site-main__content .frame-type-textmedia .ce-bodytext p:empty {
    display: none;
}

/* Bereichsunterseiten: das redaktionell verknüpfte Clipart steht hell und
   zurückhaltend rechts neben dem Einführungstext. */
:is(.site-main__content--sacrament-detail, .site-main__content--pfarrleben-detail) > .frame-type-textmedia:first-child:has(.ce-gallery) {
    align-self: center;
    width: 100%;
    max-width: var(--sm-content);
}

:is(.site-main__content--sacrament-detail, .site-main__content--pfarrleben-detail) > .frame-type-textmedia:first-child:has(.ce-gallery) > .rahmen > .ce-textpic {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 28%);
    align-items: start;
    gap: clamp(2rem, 5vw, 4.5rem);
}

:is(.site-main__content--sacrament-detail, .site-main__content--pfarrleben-detail) > .frame-type-textmedia:first-child:has(.ce-gallery) .ce-bodytext {
    grid-row: 1;
    grid-column: 1;
    min-width: 0;
}

:is(.site-main__content--sacrament-detail, .site-main__content--pfarrleben-detail) > .frame-type-textmedia:first-child:has(.ce-gallery) .ce-gallery {
    grid-row: 1;
    grid-column: 2;
    width: min(100%, 300px);
    justify-self: end;
    overflow: visible;
    opacity: 0.62;
}

:is(.site-main__content--sacrament-detail, .site-main__content--pfarrleben-detail) > .frame-type-textmedia:first-child:has(.ce-gallery) .ce-center :where(.ce-outer, .ce-inner) {
    position: static;
    right: auto;
    float: none;
    width: 100%;
}

:is(.site-main__content--sacrament-detail, .site-main__content--pfarrleben-detail) > .frame-type-textmedia:first-child:has(.ce-gallery) :where(.ce-row, .ce-column, figure) {
    width: 100%;
}

:is(.site-main__content--sacrament-detail, .site-main__content--pfarrleben-detail) > .frame-type-textmedia:first-child:has(.ce-gallery) .ce-row {
    overflow: visible;
}

:is(.site-main__content--sacrament-detail, .site-main__content--pfarrleben-detail) > .frame-type-textmedia:first-child:has(.ce-gallery) .ce-gallery img {
    display: block;
    width: 100%;
    height: clamp(220px, 24vw, 320px);
    object-fit: contain;
}

@media (max-width: 900px) {
    :is(.site-main__content--sacrament-detail, .site-main__content--pfarrleben-detail) > .frame-type-textmedia:first-child:has(.ce-gallery) > .rahmen > .ce-textpic {
        grid-template-columns: minmax(0, 1fr);
        gap: clamp(1.75rem, 6vw, 3rem);
    }

    :is(.site-main__content--sacrament-detail, .site-main__content--pfarrleben-detail) > .frame-type-textmedia:first-child:has(.ce-gallery) .ce-bodytext {
        grid-row: 1;
        grid-column: 1;
    }

    :is(.site-main__content--sacrament-detail, .site-main__content--pfarrleben-detail) > .frame-type-textmedia:first-child:has(.ce-gallery) .ce-gallery {
        grid-row: 2;
        grid-column: 1;
        width: min(100%, 240px);
        justify-self: center;
        opacity: 0.68;
    }

    :is(.site-main__content--sacrament-detail, .site-main__content--pfarrleben-detail) > .frame-type-textmedia:first-child:has(.ce-gallery) .ce-gallery img {
        height: clamp(180px, 56vw, 240px);
    }
}

.site-main__content > .frame-type-cn_multicontent.frame-style-accordion {
    float: none;
    width: 100%;
}

.site-main__content .frame-style-accordion .cnmc-accordion {
    display: flex;
    flex-direction: column;
}

.site-main__content .frame-style-accordion :where(.ui-accordion-header, .ui-accordion-content) {
    box-sizing: border-box;
    float: none;
    clear: none;
    width: 100%;
}

.site-main__content .frame-style-accordion .ui-accordion-header {
    position: relative;
    display: block;
    margin: 0;
    padding: 1rem 3.5rem 1rem 1.25rem;
    color: var(--sm-text);
    background: transparent;
    border: 0;
    border-top: 1px solid rgba(51, 51, 51, 0.18);
    border-radius: 0;
    font-size: clamp(1.125rem, 1.4vw, 1.375rem);
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    transition: color 180ms ease, background-color 180ms ease;
}

.site-main__content .frame-style-accordion .ui-accordion-header:last-of-type {
    border-bottom: 1px solid rgba(51, 51, 51, 0.18);
}

.site-main__content .frame-style-accordion .ui-accordion-header-icon {
    display: none;
}

.site-main__content .frame-style-accordion .ui-accordion-header::before,
.site-main__content .frame-style-accordion .ui-accordion-header::after {
    position: absolute;
    top: 50%;
    right: 1.25rem;
    width: 18px;
    height: 2px;
    background: var(--sm-rust);
    content: "";
    transform: translateY(-50%);
    transition: transform 180ms ease;
}

.site-main__content .frame-style-accordion .ui-accordion-header::after {
    transform: translateY(-50%) rotate(90deg);
}

.site-main__content .frame-style-accordion .ui-accordion-header[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(0deg);
}

.site-main__content .frame-style-accordion .ui-accordion-header:is(:hover, [aria-expanded="true"]) {
    color: var(--sm-rust);
    background: rgba(167, 77, 51, 0.07);
}

.site-main__content .frame-style-accordion .ui-accordion-header:focus-visible {
    z-index: 1;
    outline: 3px solid var(--sm-rust);
    outline-offset: -3px;
}

.site-main__content .frame-style-accordion .ui-accordion-content {
    padding: 1rem 1.25rem 1.5rem;
    border: 0;
    border-bottom: 1px solid rgba(51, 51, 51, 0.18);
    overflow-wrap: anywhere;
}

.site-main__content .frame-style-accordion .ui-accordion-content figure.table {
    max-width: 100%;
    margin: 0;
    overflow-x: auto;
}

.site-main__content .frame-style-accordion .ui-accordion-content figure.table > table,
.site-main__content .frame-type-textmedia .ce-bodytext > table.contenttable,
.site-main__content .frame-sm-facility-featured .sm-opening-hours > table.contenttable,
.site-main__content .frame-sm-facility-featured .sm-opening-hours > figure.table > table {
    width: min(100%, 36rem);
    border-collapse: collapse;
}

.site-main__content .frame-style-accordion .ui-accordion-content figure.table td,
.site-main__content .frame-type-textmedia .ce-bodytext > table.contenttable td,
.site-main__content .frame-sm-facility-featured .sm-opening-hours > table.contenttable td,
.site-main__content .frame-sm-facility-featured .sm-opening-hours > figure.table > table td {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(51, 51, 51, 0.12);
    line-height: 1.45;
    vertical-align: top;
}

.site-main__content .frame-style-accordion .ui-accordion-content figure.table td:first-child,
.site-main__content .frame-type-textmedia .ce-bodytext > table.contenttable td:first-child,
.site-main__content .frame-sm-facility-featured .sm-opening-hours > table.contenttable td:first-child,
.site-main__content .frame-sm-facility-featured .sm-opening-hours > figure.table > table td:first-child {
    width: 1%;
    padding-right: clamp(2rem, 4vw, 3.5rem);
    color: var(--sm-rust);
    font-weight: 600;
    white-space: nowrap;
}

.site-main__content .frame-style-accordion .ui-accordion-content figure.table tr:first-child td,
.site-main__content .frame-type-textmedia .ce-bodytext > table.contenttable tr:first-child td,
.site-main__content .frame-sm-facility-featured .sm-opening-hours > table.contenttable tr:first-child td,
.site-main__content .frame-sm-facility-featured .sm-opening-hours > figure.table > table tr:first-child td {
    padding-top: 0;
}

.site-main__content .frame-style-accordion .ui-accordion-content figure.table tr:last-child td,
.site-main__content .frame-type-textmedia .ce-bodytext > table.contenttable tr:last-child td,
.site-main__content .frame-sm-facility-featured .sm-opening-hours > table.contenttable tr:last-child td,
.site-main__content .frame-sm-facility-featured .sm-opening-hours > figure.table > table tr:last-child td {
    padding-bottom: 0;
    border-bottom: 0;
}

.site-main__content .frame-style-accordion .ui-accordion-content > .frame {
    width: 100%;
}

/* Kirchenmusik: the accordion contains regular textmedia frames. Keep every
   generated wrapper in normal flow so the panel can measure the complete copy. */
.site-main__content .frame-style-accordion:has(#cnmulticontent_c182) .ui-accordion-content > .frame,
.site-main__content .frame-style-accordion:has(#cnmulticontent_c182) .ui-accordion-content > .frame > .rahmen,
.site-main__content .frame-style-accordion:has(#cnmulticontent_c182) .ui-accordion-content > .frame > .rahmen > .ce-textpic {
    box-sizing: border-box;
    float: none;
    clear: none;
    width: 100%;
    min-width: 0;
    height: auto;
    margin: 0;
}

.site-main__content > .frame-sm-church-intro,
.site-main__content > .frame-sm-facility-intro {
    align-self: center;
    width: 100%;
    max-width: var(--sm-content);
}

.site-main__content > .frame-sm-church-intro {
    max-width: var(--sm-content);
}

.site-main__content .frame-sm-church-intro > .rahmen > header,
.site-main__content .frame-sm-facility-intro > .rahmen > header {
    margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.site-main__content .frame-sm-church-intro .ce-textpic,
.site-main__content .frame-sm-facility-intro .ce-textpic {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 445px);
    align-items: start;
    gap: clamp(2.5rem, 5vw, 4rem);
}

.site-main__content .frame-sm-church-intro .ce-textpic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-main__content .frame-sm-facility-intro .ce-textpic:not(:has(.ce-gallery)) {
    grid-template-columns: minmax(0, 1fr);
}

.site-main__content .frame-sm-church-intro .ce-gallery,
.site-main__content .frame-sm-facility-intro .ce-gallery {
    grid-row: 1;
    grid-column: 2;
    width: 100%;
    overflow: visible;
}

.site-main__content .frame-sm-church-intro .ce-gallery {
    width: min(100%, 445px);
    justify-self: end;
}

.site-main__content .frame-sm-church-intro .ce-bodytext,
.site-main__content .frame-sm-facility-intro .ce-bodytext {
    grid-row: 1;
    grid-column: 1;
    color: var(--sm-text);
}

.site-main__content .frame-sm-church-intro .ce-center :where(.ce-outer, .ce-inner),
.site-main__content .frame-sm-facility-intro .ce-center :where(.ce-outer, .ce-inner) {
    position: static;
    right: auto;
    float: none;
    width: 100%;
}

.site-main__content .frame-sm-church-intro :where(.ce-row, .ce-column, figure),
.site-main__content .frame-sm-facility-intro :where(.ce-row, .ce-column, figure) {
    width: 100%;
}

.site-main__content .frame-sm-church-intro .ce-row,
.site-main__content .frame-sm-facility-intro .ce-row {
    overflow: visible;
}

.site-main__content:has(> .frame-sm-church-intro) > .frame-sm-church-copy {
    padding-inline: 0;
    background: var(--sm-white);
}

.site-main__content:has(> .frame-sm-church-intro) > .frame-sm-church-copy > .rahmen {
    width: min(calc(100% - 3rem), var(--sm-content));
}

.site-main__content:has(> .frame-sm-church-intro) > .frame-sm-church-copy ~ .frame-sm-church-intro,
.site-main__content:has(> .frame-sm-church-intro) > .frame-sm-church-copy ~ .frame-sm-church-intro + .frame-sm-church-copy {
    box-sizing: border-box;
    width: 100vw;
    max-width: none;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    background: var(--sm-beige);
}

.site-main__content:has(> .frame-sm-church-intro) > .frame-sm-church-copy ~ .frame-sm-church-intro {
    padding-top: clamp(2.5rem, 4vw, 4rem);
    padding-bottom: clamp(2.5rem, 4vw, 4rem);
}

.site-main__content:has(> .frame-sm-church-intro) > .frame-sm-church-copy ~ .frame-sm-church-intro > .rahmen {
    width: min(calc(100% - 3rem), var(--sm-content));
    margin-right: auto;
    margin-left: auto;
}

.site-main__content .frame-sm-church-copy:has(.ce-gallery) > .rahmen > .ce-textpic {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 445px);
    align-items: start;
    gap: clamp(2.5rem, 5vw, 4rem);
}

.site-main__content .frame-sm-church-copy:has(.ce-gallery) .ce-bodytext {
    grid-row: 1;
    grid-column: 1;
    columns: 1;
}

.site-main__content .frame-sm-church-copy:has(.ce-gallery) .ce-gallery {
    grid-row: 1;
    grid-column: 2;
    width: min(100%, 445px);
    justify-self: end;
    overflow: visible;
}

.site-main__content .frame-sm-church-copy:has(.ce-gallery) .ce-center :where(.ce-outer, .ce-inner) {
    position: static;
    right: auto;
    float: none;
    width: 100%;
}

.site-main__content .frame-sm-church-copy:has(.ce-gallery) :where(.ce-row, .ce-column, figure) {
    width: 100%;
}

.site-main__content .frame-sm-church-copy:has(.ce-gallery) .ce-row {
    overflow: visible;
}

.site-main .frame-sm-church-copy:has(.ce-gallery) .ce-gallery img {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 0;
    box-shadow: -10px 10px 0 var(--sm-white);
    object-fit: cover;
}

.site-main .frame-sm-church-intro .ce-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: -10px 10px 0 var(--sm-beige);
    object-fit: contain;
}

/*.site-main__content > .frame-sm-church-copy ~ .frame-sm-church-intro .ce-gallery img {
    box-shadow: -10px 10px 0 var(--sm-white);
}*/

.site-main__content > .frame-sm-church-intro.frame-layout-120 .ce-gallery img {
    box-shadow: -10px 10px 0 var(--sm-white);
}

.site-main__content > .frame-sm-church-copy ~ .frame-sm-church-intro .ce-textpic {
    overflow: visible;
}

.site-main .frame-sm-facility-intro .ce-gallery img {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 0;
    box-shadow: -10px 10px 0 var(--sm-beige);
    object-fit: cover;
    margin-bottom: 50px;
}

@media (min-width: 901px) {
    .site-main__content .frame-sm-facility-intro > .rahmen:has(.ce-gallery) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(320px, 445px);
        align-items: start;
        column-gap: clamp(2.5rem, 5vw, 4rem);
    }

    .site-main__content .frame-sm-facility-intro > .rahmen:has(.ce-gallery) > header {
        grid-row: 1;
        grid-column: 1;
    }

    .site-main__content .frame-sm-facility-intro > .rahmen:has(.ce-gallery) .ce-textpic {
        display: contents;
    }

    .site-main__content .frame-sm-facility-intro > .rahmen:has(.ce-gallery) .ce-gallery {
        grid-row: 1 / span 2;
        grid-column: 2;
    }

    .site-main__content .frame-sm-facility-intro > .rahmen:has(.ce-gallery) .ce-bodytext {
        grid-row: 2;
        grid-column: 1;
    }

    .site-main__content .frame-sm-facility-featured:has(.ce-gallery) > .rahmen {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 445px);
    }

    .site-main__content .frame-sm-facility-featured:has(.ce-gallery) > .rahmen > header {
        grid-column: 1;
    }

    .site-main__content .frame-sm-facility-featured:has(.ce-gallery) .ce-gallery {
        grid-column: 2;
    }

    .site-main__content .frame-sm-facility-featured:has(.ce-gallery) .ce-bodytext {
        grid-column: 1;
    }

    .site-main__content :is(.frame-sm-facility-documents, .frame-sm-facility-featured-documents) .ce-bodytext > ul {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: clamp(1.5rem, 4vw, 3rem);
        row-gap: var(--sm-content-block-gap);
        align-items: start;
    }

    .site-main__content :is(.frame-sm-facility-documents, .frame-sm-facility-featured-documents) .ce-bodytext > ul > li {
        min-width: 0;
    }
}

.site-main a[href*=".pdf" i]:not(.frame-sm-quicklink a) {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.site-main a[href*=".pdf" i]:not(.frame-sm-quicklink a)::before {
    display: inline-block;
    flex: 0 0 1.35rem;
    width: 1.35rem;
    height: 1.5rem;
    background: url("../Images/pdf.svg") center / contain no-repeat;
    content: "";
}

.site-main :is(ul, ol):has(a[href*=".pdf" i]):not(.frame-sm-quicklink ul):not(.frame-sm-quicklink ol) {
    padding-left: 0;
    list-style: none;
}

.site-main__content .frame-sm-facility-featured-documents .ce-bodytext > ul > li:not(:has(a))::before {
    display: inline-block;
    width: 1.35rem;
    height: 1.5rem;
    margin-right: 0.5rem;
    vertical-align: middle;
    background: url("../Images/pdf.svg") center / contain no-repeat;
    filter: grayscale(1);
    opacity: 0.45;
    content: "";
}

.site-main__content :is(.frame-sm-facility-documents, .frame-sm-facility-featured-documents) .ce-bodytext > ul {
    list-style: none;
    padding-left: 0;
}

.site-main__content > .frame-sm-facility-documents {
    align-self: center;
    width: 100%;
    max-width: var(--sm-content);
}

.site-main__content > .frame-sm-facility-featured,
.site-main__content > .frame-sm-facility-featured-documents {
    box-sizing: border-box;
    align-self: center;
    width: 100vw;
    max-width: none;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding-right: clamp(1.5rem, 5vw, 5.5rem);
    padding-left: clamp(1.5rem, 5vw, 5.5rem);
    background: var(--sm-beige);
}

.site-main__content > .frame-sm-facility-featured {
    padding-top: clamp(2.5rem, 4vw, 4rem);
    padding-bottom: clamp(1rem, 2vw, 1.5rem);
}

.site-main__content > .frame-sm-facility-featured-documents {
    margin-top: calc(-1 * var(--sm-content-element-gap));
    padding-top: clamp(1rem, 2vw, 1.5rem);
    padding-bottom: clamp(2.5rem, 4vw, 4rem);
}

.site-main__content .frame-sm-facility-featured > .rahmen,
.site-main__content .frame-sm-facility-featured-documents > .rahmen {
    width: 100%;
    max-width: var(--sm-content);
    margin: 0 auto;
}

.site-main__content .frame-sm-facility-featured > .rahmen {
    display: grid;
    grid-template-columns: minmax(320px, 445px) minmax(0, 1fr);
    align-items: start;
    column-gap: clamp(2.5rem, 5vw, 4rem);
}

.site-main__content .frame-sm-facility-featured > .rahmen:not(:has(.ce-gallery)) {
    grid-template-columns: minmax(0, 1fr);
}

.site-main__content .frame-sm-facility-featured > .rahmen:has(.sm-opening-hours) {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 445px);
}

.site-main__content .frame-sm-facility-featured > .rahmen > header {
    grid-row: 1;
    grid-column: 2;
}

.site-main__content .frame-sm-facility-featured > .rahmen:not(:has(.ce-gallery)) > header {
    grid-column: 1;
}

.site-main__content .frame-sm-facility-featured .ce-textpic {
    display: contents;
}

.site-main__content .frame-sm-facility-featured .ce-gallery {
    grid-row: 1 / span 2;
    grid-column: 1;
    width: 100%;
    overflow: visible;
}

.site-main__content .frame-sm-facility-featured .ce-bodytext {
    grid-row: 2;
    grid-column: 2;
    color: var(--sm-text);
}

.site-main__content .frame-sm-facility-featured > .rahmen:has(.sm-opening-hours) > header {
    grid-column: 1 / -1;
}

.site-main__content .frame-sm-facility-featured > .rahmen:has(.sm-opening-hours) .ce-bodytext {
    display: grid;
    grid-row: 2;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 445px);
    column-gap: clamp(2.5rem, 5vw, 4rem);
}

.site-main__content .frame-sm-facility-featured > .rahmen:has(.sm-opening-hours) .ce-bodytext > .sm-opening-description {
    grid-column: 1;
}

.site-main__content .frame-sm-facility-featured > .rahmen:has(.sm-opening-hours) .ce-bodytext > .sm-opening-hours {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
}

.site-main__content .frame-sm-facility-featured > .rahmen:has(.sm-opening-hours) .sm-opening-description > p + p {
    margin-top: var(--sm-content-block-gap);
}

.site-main__content .frame-sm-facility-featured > .rahmen:has(.sm-opening-hours) .sm-opening-hours > p {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.site-main__content .frame-sm-facility-featured > .rahmen:has(.sm-opening-hours) .sm-opening-hours > :where(table.contenttable, figure.table) {
    width: 100%;
    margin-top: 0;
}

.site-main__content .frame-sm-facility-featured > .rahmen:has(.sm-opening-hours) .sm-opening-hours > figure.table {
    max-width: 100%;
    overflow-x: auto;
}

.site-main__content .frame-sm-facility-featured > .rahmen:not(:has(.ce-gallery)) .ce-bodytext {
    grid-column: 1;
}

.site-main__content .frame-sm-facility-featured > .rahmen:has(.sm-opening-hours) .ce-bodytext {
    grid-column: 1 / -1;
}

.site-main__content .frame-sm-facility-featured .ce-center :where(.ce-outer, .ce-inner) {
    position: static;
    right: auto;
    float: none;
    width: 100%;
}

.site-main__content .frame-sm-facility-featured :where(.ce-row, .ce-column, figure) {
    width: 100%;
}

.site-main__content .frame-sm-facility-featured .ce-row {
    overflow: visible;
}

.site-main .frame-sm-facility-featured .ce-gallery img {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 0;
    box-shadow: -10px 10px 0 var(--sm-white);
    object-fit: cover;
    margin-bottom: 50px;
}

.site-main__content .frame-sm-facility-featured .ce-bodytext :where(p, li) {
    color: inherit;
}

.site-main__content .frame-sm-facility-featured-documents > .rahmen {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    column-gap: clamp(2.5rem, 5vw, 4rem);
}

.site-main__content .frame-sm-facility-featured-documents > .rahmen > :where(header, .ce-textpic) {
    grid-column: 1;
}

.site-main__content > .frame-sm-church-copy {
    box-sizing: border-box;
    align-self: center;
    width: 100vw;
    max-width: none;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding: clamp(2.5rem, 4vw, 4rem) clamp(1.5rem, 5vw, 5.5rem);
    background: var(--sm-white);
}

.site-main__content .frame-sm-church-copy > .rahmen {
    max-width: var(--sm-content);
    margin: 0 auto;
}

.site-main__content .frame-sm-church-copy .ce-bodytext {
    columns: 2;
    column-gap: clamp(2.5rem, 5vw, 4.5rem);
    column-fill: balance;
    color: var(--sm-text);
}

.site-main__content .frame-sm-church-intro .ce-bodytext :where(p, li),
.site-main__content .frame-sm-facility-intro .ce-bodytext :where(p, li),
.site-main__content .frame-sm-church-copy .ce-bodytext :where(p, li) {
    color: inherit;
}

@media (max-width: 900px) {
    .site-main__content .frame-sm-church-intro .ce-textpic,
    .site-main__content .frame-sm-facility-intro .ce-textpic {
        grid-template-columns: minmax(0, 1fr);
        gap: clamp(2rem, 6vw, 3rem);
    }

    .site-main__content .frame-sm-church-intro .ce-gallery,
    .site-main__content .frame-sm-facility-intro .ce-gallery {
        grid-row: 2;
        grid-column: 1;
        width: min(100%, 445px);
        margin: 0 auto;
    }

    .site-main__content .frame-sm-church-intro .ce-bodytext,
    .site-main__content .frame-sm-facility-intro .ce-bodytext {
        grid-row: 1;
        grid-column: 1;
    }

    .site-main__content > .frame-sm-facility-featured,
    .site-main__content > .frame-sm-facility-featured-documents {
        padding-right: clamp(1.25rem, 5vw, 2.5rem);
        padding-left: clamp(1.25rem, 5vw, 2.5rem);
    }

    .site-main__content .frame-sm-facility-featured > .rahmen,
    .site-main__content .frame-sm-facility-featured-documents > .rahmen {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-main__content .frame-sm-facility-featured > .rahmen > header {
        grid-row: 1;
        grid-column: 1;
    }

    .site-main__content .frame-sm-facility-featured .ce-bodytext {
        grid-row: 2;
        grid-column: 1;
    }

    .site-main__content .frame-sm-facility-featured > .rahmen:has(.sm-opening-hours) {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-main__content .frame-sm-facility-featured > .rahmen:has(.sm-opening-hours) > header {
        grid-column: 1;
    }

    .site-main__content .frame-sm-facility-featured > .rahmen:has(.sm-opening-hours) .ce-bodytext {
        display: block;
        grid-row: 2;
        grid-column: 1;
    }

    .site-main__content .frame-sm-facility-featured > .rahmen:has(.sm-opening-hours) .ce-bodytext > :where(.sm-opening-description, .sm-opening-hours) {
        grid-column: auto;
        grid-row: auto;
    }

    .site-main__content .frame-sm-facility-featured > .rahmen:has(.sm-opening-hours) .ce-bodytext > .sm-opening-description,
    .site-main__content .frame-sm-facility-featured > .rahmen:has(.sm-opening-hours) .ce-bodytext > .sm-opening-hours {
        grid-column: auto;
        grid-row: auto;
    }

    .site-main__content .frame-sm-facility-featured > .rahmen:has(.sm-opening-hours) .ce-bodytext > .sm-opening-hours {
        margin-top: var(--sm-content-block-gap);
    }

    .site-main__content .frame-sm-facility-featured > .rahmen:has(.sm-opening-hours) .sm-opening-hours > p {
        margin-top: 0;
        margin-bottom: 0.5rem;
    }

    .site-main__content .frame-sm-facility-featured > .rahmen:has(.sm-opening-hours) .sm-opening-hours > :where(table.contenttable, figure.table) {
        margin-top: 0;
    }

    .site-main__content .frame-sm-facility-featured .ce-gallery {
        grid-row: 3;
        grid-column: 1;
        width: min(100%, 445px);
        margin: clamp(2rem, 6vw, 3rem) auto 0;
    }

    .site-main__content .frame-sm-facility-featured-documents > .rahmen > :where(header, .ce-textpic) {
        grid-column: 1;
    }

    .site-main__content > .frame-sm-church-copy {
        padding: clamp(2rem, 7vw, 3rem) clamp(1.25rem, 5vw, 2.5rem);
    }

    .site-main__content .frame-sm-church-copy .ce-bodytext {
        columns: 1;
    }
}

@media (max-width: 900px) {
    .site-main__content .frame-sm-church-copy:has(.ce-gallery) > .rahmen > .ce-textpic {
        grid-template-columns: minmax(0, 1fr);
        gap: clamp(2rem, 6vw, 3rem);
    }

    .site-main__content .frame-sm-church-copy:has(.ce-gallery) .ce-bodytext {
        grid-row: 1;
        grid-column: 1;
    }

    .site-main__content .frame-sm-church-copy:has(.ce-gallery) .ce-gallery {
        grid-row: 2;
        grid-column: 1;
        width: min(100%, 445px);
        justify-self: center;
        margin-top: 0;
    }

    .site-main__content:has(> .frame-sm-church-intro) > .frame-sm-church-copy > .rahmen,
    .site-main__content:has(> .frame-sm-church-intro) > .frame-sm-church-copy ~ .frame-sm-church-intro > .rahmen {
        width: min(calc(100% - 3rem), var(--sm-content));
    }
}

.site-main__content > :is(.frame-sm-facility-featured, .frame-sm-church-copy):last-child {
    padding-bottom: clamp(2.5rem, 4vw, 4rem);
}

@media (prefers-reduced-motion: reduce) {
    .site-main__content .frame-style-accordion .ui-accordion-header,
    .site-main__content .frame-style-accordion .ui-accordion-header::before,
    .site-main__content .frame-style-accordion .ui-accordion-header::after {
        transition: none;
    }
}

.site-main__content :is(.frame-sm-member-list, .frame-sm-member-list-single) .ce-bodytext > ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.site-main__content :is(.frame-sm-member-list, .frame-sm-member-list-single) .ce-bodytext > ul > li {
    position: relative;
    padding: 0.65rem 0.25rem 0.65rem 1.15rem;
    border-bottom: 1px solid rgba(51, 51, 51, 0.12);
    line-height: 1.45;
}

.site-main__content :is(.frame-sm-member-list, .frame-sm-member-list-single) .ce-bodytext > ul > li::before {
    position: absolute;
    top: 1.14rem;
    left: 0;
    width: 5px;
    height: 5px;
    background: var(--sm-rust);
    border-radius: 50%;
    content: "";
}

.site-main__content .frame-sm-member-list-single .ce-bodytext > ul {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

@media (max-width: 680px) {
    .site-main__content :is(.frame-sm-member-list, .frame-sm-member-list-single) .ce-bodytext > ul {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }
}

.site-main__content > .frame-sm-pfarrteam-grid {
    float: none;
    width: 100%;
    max-width: var(--sm-content);
}

.frame-sm-pfarrteam-grid > .rahmen {
    display: flex;
    flex-direction: column;
}

.frame-sm-pfarrteam-grid > .rahmen > .cn_multicontent_teaser {
    order: 1;
    margin: 0 0 0.35rem;
}

.frame-sm-pfarrteam-grid > .rahmen > .cn_multicontent_teaser p {
    margin: 0;
    color: var(--sm-rust);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    font-weight: 700;
    letter-spacing: 0.045em;
}

.frame-sm-pfarrteam-grid > .rahmen > header {
    order: 2;
    margin: 0 0 clamp(2rem, 4vw, 3rem);
}

.frame-sm-pfarrteam-grid > .rahmen > header::after {
    display: block;
    width: 5rem;
    height: 0.45rem;
    margin-top: 1.15rem;
    content: "";
    background: linear-gradient(
        to right,
        var(--sm-rust) 0 50%,
        var(--sm-blue) 50% 75%,
        var(--sm-beige) 75% 100%
    );
}

.site-main__content .frame-sm-pfarrteam-grid > .rahmen > header h1 {
    margin: 0;
    color: var(--sm-text);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.05;
}

.frame-sm-pfarrteam-grid .tx_cn-columns:is([data-cols="2"], [data-cols="3"]) {
    display: grid;
    float: none;
    clear: none;
    order: 3;
    box-sizing: border-box;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 2vw, 1.75rem);
    padding: clamp(1.25rem, 2.75vw, 2rem);
    background: transparent;
}

.frame-sm-pfarrteam-grid .tx_cn-columns:is([data-cols="2"], [data-cols="3"]) > .row {
    display: contents;
    float: none;
    clear: none;
    width: auto;
    margin: 0;
}

.frame-sm-pfarrteam-grid .tx_cn-columns:is([data-cols="2"], [data-cols="3"]) > .row > :is(.col-33, .col-50) {
    float: none;
    clear: none;
    width: auto;
    min-width: 0;
    height: 100%;
    margin: 0;
}

.site-main__content .frame-sm-pfarrteam-grid .tx_cn-columns:is([data-cols="2"], [data-cols="3"]) > .row > :is(.col-33, .col-50) > .frame {
    float: none;
    clear: none;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: var(--sm-white);
    border-top: 0.5rem solid transparent;
    border-image: linear-gradient(
        to right,
        var(--sm-grey) 0 20%,
        var(--sm-blue) 20% 40%,
        var(--sm-beige) 40% 60%,
        var(--sm-rust) 60% 80%,
        var(--sm-footer) 80% 100%
    ) 1;
    box-shadow: 0 5px 12px rgba(51, 51, 51, 0.12);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.frame-sm-pfarrteam-grid .tx_cn-columns:is([data-cols="2"], [data-cols="3"]) > .row > :is(.col-33, .col-50) > .frame > .rahmen {
    display: flex;
    box-sizing: border-box;
    min-height: 14rem;
    flex-direction: column;
    padding: clamp(1.35rem, 2.25vw, 1.85rem);
}

.site-main__content .frame-sm-pfarrteam-grid .tx_cn-columns:is([data-cols="2"], [data-cols="3"]) > .row > :is(.col-33, .col-50) > .frame:has(.ce-gallery) {
    border-top: 0;
}

.frame-sm-pfarrteam-grid .tx_cn-columns:is([data-cols="2"], [data-cols="3"]) > .row > :is(.col-33, .col-50) > .frame:has(.ce-gallery) > .rahmen {
    padding: 0;
}

.frame-sm-pfarrteam-grid .tx_cn-columns:is([data-cols="2"], [data-cols="3"]) > .row > :is(.col-33, .col-50) > .frame:has(.ce-gallery) > .rahmen > .ce-textpic {
    display: contents;
}

.site-main__content .frame-sm-pfarrteam-grid .tx_cn-columns:is([data-cols="2"], [data-cols="3"]) > .row > :is(.col-33, .col-50) > .frame:has(.ce-gallery) :where(.ce-image, .ce-gallery, .ce-outer, .ce-inner, .ce-row, .ce-column, figure) {
    float: none;
    clear: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.frame-sm-pfarrteam-grid .tx_cn-columns:is([data-cols="2"], [data-cols="3"]) > .row > :is(.col-33, .col-50) > .frame:has(.ce-gallery) .ce-gallery {
    order: 1;
    width: 100%;
}

 .site-main .frame-sm-pfarrteam-grid .tx_cn-columns:is([data-cols="2"], [data-cols="3"]) > .row > :is(.col-33, .col-50) > .frame:has(.ce-gallery) .ce-gallery img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    background: var(--sm-beige);
}

.frame-sm-pfarrteam-grid .tx_cn-columns:is([data-cols="2"], [data-cols="3"]) > .row > :is(.col-33, .col-50) > .frame:has(.ce-gallery) .ce-gallery::after {
    display: block;
    clear: both;
    width: 100%;
    height: 0.5rem;
    background: linear-gradient(
        to right,
        var(--sm-grey) 0 20%,
        var(--sm-blue) 20% 40%,
        var(--sm-beige) 40% 60%,
        var(--sm-rust) 60% 80%,
        var(--sm-footer) 80% 100%
    );
    content: "";
}

.frame-sm-pfarrteam-grid .tx_cn-columns:is([data-cols="2"], [data-cols="3"]) > .row > :is(.col-33, .col-50) > .frame:has(.ce-gallery) > .rahmen > header {
    order: 2;
    margin: 0 0 0.85rem;
    padding: clamp(1.35rem, 2.25vw, 1.85rem) clamp(1.35rem, 2.25vw, 1.85rem) 0.75rem;
}

.frame-sm-pfarrteam-grid .tx_cn-columns:is([data-cols="2"], [data-cols="3"]) > .row > :is(.col-33, .col-50) > .frame:has(.ce-gallery) .ce-bodytext {
    order: 3;
    padding: 0 clamp(1.35rem, 2.25vw, 1.85rem) clamp(1.35rem, 2.25vw, 1.85rem);
}

.site-main__content .frame-sm-pfarrteam-grid .frame-type-textmedia > .rahmen > header {
    margin: 0 0 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(51, 51, 51, 0.14);
}

.site-main__content .frame-sm-pfarrteam-grid .frame-type-textmedia > .rahmen > header h2 {
    margin: 0;
    color: var(--sm-grey);
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    font-weight: 700;
    letter-spacing: 0.035em;
    line-height: 1.25;
}

.site-main__content .frame-sm-pfarrteam-grid .frame-type-textmedia .ce-bodytext > p {
    margin: 0;
    color: var(--sm-text);
    font-size: clamp(0.95rem, 1.15vw, 1.05rem);
    line-height: 1.65;
}

.site-main__content .frame-sm-pfarrteam-grid .frame-type-textmedia .ce-bodytext > p > strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--sm-text);
    font-size: clamp(1.2rem, 1.7vw, 1.45rem);
    font-weight: 700;
    line-height: 1.2;
}

.frame-sm-pfarrteam-grid .frame-type-textmedia .ce-bodytext > p > strong + br {
    display: none;
}

.site-main__content .frame-sm-pfarrteam-grid a {
    color: var(--sm-rust);
    font-weight: 600;
    overflow-wrap: anywhere;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
}

.site-main__content .frame-sm-pfarrteam-grid a:hover,
.site-main__content .frame-sm-pfarrteam-grid a:focus-visible {
    color: var(--sm-text);
}

.site-main__content .frame-sm-pfarrteam-grid a:focus-visible {
    outline: 3px solid var(--sm-rust);
    outline-offset: 3px;
}

.frame-sm-pfarrteam-grid .frame-type-textmedia:focus-within {
    box-shadow: 0 10px 22px rgba(51, 51, 51, 0.18);
    transform: translateY(-3px);
}

@media (max-width: 900px) {
    .frame-sm-pfarrteam-grid .tx_cn-columns:is([data-cols="2"], [data-cols="3"]) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .frame-sm-pfarrteam-grid > .rahmen > header {
        margin-bottom: 1.75rem;
    }

    .frame-sm-pfarrteam-grid .tx_cn-columns:is([data-cols="2"], [data-cols="3"]) {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
        padding: 1rem;
    }

    .frame-sm-pfarrteam-grid .tx_cn-columns:is([data-cols="2"], [data-cols="3"]) > .row > :is(.col-33, .col-50) > .frame > .rahmen {
        min-height: 0;
        padding: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .frame-sm-pfarrteam-grid .frame-type-textmedia {
        transition-duration: 0.01ms;
    }

    .frame-sm-pfarrteam-grid .frame-type-textmedia:focus-within {
        transform: none;
    }
}

.site-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--sm-white);
    background: var(--sm-footer);
    box-shadow: none;
}

.site-footer::before {
    position: absolute;
    z-index: 0;
    top: 165px;
    left: 50%;
    width: clamp(700px, 62.5vw, 900px);
    aspect-ratio: 230.654 / 288.521;
    content: "";
    background: url("../Images/stm_logo_bildmarke.svg") center / contain no-repeat;
    filter: brightness(0) invert(1);
    opacity: 0.063;
    pointer-events: none;
    transform: translateX(-47.5%);
}

.site-footer__accents {
    --sm-footer-quicklink-icon-size: 24px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
    height: 44px;
    min-height: 44px;
    background: none;
}

.site-footer__accents--empty {
    height: 44px;
    min-height: 44px;
    background: linear-gradient(
        to right,
        var(--sm-grey) 0 20%,
        var(--sm-blue) 20% 40%,
        var(--sm-beige) 40% 60%,
        var(--sm-rust) 60% 80%,
        var(--sm-footer) 80% 100%
    );
}

.site-footer .site-footer__accents > .frame-sm-quicklink {
    display: flex;
    height: 44px;
    min-height: 44px;
    min-width: 0;
    color: var(--sm-white);
    container-name: footer-quicklink;
    container-type: inline-size;
}

.site-footer .site-footer__accents > .frame-sm-quicklink:nth-child(1) {
    background: var(--sm-grey);
}

.site-footer .site-footer__accents > .frame-sm-quicklink:nth-child(2) {
    color: var(--sm-text);
    background: var(--sm-blue);
}

.site-footer .site-footer__accents > .frame-sm-quicklink:nth-child(3) {
    color: var(--sm-text);
    background: var(--sm-beige);
}

.site-footer .site-footer__accents > .frame-sm-quicklink:nth-child(4) {
    background: var(--sm-rust);
}

.site-footer .site-footer__accents > .frame-sm-quicklink:nth-child(5) {
    background: var(--sm-footer);
}

.site-footer .site-footer__accents > .frame-sm-quicklink:nth-child(6) {
    background: var(--sm-grey);
}

.site-footer .site-footer__accents .frame-sm-quicklink > .rahmen {
    display: grid;
    width: 100%;
    grid-template-columns: var(--sm-footer-quicklink-icon-size) minmax(0, auto);
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.25rem 0.5rem;
    text-align: left;
}

.site-footer .site-footer__accents .frame-sm-quicklink > .rahmen > header {
    order: 2;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.site-footer .site-footer__accents .frame-sm-quicklink > .rahmen > header :where(h2, h3, h4) {
    margin: 0;
    color: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    overflow-wrap: anywhere;
    white-space: normal;
}

.site-footer .site-footer__accents .frame-sm-quicklink > .rahmen > header a {
    font-size: 14px;
    line-height: 1;
    overflow-wrap: anywhere;
    white-space: normal;
}

.site-footer .site-footer__accents .frame-sm-quicklink .ce-image {
    order: 1;
}

.site-footer .site-footer__accents .frame-sm-quicklink :where(.ce-image, .ce-gallery, .ce-outer, .ce-inner, .ce-row, .ce-column, figure) {
    width: var(--sm-footer-quicklink-icon-size);
    height: var(--sm-footer-quicklink-icon-size);
    margin: 0;
}

.site-footer .site-footer__accents .frame-sm-quicklink .ce-center :where(.ce-outer, .ce-inner) {
    position: static;
    right: auto;
    float: none;
}

.site-footer .site-footer__accents .frame-sm-quicklink img {
    display: block;
    width: var(--sm-footer-quicklink-icon-size);
    height: var(--sm-footer-quicklink-icon-size);
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.site-footer .site-footer__accents > .frame-sm-quicklink:nth-child(2) img {
    filter: brightness(0);
    opacity: 0.72;
}

.site-footer .site-footer__accents > .frame-sm-quicklink:nth-child(3) img {
    filter: brightness(0);
    opacity: 0.72;
}

.site-footer .site-footer__accents .frame-sm-quicklink.frame-layout-20 .ce-row:nth-child(n + 2) {
    display: none;
}

.site-footer .site-footer__accents .frame-sm-quicklink.frame-layout-20 .ce-row:first-child {
    opacity: 1;
}

.site-footer .site-footer__accents .frame-sm-quicklink a,
.site-footer .site-footer__accents .frame-sm-quicklink a:hover,
.site-footer .site-footer__accents .frame-sm-quicklink a:focus-visible {
    color: inherit;
}

.site-footer .site-footer__accents .frame-sm-quicklink a:hover {
    text-decoration-thickness: 0.1em;
    text-underline-offset: 0.2em;
}

.site-footer .site-footer__accents .frame-sm-quicklink a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

@container footer-quicklink (max-width: 190px) {
    .site-footer .site-footer__accents .frame-sm-quicklink > .rahmen {
        grid-template-columns: var(--sm-footer-quicklink-icon-size);
        justify-content: center;
        gap: 0;
        padding: 0.25rem;
    }

    .site-footer .site-footer__accents .frame-sm-quicklink > .rahmen > header {
        display: none;
    }
}

.site-footer__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 440px 406px 123px;
    width: min(calc(100% - 3rem), 1200px);
    column-gap: 115.5px;
    padding-top: 84px;
    padding-bottom: 130px;
}

.site-footer :where(h2, h3, h4, strong) {
    color: var(--sm-beige);
}

.site-footer .site-footer__inner .frame p,
.site-footer .site-footer__inner .frame li,
.site-footer .site-footer__inner .frame a {
    color: var(--sm-white);
}

.site-footer .site-footer__inner .frame h2,
.site-footer .site-footer__inner .frame h3,
.site-footer .site-footer__inner .frame h4,
.site-footer .site-footer__inner .frame strong {
    color: var(--sm-beige);
}

.site-footer :where(h2, h3, h4) {
    margin: 0 0 2rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.55;
}

.site-footer :where(p, li, a) {
    color: var(--sm-white);
    font-size: 1.25rem;
    line-height: 1.55;
}

.site-footer a {
    text-decoration-color: rgba(255, 255, 255, 0.55);
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--sm-blue);
}

.site-footer .site-footer__inner .frame a:hover,
.site-footer .site-footer__inner .frame a:focus-visible {
    color: var(--sm-blue);
}

.site-footer ul {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li {
    margin: 0;
}

.frame-sm-footer-contact :where(.ce-image, .ce-gallery, .ce-row, .ce-column, figure) {
    margin: 0;
}

.frame-sm-footer-contact .ce-center :where(.ce-outer, .ce-inner) {
    position: static;
    right: auto;
    float: none;
    width: auto;
}

.frame-sm-footer-contact .ce-gallery {
    padding-top: 11px;
    margin-bottom: 42px;
}

.frame-sm-footer-contact img {
    width: 328px;
    max-width: none;
    height: auto;
    margin-left: -2px;
    filter: none;
}

.frame-sm-footer-contact .ce-bodytext,
.frame-sm-footer-bank .ce-bodytext,
.frame-sm-footer-navigation .ce-bodytext {
    font-size: 1.25rem;
}

.frame-sm-footer-bank > .rahmen,
.frame-sm-footer-navigation > .rahmen {
    padding-top: 193px;
    font-size: 1.25rem;
}

.frame-sm-footer-bank > .rahmen {
    padding-top: 195px;
}

.frame-sm-footer-contact p {
    margin: 0;
    line-height: 1.6;
}

.frame-sm-footer-contact p:nth-child(1) {
    margin-bottom: 30px;
}

.frame-sm-footer-contact p:nth-child(2) {
    margin-bottom: 58px;
}

.frame-sm-footer-contact p:nth-child(3) {
    margin-bottom: 33px;
}

.frame-sm-footer-contact p:nth-child(3) strong {
    display: block;
    margin-bottom: 30px;
}

.frame-sm-footer-contact p:nth-child(3) strong + br {
    display: none;
}

.frame-sm-footer-bank p {
    margin: 0 0 34px;
}

.frame-sm-footer-contact p:last-child,
.frame-sm-footer-bank p:last-child {
    margin-bottom: 0;
}

.frame-sm-footer-contact :where(.sm-opening-hours, figure.table > table) {
    width: auto;
    margin: 0;
    border-collapse: collapse;
}

.frame-sm-footer-contact :where(.sm-opening-hours, figure.table > table) :where(th, td) {
    padding: 0;
    border: 0;
    line-height: 1.6;
    vertical-align: baseline;
}

.frame-sm-footer-contact :where(.sm-opening-hours, figure.table > table) th {
    padding-right: 2.5rem;
    font-weight: 400;
    text-align: right;
    white-space: nowrap;
}

.frame-sm-footer-contact :where(.sm-opening-hours, figure.table > table) td {
    text-align: left;
    white-space: nowrap;
}

.frame-sm-footer-navigation {
    white-space: nowrap;
}

.frame-sm-footer-navigation :where(li, a) {
    line-height: 1.6;
}

.frame-sm-footer-navigation > .rahmen > header {
    transform: translateY(2px);
}

.frame-sm-footer-navigation ul + h3 {
    margin-top: 35px;
    margin-bottom: -2px;
}

/* temporär ausblenden 
div.calendar-toolbar {display: none !important;}*/

@media (max-width: 1248px) {
    .site-footer__inner {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(123px, 0.45fr);
        column-gap: clamp(3rem, 6vw, 5rem);
    }
}

@media (max-width: 1180px) {
    .site-footer__inner {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(123px, 0.45fr);
        column-gap: clamp(3rem, 6vw, 5rem);
    }

    .frame-sm-footer-contact img {
        width: 260px;
        height: auto;
        margin-left: 0;
        object-fit: contain;
    }

    .frame-sm-footer-bank > .rahmen {
        padding-top: 167px;
    }

    .frame-sm-footer-navigation > .rahmen {
        padding-top: 165px;
    }

    .site-footer :where(h2, h3, h4),
    .site-footer :where(p, li, a),
    .frame-sm-footer-contact .ce-bodytext,
    .frame-sm-footer-bank .ce-bodytext,
    .frame-sm-footer-navigation .ce-bodytext,
    .frame-sm-footer-bank > .rahmen,
    .frame-sm-footer-navigation > .rahmen {
        font-size: 1.125rem;
    }

    .hauptnavi .nav-link {
        padding-right: 0.56rem;
        padding-left: 0.56rem;
        font-size: 0.93rem;
    }

    .home-sacraments__content {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .home-sacraments .frame-sm-section-heading {
        grid-column: 1 / -1;
    }
}

@media (min-width: 901px) and (max-width: 1180px) {
    .site-topbar__inner {
        gap: 1rem;
    }

    .hauptnavi__list > .nav-item > .nav-link {
        padding-right: 0.3rem;
        padding-left: 0.3rem;
    }
}

@media (min-width: 700px) and (max-width: 1180px) {
    .home-sacraments__content {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }

    .home-sacraments__content > .frame-sm-sacrament {
        grid-column: span 2;
    }

    .home-sacraments__content > .frame-sm-sacrament:nth-last-child(3) {
        grid-column: 2 / span 2;
    }

    .home-sacraments__content > .frame-sm-sacrament:nth-last-child(2) {
        grid-column: 4 / span 2;
    }

    .home-sacraments__content > .frame-sm-sacrament:last-child {
        grid-column: 6 / span 2;
    }
}

@media (max-width: 900px) {
    .site-main__content .sm-news-list--layout-20 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-section__inner.home-quicklinks__content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: clamp(1.75rem, 5vw, 2.75rem);
    }

    .site-footer__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 4rem;
        row-gap: 3.5rem;
        padding-top: 4rem;
        padding-bottom: 5rem;
    }

    .frame-sm-footer-bank > .rahmen {
        padding-top: 167px;
    }

    .frame-sm-footer-navigation {
        grid-column: 1 / -1;
        white-space: normal;
    }

    .frame-sm-footer-navigation > .rahmen {
        padding-top: 0;
    }

    .site-topbar__inner {
        min-height: 88px;
    }

    .site-brand {
        flex-basis: 220px;
    }

    .hauptnavi {
        position: static;
        width: auto;
    }

    .hauptnavi__toggleButton {
        display: inline-flex;
        width: 50px;
        height: 50px;
        align-items: center;
        justify-content: center;
        color: var(--sm-text);
        background: var(--sm-white);
        border: 2px solid var(--sm-grey-light);
        border-radius: 50%;
        cursor: pointer;
    }

    .hauptnavi__toggleButton .mob_button,
    .hauptnavi__toggleButton .mob_button span {
        display: block;
    }

    .hauptnavi__toggleButton .mob_button {
        position: relative;
        width: 23px;
        height: 16px;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .hauptnavi__toggleButton .mob_button span {
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
    }

    .hauptnavi__toggleButton .mob_button span,
    .hauptnavi__toggleButton .mob_button span::before,
    .hauptnavi__toggleButton .mob_button span::after {
        width: 23px;
        height: 2px;
        background-color: currentColor;
    }

    .hauptnavi__toggleButton .mob_button span {
        transition: background-color 0.18s ease;
    }

    .hauptnavi__toggleButton .mob_button span::before,
    .hauptnavi__toggleButton .mob_button span::after {
        top: 0;
        transform-origin: center;
        transition: transform 0.18s ease;
    }

    .hauptnavi__toggleButton .mob_button span::before {
        transform: translateY(-6px);
    }

    .hauptnavi__toggleButton .mob_button span::after {
        transform: translateY(6px);
    }

    .hauptnavi__toggleButton[aria-expanded="true"] .mob_button span {
        background-color: transparent;
    }

    .hauptnavi__toggleButton[aria-expanded="true"] .mob_button span::before {
        transform: rotate(45deg);
    }

    .hauptnavi__toggleButton[aria-expanded="true"] .mob_button span::after {
        transform: rotate(-45deg);
    }

    .navbox {
        position: absolute;
        z-index: 110;
        top: 100%;
        right: 0;
        left: 0;
        width: 100%;
        max-width: none;
        padding: 0.6rem;
        color: var(--sm-text);
        background: var(--sm-white);
        border: 1px solid rgba(51, 51, 51, 0.1);
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: 0 18px 35px rgba(51, 51, 51, 0.16);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    }

    .hauptnavi.is-open .navbox {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .hauptnavi__list {
        display: grid;
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
        justify-content: stretch;
        gap: 0.2rem;
    }

    .hauptnavi__list > .nav-item {
        width: 100%;
    }

    .hauptnavi .nav-link {
        justify-content: flex-start;
        width: 100%;
        padding: 0.75rem 0.9rem;
        color: var(--sm-text);
    }

    .hauptnavi__list > .nav-item > .nav-link {
        box-sizing: border-box;
        font-size: 1.125rem;
        height: 44px;
        min-height: 44px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .dropdown-menu {
        display: grid;
        position: static;
        min-width: 0;
        margin-left: 0;
        padding: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.2rem;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown-menu__item {
        min-width: 0;
    }

    .dropdown-menu .nav-link {
        height: 100%;
        min-height: 40px;
        padding: 0.45rem 0.65rem;
        font-size: 0.875rem;
        line-height: 1.35;
        background: var(--sm-beige);
        border: 1px solid var(--sm-white);
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: auto;
        hyphenate-limit-chars: 6 3 3;
    }

    .dropdown:not(.is-open) > .dropdown-menu {
        display: none;
    }

    .dropdown__toggle {
        width: 100%;
        color: var(--sm-text);
    }

    .frame-sm-welcome .ce-textpic {
        grid-template-columns: minmax(230px, 0.85fr) minmax(280px, 1.15fr);
        gap: 2.5rem;
    }

    .frame-sm-news-card {
        flex-basis: calc((100% - 2rem) / 2);
    }

    .home-events__content {
        grid-template-columns: 1fr;
    }

    .calendar-plugin--preview {
        grid-template-columns: 1fr;
    }

    .calendar-plugin--preview > h2,
    .calendar-plugin nav {
        grid-column: 1;
    }

    .calendar-event {
        grid-template-columns: 1fr 1fr;
        gap: 0.3rem 1.25rem;
        padding: 0.8rem 0;
    }

    .home-offers__content {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 2rem;
    }

    .home-offers .frame-sm-section-heading {
        grid-column: 1;
    }

    .frame-sm-offer-card {
        width: min(100%, 640px);
        justify-self: center;
    }

    .frame-sm-offer-card .ce-bodytext {
        min-height: 254px;
    }

    .home-social .sm-social-follow__links {
        flex-direction: column;
        align-items: stretch;
        width: min(100%, 22rem);
    }

    .home-social .sm-social-follow__link {
        width: 100%;
    }
}

@media (min-width: 681px) and (max-width: 900px) {
    .home-section__inner.home-quicklinks__content {
        --sm-quicklink-icon-size: clamp(82px, 10.5vw, 96px);
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .home-quicklinks__content > .frame-sm-quicklink {
        grid-column: span 2;
    }
}

@media (min-width: 600px) and (max-width: 900px) {
    .navbox {
        right: 1.5rem;
        left: auto;
        width: min(700px, calc(100% - 3rem));
        max-width: calc(100% - 3rem);
        border-right: 1px solid rgba(51, 51, 51, 0.1);
        border-left: 1px solid rgba(51, 51, 51, 0.1);
    }
}

@media (min-width: 600px) and (max-width: 680px) {
    .navbox {
        right: 0.75rem;
        width: calc(100% - 1.5rem);
        max-width: calc(100% - 1.5rem);
    }
}

@media (max-width: 680px) {
    .site-main__content .sm-news-list--layout-20 {
        grid-template-columns: 1fr;
    }

    :root {
        --sm-news-anchor-offset: 104px;
        --sm-calendar-anchor-offset: 104px;
    }

    .frame-sm-together {
        --sm-together-mark-width: clamp(125px, 28vw, 190px);
        --sm-together-mark-transparent-right: clamp(0.8rem, 3vw, 1.3rem);
    }

    .home-section__inner.home-quicklinks__content {
        --sm-quicklink-icon-size: clamp(76px, 21vw, 92px);
    }

    .frame-sm-quicklink > .rahmen > header :where(h2, h3, h4) {
        font-size: clamp(0.78rem, 3.3vw, 0.92rem);
        line-height: 1.25;
    }

    .site-topbar__inner,
    .home-section__inner,
    .site-main__content,
    .site-footer__inner {
        width: min(calc(100% - 1.5rem), var(--sm-content));
    }

    .site-topbar__inner {
        min-height: 76px;
        gap: 1rem;
    }

    .site-brand {
        flex-basis: min(190px, calc(100vw - 96px));
    }

    .site-brand img {
        max-height: 58px;
    }

    .home-hero .frame-sm-hero > .rahmen > header,
    .home-hero .frame-sm-home-hero > .rahmen > header,
    .home-hero .frame-sm-pfarrleben-hero > .rahmen > header,
    .home-hero .frame-sm-sacrament-hero > .rahmen > header {
        bottom: 1.5rem;
        left: 0;
        width: 60%;
        padding: 0.65rem 1rem;
        padding-left: 0.75rem;
    }

    .home-hero .frame-sm-sacrament-hero > .rahmen > header {
        width: min(88%, 32rem);
    }

    .home-hero .frame-sm-home-hero .sm-home-hero__eyebrow {
        font-size: clamp(1rem, 3.5vw, 1.25rem);
    }

    .home-hero .frame-sm-home-hero .sm-home-hero__name {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .home-hero .frame-sm-hero > .rahmen > header h1 {
        font-size: clamp(1rem, 3.5vw, 1.25rem);
    }

    .home-hero .frame-sm-hero > .rahmen > header h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .home-hero .frame-sm-sacrament-hero .sm-sacrament-hero__eyebrow {
        font-size: clamp(0.9rem, 3.5vw, 1.15rem);
    }

    .home-hero .frame-sm-sacrament-hero .sm-sacrament-hero__name {
        font-size: clamp(1.35rem, 5.5vw, 2rem);
    }

    .frame-sm-welcome .ce-textpic {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }

    .frame-sm-welcome img {
        max-width: 390px;
        margin: 0 auto;
    }

    .frame-sm-news-card {
        flex-basis: 86%;
    }

    .home-news__control {
        display: none;
    }

    .calendar-plugin nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calendar-plugin nav a:first-child {
        grid-column: 1 / -1;
    }

    .calendar-event {
        grid-template-columns: 1fr;
    }

    .frame-sm-together > .rahmen > header {
        top: 50%;
        bottom: auto;
        left: calc(var(--sm-together-join) + var(--sm-together-word-gap));
        width: auto;
        text-align: left;
        transform: translateY(-50%);
    }

    .frame-sm-together > .rahmen > header :where(h1, h2) {
        font-size: clamp(1.8rem, 8vw, 3.4rem);
    }

    .frame-sm-together .ce-column:nth-child(2) {
        top: 50%;
        right: calc(100% - var(--sm-together-join) - var(--sm-together-mark-transparent-right));
        left: auto;
        width: var(--sm-together-mark-width);
        transform: translateY(-50%);
    }

    .home-sacraments__content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .frame-sm-footer-contact .ce-gallery {
        margin-bottom: 3rem;
    }

    .frame-sm-footer-contact img {
        width: min(300px, 80vw);
    }

    .frame-sm-footer-bank > .rahmen,
    .frame-sm-footer-navigation > .rahmen {
        padding-top: 0;
    }

    .frame-sm-footer-navigation {
        grid-column: auto;
    }

    .site-footer::before {
        top: auto;
        right: 1rem;
        bottom: 1rem;
        left: auto;
        width: min(85vw, 440px);
        opacity: 0.06;
        transform: none;
    }
}

@media (max-width: 699px) {
    .home-sacraments__content {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .frame-sm-sacrament.frame-layout-30 {
        --sm-sacrament-swap-width: min(105px, 100%);
    }

    .frame-sm-sacrament > .rahmen > header {
        width: 100%;
        min-width: 0;
    }

    .frame-sm-sacrament > .rahmen > header :where(h2, h3, h4) {
        overflow-wrap: break-word;
        word-break: normal;
        hyphens: auto;
    }

    .home-sacraments__content > .frame-sm-sacrament {
        grid-column: span 2;
    }

    .home-sacraments__content > .frame-sm-sacrament:last-child {
        grid-column: 3 / span 2;
    }
}

@media (max-width: 449px) {
    .home-sacraments__content {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .home-sacraments__content > .frame-sm-sacrament {
        grid-column: span 2;
    }

    .home-sacraments__content > .frame-sm-sacrament:last-child {
        grid-column: 2 / span 2;
    }
}

@media (max-width: 480px) {
    .home-sacraments__content {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-sacraments__content > .frame-sm-sacrament {
        grid-column: auto;
    }

    .home-sacraments__content > .frame-sm-sacrament:last-child {
        grid-column: 2;
    }

    .frame-sm-sacrament > .rahmen > header :where(h2, h3, h4) {
        font-size: 16px;
    }

    .frame-sm-sacrament img {
        width: 52.5px;
        height: 62.5px;
    }

    .frame-sm-sacrament.frame-layout-30 {
        --sm-sacrament-swap-width: 52.5px;
        --sm-sacrament-swap-height: 62.5px;
    }
}

@media (min-width: 600px) and (max-width: 900px) {
    .site-footer::before {
        top: auto;
        right: clamp(2.25rem, 6vw, 3.375rem);
        bottom: 1rem;
        left: auto;
        width: clamp(280px, 42vw, 380px);
        opacity: 0.06;
        transform: none;
    }
}

@media (max-aspect-ratio: 3 / 2) {
    .home-together__fixed-background {
        display: none;
    }

    .home-together.is-fixed-background-active .frame-sm-together .ce-column:first-child img {
        visibility: visible;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hauptnavi__toggleButton .mob_button span,
    .hauptnavi__toggleButton .mob_button span::before,
    .hauptnavi__toggleButton .mob_button span::after {
        transition-duration: 0.01ms;
    }

    .site-scroll-navigation__link {
        transition-duration: 0.01ms;
    }

    .home-together__fixed-background {
        display: none;
    }

    .home-together .frame-sm-together .ce-column:first-child img {
        visibility: visible;
    }
}

@media (max-width: 680px) {
    .site-scroll-navigation {
        bottom: max(16px, env(safe-area-inset-bottom));
    }

    .site-scroll-navigation__link {
        width: 44px;
        height: 44px;
    }

    .site-scroll-navigation__link svg {
        width: 21px;
        height: 21px;
    }
}

/* Standard textmedia markup: a responsive news image grid without carousel JS. */
#inhaltsbereich .sm-news-detail :is(.frame-sm-news-carousel, .sm-news-gallery) .ce-gallery {
    width: 100%;
    max-width: 100%;
}
#inhaltsbereich .sm-news-detail :is(.frame-sm-news-carousel, .sm-news-gallery) .ce-inner {
    position: static;
    float: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
#inhaltsbereich .sm-news-detail :is(.frame-sm-news-carousel, .sm-news-gallery) .ce-outer {
    position: static;
    float: none;
}
#inhaltsbereich .sm-news-detail :is(.frame-sm-news-carousel, .sm-news-gallery) .ce-row {
    display: contents;
}
#inhaltsbereich .sm-news-detail :is(.frame-sm-news-carousel, .sm-news-gallery) .ce-column:not(.f-carousel__slide) {
    float: none;
    width: 100%;
    margin: 0;
}
#inhaltsbereich .sm-news-detail :is(.frame-sm-news-carousel, .sm-news-gallery) figure {
    display: block;
    margin: 0;
}
#inhaltsbereich .sm-news-detail :is(.frame-sm-news-carousel, .sm-news-gallery) img {
    display: block;
    width: 100%;
    height: clamp(180px, 20vw, 240px);
    object-fit: contain;
    object-position: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
@media (max-width: 1199px) {
    #inhaltsbereich .sm-news-detail :is(.frame-sm-news-carousel, .sm-news-gallery) .ce-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 600px) {
    #inhaltsbereich .sm-news-detail :is(.frame-sm-news-carousel, .sm-news-gallery) .ce-inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (min-width: 901px) {
    .sm-news-detail .sm-news-carousel__controls {
        justify-content: flex-end;
    }
}

/* One shared surface for mixed image formats, without individual tile borders. */
.sm-news-detail .sm-news-carousel .f-carousel__viewport {
    background: var(--sm-beige);
    border: 0;
    border-radius: 0;
}
.sm-news-detail .sm-news-carousel .f-carousel__slide {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.sm-news-detail .sm-news-carousel .f-carousel__slide a {
    display: block;
    cursor: zoom-in;
}

#inhaltsbereich .sm-news-detail .sm-news-carousel figure.image {
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

/* More breathing room within news details. */
.sm-news-detail h1 {
    margin-bottom: 2rem;
}
.sm-news-detail__body > * + * {
    margin-top: 1.5rem;
}
.sm-news-detail__content-elements {
    margin-top: 3rem;
}
.sm-news-detail__back {
    margin-top: 3rem;
}
@media (min-width: 901px) {
    .sm-news-detail h1 {
        margin-bottom: 2.5rem;
    }
    .sm-news-detail__layout {
        gap: 3.5rem 4rem;
    }
    .sm-news-detail__content-elements,
    .sm-news-detail__back {
        margin-top: 0;
    }
}

/* Keep the page status accessible without a visible carousel counter. */
.sm-news-carousel__count {
    position: absolute;
    width: 1px;
    height: 1px;
    min-width: 0;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.sm-news-gallery > .ce-gallery:not(.f-carousel) {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.sm-news-gallery > .ce-gallery:not(.f-carousel) > .ce-column {
    max-width: 380px;
}

@media (min-width: 901px) {
    .home-section__inner.home-quicklinks__content {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.site-footer__accents {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* Reset native centering offsets inside the full-width team card images. */
.site-main .frame-sm-pfarrteam-grid .ce-gallery :is(.ce-outer, .ce-inner) {
    position: static;
    right: auto;
    left: auto;
    float: none;
}
.site-main .frame-sm-pfarrteam-grid .ce-gallery img[src*="person-placeholder"] {
    object-fit: contain;
}

.site-main .frame-sm-pfarrteam-grid :is(.ce-gallery, .ce-outer, .ce-inner, .ce-row, .ce-column, figure.image) {
    width: 100% !important;
    max-width: none;
}
.site-main .frame-sm-pfarrteam-grid .ce-gallery img {
    width: 100% !important;
}

/* Start page: preserve the full image height and the tower at the left edge. */
.home-hero .frame-sm-home-hero img {
    display: block;
    width: 100%;
    height: max(260px, 32.5vw);
    object-fit: cover;
    object-position: left top;
}
@media (max-width: 900px) {
    .home-hero .frame-sm-home-hero > .rahmen {
        display: flex;
        flex-direction: column;
    }
    .home-hero .frame-sm-home-hero > .rahmen > header {
        position: static;
        order: 2;
        box-sizing: border-box;
        width: 100%;
        max-width: none;
        min-width: 0;
    }
    .home-hero .frame-sm-home-hero > .rahmen > .ce-textpic {
        order: 1;
    }
}

/* Editorial subpage headers use the unchanged textmedia output. */
.home-hero .frame-sm-sacrament-hero {
    color: var(--sm-white);
    background: var(--sm-grey);
}
.home-hero .frame-sm-sacrament-hero > .rahmen > .ce-textpic {
    display: none;
}
.home-hero .frame-sm-sacrament-hero > .rahmen > header {
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    left: auto;
    bottom: auto;
    width: min(calc(100% - 3rem), var(--sm-content));
    min-width: 0;
    max-width: none;
    min-height: 176px;
    margin: 0 auto;
    padding: 28px 100px 28px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent;
}
.home-hero .frame-sm-sacrament-hero > .rahmen > header::after {
    position: absolute;
    z-index: -1;
    top: 50%;
    right: 0;
    width: clamp(80px, 14vw, 200px);
    aspect-ratio: 230.654 / 288.521;
    content: "";
    background: url("../Images/stm_logo_bildmarke.svg") center / contain no-repeat;
    filter: brightness(0) invert(1);
    opacity: 0.08;
    transform: translateY(-50%);
    pointer-events: none;
}
.home-hero .frame-sm-sacrament-hero .sm-sacrament-hero__title {
    display: flex;
    flex-direction: column;
    margin: 0;
}
.home-hero .frame-sm-sacrament-hero .sm-sacrament-hero__name {
    order: 1;
    font-size: clamp(1.65rem, 3vw, 2.5rem);
    line-height: 1.2;
}
.home-hero .frame-sm-sacrament-hero .sm-sacrament-hero__eyebrow {
    order: 2;
    margin-top: 0.5rem;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
}
.home-hero .frame-sm-page-hero-image {
    position: relative;
}
.home-hero .frame-sm-page-hero-image > .rahmen > header {
    position: absolute;
    z-index: 3;
    bottom: clamp(1rem, 4vw, 3rem);
    left: 0;
    box-sizing: border-box;
    max-width: 100%;
    padding: 1.25rem max(1.5rem, calc((100vw - var(--sm-content)) / 2));
    color: var(--sm-white);
    background: rgba(167, 77, 51, 0.85);
}
.home-hero .frame-sm-page-hero-image > .rahmen > header :is(h1,h2,h3,h4,p) {
    color: inherit;
    margin: 0;
    overflow-wrap: anywhere;
}
.home-hero .frame-sm-page-hero-image img {
    display: block;
    height: clamp(240px, 32.5vw, 580px);
    object-fit: cover;
    object-position: center;
}
@media (max-width: 680px) {
    .home-hero .frame-sm-sacrament-hero > .rahmen > header {
        min-height: 144px;
        padding-right: 48px;
    }
}

/* Image headers retain their taller photo area; grey headers stay compact. */
.home-hero:has(.frame-sm-page-hero-image) {
    --sm-subpage-header-height: 380px;
}
.home-hero .frame-sm-page-hero-image img {
    height: var(--sm-subpage-header-height);
}
.home-hero .frame-sm-page-hero-image > .rahmen > header {
    bottom: 1.5rem;
}
@media (max-width: 680px) {
    .home-hero:has(.frame-sm-page-hero-image) {
        --sm-subpage-header-height: 290px;
    }
    .home-hero .frame-sm-page-hero-image > .rahmen > header {
        bottom: 1rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

.home-hero .frame-sm-page-hero-image img {
    object-position: left top;
}

.site-main__content > .frame-sm-pfarrteam-grid + .frame-sm-pfarrteam-grid {
    margin-top: 3rem;
}
@media (min-width: 901px) {
    .frame-sm-pfarrteam-grid .tx_cn-columns:is([data-cols="2"], [data-cols="3"]) {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    .frame-sm-pfarrteam-grid .tx_cn-columns:is([data-cols="2"], [data-cols="3"]) > .row > :is(.col-33, .col-50) {
        grid-column: span 2;
    }
}

/* Native Text & Medien: beliebig viele Kirchenbilder als kompakte Galerie. */
.site-main__content > .frame-sm-church-gallery {
    box-sizing: border-box;
    width: 100vw;
    max-width: none;
    margin-inline: calc(50% - 50vw);
    padding: 0 1.5rem clamp(2.5rem, 4vw, 4rem);
    background: var(--sm-white);
}
.site-main__content > .frame-sm-church-intro ~ .frame-sm-church-intro ~ .frame-sm-church-gallery {
    background: var(--sm-beige);
}
#inhaltsbereich .frame-sm-church-gallery > .rahmen {
    width: 100%;
    max-width: var(--sm-content);
    margin-inline: auto;
}
.frame-sm-church-gallery .ce-gallery,
.frame-sm-church-gallery .ce-outer,
.frame-sm-church-gallery .ce-inner {
    float: none;
    position: static;
    width: 100% !important;
    margin: 0;
}
.frame-sm-church-gallery .ce-inner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 1rem;
}
#inhaltsbereich .frame-sm-church-gallery .ce-gallery[data-ce-columns] .ce-row { display: contents; }
.frame-sm-church-gallery .ce-column,
.frame-sm-church-gallery figure {
    float: none;
    width: 100% !important;
    min-width: 0;
    margin: 0;
}
.frame-sm-church-gallery figure > a { display: block; }
.frame-sm-church-gallery .ce-gallery img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin: 0;
    box-shadow: none;
}
.frame-sm-church-gallery a:focus-visible {
    outline: 3px solid var(--sm-orange);
    outline-offset: 4px;
}
@media (max-width: 680px) {
    .frame-sm-church-gallery .ce-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    .frame-sm-church-gallery .ce-gallery img { height: 140px; }
}

/* Redaktioneller Hintergrundtest: Layout unabhängig vom fachlichen Rahmen.
   Gilt nur für Text & Medien im Hauptinhalt, nicht für Header/Footer. */
#inhaltsbereich .frame-type-textmedia.frame-layout-100 {
    --sm-editorial-background: var(--sm-white);
    --sm-editorial-foreground: var(--sm-text);
}
#inhaltsbereich .frame-type-textmedia.frame-layout-110 {
    --sm-editorial-background: var(--sm-grey);
    --sm-editorial-foreground: var(--sm-white);
}
#inhaltsbereich .frame-type-textmedia:is(.frame-layout-100, .frame-layout-110) {
    background: var(--sm-editorial-background);
    color: var(--sm-editorial-foreground);
}
#inhaltsbereich .frame-type-textmedia:is(.frame-layout-100, .frame-layout-110) :is(header, .ce-bodytext, figcaption),
#inhaltsbereich .frame-type-textmedia:is(.frame-layout-100, .frame-layout-110) :is(h1, h2, h3, h4, h5, h6, p, li) {
    color: var(--sm-editorial-foreground);
}
#inhaltsbereich .frame-type-textmedia.frame-layout-110 :is(.ce-bodytext, figcaption) a {
    color: var(--sm-white);
    text-decoration: underline;
    text-underline-offset: .2em;
}
#inhaltsbereich .frame-type-textmedia.frame-layout-110 a:focus-visible {
    outline: 2px solid var(--sm-white);
    outline-offset: 4px;
}
#inhaltsbereich .frame-type-textmedia.frame-default:is(.frame-layout-100, .frame-layout-110) {
    box-sizing: border-box;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

/* News gallery: left aligned, padded shared background, compact single image. */
.sm-news-detail__layout > .sm-news-gallery {
    max-width: none;
    margin-inline: 0;
}
.sm-news-detail .sm-news-carousel .f-carousel__slide {
    padding-block: 12px;
}
.sm-news-detail .sm-news-carousel__controls {
    justify-content: flex-start;
}
.sm-news-detail .sm-news-carousel__controls[hidden] {
    display: none;
}
#inhaltsbereich .sm-news-detail .ce-gallery.sm-news-carousel--single {
    width: min(100%, 404px, calc(clamp(180px, 20vw, 240px) * var(--sm-news-single-ratio, 1.5) + 24px));
    margin-inline: 0;
}
#inhaltsbereich .sm-news-detail .ce-gallery.sm-news-carousel--single .ce-column.f-carousel__slide {
    width: 100%;
}
#inhaltsbereich .sm-news-detail .sm-news-carousel--single img {
    height: auto;
}

.sm-news-detail .sm-news-carousel .f-carousel__viewport {
    box-sizing: border-box;
    padding-inline: 12px;
}

/* Background selection names the actual color; 0 is explicitly white. */
#inhaltsbereich .site-main__content > .frame-type-textmedia.frame-layout-0 {
    background: var(--sm-white);
    color: var(--sm-text);
}
#inhaltsbereich .frame-type-textmedia.frame-layout-120 {
    background: var(--sm-beige);
    color: var(--sm-text);
}
#inhaltsbereich .frame-type-textmedia.frame-layout-120 :is(header, .ce-bodytext, figcaption),
#inhaltsbereich .frame-type-textmedia.frame-layout-120 :is(h1, h2, h3, h4, h5, h6, p, li) {
    color: var(--sm-text);
}

/* Categories use native News assignments; date and author remain separate. */
.sm-news-detail > .sm-news-categories {
    align-self: flex-start;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 0 1rem;
    padding: .45rem 1.2rem;
    color: var(--sm-text);
    background: var(--sm-tag-background);
    font-weight: 700;
    overflow-wrap: anywhere;
}
.frame-sm-news-card .sm-news-categories {
    max-width: calc(100% + var(--sm-news-card-inline-padding));
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

/* Each native category has its own badge, also when multiple are assigned. */
.site-main .frame-sm-news-card .sm-news-categories,
.sm-news-detail > .sm-news-categories {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    padding: 0;
    background: transparent;
}
.frame-sm-news-card .sm-news-categories {
    margin: 0 0 1rem calc(0rem - var(--sm-news-card-inline-padding));
}
.frame-sm-news-card .news-card__media + .ce-bodytext .sm-news-categories {
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 0;
    margin: 0;
}
.site-main .frame-sm-news-card .ce-bodytext .sm-news-categories .news-badge,
.sm-news-detail > .sm-news-categories .news-badge {
    position: static;
    margin: 0;
    padding: .45rem 1.2rem;
    color: var(--sm-text);
    background: var(--sm-tag-background);
    font-weight: 700;
}
.site-main .frame-sm-news-card .ce-bodytext .sm-news-categories .news-badge--report,
.sm-news-detail > .sm-news-categories .news-badge--report {
    background: var(--sm-beige);
}
.site-main .frame-sm-news-card .ce-bodytext .sm-news-categories .news-badge--announcement,
.sm-news-detail > .sm-news-categories .news-badge--announcement {
    background: var(--sm-blue);
}
.site-main .frame-sm-news-card .ce-bodytext .sm-news-categories .news-badge--note,
.sm-news-detail > .sm-news-categories .news-badge--note {
    color: var(--sm-white);
    background: var(--sm-rust);
}

/* Keep sacrament swap icons inside their fixed canvas, overriding native gallery sizing. */
#inhaltsbereich .frame-sm-sacrament.frame-layout-30 .ce-gallery :is(.ce-row, .ce-column, figure, figure > a, img) {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
}
#inhaltsbereich .frame-sm-sacrament.frame-layout-30 .ce-gallery img {
    object-fit: contain;
    object-position: center;
}

/* Miteinander: preserve the intended logo size against native gallery grid rules. */
.frame-sm-together {
    --sm-together-mark-width: clamp(160px, 28vw, 360px);
}
#inhaltsbereich .frame-sm-together .ce-gallery .ce-row {
    display: block;
}
#inhaltsbereich .frame-sm-together .ce-gallery .ce-column:first-child {
    width: 100%;
}
#inhaltsbereich .frame-sm-together .ce-gallery .ce-column:nth-child(2) {
    width: var(--sm-together-mark-width);
}
@media (max-width: 599px) {
    .frame-sm-together {
        --sm-together-mark-width: clamp(110px, 28vw, 150px);
    }
}

/* Footer quicklink icons keep their original image on hover and keyboard focus. */
.site-footer .site-footer__accents .frame-sm-quicklink.frame-layout-20 .ce-row {
    transition: none;
}
.site-footer .site-footer__accents .frame-sm-quicklink.frame-layout-20:is(:hover, :focus-within) .ce-gallery .ce-row:first-child {
    opacity: 1;
}

.calendar-plugin nav {
    display: flex;
    flex-wrap: wrap;
}

.calendar-plugin nav a {
    flex: 1 0 auto;
    min-height: 44px;
    white-space: nowrap;
}

.calendar-plugin--list .calendar-grid-event__content {
    padding: .15rem .5rem;
}

.calendar-plugin--list .calendar-grid-event__content strong {
    margin-inline-end: .25rem;
}

/* Terminliste: Abstand rechts in Art, Datum, Uhrzeit, Beschreibung und Ort. */
.calendar-plugin .calendar-event > * {
    min-width: 0;
    padding-right: 1rem;
    overflow-wrap: anywhere;
}

@media (max-width: 680px) {
    .calendar-plugin nav a:first-child {
        flex-basis: 100%;
    }
}

/* Eindeutige Größen für die Schnellzugriff-Icons */
.home-quicklinks .frame-sm-quicklink.frame-layout-20 figure > a {
    display: block;
    width: 100%;
    height: 100%;
}

#inhaltsbereich .home-quicklinks
.frame-sm-quicklink.frame-layout-20 .ce-gallery img {
    width: var(--sm-quicklink-icon-size);
    height: var(--sm-quicklink-icon-size);
    object-fit: contain;
}



/* Standard: beige Schatten auf weißem Hintergrund */
#inhaltsbereich {
    --sm-image-shadow-color: var(--sm-beige);
}

/* Inhaltselement mit weißem Hintergrund */
#inhaltsbereich .site-main__content >
.frame-type-textmedia.frame-layout-0 {
    --sm-image-shadow-color: var(--sm-beige);
}

/* Inhaltselement mit beigem Hintergrund */
#inhaltsbereich .frame-type-textmedia.frame-layout-120 {
    --sm-image-shadow-color: var(--sm-white);
}

/* Schattenfarbe für Kirchen- und Einrichtungsbilder */
#inhaltsbereich :is(
    .frame-sm-church-intro,
    .frame-sm-church-copy,
    .frame-sm-facility-intro,
    .frame-sm-facility-featured
) .ce-gallery img {
    box-shadow: -10px 10px 0 var(--sm-image-shadow-color);
}