/*
Theme Name: Buley Associates Theme
Text Domain: buley-associates.de
description: >-
  Twenty Twenty-One Child Theme for Buley Associates
Template: twentytwentyone
Version: 1.21
Requires at least: 4.7
Requires PHP: 5.2.4
Description: Buley Associates Wordpress Theme.
Tags: blog, one-column, translation-ready, accessibility-ready
Theme URI:
*/
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap');

*, *::after, *::before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html * {
  font-family: "Open Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-size: 1.6rem;
  color: #333;
  background-color: #0d0d0d;
}

a:focus{
  background: inherit!important;
}

ul{
  list-style-position: inside;
}

/*
* wp-fixes
*/

.wp-block-column{
  margin: 0!important;
  padding: 0!important;
}

/*
* Container
*/

.widget-area,
.post-navigation,
.site-header,
.alignwide,
.wide-max-width {
    max-width: 100%!important;
}

@media screen and (min-width: 996px){
  .widget-area,
  .post-navigation,
  .site-header,
  .alignwide,
  .max-width {
      max-width: 80vw!important;
      margin-left: auto!important;
      margin-right: auto!important;
  }
}

/*
* Navbar & Menu
*/

@media screen and (min-width: 996px){
  #content{
    margin-top: 168px;
  }
}

.site-header{
  position: relative;
  width: 100%;
  align-items: flex-start!important;
  justify-content: unset!important;
  background-color: #afca0b;
  padding: 0.5rem 0;
  margin: 0!important;
  z-index: 69;
}

@media screen and (min-width: 996px){
  .site-header{
    margin: 0 auto 3rem auto;
    height: 168px;
    position: fixed;
    left: 50%;
    transform: translate(-50%, -100%);
  }
}

.site-header, .site-header .site-logo, .footer .site-logo{
  padding: 0!important;
  margin: 0 auto!important;
  border: none!important;
}

.site-branding, .site-info .site-name{
  line-height: 1!important;
  max-width: 0!important;
}

.site-branding .site-logo, .site-info .site-logo{
  float: left;
}

.site-branding .site-logo img, .site-info .site-logo img{
  max-height: 60px;
  margin-right: 10px;
}

.site-branding .site-logo,
.site-branding h1,
.site-branding .site-description,
.site-info .site-logo,
.site-info a,
.site-info .site-description{
  display: inline-block;
  margin: 0!important;
  font-size: 1rem!important;
  vertical-align: middle;
  vertical-align: -webkit-baseline-middle;
}

.site-logo h1{
  margin-top: 10px!important;
  background-size: cover;
  height: 114px;
  width: 272px;
  margin-left: calc(50vw - 136px)!important;
}

@media screen and (min-width: 481px){
  .site-logo h1{
    height: 136px;
    width: 285px;
    margin-left: 50px!important;
  }
}

.site-logo h1 span{
  visibility: hidden;
}

.site-title, .site-description{
  display: none!important;
}

.site-description{
  text-transform: none;
}

@media screen and (min-width: 900px){
  .site-title, .site-description{
    display: inline-block!important;
  }
}

.site-info a, .site-info .site-description{
  white-space: nowrap;
  width: 100%;
}

.primary-navigation{
  top: 17px!important;
}

.primary-navigation button .open{
  color: white!important;
}

@media screen and (min-width: 481px){
  .primary-navigation{
    position: absolute!important;
    bottom: 0;
    top: auto!important;
    right: 10px!important;
  }

  .primary-navigation a{
    color: white!important;
  }
}

@media screen and (min-width: 996px){
  .primary-navigation{
    position: relative!important;
    margin-left: 50%!important;
    width: 20%;
  }

  .primary-navigation .menu-wrapper{
    background-color: #6F716E;
  }

  .primary-navigation .menu-wrapper li{
    flex: 1;
    justify-content: center;
    transition: all 0.4s;
  }

  .primary-navigation .menu-wrapper .current-menu-item{
    background-color: #81837F;
  }

  .primary-navigation .menu-wrapper li:hover{
    background-color: #95AC0A;
    opacity: 0.8;
    transition: all 0.4s;
  }

  .primary-navigation .menu-wrapper li a{
    color: white;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.25px;
    text-decoration: none!important;
  }
}

.site-bg-image{
  display: none;
  height: 168px;
  width: 193px;
  background-size: cover;
  margin-left: auto;
}

@media screen and (min-width: 996px){
  .site-bg-image{
    display: inline-block;
  }
}

.site-language-switch{
  list-style: none;
  position: absolute;
  top: 10px;
  right: 10px;
}

@media screen and (min-width: 996px){
  .site-language-switch{
    right: -50px;
  }
}

