/*
 * Etivera Staff — frontend styles.
 *
 * All rules are scoped under .etivera-staff so they only affect the staff
 * directory output and never leak into the rest of the theme.
 */


@font-face {
    font-family: 'etivera_font';
    src:  url('./fonts/etivera_font.woff2') format('woff2'),
        url('./fonts/etivera_font.eot?xz0cej#iefix') format('embedded-opentype'),
        url('./fonts/etivera_font.ttf?xz0cej') format('truetype'),
        url('./fonts/etivera_font.svg?xz0cej#etivera_font') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

.etivera-staff [class^="icon-"], .etivera-staff [class*=" icon-"] {
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: 'etivera_font' !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;

    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


@font-face {
    font-family: 'Source Sans Pro';
    src: url('./fonts/SourceSansPro-Regular.woff2') format('woff2'),
        url('./fonts/SourceSansPro-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Source Sans Pro';
    src: url('./fonts/SourceSansPro-Bold.woff2') format('woff2'),
        url('./fonts/SourceSansPro-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}



.etivera-staff .service ul.contact li:nth-child(1):before {
    font-family:"etivera_font";
    content: "\e931";
    position:absolute;
    top:3px;
    left:-1px;
    color:#5DA366;
    font-size:27px;
}

/* Reset any transform a theme may apply to list-item :before markers, so the
   contact icons are never rotated/scaled by inherited styles. */
.etivera-staff li:before {
    transform: none !important;
    border: 0px solid !important;
}

/* Contact icons are SVGs bound to a class per field, so they stay correct
   even when a member is missing one of phone / mobile / email. */
.etivera-staff ul.contact li.contact-phone:before,
.etivera-staff ul.contact li.contact-chat:before,
.etivera-staff ul.contact li.contact-email:before {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    width: 14px;
    height: 14px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.etivera-staff ul.contact li.contact-phone:before {
    background-image: url("icons/phone.svg");
}

.etivera-staff ul.contact li.contact-chat:before {
    background-image: url("icons/chat.svg");
}

.etivera-staff ul.contact li.contact-email:before {
    background-image: url("icons/email.svg");
}


/*------------------REDESIGN INFOSEITEN------------------*/

.etivera-staff .flag-ru {
    width:20px;
    height:13px;
    background:url("./icons/flag-ru.svg");
    display:inline-block;
    border-radius:3px;
    margin-left:10px;
    margin-bottom:-1px;
}

.etivera-staff .flag-swe {
    width:20px;
    height:13px;
    background:url("./icons/flag-sv.svg");
    display:inline-block;
    border-radius:3px;
    margin-left:10px;
    margin-bottom:-1px;
}


.etivera-staff .flag-sk {
    width: 30px;
    height: 18px;
    background:url("./icons/flag-slowakei.svg?2");
    display: inline-block;
    margin-right: 18px;
    border-radius: 3px;
    margin-bottom: 1px;
}

.etivera-staff .flag-cz {
    width: 30px;
    height: 18px;
    background:url("./icons/flag-tschechien.svg?2");
    display: inline-block;
    margin-right: 18px;
    border-radius: 3px;
    margin-bottom: 1px;
}

.etivera-staff .flag-si {
    width: 30px;
    height: 18px;
    background:url("./icons/flag-slowenien.svg?2");
    display: inline-block;
    margin-right: 18px;
    border-radius: 3px;
    margin-bottom: 1px;
}

.etivera-staff .flag-at {
    width:20px;
    height:13px;
    background:url("./icons/flag-at.svg");
    display:inline-block;
    border-radius:3px;
    margin-left:10px;
    margin-bottom:-1px;
}


.etivera-staff .flag-en {
    width:20px;
    height:13px;
    background:url("./icons/flag-uk.svg");
    display:inline-block;
    border-radius:3px;
    margin-left:10px;
    margin-bottom:-1px;
}

.etivera-staff .flag-it {
    width:20px;
    height:13px;
    background:url("./icons/flag-it.svg");
    display:inline-block;
    border-radius:3px;
    margin-left:10px;
    margin-bottom:-1px;
}

.etivera-staff .flag-hu {
    width:20px;
    height:13px;
    background:url("./icons/flag-hu.svg");
    display:inline-block;
    border-radius:3px;
    margin-left:10px;
    margin-bottom:-1px;
}

.etivera-staff * {
    font-family: 'Source Sans Pro';
    color: #333;
}

.etivera-staff h3 {
    font-size: 1.8em;
    font-weight: 500;
    padding: 16px 5px 0px 5px;
    font-family: 'Outfit';
}

.etivera-staff .p-15 {
    padding: 15px;
}
.etivera-staff .w-100 {
    width: 100%;
}

/*------------------STAFF------------------*/

.etivera-staff *, .etivera-staff *::before, .etivera-staff *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.etivera-staff {
    font-family: sans-serif, system-ui;
    padding: 2rem;
    color: #333;
    font-size: 14px;
    line-height: 18px;
    font-weight: 400;
    letter-spacing: 1.12px;
}

.etivera-staff h1 {
    text-transform: uppercase;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #5DA366;
    font-weight: normal;
}

.etivera-staff a {
    color: black;
    text-decoration: underline;
}

.etivera-staff a:hover {
    text-decoration: underline;
}

.etivera-staff {
    max-width: 1080px;
    margin: 0 auto;
}

.etivera-staff .dept {
    margin-bottom: 1.5rem;
}

.etivera-staff .no-staff {
    padding: 1rem 1.25rem;
    font-size: .875rem;
    color: #a1a1aa;
}

.etivera-staff .staff-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.etivera-staff .staff-box {
    flex: 0 0 calc(50% - .5rem);
    border: 1px solid #e8e8e8;
    border-radius: 0;
    padding: 0;
    background: #fff;
}

.etivera-staff .flex {
    display: flex;
}

.etivera-staff .flex-sb {
    justify-content: space-between;
    gap: 2.5em;
}

.etivera-staff .w-1-3 {
    width: 33.333%;
    flex-shrink: 0;
}

.etivera-staff .w-2-3 {
    width: 66.666%;
    padding-left: .75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.etivera-staff .img_res {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.etivera-staff .img_placeholder {
    background: #e4e4e7;
    aspect-ratio: 3 / 4;
    border-radius: .25rem;
}

.etivera-staff .textbox p.headline {
    text-transform: uppercase;
    font-size: 1.5em;
    font-weight: 700;
    margin:0;
    margin-bottom: 10px;
    line-height: 24px;
    text-align: left;
    letter-spacing: 0.5px;
}

.etivera-staff ul.contact {
    padding-left: 0;
    margin-bottom: 4px;
}

.etivera-staff ul.contact li {
    list-style-type: none;
    position: relative;
    padding-left: 30px;
}



/*------------------DEPARTMENT CONTACT BOX------------------*/

.etivera-staff .dept-contact {
    flex: 0 0 calc(50% - .5rem);
    padding: 1.25rem 1.5rem;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5em;
}

.etivera-staff .dept-contact-headline {
    font-size: 21px;
    font-weight: 600;
    color: #333333;
    margin-bottom: .5rem;
    line-height: 1.2;
}

.etivera-staff .dept-contact-text {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.etivera-staff .dept-contact-cta {
    margin: 0;
}

.etivera-staff .dept-contact-cta a {
    display: inline-block;
    padding: .6rem 1.25rem;
    background: #5DA366;
    color: #fff;
    font-weight: normal;
    text-decoration: none;
    border-radius: 0;
    transition: background .15s ease;
    font-style: inherit;
    text-transform: inherit;
    letter-spacing: 0.3px;
}

.etivera-staff .dept-contact-cta a:hover,
.etivera-staff .dept-contact-cta a:focus {
    background: #4c8a54;
    color: #fff;
    text-decoration: none;
}





/*-------------------------------Verlinkungen Buttons--------------------------------*/

.staff-linkbox {
    display: flex;
    gap: 1rem;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 1340px;
    justify-content: center;
}


.staff-linkbox a{
    padding-top: 10px;
    padding-right: 20px;
    padding-bottom: 10px;
    padding-left: 20px;
    font-size: 16px;
    transition: background-color 280ms ease, color 280ms ease !important;
    text-decoration: none;
    border:1px solid grey;
    display: inline-block;

    &:hover{
        border-color:#5da366;
    }
}




/*-------------------------------mobile Styles---------------------------------*/

@media (min-width: 1380px) {
    .etivera-staff .textbox p.headline{
        margin-bottom: 16px;
    }
    .etivera-staff ul.contact {
        margin-bottom: 14px;
    }
    .contact-email a{
        font-size: 13px;
    }
    .staff-box:hover .img_res{
        transform: scale(1.05);
        transition: 250ms;
    }
    .etivera-staff h3 {
        font-size: 2.5rem;
    }
    .etivera-staff {
        max-width: 1340px;
    }
    .etivera-staff .staff-grid {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap:1.5rem;
    }
    .etivera-staff .flex-sb {
        gap: 1rem;
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: flex-start;
    }

    .etivera-staff ul.contact li {
        list-style-type: none;
        position: relative;
        padding-left: 24px;
        letter-spacing: 0.7px;
        overflow: clip;
    }
    .etivera-staff .dept-contact{
        padding-right: 0;
    }
    .etivera-staff .w-1-3 {
        width: 100%;
        overflow: hidden;
    }
    .etivera-staff .w-2-3 {
        width: 100%;
        padding: 1rem 1.25rem!important;
        justify-content: space-between;
        height: 100%;
    }
    .etivera-staff .img_res {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
        max-height: 280px;
        transition: 250ms;
    }
    .contact-email{
        padding-left: 0!important;
    }
    .contact-email:before{
        display: none;
    }
    .etivera-staff .dept-contact {
        justify-content: flex-start;

    }
}



@media (min-width: 768px) and (max-width: 1024px){
    .content.etivera-staff {
        padding: 0;
    }
    .etivera-staff .staff-grid {
        padding: 1rem 0;
    }
    .etivera-staff .p-15 {
        padding: 0;
        padding-top: 15px;
        margin-left: -4px;
    }
    .etivera-staff .flex-sb {
        gap: 1em;
    }
    .etivera-staff .textbox p.headline {
        text-transform: none;
        font-size: 1.5em;
        letter-spacing: 0.1px;
    }
    .etivera-staff ul.contact li {
        margin-bottom: 2px;
        list-style-type: none;
        position: relative;
        padding: 0px 0;
        padding-left: 0px;
    }
    .etivera-staff ul.contact li.contact-phone:before,
    .etivera-staff ul.contact li.contact-chat:before,
    .etivera-staff ul.contact li.contact-email:before {
        display: none;
    }
    .etivera-staff .w-2-3 {
        padding-left: 0;
    }
    .etivera-staff .dept-contact {
        flex: 0 0 calc(50% - .5rem);
        padding: 0 0.5rem;
        gap: 0;
    }
    .etivera-staff .dept-contact-headline {
        font-size: 18px;
    }
    .etivera-staff .dept-contact-text {
        margin-bottom: 0.75rem;
        line-height: 1.4;
        display: none;
    }
    .etivera-staff .dept-contact-cta a {
        margin-top: 1rem;
    }
}



@media (max-width: 767px) {
    .etivera-staff{
        padding: 0;
    }
    .etivera-staff .staff-grid {
        padding: 1rem 0;
    }
    .etivera-staff .flex-sb {
        gap: 1em;
        max-height: 200px;
    }
    .etivera-staff .staff-box {
        flex: 0 0 100%;
        overflow: hidden;
    }
    .etivera-staff ul.contact li {
        padding: 0px 0;
        font-size: 0.9rem !important;
        margin-bottom: 1px;
    }
    .etivera-staff p {
        font-size: 0.9rem !important;
    }
    .etivera-staff ul.contact li.contact-phone:before,
    .etivera-staff ul.contact li.contact-chat:before,
    .etivera-staff ul.contact li.contact-email:before {
        display: none;
    }
    .etivera-staff .textbox p.headline{
        font-size: 1.2rem !important;
        text-transform: none;
        margin-bottom: 5px;
        letter-spacing: 0.4px;
    }
    .etivera-staff a {
        font-size: 0.9rem;
        letter-spacing: 0.2px;
    }

    .etivera-staff .dept-contact {
        flex: 0 0 100%;
        margin-top: 1em;
        padding: 0;
    }
    .etivera-staff .dept-contact .dept-contact-headline{
        font-size: 19px !important;
        letter-spacing: 0.3px;
    }
    .etivera-staff .p-15 {
        padding: 0;
        margin-left: -4px;
    }
    .etivera-staff h3 {
        font-size: 1.5rem !important;
    }
    .etivera-staff .img_res    {
        max-width: 180px;
    }
    .etivera-staff .w-2-3 {
        padding-left: 0;
    }

}
