/**
 * DATAsoft Sedcards — edler Bildrahmen, Wasserzeichen, ACF-Ecken-Overlays.
 */

/* Rahmen (Goldton, dezent) */
.ds-sedcard-photo-frame {
	box-shadow:
		0 0 0 1px rgba(40, 35, 30, 0.14),
		0 0 0 2px rgba(212, 175, 55, 0.22),
		inset 0 0 0 1px rgba(255, 255, 255, 0.12),
		0 10px 36px rgba(0, 0, 0, 0.14);
	border-radius: 4px;
}

/* Wasserzeichen: kaum sichtbar, bei genauem Hinsehen erkennbar */
.ds-sedcard-photo__watermark {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 2;
	transform: translate(-50%, -50%) rotate(-16deg);
	font-size: clamp(0.65rem, 2.2vw, 0.95rem);
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: lowercase;
	color: rgba(255, 255, 255, 0.92);
	opacity: 0.13;
	text-shadow: 0 0 2px rgba(0, 0, 0, 0.25);
	white-space: nowrap;
	pointer-events: none;
	user-select: none;
	mix-blend-mode: soft-light;
}

/* Oben rechts: Alter / Größe / Gewicht */
.ds-sedcard-photo__corner--tr {
	position: absolute;
	top: 0.45rem;
	right: 0.4rem;
	z-index: 3;
	max-width: 46%;
	text-align: right;
	pointer-events: none;
}

.ds-sedcard-photo__stat {
	color: rgba(255, 255, 255, 0.94);
	font-size: 0.6rem;
	line-height: 1.45;
	text-shadow:
		0 1px 3px rgba(0, 0, 0, 0.9),
		0 0 14px rgba(0, 0, 0, 0.45);
}

.ds-sedcard-photo__stat-label {
	display: inline-block;
	margin-right: 0.15em;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 0.52rem;
	opacity: 0.82;
}

.ds-sedcard-photo__stat-val {
	font-weight: 600;
	letter-spacing: 0.02em;
}

/* Unterer Balken: Incall | Name | Preis */
.ds-sedcard-grid__overlay-bar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 0.35rem 0.5rem;
	align-items: end;
	width: 100%;
}

.ds-sedcard-grid__bar-bl,
.ds-sedcard-grid__bar-br {
	font-size: 0.62rem;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.92);
	text-shadow:
		0 1px 3px rgba(0, 0, 0, 0.88),
		0 0 12px rgba(0, 0, 0, 0.4);
	font-weight: 500;
	letter-spacing: 0.03em;
}

.ds-sedcard-grid__bar-bl {
	text-align: left;
	padding-right: 0.25rem;
}

.ds-sedcard-grid__bar-br {
	text-align: right;
	padding-left: 0.25rem;
	white-space: nowrap;
}

.ds-sedcard-grid__bar-center {
	text-align: center;
	min-width: 0;
}

.ds-sedcard-grid__bar-center .ds-sedcard-grid__location {
	margin-top: 0.2rem;
	font-size: 0.72rem;
}

/* Archiv-Thumbnails: Bild wie im Grid füllen (nur img oder Link+img) — gilt für .ds-sedcard-grid__media-wrap */
.ds-sedcard-grid__media-wrap.ds-sedcard-photo--archive > img,
.ds-sedcard-grid__media-wrap.ds-sedcard-photo--archive > a {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	display: block;
}

.ds-sedcard-grid__media-wrap.ds-sedcard-photo--archive > a img,
.ds-sedcard-grid__media-wrap.ds-sedcard-photo--archive > img.wp-post-image,
.ds-sedcard-grid__media-wrap.ds-sedcard-photo--archive img.wp-post-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
}

/* Schlankes Listing-Thumb: kein absolutes Füllen — sonst kollabiert der Link-Kasten (Bilder unsichtbar). */
.ds-sedcard-archive-listing-thumb.ds-sedcard-photo--archive > img,
.ds-sedcard-archive-listing-thumb.ds-sedcard-photo--archive > a {
	position: relative;
	left: auto;
	top: auto;
	width: 100%;
	height: auto;
	max-width: 100%;
	z-index: auto;
	display: block;
}

.ds-sedcard-archive-listing-thumb.ds-sedcard-photo--archive > a img,
.ds-sedcard-archive-listing-thumb.ds-sedcard-photo--archive > img.wp-post-image,
.ds-sedcard-archive-listing-thumb.ds-sedcard-photo--archive img.wp-post-image {
	width: 100%;
	height: auto;
	max-width: 100%;
	display: block;
}

/* Archiv-Listing: volle Kachelbreite, Modul-Innenrand (12px) aus Grid.css hier aushebeln */
body.ds-sedcards-listing-view .entry-featured-image-url .ds-sedcard-grid__media-wrap.ds-sedcard-photo--archive {
	margin: 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
