/* =========================================================
   HERO – BASIS
   ========================================================= */

section.hero {
	position: relative;

	z-index: 0;
	isolation: isolate;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 100%;
	max-width: none;

	overflow: hidden;
}


/* =========================================================
   HINTERGRUND: BILD / VIDEO
   ========================================================= */

.hero-image {
	position: absolute;

	inset: 0;

	z-index: 0;

	display: block;

	width: 100%;
	height: 100%;

	max-width: none;

	object-fit: cover;

	/*
	 * Oben bleibt erhalten,
	 * abgeschnitten wird hauptsächlich unten.
	 */
	object-position: center top;
}


/* =========================================================
   LARGE HERO
   ========================================================= */

.hero-large {
	width: 100%;

	/*
	 * Vorher 2 / 1.
	 * Dadurch wird der Hero etwa 1/3 niedriger.
	 */
	aspect-ratio: 3 / 1;
}


/* =========================================================
   CONTENT
   ========================================================= */

.hero-content {
	position: absolute;

	top: 50%;
	left: 50%;

	z-index: 2;

	width: 90%;
	max-width: 800px;

	padding: 2.5rem;

	box-sizing: border-box;

	transform: translate(-50%, -50%);

	background-color: rgba(0, 0, 0, 0.40);

	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);

	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

	border-radius: var(--border-radius);

	color: #ffffff;
}


/* Text im Hero immer hell */

.hero-content h1,
.hero-content h2,
.hero-content h3,
.hero-content h4,
.hero-content p,
.hero-content li,
.hero-content a,
.hero-content strong,
.hero-content em {
	color: inherit;
}


.hero-content h1 {
	margin: 0 0 1rem;
}


.hero-subheadline {
	margin-bottom: 0.75rem;

	font-size: 1.2rem;
	line-height: 1.3;
}


.hero-text p {
	margin-top: 0;
	margin-bottom: 0.75rem;

	line-height: 1.6;
}


/* =========================================================
   BUTTON
   ========================================================= */

.hero-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	gap: 0.5rem;

	margin-top: 0.5rem;
	padding: 0.7rem 1.2rem;

	background-color: var(--logo-color-1-dark);
	color: #ffffff;

	text-decoration: none;

	border-radius: var(--border-radius);

	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}


.hero-button:hover {
	color: #ffffff;

	text-decoration: none;

	transform: translateY(-2px);

	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}


.hero-button-icon {
	display: block;

	width: 1em;
	height: 1em;

	flex: 0 0 auto;

	color: inherit;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

	.hero-large {
		aspect-ratio: auto;

		min-height: clamp(360px, 70vw, 620px);
	}


	.hero-content {
		width: calc(100% - 2rem);
		max-width: 650px;

		padding: 1.5rem;
	}
}


@media (max-width: 600px) {

	.hero-large {
		min-height: 360px;
	}


	.hero-content {
		padding: 1.25rem;
	}
}