:root {
    --clampBtn: clamp(18px, 2.75vw, 24px);
}

.homeImageTextDiv {
    overflow: hidden;
    position: relative;
    height: 100vh;
    width: 100vw;
    isolation: isolate;
}

.homeTextDiv {
    position: absolute;
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: center;
    bottom: calc(80px);
    transform: translate(-50%);
    left: 50vw;
    z-index: 3;
}

.homeTextDivInner {
    position: relative;
}

@keyframes homeTextFadeIn {
    from {
        transform: translateX(30px);
        opacity: 0;
    }

    to {
        transform: translateX(0px);
        opacity: 1;
    }
}

@keyframes homeButtonFadeIn {
    from {
        transform: translateX(30px);
        opacity: 0;
    }

    to {
        transform: translateX(0px);
        opacity: 1;
    }
}

@keyframes homeImgFadeIn {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }

    to {
        transform: translateX(0px);
        opacity: 1;
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.homeTextDiv h1,
.homeTextDiv h3 {
    color: #F9FAFB;
    animation-name: homeTextFadeIn;
    animation-duration: 1s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
    letter-spacing: 3px;
}

.homeTextDiv h1 {
    font-size: clamp(35px, 7vw, 80px);
    margin: 0;
}

.homeTextDiv h3 {
    font-size: clamp(22px, 3.5vw, 40px);
    margin: 12px 0 0 0;
}

.homeImageTextDiv>img {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: grayscale(0.2) brightness(0.6);
    user-select: none;
}

#bgPreviewImg {
    z-index: 1;
}

#bgImg {
    z-index: 2;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

#bgImg.loaded {
    opacity: 1;
}

.buttonAnmeldung {
    position: absolute;
    bottom: -20px;
    right: 10px;

    padding: calc(var(--clampBtn) / 1.5) calc(var(--clampBtn) * (28 / 24));
    background-color: #F9FAFB;
    border-radius: calc(var(--clampBtn) / 1.5);
    display: inline-block;

    transform: translateX(0) translateY(calc(100% + 32px));
    opacity: 0;

    animation: homeButtonFadeIn 0.7s ease-out 1.5s forwards;
    transition: transform 0.2s ease-out;
}

.buttonAnmeldung:hover {
    transform: translateX(10px) translateY(calc(100% + 32px));
}

.buttonAnmeldung>a {
    color: #000000;
    font-size: var(--clampBtn);
    text-decoration: none;
    letter-spacing: calc(var(--clampBtn) / 12);
}


.jupaStabHome {
    height: clamp(30px, 15vw, 150px);
    width: clamp(30px, 15vw, 150px);
    background-color: #F9FAFB;
    -webkit-mask-image: url(/files/img/JuPa-Fav.png);
    mask-image: url(/files/img/JuPa-Fav.png);
    mask-size: cover;
    mask-repeat: no-repeat;
    animation-name: homeImgFadeIn;
    animation-duration: 1s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
    opacity: 0;
}

.contentSection {
    padding: 60px clamp(25px, 5vw, 60px);
    margin: auto;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
}

.bgContainerJrBlue {
    background-color: var(--main);
}

.bgContainerWhite {
    background-color: var(--white);
}

.white {
    color: var(--white);
}

.jrBlue {
    color: var(--main);
}

.mainHeading {
    font-size: 40px;
    font-weight: 500;
    margin: 8px 0;
}

h1 {
    font-size: 48px;
    font-weight: 200;
    margin: 8px 0;
}

h4 {
    font-size: 24px;
    font-weight: 300;
    margin: 8px 0;
}

h5 {
    font-size: 16px;
    font-weight: 300;
    margin: 8px 0;
}

.oneOneGrid {
    display: grid;
}

@media (min-width: 701px) {
    .oneOneGrid {
        grid-template-columns: 1fr 1fr;
    }

    .homeTextDiv {
        bottom: 80px;
    }

    .homeTextDiv h1,
    .homeTextDiv h3 {
        font-weight: 300;
    }

}

