/* scroll-behavior wird nicht gesetzt – GSAP ScrollToPlugin übernimmt Smooth Scrolling.\n   Native scroll-behavior: smooth kollidiert mit GSAP und verursacht Doppel-Interpolation. */

/* ── Scroll-Animation Optimierungen ──
   overflow-anchor: none → verhindert, dass der Browser bei transform/textContent-
   Änderungen die Scroll-Position korrigiert (Scroll Anchoring). */


/* Block Editor Styles */

.wp-block-group.is-layout-grid>.block-editor-block-list__layout {
    pointer-events: none;
}

.wp-block-group.is-layout-grid>.block-editor-block-list__layout>* {
    pointer-events: auto;
}

.block-editor-block-list__block.wohnungen {
    pointer-events: none;
}

/* Global Styles */

section.lage figure svg text {
    text-rendering: geometricPrecision;
    font-kerning: none;
}

.parallax {
    overflow-anchor: none;
}

header>.wp-block-spacer {
    height: 5rem !important;
}

:root :where(.wp-block-list > li),
:root :where(p):not(.wp-block-quote p) {
    letter-spacing: 0.035em;
    line-height: 145%;
    hyphens: auto;
    hyphenate-limit-chars: 6 3 3;
    font-size: clamp(0.85rem, 0.6536rem + 0.5238vw, 1.125rem) !important;
}

h1,
h2 {
    font-size: clamp(2.5rem, 1.4286rem + 2.8571vw, 4rem);
}

h3,
h4 {
    font-size: clamp(1.5rem, 1.1429rem + 0.9524vw, 2rem);
    font-family: var(--wp--preset--font-family--pp-neue-montreal) !important;
}

form>p {
    margin: 0;
}

.wp-block-quote p {
    font-size: 2.5rem;
    line-height: 110%;
    letter-spacing: 0;
}

.wp-block-site-logo {
    z-index: 10000;
    padding: 0 2.5rem;
}

.toSansSerif {
    font-family: var(--wp--preset--font-family--pp-neue-montreal);
    font-weight: 300;
    letter-spacing: -0.01em;
}

.wp-site-blocks {
    overflow: hidden;
}

li>span.toSansSerif {
    font-family: var(--wp--preset--font-family--pp-neue-montreal);
    font-weight: 400;
    letter-spacing: 0.02em;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.ss-form-badge {
    display: none !important;
}

/* Details Block Styles */

.wp-block-site-logo img {
    height: 2.25rem;
    width: auto;
}

.wp-block-details {
    transition: all 0.3s ease-in-out;
    border-radius: var(--wp--custom--border-radius--lg);
    background-color: var(--wp--preset--color--light-brown-grey);
}

.wp-block-details h3 {
    font-size: var(--wp--custom--heading-sizes--h-3-small--font-size) !important;
    line-height: 1.1 !important;
}

.wp-block-details:hover {
    transition: all 0.3s ease;
    background-color: var(--wp--preset--color--dark-brown-grey);
}

.wp-block-details[open] {
    padding-bottom: 2rem;
    background-color: var(--wp--preset--color--dark-brown-grey);
}

.wp-block-details> :not(summary) {
    overflow: hidden;
}

.wp-block-details> :where( :not(summary)) {
    margin-left: 2rem;
    margin-right: 2rem;
}

.wp-block-details[open] {
    padding-bottom: 2rem;
    background-color: var(--wp--preset--color--dark-brown-grey);
}


.wp-block-details summary {
    transition: all 0.3s ease-in-out;
    box-sizing: border-box;
    padding: 1.25rem;
    font-weight: 300;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.wp-block-details summary::marker {
    content: none;
}

.wp-block-details:hover summary {
    cursor: pointer;
    color: var(--wp--preset--color--accent-orange);
}

.wp-block-details summary::after {
    content: '';
    width: 13px;
    height: 24px;
    background-color: var(--wp--preset--color--dark-brown);
    mask-image: url('data:image/svg+xml,<svg width="13" height="24" viewBox="0 0 13 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.353564 0.353551L11.6673 11.6673L0.353564 22.981" stroke="black" stroke-width="1.5" stroke-linejoin="round"/></svg>');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: inline-flex;
}

.wp-block-details:hover summary::after {
    background-color: var(--wp--preset--color--accent-orange);
}

.wp-block-details[open] summary::after {
    transform: rotate(90deg);
}

/* Formular styles */
.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wpcf7-form p label span {
    display: flex;
}

.wpcf7-form p label span.wpcf7-form-label-text {
    display: inline-block;
    padding: 0.5rem 2rem 0.5rem 2rem;
    font-family: 'PP Neue Montreal', sans-serif;
    font-weight: 300;
    font-size: 1rem;
}

.google-notice,
.wpcf7-form p label {
    font-family: 'PP Neue Montreal', sans-serif;
    font-weight: 300;
    font-size: 1rem;
}

.google-notice {
    padding: 0 1.25rem;
    line-height: 130%;
    font-size: 0.75rem;
}

div:has(.grecaptcha-badge) {
    visibility: hidden !important;
}

.wpcf7-form p label span input,
.wpcf7-form p label span textarea {
    width: auto;
}

.wpcf7-form p label span textarea,
.wpcf7-form p label span input {
    background-color: var(--wp--preset--color--brown-grey);
    color: var(--wp--preset--color--dark-brown);
    font-family: 'PP Neue Montreal', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 1px solid var(--wp--preset--color--dark-brown);
    border-radius: var(--wp--custom--border-radius--lg);
    letter-spacing: 0.02em;
}

.wpcf7-form p label span input:focus-visible,
.wpcf7-form p label span textarea:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent-orange);
}

.wpcf7-form p:last-of-type label {
    margin-bottom: 0;
}

[data-name="your-privacy-info"] .wpcf7-list-item-label {
    line-height: 130%;
    display: inline-block;
}

[data-name="your-privacy-info"] .wpcf7-list-item>label {
    display: flex;
    gap: 1.5rem;
}

.wpcf7-countdown {
    margin: 0;
    padding: 0.75rem 1.5rem;
}

.wpcf7-character-count.down:before {
    content: "\00A0";
    display: inline-block;
}

.wpcf7-countdown>p {
    margin: 0;
    padding: 0;
}

.wpcf7-countdown span {
    color: var(--wp--preset--color--dark-brown);
    font-family: 'PP Neue Montreal', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
}

