
/*------ Load necessary Fonts ------*/
@font-face {
    font-family: 'Emberly Condensed';
	font-display: swap;
    src: url('../fonts/emberly/EmberlyThinCondensed.woff') format('woff');
    font-weight: 100;
    font-style: normal;
}
@font-face {
    font-family: 'Space Grotesk';
	font-display: swap;
    src: url('../fonts/spacegrotesk/spacegrotesk-bold-webfont.woff2') format('woff2'),
         url('../fonts/spacegrotesk/spacegrotesk-bold-webfont.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('../fonts/spacegrotesk/spacegrotesk-light-webfont.woff2') format('woff2'),
         url('../fonts/spacegrotesk/spacegrotesk-light-webfont.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Space Grotesk';
	font-display: swap;
    src: url('../fonts/spacegrotesk/spacegrotesk-medium-webfont.woff2') format('woff2'),
         url('../fonts/spacegrotesk/spacegrotesk-medium-webfont.woff') format('woff');
    font-weight: 500;
    font-style: normal;

}

@font-face {
    font-family: 'Space Grotesk';
	font-display: swap;
    src: url('../fonts/spacegrotesk/spacegrotesk-regular-webfont.woff2') format('woff2'),
         url('../fonts/spacegrotesk/spacegrotesk-regular-webfont.woff') format('woff');
    font-weight: 400;
    font-style: normal;

}

@font-face {
    font-family: 'Space Grotesk';
	font-display: swap;
    src: url('../fonts/spacegrotesk/spacegrotesk-semibold-webfont.woff2') format('woff2'),
         url('../fonts/spacegrotesk/spacegrotesk-semibold-webfont.woff') format('woff');
    font-weight: 600;
    font-style: normal;

}
/*----- Overrides -----*/
:not(.fl-builder-edit) body .fl-row-content-wrap {
    z-index: 0;
}
.fl-module-content {
    margin: 10px 20px 10px 20px;
}
.fl-module-photo.rh-illustration-background .fl-photo {
    z-index: -1;
}
body .fl-module-photo .fl-photo-caption,
body .wp-element-caption { 
    font-size: 14px;
    line-height: 18px;
    overflow: visible;
    text-overflow: ellipsis;
    white-space: normal;
    text-align: left;
    max-width: 75%;
    color: #183A64;
}

/*----- Typography -----*/
html, body {
    font-family: 'Space Grotesk', sans-serif;
	font-size:16px;
    text-transform: none; 
	-webkit-font-smoothing: antialiased; 
	-moz-osx-font-smoothing: grayscale; 
}
h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 4.209rem;
    letter-spacing: 1.2px;
    line-height:1.3;
}
h2{
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    margin-bottom: .75rem;
    letter-spacing: 1.2px;
    font-size: 3.157rem;
    line-height: 1.3;
}
h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 2.369rem;
    line-height: 1.3;
    letter-spacing: 0.3px;
	margin-bottom: .75rem;
}

h4 {
 	font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1.7777rem;
    line-height: 1.3;
    letter-spacing: 0.3px;
	margin-bottom: .75rem;
}
h5 {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 500;
    font-size: 1.333rem;
    line-height: 1.3;
    letter-spacing: 0.3px;
	margin-bottom: .75rem;
}
p, ul, li {
	font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.5;
	margin-bottom: 1rem;
}
strong,
p strong, 
body strong,
p b, 
body b {
	font-weight: 700;
}
.fl-module-rich-text .fl-rich-text a {
text-decoration: underline;
}

/*Typography Mobile*/
@media (max-width: 992px) { 
    h1 {
        font-size: 2.375rem;
        letter-spacing: 1.2px;
        line-height:1.3;
    }
    h2 { 
        margin-bottom: .75rem;
        letter-spacing: 1.2px;
        font-size: 1.875rem;
        line-height: 1.3;
    }
    h3 {
        font-family: 'Space Grotesk', sans-serif;
        font-weight: 500;
        font-size: 1.5rem;
        line-height: 1.3;
        letter-spacing: 0.3px;
        margin-bottom: .75rem;
    }
    h4 {
        font-size: 1.25rem;
        line-height: 1.3;
        letter-spacing: 0.3px;
        margin-bottom: .75rem;
    }
}

/*Caption for Visualisierungen*/
body div.riethoefe-visu-caption {
    text-align: right;
    padding: 5px 10px;
    font-size: 0.8rem;
    color: #ffffff;
    margin-top: -30px;
}
body div.riethoefe-visu-caption span {
    text-shadow: 0px 0px 9px rgb(0 0 0 / 90%);
}
@media (max-width: 768px) {
    body div.riethoefe-visu-caption { 
        margin-top: 0px;
        color: #666666;
    }
    body div.riethoefe-visu-caption span {
        text-shadow: 0px 0px 9px rgb(0 0 0 / 0%);
    }
}

