/*
 * Pferdetherapie Hanisch
 * Individueller Seiteninhalt | Index
 * Seitenspezifische Inhalte, Layouts und deren Animationen.
 */

/* Hero der Startseite / landing / @base */
.hero {
	position: relative;
	min-height: 780px;
	overflow: hidden;
	isolation: isolate;
	background: #f5f1eb;
}

.hero-bg,
.hero-overlay {
	position: absolute;
	pointer-events: none;
	user-select: none;
}

.hero-bg {
	z-index: -3;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.hero::after {
	content: "";
	position: absolute;
	z-index: -2;
	inset: 0;
	background: linear-gradient(90deg, rgba(246, 242, 238, .98) 0%, rgba(246, 242, 238, .89) 26%, rgba(246, 242, 238, .30) 50%, rgba(246, 242, 238, 0) 67%);
	pointer-events: none;
}

.hero-overlay {
	z-index: -1;
	right: 7.5%;
	bottom: -2px;
	width: min(49vw, 700px);
	max-height: 88%;
	object-fit: contain;
	object-position: bottom right;
}

.hero-inner {
	min-height: 780px;
	padding-top: 178px;
	display: flex;
	align-items: flex-start;
}

.hero-copy {
	width: 48%;
	max-width: 520px;
}

.hero-title {
	margin: 0;
	font-family: "Cormorant Local", Georgia, serif;
	font-size: clamp(4rem, 5.15vw, 5.35rem);
	line-height: 1.15;
	font-weight: 400;
	letter-spacing: -.02em;
}

.hero-script {
	display: block;
	margin: 2px 0 0;
	color: var(--olive);
	font-family: "Royalty Local", "Segoe Script", cursive;
	font-size: clamp(5rem, 6vw, 8rem);
	line-height: .84;
	font-weight: 400;
	white-space: nowrap;
}

.hero-rule {
	width: 62px;
	height: 2px;
	margin: 42px 0 26px;
	background: var(--beige);
}

.hero-lead {
	margin: 0 0 34px;
	max-width: 420px;
	font-size: 1rem;
	line-height: 1.65;
}

/* Wertebereich der Startseite / landing / @base */
.values {
	background: rgba(250, 248, 244, .94);
	border-top: 1px solid rgba(86, 93, 73, .06);
	border-bottom: 1px solid rgba(86, 93, 73, .06);
}

.values-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	min-height: 164px;
}

.value {
	position: relative;
	display: grid;
	grid-template-columns: 86px 1fr;
	gap: 18px;
	align-items: center;
	padding: 26px 28px;
}

.value:not(:last-child)::after {
	content: "";
	position: absolute;
	right: 0;
	top: 29px;
	bottom: 29px;
	width: 1px;
	background: var(--line);
}

.value-icon {
	width: 70px;
	height: 70px;
	object-fit: contain;
}

