/* The tall brand mark overlaps the contact row. Its measured right edge is relative to this row. */
#main-content .rk-header .rs-public-contact.rs-preview { border-bottom-color: transparent; }
@media screen and (min-width:761px) {
    #main-content .rk-header .rs-public-contact.rs-preview { position:relative; }
    #main-content .rk-header .rs-public-contact.rs-preview::after {
        content:"";
        position:absolute;
        inset-inline: min(100%, calc(var(--rk-logo-ende, 162px) + 14px)) 0;
        bottom:-1px;
        height:1px;
        background:rgb(255 255 255 / 13%);
        pointer-events:none;
    }
}
@media screen and (min-width:64.01rem) {
    #main-content .rk-header .rs-public-contact .rs-contact-strip {
        width:fit-content; max-width:100%; margin-inline-start:auto;
    }
}

@media screen and (prefers-reduced-motion: no-preference) {
    html:not(.rhg-bewegungsarm, .rs-still) #main-content .rk-eintritt-bereit:not(:focus-within, :target) {
        opacity: .2;
        translate: 0 28px;
    }
    html:not(.rhg-bewegungsarm, .rs-still) #main-content :is(figure, img).rk-eintritt-bereit:not(:focus-within, :target) {
        translate: 0 42px;
    }
    html:not(.rhg-bewegungsarm, .rs-still) #main-content .rk-leseeintritt {
        animation: rk-text-eintritt 620ms cubic-bezier(.2,.65,.28,1);
    }
    html:not(.rhg-bewegungsarm, .rs-still) #main-content .rk-bildeintritt {
        animation: rk-bild-eintritt 800ms cubic-bezier(.2,.65,.28,1);
    }
    #main-content :is(.rk-leseeintritt, .rk-bildeintritt):is(:focus-within, :target) {
        animation: none !important;
    }
}
@keyframes rk-text-eintritt {
    from { opacity: .2; translate: 0 28px; }
    to { opacity: 1; translate: 0 0; }
}
@keyframes rk-bild-eintritt {
    from { opacity: .2; translate: 0 42px; }
    to { opacity: 1; translate: 0 0; }
}
.page-id-85008 #thema-2 .rk-ausbaudetail { margin-top: 1rem; border-top: 1px solid #c8ccca; }
.page-id-85008 #thema-2 .rk-ausbaudetail > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    min-height: 48px;
    color: #9c1c23;
    font-weight: 700;
    line-height: 1.35;
    list-style: none;
    cursor: pointer;
}
.page-id-85008 #thema-2 .rk-ausbaudetail > summary::-webkit-details-marker { display: none; }
.page-id-85008 #thema-2 .rk-ausbaudetail > summary::after {
    content: '';
    flex: 0 0 .48rem;
    width: .48rem;
    height: .48rem;
    margin-inline-end: .35rem;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.page-id-85008 #thema-2 .rk-ausbaudetail[open] > summary::after { transform: rotate(225deg); }
.page-id-85008 #thema-2 .rk-ausbaudetail > summary:is(:hover,:focus-visible) { text-decoration: underline; text-underline-offset: .2em; }
.page-id-85008 #thema-2 .rk-ausbaudetail :is(p, ul) { margin-block: .8rem; }
@media (min-width: 48rem) {
    .page-id-85008 #thema-2 .wb-leistungen:has(.rk-ausbaudetail) {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
        align-items: start;
        gap: 2.4rem clamp(1.4rem,3vw,3.3rem);
    }
    .page-id-85008 #thema-2 .wb-position:has(.rk-ausbaudetail) { min-width: 0; }
}
@media print {
    .rk-ausbaudetail::details-content { content-visibility: visible; display: block; }
    .rk-ausbaudetail > summary { display:none !important; }
}

@media screen and (max-width: 600px) {
    #page-container #main-content #start.rw-werk-hero:has(.rhg-headerfoto) {
        --rk-fotostreifen: clamp(152px,45vw,232px);
        display: block !important;
        min-height: 0 !important;
        padding: calc(var(--rk-fotostreifen) + .35rem) 0 1.8rem !important;
        background: #182126 !important;
    }
    #page-container #main-content #start.rw-werk-hero:has(.rhg-headerfoto) .rs-head-photo {
        top: 0 !important; bottom: auto !important;
        height: var(--rk-fotostreifen) !important;
    }
    #page-container #main-content #start.rw-werk-hero:has(.rhg-headerfoto) .rs-head-photo::after {
        background: linear-gradient(0deg,#182126 0%, rgba(24,33,38,.1) 33%, transparent 65%) !important;
    }
    #page-container #main-content #start.rw-werk-hero:has(.rhg-headerfoto) .rs-head-copy { padding-block: 0 !important; }
    #page-container #main-content #start .rhg-header-bestand .rhg-header-original {object-position:50% 39% !important;}
}
