/* Shortcode-Wrapper unsichtbar machen: Karten verhalten sich wie direkte Kinder des Elementor-Containers */
.hpi-contents,
.hpi-contents > .elementor-widget-container,
.hpi-contents > .elementor-widget-container > .elementor-shortcode,
.hpi-contents > .e-con-inner { display: contents !important; }

/* ===================== Startseite (Image-Box-Karten) ===================== */
.elementor .elementor-element.hpi-team-card.elementor-position-right .elementor-image-box-img { margin-left: 15px; }
.elementor .elementor-element.hpi-team-card.elementor-position-left .elementor-image-box-img { margin-right: 15px; }
.elementor .elementor-element.hpi-team-card.elementor-position-top .elementor-image-box-img { margin-bottom: 15px; }
.elementor .elementor-element.hpi-team-card .elementor-image-box-wrapper .elementor-image-box-img { width: 90%; }
.elementor .elementor-element.hpi-team-card .elementor-image-box-img img { transition-duration: 0.3s; }
.elementor .elementor-element.hpi-team-card .elementor-image-box-title { margin-bottom: 0px; font-family: "Cormorant Garamond", sans-serif; font-size: 1.5em; font-weight: 600; line-height: 1em; color: var(--e-global-color-secondary); }
.elementor .elementor-element.hpi-team-card .elementor-image-box-description { margin: 0; font-family: Mulish, sans-serif; font-size: 1em; font-weight: 400; color: var(--e-global-color-text); }
@media (max-width: 1024px) {
	.elementor .elementor-element.hpi-team-card.elementor-position-right .elementor-image-box-img { margin-left: 10px; }
	.elementor .elementor-element.hpi-team-card.elementor-position-left .elementor-image-box-img { margin-right: 10px; }
	.elementor .elementor-element.hpi-team-card.elementor-position-top .elementor-image-box-img { margin-bottom: 10px; }
}
@media (max-width: 767px) {
	.elementor .elementor-element.hpi-team-card .elementor-image-box-img { margin-bottom: 10px; }
}

/* ===================== Team-Seite ===================== */
.elementor .elementor-element.hpi-tm { --display: flex; --flex-direction: row; --container-widget-width: initial; --container-widget-height: 100%; --container-widget-flex-grow: 1; --container-widget-align-self: stretch; --flex-wrap-mobile: wrap; --justify-content: space-around; --gap: 25px 25px; --row-gap: 25px; --column-gap: 25px; --margin-top: 100px; --margin-bottom: 0px; --margin-left: 0px; --margin-right: 0px; }
.elementor .elementor-element.hpi-tm--img-left { --margin-top: 80px; }

.elementor .elementor-element.hpi-tm .hpi-tm__imgcol { --display: flex; --flex-direction: column; --container-widget-width: 100%; --container-widget-height: initial; --container-widget-flex-grow: 0; --container-widget-align-self: initial; --flex-wrap-mobile: wrap; --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; }
.elementor .elementor-element.hpi-tm .hpi-tm__txtcol { --display: flex; --flex-direction: column; --container-widget-width: 100%; --container-widget-height: initial; --container-widget-flex-grow: 0; --container-widget-align-self: initial; --flex-wrap-mobile: wrap; --gap: 5px 5px; --row-gap: 5px; --column-gap: 5px; }

.elementor .elementor-element.hpi-tm .elementor-widget-heading .elementor-heading-title { font-family: var(--e-global-typography-primary-font-family), Sans-serif; font-size: var(--e-global-typography-primary-font-size); font-weight: var(--e-global-typography-primary-font-weight); color: var(--e-global-color-primary); }
.elementor .elementor-element.hpi-tm .elementor-widget-text-editor { font-family: var(--e-global-typography-text-font-family), Sans-serif; font-size: var(--e-global-typography-text-font-size); font-weight: var(--e-global-typography-text-font-weight); color: var(--e-global-color-text); }

