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

/* Archiv-Seite: weißen Hintergrund durch Blau/Violett-Verlauf ersetzen */
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) {
	background-image:
		radial-gradient(120% 95% at 8% 0%, rgba(32, 92, 220, 0.32) 0%, rgba(32, 92, 220, 0) 52%),
		radial-gradient(100% 90% at 92% 5%, rgba(182, 60, 219, 0.3) 0%, rgba(182, 60, 219, 0) 56%),
		linear-gradient(180deg, #090719 0%, #090a24 36%, #0a0820 100%);
	background-repeat: no-repeat, no-repeat, no-repeat;
	background-size: cover, cover, cover;
	background-attachment: fixed, fixed, fixed;
}

:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) #page-container,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) #et-main-area,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) #main-content,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) .container,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) #left-area,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) article.type-girl,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) .et_pb_post {
	background: transparent !important;
}

/* Lesbarkeit unter den Bildern auf dunklem Archiv-Hintergrund */
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) article.type-girl .entry-title,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) article.type-girl h2,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) article.type-girl h3,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) .et_pb_post .entry-title,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) .et_pb_post h2,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) .et_pb_post h3 {
	color: #f3ecff !important;
}

:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) article.type-girl .entry-title a,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) article.type-girl h2 a,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) article.type-girl h3 a,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) .et_pb_post .entry-title a,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) .et_pb_post h2 a,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) .et_pb_post h3 a {
	color: #f3ecff !important;
}

:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) article.type-girl .post-content,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) article.type-girl .entry-content,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) .et_pb_post .post-content,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) .et_pb_post .entry-content,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) article.type-girl p,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) .et_pb_post p,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) .ds-sedcards-archive-excerpt {
	color: #cfc3e9 !important;
}

/* Theme-/Divi-Farben hart überschreiben (untere Meta/Links/Excerpt waren noch zu grau) */
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) article.type-girl .post-content *,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) article.type-girl .entry-content *,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) .et_pb_post .post-content *,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) .et_pb_post .entry-content * {
	color: #cfc3e9 !important;
}

:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) article.type-girl .post-content a,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) article.type-girl .entry-content a,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) .et_pb_post .post-content a,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) .et_pb_post .entry-content a {
	color: #e0d2ff !important;
}

/* Divi Blog/Grid: Auszug oft in .et_pb_text_inner / .et_pb_post_content statt nur .post-content */
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) .et_pb_post .et_pb_text_inner,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) .et_pb_post .et_pb_text_inner *,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) .et_pb_post .et_pb_post_content,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) .et_pb_post .et_pb_post_content * {
	color: #cfc3e9 !important;
}

:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) .et_pb_post .et_pb_text_inner a,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) .et_pb_post .et_pb_post_content a {
	color: #e0d2ff !important;
}

.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: 12px;
	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: 12px;
	overflow: hidden;
	aspect-ratio: 2 / 3;
	background: #e8e8e8;
}

/* Archiv/Fallback-Renderpfade (Divi Core Markup) ebenfalls mit runden Ecken */
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) .entry-featured-image-url,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) .entry-featured-image-url > img,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) .post-thumbnail,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) .post-thumbnail > img,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) .et_pb_image_container,
:is(body.post-type-archive-girl, body.ds-sedcards-listing-view) .et_pb_image_container img {
	border-radius: 12px !important;
	overflow: hidden !important;
}

.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;
}

/* Stundenhotel: Buchungs-Link unter der Kachel */
.ds-sedcard-grid__tile-actions {
	margin-top: 0.5rem;
}

.ds-sedcard-grid__tile-actions--dual {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.65rem;
}

.ds-sedcard-grid__btn-profile {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0.45rem 1rem;
	border-radius: 8px;
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none;
	background: #fff;
	color: #4c1d95;
	border: 2px solid rgba(111, 61, 240, 0.55);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: filter 0.15s, transform 0.15s, border-color 0.15s, background 0.15s;
}

.ds-sedcard-grid__btn-profile:hover {
	filter: brightness(1.02);
	color: #3b0764;
	border-color: #6f3df0;
	background: #faf5ff;
	transform: translateY(-1px);
}

.ds-sedcard-grid__btn-book {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0.45rem 1rem;
	border-radius: 8px;
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none;
	background: linear-gradient(135deg, #6f3df0, #8b5cf6);
	color: #fff;
	border: 0;
	box-shadow: 0 4px 14px rgba(111, 61, 240, 0.35);
	transition: filter 0.15s, transform 0.15s;
}

.ds-sedcard-grid__btn-book:hover {
	filter: brightness(1.06);
	color: #fff;
	transform: translateY(-1px);
}

.ds-sedcard-grid__classic-book {
	margin: 0.75rem 0 0;
}