.wpcf7-form-label-text:has(.wpcf7-character-count) {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

.wpcf7-not-valid-tip {
    color: #dc3232;
    font-family: 'PP Neue Montreal', sans-serif;
    font-size: 1em;
    font-weight: 300;
    display: block !important;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
}

.wpcf7 form.sent .wpcf7-response-output {
    background-color: #46b44f49;
    padding: 1.5rem;
    font-family: 'PP Neue Montreal', sans-serif;
    font-size: 1em;
    font-weight: 300;
    display: block !important;
    border-radius: var(--wp--custom--border-radius--md);
}

.wpcf7-form-control-wrap {
    flex-direction: column;

}

.wpcf7-submit {
    line-height: 100%;
    font-size: 1rem;
    width: fit-content;
}

/* .wpcf7-not-valid-tip {
    padding: 0.75rem 1.5rem 0 1.5rem;
} */

.wpcf7-form-control-wrap:has(.wpcf7-not-valid-tip) input,
.wpcf7-form-control-wrap:has(.wpcf7-not-valid-tip) textarea {
    background-color: #dc323216;
}

/* Link Styles */
a:not(.naechste-schritte a, .wp-block-site-logo a, figure.stoerer a, .wp-element-button) {
    position: relative;
    display: inline-block;
    color: var(--wp--preset--color--dark-brown);
    text-decoration: none;
    transition: color 0.3s ease;
}

.wpcf7-form p label span input,
.wpcf7-form p label span textarea {
    max-width: 100%;
    width: stretch;
}

a:hover:not(.naechste-schritte a, .wp-block-site-logo a, figure.stoerer a, .wp-element-button) {
    color: var(--wp--preset--color--accent-orange);
}

a:not(.naechste-schritte a, .wp-block-site-logo a, figure.stoerer a, .wp-element-button)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--wp--preset--color--accent-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

a:hover:not(.naechste-schritte a, .wp-block-site-logo a, figure.stoerer a, .wp-element-button)::after {
    transform: scaleX(1);
}

/* Navigation Link Styles */
header>div:has(div>nav) {
    display: flex;
    justify-content: center;
}

nav.nav-mobile {
    display: none;
}

.wp-block-group:has(>nav.nav-mobile) .wp-block-button {
    padding-right: 2.5rem;
}

div.wp-block-group:has(>nav.nav-mobile)>div.wp-block-buttons {
    display: none;
}

nav.nav-desktop {
    margin-right: 2.5rem;
}

div.wp-block-group:has(>nav) {
    background-color: var(--wp--preset--color--light-brown-grey);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0;
    padding-top: 0px;
    padding-bottom: 0px;
    border-radius: var(--wp--custom--border-radius--lg);
    position: fixed;
    top: 2rem;
    /* left: 50%; */
    right: auto;
    margin: 0;
    /* transform: translateX(-50%); */
    z-index: 9999;
    transition: transform 0.3s ease, opacity 0.3s ease;
    width: min(var(--wp--style--global--wide-size), calc(100dvw - 4rem));
    height: 90px;
    box-sizing: border-box;
}

div.wp-block-group:has(>nav).nav-hidden {
    transform: translateY(-120%);
    opacity: 0;
}

div.wp-block-group:has(>nav).nav-visible {
    transform: translateY(0);
    opacity: 1;
}

.wp-block-navigation-item__content {
    position: relative;
    display: inline-block;
    font-size: 1.25rem;
    letter-spacing: 0.01em;
    width: fit-content;
}

.wp-block-navigation-item__content .wp-block-navigation-item__label {
    color: var(--wp--preset--color--dark-brown);
    transition: color 0.3s ease;
}

/* .current-menu-item .wp-block-navigation-item__content .wp-block-navigation-item__label{
    color: var(--wp--preset--color--accent-orange);
} */

.wp-block-navigation-item__content:hover .wp-block-navigation-item__label {
    color: var(--wp--preset--color--accent-orange);
}

.wp-block-navigation-item__content::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--wp--preset--color--accent-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* .current-menu-item .wp-block-navigation-item__content::after, */
.wp-block-navigation-item__content:hover::after {
    transform: scaleX(1);
}

/* Sections */

.wp-block-post-content section.zitat,
section.zitat {
    display: grid;
    grid-template-columns: repeat(12, minmax(auto, 1fr));
    grid-template-rows: repeat(3, auto);
    gap: 2rem;
    max-width: var(--wp--style--global--wide-size);
    margin-left: auto;
    margin-right: auto;
}

.wp-block-post-content section.zitat blockquote,
section.zitat blockquote {
    grid-column: 1 / span 6;
    grid-row: 3 / span 1;
    margin-left: 0 !important;
}

.wp-block-post-content section.zitat figure:nth-of-type(1),
section.zitat figure:nth-of-type(1) {
    grid-column: 2 / span 6;
    grid-row: 2 / span 1;
    margin-left: 0 !important;
}

.wp-block-post-content section.zitat figure:nth-of-type(1) img,
section.zitat figure:nth-of-type(1) img {
    max-height: 22rem;
    width: auto;
}

.wp-block-post-content section.zitat figure:nth-of-type(2),
section.zitat figure:nth-of-type(2) {
    grid-column: 7 / span 6;
    grid-row: 1 / span 3;
    width: 100%;
}

.wp-block-post-content section.lage,
section.lage {
    display: grid;
    grid-template-columns: repeat(12, minmax(auto, 1fr));
    grid-template-rows: repeat(4, auto);
    gap: 2rem;
    max-width: var(--wp--style--global--wide-size);
    margin-left: auto;
    margin-right: auto;
}

.wp-block-post-content section.lage .is-layout-grid,
section.lage .is-layout-grid {
    display: grid;
    grid-template-columns: subgrid;
    grid-template-rows: subgrid;
    gap: 2rem;
    max-width: var(--wp--style--global--wide-size);
    margin-left: auto;
    margin-right: auto;
}

.wp-block-post-content section.lage .is-layout-grid h2,
section.lage .is-layout-grid h2 {
    grid-column: 1 / span 8;
    grid-row: 1 / span 1;
    margin-left: 0 !important;
    margin-top: 5rem;
    z-index: 5;
}

.wp-block-post-content section.lage .is-layout-grid p,
section.lage .is-layout-grid p {
    grid-column: 1 / span 8;
    grid-row: 2 / span 1;
}

.wp-block-post-content section.lage .is-layout-grid figure,
section.lage .is-layout-grid figure {
    grid-column: 6 / span 3;
    grid-row: 1 / span 1;
    margin-left: 0 !important;
    margin-bottom: -5rem;
}

.wp-block-post-content section.lage .is-layout-grid figure img,
section.lage .is-layout-grid figure img {
    max-height: 11rem;
    width: auto;
    position: relative;
    top: -5rem;
    right: -15rem;
}

.wp-block-post-content section.lage>div:first-of-type,
section.lage>div:first-of-type {
    grid-column: 1 / span 12;
    grid-row: 1 / span 1;
    display: grid;
    grid-template-columns: repeat(12, minmax(auto, 1fr));
    gap: 2rem;
}

.wp-block-post-content section.lage>div:first-of-type>h1,
section.lage>div:first-of-type>h1 {
    grid-column: 3 / span 8;
    grid-row: 1 / span 1;
    z-index: 3;
}

.wp-block-post-content section.lage>div:first-of-type>figure,
section.lage>div:first-of-type>figure {
    grid-column: 1 / span 5;
    grid-row: 3 / span 3;
    max-width: 100%;
    z-index: 3;
}

.wp-block-post-content section.lage>div:first-of-type>p,
section.lage>div:first-of-type>p {
    grid-column: 3 / span 10;
    grid-row: 2 / span 1;
    z-index: 3;
}

.wp-block-post-content section.lage>div:first-of-type>div.container,
section.lage>div:first-of-type>div.container {
    grid-column: 3 / span 1;
    grid-row: 3 / span 1;
    z-index: 2;
}

.wp-block-post-content section.lage>div:first-of-type>div.container svg,
section.lage>div:first-of-type>div.container svg {
    transform: scale(6.5);
}

.wp-block-post-content section.lage div.wp-block-cb-carousel-v2,
section.lage>div:first-of-type>div.cb-carousel-block {
    grid-column: 3 / span 10;
    grid-row: 3 / span 1;
    max-width: 100%;
}

.wp-block-post-content section.lage>div:nth-of-type(2),
section.lage>div:nth-of-type(2) {
    grid-column: 3 / span 8;
    grid-row: 2 / span 1;
    z-index: 1;
    width: 100%;
    height: auto;
}

.wp-block-post-content section.lage .wp-block-shortcode,
section.lage>figure:nth-of-type(1) {
    grid-column: 1 / span 12;
    grid-row: 3 / span 1;
    width: 100%;
    height: auto;
}

.wp-block-post-content section.lage>figure.wp-block-table,
section.lage>figure.wp-block-table {
    grid-column: 6 / span 5;
    grid-row: 4 / span 1;
    width: 100%;
    margin-block-start: 0;
    margin-block-end: 0;
    margin: 0;
    padding: 0;
    position: relative;
    margin-top: -7.5rem;
    background-color: var(--wp--preset--color--light-brown-grey);
    padding: 2.5rem;
    border-radius: var(--wp--custom--border-radius--lg);
}

.wp-block-post-content section.lage>figure.wp-block-table table,
section.lage>figure.wp-block-table table {
    table-layout: fixed;
}

.wp-block-post-content section.lage>figure.wp-block-table table thead,
section.lage>figure.wp-block-table table thead {
    border-bottom: 1px solid;
}

.wp-block-post-content section.lage>figure.wp-block-table table thead tr,
.wp-block-post-content section.lage>figure.wp-block-table table tbody tr,
section.lage>figure.wp-block-table table thead tr,
section.lage>figure.wp-block-table table tbody tr {
    border-bottom: 1px solid;
    height: 3rem;
}

.wp-block-post-content section.lage>figure.wp-block-table table thead tr th,
.wp-block-post-content section.lage>figure.wp-block-table table tbody tr td,
section.lage>figure.wp-block-table table thead tr th,
section.lage>figure.wp-block-table table tbody tr td {
    text-align: left;
    font-family: 'PP Neue Montreal', sans-serif;
    font-weight: normal;
    min-width: 5rem;
    padding: 0.5rem;
    border: none;
}

.wp-block-post-content section.lage>figure.wp-block-table table thead tr th,
section.lage>figure.wp-block-table table thead tr th {
    font-size: 1.125rem;
    width: 35%;
}

.wp-block-post-content section.lage>figure.wp-block-table table tbody tr td,
section.lage>figure.wp-block-table table tbody tr td {
    width: 35%;
}

.wp-block-post-content section.lage>figure.wp-block-table table tbody tr td:nth-of-type(2),
.wp-block-post-content section.lage>figure.wp-block-table table thead tr th:nth-of-type(2),
section.lage>figure.wp-block-table table tbody tr td:nth-of-type(2),
section.lage>figure.wp-block-table table thead tr th:nth-of-type(2) {
    width: 25%;
    text-align: center;
}

.wp-block-post-content section.lage>figure.wp-block-table table tbody tr td:nth-of-type(3),
.wp-block-post-content section.lage>figure.wp-block-table table thead tr th:nth-of-type(3),
section.lage>figure.wp-block-table table tbody tr td:nth-of-type(3),
section.lage>figure.wp-block-table table thead tr th:nth-of-type(3) {
    width: 25%;
    text-align: center;
}

.wp-block-post-content section.lage>figure.wp-block-table table tbody tr td:nth-of-type(4),
.wp-block-post-content section.lage>figure.wp-block-table table thead tr th:nth-of-type(4),
section.lage>figure.wp-block-table table tbody tr td:nth-of-type(4),
section.lage>figure.wp-block-table table thead tr th:nth-of-type(4) {
    width: 25%;
    text-align: center;
}

.wp-block-post-content section.lage>figure.wp-block-table table thead tr th:nth-of-type(1)::after,
section.lage>figure.wp-block-table table thead tr th:nth-of-type(1)::after {
    content: url('data:image/svg+xml,<svg width="16" height="20" viewBox="0 0 16 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 10C8.55 10 9.02083 9.80417 9.4125 9.4125C9.80417 9.02083 10 8.55 10 8C10 7.45 9.80417 6.97917 9.4125 6.5875C9.02083 6.19583 8.55 6 8 6C7.45 6 6.97917 6.19583 6.5875 6.5875C6.19583 6.97917 6 7.45 6 8C6 8.55 6.19583 9.02083 6.5875 9.4125C6.97917 9.80417 7.45 10 8 10ZM8 17.35C10.0333 15.4833 11.5417 13.7875 12.525 12.2625C13.5083 10.7375 14 9.38333 14 8.2C14 6.38333 13.4208 4.89583 12.2625 3.7375C11.1042 2.57917 9.68333 2 8 2C6.31667 2 4.89583 2.57917 3.7375 3.7375C2.57917 4.89583 2 6.38333 2 8.2C2 9.38333 2.49167 10.7375 3.475 12.2625C4.45833 13.7875 5.96667 15.4833 8 17.35ZM8 20C5.31667 17.7167 3.3125 15.5958 1.9875 13.6375C0.6625 11.6792 0 9.86667 0 8.2C0 5.7 0.804167 3.70833 2.4125 2.225C4.02083 0.741667 5.88333 0 8 0C10.1167 0 11.9792 0.741667 13.5875 2.225C15.1958 3.70833 16 5.7 16 8.2C16 9.86667 15.3375 11.6792 14.0125 13.6375C12.6875 15.5958 10.6833 17.7167 8 20Z" fill="%23090402"/></svg>');
    /* margin-left: 0.75rem; */
    /* margin-right: 0; */
    display: inline-block;
    vertical-align: middle;
    width: 100%;
    height: 1.5rem;
}

.wp-block-post-content section.lage>figure.wp-block-table table thead tr th:nth-of-type(2)::after,
section.lage>figure.wp-block-table table thead tr th:nth-of-type(2)::after {
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="%231f1f1f"><path d="m280-40 112-564-72 28v136h-80v-188l202-86q14-6 29.5-7t29.5 4q14 5 26.5 14t20.5 23l40 64q26 42 70.5 69T760-520v80q-70 0-125-29t-94-74l-25 123 84 80v300h-80v-260l-84-64-72 324h-84Zm203.5-723.5Q460-787 460-820t23.5-56.5Q507-900 540-900t56.5 23.5Q620-853 620-820t-23.5 56.5Q573-740 540-740t-56.5-23.5Z"/></svg>');
    /* margin-left: 0.75rem; */
    /* margin-right: 0; */
    display: inline-block;
    vertical-align: middle;
    width: 100%;
    height: 1.5rem;
}

.wp-block-post-content section.lage>figure.wp-block-table table thead tr th:nth-of-type(3)::after,
section.lage>figure.wp-block-table table thead tr th:nth-of-type(3)::after {
    content: url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 19V20C6 20.2833 5.90417 20.5208 5.7125 20.7125C5.52083 20.9042 5.28333 21 5 21H4C3.71667 21 3.47917 20.9042 3.2875 20.7125C3.09583 20.5208 3 20.2833 3 20V12L5.1 6C5.2 5.7 5.37917 5.45833 5.6375 5.275C5.89583 5.09167 6.18333 5 6.5 5H17.5C17.8167 5 18.1042 5.09167 18.3625 5.275C18.6208 5.45833 18.8 5.7 18.9 6L21 12V20C21 20.2833 20.9042 20.5208 20.7125 20.7125C20.5208 20.9042 20.2833 21 20 21H19C18.7167 21 18.4792 20.9042 18.2875 20.7125C18.0958 20.5208 18 20.2833 18 20V19H6ZM5.8 10H18.2L17.15 7H6.85L5.8 10ZM7.5 16C7.91667 16 8.27083 15.8542 8.5625 15.5625C8.85417 15.2708 9 14.9167 9 14.5C9 14.0833 8.85417 13.7292 8.5625 13.4375C8.27083 13.1458 7.91667 13 7.5 13C7.08333 13 6.72917 13.1458 6.4375 13.4375C6.14583 13.7292 6 14.0833 6 14.5C6 14.9167 6.14583 15.2708 6.4375 15.5625C6.72917 15.8542 7.08333 16 7.5 16ZM16.5 16C16.9167 16 17.2708 15.8542 17.5625 15.5625C17.8542 15.2708 18 14.9167 18 14.5C18 14.0833 17.8542 13.7292 17.5625 13.4375C17.2708 13.1458 16.9167 13 16.5 13C16.0833 13 15.7292 13.1458 15.4375 13.4375C15.1458 13.7292 15 14.0833 15 14.5C15 14.9167 15.1458 15.2708 15.4375 15.5625C15.7292 15.8542 16.0833 16 16.5 16ZM5 17H19V12H5V17Z" fill="%23090402"/></svg>');
    /* margin-left: 0.75rem; */
    /* margin-right: 0; */
    display: inline-block;
    vertical-align: middle;
    width: 100%;
    height: 1.5rem;
}

.wp-block-post-content section.lage>figure.wp-block-table table thead tr th:nth-of-type(4)::after,
section.lage>figure.wp-block-table table thead tr th:nth-of-type(4)::after {
    content: url('data:image/svg+xml,<svg width="49" height="25" viewBox="0 0 49 25" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(%23clip0_377_9)"><path d="M31 22C30.7167 22 30.4792 21.9042 30.2875 21.7125C30.0958 21.5208 30 21.2833 30 21V18.95C29.7 18.6167 29.4583 18.2458 29.275 17.8375C29.0917 17.4292 29 16.9833 29 16.5V7C29 5.61667 29.6417 4.60417 30.925 3.9625C32.2083 3.32083 34.2333 3 37 3C39.8667 3 41.9167 3.30833 43.15 3.925C44.3833 4.54167 45 5.56667 45 7V16.5C45 16.9833 44.9083 17.4292 44.725 17.8375C44.5417 18.2458 44.3 18.6167 44 18.95V21C44 21.2833 43.9042 21.5208 43.7125 21.7125C43.5208 21.9042 43.2833 22 43 22H42C41.7167 22 41.4792 21.9042 41.2875 21.7125C41.0958 21.5208 41 21.2833 41 21V20H33V21C33 21.2833 32.9042 21.5208 32.7125 21.7125C32.5208 21.9042 32.2833 22 32 22H31ZM37.05 6H42.65H31.45H37.05ZM41 13H31H43H41ZM31 11H43V8H31V11ZM33.5 17C33.9167 17 34.2708 16.8542 34.5625 16.5625C34.8542 16.2708 35 15.9167 35 15.5C35 15.0833 34.8542 14.7292 34.5625 14.4375C34.2708 14.1458 33.9167 14 33.5 14C33.0833 14 32.7292 14.1458 32.4375 14.4375C32.1458 14.7292 32 15.0833 32 15.5C32 15.9167 32.1458 16.2708 32.4375 16.5625C32.7292 16.8542 33.0833 17 33.5 17ZM40.5 17C40.9167 17 41.2708 16.8542 41.5625 16.5625C41.8542 16.2708 42 15.9167 42 15.5C42 15.0833 41.8542 14.7292 41.5625 14.4375C41.2708 14.1458 40.9167 14 40.5 14C40.0833 14 39.7292 14.1458 39.4375 14.4375C39.1458 14.7292 39 15.0833 39 15.5C39 15.9167 39.1458 16.2708 39.4375 16.5625C39.7292 16.8542 40.0833 17 40.5 17ZM31.45 6H42.65C42.4 5.71667 41.8625 5.47917 41.0375 5.2875C40.2125 5.09583 38.8833 5 37.05 5C35.2667 5 33.9625 5.10417 33.1375 5.3125C32.3125 5.52083 31.75 5.75 31.45 6ZM33 18H41C41.55 18 42.0208 17.8042 42.4125 17.4125C42.8042 17.0208 43 16.55 43 16V13H31V16C31 16.55 31.1958 17.0208 31.5875 17.4125C31.9792 17.8042 32.45 18 33 18Z" fill="%23090402"/><path d="M4 16.5V7C4 6.11667 4.22917 5.4125 4.6875 4.8875C5.14583 4.3625 5.75 3.9625 6.5 3.6875C7.25 3.4125 8.10417 3.22917 9.0625 3.1375C10.0208 3.04583 11 3 12 3C13.1 3 14.1375 3.04583 15.1125 3.1375C16.0875 3.22917 16.9375 3.4125 17.6625 3.6875C18.3875 3.9625 18.9583 4.3625 19.375 4.8875C19.7917 5.4125 20 6.11667 20 7V16.5C20 17.4833 19.6625 18.3125 18.9875 18.9875C18.3125 19.6625 17.4833 20 16.5 20L18 21.5V22H16L14 20H10L8 22H6V21.5L7.5 20C6.51667 20 5.6875 19.6625 5.0125 18.9875C4.3375 18.3125 4 17.4833 4 16.5ZM12 5C10.2333 5 8.94167 5.10417 8.125 5.3125C7.30833 5.52083 6.75 5.75 6.45 6H17.65C17.4 5.71667 16.8625 5.47917 16.0375 5.2875C15.2125 5.09583 13.8667 5 12 5ZM6 11H11V8H6V11ZM16.5 13H6H18H16.5ZM13 11H18V8H13V11ZM8.5 17C8.93333 17 9.29167 16.8583 9.575 16.575C9.85833 16.2917 10 15.9333 10 15.5C10 15.0667 9.85833 14.7083 9.575 14.425C9.29167 14.1417 8.93333 14 8.5 14C8.06667 14 7.70833 14.1417 7.425 14.425C7.14167 14.7083 7 15.0667 7 15.5C7 15.9333 7.14167 16.2917 7.425 16.575C7.70833 16.8583 8.06667 17 8.5 17ZM15.5 17C15.9333 17 16.2917 16.8583 16.575 16.575C16.8583 16.2917 17 15.9333 17 15.5C17 15.0667 16.8583 14.7083 16.575 14.425C16.2917 14.1417 15.9333 14 15.5 14C15.0667 14 14.7083 14.1417 14.425 14.425C14.1417 14.7083 14 15.0667 14 15.5C14 15.9333 14.1417 16.2917 14.425 16.575C14.7083 16.8583 15.0667 17 15.5 17ZM7.5 18H16.5C16.9333 18 17.2917 17.8583 17.575 17.575C17.8583 17.2917 18 16.9333 18 16.5V13H6V16.5C6 16.9333 6.14167 17.2917 6.425 17.575C6.70833 17.8583 7.06667 18 7.5 18ZM12 6H17.65H6.45H12Z" fill="%23090402"/><line x1="24.5" x2="24.5" y2="25" stroke="%23090402"/></g><defs><clipPath id="clip0_377_9"><rect width="49" height="25" fill="white"/></clipPath></defs></svg>');
    /* margin-left: 0.75rem; */
    /* margin-right: 0; */
    display: inline-block;
    vertical-align: middle;
    width: 100%;
    height: 1.5rem;
}

.wp-block-post-content section.lage>figure.wp-block-image:nth-last-of-type(1),
section.lage>figure.wp-block-image:nth-last-of-type(1) {
    grid-column: 3 / span 3;
    grid-row: 4 / span 1;
    width: 100%;
    height: 0px;
    margin-block-start: 0;
    margin-block-end: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.wp-block-post-content section.lage>figure.wp-block-image:nth-last-of-type(1) img,
section.lage>figure.wp-block-image:nth-last-of-type(1) img {
    max-height: 25rem;
    width: auto;
    position: relative;
    top: 5rem;
}

.wp-block-post-content section.lage figure svg>g,
section.lage figure svg>g {
    transform: scale(1);
    transform-box: fill-box;
    transform-origin: center bottom;
    transition: transform 0.3s ease;
}

section.lage figure:not(div > figure) {
    position: relative !important;
    /* overflow: hidden !important; */
}

section.lage figure svg:nth-of-type(2) {
    transform: scale(1.25);
    position: absolute;
    right: 2rem;
    /* Fester Abstand vom rechten Rand */
    left: auto;
    top: 2rem;
    /* Y-Position */
    bottom: auto;
    z-index: 10;
    /* Stellen sicher, dass die Legende immer oben liegt */
}

@media (max-width: 767px) {
    section.lage figure svg:nth-of-type(2) {
        transform: scale(1);
        right: 1.5rem;
        top: 1rem;
    }
}

section.lage figure svg g#legende>g {
    pointer-events: bounding-box;
    cursor: pointer;
}

/* section.lage figure svg g#legende g#bellavista-2 {
    transform-box: fill-box;
    transform-origin: center bottom;
} */

.wp-block-post-content section.lage figure svg>g.highlight,
section.lage figure svg>g.highlight {
    transform: scale(1.25);
}

.wp-block-post-content section.lage figure svg>g:hover:not(#bellavista-2, #legende),
section.lage figure svg>g:hover:not(#bellavista-2, #legende) {
    cursor: pointer;
}

.wp-block-post-content section.lage figure svg>g:hover path,
section.lage figure svg>g path {
    fill: var(--wp--preset--color--dark-brown);
    transition: fill 0.3s ease;
}

.wp-block-post-content section.lage figure svg>g.highlight path,
section.lage figure svg>g.highlight path {
    fill: var(--wp--preset--color--accent-orange) !important;
    transition: fill 0.3s ease;
}

.wp-block-post-content section.lage figure svg g#legende g path,
section.lage figure svg g#legende g path {
    fill: var(--wp--preset--color--dark-brown);
    transition: fill 0.3s ease;
}

.wp-block-post-content section.lage figure svg g#legende g:hover:not(#bellavista),
section.lage figure svg g#legende g:hover:not(#bellavista) {
    cursor: pointer;
}

