/*
 * Standard-Styling für den Archiv-Block. Das "cover"-Layout entspricht 1:1 dem
 * Aussehen, das man bisher nur bekam, wenn man dem Block zusätzlich eine der
 * alten Grid-Klassen (z. B. "stellungnahme", "positionspapiere") als cssClass
 * mitgab – jene Klassen kamen aus dem Customizer-Zusatz-CSS und wurden dort
 * über .stellungnahme-grid .wp-block-cover(__*) etc. definiert. Wird trotzdem
 * eine cssClass gesetzt, wird das bestehende Seiten-Styling zusätzlich
 * angewendet und kann diese Regeln bei Bedarf überschreiben.
 */

.archive-block-heading {
	margin: 0 0 1.5rem;
	font-weight: bolder;
	color: var(--wp--preset--color--accent-1, #ff6600);
}

.archive-block-grid {
	display: grid;
	gap: 30px;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	margin-bottom: 1.5rem;
}

/* Positionierungskontext (wie .stellungnahme-grid im Customizer-CSS) */
.archive-block-item .wp-block-cover {
	position: relative;
	min-height: 350px;
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
}

/* Bild immer ganz hinten */
.archive-block-item .wp-block-cover__image-background {
	position: absolute !important;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1 !important;
}

/* Dunkler Overlay */
.archive-block-item .wp-block-cover__background {
	position: absolute !important;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2 !important;
	background-color: rgba(0, 0, 0, 0.25) !important;
	pointer-events: none;
}

/* Innerer TextContainer immer oben */
.archive-block-item .wp-block-cover__inner-container {
	position: relative;
	z-index: 3 !important;
	padding: 20px;
	color: #fff;
}

/* Headline-Anpassung: Datum/Titel-Zeile nutzt hier Flexbox statt festem Abstand */
.archive-block-grid p.has-large-font-size {
	margin-top: 0 !important;
}

.archive-block-tile-link {
	transition: opacity 0.15s ease;
}

.archive-block-tile-link:hover {
	opacity: 0.9;
}

.archive-block-filter-bar {
	display: flex;
	flex-wrap: wrap;
	/* gap: 12px; */
	margin-bottom: 1.5rem;
	justify-content: space-between;
}

.archive-block-filter select {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid #ddd;
	border-radius: 999px;
	padding: 10px 32px 10px 16px;
	background-color: #fff;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 10px;
	font-size: 14px;
	cursor: pointer;
}

/* Newsroom-Layout (Hintergrundbild-Div statt <img>) */
.archive-block-cover {
	position: relative;
	min-height: 300px;
	background-size: cover;
	background-position: center;
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
}

.archive-block-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
}

.archive-block-text {
	position: relative;
	z-index: 1;
	padding: 20px;
	color: #fff;
}

.archive-block-text h3 {
	margin: 0 0 8px;
	font-size: 1.1rem;
}

.archive-block-text p {
	margin: 0;
	font-size: 0.9rem;
}
