/*
 * SEMSEO Assets – Frontend-Styling.
 * Bewusst ausschließlich auf .semseo-asset-Klassen skaliert, damit das
 * Theme-CSS nicht beeinflusst wird. Schriftart wird bewusst NICHT gesetzt,
 * damit die Karte die Theme-Schrift erbt; nur Größe/Gewicht werden lokal
 * gesteuert.
 */

.semseo-asset {
	--semseo-asset-blue: #1e6fa8;
	--semseo-asset-blue-dark: #0b3d66;
	box-sizing: border-box;
	max-width: 100%;
	margin: 1.5em 0;
	border: 1px solid #e1e4e8;
	border-radius: 10px;
	background: #fff;
	position: relative;
	overflow: hidden;
}

.semseo-asset * {
	box-sizing: border-box;
}

.semseo-asset__badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background: var(--semseo-asset-blue);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	padding: 3px 9px;
	border-radius: 999px;
	z-index: 2;
}

.semseo-asset__notice {
	margin: 0;
	padding: 12px 16px;
	font-size: 13px;
	color: #7a1f1f;
	background: #fdf1f1;
}

/* ---------- Body-Layout: Bild + Inhalt ---------- */

.semseo-asset__body {
	display: flex;
	gap: 16px;
	padding: 16px;
}

.semseo-asset--img-top .semseo-asset__body {
	flex-direction: column;
}

.semseo-asset--img-left .semseo-asset__body {
	flex-direction: row;
	align-items: flex-start;
}

.semseo-asset__image {
	flex: 0 0 auto;
}

.semseo-asset--img-left .semseo-asset__image {
	width: 35%;
	max-width: 220px;
}

.semseo-asset--img-top .semseo-asset__image {
	width: 100%;
}

.semseo-asset__image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
	object-fit: cover;
}

.semseo-asset__content {
	flex: 1 1 auto;
	min-width: 0;
}

.semseo-asset__title {
	margin: 0 0 8px;
	font-size: 1.15em;
	line-height: 1.3;
}

.semseo-asset__title a {
	text-decoration: none;
	color: inherit;
}

.semseo-asset__title a:hover {
	text-decoration: underline;
}

.semseo-asset__text {
	margin: 0 0 10px;
	font-size: 0.95em;
	line-height: 1.5;
	color: #3c434a;
}

.semseo-asset__bullets {
	margin: 0 0 14px;
	padding-left: 1.2em;
	font-size: 0.92em;
	line-height: 1.5;
	color: #3c434a;
}

.semseo-asset__bullets li {
	margin-bottom: 4px;
}

/* ---------- Button ---------- */

.semseo-asset__button {
	display: inline-block;
	background: var(--semseo-asset-btn-color, var(--semseo-asset-blue));
	color: #fff !important;
	font-weight: 600;
	font-size: 0.95em;
	text-decoration: none !important;
	padding: 10px 22px;
	border-radius: 6px;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
	border: none;
}

.semseo-asset__button:hover {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
	transform: translateY(-1px);
	color: #fff !important;
}

/* Button-only-Layout: kein Rahmen/Hintergrund drumherum, einfach ein
   Inline-Element für den Fließtext. */
.semseo-asset--button {
	display: inline-block;
	border: none;
	background: none;
	margin: 0 4px;
	vertical-align: middle;
}

/* ---------- Mobil ---------- */

@media ( max-width: 600px ) {
	.semseo-asset--img-left .semseo-asset__body {
		flex-direction: column;
	}

	.semseo-asset--img-left .semseo-asset__image {
		width: 100%;
		max-width: none;
	}

	.semseo-asset__body {
		padding: 12px;
	}

	.semseo-asset__button {
		display: block;
		text-align: center;
	}
}

/* ---------- Kategorie-Seiten / Listen ---------- */

.semseo-asset-category {
	max-width: 1100px;
	margin: 0 auto;
	padding: 24px 16px;
}

.semseo-asset-category__title {
	margin: 0 0 12px;
}

.semseo-asset-category__intro {
	margin-bottom: 20px;
	line-height: 1.6;
}

.semseo-asset-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 20px;
}

.semseo-asset-filter__item {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid #dceaf6;
	border-radius: 999px;
	background: #fff;
	color: #0b3d66;
	font-size: 0.9em;
	text-decoration: none;
}

.semseo-asset-filter__item:hover,
.semseo-asset-filter__item.is-active {
	background: #1e6fa8;
	border-color: #1e6fa8;
	color: #fff;
}

.semseo-asset-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 300px, 1fr ) );
	gap: 20px;
}

.semseo-asset-grid .semseo-asset {
	margin: 0;
}

/* In Rasterkarten das Bild immer oben, damit schmale Spalten nutzbar bleiben. */
.semseo-asset-grid .semseo-asset--img-left .semseo-asset__body {
	flex-direction: column;
}

.semseo-asset-grid .semseo-asset--img-left .semseo-asset__image {
	width: 100%;
	max-width: none;
}

.semseo-asset-empty {
	color: #50575e;
}
