﻿/*
Theme Name:     JFM Divi Child Theme
Theme URI:      https://www.elegantthemes.com/gallery/divi/
Description:    Jellyfish.media Divi Child Theme
Author:         Jellyfish.media 
Author URI:     https://www.jellyfish.media
Template:       Divi
Version:        1.0
*/


/*############################## JFM STANDARD CSS - START ##############################*/

/* ==> Umbrüche und Worttrennung (Hyphens) */

html {
	hyphens: manual;
	-moz-hyphens: manual;
	-webkit-hyphens: manual;
	-ms-hyphens: manual;
	word-break: break-word;
	overflow-wrap: break-word;
}

/* ==> Bessere Darstellung der Bilder in Chromium*/

img {
	image-rendering: -webkit-optimize-contrast;
	pointer-events: none;
}

/* ==> Preventing Fout */

html {display:block !important;}

/* ==> Breite Scrollbar */

::-webkit-scrollbar {
  width: 10px;
}

/* ==> Gestaltung Track Scrollbar */

::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey;
  border-radius: 10px;
}

/* ==> Gestaltung Handle der Scrollbar */
::-webkit-scrollbar-thumb {
  background: #3c3c3b;
  border-radius: 10px;
}

/* ==> Logo im Header */

#main-header .logo_container a {
	display: inline-block;
}

/*############################## SECTIONS & GLOBAL ROWS ##############################*/

.et_pb_section {
	padding-top: 40px !important;
	padding-bottom: 40px !important;
}

.jfm-fullwidth-content {
	min-width: 100% !important;
}

.jfm-small-width.et_pb_row {
	max-width: 1080px;
	margin: auto;
}

.text-bild {
	display: flex;
	flex-flow: row wrap;
	align-items: center;
}

/* ==> Column Reverse für Mobile Darstellung */

@media (max-width:980px) {
	.text-bild-reverse {
		flex-flow: column-reverse wrap;
	}
	.text-bild-reverse .et_pb_column:last-child {
		margin-bottom: 30px;
	}
}

/*############################## TYPO & LINKS ##############################*/

@font-face {
  font-family: Montserrat;
  src: url("./fonts/Montserrat.ttf");
  font-display: swap;
}

@font-face {
  font-family: Murecho;
  src: url("./fonts/Murecho.ttf");
  font-display: swap;
}

body {
	font-family: Montserrat, Sans-Serif;
}

h1, h2, h3, h4, h5, h6 {
	font-family: Murecho, Sans-Serif;
	font-weight: 700;
}


h1 {
	font-size: clamp(2rem, 1.0437rem + 1.9948vw, 3.4375rem) !important;
}

body.home h2,
.et_post_meta_wrapper h1 {
	font-size: clamp(1.5rem, 0.2111rem + 2.6886vw, 3.4375rem)!important;
	text-transform: uppercase;
}

h2,
.et_post_meta_wrapper h1 {
	font-size: clamp(1.25rem, 0.4185rem + 1.7346vw, 2.5rem) !important;
}


h3 {
	font-size: clamp(1.125rem, 0.9587rem + 0.3469vw, 1.375rem) !important;
}

h4 {
	font-size: clamp(1rem, 0.8337rem + 0.3469vw, 1.25rem) !important;
}


p, ul, li {
	font-size: clamp(0.875rem, 0.7918rem + 0.1735vw, 1rem) !important;
	line-height: 1.5 !important;
	letter-spacing: .12em;
	word-spacing: .12em;
}

a,
p>a,
li>a {
	color: #C11E1E;
}

a:hover {
	color: #C11E1E ;
	text-decoration: underline;
	transition: transform 0.25s ease-out;
}

a.telefonlink,
a.emaillink {
	cursor: pointer;
}

/* Back to Top - Button */

/*############################## BUTTONS ##############################*/

.et_pb_button_module_wrapper {
	text-align: center;
}

.et_pb_button_module_wrapper a:hover {
	text-decoration: none;
}

.et_pb_button:after, 
.et_pb_button:before {
	display: none;
}

.et_pb_posts a.more-link {
	align-self: baseline !important;
}

.et_pb_module .et_pb_button,
.frm_forms form .frm_submit .frm_button_submit {
	font-size: 20px;
    color: #fff;
    background-color: #3c3c3b;
    padding: 10px 20px;
    border-radius: 0;
    min-width: 250px;
    text-align: center;
    border-radius: 100px;
    text-transform: uppercase;
    font-family: 'Murecho';
    font-weight: 700;
	transition: all ease-in-out .3s;
	border: none;
	box-shadow: none;
}

.et_pb_posts a.more-link {
	font-size: 20px !important;
	background-color: transparent !important;
	color: blue !important;
	line-height: 2em !important;
}

.et_pb_module .et_pb_button:hover {
	background-color: #262626;
	padding: 10px 20px;
	border: none;
	text-decoration: underline;
}

.et_pb_module .et_pb_button.button-white,
#footer-formular .frm_forms form .frm_submit .frm_button_submit{
	color: #3c3c3b;
    background-color: #fff;
}

.et_pb_module .et_pb_button.button-white:hover,
#footer-formular .frm_forms form .frm_submit .frm_button_submit:hover {
	color: #3c3c3b;
    background-color: #f1f1f1;
}

/*########## CUSTOM LIST ICON ##########*/

.et_pb_module:not(.et_pb_menu) ul {
	list-style-type: none!important;
	padding-left: 25px;
}

.et_pb_module:not(.et_pb_menu) ul li {
	margin-bottom: 20px;
}

