/*   
Theme Name: Rieder Stiftung 2026
Theme URI: http://www.jareksierpinski.de
Description: Screen-Design by Gretchendesign. Programming: Jarek Sierpinski
Author: Jarek Akara
Author URI: http://www.jareksierpinski.de
*/

:root {
	--schriftfarbe: rgb(0, 48, 109);
	--blau: #00306D;
	--rot: #EE3442;	
	--seitenfarbe: #ffffff;
	--hintergrund: #ffffff;
	--weiss: #ffffff;
	--font: 'Mona Sans', Arial, Verdana, sans-serif;
}

/* SCHRIFTEN FONTS -------------------------------------------------------------- */

/* mona-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Mona Sans';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/mona-sans-v4-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* mona-sans-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Mona Sans';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/mona-sans-v4-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* mona-sans-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Mona Sans';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/mona-sans-v4-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


/* =Layout GLOBAL -------------------------------------------------------------- */

body {
	color: var(--schriftfarbe);
	font-family: var(--font);
	font-size: 100%;
	line-height: 1.4em;
	font-weight: 400;
	background: #FFFFFF;
	background: linear-gradient(90deg, rgba(255, 255, 255, 1) 50%, rgba(238, 52, 66, 1) 50%);
}

#mobilenav,
#navi-mb {
	display: none;
}

a {
	color: var(--schriftfarbe);
	text-decoration: none;
	transition: all .3s ease-out;
}

.wp-block-columns {
	width: 100%;
}

#content .wp-block-columns {
	align-items: baseline;
}

#footer .wp-block-columns {
	margin-bottom: 0 !important;
}

strong {
	font-weight: 600;
}

/* WRAPPER -------------------------------------------------------------- */

.wrapper,
.subfooter {
	width: 100%;
	max-width: 1500px;
	padding-left: 5%;
	padding-right: 5%;
	margin: auto;
	text-align: left;
}


/* HEADER -------------------------------------------------------------- */

#header {
	height: auto;
	background-color: var(--weiss);
	z-index: 50000;
	padding-top: 5em;
	padding-bottom: 4em;
	transition: all .3s ease-out;
	min-height: 50px;
	box-sizing: border-box;
}

#logo {
	min-width: 180px;
	width: 60%;	transition: all .3s ease-out;
}

body.scrolled #header {

}
#logo img {
	max-width: 100%;
}

#mobilemenu {
	display: none;
}

/* MENU NAVI -------------------------------------------------------------- */

#navi {
	background-color: var(--rot);
	padding-bottom: 2.5em;
	letter-spacing: .035em;
	transition: all .3s ease-out;
	font-size: 1em;
	font-weight: 600;
	position: sticky;
	top: 0;
	z-index: 1000; /* wichtig, damit es ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¼ber Content liegt */
	font-size: 1.35em;	
}

#navi.shrink {
padding-bottom: .5em
}
#navi.shrink #menu-hauptmenu a {
  padding: .5em;
}
#menu-hauptmenu {
  display: flex;
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
	font-size: 1.36em
}
#menu-hauptmenu li {
  flex: 1;
  text-align: center;
}
#menu-hauptmenu a {
  display: block;
  padding: 1em 2em;
  position: relative;
  z-index: 2;
	color: var(--weiss);
}
#menu-hauptmenu .current_page_item a {
	color: var(--blau);
}
#menu-hauptmenu li:hover a {
	color: var(--blau);
}

#menu-hauptmenu:has(.current-menu-item) li:hover a {
	color: var(--rot);
}

.menu-highlight {
position: absolute;
  bottom: 0;
  left: 0;

}
/* die weisse Box */
#menu-hauptmenu:has(.current-menu-item) .menu-highlight {
  height: 100%;
  background: white;
  transition: transform 0.35s ease;
  z-index: 1;
}
#navi li:hover,
#navi li:focus-within {
	cursor: pointer;
}

.scrolled #navi ul li ul {
	padding-top: .65em;
}
#navi ul li:last-child ul {
	left: auto;
	right: -1em;
}
#navi ul li:hover>ul,
#navi ul li:focus-within>ul,
#navi ul li ul:hover,
#navi ul li ul:focus {
	visibility: visible;
	opacity: 1;
	display: block;
}

