/*

VarHacks

Accent: var(--wp--preset--color--accent);
Text: var(--wp--preset--color--text);
Grey: var(--wp--preset--color--basegray);
White: var(--wp--preset--color--base);

*/

:root{
	--maintrans: all .3s ease-in-out;
	--shadow: 0px 3px 6px #00000029;
}

/*Global*/

*{
	box-sizing: border-box;
}

/*Nav*/

nav{

	display: flex;
	align-items: center;
	flex-direction: row;
	justify-content: space-between;
	gap: 2em;
	padding-right: 8em;

	> *{
		position: relative;
		z-index: 5;
	}

	& .logo{
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 1em;
		background: var(--wp--preset--color--accent);
		width: 6em;
		aspect-ratio: 1 / 1;

		& img{
			width: 100%;
			height: auto;
		}
	}

	& .langswitch{
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 1em;
		background: var(--wp--preset--color--basegray);
		color: var(--wp--preset--color--base);
		width: 6em;
		aspect-ratio: 1 / 1;

		position: fixed;
		right: 0;
		top: var(--wp-admin--admin-bar--height,0px);
		z-index: 5;

		.wpml-ls-legacy-list-horizontal a{
			padding: 0;
			color: #fff;
		}
		.wpml-ls-legacy-list-horizontal li{
			display: inline-flex;
		}
		.wpml-ls-legacy-list-horizontal li:not(:last-child)::after{
			content: '|';
			margin:0 .25em;
		}
		.wpml-ls-legacy-list-horizontal{
			padding: 0;
		}
	}

	& .nav-main{
		list-style: none;
		display: flex;
		flex-direction: row;
		gap: 2em;
		padding: 0;

		& a{
			font-weight: 700;
			text-decoration: none;
			text-transform: uppercase;
			color: var(--wp--preset--color--basegray);

			&:hover{
				color: var(--wp--preset--color--accent);
			}

			&[aria-current="page"]{
				color: var(--wp--preset--color--accent);
			}
		}
		
		ul{
			position: absolute;
			z-index: 1;
			padding: 1em;
			background: #fff;
			margin: 0 0 0 -1em;
			list-style: none;
			flex-direction: column;
			gap: .5em;

			display:none;
		}
		li:hover>ul{
			display:flex;
		}
	}

	& .contact{

		display: flex;
		align-items: center;
		gap: 2em;

		& a{
			font-weight: 700;
			text-transform: uppercase;
		}

		& img.svg{
			width: 1em;
			display: inline-block;
			top: .125em;
			margin-right: .5em;
			position: relative;
		}

		& img{
			max-width: 3em;
		}
	}
}

@media screen and (min-width: 1350px){
	nav	.main-navigation{
		position: absolute;
		left: 0;
		right: 0;
		z-index: 1;
		display: flex;
		justify-content: center;
		ul{
			width: fit-content;
		}
	}
}

.stickywrap{
	position: absolute;
	right: 0;
	top: 0;
	padding-top: calc(100vh - 6em);
	min-height: 100%;
	box-sizing: border-box;
}

#toggler{
	border: 0;
	width: 6em;
	height: auto;
	font-size: 1em;
	aspect-ratio: 1 / 1;
	border-radius: 0%;
	background-color:  var(--wp--preset--color--text);
	padding: 2em;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: var(--maintrans);
	box-shadow: none;
	display: none;

	&:hover{
		background-color:  var(--wp--preset--color--text);
		cursor: pointer;
	}
}

@media screen and (max-width: 990px){
	#toggler{
		display:flex;
	}

	.main-navigation{
		display: none;
	}

	nav {
		padding-right: 0;
		& .langswitch {
			display: none;
		}
	}



}