.site-language-switch li{
  margin: 7px;
  transition: all 0.4s;
  display: inline;
  float: left;
  width: 1.5rem;
}

@media screen and (min-width: 996px){
  .site-language-switch li{
    display: list-item;
    float: none!important;
  }
}

.site-language-switch li:hover{
  opacity: 0.4;
  transition: all 0.4s;
}

.site-language-switch li img{
  height: 1.65rem;
}

.site-language-switch .lang-item a:before{
  height: 1.5rem;
  display: block;
  content: "";
  margin-top: 10px;
}

.site-language-switch .lang-item-de a:before{
  background: url('assets/de.svg') no-repeat
}

.site-language-switch .lang-item-en a:before{
  background: url('assets/gb.svg') no-repeat
}

.site-language-switch .lang-item img{
  display: none;
}

.service-menu-container{
  width: 100%;
}

@media screen and (min-width: 996px){
  .service-menu-container{
    top: 205px;
    position: fixed;
    left: 50%;
    transform: translate(-50%, -100%);
    height: 40px;
    z-index: 69;
  }
}

.service-menu-container ul{
  list-style: none;
  padding: 0;
}

.service-menu-container ul li{
  background-color: #81837F;
  width: 50%;
  float: left;
  text-align: center;
  transition: 0.4s all;
}

.service-menu-container ul li:nth-of-type(odd){
  background-color: #6F716E;
}

@media screen and (min-width: 996px){
  .service-menu-container ul li{
    width: 25%;
  }
}

.service-menu-container ul li:hover{
  transition: 0.4s all;
}

.service-menu-container ul li a{
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  display: block;
  line-height: 2.5rem;
}

/*
*   Frontpage Intro
*/

.home article{
  padding-top: 0!important;
}

.home .intro{
  padding-bottom: 2rem;
}

.home .intro figure{
  min-height: 390px!important;
}

.home .intro p,
.home .image-gallery p{
  font-size: 1.25rem;
  color: #6F716E;
  font-weight: bold;
  padding: 0 2rem!important;
}

@media screen and (min-width: 996px){
  .home .intro p,
  .home .image-gallery p{
    font-size: 1.75rem;
  }
}

.home .services{
  padding-bottom: 2rem;
}

.home .services ul{
  width: 100%!important;
  padding: 0!important;
}

@media screen and (min-width: 996px){
  .home .services ul{
    width: var(--responsive--alignwide-width);
  }
}

.home .services ul li{
  position: relative;
  margin: 0!important;
  clear: none!important;
  text-align: center;
  transition: all 0.4s;
  color: white;
  font-size: 1rem;
  padding: 2rem;
}

@media screen and (min-width: 481px){
  .home .services ul li{
    width: 50%;
  }
}

@media screen and (min-width: 996px){
  .home .services ul li{
    width: 25%;
  }
}

.home .services ul li:nth-of-type(even){
  background-color: #81837F;
}

.home .services ul li:nth-of-type(odd){
  background-color: #6F716E;
}

.home .services ul li::before{
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-top: 20px solid white;
}

.home .services ul li a{
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.15rem;
  color: white;
}

.home .services ul li .wp-block-latest-posts__featured-image{
  margin-top: 1rem!important;
}

.home .services ul li .wp-block-latest-posts__post-excerpt{
  font-style: italic;
  line-height: 1.15rem;
  transition: all 0.4s
}

@media screen and (min-width: 996px){
  .home .services ul li .wp-block-latest-posts__post-excerpt{
    visibility: hidden;
    opacity: 0;
  }
}

.home .services ul li:hover .wp-block-latest-posts__post-excerpt{
  visibility: visible;
  opacity: 1;
  transition: all 0.4s;
  margin: 1.5rem 0;
}

.home .services ul li .more-link{
  display: none;
}

.home .image-gallery{
  margin-bottom: 0!important;
}

.home .image-gallery div{
  display: flex;
  align-items: center;
}

.home .image-gallery div img{
  min-height: 400px;
  object-fit: cover;
}

.home .image-gallery p{
  padding: 2rem;
  display: flex;
  align-items: center;
  height: 100%;
}

@media screen and (min-width: 996px){
  .home .image-gallery div{
    flex-basis: 25%;
    width: 25%;
  }
}

/*
*    Article
*/

.single .post,
.page .page{
  padding-top: 2.5rem;
}

.single .post .padding-y,
.page .page .padding-y{
  padding-top: 5rem!important;
}

