allkand {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	gap: 10px;
}


kand {
	
  transition: all 0.4s ease;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  aspect-ratio: 1/1.4;
  cursor: pointer;  
}



.nonmobilekand:hover {
	transform: scale(1.04);
	box-shadow: 5px 5px 5px rgba(0,0,0,0.4);
	
}

Kandname {
 position: relative;
  top: 100%;
  left: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
 
  margin-top: -38px;
  height: 25px;
  text-align: left;
  font-size: 12px;
  line-height: 0;
}
kandinner {
display: grid;
  grid-template-columns: min-content auto;
  height: 40px;
  gap: 12px;
  color: white;
  background: #374350;
  top: calc(100% - 50px);
  position: relative;
}
kandname>* {
	
}

kandname>nachname {
	text-transform: uppercase;
}

listenplatz {
/* position: relative; */
  /* top: -1.5px; */
  /* left: 3px; */
  /* background: orange; */
  /* height: 45px; */
  /* border-radius: 100%; */
  /* aspect-ratio: 1 / 1; */
  /* display: grid; */
  /* grid-template-columns: 1fr; */
  /* text-transform: uppercase; */
  /* align-items: center; */
  position: absolute;
  bottom: 3%;
  right: 3%;
  background: orange;
  height: 25%;
  border-radius: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  grid-template-columns: 1fr;
  text-transform: uppercase;
  align-items: center;

}
listenplatz small {
	font-size: 75%;
}
listenplatz>item {
  color: white;
  font-weight: 400;
  line-height: 100%;
  width: 100%;
  transform: rotate(-8deg);
  padding: 5px;
  font-size: clamp(12px, 0.8vw, 14px);
  cursor: pointer;
}

kand h2 {
	font-size: clamp(15px, 2.5vw, 30px) !important;
}

kandoverlay {
	cursor:pointer;
	display: none;
  position: fixed;
  height: 100vh;
  width: 100%;
  background: rgba(55,67,80,1);
  z-index: 200000000;
  top: 0;
  left: 0;
  padding: 20px;
  

}
kandoverlayinner {
	display: grid;
  grid-template-columns: auto 400px auto;  
	
}
kandoverlayinner>data>b {
	font-size: small;
}

kandoverlayinner>data {
	color: white;
	padding: 20px;
}



kandoverlayinner>img {
	width: 100%;
	max-width: 400px;
}



@media screen and (max-width: 800px) {
    allkand {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr 1fr;	
	}
	
	kand .flip-box-back>div>* {
		display: none;
	}
	
	#Kandidaten .container {
		padding-right: 0px !important;
		padding-left: 0px !important;
	}
	
	#Kandidaten h2 {
		padding-right: 15px !important;
		padding-left: 15px !important;
	}
	
	kandoverlay {
		padding: 0;
		overflow-y: scroll;
		overscroll-behavior: contain;
	}
	
	kandoverlayinner>img {
	width: 100vw;
	}
	kandoverlayinner>data>br {
		margin-top: 2px;
		display: block;
	}
	

}

@media screen and (min-width: 801px) { 
	kandoverlayinner {
		grid-template-columns: auto max-content 15px auto auto;
		height: 100%;
		align-items: center;
		align-content: center;
	}
	kandoverlayinner>data {
		max-width: 850px;
		padding: 0px 0px 0px 20px;
	}
	.delitem {
		display: none;
	}
}
@media screen and (max-width: 400px) {
kandoverlayinner>img {
	max-width: 100vw;
	}
	
	
}
@media screen and (min-width: 1000px) {
    allkand {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;	
	}
	

}

 /* The flip box container - set the width and height to whatever you want. We have added the border property to demonstrate that the flip itself goes out of the box on hover (remove perspective if you don't want the 3D effect */
.flip-box {
  background-color: transparent;
  width: 100%;
  aspect-ratio: 1/1.4;
  
  perspective: 1000px; /* Remove this if you don't want the 3D effect */
}

/* This container is needed to position the front and back side */
.flip-box-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-box:hover .flip-box-inner {
  transform: rotateY(180deg);
}

/* Position the front and back side */
.flip-box-front, .flip-box-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
}

/* Style the front side (fallback if image is missing) */
.flip-box-front {
  background-color: #bbb;
  color: black;
}

/* Style the back side */
.flip-box-back {
  background-color: #55B7C2;
  color: white;
  transform: rotateY(180deg);
} 