/* ==========================================
   Content Block: rs/hero-small
   ========================================== */

.rs-hero-small {
	--rs-hero-small-height: 420px;
	--rs-hero-small-container-width: 100%;

	--rs-hero-small-content-width: 55%;
	--rs-hero-small-description-width: 600px;

	--rs-hero-small-picture-clip-path:
		polygon(0 0, 100% 0, 100% 84%, 0 100%);

	display: grid;
	background: var(--color-neutral-10);
}


/* ==========================================
   Content
   ========================================== */

.rs-hero-small__wrapper {
	order: 2;
	min-width: 0;
}

.rs-hero-small__content {
	padding-top: var(--hero-content-padding-vertical);
	padding-bottom: var(--hero-content-padding-vertical);
	padding-right: .75rem;
	padding-left: .75rem;
}

.rs-hero-small__content > * {
	max-width: var(--max-width-paragraph);
}


/* ==========================================
   Buttons
   ========================================== */

.rs-hero-small__buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem;
	margin-top: 1.5rem;
}

.rs-hero-small__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .75rem;
}

.rs-hero-small__button-icon {
	flex-shrink: 0;
	transition: transform .25s ease;
}

.rs-hero-small__button:hover .rs-hero-small__button-icon,
.rs-hero-small__button:focus-visible .rs-hero-small__button-icon {
	transform: translateX(4px);
}


/* ==========================================
   Image
   ========================================== */

.rs-hero-small__image-wrap {
	order: 1;
	min-width: 0;
}

.rs-hero-small__picture {
	display: flex;
	width: 100%;
	border-radius: 0;
	clip-path: var(--rs-hero-small-picture-clip-path);
}

.rs-hero-small__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0;
}


/* ==========================================
   Responsive
   ========================================== */

@media (min-width: 576px) {

	.rs-hero-small {
		--rs-hero-small-container-width: 540px;
	}

	.rs-hero-small__content {
		max-width: var(--rs-hero-small-container-width);
		margin-inline: auto;
	}

}

@media (min-width: 768px) {

	.rs-hero-small {
		--rs-hero-small-container-width: 720px;

		--rs-hero-small-picture-clip-path:
			polygon(15% 0, 100% 0, 100% 100%, 0 100%);

		grid-template-columns:
			minmax(0, var(--rs-hero-small-content-width))
			minmax(0, 1fr);

		min-height: var(--rs-hero-small-height);
	}

	.rs-hero-small__wrapper {
		display: flex;
		align-items: center;
		order: 1;

		padding-left: max(
			0px,
			calc(
				(100vw - var(--rs-hero-small-container-width)) / 2
			)
		);
	}

	.rs-hero-small__content {
		width: 100%;
		max-width: none;
		margin: 0;
		padding-right: 1.5rem;
	}

	.rs-hero-small__content > * {
		max-width: 100%;
	}

	.rs-hero-small__content > .rs-intro {
		max-width: var(--rs-hero-small-description-width);
	}

	.rs-hero-small__image-wrap {
		position: relative;
		order: 2;
	}

	.rs-hero-small__picture {
		position: absolute;
		inset: 0;
		height: 100%;
	}

	.rs-hero-small__image {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}


	/* Fallback ohne Bild */

	.rs-hero-small--without-image {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.rs-hero-small--without-image .rs-hero-small__wrapper {
		justify-content: center;
		padding-left: 0;
	}

	.rs-hero-small--without-image .rs-hero-small__content {
		max-width: var(--rs-hero-small-container-width);
		padding-right: .75rem;
	}

	.rs-hero-small--without-image .rs-hero-small__content > * {
		max-width: var(--max-width-paragraph);
	}

}

@media (min-width: 992px) {

	.rs-hero-small {
		--rs-hero-small-container-width: 960px;
	}

}

@media (min-width: 1200px) {

	.rs-hero-small {
		--rs-hero-small-container-width: 1140px;
	}

}

@media (min-width: 1400px) {

	.rs-hero-small {
		--rs-hero-small-container-width: 1320px;
	}

}


/* ==========================================
   Reduced Motion
   ========================================== */

@media (prefers-reduced-motion: reduce) {

	.rs-hero-small__button-icon {
		transition: none;
	}

	.rs-hero-small__button:hover .rs-hero-small__button-icon,
	.rs-hero-small__button:focus-visible .rs-hero-small__button-icon {
		transform: none;
	}

}