@media (max-width: 700px) {
    .oneOneGrid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .homeTextDiv {
        bottom: 200px;
    }

    .jupaStabHome {
        display: none;
    }

    .homeTextDiv h1 {
        font-weight: 500;
    }

    .homeTextDiv h3 {
        font-weight: 400;
    }
}

.nextSessionDiv {
    padding: 8px 16px;
}

.nextSessionsDiv {
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
}


h6 {
    font-size: 12px;
    font-weight: 300;
    margin: 8px 0;
}

.nextSessionDiv a {
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 1px solid currentcolor;
    transition: all 0.3s ease-out;
}

.nextSessionDiv a:hover {
    font-weight: 500;
    padding-bottom: 2px;
    border-bottom: 2px solid currentcolor;
}


/* --- BLOG OVERVIEW GRID --- */
.blog-overview-grid {
    margin: 32px 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 0;
    list-style: none;
}

.mainHeading.desktop {
    display: block;
}

.mainHeading.mobile {
    display: none;
}

@media (max-width: 900px) {
    .blog-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-overview-grid> :nth-child(3) {
        display: none;
    }
}

@media (max-width: 560px) {
    .blog-overview-grid {
        grid-template-columns: 1fr;
    }

    .mainHeading.desktop {
        display: none;
    }

    .mainHeading.mobile {
        display: block;
    }

    .blog-overview-grid> :nth-child(2),
    .blog-overview-grid> :nth-child(3) {
        display: none;
    }
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    text-decoration: none;
    color: inherit;
    border-bottom: none;
    transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.blog-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
    transform: translateY(-4px);
    color: inherit;
    border-bottom-color: transparent;
}

.blog-card-img-wrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e9ecf0;
    flex-shrink: 0;
}

.blog-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img-wrap img {
    transform: scale(1.04);
}

.blog-card-body {
    padding: 1.1rem 1.25rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.blog-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--main, #325382);
    line-height: 1.3;
    margin: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.65;
    margin: 0;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-overview-empty {
    color: #888;
    font-style: italic;
    margin: 2rem 0;
}

/* Event card date badge */
.blog-card-date {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--main, #325382);
    opacity: 0.75;
    margin-bottom: 0.15rem;
}

/* Branded placeholder when no image is available */
.blog-card-placeholder {
    background: linear-gradient(135deg, var(--main, #325382) 0%, #1e3a5f 100%);
}

/* Map thumbnails: no zoom-on-hover (static image) */
.blog-card-map-wrap img {
    transition: none;
}

.blog-card:hover .blog-card-map-wrap img {
    transform: none;
}

p {
    font-size: 1.0625rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1.85;
    text-align: left;
}

a:not(header a):not(.footer-link):not(.menu-item):not(.blog-card):not(.white):not(.buttonAnmeldung>a):not(.sidebar a) {
    color: var(--main);
    text-decoration: none;
    border-bottom: 1.5px solid var(--main);
    transition: border 0.4s ease, color 0.4s ease;
}

a:not(header a):not(.footer-link):not(.menu-item):not(.blog-card):not(.white):not(.buttonAnmeldung>a):not(.sidebar a):hover {
    border-bottom: 2px solid var(--sec);
    color: var(--sec);
}

.welcomeScreen{
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 10000;
	background-color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.innerWelcomeScreen{
	display: flex;
	flex-direction: column;
}
.textWelcomeScreen{
	text-align: center;
}
.textWelcomeScreen.text span {
	display: inline-block;
	opacity: 0;
	transform: translateY(20px);
	animation: rise 0.5s forwards;
	font-size: 60px;
	font-weight: 100;
	color: #8044A6;
}

.textWelcomeScreen.title span {
	display: inline-block;
	opacity: 0;
	transform: translateY(20px);
	animation: fall 0.9s forwards;
	font-size: 120px;
}


@keyframes rise {
	0% {
		opacity: 0;
		transform: translateY(20px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeOut {
	0% {
		opacity: 1;
	}
	99% {
		opacity: 0;
	} 
	100% {
		display: none;
	}
}

@keyframes fall {
	0% {
		opacity: 0;
		transform: translateY(-20px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

.impressumSection {
    min-height: calc(100vh - 132px - 180px);
}