.wp-block-post-content section.lage figure svg g#legende g text tspan,
section.lage figure svg g#legende g text tspan {
    fill: var(--wp--preset--color--dark-brown);
    transition: color 0.3s ease;
}

.wp-block-post-content section.lage figure svg g#legende g.highlight path,
section.lage figure svg g#legende g.highlight path {
    fill: var(--wp--preset--color--accent-orange) !important;
    transition: fill 0.3s ease;
}

.wp-block-post-content section.lage figure svg g#legende g.highlight text tspan,
section.lage figure svg g#legende g.highlight text tspan {
    fill: var(--wp--preset--color--accent-orange) !important;
    transition: fill 0.3s ease;
}

section.wohnungen {
    display: grid;
    grid-template-columns: repeat(12, minmax(auto, 1fr));
    grid-template-rows: repeat(3, auto);
    gap: 2rem;
    max-width: var(--wp--style--global--wide-size);
    margin-left: auto;
    margin-right: auto;
}

section.wohnungen>h2 {
    grid-column: 7 / span 6;
    grid-row: 1 / span 1;
    margin-left: 0 !important;
}

section.wohnungen>p {
    grid-column: 7 / span 6;
    grid-row: 2 / span 1;
}

section.hero {
    display: grid;
    grid-template-columns: repeat(12, minmax(auto, 1fr));
    grid-template-rows: repeat(6, auto);
    gap: 2rem;
    max-width: var(--wp--style--global--wide-size);
    margin-left: auto;
    margin-right: auto;
}