.stickynav{
	background: var(--wp--preset--color--accent);
	position: sticky;
	top: var(--wp-admin--admin-bar--height,0px);
	width: 6em;
	padding: 7em 1.5em 2em;
	min-height: 10em;
	z-index: 4;

	

	& hr{
		border: none;
		height: 2px;
		width: 100%;
		background: var(--wp--preset--color--base);
		margin: 1em 0;
	}

	& a{
		display: block;
		margin-bottom: .5em;
		text-align: center;

		img{
			width: 1.5em;
		}
	}

	& .membericon{
		width: 100%;
		height: auto;
		aspect-ratio: 1 / 1;
		border-radius: 50%;
		background-color: var(--wp--preset--color--text);
		padding: 1em;
		display: flex;
		align-items: center;
		justify-content: center;
		transition: var(--maintrans);
		box-shadow: var(--shadow);

		&:hover{
			filter: invert(1);
			cursor: pointer;
		}
	}
}

@media screen and (max-width: 990px){
	.stickynav{
		background: var(--wp--preset--color--accent);
		position: absolute;
		top: var(--wp-admin--admin-bar--height,0px);
		width: 2.5em;
		padding: 7em .5em 1em;
		min-height: unset;
		z-index: 4;
	
		
	
		& hr{
			border: none;
			height: 2px;
			width: 100%;
			background: var(--wp--preset--color--base);
			margin: 1em 0;
		}
	
		& a{
			display: block;
			margin-bottom: .5em;
			text-align: center;
	
			img{
				width: 1.25em;
			}
		}
	
		& .membericon{
			background-color: transparent;
			padding: 0;
	
			&:hover{
				filter: invert(0);
			}
		}
	}
}


body:not(.home) {
	.stickynav{
		top: var(--wp-admin--admin-bar--height,0px);
		position: fixed;
		right: 0;
	}
}

@media screen and (max-width: 990px){
	body:not(.home) {
		.stickynav{
			top: var(--wp-admin--admin-bar--height,0px);
			position: absolute !important;
			right: 0;
		}
	}
	
}

.overlay{
	height: 100vh;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: var(--wp--preset--color--base);
	z-index: 10;
	transform: translateX(100vw);
	transition: var(--maintrans);


	& #close{
		border: 0;
		width: 3.5em;
		height: auto;
		aspect-ratio: 1 / 1;
		border-radius: 50%;
		background-color: var(--wp--preset--color--base);
		padding: 1em;
		display: flex;
		align-items: center;
		justify-content: center;
		transition: var(--maintrans);
		box-shadow: var(--shadow);
		position: absolute;
		top: 2em;
		right: -5.4em;

		&:hover{
			filter: invert(1);
			cursor: pointer;
		}
	}

	

	& .top{
		display: flex;
		flex-direction: row;
		justify-content: space-between;

		& .logo{
			display: flex;
			align-items: center;
			justify-content: center;
			padding: 1em;
			background: var(--wp--preset--color--accent);
			width: 6em;
			aspect-ratio: 1 / 1;
	
			& img{
				width: 100%;
				height: auto;
			}
		}
	
		& .langswitch{
			display: flex;
			align-items: center;
			justify-content: center;
			padding: 1em;
			background: var(--wp--preset--color--basegray);
			color: var(--wp--preset--color--base);
			width: 6em;
			aspect-ratio: 1 / 1;
		}

		& .contact{

			display: flex;
			align-items: center;
			gap: 2em;
	
			& a{
				font-weight: 700;
				text-transform: uppercase;
			}
	
			& img.svg{
				width: 1em;
				display: inline-block;
				top: .125em;
				margin-right: .5em;
				position: relative;
			}
	
			& img{
				max-width: 3em;
			}
		}
	}

	& .center{
		background-color: var(--wp--preset--color--basegray);
		padding: 7em;
		height: calc(100vh - 12em);
		border-right: 6em solid var(--wp--preset--color--accent);
		position: relative;
		display:flex;
		align-items: center;
		

		.menuscontainer{
			display:flex;
			flex: 1;
		}

		ul {
			margin:0;
			padding: 0;
			flex:1;
			font-size: min(calc((100vh - 21em) / 10), 5vw);
			list-style-type: none;

			li{
				
				padding: .5em 0;
				border-bottom: 2px solid var(--wp--preset--color--base);
			}



			ul{
				font-size: .65em !important;
				margin-top: .5em;

				li{
					padding: 0 0 .25em 0;
					border-bottom: 0px solid var(--wp--preset--color--base);
				}
			}
		}

		ul + ul{
			font-size: min(1em, 2vh);
			
			li{
				padding: .5em 0 .5em 7em;
				border-bottom: 0;
				
				a{
					text-transform: none;
					display: flex;
					justify-content: space-between;
				}
			}
		}

		& a{
			color: var(--wp--preset--color--base);
			font-weight: 700;
			text-transform: uppercase;
			display: block;

			&[aria-current="page"]{
				color: var(--wp--preset--color--accent);
			}
		}

		& .socialholder{
			position: absolute;
			bottom: 2em;
			right: -3.24em;
			font-size: var(--wp--preset--font-size--base);
	
			& a{
				font-size: 1em;
				display: block;
				margin-bottom: .5em;
				text-align: center;
		
				img{
					width: 1.5em;
				}
			}
		}
	}

	& .bottom{
		border-right: 6em solid var(--wp--preset--color--accent);
		& ul{
			margin: 0;
			padding: 0;
			list-style-type: none;
			display: flex;
			flex-direction: row;
			gap: 0;

			& li{

				display: flex;
				flex-direction: row;
				gap: 1em;
				padding: 0 2em 0 0;
				align-items: center;
				flex: 1;

				& .no{
					font-size: 1.5em;
					font-weight: 700;
					width: 4em;
					height: 4em;
					color: var(--wp--preset--color--base);
					background-color: var(--wp--preset--color--accent);
					display: flex;
					justify-content: center;
					align-items: center;
					flex-shrink: 0;
				}

				& .head{
					display: block;
					font-weight: 700;
					font-size: 1em;
					margin-bottom: .25em;
				}

				& .content{
					display: none;
					margin-bottom: .5em;
				}

				& a{
					display: block;
					font-weight: 700;
				}
			}
		}
	}
}


