/*
 * Copyright (c) 2026 Angelsportverein Zeven e.V.
 * Autor: Yannik Mühlthaler
 * Alle Rechte vorbehalten.
 */

.asv-page-hero {
	background: #fff;
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - var(--asv-header-height, 4rem));
}

/* Letzte Vollbreiten-Sektion schließt bündig mit dem Footer ab */
.asv-page-hero > .wp-block-post-content {
	display: flex;
	flex-direction: column;
	flex: 1 0 auto;
}

.asv-page-hero > .wp-block-post-content > .alignfull:last-child {
	margin-top: auto;
	margin-bottom: 0;
}

.asv-page-hero > .wp-block-post-content,
.asv-page-hero .wp-block-post-content {
	margin-left: 0;
	margin-right: 0;
	max-width: none;
	padding-left: 0;
	padding-right: 0;
	width: 100%;
}

/* Hero (Cover-Block) */
.asv-page-hero__cover.wp-block-cover {
	align-items: center;
	background-color: #14532d;
	display: flex;
	justify-content: center;
	min-height: 20rem;
	overflow: hidden;
	padding: 0;
	position: relative;
	width: 100%;
}

@media (min-width: 640px) {
	.asv-page-hero__cover.wp-block-cover {
		min-height: 24rem;
	}
}

.asv-page-hero__cover .wp-block-cover__image-background {
	border: none;
	bottom: 0;
	box-shadow: none;
	height: 100%;
	left: 0;
	margin: 0;
	max-height: none;
	max-width: none;
	object-fit: cover;
	outline: none;
	padding: 0;
	position: absolute;
	right: 0;
	top: 0;
	width: 100%;
	z-index: 0;
}

.asv-page-hero__cover .wp-block-cover__background {
	background-color: #000;
	bottom: 0;
	left: 0;
	opacity: 0.5;
	position: absolute;
	right: 0;
	top: 0;
	z-index: 1;
}

/* Archiv-Hero: Bild wie Startseiten-Slider sichtbar, Verlauf nur unten */
.asv-page-hero__cover--gradient .wp-block-cover__background {
	opacity: 0;
}

.asv-page-hero__cover--gradient::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0) 0%,
		rgba(0, 0, 0, 0.25) 55%,
		rgba(0, 0, 0, 0.55) 100%
	);
}

.asv-page-hero__cover .wp-block-cover__inner-container {
	margin-left: auto;
	margin-right: auto;
	max-width: 42rem;
	padding: 6rem 1.5rem;
	position: relative;
	text-align: center;
	width: 100%;
	z-index: 2;
}

@media (min-width: 640px) {
	.asv-page-hero__cover .wp-block-cover__inner-container {
		padding-bottom: 8rem;
		padding-top: 8rem;
	}
}

.asv-page-hero__cover .asv-page-hero__title,
.asv-page-hero__cover .wp-block-heading,
.asv-page-hero__cover .wp-block-post-title {
	color: #fff;
	font-size: 2.25rem;
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.2;
	margin: 0;
	text-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

@media (min-width: 640px) {
	.asv-page-hero__cover .asv-page-hero__title,
	.asv-page-hero__cover .wp-block-heading,
	.asv-page-hero__cover .wp-block-post-title {
		font-size: 3rem;
	}
}

.asv-page-hero__cover .asv-page-hero__lead,
.asv-page-hero__cover .wp-block-paragraph {
	color: #f3f4f6;
	font-size: 1.25rem;
	line-height: 1.75;
	margin: 1.5rem 0 0;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Termbeschreibung im Archiv-Hero: Absatz ohne Eigenabstand */
.asv-page-hero__cover .asv-page-hero__lead p {
	margin: 0;
}

/* Inhaltskarte */
.asv-page-hero__content-wrap {
	margin-top: 0;
	padding-top: 2rem;
	padding-bottom: 4rem;
	position: relative;
	z-index: 2;
}

.asv-page-hero__content-wrap > .asv-page-hero__card {
	margin-left: auto;
	margin-right: auto;
	max-width: 85rem;
	padding-left: 1rem;
	padding-right: 1rem;
}

@media (min-width: 640px) {
	.asv-page-hero__content-wrap > .asv-page-hero__card {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}
}

@media (min-width: 1024px) {
	.asv-page-hero__content-wrap > .asv-page-hero__card {
		padding-left: 2rem;
		padding-right: 2rem;
	}
}

.asv-page-hero__card {
	background: transparent;
	padding: 2rem;
}

@media (min-width: 640px) {
	.asv-page-hero__card {
		padding: 2.5rem;
	}
}

/* Prose */
.asv-page-hero__prose {
	max-width: none;
}

.asv-page-hero__prose > .wp-block-heading:first-child {
	margin-top: 0;
}

.asv-page-hero__prose h2 {
	color: #166534;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 3rem 0 1rem;
}

.asv-page-hero__prose h2:first-child {
	margin-top: 0;
}

.asv-page-hero__prose h3 {
	color: #166534;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.4;
	margin: 2rem 0 0.75rem;
}

.asv-page-hero__prose p,
.asv-page-hero__prose li {
	color: #4b5563;
	font-size: 1rem;
	line-height: 1.75;
}

.asv-page-hero__prose p {
	margin: 0 0 1rem;
}

.asv-page-hero__prose ul {
	margin: 0 0 1rem;
	padding-left: 1.5rem;
}

.asv-page-hero__prose li {
	margin-bottom: 0.25rem;
}

.asv-page-hero__prose a {
	color: #166534;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.asv-page-hero__prose a:hover,
.asv-page-hero__prose a:focus-visible {
	color: #14532d;
}

.asv-page-hero__prose strong {
	color: #374151;
	font-weight: 600;
}
