/*
 Theme Name:     Reimann Theme
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    erstellt für UP Rechtsanwälte von Johannes Reimann
 Author:         Johannes Reimann
 Author URI:     https://www.johannesreimann.com
 Template:       Divi
 Version:        2.1.1
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */


/* B5 styles
blau: #223964;
braun: #ad8961;
*/

.b5-hidden {
	display: none !important;
}

a {
	color: #ad8961;
}

/* Header overrides */
body {
	padding-top: 80px !important;
}
.mobile_menu_bar:before {
	color: #ad8961;
}
.et_mobile_menu {
	border-top-color: #ad8961;
}

@media all and (min-width:981px){
	body {
		padding-top: 120px !important;
	}
	.logo_container {
		text-align: center;
		margin-top: -100px;
	}
	.et_pb_svg_logo #logo {
		height: 70% !important;
	}
	#logo {
		max-height: 80%;
	}
	#et-top-navigation {
		float: none;
		padding-left: 0 !important;
	}
	nav#top-menu-nav, #top-menu, nav.et-menu-nav, .et-menu {
		float: none;
		text-align: center;
	}
	#top-menu li a {
		text-transform: uppercase;
		font-size: 14px;
		padding-top: 8px;
		border-top: 2px solid transparent;
	}
	#top-menu > li.current-menu-parent > a,
	#top-menu > li.current-menu-item > a {
		border-top-color: #ad8961;
		padding-right: 0 !important;
	}
	#top-menu > li.menu-item-has-children > a {
		padding-right: 0 !important;
	}
	
	#top-menu > li.menu-item-has-children > a:after,
	#top-menu > li.current-menu-parent > a:after,
	#top-menu > li.current-menu-item > a:after {
		display: none;
	}
	#main-header {
		background-color: rgba(0,0,0,.33) !important;
		top: 120px !important;
		position: absolute !important;
	}
	#main-header .nav li ul {
		background-color: rgba(0,0,0,.33) !important;
		left: -40px;
	}
	#main-header .nav li ul a {
		text-transform: none;
	}
	
	body.nav-fixed #main-header {
		position: fixed !important;
    	top: 0px !important;
		background-color: rgba(34,57,100,1) !important;
	}
	body.nav-fixed #main-header .nav li ul {
		background-color: rgba(34,57,100,1) !important;
	}
}

@media all and (max-width:980px){
	#main-header {
		background-color: #fff !important;
	}
}
	
/* Footer*/
footer .et_pb_section_0_tb_footer.et_pb_section {
	background-color: #223964 !important;
}
footer .et_pb_text_inner h5 {
	color: #ad8961;
	text-transform: uppercase;
}


/* Hero */
.b5-hero__caption {
	display: none;
}
.b5-hero__author {
	display: block;
	font-size: 16px;
	text-align: center;
	margin-top: 10px;
}
@media all and (min-width:981px){
	.b5-hero__caption {
		position: absolute !important;
		top: 0;
		left: 100px;
		right: 100px;
		bottom: 20%;
		display: flex;
		justify-content: center;
		align-items: flex-end;
		font-size: clamp(21px, 1.5vw, 32px);
		font-weight: 500;
		color: #fff;
		text-align: center;
	}
}

/* Classes */
.b5-flex-row {
	display: flex;
	flex-direction: column;
}
.b5-flex-row > div {	
    flex: 1;
    display: flex;
}
@media all and (min-width:981px){
	.b5-flex-row {
		flex-direction: row;
	}
}


/* Tags */
body {
	font-weight: 400;
	color: #000;
}
h1,
h2 {
    text-align: center;
    color: #223964;
	line-height: 1.4;
}
h3,
.h3 {
    text-align: center;
    color: #ad8961;
	font-size: 24px;
	line-height: 1.2;
	margin-bottom: 1em;
}
h4 {
    color: #ad8961;
}

.-invers h2,
h2.-invers {
	color: #fff !important;
    border: 1px solid #fff;
    border-left: none;
    border-right: none;
    padding: 10px 0;
}

