/* Rhenus Management — Portrait-Karten mit Overlay, 3er-Grid. Scoped auf .rh-mgmt, Vanilla, keine Libs. */

.rh-mgmt {
	--rh-mgmt-accent: #ffcc01;
	font-family: inherit;
}
.rh-mgmt * { box-sizing: border-box; }

.rh-mgmt__grid {
	display: grid;
	grid-template-columns: repeat(var(--rh-mgmt-cols, 3), 1fr);
	gap: 24px;
}

.rh-mgmt__card { position: relative; }

/* Portrait fuellt die Karte: FESTE Pixel-Hoehe (kein %-padding/aspect-ratio) — immun gegen Mobile-Safari-Grid-Kollaps + Editor-Glitch */
.rh-mgmt__media {
	position: relative;
	width: 100%;
	height: 520px;
	border-radius: 16px;
	overflow: hidden;
	background: linear-gradient(160deg, #3a3a3a, #1c1c1c);
	box-shadow: 0 14px 34px -22px rgba(0, 0, 0, 0.32);
}
.rh-mgmt__media img {
	position: absolute !important;
	inset: 0 !important;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	transition: transform 0.5s ease;
}

/* Lese-Verlauf fuer den Overlay-Text */
.rh-mgmt__scrim {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 62%;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.22) 58%, rgba(0, 0, 0, 0));
	pointer-events: none;
}

/* Gelber "Seit"-Chip oben links */
.rh-mgmt__chip {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	background: var(--rh-mgmt-accent);
	color: #412402;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.01em;
	padding: 5px 11px;
	border-radius: 999px;
}

/* Name + Position als Overlay unten */
.rh-mgmt__overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 18px 18px 20px;
}
.rh-mgmt__name {
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
	text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}
.rh-mgmt__role {
	color: rgba(255, 255, 255, 0.85);
	font-size: 14px;
	line-height: 1.35;
	margin-top: 4px;
}

/* Hover: Lift + Bildzoom — nur Desktop */
@media (min-width: 769px) {
	.rh-mgmt__media { transition: transform 0.35s ease, box-shadow 0.35s ease; }
	.rh-mgmt__card:hover .rh-mgmt__media { transform: translateY(-4px); box-shadow: 0 24px 46px -22px rgba(0, 0, 0, 0.42); }
	.rh-mgmt__card:hover .rh-mgmt__media img { transform: scale(1.05); }
}

/* Tablet: 2 Spalten, Mobil: 1 Spalte */
@media (max-width: 900px) {
	.rh-mgmt__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
	.rh-mgmt__media { height: 360px; }
}
@media (max-width: 560px) {
	.rh-mgmt__grid { grid-template-columns: 1fr; }
	.rh-mgmt__media { height: 380px; }
}

@media (prefers-reduced-motion: reduce) {
	.rh-mgmt__media,
	.rh-mgmt__media img { transition: none; }
}