/* ------- Buttons -------*/
body .riethoefe-button {
    font-size: 18px;
    font-weight: 500;
    text-decoration: none !important;
}
.riethoefe-button:hover {
    font-size: 18px;
    font-weight: 500;
    text-decoration: none !important;
    color: #183A64 !important;
}
.riethoefe-button .icon {
    border: 2px solid #183A64;
    border-radius: 100%;
    width: 32px;
    height: 32px;
    text-align: center;
    line-height: 32px;
    position: relative;
    margin-right: 10px;
}
 .riethoefe-button .riethoefe-button-text {
    transform: translateX(0px);
    transition: all ease-in-out 0.3s;
    display:inline-block;
 }

.riethoefe-button:hover .riethoefe-button-text {
    transform: translateX(-5px);
    transition: all ease-in-out 0.3s;
 }
.riethoefe-button .icon:after {
   content: '';
    border: 0px solid #89c1d3;
    background: #E94F35;
    border-radius: 100%;
    position: absolute;
    z-index: -1;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    transform: translateX(10px);
    transition: all ease-in-out 0.3s;
}
.riethoefe-button:hover .icon:after {
    transform: translateX(0px);
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    transition: all ease-in-out 0.3s;
}
.riethoefe-button.green .icon:after {
     background: #27A582;
}
.riethoefe-button.blue .icon:after {
     background: #89c1d3;
}

/* ------- Menues ------- */ 
/* Main Menu */
#menu-main-navigation > li > a,
#menu-main-navigation-fr > li > a {
	position:relative;
	margin: 0px 0px 0px 40px;
	transition: all ease-in-out 0.3s;
}
#menu-main-navigation > li > a:hover, 
#menu-main-navigation-fr > li > a:hover {
	transition: all ease-in-out 0.3s;
}
#menu-main-navigation > li > a:after,
#menu-main-navigation-fr > li > a:after {
	content:'';
	position:absolute;
	width: 0;
	height: 5px;
	bottom:-20px;
	left:0;
	background: #89C1D3;
	transition: all ease-in-out 0.3s;
}
#menu-main-navigation > li > a:hover:after,
#menu-main-navigation > li.current_page_item > a:after,
#menu-main-navigation-fr > li > a:hover:after,
#menu-main-navigation-fr > li.current_page_item > a:after {
	width:100%;
	transition: all ease-in-out 0.3s;
}

/* Hamburger Icon */
body .uabb-creative-menu-mobile-toggle.hamburger {
	border: 2px solid #183A64;;
    border-radius: 100%;
    padding-top: 15px !important;
    padding-right: 15px !important;
    padding-bottom: 15px !important;
    padding-left: 15px !important;
    background: transparent;
    transition: all ease-in-out 0.3s;
}
body .uabb-creative-menu-mobile-toggle.hamburger:hover {
	border: 2px solid #183A64;;
	background: #89C1D3;
	transition: all ease-in-out 0.3s;
}
body .uabb-creative-menu-mobile-toggle.hamburger .uabb-svg-container svg {
	top: 2px;
}
body .uabb-creative-menu-mobile-toggle.hamburger .uabb-svg-container svg rect {
	height: 3px;
}
/* Overlay */
body .uabb-creative-menu.full-screen .uabb-menu-overlay .menu > li > a {
	padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 0px;
    padding-right: 0px;
    text-align: center;
    font-size: 2.5rem;
}
.uabb-creative-menu .uabb-menu-overlay .uabb-menu-close-btn:before, 
.uabb-creative-menu .uabb-menu-overlay .uabb-menu-close-btn:after {
	background-color: #183A64;
	transition: all ease-in-out 0.3s;
}
.uabb-creative-menu .uabb-menu-overlay .uabb-menu-close-btn:hovr:before, 
.uabb-creative-menu .uabb-menu-overlay .uabb-menu-close-btn:hover:after {
	background-color: #89C1D3;
	transition: all ease-in-out 0.3s;
}
@media (max-width: 992px) { 
	#menu-main-navigation > li > a,
	#menu-main-navigation-fr > li > a {
		position:relative;
		margin: 0px 0px 0px 20px;
		transition: all ease-in-out 0.3s;
	}
}