.et_pb_module:not(.et_pb_menu) ul li:before {
	font-family: 'ETMODULES'!important;
	content: '\52'!important;
	color: inherit;
	margin-left: -25px;
	font-size: 1.1em!important;
	position: absolute;
	line-height: 1;
	transform: translateY(25%);
}

/*############################## NAVIGATION ##############################*/

/* ==> Gestaltung aktiver Link Desktop */

#jfm-main-nav #menu-main-menu li.current-menu-item a,
#jfm-main-nav #mobile_menu1 li.current-menu-item a{
	text-decoration: underline;
}


#jfm-main-nav {
	padding-top: 0!important;
	padding-bottom: 0!important;
	overflow: hidden;
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
}

#jfm-main-nav .et_pb_row {
	padding-top: 0!important;
	padding-bottom: 0!important;
}

#jfm-main-nav .et_pb_row .et_pb_column:first-child {
	display: flex;
    align-items: center;
}

#jfm-main-nav .et_pb_row #meta-nav {
	padding: 10px 0;
	background: linear-gradient(90deg, transparent 5%, #3C3C3B 5%);
	color: #fff;
	margin-bottom: 0;
}

#jfm-main-nav .et_pb_row #meta-nav:before {
	content:"";
	background-image: url(https://fred-bank.de/wp-content/uploads/Vector-1.png);
	background-size: 100% 100%;
	background-position: left;
	display: block;
	position: absolute;
	left: -5%;
	top: 0;
	height: 100%;
	width: 10%;
}

#jfm-main-nav .et_pb_row #meta-nav:after {
	content: "";
	background: #3C3C3B;
	position: absolute;
	display: block;
	left: 100%;
	top:0;
	height: 100%;
	width: 30vw;
}

#jfm-main-nav .et_pb_row #meta-nav p {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	letter-spacing: 0;
}

#jfm-main-nav .et_pb_row #meta-nav img {
	width: 18px;
	height: 18px;
	margin-right: 5px;
	margin-left: 10px;
}


#jfm-main-nav .et_pb_menu {
	padding: 20px 0;
}

#jfm-main-nav .et_pb_menu__wrap {
	justify-content: flex-end;
}

#jfm-main-nav .et_pb_menu ul>li {
	font-size: 16px!important;
	text-transform: uppercase;
	margin-top:0;
	padding: 0 25px;
}

#jfm-main-nav .et_pb_menu ul>li>a {
	padding: 8px 0;
	color: #191919;
}

#jfm-main-nav .et_pb_menu ul>li:before {
	display: none;
}


/*#jfm-main-nav .et_pb_menu ul>li:last-child {
	padding-left: 75px;
	border-left: 1px solid #000;
}*/

/*#jfm-main-nav .et_pb_menu ul>li:last-child:before {
	content: "";
    background: url(/wp-content/uploads/tel-icon.png);
    background-size: 70%;
    background-position: center;
    background-repeat: no-repeat;
    height: 25px;
    width: 25px;
    padding: 5px;
    border-radius: 50%;
    border: solid 1px black;
    display: block;
	position:absolute;
	left: 25px;
	top:50%;
	transform: translateY(-50%);
}*/

/*############################## COLLAPSE MOBILE MENU ##############################*/

#jfm-main-nav .menu-item-has-children .menu-item-has-children > a:first-child::after, 
#jfm-main-nav .menu-item-has-children .menu-item-has-children > a:first-child::after {
	content: '5'; 
}

#main-header #mobile_menu.et_mobile_menu .menu-item-has-children {
	position: relative; 
}

#main-header #mobile_menu.et_mobile_menu .sub-menu-toggle {
	position: absolute;
	z-index: 1;
	width: 36px;
	height: 36px;
	line-height: 36px;
	border-radius: 50%;
	top: 6px;
	cursor: pointer;
	text-align: center;
	background-color: transparent !important;
	right: 0;
}

#main-header #mobile_menu.et_mobile_menu .sub-menu-toggle::before {
	font-family: "ETmodules" !important;
	font-weight: normal;
	font-style: normal;
	font-variant: normal;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 36px;
	font-size: 24px;
	text-transform: none;
	speak: none;
	content: '\33';
	color: blue;
}

#main-header #mobile_menu.et_mobile_menu .sub-menu-toggle.popped::before {
	content: '\32';
}

#main-header #mobile_menu.et_mobile_menu .sub-menu-toggle ~ ul.sub-menu {
	display: none !important;
	padding-left: 15px;
}

#main-header #mobile_menu.et_mobile_menu .sub-menu-toggle.popped ~ ul.sub-menu {
	display: block !important;
}

#main-header #mobile_menu.et_mobile_menu li li {
	padding-left: 0;
}

#main-header #mobile_menu.et_mobile_menu li a, 
#main-header #mobile_menu.et_mobile_menu li li a,
#main-header #mobile_menu.et_mobile_menu li li li a {
	padding-left: 20px;
	padding-right: 20px;
}

#main-header #mobile_menu.et_mobile_menu .menu-item-has-children .sub-menu-toggle + a {
	padding-right: 20px;
}

#top-menu ul.sub-menu>li {
	display: block;
}

/*############################## FOOTER ##############################*/

.et-l--footer .et_pb_section {
	background-color: #3C3C3B ;
}

.et-l--footer p {
	color: #ffffff;
}

.et-l--footer h2 {
	color: #ffffff !important;
}

.et-l--footer a {
	color: #ffffff;
}

.et-l--footer #jfm-main-footer p {
	font-size: 18px!important;
}

.et-l--footer #jfm-main-footer .footer-span {
	font-size: 26px;
	font-weight: 700;
}

.et-l--footer #jfm-main-footer h2 {
	font-size: 36px!important;
}

.et-l--footer #jfm-main-footer .anschrift p>strong {
	font-size: 20px;
	font-weight: 700;
	position: relative;
	display:block;
	margin-bottom: 40px;
}