section.hero>figure:nth-of-type(1) {
    grid-column: 3 / span 8;
    grid-row: 1 / span 6;
    z-index: 1;
}

section.hero>figure.stoerer {
    grid-column: 9 / span 3;
    grid-row: 2 / span 2;
    z-index: 3;
}

section.hero>figure.stoerer img {
    max-height: 14rem;
    transform: rotate(-20deg);
    height: 14rem;
}


section.hero>figure:nth-of-type(3) {
    grid-column: 2 / span 5;
    grid-row: 6 / span 1;
    z-index: 2;
}

section.hero>figure:nth-of-type(3) img {
    max-height: 37rem;
}

section.hero>figure:nth-of-type(1) img {
    width: 100% !important;
    height: auto;
    display: block;
}

section.facts-figures {
    display: grid;
    grid-template-columns: repeat(12, minmax(auto, 1fr));
    grid-template-rows: repeat(4, auto);
    gap: 2rem;
    max-width: var(--wp--style--global--wide-size);
    margin-left: auto;
    margin-right: auto;
    overflow-anchor: auto;
}

section.facts-figures>h2 {
    grid-column: 2 / span 6;
    grid-row: 1 / span 1;
    margin-left: 0 !important;

}

section.facts-figures .counter {
    font-size: clamp(3rem, 0.8571rem + 5.7143vw, 6rem);
    margin: 0;
}

section.facts-figures>h2:nth-of-type(2) {
    grid-column: 4 / span 6;
    grid-row: 5 / span 1;
    margin-left: 0 !important;
    margin-top: 5rem;
}

section.facts-figures>p:nth-of-type(1) {
    grid-column: 4 / span 8;
    grid-row: 6 / span 1;
    align-self: end;
}

section.facts-figures>p:nth-of-type(2) {
    grid-column: 4 / span 8;
    grid-row: 3 / span 1;
    align-self: end;
}

section.facts-figures div.is-layout-grid {
    grid-column: 1 / span 12;
    grid-row: 2 / span 1;
    display: grid;
    grid-template-columns: subgrid;
    grid-template-rows: repeat(3, auto);
    gap: 2rem;
    max-width: var(--wp--style--global--wide-size);
    margin-left: auto;
    margin-right: auto;
    /* justify-items: center;
    align-items: center; */
    width: 100%;
}

