/**
 * @author Valentin Alisch, Off Office <hallo@valentinalisch.de>
 * @version 1.0
 *
 * Rettberg Module: Text
 */

.text {
	--more-height: auto;
}



.text__more {
	height: 0px;
	overflow: hidden;
	transition: height 0.25s cubic-bezier( 0.25, 1, 0.5, 1 );
}

.text.active .text__more {
	height: var( --more-height );
}



.text.active .text__trigger {
	margin-top: calc( var( --line-height ) );
}

.text.active .text__trigger-open,
.text:not( .active ) .text__trigger-close {
	display: none;
}