.et-l--footer #jfm-main-footer .anschrift p:last-child>strong {
	margin-bottom: 0;
}

.et-l--footer #jfm-main-footer .et_pb_column:first-child .anschrift {
	padding-left: 60px;
}

.et-l--footer #jfm-main-footer .anschrift p>strong:before {
	content: "";
	display: block;
	height: 45px;
	width: 45px;
	background-size: 40%;
	background-repeat: no-repeat;
	background-position: center;
	background-color: #535353;
	border-radius: 50%;
	position: absolute;
	right: 100%;
	top: 50%;
	transform: translateY(-50%);
	margin-right: 15px;
}

.et-l--footer #jfm-main-footer .anschrift p:nth-child(1)>strong:before {
	background-image: url("/wp-content/uploads/footer-icon-standort.png");
}

.et-l--footer #jfm-main-footer .anschrift p:nth-child(2)>strong:before {
	background-image: url("/wp-content/uploads/footer-icon-mail.png");
}

.et-l--footer #jfm-main-footer .anschrift p:nth-child(3)>strong:before {
	background-image: url("/wp-content/uploads/footer-icon-phone.png");
}

.et-l--footer #jfm-main-footer .anschrift p:nth-child(4)>strong:before {
	background-image: url("/wp-content/uploads/footer-icon-oeffnungszeiten.png");
}

.et-l--footer #jfm-main-footer #footer-formular .frm_forms input:not([type="checkbox"]),
.et-l--footer #jfm-main-footer #footer-formular .frm_forms textarea {
	background: #484848;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
	box-shadow: none!important;
	border: none!important; 
}

.et-l--footer #jfm-main-footer #footer-formular .frm_forms label {
	color: #a0a0a0;
} 

.et-l--footer #jfm-main-footer #footer-formular .frm_forms input[type="checkbox"] {
	background: #484848;
	border-radius: 5px;
	box-shadow: none!important;
	border-color: #a0a0a0!important;
}

.et-l--footer #jfm-main-footer #footer-formular .frm_forms input[type="checkbox"]:before {
	box-shadow: inset 10px 10px #ffffff;
}

.et-l--footer #jfm-main-footer .et_pb_column:last-child {
	background: #C11E1E;
	border-radius: 10px;
	padding: 40px 75px;
}

.et-l--footer #jfm-main-footer .et_pb_column .footer-social {
	font-size: 42px;
	display: inline-block;
	margin-right: 20px;
}

.et-l--footer #jfm-main-footer .et_pb_column .footer-social .et_pb_icon_wrap  {
	width:70px;
	height: 70px;
}

.et-l--footer #jfm-main-footer .et_pb_column .footer-social .et-pb-icon {
	font-size: 32px;
	padding:15px;
}

.et-l--footer #jfm-main-footer .et_pb_column:last-child p {
	text-transform: uppercase;
	font-size: 25px;
}

.et-l--footer #jfm-footer-bottom {
	background: #262626;
	padding-top: 10px !important;
	padding-bottom: 10px !important;
}

.et-l--footer #jfm-footer-ref {
	background: #121111;
	padding-top: 10px !important;
	padding-bottom: 10px !important;
}

.et-l--footer #jfm-footer-bottom .et_pb_row,
.et-l--footer #jfm-footer-ref .et_pb_row {
	padding-top: 10px!important;
	padding-bottom: 10px!important;
}







/*############################## JFM STANDARD CSS - END ##############################*/

/*############################## ELEMENTS ##############################*/

img {
	border-radius: 10px;
}

.et_pb_fullwidth_image img {
	border-radius: 0;
}



/*########## BANNER ##########*/

#banner {
	padding: 0!important;
	aspect-ratio: 16/9;
	width: 100%;
	max-height: 80vh;
}

#banner .et_pb_fullwidth_header {
	height: 100%;
}

#jfm-banner-vid {
	padding: 0!important;
}

#jfm-banner-vid video {
	width: 100vw;
	height: auto;
}

.video-container {
  position: relative;
  display: inline-block;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: none;
  color: white;
  padding: 40px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 55%, rgba(255, 255, 255, 0.25) 55%);

}

.play-button:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.play-icon {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-left: 20px solid white;
  border-bottom: 10px solid transparent;
}


/* Leistungen Boxen */

.et_pb_row.leistungen-fokusboxen {
	justify-content: space-between;
	flex-flow: row wrap;
}

.et_pb_row.leistungen-fokusboxen:after {
	display: none;
}

.leistungen-fokusboxen .et_pb_column {
	background: #3C3C3B;
    color: #fff;
    padding: 0 20px 20px;
    border-radius: 10px;
	transition: all .3s ease-in-out;
	display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
	margin-top: 30px!important;
	margin-right: 0;
	width: 24%;
}

.leistungen-fokusboxen .et_pb_column .et_pb_blurb {
	margin-bottom: 0;
}

.leistungen-fokusboxen .et_pb_blurb_content {
	padding-top: 75px;
	
}

.leistungen-fokusboxen .et_pb_blurb_content .et_pb_main_blurb_image {
	margin-bottom: 0;
    padding: 30px;
    border: 4px solid #fff;
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 0;
    background: #3c3c3b;
    left: 50%;
	transition: all .3s ease-in-out;
}

.leistungen-fokusboxen .et_pb_blurb_content h3 {
	font-size: 22px!important;
	color: #fff;
	text-align: center;
}

.leistungen-fokusboxen .et_pb_blurb_content ul {
	padding-top: 20px;
	padding-bottom: 20px;
}

.leistungen-fokusboxen .et_pb_column:hover {
	background: #C11E1E;
}

