/* Feinschliff: Kontakt-Knöpfe auf dem Handy, Instagram-Hinweis, Filterleiste, Häuser-Kacheln */

/* Handy: die Kontakt-Knöpfe rechts unten decken Text und Formularfelder ab.
   Bis 767 px bleibt ein Knopf stehen, der die anderen aufklappt. */

.sticky-toggle {
    display: none;
}

@media (max-width: 767.98px) {
    .sticky-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        bottom: 84px;
        right: 12px;
    }

    .sticky-wrapper ul li {
        height: 46px;
        min-width: 46px;
        padding: 0 14px;
        margin-bottom: 8px;
    }

    .sticky-wrapper ul li a,
    .sticky-wrapper ul li a i {
        line-height: 46px;
    }

    .sticky-wrapper > ul {
        display: none;
    }

    .sticky-wrapper.is-expanded > ul {
        display: block;
    }

    .sticky-toggle {
        position: relative;
        display: block;
        width: 46px;
        height: 46px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #003c90;
        color: #fff;
        cursor: pointer;
    }

    .sticky-toggle span,
    .sticky-toggle span:before {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 18px;
        height: 2px;
        margin: -1px 0 0 -9px;
        background: currentColor;
        transition: transform .25s ease;
    }

    .sticky-toggle span:before {
        content: "";
        top: 0;
        left: 0;
        margin: 0;
        transform: rotate(90deg);
    }

    .sticky-wrapper.is-expanded .sticky-toggle span {
        transform: rotate(45deg);
    }

    .sticky-wrapper.is-expanded .sticky-toggle span:before {
        transform: rotate(90deg);
    }
}

/* Instagram-Hinweis vor der Einwilligung: eine schmale Zeile statt einer halben Bildschirmhöhe */

.splietker-elfsight-consent__notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 32px;
    padding: 22px 28px;
    background: #f4f8f8;
    color: #1b2430;
}

.splietker-elfsight-consent__notice[hidden] {
    display: none;
}

.splietker-elfsight-consent__notice p {
    margin: 0;
    flex: 1 1 320px;
}

.splietker-elfsight-consent__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
}

.splietker-elfsight-consent__notice .linkbutton {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #003c90;
}

/* Filterleiste bei Häuser und Räume: lesbarer, ohne das Aussehen zu ändern */

.navbar-nav .filter-menu li button,
.navbar-nav .filter-menu li a {
    font-size: .8125rem;
    color: #666b70;
}

.navbar-nav .filter-menu li button:hover,
.navbar-nav .filter-menu li button.active,
.navbar-nav .filter-menu li a:hover,
.navbar-nav .filter-menu li a.active {
    color: #003c90;
}

.navbar-nav .filter-menu li button.active,
.navbar-nav .filter-menu li a.active {
    font-weight: 500;
}

.mobilfilter .btn-filter {
    font-size: .875rem;
}

/* Seitentitel: waren H2, jetzt H1 (Referenzen, Kontakt, Impressum, Datenschutz, Jobs). Aussehen bleibt wie vorher. */

#c216 h1,
#c292 h1,
#c11 h1,
#c14 h1,
#c245 h1 {
    font-size: 26px;
    margin-bottom: 10px;
}

@media (min-width: 992px) {
    #c216 h1,
    #c292 h1,
    #c11 h1,
    #c14 h1,
    #c245 h1 {
        font-size: 36px;
        margin-bottom: 30px;
    }
}

/* Überschriften-Struktur: je Seite genau eine H1. Die bisherigen Zusatz-H1 (Beraten, Planen, Bauen, Kontakt)
   sind jetzt H3 bzw. H2 und sehen aus wie vorher. */

#c40 h3,
#c42 h3,
#c44 h3,
#c407 h2,
#c361 h2,
#c379 h2,
#c375 h2 {
    font-size: 26px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

#c40 h3,
#c42 h3,
#c44 h3 {
    color: #fff;
}

@media (min-width: 992px) {
    #c40 h3,
    #c42 h3,
    #c44 h3,
    #c407 h2,
    #c361 h2,
    #c379 h2,
    #c375 h2 {
        font-size: 36px;
    }
}

/* Seitentitel für Häuser, Räume, Video und Angebote: nur für Suchmaschinen und Screenreader */

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

/* Video-Kacheln vor der Einwilligung: kein Hinweis 47-mal auf der Kachel, der Titel steht unter dem Bild.
   Den Hinweis und den Knopf für die Cookie-Einstellungen zeigt weiterhin das Fenster, das sich beim Anklicken öffnet. */

.splietker-youtube-consent-preview__notice {
    display: none !important;
}

/* ===== Fassung 2: Lesbarkeit, Formulare, Seitenköpfe, Kontakt ===== */

/* Fließtext: Regular statt Light, etwas größer, dunkler, mit lesbarer Zeilenlänge */

.frame-type-text p,
.frame-type-text li,
.frame-type-textpic p,
.frame-type-textpic li,
.frame-type-textmedia p,
.frame-type-textmedia li,
.news-text-wrap p,
.projekt-zitat {
    font-weight: 400;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: #1b2430;
}

.frame-type-text p,
.frame-type-textpic p,
.frame-type-textmedia p {
    max-width: 76ch;
}

/* Tastatur: überall ein sichtbarer Fokus */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #003c90 !important;
    outline-offset: 2px !important;
}

/* Formulare: größere Felder, lesbarer Platzhalter, Absenden als richtiger Knopf */

body .powermail_fieldwrap .form-control {
    font-size: 1rem;
    font-weight: 400;
    padding-top: .75rem;
    padding-bottom: .75rem;
}

body .powermail_fieldwrap .form-control::placeholder {
    color: #666b70;
    opacity: 1;
}

body .powermail_fieldwrap_type_submit .linkbutton {
    margin: 14px 0 0;
    padding: 14px 38px;
    border: 0;
    background: #003c90;
    color: #fff;
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .2s ease;
}

body .powermail_fieldwrap_type_submit .linkbutton:before,
body .powermail_fieldwrap_type_submit .linkbutton:after {
    display: none;
}

body .powermail_fieldwrap_type_submit .linkbutton:hover,
body .powermail_fieldwrap_type_submit .linkbutton:focus {
    background: #002f70;
    color: #fff;
}

/* Seitenkopf für Häuser, Räume, Video und Aktuelles: Titel mit einer Zeile darunter */

.frame-space-before-seitenkopf {
    max-width: 1140px;
    margin: 0 auto;
    padding: 44px 20px 24px;
}

.frame-space-before-seitenkopf h1 {
    margin-bottom: 8px;
    font-size: 26px;
}

.seitenkopf-zeile {
    margin: 0;
    max-width: 70ch;
    font-size: 1.0625rem;
    line-height: 1.55;
    color: #4b5563;
}

@media (min-width: 992px) {
    .frame-space-before-seitenkopf h1 {
        font-size: 36px;
    }
}

@media (min-width: 1500px) {
    .frame-space-before-seitenkopf {
        max-width: 1320px;
    }
}

/* Kontakt: Telefon, E-Mail und Anschrift nebeneinander über dem Formular */

.frame-space-before-direktwege {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 32px;
    margin: 6px 0 36px;
    padding: 22px 0;
    border-top: 1px solid #dde2e8;
    border-bottom: 1px solid #dde2e8;
}

.frame-space-before-direktwege p {
    max-width: none;
    margin: 0;
}

@media (max-width: 767.98px) {
    .frame-space-before-direktwege {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}

/* ===== Jobs: Fassung 2 ===== */

/* Einstieg: Überschrift links, Text rechts, erster Absatz als Einleitung */

#c245 p:first-of-type {
    font-size: 1.3125rem;
    line-height: 1.5;
    font-weight: 500;
}

@media (min-width: 992px) {
    #c245 {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        column-gap: 72px;
        align-items: start;
        padding-top: 20px;
    }

    #c245 header {
        grid-column: 1;
        grid-row: 1 / span 12;
    }

    #c245 header h1 {
        margin-bottom: 0;
        line-height: 1.15;
    }

    #c245 p {
        grid-column: 2;
        max-width: none;
        margin: 0 0 18px;
    }
}

/* Drei Vorteile: eine ruhige Leiste statt drei großer Kacheln */

.row:has(.iconmittext-wrapper) {
    margin-left: 0;
    margin-right: 0;
    border-top: 1px solid #dde2e8;
    border-bottom: 1px solid #dde2e8;
}

.row:has(.iconmittext-wrapper) > [class*="col-"] {
    padding: 0;
}

.iconmittext-wrapper {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 24px 20px;
    background: none;
}

.iconmittext-wrapper .image {
    flex: none;
    width: 64px;
    height: auto;
    padding: 0;
    display: flex;
    justify-content: flex-start;
}

.iconmittext-wrapper .image img {
    height: 52px;
    width: auto;
    max-width: 64px;
}

.iconmittext-wrapper .content {
    position: static;
    transform: none;
    margin: 0;
    padding: 0;
    min-height: 0;
    background: none;
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.3;
}

@media (max-width: 575.98px) {
    .row:has(.iconmittext-wrapper) > [class*="col-"] + [class*="col-"] {
        border-top: 1px solid #dde2e8;
    }
}

@media (min-width: 576px) {
    .row:has(.iconmittext-wrapper) > [class*="col-"] + [class*="col-"] {
        border-left: 1px solid #dde2e8;
    }

    .iconmittext-wrapper {
        padding: 28px 24px;
    }
}

/* Bewerben: links der Text, rechts die fünf Wege als Liste */

.bg_hellgrau:has(.bewerben-wrapper) {
    padding: 64px 0 72px;
}

.corekit_container:has(.bewerben-wrapper) > .row {
    margin-left: 0;
    margin-right: 0;
}

.corekit_container:has(.bewerben-wrapper) > .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
}

@media (min-width: 992px) {
    .corekit_container:has(.bewerben-wrapper) {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        column-gap: 72px;
        align-items: start;
    }

    .corekit_container:has(.bewerben-wrapper) > .frame {
        grid-column: 1;
        grid-row: 1 / span 2;
        position: sticky;
        top: 120px;
    }

    .corekit_container:has(.bewerben-wrapper) > .row {
        grid-column: 2;
    }
}

#c253 p {
    max-width: 52ch;
}

#c253 p:last-child {
    margin-top: 28px;
    padding: 2px 0 2px 20px;
    border-left: 4px solid #003c90;
    color: #1b2430;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0;
}

#c253 p:last-child strong {
    font-weight: 500;
}

.bewerben-wrapper {
    margin: 0 0 -1px;
}

.bewerben-wrapper .link {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 20px;
    align-items: start;
    width: 100%;
    padding: 22px 26px;
    background: #fff;
    border: 1px solid #dde2e8;
    color: #1b2430;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s ease;
}

.bewerben-wrapper .link:hover,
.bewerben-wrapper .link:focus-visible {
    position: relative;
    z-index: 1;
    border-color: #003c90;
}

.bewerben-wrapper .img {
    grid-row: 1 / span 2;
    margin: 3px 0 0;
}

.bewerben-wrapper .img img {
    width: auto;
    height: 28px;
    max-width: 40px;
}

