/* CO Elements – Frontend-Styles */

.co-teaser {
	--co-teaser-accent: #004a8f;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.co-teaser--horizontal {
	flex-direction: row;
	align-items: stretch;
}

.co-teaser__media {
	margin: 0;
	flex: 0 0 40%;
}

.co-teaser__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.co-teaser__body {
	padding: 1.25rem 1.5rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.co-teaser__title {
	margin: 0;
	padding-bottom: 0.5rem;
	border-bottom: 3px solid var(--co-teaser-accent);
	display: inline-block;
	align-self: flex-start;
}

.co-teaser__text {
	margin: 0;
}

.co-teaser__text p:last-child {
	margin-bottom: 0;
}

.co-teaser__link {
	margin-top: auto;
	align-self: flex-start;
	font-weight: 600;
	color: var(--co-teaser-accent);
	text-decoration: none;
}

.co-teaser__link:hover {
	text-decoration: underline;
}

@media (max-width: 640px) {
	.co-teaser--horizontal {
		flex-direction: column;
	}
}

/* CO Teaser Gruppe (Multi-Element-Grid) */
.co-teasers {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(1, 1fr);
}

.co-teasers--cols-2 {
	grid-template-columns: repeat(2, 1fr);
}

.co-teasers--cols-3 {
	grid-template-columns: repeat(3, 1fr);
}

.co-teasers--cols-4 {
	grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 960px) {
	.co-teasers--cols-3,
	.co-teasers--cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.co-teasers {
		grid-template-columns: 1fr;
	}
}
