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

/* Nur CPT-Archiv (/girls/): Seiten-Hintergrund. Divi-Seiten (/bordell/, /escort/) = Theme-Header wie /der-club/. */
body.post-type-archive-girl,
body.ds-sedcards-listing-view:not(.ds-sedcards-listing-page) {
	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;
}

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

/* Lesbarkeit: Archiv + nur Hauptinhalt auf Listing-Seiten (nicht Header) */
body.post-type-archive-girl article.type-girl .entry-title,
body.post-type-archive-girl article.type-girl h2,
body.post-type-archive-girl article.type-girl h3,
body.post-type-archive-girl .et_pb_post .entry-title,
body.post-type-archive-girl .et_pb_post h2,
body.post-type-archive-girl .et_pb_post h3,
body.ds-sedcards-listing-page #main-content article.type-girl .entry-title,
body.ds-sedcards-listing-page #main-content article.type-girl h2,
body.ds-sedcards-listing-page #main-content article.type-girl h3,
body.ds-sedcards-listing-page #main-content .et_pb_post .entry-title,
body.ds-sedcards-listing-page #main-content .et_pb_post h2,
body.ds-sedcards-listing-page #main-content .et_pb_post h3 {
	color: #f3ecff !important;
}

body.post-type-archive-girl article.type-girl .entry-title a,
body.post-type-archive-girl article.type-girl h2 a,
body.post-type-archive-girl article.type-girl h3 a,
body.post-type-archive-girl .et_pb_post .entry-title a,
body.post-type-archive-girl .et_pb_post h2 a,
body.post-type-archive-girl .et_pb_post h3 a,
body.ds-sedcards-listing-page #main-content article.type-girl .entry-title a,
body.ds-sedcards-listing-page #main-content article.type-girl h2 a,
body.ds-sedcards-listing-page #main-content article.type-girl h3 a,
body.ds-sedcards-listing-page #main-content .et_pb_post .entry-title a,
body.ds-sedcards-listing-page #main-content .et_pb_post h2 a,
body.ds-sedcards-listing-page #main-content .et_pb_post h3 a {
	color: #f3ecff !important;
}

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

body.post-type-archive-girl article.type-girl .post-content *,
body.post-type-archive-girl article.type-girl .entry-content *,
body.post-type-archive-girl .et_pb_post .post-content *,
body.post-type-archive-girl .et_pb_post .entry-content *,
body.ds-sedcards-listing-page #main-content article.type-girl .post-content *,
body.ds-sedcards-listing-page #main-content article.type-girl .entry-content *,
body.ds-sedcards-listing-page #main-content .et_pb_post .post-content *,
body.ds-sedcards-listing-page #main-content .et_pb_post .entry-content * {
	color: #cfc3e9 !important;
}

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

body.post-type-archive-girl .et_pb_post .et_pb_text_inner,
body.post-type-archive-girl .et_pb_post .et_pb_text_inner *,
body.post-type-archive-girl .et_pb_post .et_pb_post_content,
body.post-type-archive-girl .et_pb_post .et_pb_post_content *,
body.ds-sedcards-listing-page #main-content .et_pb_post .et_pb_text_inner,
body.ds-sedcards-listing-page #main-content .et_pb_post .et_pb_text_inner *,
body.ds-sedcards-listing-page #main-content .et_pb_post .et_pb_post_content,
body.ds-sedcards-listing-page #main-content .et_pb_post .et_pb_post_content * {
	color: #cfc3e9 !important;
}

body.post-type-archive-girl .et_pb_post .et_pb_text_inner a,
body.post-type-archive-girl .et_pb_post .et_pb_post_content a,
body.ds-sedcards-listing-page #main-content .et_pb_post .et_pb_text_inner a,
body.ds-sedcards-listing-page #main-content .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;
}

/* Sedcard-Kacheln: nur Archiv oder #main-content — nicht Divi-Header */
body.post-type-archive-girl .entry-featured-image-url,
body.post-type-archive-girl .entry-featured-image-url > img,
body.post-type-archive-girl .post-thumbnail,
body.post-type-archive-girl .post-thumbnail > img,
body.post-type-archive-girl .et_pb_image_container,
body.post-type-archive-girl .et_pb_image_container img,
body.ds-sedcards-listing-page #main-content .entry-featured-image-url,
body.ds-sedcards-listing-page #main-content .entry-featured-image-url > img,
body.ds-sedcards-listing-page #main-content .post-thumbnail,
body.ds-sedcards-listing-page #main-content .post-thumbnail > img,
body.ds-sedcards-listing-page #main-content .et_pb_image_container,
body.ds-sedcards-listing-page #main-content .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;
}

/* Urlaub: horizontaler Balken über Stats — z-index 8 (unterer Verlauf ist 7, sonst unsichtbar) */
.ds-sedcard-grid__media-wrap:has(.ds-sedcard-grid__vacation-banner) {
	overflow: visible;
}

.ds-sedcard-grid__vacation-banner {
	position: absolute;
	left: 8%;
	right: 8%;
	bottom: calc(5rem + 1.15cm);
	top: auto;
	z-index: 8;
	display: flex;
	justify-content: center;
	align-items: center;
	pointer-events: none;
	box-sizing: border-box;
	visibility: visible;
	opacity: 1;
}

.ds-sedcard-grid__vacation-text {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 0.4em 0.85em;
	transform: none;
	font-size: clamp(0.68rem, 2.6vw, 0.98rem);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	text-align: center;
	text-shadow:
		0 2px 8px rgba(0, 0, 0, 0.85),
		0 0 18px rgba(0, 0, 0, 0.4);
	background: linear-gradient(90deg, rgba(185, 45, 45, 0.92), rgba(120, 18, 18, 0.8));
	border: 2px solid rgba(255, 255, 255, 0.38);
	border-radius: 4px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.32);
	box-sizing: border-box;
}

.ds-sedcard-grid__vacation-line {
	display: inline-block;
	white-space: nowrap;
}

.ds-sedcard-grid__card.girl-sedcard--vacation .ds-sedcard-grid__img-el,
.ds-sedcard-grid__card.girl-sedcard--vacation .ds-sedcard-grid__media-wrap img {
	filter: brightness(0.72) saturate(0.85);
}

.ds-sedcard-grid__overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 7;
	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;
}