@media only screen and (max-height: 980px) {
	#logo {
		width: 40%;
	}
	#header {
		padding-top: 3em
	}
	#menu-hauptmenu {
		font-size: 1em;
	}
	#menu-hauptmenu a {
		padding: .8em 1em
	}
	#navi {
		padding-bottom: 2em;
	}
	.swiper .slideshow-text .inner {
		font-size: 2.3em;
		padding-top: .5em;
		padding-bottom: .6em;
	}
}


/* SWIPER -------------------------------------------------------------- */
.slideshow-swiper {
	margin-top: -2px;
}

.slideshow-text {
	width: 100%;
	overflow: hidden;
}

.slideshow-text .inner {	
	color: var(--rot);
	font-size: 3em;
	line-height: 1.2em;
	font-weight: 600;
	padding: .8em 1.8em;
	padding-left: 0;
	width: 80%;
	position: relative;
}

.slideshow-text .inner:after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	width: 100vw;%;
	z-index: -1;
	background: rgba(0, 48, 109, .8);
}
body .swiper-pagination {
	text-align: right;
	padding-right: 2em
}
body .swiper-pagination-bullet {
	background-color: #fff;
	opacity: .5;
}
body .swiper-pagination-bullet-active {
	background-color: var(--rot)
}

/* MAIN CONTENT -------------------------------------------------------------- */
.lcontent {
	width: 80%;
	background-color: var(--hintergrund);
	padding-top: 5.5em;
	padding-bottom: 5em;
	padding-right: 5em;
	font-size: 1.3em;
	line-height: 1.45em;
	position: relative;
}
#content a {
	text-decoration: underline;
	text-decoration-style: dotted;
	text-underline-offset: .2em;
}
.lcontent p {
	padding-bottom: 1.6em;
	font-size: clamp(13px, 1em, 20px);
	line-height: 1.45em;
}
#content .wp-block-list a {
	font-weight: 600;
}
#content h1 {
	color: var(--rot);
	font-size: clamp(20px, 2.2em, 50px);
	line-height: 1.2em;
	font-weight: 700;
	padding-bottom: 1.6em;
}
#content h2 {
	font-weight: 700;
	font-size: clamp(15px, 1.4em, 40px);
	line-height: 1.3em;
	padding-bottom: 1.7em;
}

#content h3 {
	font-weight: 700;
	font-size: 1em;
	line-height: 1.3em;
	padding-bottom: 1.3em;

}
#content h3:not(:first-of-type) {
	padding-top: 1em;
}
.wp-block-columns.is-style-gap5 {
	gap: 4%;
}
#content ul.wp-block-list {
	padding-bottom: 2em;
	padding-left: 1.1em;
}

#content .wp-block-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
margin-top: 3em;
	margin-bottom: 3em;
}

#content .wp-block-gallery .wp-block-image {
  width: calc(50% - 2rem) !important;
}

#content .wp-block-gallery img {
  width: 100%;
  height: auto;
  display: block;
}
#content figcaption {
	font-size: .85em;
	margin-top: 15px;
	font-weight: 600;
}
.wp-block-image.aligncenter {
	margin: auto;
}
#content .wp-block-media-text {
	background-color: var(--blau);
	color: var(--weiss);
	margin-bottom: 6em;
	font-weight: 600;
	grid-template-columns: 60% 1fr;
	font-size: .9em;
}
#content .wp-block-media-text__content {
	padding: 2.7em;
	padding-right: 2em;
	padding-bottom: 1em;
}

#content .wp-block-media-text__content strong  {
	text-transform: uppercase;
}
#content .has-media-on-the-right {
	display: flex;
	flex-wrap: wrap;
	
}
#content .has-media-on-the-right .wp-block-media-text__content {
	order: 2;
	flex-basis: 100%;
}

/* FOOTER -------------------------------------------------------------- */

#footer,
#footer a {
	color: var(--weiss);
}

#footer a:hover {
	color: var(--weiss);
}

#footer {
	background-color: var(--blau);
	padding-bottom: 3em;
	padding-top: 3em;
	font-size: clamp(14px, 1.18em, 20px);
	line-height: 1.5em;

}
#footer .blocks {
	 display: flex;
	justify-content: space-between;
}
#footer ul {
	list-style: none;
}
#footer ul li {
	display: inline-block;
}

#footer img {
	margin-bottom: 2.3em;
	max-width: 80%;
	width: 27em;
}

#menu-footermenu {
	margin-top: 2.8em;
	font-size: 1.27em;
	font-weight: 600
}
#menu-footermenu li:last-of-type {
margin-left: 3em;
}

