/* Existing RISSE typography applied to native separate heading elements. */
#inhaltsbereich header > h1:only-child {
    line-height: 1.4;
    text-decoration: underline solid var(--grau) 4px;
    text-underline-offset: 0.24em;
}

@media (max-width: 1024px) {
    #inhaltsbereich header > h1:only-child {
        text-decoration-thickness: 2px;
    }
}

@media (max-width: 900px) {
    #inhaltsbereich header > h1:only-child {
        text-decoration: none;
    }
}

#inhaltsbereich header:has(> h1 + h2) > h1 {
    border-bottom: 4px solid var(--grau);
    padding-bottom: 10px;
    margin-bottom: 0;
}

#inhaltsbereich header > h1 + h2 {
    display: block;
    float: left;
    clear: both;
    max-width: none;
    width: auto;
    font-size: 40px;
    font-weight: 400;
    font-style: italic;
    text-transform: none;
    border: none;
    color: var(--linkfarbe);
    margin: 10px 0 20px;
}

#inhaltsbereich header:has(> h2 + h3) > h2 {
    max-width: none;
    margin-bottom: 0;
}

#inhaltsbereich header > h2 + h3 {
    display: block;
    float: left;
    clear: both;
    width: 100%;
    font-size: 30px;
    font-weight: 400;
    font-style: italic;
    text-transform: none;
    color: var(--font);
    margin: 5px 0 20px;
}

/* Preserve RISSE icon dimensions independently of the image wrapper. */
.frame-icon .ce-gallery .ce-row figure {
    text-align: center;
}

.frame-icon .ce-gallery .ce-row img {
    height: 120px;
    width: auto;
    display: inline-block;
}

.frame-type-textmedia.frame-icon .ce-gallery .ce-row figcaption {
    float: left;
    clear: both;
    width: 100%;
    font-size: 26px;
    color: var(--font);
    text-transform: uppercase;
    text-align: center;
    margin: 20px 0 0;
}

/* Native captions are siblings of the image link. Keep the whole card framed
   and clickable without changing the protected image renderer. */
.frame-type-textmedia.frame-icon .ce-row figure:has(> a) {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    padding: 20px;
    border: 4px solid var(--linkfarbe);
}

#inhaltsbereich .frame-type-textmedia.frame-icon .ce-row figure > a,
#inhaltsbereich .frame-type-textmedia.frame-icon .ce-row figure > a:hover {
    position: static;
    width: 100%;
    padding: 0 !important;
    border: 0 !important;
    background: none;
    transform: none;
    box-shadow: none;
}

#inhaltsbereich .frame-type-textmedia.frame-icon .ce-row figure > a::before {
    content: none;
}

#inhaltsbereich .frame-type-textmedia.frame-icon .ce-row figure > a::after {
    display: block;
    z-index: 1;
    background: none;
    animation: none;
    opacity: 1;
}

#inhaltsbereich .frame-type-textmedia.frame-icon .ce-row figure::before,
#inhaltsbereich .frame-type-textmedia.frame-icon .ce-row figure::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
}

#inhaltsbereich .frame-type-textmedia.frame-icon .ce-row figure::before {
    bottom: 100%;
    transition: 0.2s;
    background: var(--captcha);
}

#inhaltsbereich .frame-type-textmedia.frame-icon .ce-row:nth-child(odd) figure::before {
    background: var(--linkfarbe);
}

#inhaltsbereich .frame-type-textmedia.frame-icon .ce-row figure::after {
    background: url(../images/bganimation.png) repeat 0 0 / 16px;
    opacity: 0.2;
    display: none;
    animation: bg-scrolling-reverse 9s infinite linear;
}

#inhaltsbereich .frame-type-textmedia.frame-icon .ce-row figure:hover,
#inhaltsbereich .frame-type-textmedia.frame-icon .ce-row figure:focus-within {
    padding: 24px;
    border: none;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    transform: scale(1.04);
    transform-origin: center;
}

#inhaltsbereich .frame-type-textmedia.frame-icon .ce-row figure:hover::before,
#inhaltsbereich .frame-type-textmedia.frame-icon .ce-row figure:focus-within::before {
    bottom: 0;
}

#inhaltsbereich .frame-type-textmedia.frame-icon .ce-row figure:hover::after {
    display: block;
}

#inhaltsbereich .frame-type-textmedia.frame-icon .ce-row figure:hover figcaption,
#inhaltsbereich .frame-type-textmedia.frame-icon .ce-row figure:focus-within figcaption {
    color: var(--weiss);
}

#inhaltsbereich .frame-type-textmedia.frame-icon .ce-row figure:hover img,
#inhaltsbereich .frame-type-textmedia.frame-icon .ce-row figure:focus-within img {
    filter: brightness(0) invert(1);
}

@media (max-width: 1300px) {
    #inhaltsbereich header > h1 + h2 {
        font-size: 30px;
    }
}

@media (max-width: 1100px) {
    .frame-type-textmedia.frame-icon .ce-gallery .ce-row figcaption {
        font-size: 18px;
        hyphens: auto;
    }
}

@media (max-width: 1024px) {
    #inhaltsbereich header:has(> h1 + h2) > h1 {
        padding-bottom: 0;
    }

    #inhaltsbereich header > h1 + h2,
    #inhaltsbereich header > h2 + h3 {
        font-size: 24px;
        margin: 10px 0 20px;
    }
}