.single .post .entry-content .wp-block-column h1,
.single .post .entry-content .wp-block-column h2,
.single .post .entry-content .wp-block-column h3,
.single .post .entry-content .wp-block-column h4,
.single .post .entry-content .wp-block-column h5,
.single .post .entry-content .wp-block-column h6,
.single .post .entry-content .wp-block-column p,
.single .post .entry-content .wp-block-column ul,
.single .post .entry-content .wp-block-column ol,
.single .post .entry-content .wp-block-column form,
.page .content-wrapper{
  padding: 0 15%;
}

.page .alignwide{
  padding-left: 0!important;
  padding-right: 0!important;
}

.single .post .entry-content .wp-block-columns{
  overflow: hidden;
}

.single .post .entry-content .wp-block-columns .wp-block-column:first-of-type,
.page .page .entry-content .wp-block-columns .wp-block-column:first-of-type{
  display: none;
}

@media screen and (min-width: 996px){
  .single .post .entry-content .wp-block-columns .wp-block-column:first-of-type,
  .page .page .entry-content .wp-block-columns .wp-block-column:first-of-type{
    display: block;
    width: 25%;
  }
}


.single .post .entry-content .wp-block-columns .wp-block-column:nth-of-type(2),
.page .page .entry-content .wp-block-columns .wp-block-column:nth-of-type(2){
  padding-top: 5rem;
  padding-bottom: 5rem;
  flex-basis: 100%;
}

@media screen and (min-width: 996px){
  .single .post .entry-content .wp-block-columns .wp-block-column:nth-of-type(2),
  .page .page .entry-content .wp-block-columns .wp-block-column:nth-of-type(2){
    flex-basis: 75%;
  }
}

.single .post .entry-content .wp-block-columns .wp-block-column:nth-of-type(2) .wp-block-image img{
  width: 100%!important;
}

.single .post .wp-block-columns .wp-block-column .wp-block-image:first-of-type{
  height: 400px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.single .post .entry-content .wp-block-image{
  margin: 0;
}

.page .page .entry-content .content-wrapper{
  background-repeat: no-repeat;
  background-size: cover;
}

.single .post .entry-content .wp-block-pullquote,
.page .page .entry-content .wp-block-pullquote{
  height: 100%;
  margin: 0!important;
  padding: 0!important;
  border: none;
}

.single .post .entry-content .wp-block-pullquote blockquote p,
.page .page .entry-content .wp-block-pullquote blockquote p{
  padding: 2rem!important;
  font-size: 1.25rem!important;
}

.single .post .entry-content .wp-block-pullquote blockquote cite,
.page .page .entry-content .wp-block-pullquote blockquote cite{
  padding: 0 2rem!important;
  margin: 0;
  font-style: italic;
}

.single .post .entry-content .wp-block-pullquote blockquote::before,
.page .page .entry-content .wp-block-pullquote blockquote::before{
  content: "";
}

.single .post .entry-content .wp-block-column ul,
.page .page .entry-content .wp-block-column ul{
  list-style-position: outside;
  margin-left: 30px;
}

.single .post .wp-block-gallery{
  margin: 0 auto!important;
}

.single .post .wp-block-gallery ul li{
  margin: 0;
}

.page .wpforms-form{
  padding: 3rem!important;
  background-color: rgba(255, 255, 255, 0.6)
}


@media screen and (min-width: 996px){
  .page .wpforms-form{
    margin: 0 15%;
  }
}

.page .wpforms-field-row,
.page .wpforms-field-medium{
  max-width: 100%!important;
}

/*
*   Footer
*/

footer{
  margin: 0!important;
  max-width: 100%!important;
  padding-bottom: 0!important;
  align-items: center;
  display: block;
  background-color: #81837F;
  color: white;
  text-transform: uppercase;
}

@media screen and (min-width: 996px){
  footer{
    height: 2rem;
  }
}

footer a{
  text-decoration: none;
  color: white!important;
}

footer .footer-navigation{
  display: flex;
  align-items: center;
  float: right;
  height: 100%;
  color: white;
  margin: 0!important;
  font-size: 0.875rem!important;
}

footer .site-info{
  text-align: center;
  height: 100%;
  color: white!important;
  margin: 0!important;
  padding: 0 10px!important;
  border: 0!important;
  font-size: 0.875rem!important;
  line-height: 3rem!important;
}

@media screen and (min-width: 481px){
  footer .site-info{
    float: left;
  }
}

footer .powered-by{
  color: white;
  margin: 0!important;
}

.widget-area{
  display: block!important;
  margin: 0!important;
  padding: 0!important;
  max-width: 100%!important;
}

.widget-area section{
  margin: 0!important;
}

.widget-area section img{
  object-fit: cover;
  height: 250px!important;
}

/*
* Fix
*/

.home .page .entry-content .image-gallery .wp-block-column,
.home .page .entry-content .image-gallery .wp-block-column:nth-of-type(2){
  flex-basis: inherit!important;
}