.elementor .elementor-element.hpi-tm .hpi-tm__name .elementor-heading-title,
.elementor .elementor-element.hpi-tm .hpi-tm__spezh .elementor-heading-title { font-family: "Cormorant Garamond", sans-serif; font-size: 2em; font-weight: 600; color: var(--e-global-color-secondary); }
.elementor .elementor-element.hpi-tm .hpi-tm__pos .elementor-heading-title { font-family: Mulish, sans-serif; font-size: 1.1em; font-weight: 600; }

.elementor .elementor-element.hpi-tm .hpi-tm__sp1 { --spacer-size: 20px; }
.elementor .elementor-element.hpi-tm .hpi-tm__sp2 { --spacer-size: 30px; }

.elementor .elementor-element.hpi-tm .hpi-tm__spezcon { --display: flex; --flex-direction: row; --container-widget-width: initial; --container-widget-height: 100%; --container-widget-flex-grow: 1; --container-widget-align-self: stretch; --flex-wrap-mobile: wrap; --justify-content: flex-start; --gap: 15px 15px; --row-gap: 15px; --column-gap: 15px; --flex-wrap: wrap; --margin-top: 12px; --margin-bottom: 0px; --margin-left: 0px; --margin-right: 0px; --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; }
.elementor .elementor-element.hpi-tm .hpi-tm__spezitem { width: auto; }
.elementor .elementor-element.hpi-tm .hpi-tm__spezitem.elementor-element { --align-self: flex-start; }
.elementor .elementor-element.hpi-tm--img-right .hpi-tm__spezitem { text-align: center; }
.elementor .elementor-element.hpi-tm .hpi-tm__spezitem .elementor-heading-title { font-family: var(--e-global-typography-text-font-family), Sans-serif; font-size: var(--e-global-typography-text-font-size); font-weight: var(--e-global-typography-text-font-weight); color: var(--e-global-color-primary); }
.elementor .elementor-element.hpi-tm .hpi-tm__spezitem > .elementor-widget-container { background-color: #fff; padding: 10px; border-style: solid; border-width: 2px; border-color: var(--e-global-color-primary); border-radius: 10px; box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.3); }

@media (min-width: 768px) {
	.elementor .elementor-element.hpi-tm .hpi-tm__imgcol { --width: 33.3333%; }
	.elementor .elementor-element.hpi-tm .hpi-tm__txtcol { --width: 66.6666%; }
}
@media (max-width: 1024px) {
	.elementor .elementor-element.hpi-tm--img-right { --margin-top: 60px; }
	.elementor .elementor-element.hpi-tm .hpi-tm__txtcol { --padding-top: 0px; --padding-bottom: 0px; --padding-left: 0px; --padding-right: 0px; }
	.elementor .elementor-element.hpi-tm--img-left .hpi-tm__sp1 { --spacer-size: 10px; }
	.elementor .elementor-element.hpi-tm--img-left .hpi-tm__sp2 { --spacer-size: 0px; }
	.elementor .elementor-element.hpi-tm--img-left .hpi-tm__spezcon { --gap: 10px 10px; --row-gap: 10px; --column-gap: 10px; }
}
@media (max-width: 767px) {
	.elementor .elementor-element.hpi-tm { --gap: 15px 15px; --row-gap: 15px; --column-gap: 15px; }
	.elementor .elementor-element.hpi-tm--img-left { --justify-content: center; }
	.elementor .elementor-element.hpi-tm--img-right { --margin-top: 50px; }
	.elementor .elementor-element.hpi-tm--img-right .hpi-tm__imgcol.e-con { --order: -99999; }
	.elementor .elementor-element.hpi-tm .hpi-tm__sp2 { --spacer-size: 0px; }
	.elementor .elementor-element.hpi-tm--img-right .hpi-tm__spezitem { width: initial; max-width: initial; }
}

/* Optional: Bildränder weich ins Weiß auslaufen lassen (für Fotos mit Hintergrund) */
.hpi-img-fade img {
	-webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 70%, transparent 98%), linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 70%, transparent 98%), linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%);
	mask-composite: intersect;
}

/* Im Elementor-Editor immer sichtbar */
.elementor-editor-active .hpi-tm.elementor-invisible,
.elementor-editor-active .hpi-team-card.elementor-invisible { visibility: visible; }