.leistungen-fokusboxen .et_pb_column:hover .et_pb_blurb_content .et_pb_main_blurb_image {
	background: #C11E1E;
}



/* Team gallery */

/* Sektion: weißer Hintergrund, großzügiges Padding */
#team-gallery.et_pb_section {
	background-color: #ffffff !important;
	padding-top: 80px !important;
	padding-bottom: 80px !important;
}

/* "Team"-Titel ausblenden – steht jetzt im Hero */
#team-gallery .et_pb_text_3 {
	display: none !important;
}

/* "–" Trennelemente ausblenden */
#team-gallery .et_pb_text_5,
#team-gallery .et_pb_text_7,
#team-gallery .et_pb_text_9,
#team-gallery .et_pb_text_11,
#team-gallery .et_pb_text_13 {
	display: none !important;
}

/* Department-Header: roter Eyebrow-Stil */
#team-gallery .et_pb_text_4 .et_pb_text_inner,
#team-gallery .et_pb_text_6 .et_pb_text_inner,
#team-gallery .et_pb_text_8 .et_pb_text_inner,
#team-gallery .et_pb_text_10 .et_pb_text_inner,
#team-gallery .et_pb_text_12 .et_pb_text_inner,
#team-gallery .et_pb_text_14 .et_pb_text_inner {
	color: #C11E1E !important;
	text-transform: uppercase !important;
	letter-spacing: 3px !important;
	font-weight: 700 !important;
	font-size: 13px !important;
	border-bottom: 2px solid #C11E1E !important;
	padding-bottom: 14px !important;
	margin-bottom: 6px !important;
}

/* Department-Header: mehr Abstand nach oben (außer erstem) */
#team-gallery .et_pb_text_6,
#team-gallery .et_pb_text_8,
#team-gallery .et_pb_text_10,
#team-gallery .et_pb_text_12,
#team-gallery .et_pb_text_14 {
	margin-top: 60px !important;
}

/* Gallery-Grid: zentriert – volle Reihen füllen automatisch, unvollständige werden mittig ausgerichtet */
#team-gallery .et_pb_gallery_items {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	overflow: visible;
	padding: 10px 0 !important;
}

#team-gallery .et_pb_gallery_items:after {
	display: none;
}

/* Jedes Item: genau 25% minus Anteil des Gaps → 4 pro Reihe, linksbündig */
#team-gallery .et_pb_gallery_item {
	flex: 0 0 calc(25% - 12px);
	width: calc(25% - 12px);
	margin: 0;
	height: auto;
	aspect-ratio: 1/1;
}

#team-gallery .et_pb_gallery_item .et_pb_gallery_image {
	height: 100%;
	width: 100%;
	aspect-ratio: 1/1;
	overflow: hidden;
	border-radius: 10px;
}

#team-gallery .et_pb_gallery_item .et_pb_gallery_image a{
	pointer-events: none;
	display: block;
	width: 100%;
	height: 100%;
}

#team-gallery .et_pb_gallery_item img {
	width: auto;
	height: 100%;
	max-width: unset;
}

#team-gallery .et_pb_gallery_item .et_pb_gallery_title,
#team-gallery .et_pb_gallery_item .et_pb_gallery_caption {
	position: absolute;
	top: 50%;
	text-align: center;
	width: 100%;
	opacity: 0;
	z-index: 9;
	text-transform: uppercase;
	transition: all .2s ease-in-out;
	color: #fff;
}

#team-gallery .et_pb_gallery_item .et_pb_gallery_title {
	transform: translateY(-100%);
	margin: 0;
	font-size: 18px !important;
}

#team-gallery .et_pb_gallery_item:hover {
	transform: scale(1.05);
}

#team-gallery .et_pb_gallery_item:hover .et_pb_gallery_title,
#team-gallery .et_pb_gallery_item:hover .et_pb_gallery_caption {
	opacity: 1;
}

#team-gallery .et_pb_gallery_item .et_overlay {
	background: rgba(193, 30, 30, 0.75);
	border-radius: 10px;
}

#team-gallery .et_pb_gallery_item:hover .et_overlay {
	z-index: 3;
	opacity: 1;
}

#team-gallery .et_pb_gallery_item .et_overlay:before {
	display: none;
}

/* Responsive: 3 Spalten ab 980px, 2 ab 600px */
@media only screen and (max-width: 980px) {
	#team-gallery .et_pb_gallery_item {
		flex: 0 0 calc(33.333% - 11px);
		width: calc(33.333% - 11px);
	}
}

@media only screen and (max-width: 600px) {
	#team-gallery .et_pb_gallery_item {
		flex: 0 0 calc(50% - 8px);
		width: calc(50% - 8px);
	}
}


/* Carousel */

.jfm-carousel-section .dica_divi_carousel .dica-item {
	padding: 20px 20px 110px;
    border-radius: 10px;
    border: 1px solid #f1f1f1;
    overflow: hidden;
}

.jfm-carousel-section .dica_divi_carousel .dica-image-container {
	margin: -20px -20px 30px;
}

.jfm-carousel-section .dica_divi_carousel .item-title {
	font-size: 20px !important;
    text-transform: uppercase;
}

.jfm-carousel-section .dica_divi_carousel .item-subtitle {
	font-size: 20px !important;
    text-transform: uppercase;
	padding-bottom: 20px;
}

.jfm-carousel-section .dica_divi_carousel .et_pb_button_wrapper {
	position: absolute;
	bottom: 40px;
}



/* Youtube feed */

#jfm-youtube-feed .sby-owl-stage {
	display: flex;
    align-items: stretch;
}

#jfm-youtube-feed .sby_inner_item,
#jfm-youtube-feed .sby_item {
	height: 100%;
}