#footer a {
	text-decoration: underline;
	text-decoration-style: dotted;
	text-underline-offset: .2em;
	text-decoration-color: transparent;
	transition: all .3s ease-out;
}
#footer a:hover {
	text-decoration-color: #fff;
}


/* =Global Elements -------------------------------------------------------------- */

/* HR HORIZONTAL RULE -------------------------------------------------------------- */

hr,
.wp-block-separator {
	background-color: var(--rot);
	border: 0;
	clear: both;
	height: 3px;
	border: none;
	max-width: 5em;
	margin-top: 2em;
	margin-bottom: 3em;
}

/* FORMULAR ---------------------------*/

.wpforms-field-container {
	max-width: 33em;
}

#content .wpforms-field-container input[type=text], #content .wpforms-field-container input[type=email], #content .wpforms-field-container textarea {
	color: #fff;
	background-color: var(--blau);
	border: none;
	border-radius: 0;
	font-weight: 600;
}

#content .wpforms-field-container input::placeholder, 
#content .wpforms-field-container textarea::placeholder {
	color: #fff;
	opacity: .8
}

#content .wpforms-field-container label {
	color: var(--blau);
}
#content .wpforms-field-container label a {
	font-weight: 600;
}

#content div.wpforms-container-full input[type=submit], #content div.wpforms-container-full button[type=submit] {
	background-color: var(--blau);
	border-radius: 0;
	font-weight: 700;
	padding: 1em 3em;
	line-height: 1em;
	height: auto;
	box-shadow: 4px 4px 4px 0px rgba(0,49,109,0.3);
	margin-top: 1em;
	margin-bottom: 1em;
}

#content div.wpforms-container-full input[type=submit]:hover, #content div.wpforms-container-full button[type=submit]:hover {
	background-color: var(--rot);
	box-shadow: 0px 0px 0px 0px rgba(0,49,109,0.3)

}

/* Grundstil */

#content input[type="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 20px;
  height: 20px;
  background-color: var(--blau);
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  cursor: pointer;
  position: relative;
	min-width: 20px;
}
#content #wpforms-61-field_5_1:before {
	display: none
}

/* HÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¤kchen */
#content input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Optional: Hover */
#content input[type="checkbox"]:hover {
  background-color: var(--blau);
}

/* Optional: Fokus (Accessibility) */
#content input[type="checkbox"]:focus {
  outline: 2px solid transparent;
	outline-color: var(--rot);
  outline-offset: 2px;
	outline-style:dotted
}

/* Blockquote right double quotes -------------------------------------------------------------- */

.blockquote .quote:after {
	content: "";
	position: absolute;
	border: 2px solid #fff;
	border-radius: 0 50px 0 0;
	width: 60px;
	height: 60px;
	bottom: -62px;
	left: 50px;
	border-bottom: none;
	border-left: none;
	z-index: 3;
}

.blockquote .quote:before {
	content: "";
	position: absolute;
	width: 80px;
	border: 6px solid var(--seitenfarbe);
	bottom: -3px;
	left: 50px;
	z-index: 2;
}

/* TOOLS: Scrollbutton, Loginbutton, Editlink ------------------------ */

body .wp-block-button__link {
	background-color: var(--auszeichnung);
	font-weight: 700;
	font-size: .8em;
	border-radius: 0;
	margin-top: 2em;
	padding: .5em 1.4em;
	margin-bottom: 1em;
}

body .wp-block-button__link:hover {
	background-color: var(--schriftfarbe);
}

/* Go TOPPFEIL -------------------------------------------------------------- */

#toTop {
	width: 35px;
	height: 35px;
	position: fixed;
	z-index: 1000;
	bottom: 0px;
	right: 0px;
	margin: 0;
	display: none;
	cursor: pointer;
	color: #fff;
	border-radius: 3px;
	text-align: center;
	font-size: 35px;
}

#toTop:before {
	content: '\25B2';
	font-family: Arial, Helvetica, sans-serif;
}

#toTop:hover {
	text-decoration: none !important;
	border-radius: 3px;
}

.login a {
	position: fixed;
	bottom: 2px;
	left: 0;
	background: url("images/login.gif") no-repeat scroll 0 3px transparent;
	font-size: 1px;
	height: 12px;
	overflow: hidden;
	text-indent: -1000px;
	width: 10px;
	display: inline-block;
	filter: alpha(opacity=40);
	-ms-filter: "alpha(opacity = 40)";
	opacity: .40;
}

