/**
 * rheform Autoren â€“ Autorenbox unter News-BeitrÃ¤gen
 * imc marketing & consult gmbh
 *
 * Breite = Textspalte der News (WPBakery 8/12, zentriert, 15px Spalten-Padding).
 */

.rf-autor-box {
	box-sizing: border-box;
	width: calc(100% * 8 / 12);
	margin: 40px auto 80px;
	padding: 0 15px;
	font-family: Poppins, sans-serif;
	-webkit-hyphens: auto;
	hyphens: auto;
}

.rf-autor-box *,
.rf-autor-box *::before,
.rf-autor-box *::after {
	box-sizing: border-box;
}

.rf-autor-box__item {
	display: flex;
	align-items: center;
	gap: 32px;
	padding: 40px 0;
	border-top: 1px solid #e3e3e3;
}

.rf-autor-box__item:last-child {
	border-bottom: 1px solid #e3e3e3;
}

/* Portrait */
.rf-autor-box__avatar {
	flex: none;
	width: 112px;
	height: 112px;
	overflow: hidden;
	border-radius: 50%;
	background: #e9e9e9;
}

.rf-autor-box__avatar .rf-autor-box__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	object-position: center 20%;
}

.rf-autor-box__initials {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 34px;
	font-weight: 700;
	letter-spacing: 1px;
	color: #1a1917;
}

/* Text */
.rf-autor-box__body {
	flex: 1 1 auto;
	min-width: 0;
	padding-top: 6px;
}

.rf-autor-box .rf-autor-box__label {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 500;
	line-height: 20px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #777;
}

.rf-autor-box__badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	background: #fdc716;
	font-size: 11px;
	font-weight: 600;
	line-height: 18px;
	letter-spacing: 0.5px;
	color: #1a1917;
}

.rf-autor-box .rf-autor-box__name {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	color: #1a1917;
}

.rf-autor-box .rf-autor-box__bio {
	font-size: 15px;
	line-height: 26px;
	color: #555;
}

.rf-autor-box .rf-autor-box__bio p {
	margin: 0 0 12px;
	font: inherit;
	line-height: inherit;
	color: inherit;
}

.rf-autor-box .rf-autor-box__bio p:last-child {
	margin-bottom: 0;
}

/* Ganze Box klickbar: Link auf dem Namen wird per ::after Ã¼ber die Box gezogen */
.rf-autor-box__item--link {
	position: relative;
}

.rf-autor-box .rf-autor-box__link {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.rf-autor-box .rf-autor-box__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.rf-autor-box .rf-autor-box__link:focus-visible {
	outline: none;
}

.rf-autor-box .rf-autor-box__link:focus-visible::after {
	outline: 2px solid #fdc716;
	outline-offset: 4px;
}

/* Links innerhalb der Bio bleiben Ã¼ber der FlÃ¤che klickbar */
.rf-autor-box__item--link .rf-autor-box__bio a {
	position: relative;
	z-index: 2;
}

.rf-autor-box__item--link .rf-autor-box__avatar {
	transition: transform 0.3s ease;
}

.rf-autor-box__item--link:hover .rf-autor-box__link {
	color: #fdc716;
}

.rf-autor-box__item--link:hover .rf-autor-box__avatar {
	transform: scale(1.04);
}

.rf-autor-box__item--link .rf-autor-box__name::after {
	content: "→";
	display: inline-block;
	margin-left: 10px;
	color: #fdc716;
	opacity: 0;
	transform: translateX(-6px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.rf-autor-box__item--link:hover .rf-autor-box__name::after,
.rf-autor-box__item--link:focus-within .rf-autor-box__name::after {
	opacity: 1;
	transform: none;
}

/* Mehrere Autor:innen: Trennlinie nur zwischen den EintrÃ¤gen */
.rf-autor-box--multi .rf-autor-box__item + .rf-autor-box__item {
	border-top-color: #f0f0f0;
}

/* Tablet: Textspalte geht auf volle Breite (wie WPBakery) */
@media (max-width: 767px) {
	.rf-autor-box {
		width: 100%;
		margin: 32px auto 56px;
	}

	.rf-autor-box__item {
		gap: 24px;
		padding: 32px 0;
	}

	.rf-autor-box__avatar {
		width: 96px;
		height: 96px;
	}

	.rf-autor-box .rf-autor-box__name {
		font-size: 21px;
	}
}

/* Smartphone: Portrait Ã¼ber dem Text */
@media (max-width: 559px) {
	.rf-autor-box__item {
		flex-direction: column;
		gap: 16px;
	}

	.rf-autor-box__avatar {
		width: 88px;
		height: 88px;
	}

	.rf-autor-box__body {
		padding-top: 0;
	}
}
