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

.rs-hero {
	--rs-hero-height: auto;
	--rs-hero-container-width: 100%;
	--rs-hero-content-width: 55%;
	--rs-hero-description-width: 600px;

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

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


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

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

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

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


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

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

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

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

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


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

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

.rs-hero__picture {
	display: flex;
	border-radius: 0;
	clip-path: var(--rs-hero-picture-clip-path);
}

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


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

@media (min-width: 768px) {

	.rs-hero {
		--rs-hero-height: 640px;
		--rs-hero-container-width: 720px;

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

		position: relative;

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

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

	.rs-hero__wrapper {
		order: 1;
	}

	.rs-hero__content {
		position: absolute;
		top: 50%;
		right: 0;
		left: 0;

		max-width: var(--rs-hero-container-width);
		margin-right: auto;
		margin-left: auto;

		transform: translateY(-50%);
	}

	.rs-hero__content > * {
		max-width: var(--rs-hero-content-width);
	}

	.rs-hero__content > .rs-intro {
		max-width: min(
			var(--rs-hero-content-width),
			var(--rs-hero-description-width)
		);
	}

	.rs-hero__image-wrap {
		order: 2;
	}

	.rs-hero__picture {
		height: var(--rs-hero-height);
	}

	.rs-hero__image {
		height: var(--rs-hero-height);
		object-fit: cover;
	}


	/* Fallback ohne Bild */

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

	.rs-hero--without-image .rs-hero__content {
		position: relative;
		top: auto;
		transform: none;
	}

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

}

@media (min-width: 992px) {

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

}

@media (min-width: 1200px) {

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

}

@media (min-width: 1400px) {

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

}


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

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

	.rs-hero__button-icon {
		transition: none;
	}

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

}