.dienstItem{
	position:relative;
    color: white;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.9rem;
    transition: all .15s ease-in-out;
    gap: 15px;
    justify-content: center;
    border-radius: var(--themeBorderRadius);
}
.dienstItem:hover{
    background-color:rgba(0,0,0,0.1);
}
.dienstItem:hover::after{
	position:absolute;
	top:0;
	bottom:0;
	left:0;
	right:0;
	background: rgba(0,0,0,0.1);
	content:'';
	border-radius: var(--themeBorderRadius);
	z-index: 0;
}

.dienstItem:hover .imageHolder{
    transform: rotateZ(5deg);
}
.dienstItem:hover .imageHolder *:not(g){
	transform: none !important;
}

.dienstenHolder{
	height:auto;
}
.dienstenHolder .dienstItem:nth-of-type(1) {
    background-color: var(--dienstColor01);
}

.dienstenHolder .dienstItem:nth-of-type(2) {
    background-color: var(--dienstColor02);
}

.dienstenHolder .dienstItem:nth-of-type(3) {
    background-color: var(--dienstColor03);
}

.dienstenHolder .dienstItem:nth-of-type(4) {
    background-color: var(--dienstColor04);
}

.dienstenHolder .dienstItem:nth-of-type(5) {
    background-color: var(--dienstColor05);
}

.dienstenHolder .dienstItem:nth-of-type(6) {
    background-color: var(--dienstColor06);
}

.dienstenHolder .dienstItem:nth-of-type(7) {
    background-color: var(--dienstColor07);
}

.dienstenHolder .dienstItem:nth-of-type(8) {
    background-color: var(--dienstColor08);
}

.dienstenHolder .dienstItem:nth-of-type(9) {
    background-color: var(--dienstColor09);
}

.dienstenHolder .dienstItem:nth-of-type(10) {
    background-color: var(--dienstColor10);
}

.dienstenHolder .dienstItem:nth-of-type(11) {
    background-color: var(--dienstColor11);
}

.dienstenHolder .dienstItem:nth-of-type(12) {
    background-color: var(--dienstColor12);
}

.dienstenHolder .dienstItem:nth-of-type(13) {
    background-color: var(--dienstColor13);
}

.dienstenHolder .dienstItem:nth-of-type(14) {
    background-color: var(--dienstColor14);
}

.dienstenHolder .dienstItem:nth-of-type(15) {
    background-color: var(--dienstColor15);
}

.dienstenHolder .dienstItem:nth-of-type(16) {
    background-color: var(--dienstColor16);
}

.dienstItem *{
    color:white;
}
.dienstItem .imageHolder{
    width: 30%;
    flex: none;
    aspect-ratio: 1;
    height: auto;
    display: flex;
    align-items: center;
    z-index: 1;
    justify-content: center;
}
.dienstItem .imageHolder svg{
    max-width: 100%;
    max-height: 100%;
}
.dienstItem .imageHolder img{
    width: auto;
    width: fit-content;
    block-size: fit-content;
    min-width: auto;
    min-height: auto;
    max-width: 100%;
    max-height: 100%;
}
.dienstItem .content{
    display:flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    z-index: 1;
    width: max-content;
}
.dienstItem .content h3{
    margin: 0;
    font-size: 25px;
}
.dienstItem .content p{
    font-size:14px;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* number of lines to show */
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media screen and (min-width:1025px){
	.dienstenHolder .dienstItem:not(:first-of-type):not(:nth-of-type(5)){
		border-left: 1px solid rgba(255,255,255,0.2);
	}

	.dienstenHolder .dienstItem:nth-of-type(4) ~ .dienstItem{
		border-top: 1px solid rgba(255,255,255,0.2);
	}
	.dienstenHolder{
		height: max-content;
		display: grid;
		grid-template-columns: repeat(4,1fr);
		gap: 1.5rem;
		aspect-ratio: 4.9/1;
		border-radius: var(--themeBorderRadius);
	}
}

.dienstenHolderSection{
	height: max-content;
	margin-top: -4rem;
}

@media screen and (max-width: 1024px){
    .dienstenHolderSection{
        height:auto;
    }
	.dienstenHolder{
		height: auto;
		display: grid;
		grid-template-columns: repeat(2,1fr);
	    gap: 10px;
	}
	.dienstenHolder .dienstItem:not(:first-of-type):not(:nth-of-type(5)):nth-of-type(even){
		border-left:1px solid rgba(255,255,255,0.2);
	}
	.dienstenHolder .dienstItem:nth-of-type(2) ~ .dienstItem{
		border-top:1px solid rgba(255,255,255,0.2);
	}
}
@media screen and (max-width:769px){
	div.fslider {
        min-height: 60dvh;
		height:auto;
    }
	.dienstenHolder {
	    height: max-content;
	    display: grid;
	    grid-template-columns: repeat(2,minmax(0, 1fr));
	    padding: 0;
	}
	.dienstenHolder .dienstItem{
		flex-direction:column;
		width: 100%;
		border-bottom:1px solid rgba(255,255,255,0.2);
		border-left:none !important;
		border-top:none !important;
	}
	.dienstenHolder .dienstItem p{
		display:none;
	}
	.dienstenHolder .dienstItem .content{
		text-align:center;
	}
	.dienstItem .content h3{
		word-break:break-word;
		font-size:15px;
	}
	
	.dienstenHolder .dienstItem:nth-of-type(even){
	    border-left: 1px solid rgba(255,255,255,0.2) !important;
	}
	
	.dienstenHolder .dienstItem:nth-last-child(1),
	.dienstenHolder .dienstItem:nth-last-child(2){
	    border-bottom: 0 !important;
	}

	.dienstenHolderSection{
	    height:auto;
	    margin-top: 0;
	}
	.dienstItem {
	    padding: 1rem 0;
	}
}