#jfm-youtube-feed .sby_item .sby_play_btn {
	height: 50px;
    width: 50px;
    border-radius: 50%;
    background: red;
    opacity: .7;
}

#jfm-youtube-feed .sby_item .sby_play_btn .sby_play_btn_bg {
	left: 20px;
}

#jfm-youtube-feed .sby_item .sby_play_btn .svg-inline--fa {
	display: none;
}

#jfm-youtube-feed .sby_item .sby-info {
	padding-left: 10px;
	padding-right: 10px;
}

#jfm-youtube-feed .sby-owl-nav>div {
	background: transparent;
	box-shadow: none;
}

#jfm-youtube-feed .sby-owl-nav .sby-owl-prev {
	margin-left: 0;
	right: 100%;
	left: unset;
}


#jfm-youtube-feed .sby-owl-nav .sby-owl-next {
	margin-right: 0;
	left: 100%;
	right: unset;
}


/* Insta Feed */

#jfm-insta-feed #sb_instagram #sbi_images {
	display: flex;
	flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

#jfm-insta-feed #sb_instagram #sbi_images .sbi_item {
	width: 24%;
	aspect-ratio: 1/1;
	border-radius: 10px;
}

#jfm-insta-feed #sb_instagram #sbi_images .sbi_item:first-child {
	width: 49%;
	aspect-ratio: 2/1.5;
}

#jfm-insta-feed #sb_instagram #sbi_images .sbi_item:nth-child(2),
#jfm-insta-feed #sb_instagram #sbi_images .sbi_item:nth-child(3) {
	aspect-ratio: 1/1.5;
}

#jfm-insta-feed #sb_instagram #sbi_images .sbi_item .sbi_inner_wrap,
#jfm-insta-feed #sb_instagram #sbi_images .sbi_item .sbi_photo_wrap,
#jfm-insta-feed #sb_instagram #sbi_images .sbi_item .sbi_photo {
	height: 100%!important;
}

/*  STOERER  */

.jfm-stoerer h3 {
	font-size: clamp(1.5rem, 0.2111rem + 2.6886vw, 2.8125rem)!important;
	color: #fff;
	text-transform: uppercase;
}


/* Google Bewertungen */

#google-bewertungen .google-bewertungen .ti-review-item .ti-inner {
	background: #fff!important;
	border-radius: 10px!important;
}


/* SERVICE Carousel */

#service.jfm-carousel-section {
	overflow:hidden;
}

#service.jfm-carousel-section .dica-container .swiper-container {
	overflow: visible;
}

#service.jfm-carousel-section .dica_divi_carousel .dica_divi_carouselitem {
	transition-delay: .2s;
	transition: opacity .2s ease;
	opacity: 1;
	
}

#service.jfm-carousel-section .dica_divi_carousel .dica_divi_carouselitem:not(.swiper-slide-visible) {
	opacity: 0;
}

#service.jfm-carousel-section .dica_divi_carousel .dica-item {
	border: none;
	box-shadow: 0 0 80px rgba(0,0,0,0.05);
	padding: 40px 20px 110px;
}

#service.jfm-carousel-section .dica_divi_carousel .dica-item .item-title {
	color: #191919;
	margin-bottom: 15px;
	
}

#service.jfm-carousel-section .dica_divi_carousel .dica-item .item-subtitle {
	text-transform: none;
	color: #757575;
}

#service.jfm-carousel-section .dica_divi_carousel .dica-item .et_pb_button_wrapper {
	margin-top: 25px;
}

#service.jfm-carousel-section .dica_divi_carousel .dica-item .et_pb_button {
	min-width: 200px;
}

#service.jfm-carousel-section .dica_divi_carousel .dica_divi_carouselitem:hover .dica-item {
	background: #3C3C3B;
	color: #fff;
}

#service.jfm-carousel-section .dica_divi_carousel .dica_divi_carouselitem:hover .item-title,
#service.jfm-carousel-section .dica_divi_carousel .dica_divi_carouselitem:hover .item-subtitle {
	color: #fff;
}

#service.jfm-carousel-section .dica_divi_carousel .dica_divi_carouselitem:hover .et_pb_button {
	color: #3C3C3B;
	background: #fff;
}



/*############################## MEDIA QUERYS ##############################*/

/* Max width 1500 px */
@media only screen and (max-width: 1500px) {

#jfm-main-nav {
		overflow: visible;
	}
	#jfm-main-nav>.et_pb_row {
		display: flex;
		align-items: center;
	}
	#jfm-main-nav .et_pb_row .et_pb_column:first-child {
		width: 60%!important;
		margin-bottom: 0;
	}
	#jfm-main-nav .et_pb_row .et_pb_column:last-child {
		width: 40%!important;
	}
	#jfm-main-nav .et_pb_row #meta-nav {
		display: none;
	}
	#jfm-main-nav .et_pb_row .et_pb_menu__menu {
		display: none;
	}
	#jfm-main-nav .et_pb_row .et_mobile_nav_menu {
		display: block;
	}
	#jfm-main-nav .et_pb_row .mobile_menu_bar:before {
		color: #000;
	}
	#jfm-main-nav .et_pb_row #mobile_menu1 {
		width: 80vw;
		right: 0;
		left: unset;
		margin-top: 20px;
		border-top-color: #000;
		list-style: none;
	}
	/*#jfm-main-nav .et_pb_menu ul>li:last-child {
		padding-left: 25px;
		display: flex;
		align-items: center;
		border-left: 0;
		border-top: 1px solid #000;
		padding-top: 5px;
	}*/
	#jfm-main-nav .et_pb_menu ul>li:last-child:before {
		height: 20px;
		width: 20px;
		display: inline-block;
		position: static;
		transform: none;
		margin-right: 10px;
	}
}

