/* General Rules */
.headerbild {
    position: relative;
    background-size: cover !important;
    background-position: center center !important;
    margin-bottom: 60px !important;
}

.headerbild-bg {
    height: 100%;
    overflow: hidden;
    position: absolute;
    width: 100%;
    z-index: -1;
}

.headerbild-bg picture {
    display: flex;
    height: 100%;
    width: 100%;
}

.headerbild-bg picture img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.headerbild .images-wrap {
    align-items: flex-end;
    display: flex;
    height: 100%;
    gap: 25px;
    justify-content: space-between;
    width: 100%;
}

.headerbild.no-docs .headerbild-bg {
    height: 35vh;
    position: static;
}

.headerbild .images-wrap.oneonone {
    align-items: initial;
}

.headerbild .images-wrap.noneonone {
    justify-content: flex-end;
}

.headerbild .images-wrap.noneontwo .doc-single,
.headerbild .images-wrap.noneonthree .doc-single {
    display: flex;
    flex: 0 1 calc(100% / 3);
    max-width: calc(100% / 3);
}

.headerbild .images-wrap.oneonone .doc-single,
.headerbild .images-wrap.noneonone .doc-single {
    display: flex;
    flex: 0 1 calc(100% / 2);
    justify-content: flex-end;
    max-width: calc(100% / 2);
}

.doc-single {
    position: relative;
}

.headerbild .docwrap {
    z-index: 1;
    position: absolute;
    background: #9BCFD4;
    color: #275057;
    padding: 20px 20px 20px 80px;
    left: 160px;
    bottom: 100px;
    width: fit-content;
    min-width: 270px;
}

.headerbild .docwrap span {
    display: block;
    font-family: 'Quicksand';
}

/* --- Icon möglich, Arzt rechts --- */

.headerbild .images-wrap.noneonone .doc-single .docwrap {
    left: initial;
    right: 160px;
}

.headerbild.noneonone .doc-single .docwrap,
.headerbild.oneonone .doc-single .docwrap {
    padding: 20px 80px 20px 20px;
    right: 160px;
    left: inherit;
    bottom: 100px;
    width: 270px;
}

.headerbild.oneonone .headericon {
    display: flex;
    justify-content: center;
    background: var(--green);
    width: 12%;
}

.headerbild.oneonone .headericon picture {
    display: flex;
    justify-content: center;
}

.headerbild.oneonone .headericon img {
    height: auto;
    width: 80%;
    margin: auto;
    position: static;
}

/* --- Kein Icon, drei Ärzte --- */
.headerbild.noneonthree .docthree {
    left: 43%;
    bottom: 0px;
    width: auto;
}

.doc-single picture {
    max-width: 270px;
    width: 50%;
}

.doc-single img {
    width: 100%;
    height: auto;
    max-width: 100%;
    z-index: 9;
    position: relative;
    -o-object-fit: contain;
    object-fit: contain;
}

@media screen and (min-width: 1600px) {

    .headerbild .images-wrap.noneontwo .doc-single:last-child,
    .headerbild .images-wrap.noneonthree .doc-single:last-child {
        display: flex;
        justify-content: flex-end;
    }

    .headerbild .images-wrap.noneontwo .doc-single:last-child .docwrap,
    .headerbild .images-wrap.noneonthree .doc-single:last-child .docwrap {
        left: initial;
        padding: 20px 80px 20px 20px;
        right: 160px;
    }

}

@media screen and (max-width: 1600px) {

    .headerbild .images-wrap.noneontwo .doc-single .docwrap,
    .headerbild .images-wrap.noneonthree .doc-single .docwrap {
        padding: 20px 20px 20px 20px;
        position: static;
    }

    .headerbild .images-wrap.noneonthree .doc-single,
    .headerbild .images-wrap.noneontwo .doc-single {
        flex-direction: column;
    }

}

@media (max-width: 850px) {

    .doc-single img {
        max-height: 250px;
        padding-top: 20px;
    }

    .headerbild {
        height: auto;
        margin-bottom: 0!important;
    }

    .headerbild.oneonone .doc-single {
        position: relative;
        right: 0px;
        bottom: 0px;
        width: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .headerbild.oneonone .doc-single .headericon {
        display: none;
    }

    .headerbild.oneonone .doc-single .docwrap {
        z-index: 1;
        position: relative;
        background: #9BCFD4;
        color: #275057;
        padding: 20px;
        right: inherit;
        left: inherit;
        bottom: inherit;
        width: 100%;
        text-align: center;
    }

    .headerbild.noneontwo .doc-single {
        position: relative;
    }

    .headerbild.noneontwo .doc-single {
        text-align: right;
    }

    .headerbild.noneontwo .docwrap {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        top: auto;
        text-align: left;
        padding: 15px;
        min-width: inherit;
        width: 100%;
    }

    .headerbild.noneonthree .doc-single {
        padding-top: 10px;
    }

    .headerbild.noneonthree .doc-single {
        position: relative;
        display: flex;
        flex-wrap: nowrap;
        flex: 0 1 100%;
        justify-content: left;
        margin-bottom: 10px;
        bottom: auto;
        left: auto;
    }

    .headerbild.noneonthree .doc-single img {
        height: auto;
        width: 130px;
        flex: 0 1 130px;
        object-fit: contain;
        object-position: bottom;
    }

    .headerbild.noneonthree .doc-single .docwrap {
        flex: 0 1 calc(100% - 130px);
        display: block;
        margin-right: 0;
        margin-left: 0;
    }

    .headerbild .doc-single {
        flex: initial!important;
        flex-direction: row!important;
        max-width: 100%!important;
        width: 100%!important;
        position: static;
        -webkit-transform: none;
        -moz-transform: none;
        -ms-transform: none;
        -o-transform: none;
        transform: none;
    }

    .headerbild .images-wrap {
        align-items: flex-start;
        flex-direction: column;
    }

    .doc-single picture {
        max-width: initial;
        width: initial;
    }

    .headerbild .images-wrap.noneonone .doc-single {
        justify-content: flex-start;
        width: 100%;

    }

    .headerbild .images-wrap.noneonone .doc-single .docwrap {
        position: static;
        width: 100%;
    }

    .headerbild .images-wrap.oneonone .doc-single {
        justify-content: center;
    }
}
