.contactperson {
    display: flex;
    align-items: center;
    gap:1rem;
    flex-wrap: wrap;
    position: relative;
}
.contactperson .cp_contact_infos > h4 {
    display: none;
}
.contactperson:not(.is-style-mouse-over) .cp_contact_infos{
  margin-top: 1.7rem;
}
.contactperson .cp_image,
.contactperson .cp_image_wrapper {
    width: 200px;
    position: relative;
}
.contactperson .cp_image:before{
    content: "";
    display: block;
    padding-top: 100%;
}
.contactperson .cp_image img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contactperson .cp_name {
    margin:0;
    font-size: 1rem;
    font-weight: bold !important;
    color:#000;
    text-transform: none;
}
.contactperson .cp_telephone {
    margin-top:0.5rem;
}
.contactperson .cp_telephone,
.contactperson .cp_email {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 14px;
    margin: 0.3rem 0;
}

.contactperson.is-style-simple-language .cp_telephone,
.contactperson.is-style-simple-language .cp_email {
    font-size: inherit;
}

.contactperson .cp_telephone svg,
.contactperson .cp_email svg {
    width: 20px;
}
.contactperson .cp_telephone svg path,
.contactperson .cp_email svg path{
    fill:#0D3858;
}
.contactperson .cp_telephone:hover svg path,
.contactperson .cp_email:hover svg path{
    fill:#059E42;
}

.contactperson .cp_other {
    text-decoration: none;
    margin:1.5rem 0 0 0;
    font-size: 14px;
}

.contactperson.is-style-simple-language .cp_other {
    margin:0.3rem 0;
}



/* style reduced */
.contactperson.is-style-reduced .cp_image,
.contactperson.is-style-reduced .cp_telephone,
.contactperson.is-style-reduced .cp_other,
.contactperson.is-style-reduced .cp_position,
.contactperson.is-style-reduced .cp_email svg {
    display: none;
}

/* style mouse-over */
.contactperson.is-style-mouse-over {
    flex-direction: column;
    align-items: flex-start;
    gap:1rem;
    max-width: 300px;
    cursor: pointer;
}
.contactperson.is-style-mouse-over .cp_image{
    width: 100%;
    height: auto;
}
.contactperson.is-style-mouse-over .cp_name {
    font-size: 1.2rem;
}
.contactperson.is-style-mouse-over .cp_position {
    color:#ff006e;
}
.contactperson.is-style-mouse-over .cp_contact_infos > h4 {
    display: block;
    margin:0 0 0.5rem 0;
    color:white;
    font-size: 1.2rem;
}
.contactperson.is-style-mouse-over .cp_email svg,
.contactperson.is-style-mouse-over .cp_telephone svg {
    display: none;
}
.contactperson.is-style-mouse-over .cp_email:hover,
.contactperson.is-style-mouse-over .cp_telephone:hover {
    color:white;
}
.contactperson.is-style-mouse-over .cp_contact_infos {
    position: absolute;
    background-color:#059E42;
    padding:2rem 1rem 1rem 1rem;
    top:0;
    left: 0;
    color:white;
    width:100%;
    height:90vw;
    max-height: 300px;
    opacity: 0;
    transition: 0.2s;
}
.contactperson.is-style-mouse-over:hover .cp_contact_infos{
    opacity: 1;
}

/* simple language */
.contactperson.is-style-simple-language {
    justify-content: space-between;
    font-size: 20px !important;
    line-height: 2.5 !important;
}
.contactperson .cp_name {
    font-size: 20px !important;
    /* line-height: 2.5 !important; */
}
.contactperson.is-style-simple-language .cp_image_wrapper{
    order:2;
}
.contactperson .cp_image, .contactperson .cp_image_wrapper {
    width: 300px;
}
.contactperson .cp_image {
    margin-bottom: 1rem;
}
.cp_simple_language_text_info {
    margin-bottom: 1rem;
}
.cp_simple_language_image_info {
    line-height: 1.5 !important;
}

.contactperson.is-style-simple-language .cp_email svg,
.contactperson.is-style-simple-language .cp_telephone svg {
    display: none;
}
.contactperson.is-style-simple-language .cp_email,
.contactperson.is-style-simple-language .cp_telephone {
    gap:0.5rem;
}
.contactperson.is-style-simple-language .cp_email span,
.contactperson.is-style-simple-language .cp_telephone span {
    font-weight: bold;
    text-decoration: underline;
}
.contactperson.is-style-simple-language .cp_email::before {
    content:"E-Mail-Adresse:";
}
.contactperson.is-style-simple-language .cp_telephone::before {
    content:"Telefon:";
}

.no-break-mail{
    font-size: 16px;
  }

@media only screen and (min-width: 600px) {
    .contactperson {
        gap:1rem 3rem;
    }
}

@media only screen and (min-width: 768px) {
    .contactperson .cp_infos{
        max-width: calc(100% - 300px - 3rem);
        min-width: 300px;
    }
}
