/* Startseite Elbhain Wohnen */
.eh-home { overflow-x: clip; }
.eh-home > .wp-block-post-content > * { margin-block: 0; }

/* Abschnittskopf */
.eh-section-head { gap: 1.5rem 3rem; margin-bottom: var(--wp--preset--spacing--40); }
.eh-section-head h2 { margin: 0; }
.eh-section-head .eh-lead { margin: .75rem 0 0; }
.eh-section-head .eh-arrow { margin: 0; }

/* ---------- Hero ---------- */
.eh-hero { position: relative; isolation: isolate; min-height: min(94vh, 980px); display: flex; flex-direction: column; justify-content: flex-end; }
.eh-hero__media { position: absolute; inset: 0; z-index: -2; margin: 0; overflow: hidden; }
.eh-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; animation: eh-hero-zoom 1.8s var(--eh-ease) both; }
.eh-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background:
		linear-gradient(90deg, rgba(245, 242, 234, .62) 0%, rgba(245, 242, 234, .25) 38%, rgba(245, 242, 234, 0) 58%),
		linear-gradient(0deg, rgba(19, 32, 26, .38) 0%, rgba(19, 32, 26, 0) 38%);
}
.eh-hero__content { width: 100%; padding-top: clamp(3rem, 9vh, 7rem); padding-bottom: clamp(2rem, 6vh, 4.5rem); }
.eh-hero__content > .eh-hero__copy { margin-bottom: auto; }
.eh-hero__title { margin: 0; max-width: 9ch; line-height: .92; letter-spacing: -.055em; font-weight: 600; }
.eh-hero__title span { display: inline-block; animation: eh-rise 1s var(--eh-ease) both; }
.eh-hero__title span + span { animation-delay: .12s; }
.eh-hero__lead { max-width: 34ch; font-size: var(--wp--preset--font-size--lead); line-height: 1.5; margin-top: 1.5rem; color: var(--wp--preset--color--ink); animation: eh-rise 1s .24s var(--eh-ease) both; }

.eh-search-panel {
	margin-top: clamp(2.5rem, 10vh, 7rem);
	max-width: 880px;
	background: var(--wp--preset--color--surface);
	border-radius: var(--eh-radius-l);
	padding: clamp(1.25rem, 2.4vw, 2rem);
	box-shadow: 0 40px 80px -40px rgba(19, 32, 26, .55), 0 1px 0 rgba(19, 32, 26, .04);
	animation: eh-rise 1s .36s var(--eh-ease) both;
}
.eh-search-panel__title { font-size: var(--wp--preset--font-size--h4); margin: 0 0 1rem; }
.eh-search-panel__links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1rem 0 0; font-size: var(--wp--preset--font-size--small); }
.eh-search-panel__links a { color: var(--wp--preset--color--muted); text-underline-offset: 3px; }
.eh-search-panel__links a:hover { color: var(--wp--preset--color--accent); }

@keyframes eh-hero-zoom { from { transform: scale(1.07); } to { transform: none; } }
@keyframes eh-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

@media (max-width: 700px) {
	.eh-hero { min-height: 0; display: block; }
	.eh-hero::before { display: none; }
	.eh-hero__media { position: relative; height: 58svh; min-height: 340px; border-radius: 0 0 var(--eh-radius-l) var(--eh-radius-l); }
	.eh-hero__content { padding-top: 2rem; padding-bottom: 2.5rem; }
	.eh-hero__title { max-width: none; }
	.eh-search-panel { margin-top: 2rem; box-shadow: 0 30px 60px -36px rgba(19, 32, 26, .45); border: 1px solid var(--wp--preset--color--line); }
}

/* ---------- Angebote ---------- */
.eh-wish {
	margin-top: var(--wp--preset--spacing--40);
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--wp--preset--color--line);
	gap: 1rem 2rem;
}
.eh-wish p { margin: 0; max-width: 60ch; }

/* ---------- Haltung + Bild, das sich beim Scrollen öffnet ---------- */
.eh-statement { padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60); }
.eh-statement__text {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--h2);
	line-height: 1.1; letter-spacing: -.03em; font-weight: 500;
	max-width: 22ch; margin: 0 0 var(--wp--preset--spacing--50);
}
.eh-expand { margin: 0; border-radius: var(--eh-radius-l); aspect-ratio: 16 / 9; }
.eh-expand img { width: 100%; height: 100%; object-fit: cover; display: block; }
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.eh-expand { animation: eh-open linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
		.eh-expand img { animation: eh-settle linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
	}
}
@keyframes eh-open { from { clip-path: inset(0 14% round var(--eh-radius-l)); } to { clip-path: inset(0 0 round var(--eh-radius-l)); } }
@keyframes eh-settle { from { transform: scale(1.15); } to { transform: scale(1); } }