section.facts-figures .figure-box {
    min-height: 12rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

section.facts-figures .figure-box>* {
    width: 100%;
}

section.facts-figures .wp-block-heading.counter {
    white-space: nowrap;
}

section.facts-figures div.wp-block-cb-carousel-v2 {
    grid-column: 4 / span 8;
    grid-row: 4 / span 1;
    width: 100%;
    /* margin-top: 10rem; */
}

section.facts-figures>div.is-layout-flex {
    grid-column: 4 / span 8;
    grid-row: 7 / span 1;
    width: 100%;
}

/* section.facts-figures .figure-box {
    aspect-ratio: 1 / 1;
} */

section.facts-figures .figure-box:nth-of-type(1) {
    grid-column: 2 / span 3;
    grid-row: 1 / span 1;

}

section.facts-figures .figure-box:nth-of-type(2) {
    grid-column: 5 / span 5;
    grid-row: 1 / span 1;
}

section.facts-figures .figure-box:nth-of-type(3) {
    grid-column: 2 / span 5;
    grid-row: 2 / span 2;
}

section.facts-figures .figure-box:nth-of-type(4) {
    grid-column: 7 / span 3;
    grid-row: 2 / span 1;
}

section.facts-figures .figure-box:nth-of-type(5) {
    grid-column: 7 / span 3;
    grid-row: 3 / span 1;
}

/* section.facts-figures .figure-box:nth-of-type(6) {
    grid-column: 7 / span 3;
    grid-row: 3 / span 1;
} */

section.facts-figures div.wp-block-group>h3 {
    /* font-size: 8rem; */
    font-size: clamp(4rem, 1.1429rem + 7.619vw, 8rem);
}

section.facts-figures>figure {
    grid-column: 10 / span 3;
    grid-row: 2 / span 1;
    width: auto;
    height: 20rem;
    align-self: self-end;
    z-index: 5;
}

section.facts-figures>figure img {
    width: auto;
    height: 22rem;
    position: relative;
    top: 10rem;
}

section.facts-figures .figure-box p,
section.facts-figures .figure-box h3 {
    line-height: 120% !important;
}

section.facts-figures .figure-box h3:nth-of-type(2) {
    margin-block-start: 0;
    margin-block-end: 0;
}

section.dokumentation {
    display: grid;
    grid-template-columns: repeat(12, minmax(auto, 1fr));
    grid-template-rows: repeat(3, auto);
    gap: 2rem;
    max-width: var(--wp--style--global--wide-size);
    margin-left: auto;
    margin-right: auto;
}

section.dokumentation>h2 {
    grid-column: 4 / span 8;
    grid-row: 1 / span 1;
    margin-left: 0 !important;
}

section.dokumentation>p {
    grid-column: 4 / span 8;
    grid-row: 2 / span 1;
}

section.dokumentation>.wp-block-buttons {
    grid-column: 4 / span 8;
    grid-row: 3 / span 1;
    margin-left: 0 !important;
}

section.kontakt-wrapper {
    display: flex;
    flex-direction: row;
    gap: 5rem;
    flex-wrap: wrap;
    max-width: var(--wp--style--global--content-size);
    margin-left: auto;
    margin-right: auto;
    align-items: flex-start;
}

section.kontakt {
    display: grid;
    grid-template-columns: repeat(6, minmax(auto, 1fr));
    grid-template-rows: repeat(3, auto);
    gap: 2rem;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    flex-shrink: 1;
    flex-grow: 1;
    flex-basis: 0;
    min-width: 0;
    padding: 2.5rem 0 0 0;
}

section.kontakt>h2 {
    grid-column: 1 / span 6;
    grid-row: 1 / span 1;
    margin-left: 0 !important;
}

section.kontakt>p {
    grid-column: 1 / span 6;
    grid-row: 2 / span 1;
    margin-left: 0 !important;
}

section.kontakt>div.wp-block-contact-form-7-contact-form-selector {
    grid-column: 1 / span 6;
    grid-row: 3 / span 1;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

section.naechste-schritte {
    display: grid;
    grid-template-columns: repeat(6, minmax(auto, 1fr));
    grid-template-rows: repeat(3, auto);
    gap: 2rem;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0;
    min-width: 0;
    background-color: var(--wp--preset--color--light-brown-grey);
    border-radius: var(--wp--custom--border-radius--lg);
    padding: 2.5rem;
}

section.naechste-schritte .naechste-schritte-wrapper {
    grid-column: 1 / span 6;
    grid-row: 1 / span 3;
    display: grid;
    grid-template-columns: subgrid;
    grid-template-rows: subgrid;
    gap: 2rem;
    width: 100%;

    /* padding-top: 5rem;
    padding-bottom: 5rem; */
    overflow: hidden;
    /* padding: 2.5rem; */
}

:where(.editor-styles-wrapper) section.naechste-schritte .naechste-schritte-wrapper {
    display: flex;
    flex-direction: column;
}

section.naechste-schritte h2 {
    grid-column: 1 / span 6;
    grid-row: 1 / span 1;
    margin-left: 0 !important;
}

section.naechste-schritte .wp-block-buttons {
    grid-column: 1 / span 6;
    grid-row: 2 / span 1;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
}

section.naechste-schritte .wp-block-buttons .wp-block-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1;
    min-width: 0;
    justify-content: space-between;
}

section.naechste-schritte .wp-block-buttons .wp-block-button:nth-of-type(5) {
    flex-grow: 0;
    flex-basis: auto;
}

section.naechste-schritte .wp-block-buttons .wp-block-button__link {
    display: inline-flex;
    flex-direction: row;
    width: 3.75rem;
    height: 3.75rem;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    aspect-ratio: 1;
    border-radius: var(--wp--custom--border-radius--full);
    font-size: 1.25rem;
}

section.naechste-schritte .wp-block-buttons .wp-block-button__link.active {
    background-color: var(--wp--preset--color--accent-orange);
    color: var(--wp--preset--color--light-brown-grey);
}

section.naechste-schritte .wp-block-buttons .wp-block-button::after {
    content: "";
    display: block;
    flex-grow: 1;
    border-bottom: 1px solid var(--wp--preset--color--accent-orange);
    margin-left: 0.75rem;
    margin-right: 0.75rem;
}

section.naechste-schritte .wp-block-buttons .wp-block-button:last-child::after {
    display: none;
}

section.naechste-schritte article {
    grid-column: 1 / span 6;
    grid-row: 3 / span 1;
    margin-left: 0 !important;
    margin-top: 4rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
}

.block-editor-block-list__block section.naechste-schritte article {
    max-height: none;
    opacity: 1;
}

section.naechste-schritte article.active {
    max-height: 600px;
    opacity: 1;
}

/* footer styles */
footer {
    margin-top: 10rem;
    ;
}

footer p {
    line-height: 150%;
}

footer figure img {
    height: 4rem !important;
    width: auto !important;
}

footer div.is-layout-flex {
    gap: 1rem;
}

/* .vier-null-vier {
        flex-wrap: wrap !important;
    } */

section.vier-null-vier>h1 {
    font-size: clamp(10rem, 2.8571rem + 19.0476vw, 20rem) !important;
    flex-basis: 60%;
}

section.impressum h2,
section.datenschutz h2 {
    font-size: var(--wp--custom--heading-sizes--h-2-small--font-size);
}

section.naechste-schritte span.toSansSerif {
    font-family: var(--wp--preset--font-family--pp-fragment-glare);
    font-style: italic;
}

[data-rich-text-placeholder="Header-Beschriftung"] {
    display: none;
}

/* Tablet */
@media (max-width: 1280px) {

    :root :where(p) {
        font-size: 1.25rem;
    }

    /* h1 {
        font-size: 3rem;
    } */

    .wp-block-details summary {
        padding: 1.25rem 0.5rem;
    }

    .wp-block-quote p {
        font-size: 2.5rem;
        line-height: 110%;
    }

    .wp-block-post-content section.lage>figure.wp-block-table table thead tr th,
    section.lage>figure.wp-block-table table thead tr th {
        font-size: 0.75rem;
        max-width: 25%;
        width: auto;
    }

    .wp-block-post-content section.lage>figure.wp-block-table table tbody tr td,
    section.lage>figure.wp-block-table table tbody tr td {
        font-size: 0.75rem;
        max-width: 25%;
        width: auto;
    }

    .wp-block-post-content section.lage>figure.wp-block-table,
    section.lage>figure.wp-block-table {
        grid-column: 6 / span 6;
        padding: 1.5rem;
        margin-top: -5rem !important;
        z-index: 100;
    }

    .wp-block-post-content section.lage>figure.wp-block-table table thead tr th:nth-of-type(1)::after,
    section.lage>figure.wp-block-table table thead tr th:nth-of-type(1)::after {
        content: "";
        /* margin-left: 0.75rem; */
        /* margin-right: 0; */
        display: inline-block;
        vertical-align: middle;
        width: 100%;
        height: 1rem;

        background-image: url('data:image/svg+xml,<svg viewBox="0 0 16 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 10C8.55 10 9.02083 9.80417 9.4125 9.4125C9.80417 9.02083 10 8.55 10 8C10 7.45 9.80417 6.97917 9.4125 6.5875C9.02083 6.19583 8.55 6 8 6C7.45 6 6.97917 6.19583 6.5875 6.5875C6.19583 6.97917 6 7.45 6 8C6 8.55 6.19583 9.02083 6.5875 9.4125C6.97917 9.80417 7.45 10 8 10ZM8 17.35C10.0333 15.4833 11.5417 13.7875 12.525 12.2625C13.5083 10.7375 14 9.38333 14 8.2C14 6.38333 13.4208 4.89583 12.2625 3.7375C11.1042 2.57917 9.68333 2 8 2C6.31667 2 4.89583 2.57917 3.7375 3.7375C2.57917 4.89583 2 6.38333 2 8.2C2 9.38333 2.49167 10.7375 3.475 12.2625C4.45833 13.7875 5.96667 15.4833 8 17.35ZM8 20C5.31667 17.7167 3.3125 15.5958 1.9875 13.6375C0.6625 11.6792 0 9.86667 0 8.2C0 5.7 0.804167 3.70833 2.4125 2.225C4.02083 0.741667 5.88333 0 8 0C10.1167 0 11.9792 0.741667 13.5875 2.225C15.1958 3.70833 16 5.7 16 8.2C16 9.86667 15.3375 11.6792 14.0125 13.6375C12.6875 15.5958 10.6833 17.7167 8 20Z" fill="%23090402"/></svg>');
        background-repeat: no-repeat;
        background-position: left center;
        background-size: contain;
    }

    .wp-block-post-content section.lage>figure.wp-block-table table thead tr th:nth-of-type(2)::after,
    section.lage>figure.wp-block-table table thead tr th:nth-of-type(2)::after {
        content: "";
        /* margin-left: 0.75rem; */
        /* margin-right: 0; */
        display: inline-block;
        vertical-align: middle;
        width: 100%;
        height: 1.25rem;

        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="%231f1f1f"><path d="m280-40 112-564-72 28v136h-80v-188l202-86q14-6 29.5-7t29.5 4q14 5 26.5 14t20.5 23l40 64q26 42 70.5 69T760-520v80q-70 0-125-29t-94-74l-25 123 84 80v300h-80v-260l-84-64-72 324h-84Zm203.5-723.5Q460-787 460-820t23.5-56.5Q507-900 540-900t56.5 23.5Q620-853 620-820t-23.5 56.5Q573-740 540-740t-56.5-23.5Z"/></svg>');
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }

    .wp-block-post-content section.lage>figure.wp-block-table table thead tr th:nth-of-type(3)::after,
    section.lage>figure.wp-block-table table thead tr th:nth-of-type(3)::after {
        content: "";
        /* margin-left: 0.75rem; */
        /* margin-right: 0; */
        display: inline-block;
        vertical-align: middle;
        width: 100%;
        height: 1.25rem;

        background-image: url('data:image/svg+xml,<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 19V20C6 20.2833 5.90417 20.5208 5.7125 20.7125C5.52083 20.9042 5.28333 21 5 21H4C3.71667 21 3.47917 20.9042 3.2875 20.7125C3.09583 20.5208 3 20.2833 3 20V12L5.1 6C5.2 5.7 5.37917 5.45833 5.6375 5.275C5.89583 5.09167 6.18333 5 6.5 5H17.5C17.8167 5 18.1042 5.09167 18.3625 5.275C18.6208 5.45833 18.8 5.7 18.9 6L21 12V20C21 20.2833 20.9042 20.5208 20.7125 20.7125C20.5208 20.9042 20.2833 21 20 21H19C18.7167 21 18.4792 20.9042 18.2875 20.7125C18.0958 20.5208 18 20.2833 18 20V19H6ZM5.8 10H18.2L17.15 7H6.85L5.8 10ZM7.5 16C7.91667 16 8.27083 15.8542 8.5625 15.5625C8.85417 15.2708 9 14.9167 9 14.5C9 14.0833 8.85417 13.7292 8.5625 13.4375C8.27083 13.1458 7.91667 13 7.5 13C7.08333 13 6.72917 13.1458 6.4375 13.4375C6.14583 13.7292 6 14.0833 6 14.5C6 14.9167 6.14583 15.2708 6.4375 15.5625C6.72917 15.8542 7.08333 16 7.5 16ZM16.5 16C16.9167 16 17.2708 15.8542 17.5625 15.5625C17.8542 15.2708 18 14.9167 18 14.5C18 14.0833 17.8542 13.7292 17.5625 13.4375C17.2708 13.1458 16.9167 13 16.5 13C16.0833 13 15.7292 13.1458 15.4375 13.4375C15.1458 13.7292 15 14.0833 15 14.5C15 14.9167 15.1458 15.2708 15.4375 15.5625C15.7292 15.8542 16.0833 16 16.5 16ZM5 17H19V12H5V17Z" fill="%23090402"/></svg>');
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }

    .wp-block-post-content section.lage>figure.wp-block-table table thead tr th:nth-of-type(4)::after,
    section.lage>figure.wp-block-table table thead tr th:nth-of-type(4)::after {
        content: "";
        /* margin-left: 0.75rem; */
        /* margin-right: 0; */
        display: inline-block;
        vertical-align: middle;
        width: 100%;
        height: 1.25rem;

        background-image: url('data:image/svg+xml,<svg viewBox="0 0 49 25" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(%23clip0_377_9)"><path d="M31 22C30.7167 22 30.4792 21.9042 30.2875 21.7125C30.0958 21.5208 30 21.2833 30 21V18.95C29.7 18.6167 29.4583 18.2458 29.275 17.8375C29.0917 17.4292 29 16.9833 29 16.5V7C29 5.61667 29.6417 4.60417 30.925 3.9625C32.2083 3.32083 34.2333 3 37 3C39.8667 3 41.9167 3.30833 43.15 3.925C44.3833 4.54167 45 5.56667 45 7V16.5C45 16.9833 44.9083 17.4292 44.725 17.8375C44.5417 18.2458 44.3 18.6167 44 18.95V21C44 21.2833 43.9042 21.5208 43.7125 21.7125C43.5208 21.9042 43.2833 22 43 22H42C41.7167 22 41.4792 21.9042 41.2875 21.7125C41.0958 21.5208 41 21.2833 41 21V20H33V21C33 21.2833 32.9042 21.5208 32.7125 21.7125C32.5208 21.9042 32.2833 22 32 22H31ZM37.05 6H42.65H31.45H37.05ZM41 13H31H43H41ZM31 11H43V8H31V11ZM33.5 17C33.9167 17 34.2708 16.8542 34.5625 16.5625C34.8542 16.2708 35 15.9167 35 15.5C35 15.0833 34.8542 14.7292 34.5625 14.4375C34.2708 14.1458 33.9167 14 33.5 14C33.0833 14 32.7292 14.1458 32.4375 14.4375C32.1458 14.7292 32 15.0833 32 15.5C32 15.9167 32.1458 16.2708 32.4375 16.5625C32.7292 16.8542 33.0833 17 33.5 17ZM40.5 17C40.9167 17 41.2708 16.8542 41.5625 16.5625C41.8542 16.2708 42 15.9167 42 15.5C42 15.0833 41.8542 14.7292 41.5625 14.4375C41.2708 14.1458 40.9167 14 40.5 14C40.0833 14 39.7292 14.1458 39.4375 14.4375C39.1458 14.7292 39 15.0833 39 15.5C39 15.9167 39.1458 16.2708 39.4375 16.5625C39.7292 16.8542 40.0833 17 40.5 17ZM31.45 6H42.65C42.4 5.71667 41.8625 5.47917 41.0375 5.2875C40.2125 5.09583 38.8833 5 37.05 5C35.2667 5 33.9625 5.10417 33.1375 5.3125C32.3125 5.52083 31.75 5.75 31.45 6ZM33 18H41C41.55 18 42.0208 17.8042 42.4125 17.4125C42.8042 17.0208 43 16.55 43 16V13H31V16C31 16.55 31.1958 17.0208 31.5875 17.4125C31.9792 17.8042 32.45 18 33 18Z" fill="%23090402"/><path d="M4 16.5V7C4 6.11667 4.22917 5.4125 4.6875 4.8875C5.14583 4.3625 5.75 3.9625 6.5 3.6875C7.25 3.4125 8.10417 3.22917 9.0625 3.1375C10.0208 3.04583 11 3 12 3C13.1 3 14.1375 3.04583 15.1125 3.1375C16.0875 3.22917 16.9375 3.4125 17.6625 3.6875C18.3875 3.9625 18.9583 4.3625 19.375 4.8875C19.7917 5.4125 20 6.11667 20 7V16.5C20 17.4833 19.6625 18.3125 18.9875 18.9875C18.3125 19.6625 17.4833 20 16.5 20L18 21.5V22H16L14 20H10L8 22H6V21.5L7.5 20C6.51667 20 5.6875 19.6625 5.0125 18.9875C4.3375 18.3125 4 17.4833 4 16.5ZM12 5C10.2333 5 8.94167 5.10417 8.125 5.3125C7.30833 5.52083 6.75 5.75 6.45 6H17.65C17.4 5.71667 16.8625 5.47917 16.0375 5.2875C15.2125 5.09583 13.8667 5 12 5ZM6 11H11V8H6V11ZM16.5 13H6H18H16.5ZM13 11H18V8H13V11ZM8.5 17C8.93333 17 9.29167 16.8583 9.575 16.575C9.85833 16.2917 10 15.9333 10 15.5C10 15.0667 9.85833 14.7083 9.575 14.425C9.29167 14.1417 8.93333 14 8.5 14C8.06667 14 7.70833 14.1417 7.425 14.425C7.14167 14.7083 7 15.0667 7 15.5C7 15.9333 7.14167 16.2917 7.425 16.575C7.70833 16.8583 8.06667 17 8.5 17ZM15.5 17C15.9333 17 16.2917 16.8583 16.575 16.575C16.8583 16.2917 17 15.9333 17 15.5C17 15.0667 16.8583 14.7083 16.575 14.425C16.2917 14.1417 15.9333 14 15.5 14C15.0667 14 14.7083 14.1417 14.425 14.425C14.1417 14.7083 14 15.0667 14 15.5C14 15.9333 14.1417 16.2917 14.425 16.575C14.7083 16.8583 15.0667 17 15.5 17ZM7.5 18H16.5C16.9333 18 17.2917 17.8583 17.575 17.575C17.8583 17.2917 18 16.9333 18 16.5V13H6V16.5C6 16.9333 6.14167 17.2917 6.425 17.575C6.70833 17.8583 7.06667 18 7.5 18ZM12 6H17.65H6.45H12Z" fill="%23090402"/><line x1="24.5" x2="24.5" y2="25" stroke="%23090402"/></g><defs><clipPath id="clip0_377_9"><rect width="49" height="25" fill="white"/></clipPath></defs></svg>');
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }

    .wp-block-post-content section.lage>figure.wp-block-table table tbody tr td:nth-of-type(2),
    .wp-block-post-content section.lage>figure.wp-block-table table thead tr th:nth-of-type(2),
    section.lage>figure.wp-block-table table tbody tr td:nth-of-type(2),
    section.lage>figure.wp-block-table table thead tr th:nth-of-type(2) {
        width: 15%;
        text-align: center;
    }

    .wp-block-post-content section.lage>figure.wp-block-table table tbody tr td:nth-of-type(3),
    .wp-block-post-content section.lage>figure.wp-block-table table thead tr th:nth-of-type(3),
    section.lage>figure.wp-block-table table tbody tr td:nth-of-type(3),
    section.lage>figure.wp-block-table table thead tr th:nth-of-type(3) {
        width: 15%;
        text-align: center;
    }

    .wp-block-post-content section.lage>figure.wp-block-table table tbody tr td:nth-of-type(4),
    .wp-block-post-content section.lage>figure.wp-block-table table thead tr th:nth-of-type(4),
    section.lage>figure.wp-block-table table tbody tr td:nth-of-type(4),
    section.lage>figure.wp-block-table table thead tr th:nth-of-type(4) {
        width: 15%;
        text-align: center;
    }

    .wp-block-post-content section.lage>figure.wp-block-image:nth-last-of-type(1),
    section.lage>figure.wp-block-image:nth-last-of-type(1) {
        grid-column: 3 / span 2;
        grid-row: 4 / span 1;
        width: 100%;
        height: 0px;
        margin-block-start: 0;
        margin-block-end: 0;
        margin: 0;
        padding: 0;
        overflow: visible;
    }


    section.lage,
    section.wohnungen,
    section.facts-figures,
    section.dokumentation {
        margin-top: 5rem !important;
    }

    div.wp-block-group:has(>nav) {
        max-width: calc(100dvw - 4rem);
    }

    section.hero>figure:nth-of-type(1) {
        grid-column: 2 / span 10;
    }

    .wp-block-post-content section.zitat figure:nth-of-type(1),
    section.zitat figure:nth-of-type(1) {
        grid-column: 2 / span 3;
        grid-row: 1 / span 1;
    }

    .wp-block-post-content section.zitat figure:nth-of-type(2),
    section.zitat figure:nth-of-type(2) {
        grid-column: 4 / span 9;
        grid-row: 1 / span 3;
    }

    .wp-block-post-content section.zitat figure:nth-of-type(1) img,
    section.zitat figure:nth-of-type(1) img {
        max-height: 16rem;
        width: auto;
    }

    .wp-block-post-content section.zitat blockquote,
    section.zitat blockquote {
        grid-column: 1 / span 8;
        grid-row: 4 / span 1;
    }

    .wp-block-post-content section.lage>div:nth-of-type(2),
    section.lage>div:nth-of-type(2) {
        grid-column: 3 / span 10;
    }

    .wp-block-post-content section.lage .is-layout-grid figure img,
    section.lage .is-layout-grid figure img {
        max-height: 11rem;
        top: -7rem;
        right: 0rem;
    }

    section.wohnungen>p {
        grid-column: 2 / span 10;
        grid-row: 2 / span 1;
    }

    section.wohnungen>h2 {
        grid-column: 2 / span 10;
        grid-row: 1 / span 1;
        margin-left: 0 !important;
    }

    .wp-block-post-content .wohnungen .wp-block-enzian-sell-index,
    .wp-block-enzian-sell-index {
        display: grid;
        grid-template-columns: subgrid;
        grid-template-rows: auto auto auto;
        grid-row: 3 / span 2;
        grid-column: 1 / span 12;
        margin-block-start: auto;
        margin-block-end: auto;
        width: 100%;
    }

    .wp-block-enzian-sell-index svg,
    .wp-block-enzian-sell-index>div>svg {
        width: 100%;
        height: 85%;
        display: block;
        margin: 0 auto;
        grid-column: 1 / span 12;
        grid-row: 1 / span 1;
        align-self: self-end;
        overflow: visible;
        transform: translate(0px, 0px) !important;
    }

    .sell-index {
        grid-column: 2 / span 10;
        grid-row: 2 / span 1;
        /* margin-bottom: 5rem; */
        align-self: self-end;
    }

    .wp-block-enzian-sell-index svg>g,
    .wp-block-enzian-sell-index>div>svg>g {
        transform: translateY(0rem);
    }

    section.facts-figures .figure-box:nth-of-type(1) {
        grid-column: 2 / span 4;
        grid-row: 1 / span 1;

    }

    section.facts-figures .figure-box:nth-of-type(2) {
        grid-column: 6 / span 6;
        grid-row: 1 / span 1;
    }

    section.facts-figures .figure-box:nth-of-type(3) {
        grid-column: 2 / span 10;
        grid-row: 2 / span 1;
    }

    section.facts-figures .figure-box:nth-of-type(4) {
        grid-column: 2 / span 6;
        grid-row: 3 / span 1;
    }

    section.facts-figures .figure-box:nth-of-type(5) {
        grid-column: 8 / span 4;
        grid-row: 3 / span 1;
    }

    section.facts-figures>figure {
        grid-column: 1 / span 3;
        grid-row: 3 / span 1;
        width: auto;
        height: 20rem;
        align-self: self-start;
        z-index: 5;
    }

    section.facts-figures>p:nth-of-type(1) {
        grid-column: 4 / span 8;
        grid-row: 6 / span 1;
        align-self: end;
    }

    /* section.facts-figures div.wp-block-group>h3 {
        font-size: 7rem;
    } */

    section.facts-figures>p:nth-of-type(2) {
        grid-row: 3 / span 1;
    }

    section.facts-figures>h2:nth-of-type(2) {
        grid-column: 4 / span 6;
        grid-row: 5 / span 1;
        margin-left: 0 !important;
        margin-top: 5rem;
    }

    section.facts-figures>div.is-layout-flex {
        grid-column: 2 / span 10;
        grid-row: 7 / span 1;
        width: 100%;
    }

    section.naechste-schritte .naechste-schritte-wrapper {
        grid-column: 2 / span 10;
        grid-row: 1 / span 3;
        padding: 3.5rem;
    }

    section.naechste-schritte {
        grid-template-columns: repeat(12, minmax(auto, 1fr));
    }

    .wp-block-details> :where( :not(summary)) {
        margin-left: 0rem;
        margin-right: 0rem;
    }

    section.dokumentation>h2 {
        grid-column: 2 / span 8;
        grid-row: 1 / span 1;
        margin-left: 0 !important;
    }

    section.dokumentation>p {
        grid-column: 2 / span 8;
        grid-row: 2 / span 1;
    }

    section.dokumentation>.wp-block-buttons {
        grid-column: 2 / span 8;
        grid-row: 3 / span 1;
        margin-left: 0 !important;
    }

    section.kontakt-wrapper {
        flex-direction: column;
        padding: 2rem;
    }

    section.kontakt {
        width: 100%;
    }

    section.naechste-schritte .naechste-schritte-wrapper {
        /* grid-column: 1 / span 6; */
        grid-row: 1 / span 3;
        padding: 3.5rem;
    }

    section.kontakt>h2 {
        grid-column: 2 / span 6;
        grid-row: 1 / span 1;
        margin-left: 0 !important;
    }

    section.kontakt>p {
        grid-column: 2 / span 8;
        grid-row: 2 / span 1;
        margin-left: 0 !important;
    }

    section.kontakt,
    .wpcf7 {
        display: grid;
        grid-template-columns: repeat(12, minmax(auto, 1fr));
        grid-template-rows: repeat(3, auto);
        gap: 2rem;
        max-width: var(--wp--style--global--wide-size);
        margin-left: auto;
        margin-right: auto;
    }

    section.kontakt>div.wp-block-contact-form-7-contact-form-selector {
        grid-column: 1 / span 12;
        grid-row: 3 / span 1;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .wpcf7-form {
        grid-column: 2 / span 10;
        grid-row: 1 / span 6;
        display: flex;
    }

    .wp-block-post-content section.lage .wp-block-shortcode,
    section.lage>figure:nth-of-type(1) {
        margin-left: -1.75rem !important;
        margin-right: -1.75rem !important;
        width: calc(100% + 3.5rem) !important;
        max-width: calc(var(--wp--style--global--wide-size) - 1.75rem) !important;
    }

    section.lage figure svg:nth-of-type(2) {
        right: clamp(1.75rem, -1.2857rem + 8.0952vw, 6rem);
    }

    section.naechste-schritte .wp-block-buttons {
        grid-column: 1 / span 10;
    }

    .naechste-schritte h2 {
        grid-column: 1 / span 10;
    }

    section.naechste-schritte article {
        grid-column: 1 / span 10;
    }

}


@media (max-width: 900px) {
    nav.nav-desktop {
        display: none;
    }

    div.wp-block-group:has(>nav.nav-mobile)>div.wp-block-buttons {
        display: flex;
        margin: 0;
        margin-left: auto;
        z-index: 1101;
    }

    nav.nav-mobile {
        display: block;
        position: relative;
        /* top: calc(100% + 0.75rem); */
        /* right: 1rem; */
        /* width: 100%; */
        margin: 0;
        z-index: 1100;
        overflow: hidden;
        /* flex-shrink: 1;
        flex-grow: 0;
        flex-basis: auto; */
        position: absolute;
        width: 100%;
        top: 7rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: var(--wp--custom--border-radius--lg);
    }


    /* Toggle-Button */
    div.wp-block-group:has(>nav.nav-mobile)>div.wp-block-buttons .wp-block-button:first-child .wp-block-button__link,
    div.wp-block-group:has(>nav.nav-mobile)>div.wp-block-buttons button.nav-toggle {
        width: 3rem;
        height: 3rem;
        min-width: 3rem;
        border-radius: var(--wp--custom--border-radius--full);
        border: 1px solid var(--wp--preset--color--dark-brown);
        background-color: var(--wp--preset--color--light-brown-grey);
        color: var(--wp--preset--color--dark-brown);
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.25s ease, color 0.25s ease;
        font-size: 0;
        line-height: 1;
    }

    div.wp-block-group:has(>nav.nav-mobile)>div.wp-block-buttons .wp-block-button:first-child .wp-block-button__link:hover,
    div.wp-block-group:has(>nav.nav-mobile)>div.wp-block-buttons button.nav-toggle:hover {
        background-color: var(--wp--preset--color--accent-orange);
        color: var(--wp--preset--color--light-brown-grey);
    }

    /* Hamburger / Close Icon via CSS (kein zusätzliches Markup nötig) */
    div.wp-block-group:has(>nav.nav-mobile)>div.wp-block-buttons .wp-block-button:first-child .wp-block-button__link::before,
    div.wp-block-group:has(>nav.nav-mobile)>div.wp-block-buttons button.nav-toggle::before {
        content: '';
        width: 1.25rem;
        height: 1.25rem;
        background-color: currentColor;
        mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6Zm0 5h18v2H3v-2Zm0 5h18v2H3v-2Z"/></svg>');
        mask-repeat: no-repeat;
        mask-position: center;
        mask-size: contain;
        display: block;
        transition: transform 0.25s ease;
    }

    div.wp-block-group:has(>div.wp-block-buttons button.nav-toggle[aria-expanded="true"])>div.wp-block-buttons .wp-block-button:first-child .wp-block-button__link::before,
    div.wp-block-group:has(>nav.nav-mobile)>div.wp-block-buttons button.nav-toggle[aria-expanded="true"]::before {
        mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"/></svg>');
        transform: rotate(90deg);
    }

    /* Menü fährt aus der Leiste nach unten */
    nav.nav-mobile.has-toggle>ul.wp-block-navigation__container {
        position: relative;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transform: translateY(-0.5rem);
        pointer-events: none;
        margin-top: 0;
        padding: 0 1.25rem;
        background-color: var(--wp--preset--color--light-brown-grey);
        transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease, padding 0.25s ease;
        z-index: 1100;
    }

    nav.nav-mobile.has-toggle.is-open>ul.wp-block-navigation__container,
    nav.nav-mobile.has-toggle:has(button.nav-toggle[aria-expanded="true"])>ul.wp-block-navigation__container {
        max-height: 24rem;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        padding: 1rem 1.25rem 1.25rem;
    }

    nav.nav-mobile.has-toggle>ul.wp-block-navigation__container {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }


    nav.nav-mobile>ul.wp-block-navigation__container .wp-block-navigation-item,
    nav.nav-mobile>ul.wp-block-navigation__container .wp-block-navigation-item__content {
        /* width: 100%; */
        text-align: center;
        justify-content: center;
    }

    nav.nav-mobile>ul.wp-block-navigation__container .wp-block-navigation-item__content {
        font-size: 1.5rem;
    }

    .wp-block-post-content section.lage .wp-block-shortcode,
    section.lage>figure:nth-of-type(1) svg:nth-of-type(1) {
        min-width: 850px;
        height: auto;
        z-index: 4 !important;
    }

    section.lage>figure:nth-of-type(1) svg:nth-of-type(2) {
        z-index: 5;
    }

    .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column {
        flex-basis: 100%;
        flex-grow: 1;
    }

    section.facts-figures>div.is-layout-flex {
        flex-wrap: wrap !important;
    }

    section.vier-null-vier {
        flex-wrap: wrap !important;
    }

    .sticky-col:nth-of-type(1) {
        position: sticky;
        left: 0;
        background: var(--wp--preset--color--light-brown-grey);
        z-index: 2;
    }

    .sticky-col:nth-of-type(2) {
        position: sticky;
        left: 5rem;
        background: var(--wp--preset--color--light-brown-grey);
        z-index: 2;
    }

    .sell-index {
        overflow-x: auto;
        overflow-y: clip;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        padding-bottom: 40px;
    }

}


/* Mobile */
@media (max-width: 768px) {
    /* div.wp-block-group:has(>nav) {
        width: min(var(--wp--style--global--wide-size), calc(100dvw - 2rem));
        padding: 0 1rem;
    } */

    .wp-block-post-content section.lage>figure.wp-block-table table,
    section.lage>figure.wp-block-table table {
        table-layout: auto;
    }

    section.lage,
    section.wohnungen,
    section.facts-figures,
    section.dokumentation {
        margin-top: 3rem !important;
    }

    section.kontakt-wrapper {
        flex-direction: column;
    }

    .sell-index-table td {
        min-width: 5rem;
    }

    .sell-index-table thead tr:nth-of-type(1) {
        height: 4rem;
    }

    .sell-index-table thead tr:nth-of-type(1) .sticky-col:nth-of-type(1) {
        border-top-left-radius: 1rem;
    }

    .sell-index-table thead tr:nth-of-type(1) .sticky-col:nth-of-type(2) {
        border-top-right-radius: 1rem;
    }

    .sell-index-table tbody tr:last-of-type .sticky-col:nth-of-type(1)::after {
        border-bottom-left-radius: 1rem;
    }

    .sell-index-table tbody tr:last-of-type .sticky-col:nth-of-type(2)::after {
        border-bottom-right-radius: 1rem;
    }

    .sell-index-table tbody tr:last-of-type .sticky-col:nth-of-type(1)::after,
    .sell-index-table tbody tr:last-of-type .sticky-col:nth-of-type(2)::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 1px);
        height: 2rem;
        background: var(--wp--preset--color--light-brown-grey);
        z-index: 2;
        pointer-events: none;
    }

    section.naechste-schritte .naechste-schritte-wrapper {
        grid-column: 1 / span 12;
    }

    section.naechste-schritte .wp-block-buttons {
        grid-column: 1 / span 12;
    }

    section.naechste-schritte article {
        grid-column: 1 / span 12;
    }


    figure.wp-block-table.distances td:first-child,
    figure.wp-block-table.distances th:first-child {
        position: sticky;
        left: 0;
        background: var(--wp--preset--color--light-brown-grey);
        z-index: 2;
    }

    figure.wp-block-table.distances td:first-child {

        box-shadow: inset 0 1px 0 0 var(--wp--preset--color--dark-brown);
    }
}