.login a:hover {
	filter: alpha(opacity=100);
	/* IE 6, 7, 8 */
	-ms-filter: "alpha(opacity = 100)";
	opacity: 1;
}

a.post-edit-link {
	position: fixed;
	z-index: 22000;
	bottom: 0px;
	left: 0;
	display: block;
	font-size: 1px;
	text-decoration: none;
	text-indent: -1000px;
	overflow: hidden;
	background: url("images/edit.png") no-repeat;
	width: 43px;
	height: 57px;
	border: none !important;
}


/* Print Style -------------------------------------------------------------- */

@media print {
	body {
		background: none !important;
	}
}


/* RESPONSIVE --------------------------------------------------------------------------------------------------------------------------------------- */

@media only screen and (max-width: 1500px) {
	body {
		font-size: 1vw;
	}
}

@media only screen and (max-width: 800px) {
	body {
		background: #fff;
		font-size: 70%;

	}
	.wrapper {
		padding-left: 4%;
		padding-right: 4%;
	}

	.mobile,
	#navi ul li.mobile {
		display: block;
	}
	#mobilemenu {
		display: block;
		position: absolute;
		z-index: 1000;
		width: 50px;
		height: 50px;
		right: 20px;
		top: 0px;
		font-size: 1px;
		color: #000;
		cursor: pointer;
		background: url(images/burger.svg) no-repeat right center transparent;
		background-size: 80% auto;
		
	}
	.menuactive #mobilemenu {
		background: url(images/close.svg) no-repeat right center transparent;
		background-size: 60% auto;
	}
	.menuactive #navi {
		left: 0px;
		right: 0px;
	}
	#navi {
		position: fixed;
		top: 50px;
		left: 100%;
		bottom: 0px;
		transition: all .5s ease-out;
		background-color: var(--rot);
		width: 100%;
		box-sizing: border-box;
		padding-top: 5vh;
		overflow-y: auto;
		padding-left: 4%;
		padding-right: 4%;
        font-size: calc(12px + 2.4vw);
		line-height: 1.3em;
	}
	#navi ul li {
		display: block;
		text-align: center;
		margin-left: 0;
	}
#menu-hauptmenu a {
	padding: .5em;
	font-size: clamp(40px, 2em, 50px);
}
	#menu-hauptmenu a:hover {
		background-color: var(--weiss)
	}
	#menu-hauptmenu {
		display: block;
	}
#header {
	position: fixed;
	z-index: 999;
	top: 0;
	left: 0;
	right: 0;
	border-bottom: 1px solid transparent;
	border-color: var(--rot);
	padding-bottom: 1em;
	padding-top: 2em;
}
	#logo {
		width: calc(100% - 80px);
		max-width: 400px;
	}
	.lcontent {
		width: 100%;
		padding-right: 0;
		padding-top: 4em;
	}
	#content .wp-block-gallery .wp-block-image {
	  width: 100% !important;
	}
	#footer .blocks {
		display: block;
	}
	.slideshow-swiper {
		height: auto !important;
		aspect-ratio: 1.5;
		margin-top: 50px;
	}
	.page-id-9 figure {
		max-width: 30em;
		width: 80%;
		margin-bottom: 3em
	}
	.swiper .slideshow-text .inner {
		font-size: 5vw;
	}
	#content h2 {
		font-size: 1.2em;
	}
	#content h1 {
		font-size: 1.8em
	}
	.swiper .slideshow-text .wrapper {
		padding: 0;
		max-width: none;
	}

}

@media only screen and (min-width: 601px) {
 #content .has-media-on-the-right .wp-block-media-text__content {
	 	padding-top: 4em;
 }
}


	.slideshow-text {
    background: rgba(0, 48, 109, .8);
	}
	.slideshow-text .inner:after {
		content: none
	}
	
	#marquee {
  display: inline-block;
  white-space: nowrap;
  animation: scroll 15s linear infinite reverse;
	}
	.swiper .slideshow-text .inner br {
		display: none
	}
	#marquee:hover {
	  animation-play-state: paused;
	}
	
@keyframes scroll {
  from {
    transform: translateX(calc(-100% - 100vw));
  }
  to {
    transform: translateX(100vw);
  }
}