/*Max width 1350 px */
@media only screen and (max-width: 1350px) {
	.et_pb_row.leistungen-fokusboxen {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
	}
	.et_pb_row.leistungen-fokusboxen .et_pb_column {
		width: 49%!important;
		margin: 60px 0 20px!important;
	}
	.et_pb_row.leistungen-fokusboxen:after {
		display:none;
	}
	#jfm-insta-feed #sbi_images .sbi_item {
		width: 48%!important;
		aspect-ratio: 1/1!important;
	}
	#jfm-main-footer .et_pb_row {
		display: flex;
		flex-flow: row wrap;
		justify-content: space-between;
		align-items: flex-start;
	}
	#jfm-main-footer .et_pb_row:after {
		display: none;
	}
	#jfm-main-footer .et_pb_row .et_pb_column {
		margin: 0 0 60px;
	}
	#jfm-main-footer .et_pb_row .et_pb_column:first-child {
		order: 1;
		width: 45%!important;
	}
	#jfm-main-footer .et_pb_row .et_pb_column:nth-child(2) {
		order: 3;
		width: 100%!important;
	}
	#jfm-main-footer .et_pb_row .et_pb_column:nth-child(3) {
		order: 2;
		width: 45%!important;
	}
	#jfm-footer-bottom .et_pb_column {
		margin-bottom: 0;
	}
	#jfm-footer-ref .et_pb_column {
		width: 100%;
		padding: 0;
	}
}


/*############ Max width 980 px ############*/

@media only screen and (max-width: 980px) {
	#et-main-area {
		overflow: hidden;
	}
	
	.leistungen-fokusboxen .et_pb_column {
		margin-top: 60px!important;
	}
	#team-gallery .et_pb_gallery_item {
		flex: 0 0 calc(33.333% - 11px);
		width: calc(33.333% - 11px);
	}
	
	.jfm-stoerer .et_pb_text_inner {
		text-align: center;
	}
	.swiper-buttton-container .swiper-button-prev,
	.swiper-buttton-container .swiper-button-next {
		opacity: .2;
	}
	#jfm-insta-feed #sb_instagram #sbi_images {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
	}
	#jfm-insta-feed #sb_instagram #sbi_images .sbi_item {
		width: 100%!important;
	}
	#jfm-main-footer .et_pb_row .et_pb_column:nth-child(1),
	#jfm-main-footer .et_pb_row .et_pb_column:nth-child(2),
	#jfm-main-footer .et_pb_row .et_pb_column:nth-child(3) {
		width: 100%!important;
	}
	#jfm-footer-bottom .et_pb_row .et_pb_column {
		padding: 10px;
	}
	#jfm-footer-bottom .et_pb_row .et_pb_column .et_pb_text_inner p {
		text-align: center!important;
	}
	.et-l--footer .et_pb_section .et_pb_row {
		width: 100%;
	}
	.et-l--footer .et_pb_section .et_pb_column {
		width: 50%;
		padding: 50px;
	}
}

/*############ Max width 767 px ############*/

@media only screen and (max-width: 767px) {
	.et_pb_section .et_pb_row {
		width: 90%;
	}
	#jfm-main-nav .et_pb_row #mobile_menu1 {
		width: 90vw;
	}
	.et_pb_row.leistungen-fokusboxen .et_pb_column {
		width: 100%!important;
	}
	.mobile_middle-outside .swiper-button-next {
		-webkit-transform: translateX(70%);
		transform: translateX(70%);
	}
	.mobile_middle-outside .swiper-button-prev {
		-webkit-transform: translateX(-70%);
		transform: translateX(-70%);
	}
	.et-l--footer .et_pb_section .et_pb_column {
		width: 100%;
	}
}

/*############################## JOBS-ARCHIV – archive-frb_stelle.php ##############################*/

/* Hero: identisches Layout wie Karriere-Seite */
.frb-jobs-hero.et_pb_section {
	background-image: url('https://fred-bank.de/wp-content/uploads/fred-bank-gmbh-co-kg-imagefilm.jpg') !important;
	background-size: cover !important;
	background-position: center !important;
	background-color: rgba(8, 8, 8, 0.82) !important;
	background-blend-mode: overlay !important;
	height: 100vh !important;
	min-height: 680px !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.frb-jobs-hero-row.et_pb_row {
	height: 100% !important;
	display: flex !important;
	align-items: flex-end !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-right: auto !important;
	margin-left: auto !important;
}

.frb-jobs-hero-col.et_pb_column {
	padding: 60px !important;
}

.frb-hero-eyebrow {
	color: #C11E1E !important;
	text-transform: uppercase !important;
	letter-spacing: 4px !important;
	font-weight: 700 !important;
	font-size: 13px !important;
	margin: 0 0 12px !important;
}

.frb-hero-h1 {
	color: #ffffff !important;
	font-size: clamp(2.5rem, 5vw, 4.5rem) !important;
	font-weight: 900 !important;
	line-height: 1.05 !important;
	letter-spacing: -2px !important;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5) !important;
	max-width: 700px;
	margin: 0 0 24px !important;
}

.frb-hero-h1 span {
	color: #C11E1E !important;
}

.frb-hero-text {
	color: rgba(255, 255, 255, 0.8) !important;
	font-size: 16px !important;
	line-height: 1.7 !important;
	max-width: 520px;
	margin: 0 0 36px !important;
}

.frb-hero-btn.et_pb_button {
	background-color: #C11E1E !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 3px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 2px !important;
	min-width: auto !important;
	padding: 13px 30px !important;
}