@media (max-width: 900px) {
    #inhaltsbereich header > h2 + h3 {
        padding: 0;
        border: none;
    }

    .frame-type-textmedia.frame-icon .ce-gallery .ce-row figure:has(> a) {
        width: calc(100% - 1px);
        border-width: 3px;
    }

    .frame-type-textmedia.frame-icon .ce-row:nth-child(1) figure,
    .frame-type-textmedia.frame-icon .ce-row:nth-child(4) figure,
    .frame-type-textmedia.frame-icon .ce-row:nth-child(5) figure {
        background: var(--captcha);
        border-color: var(--captcha);
    }

    #inhaltsbereich .frame-type-textmedia.frame-icon .ce-row figure::before {
        background: var(--linkfarbe);
    }
}

@media (max-width: 600px) {
    .frame-type-textmedia.frame-icon .ce-row:nth-child(odd) figure {
        background: none;
        border-color: var(--linkfarbe);
    }

    .frame-type-textmedia.frame-icon .ce-row:nth-child(even) figure {
        background: var(--captcha);
        border-color: var(--captcha);
    }

    .frame-type-textmedia.frame-icon .ce-gallery .ce-row:nth-child(even) figcaption {
        color: var(--weiss);
    }
}

@media (max-width: 450px) {
    #inhaltsbereich header > h1 + h2,
    #inhaltsbereich header > h2 + h3 {
        font-size: 20px;
    }
}
/* Powermail 14 nests native labels inside the field wrapper. */
.tx-powermail .powermail_field > .powermail_label {
  display: none;
  margin: 0 0 5px;
}
.tx-powermail .powermail_fieldwrap_type_select .powermail_field > .powermail_label,
.tx-powermail .powermail_fieldwrap_type_captcha .powermail_field > .powermail_label {
  display: block;
}

/* Native navigation buttons use the existing link and hamburger geometry. */
#oben .mob_button, #oben .submenu-toggle {
    appearance: none; border: 0; padding: 0; background: transparent;
    color: inherit; font: inherit; text-align: inherit; cursor: pointer;
}
#oben .submenu-toggle { display: block; }
@media (min-width: 1025px) {
    #oben .submenu-toggle { color: var(--linkfarbe); }
}
#oben :is(a, button):focus-visible { outline: 3px solid var(--font); outline-offset: 4px; }
#cookieman-modal .modal-footer .btn { color: var(--font); }
/* One native text/media record retains the former information block layout. */
#inhaltsbereich .frame-risse-information .ce-textpic {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    width: 100%;
    margin-top: 40px;
}
#inhaltsbereich .frame-risse-information .ce-bodytext,
#inhaltsbereich .frame-risse-information .ce-gallery {
    margin: 0;
    width: calc(50% - 20px);
}
#inhaltsbereich .frame-risse-information .ce-bodytext {
    padding: 20px;
    box-sizing: border-box;
    border: 4px solid var(--linkfarbe);
}
#inhaltsbereich .frame-risse-information .ce-bodytext h3 { margin: 0 0 25px; }
#inhaltsbereich .frame-risse-information .ce-gallery { position: relative; }
#inhaltsbereich .frame-risse-information .ce-gallery img {
    position: absolute;
    left: 0;
    top: 40px;
    width: 100%;
    height: calc(100% - 80px);
    object-fit: cover;
    object-position: center;
}
/* Continue the three native pairs at the former row spacing. */
#inhaltsbereich > :is(#c83, #c84) { margin-top: 50px; }
@media (max-width: 950px) {
    #inhaltsbereich #c8 .col-100 .frame-rahmen { margin-top: 0; }
    #inhaltsbereich .frame-risse-information .ce-textpic { display: block; margin-top: 0; }
    #inhaltsbereich .frame-risse-information .ce-bodytext,
    #inhaltsbereich .frame-risse-information .ce-gallery { float: left; clear: both; width: 100%; }
    #inhaltsbereich .frame-risse-information .ce-bodytext {
        padding: 20px 20px 10px;
        border: 0;
        background: var(--bg-grau);
    }
    #inhaltsbereich .frame-risse-information .ce-gallery { height: 230px !important; }
    #inhaltsbereich .frame-risse-information .ce-gallery img { top: 0; height: 100%; }
}
@media (max-width: 900px) {
    #inhaltsbereich > :is(#c83, #c84) { margin-top: 30px; }
}
@media (max-width: 600px) {
    #inhaltsbereich .frame-risse-information .ce-gallery { height: 170px !important; }
}
#inhaltsbereich .frame-risse-information .ce-bodytext > * {
    float: left;
    clear: both;
    width: 100%;
}
@media (max-width: 450px) {
    #inhaltsbereich .frame-risse-information .ce-bodytext { padding: 20px 10px; }
}
@media (max-width: 1024px) {
    #oben .submenu-toggle { width: 100%; box-sizing: border-box; }
}
/* Four backend columns are four full-width product rows in this design. */
#inhaltsbereich #c8 .tx_cn-columns > .row > .col-100 {
    float: left;
    clear: both;
    width: 100%;
    margin: 0;
}
@media (max-width: 950px) {
    #inhaltsbereich #c8 .tx_cn-columns > .row > .col-100 + .col-100 { margin-top: 40px; }
}
#inhaltsbereich #c8 .tx_cn-columns > .row > .col-100 > .frame {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}
