/* JC Sticky Sections - basierend auf Codrops Demo 1 */

:root {
	--color-bg-1: #fff;
	--color-bg-2: #151515;
}

.jc-sticky-sections-wrap {
	position: relative;
	width: 100%;
}

.jc-sticky-sections-wrap .wrap {
	position: relative;
	width: 100%;
}

.jc-sticky-sections-wrap .content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.jc-sticky-sections-wrap .content--sticky {
	width: 100vw;
	position: sticky;
	top: 0;
	--offset: 0px;
	top: var(--offset);
	height: calc(100vh - var(--offset));
	padding: 0; /* Kein Padding für volle Breite */
}

/* Elementor-Template-Container: volle Breite, kein Grid */
.jc-sticky-sections-wrap .content--sticky > .elementor {
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
}

/* Elementor-Sections innerhalb der Sticky-Section: volle Breite */
.jc-sticky-sections-wrap .content--sticky .elementor-section {
	padding-left: 0;
	padding-right: 0;
}

/* Grid nur wenn explizit gewünscht (für HTML-Inhalte) */
.jc-sticky-sections-wrap .content--grid {
	display: grid;
	overflow: hidden;
	grid-column-gap: 5vw;
	grid-row-gap: 2vh;
	align-content: center;
	grid-template-areas: 'content-img' 'content-title' 'content-text';
	justify-items: center;
	padding: 1.5rem; /* Padding nur für Grid-Layout */
}

.jc-sticky-sections-wrap .content__img {
	grid-area: content-img;
	width: 50%;
	max-width: 300px;
	height: auto;
}

.jc-sticky-sections-wrap .content__img--large {
	width: 60%;
	height: auto;
}

.jc-sticky-sections-wrap .content__title {
	grid-area: content-title;
	letter-spacing: -0.095em;
	text-transform: uppercase;
	line-height: 1;
	font-weight: normal;
	font-size: clamp(2rem, 6vw, 5rem);
	margin: 0;
}

.jc-sticky-sections-wrap .content__text {
	margin: 0;
	max-width: 500px;
	grid-area: content-text;
	text-align: center;
	line-height: 1.5;
	padding: 0 1rem;
	backface-visibility: hidden;
}

.jc-sticky-sections-wrap .text-meta {
	font-size: 0.9rem;
	opacity: 0.8;
}

.jc-sticky-sections-wrap .bg-1 { background: var(--color-bg-1); }
.jc-sticky-sections-wrap .bg-2 { background: var(--color-bg-2); }


/* Desktop */
@media screen and (min-width: 63em) {
	.jc-sticky-sections-wrap .content--grid {
		padding: 2rem 3rem; /* Padding nur für Grid-Layout */
		grid-template-areas: 'content-img content-title' 'content-img content-text';
		grid-template-columns: 30% 1fr;
		justify-items: start;
	}

	.jc-sticky-sections-wrap .content__img--large {
		width: 160%;
	}

	.jc-sticky-sections-wrap .content__img--left {
		justify-self: end;
	}

	.jc-sticky-sections-wrap .content__text--left {
		text-align: left;
		align-self: start;
	}
}

/* Image Sequence Layout */
.jc-image-sequence {
	position: relative;
	width: 100vw;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.jc-image-sequence-container {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.jc-image-sequence-item {
	position: absolute;
	top: 25%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 95vw;
	max-width: 100%;
	opacity: 0;
	pointer-events: none;
	z-index: 1;
}

/* Erstes Bild standardmäßig sichtbar */
.jc-image-sequence-item:first-child {
	opacity: 1;
	z-index: 2;
}

.jc-image-sequence-item img {
	display: block;
	width: 100%;
	height: auto;
}

/* Text-Elemente für Image Sequence (wie Codepen) */
.jc-image-sequence-content {
	position: absolute;
	top: 60%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	z-index: 10;
	pointer-events: none;
}

.jc-image-sequence-title {
	font-size: clamp(3rem, 5vw, 5rem);
	font-weight: 700;
	margin: 0 0 1rem 0;
	color: #fff;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
	font-family: var(--e-global-typography-cfd647a-font-family), Sans-serif;
	font-style: italic;
}
.jc-image-sequence-title span {
	display: block;
    font-size: clamp(2rem, 2vw, 3rem);
    padding-top: 30px;
}



.jc-image-sequence-text {
	font-size: clamp(5rem, 3vw, 4rem);
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-left: auto;
    margin-right: auto;
    font-family: "Cera PRO", Sans-serif;
}

@media (max-width: 767px) {
	.jc-image-sequence-title {
		font-size: 44px;
	}

    .jc-image-sequence-title span {
        font-size: 28px;
        padding-top: 10px;
    }
	.jc-image-sequence-text {
		font-size: clamp(28px, 7vw, 38px);
	}
}