.bewerben-wrapper h3 {
    margin: 0 0 6px;
    font-size: 1.0625rem;
    letter-spacing: .04em;
}

.bewerben-wrapper .content p {
    max-width: none;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #1b2430;
}

.bewerben-wrapper strong {
    margin-top: 6px;
    font-size: 1.125rem;
}

/* ===== Textseiten: Überschrift links, Text rechts (Unternehmen, Impressum, Datenschutz) ===== */

@media (min-width: 992px) {
    #c233,
    #c11,
    #c14 {
        display: grid;
        grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
        column-gap: 72px;
        align-items: start;
    }

    #c233 > header,
    #c11 > header,
    #c14 > header {
        grid-column: 1;
        grid-row: 1 / span 400;
        position: sticky;
        top: 120px;
    }

    #c233 > :not(header),
    #c11 > :not(header),
    #c14 > :not(header) {
        grid-column: 2;
        max-width: 70ch;
    }

    #c233 > header h2,
    #c11 > header h1,
    #c14 > header h1 {
        margin-bottom: 0;
        line-height: 1.15;
    }
}

/* Philosophie: Zwischenüberschriften etwas ruhiger als die Abschnittsüberschrift */

#c233 > h2 {
    margin: 40px 0 12px;
    font-size: 1.375rem;
    font-weight: 500;
    letter-spacing: .02em;
}

#c233 > h2:first-of-type {
    margin-top: 0;
}

/* Impressum: Absätze mit klarem Abstand, fette Zeile als Beschriftung */

#c11 > p {
    margin: 0 0 22px;
}

#c11 > p strong {
    display: inline-block;
    margin-bottom: 2px;
    font-weight: 700;
}

/* Datenschutz: Gliederung sichtbar machen */

#c14 > h3 {
    margin: 48px 0 8px;
    padding-top: 22px;
    border-top: 1px solid #dde2e8;
    font-size: 1.375rem;
    line-height: 1.3;
    letter-spacing: .5px;
}

#c14 > h3:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

#c14 > h4 {
    margin: 28px 0 6px;
    font-size: 1.0625rem;
    font-weight: 500;
    text-transform: none;
}

#c14 > ol,
#c14 > ul {
    padding-left: 1.25rem;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: #1b2430;
}

/* Unternehmen, Leitfaden: Behauptung links, Begründung rechts */

#c308 .ce-bodytext {
    display: block;
}

#c308 .ce-bodytext > p:first-child {
    display: none;
}

@media (min-width: 992px) {
    #c308 .ce-bodytext {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        column-gap: 72px;
        align-items: start;
    }

    #c308 .ce-bodytext > h3 {
        grid-column: 1;
        margin: 0;
        padding: 26px 0;
        border-top: 1px solid #dde2e8;
        font-size: 1.375rem;
        line-height: 1.3;
        letter-spacing: .5px;
    }

    #c308 .ce-bodytext > p {
        grid-column: 2;
        max-width: none;
        margin: 0;
        padding: 26px 0;
        border-top: 1px solid #dde2e8;
    }
}

@media (max-width: 991.98px) {
    #c308 .ce-bodytext > h3 {
        margin: 0;
        padding-top: 22px;
        border-top: 1px solid #dde2e8;
        font-size: 1.25rem;
    }

    #c308 .ce-bodytext > p {
        margin: 6px 0 22px;
    }
}

/* Lange Adressen in Fließtext umbrechen, damit das Handy nicht seitlich scrollt */

.frame-type-text p,
.frame-type-text li,
.frame-type-text a {
    overflow-wrap: break-word;
}

@media (max-width: 575.98px) {
    #c245 p:first-of-type {
        font-size: 1.1875rem;
    }
}

/* ===== Häuser, Räume, Video, Team: Bildunterschriften immer sichtbar, Filter auf der Seite ===== */

.imgbox-wrapper .imgbox-item[hidden] {
    display: none !important;
}

/* Kopfzeilen-Filter ersetzt die Leiste auf der Seite */

.hat-bildfilter .filter-menu,
.hat-bildfilter .mobilfilter {
    display: none !important;
}