.opennav{
	overflow: hidden;
}

.opennav .overlay{
	transform: none;
}


/*Header*/

header{
	display: flex;
	flex-direction: row;
	gap: 0;

	& figure{
		margin-bottom: 0;
		overflow: hidden;

		& img{
			width: 100%;
			height: 100%;
			object-fit: cover;
			object-position: center center;
		}
	}

	& div{
		flex: 1;
	}

	& video{
		width: 100%;
		height: auto;
		min-height: 100%;
		aspect-ratio: 1 / 1;
		object-fit: cover;
		object-position: center;
	}

	& .claimwrap{
		background-color: var(--wp--preset--color--basegray);
		color: var(--wp--preset--color--base);
		min-height: 30vh;
		padding: 7em ;
		position: relative;

		& h1:has(+h2){
			font-size: 1em;
			font-weight: 400;
			margin-top: 0;
			text-transform: none;
		}

		& h2{
			font-size: 3em;
			margin-top: 0;
		}
		& h2:has(+h1){
			font-size: 1em;
			font-weight: 400;
			margin-top: 0;
			text-transform: none;
		}

		&:has(time) h1{
			margin-bottom: .25em;
		}

		
	}

	& .blogwrap{
		position: relative;

		&::before{

			--distance: 5em;

			content: '';
            width: 3em;
            height: calc(100% + var(--distance));
            background-color: var(--wp--preset--color--accent);
            display: block;
            position: absolute;
            top: calc(-1 * var(--distance));
		}

		& ul{
			margin: 0;
			padding: 0 0 0 3em;
			list-style-type: none;

			& li{

				display: flex;
				flex-direction: row;
				gap: 1em;
				border-bottom: 2px solid var(--wp--preset--color--basegray);
				padding: 2vw 2em 2vw 0;
				align-items: center;

				& .no{
					font-size: 1.75em;
					font-weight: 700;
					padding-left: .75em;
				}

				& .head{
					display: block;
					font-weight: 700;
					font-size: 1.25em;
					margin-bottom: .25em;
				}

				& .content{
					display: block;
					margin-bottom: 1em;
				}

				& a{
					display: block;
					font-weight: 700;
				}
			}
		}
	}

	& .redbar{
            width: 3em;
            height: 20em;
            background-color: var(--wp--preset--color--accent);
            display: block;
            position: absolute;
            bottom: -14em;
			left: 0;
	}
}


