/* Beiträge: volle Breite mit 100 px Rand, drei Kacheln nebeneinander (Oxygen-Repeater auf der Startseite). */

.nb-posts.nb-block {
	padding: 47px 100px 0;
}

.nb-posts--small.nb-block,
.nb-posts.nb-pt-small {
	padding-top: 50px;
}

.nb-posts.nb-pt-none {
	padding-top: 20px;
}

.nb-posts__inner {
	display: flex;
	flex-direction: column;
	margin-bottom: 50px;
}

.nb-posts .nb-posts__heading {
	margin-bottom: 0;
}

.nb-posts--small .nb-posts__heading {
	margin-bottom: 30px;
	font-size: 24px;
	color: var(--wp--preset--color--gold);
}

.nb-posts__intro {
	max-width: 700px;
	margin: 0 0 24px;
	font-size: 20px;
	line-height: 1.5;
	color: var(--wp--preset--color--black);
}

.nb-posts__list {
	display: flex;
	justify-content: space-between;
	margin-bottom: 50px;
}

/* In Oxygen hing die (leere) Seitennavigation als vierte, 72 px breite Spalte in der Reihe. */
.nb-posts--row .nb-posts__list::after {
	content: "";
	flex: 0 0 72px;
}

.nb-posts__item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 30%;
}

.nb-posts__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	margin-bottom: 20px;
	overflow: hidden;
	border-radius: 999px; /* Pille, wie die Formen im Hero */
	background: var(--wp--preset--color--light);
}

.nb-posts__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nb-posts .nb-posts__title {
	margin: 0 0 10px;
	font-size: 20px;
	color: var(--wp--preset--color--gold);
}

.nb-posts__info > :first-child {
	margin-top: 0;
}

.nb-posts__info > :last-child {
	margin-bottom: 0;
}

.nb-posts__date {
	margin: 0 0 20px;
	font-size: 12px;
	font-weight: 700;
}

.nb-posts__footer {
	display: flex;
	justify-content: space-between;
	width: 100%;
}

.nb-posts__footer > div {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

/* Pille „Preis“ mit Lorbeerkranz oben links im Bild */
.nb-posts__item {
	position: relative;
}

.nb-posts__badge {
	position: absolute;
	top: 14px;
	left: 50%; /* mittig, damit die Pillenform des Bildes sie nicht anschneidet */
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 5px 14px 5px 9px;
	border-radius: 999px;
	background: var(--wp--preset--color--blue);
	box-shadow: 0 4px 12px -4px rgb(0 0 0 / 35%);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--white);
	pointer-events: none;
}

.nb-posts__badge svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

/* Raster (Archivseiten): drei Spalten, alle Beiträge mit Seitenzahlen */
.nb-posts .nb-posts__heading--xlarge {
	margin: 20px 0 50px;
}

.nb-posts--grid .nb-posts__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(200px, 1fr));
	grid-auto-rows: minmax(min-content, 1fr); /* alle Zeilen so hoch wie die höchste */
	gap: 20px 40px;
}

.nb-posts--grid .nb-posts__item {
	width: 100%;
	margin-bottom: 50px;
}

.nb-posts--grid .nb-posts__info {
	margin-bottom: 10px;
}

.nb-posts__pages {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 50px;
	font-size: 12px;
}

.nb-posts__pages .current {
	font-weight: 700;
}

@media (max-width: 1120px) {
	.nb-posts.nb-block {
		padding-inline: 50px;
	}

}

@media (max-width: 991px) {
	.nb-posts.nb-block {
		padding-inline: 10px;
	}

}

@media (max-width: 767px) {
	.nb-posts__list,
	.nb-posts--grid .nb-posts__list {
		display: flex;
		flex-direction: column;
		margin-bottom: 0;
	}

	.nb-posts--grid .nb-posts__item {
		margin-bottom: 80px;
	}

	.nb-posts--row .nb-posts__list::after {
		content: none;
	}

	.nb-posts__item {
		width: 100%;
		margin-bottom: 80px;
	}

}

@media (min-width: 768px) {
	.nb-posts--mobile-only {
		display: none;
	}
}

/* im Editor trotzdem sichtbar, aber blasser */
.editor-styles-wrapper .nb-posts--mobile-only {
	display: block;
	opacity: 0.6;
}