/* Override blog module styles */
/* Update */
.page-id-4132 article h2 {
	text-align: left;
}
/* Startseite */
.page-id-3594 .et_pb_blog_grid .et_pb_salvattore_content {
	display: flex;
	flex-direction: column;
}
.page-id-3594 .et_pb_blog_grid .column.size-1of1 {
	display: flex;
	width: 100%;
	margin-right: 0;
    flex-direction: column;
}
.page-id-3594 .et_pb_blog_grid .column.size-1of2 {
	display: flex;
	width: 80%;
    margin: 0 auto !important;
    flex-direction: column;
}
.page-id-3594 .et_pb_blog_grid .column.size-1of2 .et_pb_post {
    margin-bottom: 30px !important;
}
.page-id-3594 .et_pb_blog_grid .column.size-1of3 {
	display: flex;
    width: 100% !important;
    margin: 0 !important;
    flex-direction: row;
}
.page-id-3594 .et_pb_blog_grid .et_pb_post {	
    display: flex;
    flex-direction: column;
	position: relative;
	gap: 5px;
	padding: 25px;
}
.page-id-3594 .et_pb_blog_grid .et_pb_post > .post-meta {
	order: 0;
}
.page-id-3594 .et_pb_blog_grid .et_pb_post > .entry-title {
	order: 1;
}
.page-id-3594 .et_pb_blog_grid .et_pb_post > .post-content {
	order: 2;
    flex: 1;
	padding-bottom: 24px;
	font-weight: 400;
}
.page-id-3594 .et_pb_blog_grid .et_pb_post > .et_pb_image_container {
	order: 3;
	margin: 0;
}
.page-id-3594 .et_pb_post .entry-featured-image-url {
	margin-bottom: 10px;
}
.page-id-3594 .et_pb_blog_grid .et_pb_post .more-link {
	position: absolute;
	bottom: 0;
	left: 25px;
}
.page-id-3594 .et_pb_blog_grid .et_pb_post .more-link::after {
	content: '⟶';
    position: relative;
    top: 0px;
    left: 5px;
    font-size: 32px;
}
.page-id-3594 .et_pb_blog_grid .et_pb_post .more-link:hover {
	color: #ad8961 !important;
	text-decoration: none;
}

@media all and (min-width:981px){
	.page-id-3594 .et_pb_blog_grid .et_pb_salvattore_content {
		flex-direction: row;
	}
}


/* Gallery */
/*image gallery item aspect ratio landscape 16:9*/
.pa-image-gallery-16-9 .et_pb_gallery_image {
  padding-top: 56.25%;
  display: block;
}
.pa-image-gallery-16-9 .et_pb_gallery_item img {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  object-fit: cover;
}


/* Override divider */

@media all and (max-width:550px){
	[class*='et_pb_divider_'] {
		width: 220px !important;
	}
}


/* custom button rows */
.b5-buttons__row {
	display: flex;
	flex-flow: row wrap;
	gap: 30px;
	justify-content: center;
}
.b5-buttons__row > div {
    display: flex;
    flex-direction: column;
	margin: 0 !important;
}
.b5-buttons__row a {
	display: flex!important;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    line-height: 1.4!important;
}
.b5-buttons__row a:hover {
	text-decoration: none !important;
}
.b5-buttons__row.-unternehmen,
.b5-buttons__row.-privat {
    justify-content: flex-start;
	gap: 28px;
}
.b5-buttons__row.-unternehmen > div,
.b5-buttons__row.-privat > div {
    flex: 0 1 calc(25% - 21px);
	min-width: 200px;
}
@media all and (min-width:981px){
	.b5-buttons__row.-unternehmen > div,
	.b5-buttons__row.-privat > div {
		min-height: 62px;
	}
}
@media all and (max-width:600px){
	.b5-buttons__row.-unternehmen > div,
	.b5-buttons__row.-privat > div {
    	flex: 1 0 100%;
	}
}



/* custom umschalter */
.et_pb_toggle .et_pb_toggle_title:before {
	content: "\4C";
}
.et_pb_toggle_open .et_pb_toggle_title:before {
	content: "\4B";
}
.et_pb_toggle_content p:last-child {
	text-align: right;
}
.et_pb_toggle_content p:last-child > a {
	position: relative;
	color: #223964;
	font-style: italic;
}
.et_pb_toggle_content p:last-child > a:hover {
	color: #ad8961;
	text-decoration: none;
}
.et_pb_toggle_content p:last-child > a::after {
	content: '⟶';
    position: relative;
    top: 0px;
    left: 5px;
    font-size: 32px;
}