.value h2 {
	color: var(--olive);
	margin: 0 0 10px;
	font-size: .78rem;
	font-weight: 500;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.value p {
	margin: 0;
	color: var(--olive);
	font-size: .78rem;
	line-height: 1.58;
}

/* Leitgedanke der Landingpage / landing / @base */
.statement {
	padding: 50px 24px 58px;
	text-align: center;
	background: var(--bg);
}

.statement-serif {
	margin: 0;
	color: var(--olive);
	font-family: "Cormorant Local", Georgia, serif;
	font-size: clamp(2.05rem, 3.2vw, 3.35rem);
	font-weight: 400;
}

.statement-script {
	margin: 12px 0 0;
	color: var(--olive);
	font-family: "Royalty Local", "Segoe Script", cursive;
	font-size: clamp(2.9rem, 4vw, 4rem);
	line-height: 1;
}

.statement-mark {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 18px;
	color: var(--beige);
}

.statement-mark::before,
.statement-mark::after {
	content: "";
	width: 118px;
	height: 1px;
	background: var(--beige);
}

/* Werte einblenden / landing / @base */
/* landing | alle Ansichten: Werte einzeln einblenden. JavaScript setzt
is-visible; Dauer, Weg und Staffelung bleiben bewusst unverändert. */
.values-reveal .value {
	opacity: 0;
	transform: translateY(44px);
	transition:
		opacity 1.2s ease,
		transform 1.2s ease;
}

.values-reveal .value.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.values-reveal .value:nth-child(2) {
	transition-delay: .08s;
}

.values-reveal .value:nth-child(3) {
	transition-delay: .16s;
}

.values-reveal .value:nth-child(4) {
	transition-delay: .24s;
}

/* Responsive Regeln / Landingpage / @1023 */
@media (max-width: 1023px) {

	/* Hero der Startseite / landing / @1023 */
	.hero {
		min-height: 880px;
		padding-top: calc(var(--header-h) + env(safe-area-inset-top));
	}

	.hero-bg {
		object-position: 58% center;
	}

	.hero::after {
		background: linear-gradient(90deg, rgba(246, 242, 238, .98) 0%, rgba(246, 242, 238, .93) 37%, rgba(246, 242, 238, .22) 73%, rgba(246, 242, 238, 0) 100%);
	}

	.hero-inner {
		min-height: 800px;
		padding-top: 100px;
	}

	.hero-copy {
		width: 54%;
		max-width: 470px;
	}

	.hero-title {
		font-size: clamp(3.45rem, 7vw, 4.7rem);
	}

	.hero-script {
		font-size: clamp(3.7rem, 7.4vw, 5rem);
	}

	.hero-overlay {
		width: min(54vw, 610px);
		right: 0;
		max-height: 77%;
	}

	/* Wertebereich der Startseite / landing / @1023 */
	.values-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.value:nth-child(2)::after {
		display: none;
	}

	.value {
		border-bottom: 1px solid var(--line);
	}

	.value:nth-child(3),
	.value:nth-child(4) {
		border-bottom: 0;
	}

	/* Kontakt-Typografie / landing / @1023 */
	}

/* Smartphone-Anpassungen / Landingpage / @700 */
@media (max-width: 700px) {

	/* Hero der Startseite / landing / @700 */
	.hero {
		min-height: 890px;
		background: var(--bg);
	}

	.hero-bg {
		object-position: 64% center;
		opacity: .82;
	}

	.hero::after {
		background: linear-gradient(90deg, rgba(246, 242, 238, .99) 0%, rgba(246, 242, 238, .94) 38%, rgba(246, 242, 238, .35) 66%, rgba(246, 242, 238, .03) 100%);
	}

	.hero-inner {
		min-height: 818px;
		padding-top: 78px;
	}

	.hero-copy {
		width: 71%;
		max-width: 360px;
	}

	.hero-title {
		font-size: clamp(3rem, 12.3vw, 4rem);
		line-height: .92;
	}

	.hero-script {
		margin-top: 12px;
		font-size: clamp(3.05rem, 13vw, 4.25rem);
		white-space: normal;
	}

	.hero-rule {
		margin: 30px 0 24px;
		width: 54px;
	}

	.hero-lead {
		max-width: 285px;
		margin-bottom: 28px;
		font-size: .96rem;
		line-height: 1.6;
	}

	.hero-overlay {
		right: -6%;
		bottom: 0;
		width: 94vw;
		max-height: 62%;
	}

	/* Wertebereich der Startseite / landing / @700 */
	.values-grid {
		grid-template-columns: 1fr;
		padding: 12px 18px;
	}

	.value {
		grid-template-columns: 110px 1fr;
		padding: 30px 14px;
	}

	/* landing | Smartphone <=700px: Die spezifischen nth-child-Regeln
	überschreiben die Tablet-Ränder. Die letzte Karte erhält keinen unteren Rand. */
	.value:nth-child(1),
	.value:nth-child(2),
	.value:nth-child(3),
	.value:nth-child(4) {
		border-bottom: 1px solid var(--line);
	}

	.value:last-child {
		border-bottom: 0;
	}

	.value:not(:last-child)::after {
		display: none;
	}

	.value-icon {
		width: 78px;
		height: 78px;
		justify-self: center;
	}

	.value h2 {
	color: var(--olive);
		font-size: .84rem;
	}

	.value p {
		font-size: .88rem;
		line-height: 1.6;
	}

	/* Leitgedanke der Landingpage / landing / @700 */
	.statement {
		padding-top: 42px;
	}

	.statement-serif {
		font-size: 2rem;
	}

	.statement-script {
		font-size: 3.1rem;
	}

	.statement-mark::before,
	.statement-mark::after {
		width: 88px;
	}

	/* Vorschausektionen / landing / @700 */
	/* Kontaktbereich / landing / @700 */
	}

/* Landingpage | reduzierte Bewegung:
   Komponentenspezifische Reveal-Zustände nach deren Basisregeln aufheben.
   Das globale Abschalten von Übergängen und sanftem Scrollen steht in styles.css. */
@media (prefers-reduced-motion: reduce) {
	.values-reveal .value {
		opacity: 1;
		transform: none;
	}
}

/* Landingpage | alle Ansichten: Inhalte sind ohne erfolgreichen Reveal-Start sichtbar.
   Dieser gezielte Fallback muss nach den Reveal- und Smartphone-Regeln stehen.
   Der Head-Startblock setzt pending; das Hauptskript bestätigt ready. Fehlt beides
   (Skriptfehler, Timeout, blockierter Startblock), gibt es keine versteckten Inhalte. */
html:not([data-reveal-state]) .values-reveal .value {
	opacity: 1;
	transform: none;
	transition: none;
}

/* Übersicht der Folgeseiten auf der Startseite. */
.home-paths {
	padding: 64px 0 72px;
	background: linear-gradient(180deg, #fdfbf8 0px, #fdfbf8 160px, var(--bg) 420px, var(--bg) 100%);
	border-bottom: 1px solid rgba(192, 151, 94, .20);
}

.home-paths-intro {
	text-align: center;
	margin-bottom: 36px;
}

.home-path-rule {
	width: 56px;
	height: 1px;
	background: var(--beige);
	margin: 18px 0 0;
}

.home-paths-intro .home-path-rule {
	margin-inline: auto;
}

.home-path-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.home-path-card {
	min-width: 0;
	display: grid;
	grid-template-columns: 42% minmax(0, 1fr);
	border: 1px solid rgba(192, 151, 94, .25);
	border-radius: 4px;
	background: rgba(255, 255, 255, .67);
	overflow: hidden;
	scroll-margin-top: 100px;
}

.home-path-media {
	min-width: 0;
	min-height: 330px;
	overflow: hidden;
	background: var(--bg-alt);
}

.home-path-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform .6s ease;
}

.home-path-card:hover .home-path-media img {
	transform: scale(1.035);
}

.home-path-copy {
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 32px 28px;
}

.home-path-price-preview {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 24px;
	padding: 30px 20px;
	background: linear-gradient(145deg, #e9e3da, #f3eeE7);
}

.home-path-price-preview>div {
	width: 100%;
	text-align: center;
}

.home-path-price-preview>div+div {
	border-top: 1px solid var(--line);
	padding-top: 20px;
}

.home-path-price-preview span {
	display: block;
	font-size: .7rem;
	color: var(--olive);
}

.home-path-price-preview strong {
	display: block;
	margin-top: 6px;
	font: 400 3.4rem/1 "Cormorant Local", Georgia, serif;
	color: var(--olive);
}

.home-path-price-preview small {
	font-size: .6em;
}

.home-path-price-preview>p {
	margin: 0;
	text-align: center;
	color: var(--olive);
	font-size: .62rem;
	line-height: 1.5;
}

@media(max-width:1180px) {
	.home-path-copy {
		padding: 28px 22px;
	}

	}

@media(max-width:1023px) {
	.home-path-grid {
		grid-template-columns: 1fr;
	}

	.home-path-card {
		grid-template-columns: 40% minmax(0, 1fr);
	}

	.home-path-media {
		min-height: 280px;
	}

	.home-path-copy {
		padding: 32px;
	}

	.home-path-price-preview {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 20px 0;
	}

	.home-path-price-preview>div {
		width: 50%;
	}

	.home-path-price-preview>div+div {
		border-top: 0;
		border-left: 1px solid var(--line);
		padding-top: 0;
	}

	.home-path-price-preview>p {
		width: 100%;
	}
}

@media(max-width:700px) {
	.home-paths {
		padding: 42px 0 48px;
	}

	.home-paths-intro {
		margin-bottom: 25px;
	}

	.home-path-card {
		grid-template-columns: 1fr;
	}

	.home-path-media {
		min-height: 0;
		height: 200px;
	}

	.home-path-media img {
		object-position: center 40%;
	}

	.home-path-copy {
		padding: 24px 20px;
	}

	.home-path-price-preview {
		height: 200px;
		padding: 25px 20px;
	}

	.home-path-price-preview strong {
		font-size: 3rem;
	}

	.home-path-card.reveal {
		opacity: 0;
		transform: translateY(48px);
		transition: opacity .6s ease, transform .6s ease;
	}

	.home-path-card.reveal.is-visible {
		opacity: 1;
		transform: none;
	}
}

@media(prefers-reduced-motion:reduce) {
	.home-path-card.reveal {
		opacity: 1;
		transform: none;
	}

	.home-path-media img {
		transition: none;
	}

	.home-path-card:hover .home-path-media img {
		transform: none;
	}
}

html:not([data-reveal-state]) .home-path-card.reveal {
	opacity: 1;
	transform: none;
	transition: none;
}
/* Nur die Abschnittseinleitung behält ihren Abstand zur dekorativen Linie.
   Die Karten selbst verwenden die globale Vorschau-Typografie. */
.home-paths-intro .page-preview-title {
	margin: 0;
}