/* Kacheln Häuser und Räume: Bild oben, darunter Straße, Daten und Fotozahl */

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[data-filters] {
    padding: 10px 8px 22px;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[data-filters] .imgbox-link {
    height: auto;
    overflow: hidden;
    background: none;
    color: #1b2430;
    text-align: left;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[data-filters] .imgbox-link:after {
    bottom: auto;
    height: auto;
    aspect-ratio: 7 / 5;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[data-filters] .imgbox-link:hover:after {
    opacity: .16;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[data-filters] .imgbox-link .image {
    height: auto;
    min-height: 0;
    max-width: none;
    aspect-ratio: 7 / 5;
    background-color: #dfe5ec;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[data-filters] .imgbox-link:hover .image {
    transform: scale(1.04);
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[data-filters] .imgbox-link .content {
    position: static;
    padding: 12px 0 0;
    color: #1b2430;
    line-height: 1.35;
    opacity: 1 !important;
    transform: none;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[data-filters] .imgbox-link:hover .content {
    transform: none;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[data-filters] .imgbox-link .content .title {
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.3;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[data-filters] .imgbox-link .content .desc {
    margin-top: 3px;
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.4;
    color: #5b6470;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[data-filters] .imgbox-link .content .link {
    display: inline-block;
    margin: 8px 0 0;
    padding: 0;
    border: 0;
    background: none;
    color: #003c90;
    font-size: .8125rem;
    font-weight: 500;
    letter-spacing: .2px;
    text-decoration: none;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[data-filters] .imgbox-link .content .link:after {
    content: " \203A";
    display: inline;
    position: static;
    width: auto;
    height: auto;
    visibility: visible;
    background: none;
    transition: none;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[data-filters] .imgbox-link .content .link:before {
    display: none;
}

/* Filter auf der Seite: reine Textauswahl in einer Zeile, wie die Leiste im Kopf, nur lesbarer */

.bildfilter {
    max-width: 1140px;
    margin: 0 auto;
    padding: 4px 20px 22px;
}

.bildfilter-umschalter {
    display: none;
    width: 100%;
    padding: 12px 0;
    border: 0;
    border-top: 1px solid #dde2e8;
    border-bottom: 1px solid #dde2e8;
    background: none;
    color: #1b2430;
    font: inherit;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
}

.bildfilter-umschalter {
    position: relative;
}

.bildfilter-umschalter:after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 2px;
    transform: translateY(-52%);
    color: #003c90;
    font-size: 1.5rem;
    line-height: 1;
}

.bildfilter.is-offen .bildfilter-umschalter:after {
    content: "\2013";
}

.bildfilter-aktiv {
    color: #003c90;
}

.bildfilter-aktiv[hidden] {
    display: none;
}

.bildfilter-zeilen {
    display: flex;
    flex-wrap: wrap;
    padding: 8px 0;
    border-top: 1px solid #dde2e8;
    border-bottom: 1px solid #dde2e8;
}

.bildfilter-zeile {
    display: block;
    margin: 0;
    padding: 0 22px 0 0;
}

.bildfilter-zeile + .bildfilter-zeile {
    padding-left: 22px;
    border-left: 1px solid #dde2e8;
}

.bildfilter-name {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.bildfilter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
}

.bildfilter-chip {
    padding: 6px 0;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: #4b5563;
    font: inherit;
    font-size: .9375rem;
    line-height: 1.4;
    cursor: pointer;
}

.bildfilter-chip:hover {
    color: #003c90;
}

.bildfilter-chip.is-aktiv {
    border-bottom-color: #003c90;
    color: #003c90;
    font-weight: 500;
}

.bildfilter-chip:disabled {
    color: #aab2bc;
    cursor: default;
}

.bildfilter-fuss {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 18px;
    padding-top: 10px;
    font-size: .875rem;
    color: #5b6470;
}

.bildfilter-fuss.is-leer {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.bildfilter-zurueck {
    padding: 0;
    border: 0;
    background: none;
    color: #003c90;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.bildfilter-zurueck[hidden] {
    display: none;
}

@media (min-width: 1500px) {
    .bildfilter {
        max-width: 1320px;
    }
}

@media (max-width: 767.98px) {
    .bildfilter {
        padding-bottom: 14px;
    }

    .bildfilter-umschalter {
        display: block;
    }

    .bildfilter-zeilen {
        display: none;
        padding: 0 0 6px;
        border-top: 0;
    }

    .bildfilter.is-offen .bildfilter-zeilen {
        display: block;
    }

    .bildfilter-zeile,
    .bildfilter-zeile + .bildfilter-zeile {
        padding: 12px 0 0;
        border-left: 0;
    }

    .bildfilter-name {
        position: static;
        display: block;
        width: auto;
        height: auto;
        margin: 0 0 2px;
        overflow: visible;
        clip: auto;
        font-size: .8125rem;
        color: #5b6470;
    }

    .bildfilter-chips {
        gap: 0 18px;
    }
}

/* Video: 16:9, Titel unter dem Bild, erst das Bauvorhaben, dann der Bauabschnitt */

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item:has(.content.video) {
    padding: 10px 8px 22px;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item:has(.content.video) .imgbox-link {
    height: auto;
    overflow: hidden;
    background: none;
    color: #1b2430;
    text-align: left;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item:has(.content.video) .imgbox-link:after {
    bottom: auto;
    height: auto;
    aspect-ratio: 16 / 9;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item:has(.content.video) .imgbox-link:hover:after {
    opacity: .16;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item:has(.content.video) .imgbox-link .image {
    height: auto;
    min-height: 0;
    max-width: none;
    aspect-ratio: 16 / 9;
    background-color: #dfe5ec;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item:has(.content.video) .imgbox-link .play {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    height: auto;
    margin: 0;
    aspect-ratio: 16 / 9;
    border-radius: 0;
    background: none;
    transform: none;
    pointer-events: none;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item:has(.content.video) .imgbox-link .play i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0 0 0 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .88);
    color: #003c90;
    font-size: 1.5rem;
    transition: background-color .2s ease;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item:has(.content.video) .imgbox-link:hover .play i {
    background: #fff;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item:has(.content.video) .imgbox-link .content.video {
    position: static;
    padding: 12px 0 0;
    color: #1b2430;
    line-height: 1.3;
    opacity: 1 !important;
    transform: none;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item:has(.content.video) .imgbox-link .content.video .title {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.3;
}

.titel-reihe {
    display: block;
    margin-bottom: 2px;
    font-size: .8125rem;
    font-weight: 400;
    color: #5b6470;
}

.titel-zeile {
    display: block;
}

/* Team: Foto oben, Name und Aufgabe immer darunter, die Leitung größer */

.team-kopf {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px 14px;
    font-size: 26px;
    font-weight: 500;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

@media (min-width: 992px) {
    .team-kopf {
        font-size: 36px;
    }
}

@media (min-width: 1500px) {
    .team-kopf {
        max-width: 1320px;
    }
}

body #team .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 10px 8px 22px;
}

@media (min-width: 576px) {
    body #team .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}

@media (min-width: 992px) {
    body #team .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item {
        flex: 0 0 25%;
        max-width: 25%;
    }

    body #team .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item.random {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

@media (min-width: 1400px) {
    body #team .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item.random {
        flex: 0 0 16.6667%;
        max-width: 16.6667%;
    }
}

body #team .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item .imgbox-link {
    height: auto;
    overflow: visible;
    background: none;
    color: #1b2430;
}

body #team .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item .imgbox-link:after {
    display: none;
}

body #team .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item .imgbox-link .image {
    height: auto;
    min-height: 0;
    max-width: none;
    aspect-ratio: 4 / 5;
    background-position: center 22%;
    background-color: #e7ebf0;
    transform: none;
}

body #team .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item .imgbox-link:hover .image {
    transform: none;
}

body #team .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item .imgbox-link .content {
    position: static;
    padding: 12px 0 0;
    color: #1b2430;
    line-height: 1.3;
    opacity: 1 !important;
    transform: none;
}

body #team .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item .imgbox-link:hover .content {
    transform: none;
}

body #team .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item .imgbox-link .content .title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.25;
    text-transform: none;
}

body #team .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item:not(.random) .imgbox-link .content .title {
    font-size: 1.25rem;
}

body #team .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item .imgbox-link .content .desc {
    margin-top: 4px;
    font-size: .875rem;
    line-height: 1.4;
    color: #5b6470;
}

body #team .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item .imgbox-link .content .desc p {
    margin: 0 0 3px;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

body #team .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item .imgbox-link .content .desc a {
    color: #003c90;
    overflow-wrap: anywhere;
}

/* Unterschriften unter den Kacheln: nicht unterstrichen, nur der Titel beim Überfahren */

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[data-filters] .imgbox-link,
body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[data-filters] .imgbox-link:hover {
    text-decoration: none;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item:has(.content.video) .imgbox-link,
body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item:has(.content.video) .imgbox-link:hover {
    text-decoration: none;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[data-filters] .imgbox-link .content .link {
    text-transform: none;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[data-filters] .imgbox-link:hover .content .title {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item:has(.content.video) .imgbox-link:hover .content .title {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

/* Tastatur: dieselbe Abdunklung und derselbe Zoom wie beim Überfahren, auch bei :focus (Video-Knopf nach dem Schließen des Fensters) */

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[data-filters] .imgbox-link:focus:after {
    opacity: .16;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[data-filters] .imgbox-link:focus .image {
    transform: scale(1.04);
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item:has(.content.video) .imgbox-link:focus:after {
    opacity: .16;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item:has(.content.video) .imgbox-link:focus .image {
    transform: none;
}

/* Handy: der Platzhalter unter der Kopfzeile behält sonst die Höhe für den ausgeblendeten Filterknopf */

@media (max-width: 991.98px) {
    .hat-bildfilter .headerspacer.mhm.withfilter {
        height: 55px;
    }
}

/* Ohne aspect-ratio (sehr alte Browser) bekommen die Teamfotos eine feste Mindesthöhe */

@supports not (aspect-ratio: 1 / 1) {
    body #team .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item .imgbox-link .image {
        min-height: 300px;
    }

    body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[itemscope] .imgbox-link .image,
    body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[data-filters] .imgbox-link .image {
        min-height: 250px;
    }
}

/* Kontrast: dunklere Schrift und kräftigere Linien bei Filter und Bildunterschriften */

.bildfilter-zeilen {
    padding: 6px 16px;
    border-color: #b9c1cb;
    background: #f3f5f8;
}

.bildfilter-zeile + .bildfilter-zeile {
    border-left-color: #b9c1cb;
}

.bildfilter-chip {
    padding: 6px 0 3px;
    border-bottom-width: 3px;
    color: #1b2430;
    font-size: 1rem;
    font-weight: 400;
}

.bildfilter-chip:hover {
    border-bottom-color: #9db0cf;
    color: #003c90;
}

.bildfilter-chip.is-aktiv {
    border-bottom-color: #003c90;
    color: #003c90;
    font-weight: 500;
}

.bildfilter-chip:disabled,
.bildfilter-chip:disabled:hover {
    border-bottom-color: transparent;
    color: #8a94a0;
}

.bildfilter-umschalter {
    border-color: #b9c1cb;
    font-weight: 500;
}

.bildfilter-fuss {
    color: #374151;
    font-size: .9375rem;
}

@media (max-width: 767.98px) {
    .bildfilter-zeilen {
        padding: 0 0 6px;
        border-top: 0;
        background: none;
    }

    .bildfilter-name {
        font-size: .875rem;
        font-weight: 500;
        color: #4b5563;
    }
}

.seitenkopf-zeile {
    color: #374151;
    font-weight: 400;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[data-filters] .imgbox-link .content .desc,
body #team .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item .imgbox-link .content .desc {
    color: #4b5563;
    font-weight: 400;
}

.titel-reihe {
    color: #4b5563;
    font-weight: 400;
}

/* Filter aufgeräumt: zwei feste Reihen (Haustyp und Wohnfläche, Dach und Fassade), Spalten untereinander ausgerichtet */

.bildfilter-zeilen {
    display: block;
    padding: 2px 18px;
}

.bildfilter-reihe {
    display: grid;
    grid-template-columns: 26rem minmax(0, 1fr);
    padding: 9px 0;
}

.bildfilter-reihe + .bildfilter-reihe {
    border-top: 1px solid #d5dbe3;
}

.bildfilter-reihe.ist-einzeln {
    display: block;
}

.bildfilter-zeile,
.bildfilter-zeile + .bildfilter-zeile {
    padding: 0 22px 0 0;
    border-left: 0;
}

.bildfilter-reihe > .bildfilter-zeile + .bildfilter-zeile {
    padding: 0 0 0 26px;
    border-left: 1px solid #b9c1cb;
}

@media (max-width: 991.98px) {
    .bildfilter-reihe {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 6px;
    }

    .bildfilter-reihe > .bildfilter-zeile + .bildfilter-zeile {
        padding: 6px 0 0;
        border-left: 0;
    }
}

@media (max-width: 767.98px) {
    .bildfilter-zeilen {
        padding: 0 0 6px;
    }

    .bildfilter-reihe,
    .bildfilter-reihe + .bildfilter-reihe {
        display: block;
        padding: 0;
        border-top: 0;
    }

    .bildfilter-zeile,
    .bildfilter-zeile + .bildfilter-zeile,
    .bildfilter-reihe > .bildfilter-zeile + .bildfilter-zeile {
        padding: 12px 0 0;
        border-left: 0;
    }
}

/* Der alte Filter in der Kopfzeile fällt weg, ohne auf das Skript zu warten (sonst blitzt er beim Laden kurz auf).
   Die Sprungmarken im Kopf von Unternehmen haben kein data-filter und bleiben. */

.filter-menu:has(.filter-item[data-filter]),
.mobilfilter:has(.filter-item[data-filter]) {
    display: none !important;
}

@media (max-width: 991.98px) {
    body:has(.mobilfilter .filter-item[data-filter]) .headerspacer.mhm.withfilter {
        height: 55px;
    }
}

/* ===== Aktuelles: Datum, Titel und Anreißer immer unter dem Bild ===== */

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[itemscope] {
    padding: 10px 8px 24px;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[itemscope] .imgbox-link {
    height: auto;
    overflow: hidden;
    background: none;
    color: #1b2430;
    text-align: left;
    text-decoration: none;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[itemscope] .imgbox-link:hover,
body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[itemscope] .imgbox-link:focus {
    text-decoration: none;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[itemscope] .imgbox-link:after {
    bottom: auto;
    height: auto;
    aspect-ratio: 7 / 5;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[itemscope] .imgbox-link:hover:after,
body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[itemscope] .imgbox-link:focus:after {
    opacity: .16;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[itemscope] .imgbox-link .image {
    height: auto;
    min-height: 0;
    max-width: none;
    aspect-ratio: 7 / 5;
    background-color: #dfe5ec;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[itemscope] .imgbox-link:hover .image,
body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[itemscope] .imgbox-link:focus .image {
    transform: scale(1.04);
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[itemscope] .imgbox-link .content {
    position: static;
    display: flex;
    flex-direction: column;
    padding: 13px 0 0;
    color: #1b2430;
    line-height: 1.35;
    opacity: 1 !important;
    transform: none;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[itemscope] .imgbox-link:hover .content {
    transform: none;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[itemscope] .imgbox-link .content .desc {
    display: contents;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[itemscope] .imgbox-link .content .news-list-date {
    order: -1;
    margin: 0 0 4px;
    font-size: .875rem;
    font-weight: 400;
    color: #4b5563;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[itemscope] .imgbox-link .content .headline {
    font-size: 1.1875rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.3;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[itemscope] .imgbox-link:hover .content .headline {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[itemscope] .imgbox-link .content [itemprop="description"] {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin-top: 6px;
    font-size: .9375rem;
    font-weight: 400;
    line-height: 1.45;
    color: #374151;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[itemscope] .imgbox-link .content [itemprop="description"] p {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[itemscope] .imgbox-link .content .link {
    align-self: flex-start;
    margin: 9px 0 0;
    padding: 0;
    border: 0;
    background: none;
    color: #003c90;
    font-size: .875rem;
    font-weight: 500;
    letter-spacing: .2px;
    text-transform: none;
    text-decoration: none;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[itemscope] .imgbox-link .content .link:after {
    content: " \203A";
    display: inline;
    position: static;
    width: auto;
    height: auto;
    visibility: visible;
    background: none;
    transition: none;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[itemscope] .imgbox-link .content .link:before {
    display: none;
}

/* Beitrag ohne Bild: eine helle Fläche in Bildhöhe mit Datum, Titel und Anreißer */

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[itemscope] .imgbox-link.imgbox-textonly {
    display: block;
    aspect-ratio: 7 / 5;
    padding: 22px 22px 18px;
    background: #eef2f7;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[itemscope] .imgbox-link.imgbox-textonly:after {
    display: none;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[itemscope] .imgbox-link.imgbox-textonly .content {
    height: 100%;
    padding: 0;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[itemscope] .imgbox-link.imgbox-textonly .content .link {
    margin-top: auto;
}

/* Umschalter Alle, Angebote, News: dieselbe Textleiste wie bei Häuser und Räume, aber mit Links */

a.bildfilter-chip {
    display: inline-block;
    text-decoration: none;
}

a.bildfilter-chip:hover {
    text-decoration: none;
}

.bildfilter-seiten .bildfilter-zeilen {
    display: block;
}

@media (max-width: 767.98px) {
    .bildfilter-seiten .bildfilter-zeilen {
        padding: 2px 14px;
        border-top: 1px solid #b9c1cb;
        background: #f3f5f8;
    }

    .bildfilter-seiten .bildfilter-zeile,
    .bildfilter-seiten .bildfilter-zeile + .bildfilter-zeile {
        padding: 8px 0;
    }
}

/* Handy, Aktuelles (Listenseiten): der Ausklapp-Knopf im Kopf mit News und Angebote ist doppelt, die Leiste auf der Seite ersetzt ihn. Auf den Detailseiten bleibt er. */

body:not(:has(.news-single)) .mobilfilter:has(a[href="/neues/news"]) {
    display: none !important;
}

@media (max-width: 991.98px) {
    body:not(:has(.news-single)):has(.mobilfilter a[href="/neues/news"]) .headerspacer.mhm.withfilter {
        height: 55px;
    }
}

/* Häuser und Räume: nur das erste Bild einer Kachel ist sichtbar, die übrigen stehen nur für die Lightbox im Dokument
   (der Bildwechsler pro Kachel entfällt, siehe custom.js) */

.imgbox-slider .swiper-wrapper > .swiper-slide + .swiper-slide {
    display: none;
}

/* ===== Schriften: Symbolschriften nur mit den benutzten Zeichen, Text sofort sichtbar =====
   Die Icon-Schrift lud als TTF mit 1 MB, weil der Browser die TTF-Quelle vor der kleineren wählt.
   Die Auswahl-Dateien enthalten nur die Zeichen, die die Seite wirklich zeigt (Telefon, Mail, Play, Pfeile, Netzwerk-Symbole).
   Die vollständigen Schriften bleiben dahinter als Reserve und laden nur, wenn eine Seite ein anderes Zeichen braucht. */

@font-face {
    font-family: icofont;
    src: url(/_assets/vite/assets/icofont-DHjrkYp0.woff?v=1.0.0-beta) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: icofont;
    src: url(../Fonts/icofont-auswahl.woff) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: block;
    unicode-range: U+EB54-EB55, U+ED52, U+EDEE, U+EE23, U+EF6C, U+EFDD, U+F05F, U+F09C;
}

@font-face {
    font-family: icomoon;
    src: url(/_assets/vite/assets/icomoon-CzXXuhya.woff?uhyiy3) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: icomoon;
    src: url(../Fonts/icomoon-auswahl.woff) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: block;
    unicode-range: U+E900, U+EA91, U+EA93, U+EA9E, U+EACA, U+EAD5;
}

@font-face {
    font-family: "Font Awesome 5 Free";
    src: url(/_assets/vite/assets/fa-solid-900-C19_HPqg.woff2) format("woff2");
    font-weight: 900;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "Font Awesome 5 Free";
    src: url(../Fonts/fa-solid-auswahl.woff) format("woff");
    font-weight: 900;
    font-style: normal;
    font-display: block;
    unicode-range: U+F29A;
}

@font-face {
    font-family: Rubik;
    src: url(/_assets/vite/assets/Rubik-Light-Cy8nBr-Q.woff2) format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Rubik;
    src: url(/_assets/vite/assets/Rubik-Regular-Cq7PW1Fn.woff2) format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Rubik;
    src: url(/_assets/vite/assets/Rubik-Medium-hPbJ9L04.woff2) format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Rubik;
    src: url(/_assets/vite/assets/Rubik-Bold-CXY2P_s7.woff2) format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Teamfotos sind jetzt echte Bilder (lazy), kein Hintergrundbild mehr: Ausschnitt wie vorher */

body #team .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item .imgbox-link img.image {
    display: block;
    width: 100%;
    object-fit: cover;
    object-position: center 22%;
}


/* ===== Kontaktformular in Schritten (Anliegen, passende Frage, Kontakt) ===== */

.kontakt-schritte-aktiv > .row {
    display: none;
}

.kontakt-schritte {
    position: relative;
    max-width: 1040px;
    margin: 0 auto;
    padding: 56px 44px 46px;
    background: #f3f6fa;
    border: 1px solid #dbe3ee;
    text-align: center;
}

.kontakt-schritte::after {
    content: "";
    display: table;
    clear: both;
}

.kontakt-schritt-nr {
    margin: 0 0 10px;
    font-size: .875rem;
    color: #4b5563;
}

.kontakt-balken {
    max-width: 220px;
    height: 4px;
    margin: 0 auto 30px;
    background: #d5dfec;
}

.kontakt-balken-fuellung {
    display: block;
    height: 100%;
    background: #003c90;
    transition: width .3s ease;
}

.kontakt-frage {
    margin: 0 0 26px;
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
    color: #1b2430;
}

.kontakt-frage:focus {
    outline: none;
}

.kontakt-auswahl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 20px;
}

.kontakt-auswahl-kurz {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.kontakt-auswahl-kurz .kontakt-wahl {
    flex: 1 1 170px;
    max-width: 260px;
}

.kontakt-wahl {
    display: block;
    padding: 18px 20px;
    border: 1px solid #c3cbd5;
    background: #fff;
    color: #1b2430;
    font: inherit;
    font-size: 1.0625rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.3;
    text-align: center;
    text-transform: none;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.kontakt-wahl:hover {
    border-color: #003c90;
}

.kontakt-wahl:focus-visible,
.kontakt-weg-kachel:has(input:focus-visible) {
    outline: 2px solid #003c90;
    outline-offset: 2px;
}

.kontakt-wahl.ist-gewaehlt {
    border-color: #003c90;
    box-shadow: inset 0 0 0 1px #003c90;
    background: #eaf0fa;
}

.kontakt-wahl-bild.ist-gewaehlt {
    outline: 2px solid #003c90;
    outline-offset: -2px;
}

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

@supports not selector(:has(*)) {
    .kontakt-weg-kachel.ist-gewaehlt {
        border-color: #003c90;
        box-shadow: inset 0 0 0 1px #003c90;
        background: #eaf0fa;
    }

    .kontakt-weg-kachel.hat-fokus {
        outline: 2px solid #003c90;
        outline-offset: 2px;
    }
}

.kontakt-wahl-bild {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    text-align: left;
}

.kontakt-wahl-foto {
    position: relative;
    flex: none;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #d9e0ea;
}

.kontakt-wahl-foto img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.kontakt-wahl-bild:hover .kontakt-wahl-foto img {
    transform: scale(1.03);
}

.kontakt-visu {
    position: absolute;
    left: 0;
    top: 0;
    padding: 1px 6px 2px;
    background: rgba(27, 36, 48, .7);
    color: #fff;
    font-size: .6875rem;
    line-height: 1.4;
}

.kontakt-wahl-inhalt {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    gap: 4px;
    padding: 14px 16px 16px;
}

.kontakt-wahl-titel {
    display: block;
    font-weight: 500;
    overflow-wrap: break-word;
    hyphens: auto;
}

.kontakt-wahl-text {
    display: block;
    font-size: .875rem;
    color: #4b5563;
}

.kontakt-zurueck {
    position: absolute;
    top: 20px;
    left: 24px;
    margin: 0;
    padding: 6px 4px;
    border: 0;
    background: none;
    color: #4b5563;
    font: inherit;
    font-size: .9375rem;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    cursor: pointer;
}

.kontakt-zurueck::before {
    content: "\2039";
    margin-right: 7px;
    font-size: 1.3em;
    line-height: 1;
}

.kontakt-zurueck:hover {
    color: #003c90;
}

.kontakt-zurueck:focus-visible {
    outline: 2px solid #003c90;
    outline-offset: 2px;
}

.kontakt-seite-kontakt {
    max-width: 580px;
    margin: 0 auto;
    text-align: left;
}

.kontakt-seite-kontakt .kontakt-frage,
.kontakt-seite-kontakt .kontakt-zusammenfassung {
    text-align: center;
}

.kontakt-frage {
    margin-bottom: 16px;
}

.kontakt-zusammenfassung {
    margin: -6px 0 22px;
    font-size: .9375rem;
    color: #4b5563;
}

.kontakt-intro3 {
    margin: -6px 0 22px;
    font-size: .9375rem;
    line-height: 1.5;
    color: #4b5563;
    text-align: center;
}

.kontakt-intro3[hidden],
.kontakt-zusammenfassung[hidden] {
    display: none;
}

/* Bewerbung und Sonstiges: die Nachricht steht oben, danach Name und Kontaktweg (nur optisch, die Reihenfolge der Felder im Formular bleibt) */
.kontakt-seite-kontakt.kontakt-text-zuerst:not([hidden]) {
    display: flex;
    flex-direction: column;
}

.kontakt-text-zuerst > .kontakt-frage,
.kontakt-text-zuerst > .kontakt-intro3,
.kontakt-text-zuerst > .kontakt-zusammenfassung {
    order: -3;
}

.kontakt-text-zuerst > .kontakt-feld-text {
    order: -2;
}

.kontakt-weg {
    min-width: 0;
    margin: 4px 0 14px;
    padding: 0;
    border: 0;
}

.kontakt-weg-frage {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #1b2430;
}

.kontakt-weg-wahl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.kontakt-weg-kachel {
    position: relative;
    display: block;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #c3cbd5;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.kontakt-weg-kachel:hover {
    border-color: #003c90;
}

.kontakt-weg-kachel input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.kontakt-weg-kachel:has(input:checked) {
    border-color: #003c90;
    box-shadow: inset 0 0 0 1px #003c90;
    background: #eaf0fa;
}

.kontakt-weg-kachel .kontakt-wahl-titel {
    font-size: 1.0625rem;
}

.kontakt-datenschutz {
    margin: 10px 0 6px;
    font-size: .875rem;
}

.kontakt-hinweis {
    margin: 0 0 14px;
    font-size: .875rem;
    color: #4b5563;
}

.kontakt-seite-kontakt .powermail_fieldwrap {
    margin-bottom: 8px;
}

.kontakt-seite-kontakt .powermail_fieldwrap_type_submit {
    margin: 0;
}

.kontakt-seite-kontakt .powermail_fieldwrap_type_submit .btn,
.kontakt-seite-kontakt .powermail_fieldwrap_type_submit button {
    width: 100%;
}

.kontakt-seite-kontakt button[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

form.powermail_form_2 > nav.powermail_message_error {
    max-width: 1040px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.kontakt-seite-neu {
    animation: kontakt-ein .28s ease-out both;
}

@keyframes kontakt-ein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kontakt-seite-neu {
        animation: none;
    }

    .kontakt-balken-fuellung,
    .kontakt-wahl-foto img {
        transition: none;
    }

    .kontakt-wahl-bild:hover .kontakt-wahl-foto img {
        transform: none;
    }
}

@media (max-width: 767.98px) {
    .kontakt-schritte {
        padding: 52px 18px 30px;
    }

    .kontakt-zurueck {
        top: 14px;
        left: 12px;
    }

    .kontakt-frage {
        font-size: 1.4375rem;
    }

    .kontakt-auswahl {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .kontakt-wahl-bild {
        flex-direction: row;
    }

    .kontakt-wahl-foto {
        flex: 0 0 132px;
        aspect-ratio: auto;
    }

    .kontakt-wahl-foto img {
        min-height: 88px;
    }

    .kontakt-wahl-inhalt {
        justify-content: center;
        padding: 12px 14px;
    }

    .kontakt-wahl-bild .kontakt-wahl-titel {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .kontakt-wahl-bild .kontakt-wahl-text {
        display: none;
    }
}

@media (max-width: 479.98px) {
    .kontakt-auswahl-kurz .kontakt-wahl {
        flex-basis: 100%;
    }
}


/* ===== Karte im Fuß der Seite (Bild) ===== */

.osmaps-wrapper .karte-bild {
    position: relative;
    height: 460px;
    overflow: hidden;
    background: #f2f4f7;
}

.karte-bild picture,
.karte-bild picture img {
    display: block;
    width: 100%;
    height: 100%;
}

.karte-bild picture img {
    object-fit: cover;
    object-position: center;
}

.karte-punkt {
    position: absolute;
    top: 50%;
    left: 50%;
    box-sizing: border-box;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #003c90;
    box-shadow: 0 0 0 1px rgba(27, 36, 48, .35);
}

.karte-schild {
    position: absolute;
    bottom: calc(50% + 16px);
    left: 50%;
    padding: 8px 10px;
    border: 1px solid #c3cbd5;
    background: #fff;
    line-height: 0;
    white-space: nowrap;
    transform: translateX(-50%);
}

.karte-schild::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    border-right: 1px solid #c3cbd5;
    border-bottom: 1px solid #c3cbd5;
    background: #fff;
    transform: rotate(45deg);
}

.karte-schild img {
    display: block;
    width: auto;
    height: 46px;
}

.karte-route {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 9px 16px;
    background: #003c90;
    color: #fff;
    font-size: .9375rem;
    letter-spacing: 0;
    text-decoration: none;
}

.karte-route:hover,
.karte-route:focus-visible {
    background: #002b69;
    color: #fff;
}

.karte-quelle {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 2px 8px;
    background: rgba(255, 255, 255, .85);
    color: #4b5563;
    font-size: .6875rem;
}

.karte-quelle a {
    color: inherit;
    text-decoration: underline;
}

@media (max-width: 767.98px) {
    .osmaps-wrapper .karte-bild {
        height: 360px;
    }

    .karte-schild img {
        height: 38px;
    }
}


/* ===== Kontaktformular: vier Anliegen und die Wege dahinter ===== */

.kontakt-hinweis-mehr {
    margin: -8px 0 18px;
    font-size: .9375rem;
    color: #4b5563;
}

.kontakt-info {
    max-width: 620px;
    margin: 0 auto 26px;
    color: #1b2430;
    font-size: 1.125rem;
    line-height: 1.55;
}

.kontakt-weiter {
    display: block;
    margin: 6px auto 0;
    padding: 14px 32px;
    border: 0;
    background: #003c90;
    color: #fff;
    font: inherit;
    font-size: .9375rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
}

.kontakt-weiter:hover {
    background: #002b69;
}

.kontakt-weiter:focus-visible {
    outline: 2px solid #003c90;
    outline-offset: 2px;
}

.kontakt-weiter[hidden],
.kontakt-info[hidden],
.kontakt-hinweis-mehr[hidden],
.kontakt-auswahl[hidden] {
    display: none;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .kontakt-auswahl-vier {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .kontakt-auswahl-vier {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .kontakt-auswahl-objekte {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ===== Filterleiste Häuser, Räume, Aktuelles: sitzt direkt unter der Kopfzeile, gleiche Schrift und Linien wie dort ===== */

.hf {
    --hf-linie: #dfe3e8;
    position: relative;
}

.hf [hidden] {
    display: none !important;
}

.hf button,
.hf a {
    font-family: inherit;
}

.hf-halter {
    padding-top: 10px;
}

.hf-leiste {
    background: #fff;
    border-bottom: 1px solid var(--hf-linie);
    box-shadow: 0 3px 8px rgba(0, 0, 0, .07);
}

.hf.klebt .hf-leiste {
    position: fixed;
    top: var(--hf-oben, 95px);
    left: 0;
    right: 0;
    z-index: 1020;
}

.hf-kopf {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 30px;
    width: 100%;
    max-width: 1140px;
    min-height: 54px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 1500px) {
    .hf-kopf {
        max-width: 1320px;
    }
}

/* Auswahl je Gruppe: gleiche Schrift wie die Menüpunkte der Kopfzeile */

.hf-gruppen {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 30px;
}

.hf-gruppe {
    position: relative;
}

.hf-name {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: normal;
    text-transform: none;
}

.hf-wahl,
.hf-schalter,
.hf-pille {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: .5px;
    text-transform: uppercase;
    cursor: pointer;
}

.hf-wahl,
.hf-schalter {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 16px 0 14px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: #4b5057;
}

.hf-wahl {
    padding: 14px 0 12px;
}

.hf-wahl:hover,
.hf-gruppe.is-offen .hf-wahl {
    color: #003c90;
}

.hf-gruppe.hat-wert .hf-wahl {
    border-bottom-color: #003c90;
    color: #003c90;
}

.hf-wahl-wert {
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.hf-pfeil {
    width: 7px;
    height: 7px;
    margin-left: 9px;
    margin-top: -3px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .15s ease;
}

.hf-gruppe.is-offen .hf-pfeil {
    margin-top: 3px;
    transform: rotate(-135deg);
}

.hf-schalter {
    display: none;
    color: #003c90;
}

.hf-n {
    margin-left: 6px;
}

.hf-n:before {
    content: "(";
}

.hf-n:after {
    content: ")";
}

.hf-zahl {
    margin: 0 0 0 auto;
    font-size: 14px;
    line-height: 20px;
    color: #4b5563;
}

.hf-aufheben,
.hf-blattaufheben {
    padding: 0;
    border: 0;
    background: none;
    color: #003c90;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

/* aufklappende Auswahl */

.hf-optionen {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: -18px;
    z-index: 3;
    min-width: 270px;
    padding: 6px 0;
    border: 1px solid var(--hf-linie);
    background: #fff;
    box-shadow: rgba(0, 0, 0, .15) 0 8px 18px 0;
}

.hf-gruppe.is-offen .hf-optionen {
    display: block;
}

.hf-pille {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 18px;
    border: 0;
    background: none;
    color: #212529;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
}

.hf-pille:hover {
    background: #eef2f8;
}

.hf-pille-text {
    flex: 1 1 auto;
}

.hf-pille-n {
    flex: 0 0 auto;
    font-size: 13px;
    color: #6b7580;
}

.hf-haken {
    position: relative;
    flex: 0 0 18px;
    box-sizing: border-box;
    width: 18px;
    height: 18px;
    border: 2px solid #8a94a0;
    background: #fff;
}

.hf-pille.is-aktiv .hf-haken {
    border-color: #003c90;
    background: #003c90;
}

.hf-pille.is-aktiv .hf-haken:after {
    content: "";
    position: absolute;
    left: 4px;
    top: 0;
    width: 5px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

.hf-pille.is-aktiv .hf-pille-text {
    color: #003c90;
    font-weight: 500;
}

.hf-pille:disabled,
.hf-pille:disabled:hover {
    background: none;
    color: #a9afb6;
    cursor: default;
}

.hf-pille:disabled .hf-haken {
    border-color: #d5d9de;
}

.hf-pille:disabled .hf-pille-n {
    color: #c3c8ce;
}

.hf button:focus-visible,
.hf a:focus-visible {
    outline: 2px solid #003c90;
    outline-offset: 2px;
}

/* Räume und Aktuelles: nur eine Gruppe, die Punkte stehen gleich in der Leiste */

.hf-einzeln .hf-wahl {
    padding-right: 4px;
    border-bottom-color: transparent;
    color: #5b6470;
    font-size: 12px;
    letter-spacing: .8px;
    cursor: default;
    pointer-events: none;
}

.hf-einzeln .hf-wahl .hf-pfeil,
.hf-einzeln .hf-wahl-wert {
    display: none;
}

.hf-einzeln .hf-gruppe {
    display: flex;
    align-items: center;
    gap: 18px;
}

.hf-einzeln .hf-optionen {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0 22px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
}

.hf-einzeln .hf-pille {
    width: auto;
    padding: 14px 0 12px;
    border-bottom: 2px solid transparent;
    color: #4b5057;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.hf-einzeln .hf-pille:hover {
    border-bottom-color: #b6c4dc;
    background: none;
    color: #003c90;
}

.hf-einzeln .hf-pille.is-aktiv {
    border-bottom-color: #003c90;
    color: #003c90;
}

.hf-einzeln .hf-pille:disabled,
.hf-einzeln .hf-pille:disabled:hover {
    border-bottom-color: transparent;
    color: #a9afb6;
}

.hf-einzeln .hf-haken,
.hf-einzeln .hf-pille-n {
    display: none;
}

/* Umschalter bei Aktuelles: dieselbe Leiste, nur Links */

.hf-seiten {
    margin-top: 0;
}

.hf-seiten .hf-kopf {
    gap: 0 26px;
}

.hf-seiten .hf-pille {
    display: inline-block;
    width: auto;
    padding: 14px 0 12px;
    border-bottom: 2px solid transparent;
    color: #4b5057;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .5px;
    text-decoration: none;
    text-transform: uppercase;
}

.hf-seiten .hf-pille:hover {
    border-bottom-color: #b6c4dc;
    background: none;
    color: #003c90;
}

.hf-seiten .hf-pille.is-aktiv {
    border-bottom-color: #003c90;
    color: #003c90;
}

/* Knopf wie der blaue Knopf im Kontaktformular */

.hf-weiter,
.hf-leer-knopf {
    padding: 14px 28px;
    border: 0;
    background: #003c90;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 19.6px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    cursor: pointer;
}

.hf-weiter:hover,
.hf-leer-knopf:hover {
    background: #002f70;
}

.hf-weiter:disabled {
    background: #9aa5b4;
    cursor: default;
}

.hf-leer {
    box-sizing: border-box;
    max-width: 1140px;
    margin: 0 auto;
    padding: 26px 20px 34px;
}

.hf-leer p {
    margin: 0 0 16px;
    font-size: 1.0625rem;
    color: #1b2430;
}

@media (min-width: 1500px) {
    .hf-leer {
        max-width: 1320px;
    }
}

/* nur Handy: Blatt von unten, dieselben Zeilen mit Häkchen */

.hf-blattkopf,
.hf-blattfuss,
.hf-schleier {
    display: none;
}

@media (max-width: 991.98px) {
    .hf-kopf {
        min-height: 50px;
        gap: 0 16px;
    }

    .hf-schalter {
        display: inline-flex;
    }

    .hf-aufheben {
        display: none;
    }

    .hf-panel {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1045;
        max-height: 86vh;
        overflow-y: auto;
        background: #fff;
        box-shadow: 0 -6px 22px rgba(0, 0, 0, .22);
        transform: translateY(104%);
        visibility: hidden;
        transition: transform .22s ease, visibility 0s linear .22s;
    }

    .hf.is-offen .hf-panel {
        transform: none;
        visibility: visible;
        transition: transform .22s ease;
    }

    .hf-schleier {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1040;
        background: rgba(0, 0, 0, .4);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s ease, visibility 0s linear .2s;
    }

    .hf.is-offen .hf-leiste {
        z-index: 1046;
    }

.hf.is-offen .hf-schleier {
        opacity: 1;
        visibility: visible;
        transition: opacity .2s ease;
    }

    .hf-blattkopf {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 54px;
        padding: 0 20px;
        border-bottom: 1px solid var(--hf-linie);
    }

    .hf-blatttitel {
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 1.3px;
        text-transform: uppercase;
        color: #1b2430;
    }

    .hf-zu {
        padding: 8px 0;
        border: 0;
        background: none;
        color: #003c90;
        font-size: 14px;
        font-weight: 500;
        text-decoration: underline;
        text-underline-offset: 3px;
        cursor: pointer;
    }

    .hf-gruppen {
        display: block;
        padding: 6px 0 4px;
    }

    .hf-gruppe,
    .hf-einzeln .hf-gruppe {
        display: block;
        margin: 0;
        padding: 10px 0 6px;
    }

    .hf-wahl,
    .hf-einzeln .hf-wahl {
        display: block;
        width: 100%;
        padding: 6px 20px 4px;
        border: 0;
        color: #5b6470;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: .8px;
        text-align: left;
        cursor: default;
        pointer-events: none;
    }

    .hf-gruppe.hat-wert .hf-wahl {
        color: #003c90;
    }

    .hf-wahl .hf-pfeil {
        display: none;
    }

    .hf-optionen,
    .hf-einzeln .hf-optionen {
        position: static;
        display: block;
        min-width: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    .hf-pille,
    .hf-einzeln .hf-pille {
        width: 100%;
        min-height: 48px;
        padding: 10px 20px;
        border: 0;
        font-size: 16px;
        font-weight: 400;
        letter-spacing: 0;
        text-transform: none;
        color: #212529;
    }

    .hf-einzeln .hf-pille.is-aktiv,
    .hf-einzeln .hf-pille:hover {
        color: #003c90;
    }

    .hf-einzeln .hf-haken,
    .hf-einzeln .hf-pille-n {
        display: block;
    }

    .hf-einzeln .hf-haken {
        display: block;
    }

    .hf-blattfuss {
        position: sticky;
        bottom: 0;
        display: flex;
        align-items: center;
        gap: 18px;
        padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--hf-linie);
        background: #fff;
    }

    .hf-blattaufheben {
        flex: 0 0 auto;
    }

    .hf-blattaufheben:disabled {
        color: #a9afb6;
        text-decoration: none;
        cursor: default;
    }

    .hf-weiter {
        flex: 1 1 auto;
    }

    .hf-seiten .hf-kopf {
        gap: 0 22px;
    }
}

html.hf-blatt-offen {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .hf-panel,
    .hf-schleier,
    .hf-pfeil {
        transition: none !important;
    }
}

.hf + .frame-space-before-seitenkopf,
.hf-seiten + .frame-space-before-seitenkopf {
    padding-top: 28px;
}

/* Häuser, Räume, Video, Aktuelles: der Titel wiederholte nur den Menüpunkt, er bleibt für Suchmaschinen und Vorlesegeräte im Text, ist aber nicht mehr zu sehen */

.frame-space-before-seitenkopf h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.frame-space-before-seitenkopf {
    padding-top: 38px;
    padding-bottom: 22px;
}

/* ===== Karte im Fuß der Seite: bedienbare Karte über dem Bild ===== */

.karte-bild .karte-live {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0;
    transition: opacity .3s ease;
}

.karte-bild.ist-live .karte-live {
    opacity: 1;
}

.karte-bild.ist-live picture {
    visibility: hidden;
}

.karte-marke {
    position: absolute;
    width: 0;
    height: 0;
}

.karte-live .karte-punkt,
.karte-live .karte-schild {
    pointer-events: none;
}

.karte-route,
.karte-quelle {
    z-index: 3;
}

.karte-live .maplibregl-ctrl-top-right {
    top: 12px;
    right: 12px;
}

.karte-live .maplibregl-ctrl-top-right .maplibregl-ctrl {
    margin: 0;
}

.karte-live .maplibregl-ctrl-group {
    border: 1px solid #c3cbd5;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.karte-live .maplibregl-ctrl-group button {
    width: 40px;
    height: 40px;
    border-radius: 0;
}

.karte-live .maplibregl-ctrl-group button + button {
    border-top: 1px solid #c3cbd5;
}

.karte-live .maplibregl-ctrl-group button:hover {
    background: #eef2f8;
}

.karte-live .maplibregl-ctrl button:focus-visible {
    outline: 2px solid #003c90;
    outline-offset: -2px;
}

.karte-live .maplibregl-cooperative-gesture-screen {
    font-family: inherit;
    font-size: 1rem;
    letter-spacing: 0;
}

.karte-quelle {
    padding: 3px 9px;
    font-size: .75rem;
}

@media (prefers-reduced-motion: reduce) {
    .karte-live {
        transition: none;
    }
}

/* Unternehmen: „Unsere Philosophie“ steht links an der Seite und bleibt beim Lesen stehen, der Text läuft rechts daneben */

@media (min-width: 992px) {
    #philosophie .frame-type-text {
        display: grid;
        grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
        column-gap: 56px;
        align-items: start;
    }

    #philosophie .frame-type-text > header {
        grid-column: 1;
        grid-row: 1 / span 14;
        position: sticky;
        top: 140px;
    }

    #philosophie .frame-type-text > :not(header) {
        grid-column: 2;
    }

    #philosophie .frame-type-text > h2 {
        margin: 40px 0 14px;
        font-size: 26px;
        letter-spacing: 1px;
    }

    #philosophie .frame-type-text > h2:first-of-type {
        margin-top: 0;
    }
}

/* Kopfzeile: Untermenü mit rechtem Rand an der Menüleiste, wenn es sonst abgeschnitten wird */

#header .navbar-nav .filter-menu.ist-rechts {
    left: auto;
    right: 0;
    transform: none;
}

/* Häuser und Räume: die Fotozahl steht rechts neben dem Titel, darunter die Daten (spart eine Zeile, besonders auf dem Handy) */

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[data-filters] .imgbox-link .content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 14px;
    align-items: start;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[data-filters] .imgbox-link .content .title {
    grid-column: 1;
    grid-row: 1;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[data-filters] .imgbox-link .content .link {
    grid-column: 2;
    grid-row: 1;
    margin: 3px 0 0;
    white-space: nowrap;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[data-filters] .imgbox-link .content .desc {
    grid-column: 1 / -1;
    grid-row: 2;
}

/* ===== FAQ: Überschrift links, Fragen rechts, feine Linien, Plus und Minus statt Pfeil ===== */

body .panel-group {
    margin-top: 0;
}

body .panel-group .panel {
    border: 0;
    border-bottom: 1px solid #c9d3df;
    background: none;
    box-shadow: none;
}

body .panel-group .panel:first-child {
    border-top: 1px solid #c9d3df;
}

body .panel-group .panel .panel-heading {
    padding: 0;
    border: 0;
    background: none;
}

body .panel-group .panel .panel-heading h3.panel-title a {
    gap: 28px;
    padding: 22px 0;
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: .3px;
    line-height: 1.35;
    transition: color .15s ease;
}

body .panel-group .panel .panel-heading h3.panel-title a:hover,
body .panel-group .panel .panel-heading h3.panel-title a[aria-expanded="true"] {
    color: #003c90;
}

body .panel-group .panel .panel-heading h3.panel-title a:after {
    flex: 0 0 auto;
    content: "+";
    color: #003c90;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    transform: none;
    transition: none;
}

body .panel-group .panel .panel-heading h3.panel-title a[aria-expanded="true"]:after {
    content: "\2212";
    transform: none;
}

body .panel-group .panel .panel-heading h3.panel-title a:focus-visible {
    outline: 2px solid #003c90;
    outline-offset: 2px;
}

body .panel-group .panel .panel-body {
    max-width: 46rem;
    padding: 0 52px 28px 0;
}

body .panel-group .panel .panel-body p {
    margin: 0 0 .85em;
    line-height: 1.65;
}

body .panel-group .panel .panel-body p:last-child {
    margin-bottom: 0;
}

body .panel-group .panel .panel-body a {
    color: #003c90;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-hinweis {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
    margin-top: 34px;
}

.faq-hinweis p {
    flex: 1 1 22rem;
    margin: 0;
    line-height: 1.55;
}

.faq-hinweis a:not(.linkbutton) {
    color: #003c90;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (min-width: 992px) {
    #faq .col-12 {
        display: grid;
        grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
        grid-template-rows: auto 1fr;
        column-gap: 56px;
        align-items: start;
        padding-top: 80px;
        padding-bottom: 80px;
    }

    #faq .col-12 > div[style*="height"] {
        display: none;
    }

    #faq .col-12 > .frame-type-header {
        grid-column: 1;
        grid-row: 1 / span 2;
        position: sticky;
        top: 140px;
    }

    #faq .col-12 > .panel-group {
        grid-column: 2;
        grid-row: 1;
    }

    #faq .col-12 > .frame-type-html {
        grid-column: 2;
        grid-row: 2;
    }
}

@media (max-width: 991.98px) {
    #faq .col-12 {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    #faq .col-12 > div[style*="height"] {
        display: none;
    }

    #faq .col-12 > .frame-type-header {
        margin-bottom: 28px;
    }
}

@media (max-width: 575.98px) {
    body .panel-group .panel .panel-heading h3.panel-title a {
        font-size: 1.0625rem;
    }

    body .panel-group .panel .panel-body {
        padding-right: 8px;
    }
}

/* ===== Einheitliche Gestaltung: eine Schrift, eine Textgröße, eine Überschriftenreihe, ein Link, ein Knopf, eine Karte ===== */

:root {
    --sp-blau: #003c90;
    --sp-blau-dunkel: #002f70;
    --sp-text: #1b2430;
    --sp-grau: #5b6470;
    --sp-linie: #dfe3e8;
    --sp-flaeche: #f4f8f8;
    --bs-body-font-weight: 400;
    --bs-body-color: #1b2430;
    --bs-body-color-rgb: 27, 36, 48;
}

/* Fließtext überall gleich: 17 px, Regular, gleiche Zeilenhöhe (vorher teils 16 px Light, 15 px und 14 px) */

:where(#p-content-normal) p,
:where(#p-content-normal) li,
:where(#p-content-normal) dd,
:where(#p-content-normal) td,
:where(#p-content-normal) address,
:where(#p-content-normal) blockquote {
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.65;
}

/* Kleintext überall gleich: 14 px in Grau (Hinweise, Zähler, Bildunterschriften, Kartentexte) */

body .kontakt-schritt-nr,
body .kontakt-hinweis,
body .kontakt-datenschutz,
body .kontakt-hinweis-mehr,
body .kontakt-zusammenfassung,
body .kontakt-intro3,
body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[itemscope] .imgbox-link .content [itemprop="description"] p,
body .news .linkbox-wrapper .content p,
body #team .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item .imgbox-link .content .desc,
body #team .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item .imgbox-link .content .desc p {
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--sp-grau);
}

body .kontakt-datenschutz a,
body .kontakt-hinweis a {
    font-size: inherit;
}

/* Überschriften: Seiten- und Abschnittstitel (h1, h2) gleich, Zwischentitel (h3) gleich, kleine Titel (h4) gleich */

:where(#p-content-normal) h1,
:where(#p-content-normal) h2 {
    font-size: 2.25rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

:where(#p-content-normal) h3 {
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: .5px;
}

:where(#p-content-normal) h4 {
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: .3px;
}

@media (max-width: 575.98px) {
    :where(#p-content-normal) h1,
    :where(#p-content-normal) h2 {
        font-size: 1.625rem;
    }

    :where(#p-content-normal) h3 {
        font-size: 1.25rem;
    }
}

body #philosophie .frame-type-text > h2,
body .corekit_section .frame-type-text h3,
body .corekit_section .ce-bodytext h3,
body .frame-type-text > h3 {
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: .5px;
    text-transform: none;
}

body .corekit_section .frame-type-text h4,
body .corekit_section .ce-bodytext h4,
body .frame-type-text > h4 {
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: .3px;
}

body .kontakt-seite .kontakt-frage {
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: .5px;
}

.kreis-text h3 {
    font-size: 1.375rem;
}

/* Karten überall gleich: Titel 17 px mittel in Dunkel, darunter Kleintext, darunter „Mehr“ in Blau (Häuser, Räume, Referenzen, Aktuelles, Team) */

body .projekt .projekt-titel,
body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[itemscope] .imgbox-link .content .headline,
body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item[data-filters] .imgbox-link .content .title {
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0;
    color: var(--sp-text);
}

/* Links im Text überall gleich: Blau, unterstrichen, so groß wie der Text drumherum */

:where(#p-content-normal) p a,
:where(#p-content-normal) li a,
:where(#p-content-normal) dd a,
:where(#p-content-normal) td a {
    color: var(--sp-blau);
    font-size: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

:where(#p-content-normal) p a:hover,
:where(#p-content-normal) li a:hover,
:where(#p-content-normal) dd a:hover,
:where(#p-content-normal) td a:hover {
    color: var(--sp-blau-dunkel);
}

/* Knöpfe überall gleich: wie der Knopf im Kontaktformular */

body .kontakt-weiter,
body .hf-weiter,
body .hf-leer-knopf {
    padding: 14px 38px;
    font-size: .875rem;
    font-weight: 700;
    line-height: 19.6px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

/* Hellgraue Fläche und Linien überall gleich */

body .corekit_section.bg_hellblau {
    background-color: var(--sp-flaeche);
}

/* Einleitungszeile unter dem Seitentitel: eine Stufe größer als der Fließtext */

body .seitenkopf-zeile {
    max-width: 46rem;
    font-size: 1.1875rem;
    line-height: 1.55;
    color: var(--sp-text);
}

body .kontakt-datenschutz *,
body .kontakt-hinweis * {
    font-size: inherit;
}

body .news .linkbox-wrapper .content .headline,
body .news .linkbox-wrapper .content h3 {
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0;
    color: var(--sp-text);
}

/* Zeilenhöhe der Titel überall gleich */

body .frame-type-header h1,
body .frame-type-header h2,
body .frame-type-text > header h1,
body .frame-type-text > header h2 {
    line-height: 1.2;
}

body .kontakt-datenschutz *,
body .kontakt-hinweis * {
    font-weight: inherit;
}

body .bewerben-wrapper .content p {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--sp-text);
}

/* Referenzen: Spatenstich-Banner direkt unter der Kopfzeile über die ganze Breite (der Inhalt beginnt sonst 40 px tiefer). Foto links, blaue Fläche mit Text rechts, auf dem Handy untereinander, der Text ist immer da */

.referenzen-banner {
    display: grid;
    grid-template-columns: minmax(0, 69.4fr) minmax(0, 30.6fr);
    margin: -40px 0 0;
    background: #114c93;
}

.referenzen-banner img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 82vh;
    object-fit: cover;
    border-right: 5px solid #fff;
}

.referenzen-banner-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 clamp(20px, 3.6vw, 90px);
    color: #fff;
}

.referenzen-banner-text strong {
    display: block;
    font-size: clamp(1.5rem, 3.1vw, 4rem);
    font-weight: 500;
    line-height: 1.12;
}

.referenzen-banner-text span {
    display: block;
    margin-top: .55em;
    font-size: clamp(1rem, 1.45vw, 1.9rem);
    line-height: 1.3;
}

@media (max-width: 767.98px) {
    .referenzen-banner {
        grid-template-columns: minmax(0, 1fr);
    }

    .referenzen-banner img {
        aspect-ratio: 3 / 2;
        object-position: 66% 50%;
        border-right: 0;
    }

    .referenzen-banner-text {
        padding: 26px 22px 30px;
    }

    .referenzen-banner-text strong {
        font-size: 1.9rem;
    }

    .referenzen-banner-text span {
        font-size: 1.125rem;
    }
}

/* ===== Filterleiste blau mit weißer Schrift, ohne Text zwischen Leiste und Bildern ===== */

.hf-leiste {
    border-bottom: 0;
    background: #003c90;
    box-shadow: rgba(0, 0, 0, .15) 0 3px 10px 0;
}

.hf-schalter,
.hf-aufheben,
.hf-seiten .hf-pille {
    color: #fff;
}

.hf-zahl {
    color: rgba(255, 255, 255, .88);
}

.hf-seiten .hf-pille:hover,
.hf-seiten .hf-pille.is-aktiv {
    color: #fff;
}

.hf-seiten .hf-pille:hover {
    border-bottom-color: rgba(255, 255, 255, .6);
}

.hf-seiten .hf-pille.is-aktiv {
    border-bottom-color: #fff;
}

.hf-kopf > .hf-schalter:focus-visible,
.hf-kopf > .hf-aufheben:focus-visible,
.hf-seiten .hf-pille:focus-visible {
    outline-color: #fff;
}

@media (min-width: 992px) {
    .hf-wahl,
    .hf-wahl:hover,
    .hf-gruppe.is-offen .hf-wahl,
    .hf-gruppe.hat-wert .hf-wahl {
        color: #fff;
    }

    .hf-wahl:hover,
    .hf-gruppe.is-offen .hf-wahl {
        border-bottom-color: rgba(255, 255, 255, .6);
    }

    .hf-gruppe.hat-wert .hf-wahl {
        border-bottom-color: #fff;
    }

    .hf-wahl:focus-visible {
        outline-color: #fff;
    }

    .hf-einzeln .hf-wahl {
        color: rgba(255, 255, 255, .75);
    }

    .hf-einzeln .hf-pille,
    .hf-einzeln .hf-pille:hover,
    .hf-einzeln .hf-pille.is-aktiv {
        color: #fff;
    }

    .hf-einzeln .hf-pille:hover {
        border-bottom-color: rgba(255, 255, 255, .6);
    }

    .hf-einzeln .hf-pille.is-aktiv {
        border-bottom-color: #fff;
    }

    .hf-einzeln .hf-pille:disabled,
    .hf-einzeln .hf-pille:disabled:hover {
        color: rgba(255, 255, 255, .42);
    }

    .hf-einzeln .hf-pille:focus-visible {
        outline-color: #fff;
    }

    .hf-einzeln .hf-pille.is-aktiv .hf-pille-text {
        color: #fff;
    }

    .hf-einzeln .hf-gruppe.hat-wert .hf-wahl {
        border-bottom-color: transparent;
    }
}

/* ohne Einleitungszeile bleibt vom Seitenkopf nur der unsichtbare Titel: kein Abstand mehr zwischen Leiste und Bildern */

.hf + .frame-space-before-seitenkopf,
.hf-seiten + .frame-space-before-seitenkopf {
    padding-top: 0;
    padding-bottom: 0;
}

/* ===== Sprungleiste Unternehmen: dieselbe blaue Leiste wie bei Häuser, Räume und Aktuelles, mit den Abschnitten der Seite ===== */

/* Der alte Sprungmarken-Block in der Kopfzeile fällt weg, ohne auf das Skript zu warten; der Platz für die Leiste ist schon reserviert */

.filter-menu:has(a[href^="#"]),
.mobilfilter:has(a.filter-item[href^="#"]) {
    display: none !important;
}

html:not(.hat-bildfilter) body:has(#header .filter-menu a[href^="#"]) #callbacks-placeholder {
    height: 64px;
}

@media (max-width: 991.98px) {
    body:has(.mobilfilter a.filter-item[href^="#"]) .headerspacer.mhm.withfilter {
        height: 55px;
    }

    html:not(.hat-bildfilter) body:has(#header .filter-menu a[href^="#"]) #callbacks-placeholder {
        height: 62px;
    }
}

/* Das Theme setzt --anchor-offset selbst neu; für die Sprünge gilt hier die Höhe von Kopfzeile plus Leiste */

html.hat-bildfilter:has(.hf-sprung) {
    --anchor-offset: var(--sprung-oben, 149px) !important;
}

.hf-sprung {
    margin-top: 0;
}

.hf-sprung .hf-kopf {
    flex-wrap: nowrap;
}

.hf-sprung .hf-pille {
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .hf-sprung .hf-kopf {
        justify-content: space-between;
        gap: 0 8px;
        padding: 0 12px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .hf-sprung .hf-pille {
        font-size: 12.5px;
        letter-spacing: .2px;
    }

    .hf-sprung .hf-kopf::-webkit-scrollbar {
        display: none;
    }
}

/* ===== Kacheln und Leiste ohne Warten auf das Skript =====
   Bildunterschrift und Fotozahl kommen jetzt fertig vom Server, der Platz der Leiste ist schon reserviert und blau,
   die Kacheln stehen also von der ersten Darstellung an an ihrem Platz. Das Skript füllt nur noch die Leiste. */

html:not(.hat-bildfilter) body:has(.imgbox_section .imgbox-item[data-filters]) .frame-space-before-seitenkopf,
html:not(.hat-bildfilter) body:not(:has(.news-single)):has(.mobilfilter a[href="/neues/news"]) .frame-space-before-seitenkopf {
    position: relative;
    filter: drop-shadow(rgba(0, 0, 0, .15) 0 3px 5px);
    margin-top: 64px;
    padding-top: 0;
    padding-bottom: 0;
}

html:not(.hat-bildfilter) body:has(.imgbox_section .imgbox-item[data-filters]) .frame-space-before-seitenkopf:before,
html:not(.hat-bildfilter) body:not(:has(.news-single)):has(.mobilfilter a[href="/neues/news"]) .frame-space-before-seitenkopf:before {
    content: "";
    position: absolute;
    top: -54px;
    left: 0;
    width: 100%;
    height: 54px;
    background: #003c90;
    box-shadow: 0 0 0 100vmax #003c90;
    clip-path: inset(0 -100vmax);
}

@media (max-width: 991.98px) {
    html:not(.hat-bildfilter) body:has(.imgbox_section .imgbox-item[data-filters]) .frame-space-before-seitenkopf,
    html:not(.hat-bildfilter) body:not(:has(.news-single)):has(.mobilfilter a[href="/neues/news"]) .frame-space-before-seitenkopf {
        margin-top: 62px;
    }

    html:not(.hat-bildfilter) body:has(.imgbox_section .imgbox-item[data-filters]) .frame-space-before-seitenkopf:before,
    html:not(.hat-bildfilter) body:not(:has(.news-single)):has(.mobilfilter a[href="/neues/news"]) .frame-space-before-seitenkopf:before {
        top: -52px;
        height: 52px;
    }
}

/* Aktuelles hat auf dem Handy eine Leiste von 50 px */

@media (max-width: 991.98px) {
    html:not(.hat-bildfilter) body:not(:has(.news-single)):has(.mobilfilter a[href="/neues/news"]) .frame-space-before-seitenkopf {
        margin-top: 60px;
    }

    html:not(.hat-bildfilter) body:not(:has(.news-single)):has(.mobilfilter a[href="/neues/news"]) .frame-space-before-seitenkopf:before {
        top: -50px;
        height: 50px;
    }
}

/* ===== Nachbesserungen nach der Prüfung ===== */

/* Aktuelles am PC: die alten Links News und Angebote in der Kopfzeile fallen ohne Skript weg (auf den Listenseiten; die Detailseite behält sie) */

body:not(:has(.news-single)) .filter-menu:has(a[href="/neues/news"]) {
    display: none !important;
}

/* Unternehmen am Handy: die Sprungleiste ist 50 px hoch, mit Halter 60 px */

@media (max-width: 991.98px) {
    html:not(.hat-bildfilter) body:has(#header .filter-menu a[href^="#"]) #callbacks-placeholder {
        height: 60px;
    }
}

/* ===== Schrift: Ersatzschrift mit den Maßen von Rubik, damit der Text beim Nachladen der Schrift nicht springt =====
   Gemessen im Browser: Rubik ist je nach Gewicht 0,6 bis 7,6 % breiter als Arial; Ober- und Unterlänge gleichen die Zeilenhöhe an. */

@font-face {
    font-family: "Rubik Fallback";
    src: local("Arial");
    font-weight: 300;
    size-adjust: 100.6%;
    ascent-override: 92.9%;
    descent-override: 24.9%;
    line-gap-override: 0%;
}

@font-face {
    font-family: "Rubik Fallback";
    src: local("Arial");
    font-weight: 400;
    size-adjust: 103.4%;
    ascent-override: 90.4%;
    descent-override: 24.2%;
    line-gap-override: 0%;
}

@font-face {
    font-family: "Rubik Fallback";
    src: local("Arial");
    font-weight: 500;
    size-adjust: 107.6%;
    ascent-override: 86.9%;
    descent-override: 23.2%;
    line-gap-override: 0%;
}

@font-face {
    font-family: "Rubik Fallback";
    src: local("Arial Bold"), local("Arial-BoldMT");
    font-weight: 700;
    size-adjust: 104.7%;
    ascent-override: 89.3%;
    descent-override: 23.9%;
    line-gap-override: 0%;
}

:root {
    --bs-font-sans-serif: "Rubik", "Rubik Fallback", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --bs-body-font-family: "Rubik", "Rubik Fallback", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* Video: die Zeile unter dem Titel steht von Anfang an da, die Kacheln darunter springen nicht mehr */

body:has(.imgbox-item .content.video) .frame-space-before-seitenkopf header:after {
    content: "Videos vom Baufortschritt. Abgespielt wird erst nach Ihrer Zustimmung zu YouTube.";
    display: block;
    max-width: 46rem;
    margin: 0;
    font-size: 1.1875rem;
    font-weight: 400;
    line-height: 1.55;
    color: var(--sp-text);
}

/* ===== Video: die Fenster für die Videos standen zwischen den Kacheln und erzwangen bis zum Skript eine Kachel pro Zeile ===== */

.imgbox-wrapper > .modalvideomodal-wrapper {
    display: none;
}

/* ===== Titelbilder (Unternehmen, Jobs, Wohnen an der Ems, Loerpabelsweg …) auf dem Handy: kleines Hochformat statt 1600 px breit ===== */

@media (max-width: 767.98px) {
    .vbslider-innerimg[style*="--bg-mobil"],
    .headerimg-inner[style*="--bg-mobil"] {
        background-image: var(--bg-mobil) !important;
    }
}

/* Räume am PC: das Wort „Raum“ links in der Leiste entfällt, die Raumarten stehen allein (für Vorlesegeräte bleibt die Beschriftung der Gruppe erhalten) */

@media (min-width: 992px) {
    .hf-einzeln .hf-name {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

/* Startseite: Beraten, Planen, Bauen führen zum Ablauf; unter dem Wort steht eine Zeile */

.bg_blue .frame-type-header h3 a {
    color: inherit;
    text-decoration: none;
}

.bg_blue .frame-type-header h3 a:hover,
.bg_blue .frame-type-header h3 a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 6px;
}

.bg_blue .frame-type-text p.text-center {
    max-width: 22em;
    margin-right: auto;
    margin-left: auto;
    color: #fff;
}

.bg_blue .frame-type-text p.text-center {
    text-shadow: 0 1px 10px rgba(0, 22, 60, .6);
}

/* FAQ Rot/Blau: Aussagen zu Splietker Rot rot hinterlegt und in roter Schrift, zu Splietker Blau blau hinterlegt und in blauer Schrift */

.vgl-rot,
.vgl-blau {
    padding: 1px 6px;
    border-radius: 3px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.vgl-rot {
    background: #fbe3e0;
    color: #a3221b;
}

.vgl-blau {
    background: #e3ecf8;
    color: #003c90;
}

/* ===== Beitrag ansehen (News, Bauprojekt, Angebot): ruhiger Kopf und lesbare Spalte; die Kanal-Reihe nur für Beiträge mit dem Stichwort "social-media" ===== */

.news-single .news-backlink-wrap {
    margin: 0 0 20px;
}

.news-single .news-backlink-wrap .linkbutton {
    display: inline-block;
    padding: 0;
    border: 0;
    background: none;
    color: #4b5563;
    font-size: .875rem;
    font-weight: 500;
    letter-spacing: .3px;
    text-transform: none;
    text-decoration: none;
}

.news-single .news-backlink-wrap a.linkbutton:before {
    content: "\2039\00a0";
    display: inline !important;
    position: static !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    transform: none !important;
    font-size: 1.125rem;
    line-height: 1;
}

.news-single .news-backlink-wrap .linkbutton:after {
    display: none;
}

.news-single .news-backlink-wrap .linkbutton:hover,
.news-single .news-backlink-wrap .linkbutton:focus-visible {
    color: #003c90;
    text-decoration: underline;
}

.news-single .article .header {
    position: relative;
    padding-top: 18px;
}

.news-single .article .header:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 56px;
    height: 3px;
    background: #003c90;
}

.news-single .teaser-text {
    margin: 0 0 20px;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.5;
}

.news-single .teaser-text .news-list-date {
    margin-right: 8px;
    color: #1b2430;
    font-weight: 500;
}

/* Die Kanäle (Instagram, Pinterest, Facebook) nur als schmale Reihe von Verweisen, damit die Bilder des Feeds im Mittelpunkt stehen */
.news-single .news-text-kanaele {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: none;
}

.news-single .news-text-kanaele > p {
    flex: 1 1 230px;
    margin: 0;
}

.news-single .news-text-kanaele > p > a {
    display: block;
    position: relative;
    padding: 11px 42px 11px 16px;
    border: 1px solid #dbe3ee;
    background: #f3f6fa;
    color: #1b2430;
    font-size: .9375rem;
    line-height: 1.35;
    text-decoration: none;
    transition: border-color .15s ease, background-color .15s ease;
}

.news-single .news-text-kanaele > p > a:before {
    display: block;
    margin-bottom: 1px;
    color: #003c90;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.news-single .news-text-kanaele > p > a[href*="instagram.com"]:before {
    content: "Instagram";
}

.news-single .news-text-kanaele > p > a[href*="pinterest."]:before {
    content: "Pinterest";
}

.news-single .news-text-kanaele > p > a[href*="facebook.com"]:before {
    content: "Facebook";
}

.news-single .news-text-kanaele > p > a:after {
    content: "\2192";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #003c90;
    font-size: 1.125rem;
    line-height: 1;
}

.news-single .news-text-kanaele > p > a:hover,
.news-single .news-text-kanaele > p > a:focus-visible {
    border-color: #003c90;
    background: #eaf0fa;
    color: #1b2430;
    text-decoration: none;
}

.news-single .article > h2 {
    margin: 34px 0 16px;
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: 1.3px;
    line-height: 1.25;
    text-transform: uppercase;
    color: #1b2430;
}

.news-single .article > .splietker-elfsight-consent {
    margin-bottom: 8px;
}

/* Hashtag-Zeilen (aus Facebook übernommen) fließen in einer Zeile, damit das Bild darunter nicht ans Ende rutscht */
.news-single .news-text-wrap > p:has(> a:only-child[href*="/hashtag/"]) {
    display: inline-block;
    margin: 0 18px 4px 0;
    font-size: 1rem;
}

.news-single .news-text-wrap:has(> p > a[href*="/hashtag/"]) {
    margin-bottom: 26px;
}

/* Hat der Beitrag nur ein einziges Bild, bekommt es mehr Raum statt nur ein Drittel der Spalte */
@media (min-width: 992px) {
    .news-single .article:not(:has(.row ~ .row)) .row > .col-lg-4:only-child {
        width: 62%;
    }
}

@media (max-width: 767.98px) {
    .news-single .news-text-kanaele {
        gap: 8px;
    }

    .news-single .news-text-kanaele > p {
        flex-basis: 100%;
    }

    .news-single .news-text-kanaele > p > a {
        padding: 10px 40px 10px 14px;
    }

    .news-single .article > h2 {
        margin-top: 28px;
    }
}

/* ===== Aktuelles: Beitrag mit den Verweisen auf die Kanäle (Stichwort social-media) =====
   Statt eines Bildes stehen die Kanäle in Bildhöhe untereinander, darunter Datum, Titel und Anreißer wie bei den anderen Kacheln. */

body .kanalliste {
    display: flex;
    flex-direction: column;
    background: #003c90;
}

body .imgbox-kanal .kanalliste {
    aspect-ratio: 7 / 5;
}

body .kanalliste p {
    display: flex;
    flex: 1 1 0;
    margin: 0;
    padding: 0;
}

body .kanalliste p + p {
    border-top: 1px solid rgba(255, 255, 255, .22);
}

body .kanalliste p a {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    padding: 0 58px 0 22px;
    color: #fff;
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color .15s ease;
}

body .kanalliste p a:before {
    display: block;
    margin-bottom: 2px;
    color: rgba(255, 255, 255, .72);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

body .kanalliste p a[href*="instagram.com"]:before {
    content: "Instagram";
}

body .kanalliste p a[href*="pinterest."]:before {
    content: "Pinterest";
}

body .kanalliste p a[href*="facebook.com"]:before {
    content: "Facebook";
}

body .kanalliste p a:after {
    content: "\2192";
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
}

body .kanalliste p a:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    text-decoration: none;
}

body .kanalliste p a:focus-visible {
    outline: 2px solid #fff !important;
    outline-offset: -4px !important;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item.imgbox-kanal .imgbox-link.imgbox-kanal-text {
    display: block;
}

body .imgbox_section .container-fluid .imgbox-wrapper .imgbox-item.imgbox-kanal .imgbox-link.imgbox-kanal-text:after {
    display: none;
}

@media (max-width: 767.98px) {
    body .kanalliste p a {
        padding: 0 54px 0 18px;
    }

    body .kanalliste p a:after {
        right: 18px;
    }
}

/* Vier Spalten bei schmalem Fenster (Kachel unter 300 px): kleinere Schrift und Abstände, damit die Namen in zwei Zeilen passen */
@media (min-width: 992px) and (max-width: 1279.98px) {
    body .kanalliste p a {
        padding: 0 38px 0 14px;
        font-size: .9375rem;
        line-height: 1.25;
    }

    body .kanalliste p a:before {
        font-size: .625rem;
        letter-spacing: 1.2px;
    }

    body .kanalliste p a:after {
        right: 12px;
        font-size: 1.125rem;
    }
}