@media screen and (max-width: 990px){
	header{
		flex-direction: column-reverse;
		gap: 0;

		& figure{
			margin-bottom: 0;
			overflow: hidden;
			aspect-ratio: 16 / 9;
	
			
		}

		& video{
			min-height: unset;
			aspect-ratio: 16 / 9;
		}

		& .claimwrap{
			padding: 2em 2em;
			min-height: auto;

			& h2{
				font-size: 2em;
				margin-top: 0;
			}
		}

		& .blogwrap{
			position: relative;
	
			&::before{
	
				--distance: 0em;
				width: 2em;
			}
	
			& ul{
				padding: 0 0 0 2em;
	
				& li{
					padding: 1em 2em 1em 0;
	
					& .no{
						font-size: 1.125em;
					}
	
					& .head{
						font-size: 1.125em;
					}
	
					& .content{
						margin-bottom: .5em;
					}
				}
			}
		}
	}
	.stickynav{
		top: var(--wp-admin--admin-bar--height,0px);
		position: absolute;
		right: 0;
	}


	header .redbar{
		width: 1em;
		bottom: -18em
	}
}


@media screen and (max-width: 768px){
	header .redbar{
		display: none;
	}


	header{

		& .claimwrap{
			padding: 1em;

			& .pager{
				left: auto;
				right: 0;
				top: auto;
				bottom: 0;
			}
		}

		& .blogwrap{
			&::before{
				display: none;
			}

			ul{
				padding: 0;
			}
		}
	}
}

@media screen and (max-width: 1790px){
	header{
		& video{
			min-height: 108%;
		}
	}

	main{
		margin-top: 3em;
	}
}

@media screen and (max-width: 990px){
	nav .contact{
		display: none;
	}
}

@media screen and (max-width: 990px){
	.overlay .menuscontainer{
		flex-direction: column;
		gap: 2em;

		font-size: 1em;

		li{
			padding-left: 0 !important;
		}
	}
	.overlay .bottom li:last-child{
		display: none;
	}
}
@media screen and (max-height: 700px){

}

@media screen and (max-width: 666px){
	nav .contact{
		display: none;
	}

	nav {
		height: 6em;

		.main-navigation{
			flex: 1;
		}

		.nav-main{
			gap: 0;
			flex-wrap: wrap;
			justify-content: center;
			margin: 0;
			li{
				padding: .25em 1em;
			}
		}
	}
}
@media screen and (max-width: 990px){
	.overlay .bottom{
		display:none;
	}
	.overlay .center{
		height: calc(100vh - 6em);
		padding: 1em 4em 1em 1em;
		align-items: start;
		overflow: auto;
		border-right: none;

		ul {
			font-size: 2em !important;
		}
		ul +ul {
			font-size: 1em !important;
		}

		.socialholder, #close{
			right:1em;
		}

		.socialholder{
			font-size: .8em;
		}
	}
	.flexwrap{
		flex-direction: column-reverse;
	}

	.sidebars{
		width: 100% !important;
		>div{
			display: flex;
			gap: 3em;
			flex-wrap: wrap;
			position: relative;

			
		}
		>div >div{
			border-left: 0 !important;
			padding-left: 0 !important;
			margin-bottom: 0 !important;
		}

		#block-13{
			width: 100%;
		}
	}
}
@media screen and (max-width: 505px){
	nav .nav-main li{
		padding: .25em .5em;
	}
}

@media screen and (max-width: 420px){
	nav .nav-main{
		display: none;
	}
}