/*---- Aktuelles -----*/
/*Archiv*/ 
body .fl-post-feed-post.news {
    border-bottom: 2px solid rgb(24, 58, 100);
    padding-bottom: 40px;
    margin-bottom: 40px;
}
body .fl-post-feed-post.news a{
    color: #183A64;
}
body .fl-post-feed-post.news a:hover,
body .fl-post-feed-post.news a:active,
body .fl-post-feed-post.news a:focus,
body .fl-post-grid-post.news a:hover,
body .fl-post-grid-post.news a:active,
body .fl-post-feed-post.news a:focus {
    color: #183A64;
}
body .fl-post-feed-post.news a:hover .riethoefe-button .icon:after,
body .fl-post-feed-post.news a:active .riethoefe-button .icon:after,
body .fl-post-grid-post.news a:hover .riethoefe-button .icon:after,
body .fl-post-grid-post.news a:active .riethoefe-button .icon:after {
    transform: translateX(0px);
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    transition: all ease-in-out 0.3s;
}
body .fl-post-feed-post.news a:hover .riethoefe-button .riethoefe-button-text,
body .fl-post-feed-post.news a:active .riethoefe-button .riethoefe-button-text,
body .fl-post-grid-post.news a:hover .riethoefe-button .riethoefe-button-text,
body .fl-post-grid-post.news a:active .riethoefe-button .riethoefe-button-text {
    transform: translateX(-5px);
    transition: all ease-in-out 0.3s;
 }
body .fl-post-feed-post.news:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 20px;
}
body .fl-post-grid-post.news {
    padding-bottom: 20px;
}
body .fl-builder-pagination li a.page-numbers, 
body .fl-builder-pagination li span.page-numbers {
    border: 2px solid #183A64;
    display: inline-block;
    padding: 5px 10px;
    margin: 0 0 5px;
    border-radius: 100px;
    min-width: 40px;
    min-height: 40px;
}
/*Post Grid*/
body .fl-post-grid-post.news {
    background: transparent;
    border: none;
}
/*Post Single*/
body.single-news .wp-block-image,
body.single-news .fl-module-fl-post-content p {
    margin: 0 0 1.8rem;
}
body.single-news .fl-module-fl-post-content p a {
    text-decoration: underline;
}
body.single-news h2 {
    font-size: 2.5rem;
}

/* 
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
    background: none;
    bottom: 0;
    box-sizing: border-box;
    color: #183a64;
    font-size: 13px;
    left: 0;
    margin-bottom: 0;
    max-height: 60%;
    overflow: auto;
    padding: 0 8px 8px;
    position: relative;
    text-align: left;
    width: 100%;
    font-family: 'Space Grotesk';
}
*/

.wp-block-gallery.has-nested-images figure.wp-block-image{
	flex-grow: 0;
}

.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption):before{
	display: none;
}

/* 1. Hide captions in the gallery overview */
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
  display: none;
}

/* 2. Show captions in the lightbox view (override core's display:none) */
.wp-lightbox-overlay .wp-block-image figcaption {
  display: block !important;
  color: #fff;
  text-align: center;
  margin-top: 0.5em;
  font-size: 0.9em;
}

/*---- Form Design -----*/
input[type=text], 
input[type=password], 
input[type=email], 
input[type=tel], 
input[type=date], 
input[type=month], 
input[type=week], 
input[type=time], 
input[type=number], 
input[type=search], 
input[type=url], 
textarea,
.gform_wrapper.gravity-theme input[type=color], 
.gform_wrapper.gravity-theme input[type=date], 
.gform_wrapper.gravity-theme input[type=datetime-local], 
.gform_wrapper.gravity-theme input[type=datetime], 
.gform_wrapper.gravity-theme input[type=email], 
.gform_wrapper.gravity-theme input[type=month], 
.gform_wrapper.gravity-theme input[type=number], 
.gform_wrapper.gravity-theme input[type=password], 
.gform_wrapper.gravity-theme input[type=search], 
.gform_wrapper.gravity-theme input[type=tel], 
.gform_wrapper.gravity-theme input[type=text], 
.gform_wrapper.gravity-theme input[type=time], 
.gform_wrapper.gravity-theme input[type=url], 
.gform_wrapper.gravity-theme input[type=week], 
.gform_wrapper.gravity-theme select, 
.gform_wrapper.gravity-theme textarea {
    display: block;
    width: 100%;
    padding: 6px 12px;
    font-size: 16px;
    line-height: 1.428571429;
    color: #183a64;
    vertical-align: middle;
    background-color: transparent;
    background-image: none;
    border: 2px solid #183a64;
    -moz-transition: all ease-in-out .15s;
    -webkit-transition: all ease-in-out .15s;
    transition: all ease-in-out .15s;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    -moz-border-radius: 0px;
    -webkit-border-radius: 0px;
    border-radius: 0px;
}
/*Radio Buttons & Checkboxes*/
body .gfield_radio input[type="radio"] {
opacity:0;
margin-left: 5px;
}
body .gfield_radio label,
body .gfield_checkbox label {
margin-left: 25px !important;
}
body .gform_wrapper .gfield_checkbox label, 
body .gform_wrapper .gfield_radio label {
    font-size: 1em;
}
body .gfield_checkbox input[type="checkbox"] {
opacity:0;
margin-left: 5px;
position: absolute;
}
body .gfield_checkbox .gchoice, 
body .gfield_radio .gchoice {
    position:relative;
}
body .gfield_radio label::before {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 18px;
    border: 1px solid #2f2f2f;
    display: inline-block;
    margin-right: 7px;
    margin-left: -15px;
    background: #ffffff;
    position: absolute;
    top: 3px;
}
body .gfield_radio label::after {
    background: #2f2f2f;
    content: "";
    display: inline-block;
    position: absolute;
    top: 8px;
    left: 9px;
    width: 8px;
    height: 8px;
    border-radius: 8px;
}