.frb-hero-btn.et_pb_button:hover {
	background-color: #a01818 !important;
	text-decoration: none !important;
}

/* Stellenliste Section */
.frb-jobs-liste.et_pb_section {
	background-color: #ffffff !important;
	padding-top: 80px !important;
	padding-bottom: 80px !important;
}

/* Footer-Fix: Archivseite lädt andere Divi-CSS-Variante (style-static-cpt),
   die Footer-Hintergründe des Theme Builders nicht enthält → manuell setzen */
.post-type-archive-frb_stelle .et_pb_section_0_tb_footer {
	background-color: #3c3c3b !important;
}

.post-type-archive-frb_stelle .et_pb_section_1_tb_footer {
	background-color: #262626 !important;
}

.frb-jobs-liste-header {
	margin-bottom: 40px !important;
}

.frb-section-eyebrow {
	color: #C11E1E !important;
	text-transform: uppercase !important;
	letter-spacing: 4px !important;
	font-weight: 700 !important;
	font-size: 13px !important;
	margin: 0 0 12px !important;
}

.frb-section-title {
	color: #1d2327 !important;
	margin: 0 !important;
}

/* Mobile */
@media only screen and (max-width: 767px) {
	.frb-jobs-hero-row.et_pb_row {
		align-items: flex-start !important;
	}
	.frb-jobs-hero-col.et_pb_column {
		padding: 40px !important;
	}
}


/*############################## KARRIERE-SEITE – Hero-Header Fix ##############################*/

/*
 * Problem: Divi setzt padding-top: 560px (fest) + height: 100vh auf den Hero-Bereich.
 * Bei Viewports kürzer als ~950 px (z. B. Breitbild-Monitore mit geringer Höhe)
 * läuft der Text-Inhalt aus dem Hintergrundbild heraus.
 *
 * Fix: Flexbox mit align-items: flex-end am Row-Element.
 * Der Inhalt bleibt damit immer am unteren Rand des Hero-Bildes –
 * unabhängig von Viewport-Höhe und Auflösung.
 * Eingegrenzt auf page-id-1214 (Karriere-Seite) via Body-Class.
 */

.page-id-1214 .et_pb_row_0.et_pb_row,
.page-id-3524 .et_pb_row_0.et_pb_row,
.page-id-268  .et_pb_row_0.et_pb_row {
	display: flex !important;
	align-items: flex-end !important;
	height: 100% !important;
}

.page-id-1214 .et_pb_column_0,
.page-id-3524 .et_pb_column_0,
.page-id-268  .et_pb_column_0 {
	padding-top: 60px !important;
}

/* Mobile: etwas mehr Luft oben, da Viewport oft sehr schmal ist */
@media only screen and (max-width: 767px) {
	.page-id-1214 .et_pb_row_0.et_pb_row,
	.page-id-3524 .et_pb_row_0.et_pb_row,
	.page-id-268  .et_pb_row_0.et_pb_row {
		align-items: flex-start !important;
	}
	.page-id-1214 .et_pb_column_0,
	.page-id-3524 .et_pb_column_0,
	.page-id-268  .et_pb_column_0 {
		padding-top: 40px !important;
	}
}

/*############################## GESCHICHTE – TIMELINE ##############################*/

.frb-timeline {
position: relative;
padding: 20px 0;
}

/* Vertikale Linie */
.frb-timeline::before {
content: '';
position: absolute;
left: 120px;
top: 0;
bottom: 0;
width: 2px;
background: #e0e0e0;
}

.frb-timeline-item {
display: flex;
gap: 0;
margin-bottom: 48px;
position: relative;
align-items: flex-start;
}

/* Jahr-Spalte */
.frb-timeline-year {
flex: 0 0 120px;
color: #C11E1E;
font-family: Murecho, sans-serif;
font-weight: 900;
font-size: 1.5rem;
line-height: 1;
padding-top: 2px;
text-align: right;
padding-right: 20px;
white-space: nowrap;
}

/* Punkt auf der Linie */
.frb-timeline-item::after {
content: '';
position: absolute;
left: 113px;
top: 6px;
width: 14px;
height: 14px;
border-radius: 50%;
background: #C11E1E;
border: 3px solid #fff;
box-shadow: 0 0 0 2px #C11E1E;
}

/* Inhalts-Spalte */
.frb-timeline-content {
flex: 1;
padding-left: 48px;
}

.frb-timeline-content h3 {
margin: 0 0 8px !important;
font-size: 1.1rem !important;
color: #1d2327;
}

.frb-timeline-content p {
margin: 0 !important;
color: #555;
font-size: 15px !important;
line-height: 1.7 !important;
}

/* Responsive */
@media only screen and (max-width: 767px) {
.frb-timeline::before { left: 16px; }
.frb-timeline-item { flex-direction: column; padding-left: 44px; }
.frb-timeline-item::after { left: 9px; top: 4px; }
.frb-timeline-year { flex: none; font-size: 1.1rem; text-align: left; padding-right: 0; }
.frb-timeline-content { padding-left: 0; margin-top: 6px; }
}



/*############################## GESCHICHTE - TIMELINE ##############################*/