body:not(.home) {
	& header{
		& video{
			width: 100%;
			height: 100%;
			min-height: unset;
			aspect-ratio: unset;
			object-fit: cover;
			object-position: center;
		}
	}

}

/*Footer*/

footer{
	padding: 0 5em 5em;
	color: var(--wp--preset--color--base);
	background-color: var(--wp--preset--color--basegray);
	font-weight:bold;
	font-size: var(--wp--preset--font-size--base);

	display:grid;
	grid-template-areas: "logo n0 n0 n0"
						 "n1 left center right";
	grid-template-columns: 16.26rem 1fr 1fr 1fr;
	gap: 2em;

	> a{
		grid-area: logo;
		
		img{
			height: 5em;
			display: block;
		}
	}
	*{
		font-style: inherit;
		font-weight: inherit !important;
	}
	> div{
		grid-area: left;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		
		ul{
			flex-direction: row;
			li:not(:last-child)::after{
				content: '|';
				margin-left: .5em;
			}
		}
	}
	> ul {
		grid-area: center;
	}
	> ul + ul{
		grid-area: right;
	}

	ul {
		list-style: none;
		padding: 0;
		margin: 0;
		display: flex;
		flex-direction: column;
		gap: .5em;
		flex-wrap: wrap;

		a {
			color: inherit;
		}
		
		ul {
			margin-top: .5em;
			li a:before{
				/* muss noch ersetzt werden durch svg */
				content: '⇾';
				margin-right: .5em;
			}
		}
	}
}

@media screen and (max-width: 1111px){
	footer{
		grid-template-columns: 1fr;
	}
}
@media screen and (max-width: 1000px){
	footer{
		grid-template-areas: "logo n0 n0"
							 "left center right";
	}
}
@media screen and (max-width: 800px){
	footer{
		grid-template-areas: "logo" "left" "center" "right";
		padding: 0 2em 2em;
	}
}

@media screen and (max-width: 768px){
	footer{
		padding: 0 1em 1em;
	}
}

/*blog*/




#searchform input{
	border-radius: 5px;
	box-shadow: var(--shadow);
	background-color: var(--wp--preset--color--basegray);
	color: var(--wp--preset--color--base);
	padding: 1em .5em;
	font: var(--wp--preset--font-family--main);
	font-size: var(--wp--preset--font-size--base);
	border:0;
	width: 100%;

	&:focus{
		background-color: var(--wp--preset--color--accent);
		outline: none;
		box-shadow: none;
	}
}

#searchform input[type="submit"]{
	border-radius: 5px;
	position: absolute;
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
    box-shadow: var(--shadow);
    background-color: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--base);
    padding: 1em .5em;
    font: var(--wp--preset--font-family--main);
    font-size: var(--wp--preset--font-size--base);
    border: 0;
    margin-left: -3em;
    overflow: hidden !important;
    width: 3em;
	text-indent: 3em;
	background-image: url(../style/search.svg);
	background-size: 1em;
	background-position: center;
	background-repeat: no-repeat;

	&:hover{
		background-color: var(--wp--preset--color--basegray);
		outline: none;
		box-shadow: none;
	}
}

.flexwrap{
	display: flex;
	gap: 2em;
}

.sidebars{
	width: 25%;
	
	> div {
		position: sticky;
		top: calc(2em + var(--wp-admin--admin-bar--height,0px));
	}

	& h4{
		color: var(--wp--preset--color--accent);
		margin-bottom: .5em;
		margin-top: 0;
	}

	& ul{
		margin: 0;
		padding: 0;
		list-style: none;
		line-height: 1.3;
	}
	> div > div{
		border-left: 2px solid var(--wp--preset--color--accent);
		padding-left: 2em;
		margin-bottom: 2em;
	}

	a{
		color: inherit;
	}
	[aria-current="page"]{
		color: var(--wp--preset--color--accent);
		font-weight: 700;
	}
}

.postwrap{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
	gap: 2em;
	width: 75%;
}