@media (max-width: 600px) {

    section,
    .is-layout-grid,
    .wpcf7.js {
        gap: 0.25rem !important;
        /* overflow: hidden; */
    }

    :root :where(section):not(.sell-index) {
        margin-block-start: 3rem;
    }

    section.kontakt,
    section.naechste-schritte {
        margin-block-start: 3rem !important;
    }

    section>h2:nth-of-type(1),
    section>h1:nth-of-type(1),
    section>div:nth-of-type(1)>h2:nth-of-type(1),
    section>div:nth-of-type(1)>h1:nth-of-type(1) {
        margin-block-start: 0rem !important;
    }

    /* section > section:nth-of-type(1),
    section > div:nth-of-type(1):not(:has(.figure-box)) {
        margin-block-start: 0rem !important;
    } */

    section>section:nth-of-type(1),
    section> :first-child:not(:has(.figure-box)) {
        margin-block-start: 0rem !important;
    }

    .wp-block-post-content .wpcf7.js,
    .wpcf7.js,
    .wp-block-post-content section.kontakt,
    section.kontakt,
    .wp-block-post-content section.dokumentation,
    section.dokumentation,
    .wp-block-post-content section.facts-figures,
    section.facts-figures,
    .wp-block-post-content section.hero,
    section.hero,
    .wp-block-post-content section.zitat,
    section.zitat,
    .wp-block-post-content section.wohnungen,
    section.wohnungen,
    .wp-block-post-content section.lage,
    section.lage,
    .wp-block-post-content section.lage .is-layout-grid,
    section.lage .is-layout-grid {
        grid-template-columns: 0.5fr repeat(10, 1fr) 0.5fr;
    }

    .is-layout-flex {
        gap: 0.75rem !important;
    }

    :not(section)>section:not(.sell-index, footer>section) {
        margin-block-start: 3rem !important;
        margin-block-end: 3rem !important;
    }

    :root :where(.is-layout-flow)>* {
        margin-block-start: 0.75rem;

    }

    .wp-block-details:has(summary) {
        padding: 1.5rem !important;
    }

    section.hero,
    .has-global-padding:not(.figure-box>div, .naechste-schritte article) {
        padding-left: 1.75rem !important;
        padding-right: 1.75rem !important;
    }

    .wp-block-site-logo {
        z-index: 10000;
        padding: 0 1.5rem;
    }


    .wp-block-group:has(>nav.nav-mobile) .wp-block-button {
        padding-right: 1.5rem;
    }

    .wp-block-site-logo img {
        height: 1.75rem;
    }

    /* h1 {
        font-size: 2.5rem;
    } */

    /* h2 {
        font-size: 2.5rem;
    } */

    .wp-block-quote p {
        font-size: 2rem;
    }

    :root :where(p):not(form p, blockquote p) {
        font-size: 1rem;
        /* margin-block-start: 1.75rem; */
    }

    /* .wp-block-post-content section.lage>div:first-of-type>p,
    .is-layout-grid>p {
        margin-block-start: 1.5rem !important;
    } */

    :root :where(h1, h2):not(.naechste-schritte h2, .facts-figures h2) {
        margin-block-start: 3.25rem;
    }

    /* .is-layout-grid>h2,
    .is-layout-grid>h1 {
        margin-block-start: 3rem !important;
    } */



    h1~p,
    h2~p {
        margin-block-start: 2.25rem !important;
    }

    :where(.is-layout-grid, .is-layout-flex, .wp-block-columns, .wp-block-gallery)>h1~p,
    :where(.is-layout-grid, .is-layout-flex, .wp-block-columns, .wp-block-gallery)>h2~p {
        /* Ziehe den Grid-Gap vom gewünschten 3rem Abstand ab */
        margin-block-start: calc(2.25rem - 0.25rem) !important;
    }


    .google-notice {
        padding: 0 1.25rem;
        line-height: 130%;
        font-size: 0.75rem;
    }

    .wp-block-details summary {
        padding: 0rem 0.5rem;
        font-size: 1.75rem;
    }

    div.wp-block-group:has(>nav) {
        width: calc(100dvw - 2.25rem);
        max-width: calc(100dvw - 2.25rem);
    }

    section.hero>figure:nth-of-type(1) img {
        aspect-ratio: 2.25/4 !important;
        object-fit: cover;
    }

    .wp-block-post-content section.zitat figure:nth-of-type(1),
    section.zitat figure:nth-of-type(1),
    section.facts-figures>figure,
    .wp-block-post-content section.lage>figure.wp-block-image:nth-last-of-type(1),
    section.lage>figure.wp-block-image:nth-last-of-type(1),
    .wp-block-post-content section.lage .is-layout-grid figure,
    section.lage .is-layout-grid figure,
    .wp-block-post-content section.lage>div:first-of-type>figure,
    section.lage>div:first-of-type>figure {
        display: none;
    }

    .wp-block-post-content section.zitat figure:nth-of-type(1),
    section.zitat figure:nth-of-type(1) {
        grid-column: 1 / span 3;
        grid-row: 1 / span 1;
    }

    .wp-block-post-content section.zitat figure:nth-of-type(2),
    section.zitat figure:nth-of-type(2) {
        grid-column: 2 / span 11;
        grid-row: 1 / span 3;
    }

    .wp-block-post-content section.zitat blockquote,
    section.zitat blockquote {
        grid-column: 1 / span 12;
        grid-row: 4 / span 1;
    }

    .sell-index-table tr,
    .wp-block-post-content section.lage>figure.wp-block-table table thead tr,
    .wp-block-post-content section.lage>figure.wp-block-table table tbody tr,
    section.lage>figure.wp-block-table table thead tr,
    section.lage>figure.wp-block-table table tbody tr {
        border-bottom: none;
        height: 2.5rem;
    }

    .wp-block-post-content section.lage>figure.wp-block-table table tbody tr td,
    section.lage>figure.wp-block-table table tbody tr td,
    .wp-block-post-content section.lage>figure.wp-block-table table thead tr th,
    section.lage>figure.wp-block-table table thead tr th {
        padding-right: 0.5rem !important;
    }

    .wp-block-post-content section.lage>figure.wp-block-table table thead,
    .wp-block-post-content section.lage>figure.wp-block-table table tbody,
    section.lage>figure.wp-block-table table thead,
    section.lage>figure.wp-block-table table tbody,
    section.lage>figure.wp-block-table table {
        border-bottom: none;
    }

    .sell-index-table tr> :not(:first-child) {
        border-bottom: 1px solid var(--wp--preset--color--dark-brown) !important;
    }

    .wp-block-post-content section.lage>figure.wp-block-table table tbody tr> :not(:first-child),
    section.lage>figure.wp-block-table table tbody tr> :not(:first-child) {
        border: none !important;
        box-shadow: inset 0 1px 0 0 var(--wp--preset--color--dark-brown);
    }


    .sell-index-table tr td,
    .sell-index-table tr th,
    .wp-block-post-content section.lage>figure.wp-block-table table tbody tr td,
    section.lage>figure.wp-block-table table tbody tr td {
        font-size: 0.75rem;
        max-width: 25%;
        width: auto;
    }

    .sell-index-table td,
    .sell-index-table th {
        min-width: 0;
        max-width: 18%;
    }

    .wp-block-post-content section.lage .wp-block-shortcode,
    section.lage>figure:nth-of-type(1) {
        grid-column: 1 / span 12;
        grid-row: 3 / span 1;
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        margin: 0 auto;
        overflow: hidden;
    }

    .wp-block-post-content section.lage>figure.wp-block-table,
    section.lage>figure.wp-block-table {
        grid-column: 3 / span 8;
        padding: 1.5rem;
        /* top: -5rem; */
        z-index: 100;
    }

    .wp-block-post-content section.lage>figure.wp-block-table table thead tr th,
    .wp-block-post-content section.lage>figure.wp-block-table table tbody tr td,
    section.lage>figure.wp-block-table table thead tr th,
    section.lage>figure.wp-block-table table tbody tr td {

        padding: 0rem;
        max-width: none;
    }

    /* ── Scroll-Container ist .sell-index, NICHT die Tabelle selbst ── */
    .sell-index {
        overflow-x: auto;
        overflow-y: clip;
        -webkit-overflow-scrolling: touch;
        /* smooth scroll auf iOS */
        width: 100%;
        padding-bottom: 40px;
    }



    section.facts-figures div.wp-block-group>h3 {
        font-size: 2.75rem;
    }

    section.facts-figures .figure-box {
        padding: 1.5rem !important;
    }

    section.facts-figures>h2 {
        grid-column: 2 / span 10 !important;
        margin-top: 3rem;
    }

    section.facts-figures .figure-box:nth-of-type(1) {
        grid-column: 1 / span 6;

    }

    section.facts-figures .figure-box:nth-of-type(2) {
        grid-column: 7 / span 6;
        grid-row: 1 / span 1;
    }

    section.facts-figures .figure-box:nth-of-type(4) {
        grid-column: 1 / span 6;
    }

    section.facts-figures .figure-box:nth-of-type(5) {
        grid-column: 7 / span 6;
    }

    /* ── Alle 2/span 10 → 1/span 12 auf ≤600px ── */
    section.hero>figure:nth-of-type(1),
    section.wohnungen>p,
    section.wohnungen>h2 {
        grid-column: 2 / span 10;
    }

    .sell-index,
    section.facts-figures .figure-box:nth-of-type(3),
    section.facts-figures>div.is-layout-flex,
    .wpcf7-form {
        grid-column: 1 / span 12;
    }

    /* .wp-block-post-content section.lage .is-layout-grid, section.lage .is-layout-grid {
        grid-template-columns: repeat(12, minmax(auto, 1fr));
    } */

    .wp-block-post-content section.lage>div:nth-of-type(2),
    section.lage>div:nth-of-type(2) {
        grid-column: 1 / span 12;
    }



    section.hero>figure.stoerer {
        grid-column: 9 / span 4;
        grid-row: 1 / span 6;
        z-index: 3;
    }

    section.hero>figure:nth-of-type(3) {
        grid-column: 1 / span 6;
        grid-row: 6 / span 1;
        z-index: 2;
    }

    .wp-block-post-content section.lage>div:first-of-type,
    section.lage>div:first-of-type {
        grid-column: 2 / span 10;
        grid-row: 1 / span 1;
        display: grid;
        grid-template-columns: subgrid;
        gap: 0.25rem;
        padding: 0 !important;
    }

    .wp-block-post-content section.lage>div:first-of-type>h1,
    section.lage>div:first-of-type>h1 {
        grid-column: 1 / span 12;
        grid-row: 1 / span 1;
        z-index: 3;
    }

    .wp-block-post-content section.lage>div:first-of-type>p,
    section.lage>div:first-of-type>p {
        grid-column: 1 / span 12;
        grid-row: 3 / span 1;
        z-index: 3;
    }

    section.facts-figures>p:nth-of-type(2) {
        grid-row: 3 / span 1;
        grid-column: 2 / span 10;
        /* margin-block-start: 3rem; */
    }

    section.facts-figures>p:nth-of-type(1) {
        grid-column: 2 / span 10;
        grid-row: 6 / span 1;
        align-self: end;
        /* margin-block-start: 3rem; */
    }

    section.facts-figures>div.is-layout-flex {
        grid-column: 1 / span 12;
        grid-row: 7 / span 1;
        width: 100%;
    }

    section.facts-figures div.wp-block-cb-carousel-v2,
    .wp-block-post-content section.lage div.wp-block-cb-carousel-v2,
    section.lage>div:first-of-type>div.cb-carousel-block {
        grid-column: 1 / span 12;
        grid-row: 4 / span 1;
        max-width: 100%;
        margin: 3rem 1rem 0 1rem !important;
        width: auto;
    }

    section.facts-figures div.is-layout-grid {
        gap: 0.75rem !important;
        margin-block-start: 2.5rem;
    }

    .wp-block-post-content section.lage .is-layout-grid h2,
    section.lage .is-layout-grid h2 {
        grid-column: 2 / span 10;
    }

    .wp-block-post-content section.lage .is-layout-grid p,
    section.lage .is-layout-grid p {
        grid-column: 2 / span 10;
    }

    section.kontakt-wrapper {
        flex-direction: column;
        padding: 0rem;
    }

    section.naechste-schritte .naechste-schritte-wrapper {
        gap: 0.25rem;
    }

    section.naechste-schritte .wp-block-buttons .wp-block-button a {
        display: inline-flex;
        width: 2.75rem;
        height: auto;
        font-size: 1.125rem;
        padding: 0rem;
    }

    section.naechste-schritte .wp-block-buttons .wp-block-button::after {
        margin-left: 0.125rem;
        margin-right: 0.125rem;
    }

    section.naechste-schritte .wp-block-buttons {
        gap: 0 !important;
        padding: 0
    }

    section.naechste-schritte>div>article {
        margin-top: 2.5rem;
        padding: 0 !important;
    }

    section.dokumentation>.wp-block-buttons,
    section.dokumentation>p,
    section.dokumentation>h2 {
        grid-column: 2 / span 10;
        /* margin-top: 3rem; */
    }

    section.naechste-schritte article {
        margin-top: 2rem;
    }

    .wp-block-post-content section.lage>figure.wp-block-table,
    section.lage>figure.wp-block-table {
        grid-column: 1 / span 12;
        /* padding: 1.5rem; */
        z-index: 100;
        width: auto;
        max-width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    section.kontakt {
        padding-top: 0;
        padding-bottom: 0;
    }

    section.kontakt>h2 {
        grid-column: 2 / span 10;
        grid-row: 1 / span 1;
        margin-left: 0 !important;
    }

    section.kontakt>p {
        grid-column: 2 / span 10;
        grid-row: 2 / span 1;
        margin-left: 0 !important;
    }

    .wpcf7-form p label span.wpcf7-form-label-text {
        padding: 0.5rem 1.25rem 0.5rem 1.25rem;
    }


    footer {
        margin-top: 0rem;
    }

    footer>section>div {
        align-items: center !important;
    }

    footer div.wp-block-group:has(>div) {
        flex-direction: column;
        gap: 1rem;
        margin: 0 0 1rem 0 !important;
    }

    footer div.wp-block-group:has(>div) div:last-of-type {
        gap: 0.25rem !important;
    }

    footer div.wp-block-group:has(>div)>div {
        align-items: center;
        gap: 1rem;
    }

    footer div.wp-block-group:has(>div)>div * {
        text-align: center;
    }
}