/**
 * DATAsoft Sedcards — Divi-Modul „Sedcard Grid“ (Kachel-Layout).
 */

.ds-sedcard-grid--tiles .ds-sedcard-grid__inner {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(var(--ds-sedcard-cols, 4), minmax(0, 1fr));
}

@media (max-width: 980px) {
	.ds-sedcard-grid--tiles .ds-sedcard-grid__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.ds-sedcard-grid--tiles .ds-sedcard-grid__inner {
		grid-template-columns: 1fr;
	}
}

.ds-sedcard-grid--tiles .ds-sedcard-grid__card--tile {
	border: 1px solid #e2e2e2;
	border-radius: 3px;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
	background: #fff;
	overflow: hidden;
}

.ds-sedcard-grid__tile-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.ds-sedcard-grid__tile-link:hover .ds-sedcard-grid__headline,
.ds-sedcard-grid__tile-link:focus .ds-sedcard-grid__headline {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ds-sedcard-grid__media-wrap {
	position: relative;
	margin: 12px;
	border-radius: 2px;
	overflow: hidden;
	aspect-ratio: 2 / 3;
	background: #e8e8e8;
}

.ds-sedcard-grid__img-el {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
}

.ds-sedcard-grid__placeholder {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(145deg, #e8e8e8, #f5f5f5);
}

.ds-sedcard-grid__media-wrap .ds-sedcard-grid__img-el {
	z-index: 1;
}

.ds-sedcard-grid__overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 4;
	padding: 2.5rem 0.5rem 0.65rem;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.4) 52%, transparent 100%);
	pointer-events: none;
}

.ds-sedcard-grid__headline {
	font-weight: 700;
	color: #fff;
	font-size: clamp(0.95rem, 2.5vw, 1.1rem);
	line-height: 1.25;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.ds-sedcard-grid__location {
	color: #6fd98b;
	font-size: 0.78rem;
	margin-top: 0.35rem;
	font-weight: 500;
	line-height: 1.3;
}

/* Klassisches Layout (Overlay aus) */
.ds-sedcard-grid--classic .ds-sedcard-grid__inner {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(var(--ds-sedcard-cols, 4), minmax(0, 1fr));
}

.ds-sedcard-grid--classic .ds-sedcard-grid__card {
	border: 1px solid #ddd;
	background: #fff;
	overflow: hidden;
}

.ds-sedcard-grid--classic .ds-sedcard-grid__media {
	display: block;
}