@media screen and (max-width: 990px){
	.postwrap{
		width: 100%;
	}
}

.card{
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	color: inherit;

	& hr{
		height: 2px;
		background: var(--wp--preset--color--accent);
		width: 100%;
		border: 0px;
		margin: 1em 0;
	}

	& figure{
	  margin-bottom: 0;
  
	  & img{
		aspect-ratio: 16 / 9;
		object-fit: cover;
		object-position: center;
		width: 100%;
		height: auto;
	  }
	}

	& article{
		padding: 1em 1.5em 2em;
		display: flex;
		flex-direction: column;
		height: 100%;

		& .btn{
			margin-top: auto;
			align-self: flex-start;
		}
	}

	& h3{
		font-size: var(--wp--preset--font-size--base);
		color: var(--wp--preset--color--accent);
		margin-bottom: .5em;
		margin-top: 0;
	}
  }

datetime{
	font-size: .8em;
	margin: -.5em 0 .5em;
	font-weight: 700;
}

/*Formats*/

h1{
	margin-top: 0;
}

section{
	padding: 3em 7em 7em;
}

.single section{
	max-width: 1200px;
	margin: 0 auto;
	
	&:first-of-type{
		padding-bottom: 0;
	}

	& .postwrap{
		width: 100%;
	}
}

.single-event section{
	&:first-of-type{
		padding-bottom: 7em;
	}
}

a{
	transition: var(--maintrans);
}

.overlay .center ul + ul a,
.btn{
	background-color: var(--wp--preset--color--accent);
    border-radius: 5px;
    border-width: 0px;
    color: var(--wp--preset--color--base);
    font-size: 1em;
    font-weight: 700;
    padding: 1em;
	display: inline-block;
	box-shadow: var(--shadow);

	transition: var(--maintrans);

	&::after{
		content: '';
		background: url(../style/arrow-bar-right.svg) no-repeat;
		position: relative;
		display: inline-block;
		width: 1em;
		height: 1em;
		top: .125em;
		left: .5em;
		flex-shrink: 0;
	}

}
.overlay .center ul + ul a[aria-current="page"],
.overlay .center ul + ul a:hover,
.btn:hover,
a:hover .btn{
	background-color: var(--wp--preset--color--basegray);
}

.openerpic .wp-block-column:first-of-type figure{
	margin-left: calc(-1 * var(--wp--preset--spacing--70));
}



@media screen and (max-width: 990px){
	section{
		padding: 2em;
	}

	main{
		margin-top: 0;
	}

	.wp-block-column:first-of-type figure{
		margin-left: 0;
	}

	:root :where(.wp-block-columns-is-layout-flex) {
		gap: var(--wp--preset--spacing--20);
	}
	
}

@media screen and (max-width: 768px){
	section{
		padding: 1em;
	}

	.openerpic .wp-block-column:first-of-type figure{
		margin-left: 0;
	}
}

/*Helper*/


.fixed{
	position: fixed;
	top: var(--wp-admin--admin-bar--height,0px);
	right: 0;
}

.accentcolor{
	color: var(--wp--preset--color--accent);
}


.wp-block-button__link {
	box-shadow: var(--shadow);

	&::after{
		content: '';
		background: url(../style/arrow-bar-right.svg);
		position: relative;
		display: inline-block;
		width: 1em;
		height: 1em;
		top: .125em;
		left: .5em;
	}

	&:hover{
		background-color: var(--wp--preset--color--basegray);
	}
}

main{


	font-size: var(--wp--preset--font-size--base);

	& ul li{
		font-size: var(--wp--preset--font-size--base);
	}
}


/*CF7*/

input,
textarea,
select{
	padding: .5em;
	font-size: var(--wp--preset--font-size--base) !important;
	border: 0px;
	border-bottom: 2px solid var(--wp--preset--color--accent);
	width: 100%;
	font-family: var(--wp--preset--font-family--main);
	color: var(--wp--preset--color--basegray);
	transition: var(--maintrans);
	border-radius: 0;
	background-color: #f4f4f4;
	appearance: none;

	&:focus{
		outline: none;
		box-shadow: none;
		border-color: var(--wp--preset--color--basegray);
	}
}