body .gfield_checkbox label::before {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 0px;
    border: 2px solid #183a64;
    display: inline-block;
    margin-right: 7px;
    margin-left: -25px;
    background: transparent;
    position: absolute;
    top: 3px;
}
body .gfield_checkbox label::after {
    background: #183a64;
    content: "";
    display: inline-block;
    position: absolute;
    top: 8px;
    left: 5px;
    width: 8px;
    height: 8px;
}

body .gfield_radio input[type="radio"]:not(:checked) + label::after {
opacity: 0;
}
body .gfield_radio input[type="radio"]:checked + label::after {
opacity: 1;
}
body .gfield_radio input[type="radio"]:checked + label::before {
border-color: #183a64;
}

body .gfield_checkbox input[type="checkbox"]:not(:checked) + label::after {
opacity: 0;
}
body .gfield_checkbox input[type="checkbox"]:checked + label::after {
opacity: 1;
}
body .gfield_checkbox input[type="checkbox"]:checked + label::before {
border-color: #183a64;
}
/*Gform Footer*/

body .gform_footer button, body .gform_footer input[type=button], body .gform_footer input[type=submit] {
    background: none;
    color: #183a64;
    font-size: 18px;
    line-height: inherit;
    padding: 0px;
    font-weight: 500;
    text-shadow: none;
    border: none;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    -moz-border-radius: 0px;
    -webkit-border-radius: 0px;
    border-radius: 0px;
    margin-top:20px;
}
body .gform_required_legend {
    display: none;
}
body .gform_submission_error.hide_summary {
    font-size: 1.4rem;
    color:  red;
}
body .validation_message.gfield_validation_message {
    color: red;
}

/* Icon List Design */
/*Place Content Icon on top*/
.fl-list-item-wrapper .fl-list-item-content .fl-list-item-content-icon .fl-list-item-icon {
    line-height: 1.9;
}
.fl-list-item-wrapper .fl-list-item-content .fl-list-item-content-icon {
    vertical-align: top;
}

/* ---------------------
	Gallery-Vorschau: 
	Default gutenberg gallery block (with hidden fotos viewable in a lightbox modal) 
	only the first foto is visible 
 ---------------------*/
.gallery-vorschau{
	position: relative;
}

.gallery-vorschau figure.wp-block-image:first-child a:after{
	background: #89c1d3;
	color: #183a64;
	content: 'Galerie öffnen';
	display: inline-block;
	font-weight: 500;
	left: 50%;
	padding: 10px 20px;
	position: absolute;
	transform:translate(-50%, -50%);
	top: 50%;
	z-index: 3;
}

.gallery-vorschau figure.wp-block-image:first-child a:hover:after{
	cursor: pointer;
}

.gallery-vorschau figure.wp-block-image:not(:first-child) {
    display: none;
}

.gallery-vorschau figure.wp-block-image:first-child {
    width: 100% !important;
}

.gallery-vorschau figure.wp-block-image:first-child a:before{
	background: black;
	content: '';
	display: block;
	font-weight: 500;
	height: 100%;
	left: 0;
	opacity: .3;
	position: absolute;
	top: 0;
	transition: opacity .2s ease-in-out;
	width: 100%;
	z-index: 1;
}

.gallery-vorschau figure.wp-block-image:first-child a:hover:before{
	cursor: pointer;
	opacity: .1;
}