/* Var Definitions */
.TeaserList {
	--bg-color: #fff;									/* var(--logo-color-2, #888888); */
	--font-color: var(--font-color-dark, #ffffff);
	--button-bg-color: var(--logo-color-1, #007559);
	--link-color: var(--font-color-light, #ffffff);
	--h1-color: var(--font-color-light);
	--h2-color: var(--font-color-dark);
	--h3-color:  var(--logo-color-2);									/* var(--font-color-light); */
	--padding-left-right: 20px;
	--num-cols: 4;
  --gap-width: 20px;
 }

.TeaserList {
	display: flex;
  gap: var(--gap-width);
  margin: 20px 0;
}

.TeaserList.columns {
	display: block;
	column-count: var(--num-cols);
	column-width: calc( (100% / var(--num-cols)) - ( var(--gap-width) * (var(--num-cols) - 1) / var(--num-cols)));
  column-gap: var(--gap-width);
}
.TeaserList.columns .item {
	margin-bottom: 10px;
}

.TeaserList .item {
	flex-basis: calc( (100% / var(--num-cols)) - ( var(--gap-width) * (var(--num-cols) - 1) / var(--num-cols)));
	box-sizing: border-box; 
	display: flex;
	flex-direction: column;
	align-items: center;
	background-color: var(--bg-color);
	overflow: hidden;
	box-shadow: rgba(0, 0, 0, 0.5) 2px 2px 5px;
  border-radius: 10px;
}

.TeaserList .item .aufmacher > * { width: 100%; box-sizing: border-box; padding: 0 var(--padding-left-right); }		/* all direct children get padding */
.TeaserList .item .aufmacher > a { padding: 0 0; }		/* img without padding */
.TeaserList .item .aufmacher {}
.TeaserList .item .aufmacher h2 { padding-top: 10px; color: #fff; }

.TeaserList .item .teaser { display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; padding: 10px 0; width: 100%; }
.TeaserList .item .teaser > *  { box-sizing: border-box; padding: 0 var(--padding-left-right); }		/* all direct children get padding */
.TeaserList .item .teaser .body { flex-grow: 1; }

.TeaserList .item img { max-width: 100%; }
.TeaserList .item .head { width: 100%; margin-bottom: 12px; display: flex; align-items: flex-start; box-sizing: border-box; }

.TeaserList .item .teaser h2 { color: var(--h2-color); margin-bottom: 0px; line-height: 120%; }
.TeaserList .item .teaser h3 { color: var(--h3-color); font-weight: 400; font-size: 14px; line-height: 140%; }
.TeaserList .item .text {	color: var(--font-color); }
.TeaserList .item .text h4 { display: none; }
.TeaserList .item .text p { color: var(--font-color); font-size: 16px; line-height: 150%; }

.TeaserList .item .foot .link {
  display: block;
  margin: 30px 20% 0px;
  padding: 3px;
  background: var(--logo-color-1);
  color: var(--font-color-light);
  transition: background-color 500ms ease 0s;
  line-height: 3rem;
  text-align: center;
  border-radius: 9px;
}
.TeaserList .item .head .date.vorschau {
  display: inline;
  background-color: var(--logo-color-2);
  color: var(--font-color-light);
  padding: 0 10px;
  margin-right: 10px;
}

.TeaserList .item .head .vorschautext { hyphens: auto; }

.TeaserList .item .date {
  display: none;
}

@media all and (max-width: 1100px) { .TeaserList { --num-cols: 3 !important; } }
@media all and (max-width: 700px) {	.TeaserList { --num-cols: 2 !important; } }
@media all and (max-width: 500px) {	.TeaserList { --num-cols: 1 !important; } }

@media all and (max-width: 1100px) {
	.TeaserList .item .head { flex-wrap: wrap; }
	.TeaserList .item .head > div { flex-basis: 100% }
}

/* hover animation */
/* hover */
.TeaserList .item .aufmacher { overflow: hidden; }
.TeaserList .item.ani-end img:hover { transform: scale(1.15) rotate(-5deg); }
.TeaserList .item .text .link:hover { text-decoration: none; background: var(--logo-color-2); transition: background-color 500ms; }

/* Scroll Animation */
.TeaserList .item.ani-start {}
.TeaserList .item.ani-end {}