/* custom person */
.b5-person {
    display: flex !important;
    flex-direction: column;
    border: 1px solid #ad8961;
}
.b5-person a {
	color: #000;
}
.b5-person a:hover {
	color: #ad8961;
	text-decoration:none;
}
.b5-person > div {
    max-width: 100%;
	margin: 0 !important;
}
.b5-person > .et_pb_team_member_description {
	padding: 16px 40px;
}
.b5-person > .et_pb_team_member_description h4,
.b5-person > .et_pb_team_member_description strong,
.b5-person > .et_pb_team_member_description b {
	color: #223964;
	font-weight: 600;	
}
.b5-person > .et_pb_team_member_description em,
.b5-person > .et_pb_team_member_description i {
	color: #ad8961;
	font-style: normal;
	font-weight: 600;
}
.b5-person__overlay-text {
	position: absolute;
	top: 30%;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: clamp(28px, 2vw, 32px);
}
@media all and (max-width:980px){
	.b5-person__overlay-text {
		top: calc(((100vw / 2) - 60px) * 0.5);
	}
}
@media all and (min-width:981px) and (max-width:1750px){
	.b5-person__overlay-text {
		top: calc(((100vw / 2) - 100px - 2.5%) * 0.225);
	}
}
@media all and (min-width:1751px){
	.b5-person__overlay-text {
		top: 158px;
	}
}



/* custom kontaktbox */
.b5-kontaktbox__row {
	display: flex;
}
.b5-kontaktbox__row > div {
	display: flex;
	flex: 1;
}
.b5-kontaktbox__data {
	display: flex;
    flex: 1;
	align-items: center;
    justify-content: center;
	border: 1px solid #223964;
	padding: 10px 30px;
}
.b5-kontaktbox__data h2 {
	text-align: left !important;
    margin-bottom: 16px;
}
.b5-kontaktbox__data strong,
.b5-kontaktbox__data b {
	color: #223964;
	font-weight: 600;
}
.b5-kontaktbox__data em,
.b5-kontaktbox__data i {
	color: #ad8961;
	font-style: normal;
	font-weight: 600;
}
.b5-kontaktbox__data a {
	color: #000;
}
.b5-kontaktbox__data > div {
	min-width: 80%;
}

@media all and (max-width:980px){
	.b5-kontaktbox__row {
		flex-direction: column;
	}
	.b5-kontaktbox__data {		
    	justify-content: flex-start;
    	padding: 20px 30px;
	}
}



/* b5 c2a button */
.b5-c2a {
	border: none !important;
	background-color: #223964 !important;
	color: #fff !important;
	text-decoration: none !important;
}
.b5-c2a:hover {
	border: none !important;
	background-color: #ad8961 !important;
	color: #fff !important;
	text-decoration: none !important;
}
.b5-c2a::after {
	color: #fff !important;
}
.b5-c2a.-privat {
	background-color: #ad8961 !important;
}
.b5-c2a.-privat:hover {
	background-color: #223964 !important;
}


/*
 * FORM
 */
.b5-form {
	max-width: 800px;
	margin: auto;
}

.b5-form a {
	color: #ad8961;
}

.b5-form a:hover {
  text-decoration: none;
	color: #223964;
}

.b5-form__field .b5-form__input::before {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 1px;
  right: 1px;
  height: 2px;
  background-color: #ad8961;
  z-index: 1;
  opacity: .5;
  transition: 0.4s;
  transform: scaleX(0);
}

.b5-form__field.-focused .b5-form__input::before {
  opacity: 1;
  transform: scaleX(1);
}

.b5-form__action {
  margin-top: 20px;
}
/*
.b5-form__action-btn:after {
	content: none;
	display: none;
}
.b5-form__action-btn {
	background-color: #ad8961 !important;
	color: #fff !important;
  cursor: pointer;
}
.b5-form__action-btn:hover {
	background-color: #223964 !important;
	color: #fff !important;
	text-decoration: none;
}
*/
.b5-form__checkbox label {
  display: flex;
  align-items: baseline;
}