.gform_button.button{
	background-color: var(--wp--preset--color--accent);
    border-radius: 5px;
    border-width: 0px;
    color: var(--wp--preset--color--base);
    font-size: 1em;
    font-weight: 700;
    padding: 1em;
	display: inline-block;
	box-shadow: var(--shadow);
	transition: var(--maintrans);
	font-family: var(--wp--preset--font-family--main);

	&:hover{
		background-color: var(--wp--preset--color--basegray);
	}
}


input[type="checkbox"]{
	width: 1em;
	height: 1em;
	aspect-ratio: 1 / 1;
	border-radius: 2em;
	padding: 0;
	accent-color: var(--wp--preset--color--accent);
}

img[src=""]{
	visibility: hidden;
}

.events{
	display: grid;
	grid-template-columns: repeat(4, auto);

	datetime{
		margin: 0;
		font-size: var(--wp--preset--font-size--base);
	}

	strong{
		text-transform: uppercase;
		color: var(--wp--preset--color--text);
	}

	span{
		color: var(--wp--preset--color--text);
	}

	& .btn{
		max-width: max-content;
		justify-self: end;
		color: var(--wp--preset--color--base);
	}
}
.events > *{
	display: grid;
	grid-template-columns: subgrid;
	grid-column: span 4;
	padding: 1em 0;
	font-size: var(--wp--preset--font-size--base);
	background: var(--wp--preset--color--base);
	align-items: center;
	gap: 1em;
	box-shadow: none;
	border-bottom: 2px solid var(--wp--preset--color--accent);
}

@media screen and (max-width: 990px) {
    .events {
        grid-template-columns: 2fr; /* Display content in one column */

		& .btn{
			max-width: max-content;
			justify-self: start;
		}
    }

    .events > * {
        grid-column: span 2; /* Make each item span 1 column */
    }
}

@media screen and (max-width: 768px) {
    .events {
        grid-template-columns: 1fr; /* Display content in one column */
    }

    .events > * {
        grid-column: span 1; /* Make each item span 1 column */
    }
}


.alignleft{
	float: left;
	margin-top: .5em;
	margin-right: 2em;
}
.alignright{
	float: right;
	margin-top: .5em;
	margin-left: 2em;
}



/*Var Overwrites*/

@media screen and (max-width: 768px){
	:root{
		--wp--preset--font-size--large: 2em;
		--wp--preset--font-size--medium: 1.5em;
		--wp--preset--font-size--base: 18px;
		--wp--preset--font-size--huge: 1.5em;
	}
}

.d-none{
	display: none;
}

/*Postslide*/

.sliderhead{
	position: relative;
}

.sliderhead::before{
	content: '';
	width: 3em;
	height: 20em;
	background-color: var(--wp--preset--color--accent);
	display: block;
	position: absolute;
	bottom: -12em;
	left: 0;
	z-index: 10;
}


.slider {
	position: relative;
	width: 100%; 
	overflow: hidden;
  }
  
  .slider-wrapper {
	display: flex;
	transition: transform 0.5s ease-in-out; 
  }
  
  .postitem {
	display: flex;
	flex: 0 0 100%;
    flex-direction: row;
    gap: 0;
	box-sizing: border-box; 
  }
  
@media screen and (max-width: 990px){
	.postitem {
		flex-direction: column-reverse;
		gap: 0;
		
	  }

	  .sliderhead::before{
		display: none;
	}
}



/*Anassungswünsche ab März*/

.single-post {
	header {

		.mediawrap,
		.leftwrap{
			min-width: 50vw;

			h1{
				hyphens: auto;
			}
		}

		& figure {
			height: auto !important;
		}
	}
}



/*LangSwitch Query*/

body:not(.logged-in) nav{
	.langswitch{
		.wpml-ls-item-fr{
			display: none !important;
		}
	}
}