.eh-promises { list-style: none; margin: var(--wp--preset--spacing--40) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--wp--preset--spacing--30); }
.eh-promises li { border-top: 1.5px solid var(--wp--preset--color--ink); padding-top: 1rem; display: grid; gap: .4rem; }
.eh-promises strong { font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--h4); font-weight: 560; letter-spacing: -.015em; }
.eh-promises span { color: var(--wp--preset--color--muted); }
.eh-promises li:nth-child(2) { transition-delay: .08s; }
.eh-promises li:nth-child(3) { transition-delay: .16s; }
@media (max-width: 781px) { .eh-promises { grid-template-columns: 1fr; } }

/* ---------- Mieterservice ---------- */
.eh-service h2 { margin-top: 0; }
.eh-service__lead { color: color-mix(in srgb, var(--wp--preset--color--paper) 75%, transparent); font-size: var(--wp--preset--font-size--lead); line-height: 1.5; max-width: 30ch; }
.eh-service__img { margin: 2rem 0 0; border-radius: var(--eh-radius-m); aspect-ratio: 4 / 3; }
.eh-service__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.eh-service__list { border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--paper) 20%, transparent); }
.eh-service__row {
	display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .25rem 2rem;
	padding: clamp(1.1rem, 2.2vw, 1.75rem) 0;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--paper) 20%, transparent);
	color: var(--wp--preset--color--paper); text-decoration: none;
	position: relative;
}
.eh-service__row::after { content: "→"; grid-row: span 2; grid-column: 2; font-size: 1.5rem; transition: transform .35s var(--eh-ease); }
.eh-service__label { font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--h3); letter-spacing: -.025em; line-height: 1.1; transition: transform .35s var(--eh-ease); }
.eh-service__hint { grid-column: 1; color: color-mix(in srgb, var(--wp--preset--color--paper) 62%, transparent); font-size: var(--wp--preset--font-size--small); }
.eh-service__row:hover .eh-service__label { transform: translateX(10px); }
.eh-service__row:hover::after { transform: translateX(6px); }
.eh-service__row--alert .eh-service__label { color: #FF8A6E; }
.eh-service__row--alert .eh-service__hint { color: var(--wp--preset--color--paper); font-weight: 600; }
.eh-service__row:focus-visible { outline-color: var(--wp--preset--color--accent-soft); }

/* ---------- Quartiere ---------- */
.eh-quarters__rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--wp--preset--spacing--30); }
.eh-quarter { color: inherit; text-decoration: none; display: block; }
.eh-quarter:nth-child(even) { margin-top: var(--wp--preset--spacing--50); }
.eh-quarter figure { margin: 0 0 1rem; aspect-ratio: 4 / 5; border-radius: var(--eh-radius-m); }
.eh-quarter img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s var(--eh-ease); }
.eh-quarter:hover img { transform: scale(1.05); }
.eh-quarter__no { font-family: var(--wp--preset--font-family--display); font-size: .875rem; color: var(--wp--preset--color--muted); font-variant-numeric: tabular-nums; }
.eh-quarter h3 { font-size: var(--wp--preset--font-size--h4); margin: .25rem 0 .5rem; }
.eh-quarter p { color: var(--wp--preset--color--muted); margin: 0; font-size: var(--wp--preset--font-size--small); line-height: 1.55; }
.eh-quarter:hover h3 { color: var(--wp--preset--color--accent); }
.eh-quarter:nth-child(2) { transition-delay: .06s; } .eh-quarter:nth-child(3) { transition-delay: .12s; } .eh-quarter:nth-child(4) { transition-delay: .18s; }
@media (max-width: 1024px) {
	.eh-quarters__rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(260px, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; margin-inline: calc(var(--wp--style--root--padding-left) * -1); padding-inline: var(--wp--style--root--padding-left); scroll-padding-inline: var(--wp--style--root--padding-left); scrollbar-width: thin; }
	.eh-quarter { scroll-snap-align: start; }
	.eh-quarter:nth-child(even) { margin-top: 0; }
}