.b5-form__checkbox label input {
  margin-right: 10px;
}

.b5-form__radio {
  position: relative;
  margin-bottom: 20px;
  background-color: #e5e5e5;
  padding: 12px 16px;
}

.b5-form__radio label {
  color: #666;
}

.b5-form__input {
  position: relative;
}

.b5-form__input.-pflichtfeld::after {
  content: '*';
  font-size: 14px;
  display: block;
  position: absolute;
  top: 0;
  right: 5px;
  color: #ad8961;
}

.b5-form__input.-show label {
  opacity: 1;
  top: -8px;
  background: #101010;
  color: white;
  padding: 3px 5px;
  line-height: 1;
}

.b5-form__input.-show textarea,
.b5-form__input.-show input {
  padding: 16px 16px 8px 16px;
}

.b5-form__input label {
  position: absolute;
  display: block;
  left: 12px;
  top: 25px;
  font-size: 10px;
  line-height: 1em;
  font-weight: 700;
  opacity: 0;
  letter-spacing: 0;
  z-index: 1;
  transition: 0.4s;
}

.b5-form__input textarea,
.b5-form__input input {
  font-family: "OpenSans", Helvetica, Arial, sans-serif;
  font-size: 16px;
  width: 100%;
  outline: none;
  padding: 16px 0;
  border: none;
  vertical-align: bottom;
  transition: padding 0.4s;
  background-color: #fff;
	border-top: 1px solid #ad8961;
}
.b5-form__input.-last input {
	border-bottom: 1px solid #ad8961;	
}
.b5-form__input textarea::placeholder,
.b5-form__input input::placeholder {
	font-style: italic;	
}
.b5-form__input input:focus {
	border-color: #ad8961;	
}

.b5-form__input textarea.wpcf7-not-valid,
.b5-form__input input.wpcf7-not-valid {
  background-color: rgba(175, 80, 80, 0.1) !important;
}

.b5-form__input textarea {
  height: 100px;
}

.b5-form__file {
  position: relative;
  margin-bottom: 20px;
  border: 1px solid #ad8961;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}

.b5-form__file > span {
  display: block;
  background-color: #ad8961;
  transition: 0.2s;
}

.b5-form__file > span::after {
  content: 'Datei auswählen';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-transform: uppercase;
  font-size: 14px;
  pointer-events: none;
}

.b5-form__file > span:hover {
  background-color: #223964;
}

.b5-form__file > span label {
  color: #666;
}

.b5-form__file > span input {
  opacity: .0001;
  width: 100%;
  height: 100%;
}

.b5-form .wpcf7-list-item {
	margin: 0;
}

.b5-form .wpcf7-not-valid-tip {
  position: relative;
  padding: 2px 0 2px 30px;
  color: #ad8961;
}

.b5-form .wpcf7-not-valid-tip::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 0;
  width: 22px;
  height: 21px;
  display: inline-block;
  border-radius: 50%;
  background-color: #ad8961;
}

.b5-form .wpcf7-not-valid-tip::after {
  content: '✕';
  position: absolute;
  top: 8px;
  left: 5px;
  color: #fff;
  line-height: 1;
}
.b5-form small {
    font-size: 14px;
}

.b5-form__dsgvo {
	margin-top: 30px;
}
.b5-form__obligatory {
	color: #999;
}

.b5-form__col.-files {
	margin-top: 30px;
}

@media all and (min-width: 36em) {
  .b5-form__file {
    flex-direction: row;
  }
  .b5-form__file > span {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
  }
}

@media all and (min-width: 48em) {
  .b5-form__group {
    display: flex;
    justify-content: space-between;
  }
  .b5-form__group > div {
    width: calc(50% - 10px);
  }
  .b5-form__group.-vcenter {
    align-items: center;
  }
  .b5-form__obligatory {
    text-align: right;
  }
}


.wpcf7 form.sent .wpcf7-response-output {
  border: 1px solid #ad8961;
  color: #73be73;
  background-color: #fff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  padding: 1em;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  border: 2px solid #af5050;
  background-color: rgba(175, 80, 80, 0.1);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
  padding: 1em 1.75em;
  line-height: 1.4;
  color: #af5050;
}