section.mM_post_type .mM_row {
	gap: 20px;
}

section.mM_post_type .mM_post_type_filter_items {
	display: flex;
	margin: 10px 0;
}

/* Mobil-Filter-Toggle nur im mobilen Dropdown sichtbar (schlägt .mM_d_flex,
   nimmt den Button auf Desktop auch aus der Tab-Reihenfolge) */
section.mM_post_type .mM_post_type_filter_mobile_active {
	display: none;
}

/* Controls als <button> gerendert – Reset, damit Optik/Layout gleich bleiben */
section.mM_post_type .mM_post_type_filter_item,
section.mM_post_type .mM_post_type_filter_mobile_active,
section.mM_post_type .pagination_item,
section.mM_post_type .pagination_control {
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	color: inherit;
	-webkit-appearance: none;
	appearance: none;
}

section.mM_post_type .mM_post_type_filter_item {
	padding: 10px;
	background-color: gray;
	cursor: pointer;
}

section.mM_post_type .mM_post_type_filter_item:not(:last-child) {
	margin-right: 20px;
}

section.mM_post_type .mM_post_type_filter_item.active {
	background-color: red;
}

section.mM_post_type .mM_post_type_post > a {
	width: 100%;
	height: 100%;
}

section.mM_post_type .mM_post_type_post_image_container {
	height: 500px;
}

section.mM_post_type .mM_post_type_post_image_container a {
	width: 100%;
	height: 100%;
}

section.mM_post_type .mM_post_type_post_content {
	background-color: #f1f1f1;
	height: 100%;
}

section.mM_post_type .mM_post_type_post_text_content_container {
	padding: 20px;
}

section.mM_post_type .mM_post_type_post_link_container {
	margin-top: 20px;
}

/* Equal height per row: the row stretches the cards, the content fills the card,
   the link sits at the bottom. A single card in the last row keeps its own height. */
section.mM_post_type .mM_post_type_posts_container .mM_row {
	align-items: stretch;
}

section.mM_post_type .mM_post_type_post,
section.mM_post_type .mM_post_type_post > a,
section.mM_post_type .mM_post_type_post_content,
section.mM_post_type .mM_post_type_post_text_content_container {
	display: flex;
	flex-direction: column;
}

section.mM_post_type .mM_post_type_post > a,
section.mM_post_type .mM_post_type_post_content,
section.mM_post_type .mM_post_type_post_text_content_container {
	flex: 1 1 auto;
}

section.mM_post_type .mM_post_type_post_link_container {
	margin-top: auto;
	padding-top: 20px;
}

section.mM_post_type .mM_post_type_load_more_container,
section.mM_post_type .mM_post_type_pagination {
	display: flex;
	justify-content: center;
	margin-top: 50px;
}

section.mM_post_type .mM_post_type_load_more_container.mM_d_none {
	display: none;
}

section.mM_post_type .mM_post_type_load_more_content {
	position: relative;
}

section.mM_post_type .mM_post_type_load_more_loader {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	transform: translate(-50%, -50%);
	cursor: default;
}

section.mM_post_type .mM_post_type_load_more_loader img {
	width: 100%;
	height: 100%;
}

section.mM_post_type .mM_post_type_load_more_text {
	cursor: pointer;
}

section.mM_post_type .pagination_control,
section.mM_post_type .pagination_item {
	cursor: pointer;
	/* Seitenzahlen und Pfeile sind Links (?seite=x), keine Buttons mehr */
	text-decoration: none;
}

section.mM_post_type .pagination_active {
	color: #b04453;
}

section.mM_post_type .mM_post_type_pagination_control_container,
section.mM_post_type .mM_post_type_pagination_items_container {
	display: flex;
}

section.mM_post_type[data-text-kurzen="false"] .mM_post_type_post_text_content_container {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

/* Mobil-Filter-Toggle nur im mobilen Breakpoint einblenden */
@media (max-width: 475px) {
	section.mM_post_type .mM_post_type_filter_mobile_active {
		display: flex;
	}
}