/* ---------- Neubau ---------- */
.eh-neubau { position: relative; isolation: isolate; min-height: min(88vh, 860px); display: flex; align-items: flex-end; color: var(--wp--preset--color--paper); overflow: hidden; }
.eh-neubau__media { position: absolute; inset: 0; z-index: -2; margin: 0; }
.eh-neubau__media img { width: 100%; height: 115%; object-fit: cover; display: block; }
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.eh-neubau__media img { animation: eh-parallax linear both; animation-timeline: view(); }
	}
}
@keyframes eh-parallax { from { transform: translateY(-8%); } to { transform: translateY(0); } }
.eh-neubau::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(20deg, rgba(19, 32, 26, .86) 0%, rgba(19, 32, 26, .45) 38%, rgba(19, 32, 26, 0) 66%); }
.eh-neubau__content { width: 100%; padding-block: var(--wp--preset--spacing--50); }
.eh-neubau__copy { max-width: 520px; }
.eh-neubau__copy h2 { margin: .5rem 0 1rem; }
.eh-neubau__copy p:not(.eh-kicker) { font-size: var(--wp--preset--font-size--lead); line-height: 1.5; color: color-mix(in srgb, var(--wp--preset--color--paper) 88%, transparent); }
.eh-neubau .wp-block-buttons { margin-top: 1.75rem; }

/* ---------- Wohnformen ---------- */
.eh-living h2 { margin: 0 0 var(--wp--preset--spacing--40); }
.eh-tiles { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: var(--wp--preset--spacing--30); align-items: start; }
.eh-tile figure { margin: 0 0 1.25rem; border-radius: var(--eh-radius-m); aspect-ratio: 4 / 3; }
.eh-tile:first-child figure { aspect-ratio: 5 / 4; }
.eh-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s var(--eh-ease); }
.eh-tile:hover img { transform: scale(1.04); }
.eh-tile h3 { font-size: var(--wp--preset--font-size--h4); margin: 0 0 .5rem; }
.eh-tile p { margin: 0 0 1rem; color: var(--wp--preset--color--muted); }
.eh-tile p.eh-arrow { color: inherit; }
.eh-tile:nth-child(2) { transition-delay: .08s; } .eh-tile:nth-child(3) { transition-delay: .16s; }
@media (max-width: 900px) { .eh-tiles { grid-template-columns: 1fr; } .eh-tile:first-child figure { aspect-ratio: 4 / 3; } }

/* ---------- Aktuelles ---------- */
.eh-news-grid { gap: var(--wp--preset--spacing--30) !important; }
.eh-news-grid .wp-block-post-featured-image { margin: 0 0 1rem; border-radius: var(--eh-radius-m); overflow: hidden; }
.eh-news-grid .wp-block-post-featured-image img { transition: transform 1s var(--eh-ease); }
.eh-news-grid li:hover .wp-block-post-featured-image img { transform: scale(1.04); }
.eh-news-grid .wp-block-post-date { margin: 0 0 .35rem; }
.eh-news-grid .wp-block-post-title { margin: 0; }
.eh-news-grid .wp-block-post-title a { color: inherit; text-decoration: none; }
.eh-news-grid .wp-block-post-title a:hover { color: var(--wp--preset--color--accent); }

/* ---------- Karriere + Kontakt ---------- */
.eh-closing__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--wp--preset--spacing--30); }
.eh-career { position: relative; display: block; border-radius: var(--eh-radius-l); overflow: hidden; color: var(--wp--preset--color--paper); text-decoration: none; min-height: 460px; isolation: isolate; }
.eh-career figure { position: absolute; inset: 0; margin: 0; z-index: -2; }
.eh-career img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--eh-ease); }
.eh-career:hover img { transform: scale(1.04); }
.eh-career::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(19, 32, 26, .85) 0%, rgba(19, 32, 26, .1) 60%); }
.eh-career__copy { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(1.5rem, 3vw, 2.5rem); }
.eh-career h2 { color: var(--wp--preset--color--paper); font-size: var(--wp--preset--font-size--h3); max-width: 18ch; margin: .4rem 0 1rem; }
.eh-career__link { font-weight: 600; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.eh-career__link::after { content: " →"; }
.eh-contact { background: var(--wp--preset--color--surface); border-radius: var(--eh-radius-l); padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--wp--preset--color--line); }
.eh-contact h2 { font-size: var(--wp--preset--font-size--h3); margin: 0 0 .75rem; }
.eh-contact > p { color: var(--wp--preset--color--muted); }
.eh-hours { margin: 1.5rem 0; display: grid; }
.eh-hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--wp--preset--color--line); }
.eh-hours dt { color: var(--wp--preset--color--muted); }
.eh-hours dd { margin: 0; font-weight: 600; text-align: right; }
.eh-contact__phone a { font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--h3); letter-spacing: -.02em; color: var(--wp--preset--color--ink); text-decoration: none; }
.eh-contact__phone a:hover { color: var(--wp--preset--color--accent); }
@media (max-width: 900px) { .eh-closing__grid { grid-template-columns: 1fr; } .eh-career { min-height: 380px; } }