.frb-timeline { position: relative; padding: 20px 0; }
.frb-timeline::before { content: ""; position: absolute; left: 120px; top: 0; bottom: 0; width: 2px; background: #e0e0e0; }
.frb-timeline-item { display: flex; gap: 0; margin-bottom: 48px; position: relative; align-items: flex-start; }
.frb-timeline-year { flex: 0 0 120px; color: #C11E1E; font-family: Murecho, sans-serif; font-weight: 900; font-size: 1.5rem; line-height: 1; padding-top: 2px; text-align: right; padding-right: 20px; white-space: nowrap; }
.frb-timeline-item::after { content: ""; position: absolute; left: 113px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #C11E1E; border: 3px solid #fff; box-shadow: 0 0 0 2px #C11E1E; }
.frb-timeline-content { flex: 1; padding-left: 48px; }
.frb-timeline-content h3 { margin: 0 0 8px !important; font-size: 1.1rem !important; color: #1d2327; }
.frb-timeline-content p { margin: 0 !important; color: #555; font-size: 15px !important; line-height: 1.7 !important; }

@media only screen and (max-width: 767px) { .frb-timeline::before { left: 16px; } .frb-timeline-item { flex-direction: column; padding-left: 44px; } .frb-timeline-item::after { left: 9px; } .frb-timeline-year { flex: none; font-size: 1.1rem; text-align: left; } .frb-timeline-content { padding-left: 0; margin-top: 6px; } }

/* Full-Height-Hero: Text vertikal zentrieren statt fixem Pixel-Abstand von oben (fensterhöhen-unabhängig) */
.frb-hero-row.et_pb_row {
  display: flex;
  align-items: center;
}

/* Über uns Teaser-Kacheln: unterschiedliche Bildformate auf einheitliche Höhe zuschneiden */
.frb-teaser-img.et_pb_image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* SolarEdge Live-Daten Widget */
.frb-solar-live {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin: 0 auto;
}
.frb-solar-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 140px;
}
.frb-solar-value {
  font-size: 2rem;
  font-weight: 800;
  color: #C11E1E;
  line-height: 1.1;
}
.frb-solar-label {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-top: 6px;
}
.frb-solar-updated {
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  margin: 24px 0 0;
}
@media only screen and (max-width: 480px) {
  .frb-solar-live { gap: 24px; }
  .frb-solar-value { font-size: 1.6rem; }
}

/* Pulsierender "live" Punkt */
.frb-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(46,204,113,0.7);
  animation: frb-pulse 1.8s infinite;
}
@keyframes frb-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(46,204,113,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(46,204,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}

/* Kurzes Aufblitzen, wenn ein Wert per JS aktualisiert wird */
.frb-live-flash {
  animation: frb-flash 900ms ease;
}
@keyframes frb-flash {
  0%   { opacity: 0.35; }
  100% { opacity: 1; }
}

/* Umweltvorteile-Karte: dunkles Glas, passend zum Sektionshintergrund */
.frb-env-card {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 26px 28px 22px;
  max-width: 640px;
  margin: 48px auto 0;
  backdrop-filter: blur(2px);
}
.frb-env-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.frb-env-info {
  background: none;
  border: none;
  padding: 0;
  color: rgba(255,255,255,0.45);
  font-size: 15px;
  cursor: pointer;
  line-height: 1;
}
.frb-env-info:hover,
.frb-env-info:focus-visible {
  color: rgba(255,255,255,0.85);
}
.frb-env-explain {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 16px 18px;
  margin: -10px 0 22px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
}
.frb-env-explain p {
  margin: 0 0 10px;
}
.frb-env-explain p:last-child {
  margin-bottom: 0;
}
.frb-env-explain a {
  color: #85b3ff;
}
.frb-env-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: center;
}
.frb-env-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.frb-env-stat svg {
  margin-bottom: 10px;
}
.frb-env-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
}
.frb-env-label {
  font-size: 12.5px;
  color: #85b3ff;
  margin-top: 6px;
  line-height: 1.4;
}
.frb-env-footnote {
  text-align: center;
  color: rgba(255,255,255,0.35);
  font-size: 11.5px;
  margin: 18px 0 0;
}
@media only screen and (max-width: 600px) {
  .frb-env-grid { grid-template-columns: 1fr; gap: 24px; }
}
.frb-teaser-row .et_pb_column {
  display: flex;
  flex-direction: column;
}
.frb-teaser-row .et_pb_column .et_pb_button_module_wrapper {
  margin-top: auto;
  padding-top: 24px;
}
.frb-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 32px;
}
.frb-stat-block {
  flex: 1;
  min-width: 140px;
}
.frb-stat-num {
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #C11E1E;
  line-height: 1;
  letter-spacing: -1px;
  white-space: nowrap;
}
.frb-stat-label {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #777;
  margin-top: 8px;
  hyphens: auto;
}
.frb-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
}
.frb-check-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.frb-check-item svg {
  flex-shrink: 0;
  margin-top: 3px;
}
.frb-check-item span {
  font-size: 15px;
  line-height: 1.6em;
  color: #444;
}
.frb-check-item strong {
  color: #111;
}
.frb-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.frb-tag {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
@media only screen and (max-width: 767px) {
  .frb-check-grid { grid-template-columns: 1fr; }
}
.frb-steps-row {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}
.frb-step {
  flex: 1;
  position: relative;
  padding-top: 28px;
}
.frb-step::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 44px;
  right: -20px;
  height: 2px;
  background: #e5e5e5;
}
.frb-step:last-child::before {
  display: none;
}
.frb-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #C11E1E;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.frb-step h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: #111;
}
.frb-step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65em;
  color: #555;
}
@media only screen and (max-width: 767px) {
  .frb-steps-row { flex-direction: column; gap: 28px; }
  .frb-step::before { display: none; }
}
.frb-service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}
.frb-service-card {
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 10px;
  padding: 32px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.frb-service-card:hover {
  border-color: #e0b9b9;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.frb-service-icon {
  display: block;
  margin-bottom: 16px;
}
.frb-service-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: #111;
  line-height: 1.3;
}
.frb-service-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7em;
  color: #555;
}
@media only screen and (max-width: 767px) {
  .frb-service-grid { grid-template-columns: 1fr; }
}
