/*
Theme Name: bf_aposal
Author: Wolfgang Schellnast
Author URI: https://www.bureauf.com
Description: Responsive Theme for bureau f-
Version: 1.0
*/

* {
  box-sizing: border-box;
}

body {
  font-family: "ivyora-display", serif;
  font-weight: 400;
  font-style: normal;
  color: #000;
}

a {
  text-decoration: none;
  color: inherit;
}

a.button {
  display: inline-block;
  border: 1px solid black;
  text-align: center;
  font-style: italic;
  padding: 10px 3rem;

  margin-top: 2rem;
  font-size: clamp(18px, 3vw, 22px);
  font-style: italic;
}

p {
  font-family: "dm-mono", sans-serif;
  font-weight: 300;
  font-style: normal;
  line-height: 1.5;
}

b,
strong {
  font-weight: bold;
}

h1,
h2 {
  font-size: 50px;
  font-weight: normal;
  margin: 0;
}

h1 {
  color: #fff;
  font-size: clamp(30px, 3vw, 50px);
}

h2:not(.solo) {
  border-bottom: 1px solid;
  padding-bottom: 1rem;
  text-align: left;
}

hr {
  box-sizing: border-box;
  border-style: none;
  border-bottom: 1px solid black;
  width: 100%;
}

.img-fluid {
  width: 100%;
  height: auto;
}

/* HEADER */
/* a.nav-blatt img { */
a.nav-blatt svg {
  position: fixed;
  width: 45px;
  left: 50px;
  top: 50px;
  z-index: 20;
}

button.nav-open {
  display: flex;
  position: fixed;
  z-index: 20;
  top: 50px;
  right: 50px;
  height: auto;
  width: 52px;

  /* button style reset */
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  /* outline: none; */
}

button.nav-close {
  position: fixed;
  width: 52px;
  height: auto;
  right: 50px;
  top: 50px;

  display: flex;
  justify-self: flex-end;

  /* button style reset */
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  /* outline: none; */
}

button.nav-close:hover {
  text-decoration: underline;
}

#main-menu-container {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 500ms ease-in-out,
    visibility 500ms ease-in-out;
  top: 0;
  left: 0;
  height: 100vh; /* Safari Fix */
  height: 100dvh;
  width: 100%;
  background-color: #baba7a;
  padding: 100px 140px;
}

.menu-active nav #main-menu-container {
  visibility: visible;
  opacity: 1;
  z-index: 30;
}

ul#primary-menu {
  margin: 0;
  list-style: none;
  padding: 0;
  display: flex;
  flex-flow: column;
  justify-content: space-between;
  height: 100%;

  counter-reset: menu-counter;
}

ul#primary-menu li {
  border-top: 1px solid black;
  display: flex;
  flex: 1;
  align-items: center;
  font-size: 3rem;

  counter-increment: menu-counter;
}

ul#primary-menu li:last-child {
  border-bottom: 1px solid black;
}

ul#primary-menu li::before {
  font-family: "dm-mono", sans-serif;
  font-weight: bold;
  color: inherit;
  margin-right: 140px;
  margin-top: -0.8rem;
  font-size: 18px;

  content: counter(menu-counter, decimal-leading-zero);
}

ul#primary-menu li a {
  display: flex;
  flex: 1; /* Set clickable area */
}

.main-menu-hover-image {
  opacity: 0;
  position: absolute;
  top: 140px;
  right: 140px;
  height: calc(100vh - 280px);
  width: auto;
  transition: opacity 500ms ease-in-out;
}

@media (max-width: 1023px) {
  #main-menu-container {
    padding: 100px 70px; /* Half */
  }
  .main-menu-hover-image {
    right: 70px;
  }
}
@media (max-width: 768px) {
  #main-menu-container {
    padding: 100px 35px;
  }
  .main-menu-hover-image {
    display: none !important;
  }
  ul#primary-menu li::before {
    margin-right: 60px;
  }
  ul#primary-menu li {
    font-size: 2.5rem;
  }
}

/* Notfall Card */
.notfall-card {
  position: relative;
  margin-top: 100px;

  border: 1px solid black;
  font-family: "dm-mono", sans-serif;
}

.notfall-card div.header {
  border-bottom: 1px solid black;
  padding: 1rem;
}

.notfall-card div.content {
  display: grid;
  grid-template-columns: 1fr auto;
}

.notfall-card div.content > div {
  padding: 1rem;
}

.notfall-card img {
  position: absolute;
  right: 0;
  top: 0;

  width: 20%;
  max-width: 150px;
  height: auto;
  transform: translateX(50%) translateY(-70%);
}

/* Colors */
.blue,
.page-template-page-about footer {
  background-color: #aebfb5;
}

.green,
.page-template-page-themen footer,
.page-template-page-home footer {
  background-color: #baba7a;
}

.brown,
.page-template-page-tcm footer {
  background-color: #c1835d;
}

.beige,
.page-template-page-jobs footer {
  background-color: #fffaee;
}

/* Elements */
header {
  min-height: 100vh; /* Safari Fix */
  min-height: 100dvh;

  background-position: center center; /* Keeps the middle of the image visible */
  background-repeat: no-repeat;
  background-size: cover; /* This is the "responsive" secret sauce */

  padding: 80px 50px 35px;

  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: space-between;

  text-align: center;
}

header div a img {
  width: clamp(45px, 3vw, 60px);
}

img.logo {
  width: 20vw;
  max-width: 361px;
  min-width: 220px;
}

/* Sections */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
}

.two-col .text {
  /* padding: 100px 145px 90px; */
  padding: 100px clamp(35px, 7vw, 145px) 90px;
  display: flex;
  flex-flow: column;
  justify-content: space-between;
}

.two-col .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.illu {
  display: flex;
  /* justify-self: flex-end; */
  margin-left: auto;
  margin-top: 10%;
  margin-right: 35px;
  margin-bottom: 1rem;
  width: 14%;
  min-width: 40px;
}

.illu-apo {
  width: 12%;
}

.illu-apolife {
  margin-top: 18%;
}

/* HOME THEMEN SLIDER */
section.themen-slider {
  padding: 0 0 85px;
  text-align: center;
}

section.themen-slider h2 {
  padding: 85px 0;
}

section.themen-slider .owl-carousel .item {
  text-align: center;
  position: relative;
  color: #fff;
}

.themen-slider .item .title {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;

  font-size: 2rem;
}

/* .themen-slider .item > a {
  position: absolute;
  bottom: 35px;
  text-align: center;
  left: 50%;
  transform: translateX(-50%);
  font-style: italic;
  font-size: 20px;
} */

.themen-slider .item p {
  position: absolute;
  margin: 0;
  bottom: 35px;
  text-align: center;
  left: 50%;
  transform: translateX(-50%);
  font-style: italic;
  font-size: 20px;
  font-family: "ivyora-display", serif;
}

.themen-slider .item img {
  object-fit: cover;
  max-height: 60vh;
}

/* HOME AKTUELLES SLIDER */
section.aktuelles-slider {
  min-height: 100dvh;
}

.aktuelles-slider .two-col {
  padding: 140px;
}

.aktuelles-slider .two-col .text {
  padding: unset;
  padding-left: 140px;
}

.aktuelles-slider .owl-carousel .owl-item img {
  height: auto;
}

/*
.owl-carousel .owl-item img {
  height: auto;
} */

.aktuelles-slider .mobile {
  display: none !important;
}

.owl-nav .owl-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateX(-50%);
  font-size: 3rem !important;
  left: 70px;
}

.owl-nav .owl-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateX(-50%);
  font-size: 3rem !important;
  right: 70px;
}

/* HOME */
section.footer-home {
  display: flex;
  height: calc(100vh - 239px); /* 239 == FooterHeight */
}

section.footer-home img {
  object-fit: cover;
}

/* ABOUT */
.two-col.about-top {
  height: unset;
}

.two-col.about-top .img img {
  width: unset;
  height: unset;
  object-fit: unset;
  object-position: unset;
}

/* Collage mit Kreistext */
.img-collage-kreis {
  margin-top: 100px;
  position: relative;
}

.img-collage-kreis .overlay-base {
  padding-left: clamp(35px, 6vw, 145px);
  margin-bottom: clamp(35px, 3vw, 145px);
}

img.circle-overlay {
  position: absolute;
  width: 20%;
  /* max-width: 150px; */
  height: auto;
  transform: translateX(-50%) translateY(-60%);
}

@media (max-width: 768px) {
  .img-collage-kreis {
    margin-top: unset;
  }
  .img-collage-kreis .overlay-base {
    padding-left: 0;
    padding-right: 15%;
    margin-bottom: 0;
  }
  .img-collage-kreis img.circle-overlay {
    width: 33%;
    transform: translateX(-100%) translateY(-70%);
  }
}

.two-col.about-top .img-collage {
  padding: 100px clamp(35px, 6vw, 145px) 5vw clamp(35px, 6vw, 145px);
  position: relative;
}

.two-col.about-top .img-collage img.illu-about {
  position: absolute;
  right: clamp(35px, 6vw, 145px);
  width: 5vw;
  min-width: 45px;
  margin-top: 2vw;
}

@media (max-width: 768px) {
  .two-col.about-top .img-collage img.illu-about {
    width: 12vw;
  }
}

.two-col.about-top .img-collage .container {
  position: relative;
  width: 75%;
  margin-bottom: 40%;
}

.two-col.about-top .img-collage img.base {
  width: 100% !important;
  display: block;
}

.two-col.about-top .img-collage img.overlay {
  position: absolute;
  width: 59% !important;
  bottom: 0;
  right: 0;
  transform: translate(44%, 75%);
  z-index: 2;
}

/* aösdlk */
/* .container {
  position: relative;
  width: 75%;
  margin-bottom: 40%;
}

img.primary {
  width: 100% !important;
  display: block;
}

.overlay {
  position: absolute;
  width: 59% !important;
  bottom: 0;
  right: 0;
  transform: translate(44%, 75%);
} */

/* end */

.about-top .img-mobile {
  display: none;
}

.team {
  padding-bottom: 150px;
}

.team .img-caption {
  font-family: "dm-mono", sans-serif;
  margin-top: 1rem;
  font-size: clamp(16px, 2vw, 18px);
  text-align: center;
  line-height: 1.5;
}

.team .img-caption span {
  font-weight: bold;
}

.team h2 {
  padding: 90px 0;
  text-align: center;
  border: none;
}
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 6vw;
  padding: 0 7vw;
}

.team-grid img {
  width: 100%;
  height: auto;
}

/* THEMEN */
.page-template-page-themen h2 {
  margin-bottom: 2rem;
}
.page-template-page-themen .two-col {
  min-height: unset;
  align-items: center;

  position: relative;
}

.page-template-page-themen .two-col .img {
  padding: 6vw 0 6vw 6vw;
}

.page-template-page-themen .two-col .text {
  position: relative;
}

.page-template-page-themen main section.two-col:nth-child(even) .text {
  order: 1;
}

.page-template-page-themen main section.two-col:nth-child(even) .img {
  order: 2;

  padding: 6vw 6vw 6vw 0;
}

.illu-themen-1 {
  /* width: 100px; */
  width: clamp(56px, 6vw, 100px);
  height: auto;
  position: absolute;
  right: 0;
  bottom: 0;
  margin-right: 11%;
}

.illu-themen-2 {
  width: clamp(56px, 4vw, 75px);
  height: auto;
  position: absolute;
  top: 0;
  left: 34%;
  margin-right: 20%;
}

.illu-themen-3 {
  width: clamp(56px, 5vw, 91px);
  height: auto;
  position: relative;
  margin-left: auto;
  margin-top: -20%;
}

@media (max-width: 768px) {
  .illu-themen-1 {
    width: 56px;
    bottom: -7%;
    margin-right: 15%;
    z-index: 1;
  }
  .illu-themen-2 {
    left: 14%;
    width: 40px;
  }
  .illu-themen-3 {
    margin-right: 10%;
  }
}

/* TCM */
.page-template-page-tcm main section.two-col:nth-child(odd) .text {
  order: 1;
}

.page-template-page-tcm main section.two-col:nth-child(odd) .img {
  order: 2;
}

/* JOBS */
.page-template-page-jobs h1 {
  padding: 0 5%;
}

section.jobs-slider {
  min-height: 100svh;
  padding: 170px 25%;
  background-color: #aebfb5;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
}

section.jobs-slider h2 {
  border-bottom: 0;
  text-align: center;
}

section.jobs-slider .slider-container {
  padding: 35px;
  position: unset;
}

section.jobs-slider .owl-carousel .owl-stage {
  display: flex !important;
}
section.jobs-slider .owl-carousel .owl-item {
  padding-left: 1px;
  padding-right: 1px;
}

section.jobs-slider .inner {
  padding: 35px;
  /* border: 1px solid black; */
  box-shadow: inset 0 0 0 1px black;
  margin: 1px;
  min-height: 48vh;
  display: flex;
  flex-flow: column;
  justify-content: space-between;
  flex-grow: 1;
}

section.jobs-slider .inner p {
  text-align: center;
  padding: 0 10%;
}

section.jobs-slider .item {
  display: flex;
  flex-flow: column;
  justify-content: space-between;

  height: 100%;
}

section.jobs-slider .buttons {
  display: flex;
  /* border-width: 0 1px 1px 1px; */
  /* border-color: black;
  border-style: solid; */
  box-shadow: inset 0 0 0 1px black;
  margin: -2px 1px 1px 1px;
}

section.jobs-slider .buttons a {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  font-size: 22px;
  font-style: italic;
  font-family: "ivyora-display", serif;
}

section.jobs-slider .buttons a:nth-child(1) {
  border-right: 1px solid black;
}

/* OWL ARROWS */
/* Target the buttons */
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
  width: 35px;
  height: 35px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  text-indent: -9999px; /* Hides the default "next/prev" text */
  transform: translateY(-50%);
}

/* Left Arrow */
.owl-carousel .owl-nav button.owl-prev {
  background-image: url("images/icon-arrow_left.svg");
  left: 50px;
}

/* Right Arrow */
.owl-carousel .owl-nav button.owl-next {
  background-image: url("images/icon-arrow_right.svg");
  right: 50px;
}

/* END OWL ARROWS */

@media (max-width: 768px) {
  section.jobs-slider {
    padding: 90px 35px 180px;
    min-height: unset;
  }
  section.jobs-slider .slider-container {
    padding: 18px;
  }

  section.jobs-slider .inner {
    padding: 18px;
    flex-grow: 1;
  }
  section.jobs-slider .inner p {
    padding: 0;
  }
  section.jobs-slider .owl-nav {
    position: relative;
    background-color: transparent;
    top: 80px;
  }

  .owl-carousel .owl-nav button.owl-next {
    right: 30%;
  }
  .owl-carousel .owl-nav button.owl-prev {
    left: 30%;
  }
}

/* PAGE DEFAULT - datenschutz impressum */

.page-template-page-default h1 {
  color: #000;
  border-bottom: 1px solid black;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.page-template-page-default header {
  min-height: unset;
}

.one-col {
  padding: 0 clamp(35px, 6vw, 145px) 75px;
}

.page-template-page-default {
  background-color: #c1835d;
}

.page-template-page-default footer {
  background-color: #fffaee;
}

/* Datenschutz */
.page-template-page-default.page-id-3 {
  background-color: #aebfb5;
}
.page-template-page-default.page-id-3 footer {
  background-color: #fffaee;
}

/* Impressum */
.page-template-page-default.page-id-15 {
  background-color: #c1835d;
}
.page-template-page-default.page-id-15 footer {
  background-color: #fffaee;
}

/* AGB */
.page-template-page-default.page-id-17 {
  background-color: #fffaee;
}
.page-template-page-default.page-id-17 footer {
  background-color: #aebfb5;
}

/* Widerrufsrecht */
.page-template-page-default.page-id-21 {
  background-color: #baba7a;
}
.page-template-page-default.page-id-21 footer {
  background-color: #fffaee;
}

/* AGB */
.page-template-page-default.page-id-21 {
  background-color: #fffaee;
}
.page-template-page-default.page-id-21 footer {
  background-color: #aebfb5;
}

@media (max-width: 768px) {
  .page-template-page-default h1 {
    margin-top: 4rem;
  }
}

/* FOOTER */
footer {
  display: flex;
  padding: 40px 0 30px;

  /* font-size: 24px; */
  font-size: clamp(16px, 1.3vw, 24px);
}

footer div.menu-container {
  display: flex;
  flex: 1;
  align-items: center;

  /* margin: 0 140px;*/
  margin: 0 clamp(35px, 6vw, 145px);
}

footer div:not(.menu-container) {
  text-align: center;
  width: auto;
}

footer div:not(.menu-container) img {
  width: 45%;
  max-width: 150px;
  min-width: 100px;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  justify-content: space-between;
  flex: 1;
}

@media (max-width: 768px) {
  h2 {
    font-size: 30px;
  }

  header {
    min-height: 100vh; /* SAFARI FIX */
    min-height: 100svh;
    padding: 80px 35px 35px;
    position: relative;
    z-index: 10;
  }

  img.logo {
    /* width: 80%; */
    margin-top: 70px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }
  .two-col > .text {
    order: -1;
    padding: 90px 35px;

    min-height: 100svh;
  }

  #tcm .two-col > .text {
    min-height: unset;
  }

  #tcm .two-col > .text h2 {
    margin-bottom: 2rem;
  }

  .two-col a.button {
    display: block;
    margin-right: 35px;
    margin-left: 35px;

    margin-top: 4.5rem;
  }

  button.nav-open,
  button.nav-close {
    right: 35px;
    top: 30px;
  }

  a.nav-blatt svg {
    left: 35px;
    top: 30px;
    width: 40px;
    z-index: 9;
  }

  /* Home */
  .notfall-card {
    margin-top: 50px;
  }
  .notfall-card div.content {
    grid-template-columns: 1fr;
  }
  .notfall-card img {
    transform: translateY(-50%);
    top: 0;
    right: 0;
    width: 33%;
  }
  /* Aktuelles - Slider */
  section.aktuelles-slider {
    min-height: unset;
  }

  .aktuelles-slider .two-col {
    padding: 90px 35px 35px;
    min-height: unset;
  }
  .aktuelles-slider .two-col .text {
    padding-left: 0;
    min-height: unset;
  }
  .aktuelles-slider .owl-nav .owl-prev {
    position: relative;
    top: unset;
  }
  .aktuelles-slider .owl-nav .owl-next {
    top: unset;
  }

  .aktuelles-slider img.mobile {
    display: flex !important;
    margin: 2rem 0;
  }

  .aktuelles-slider img.desktop {
    display: none;
  }

  .aktuelles-slider .owl-nav {
    display: flex;
    margin-top: 2rem;
    padding-bottom: 3rem;
  }

  /* THEMEN */
  .page-template-page-themen h2 {
    margin-bottom: 1rem;
  }

  .page-template-page-themen .two-col .img,
  .page-template-page-themen .two-col .img.img-right,
  .page-template-page-themen main section.two-col:nth-child(even) .img {
    padding: 35px;
  }

  .page-template-page-themen .two-col > .text {
    min-height: unset;
    padding-bottom: 0;
    justify-content: flex-start;

    padding-top: 80px;
  }

  /* TCM */

  /* TEAM */
  .about-top.two-col > .text {
    min-height: unset;
    padding-bottom: 0;
  }
  .team-grid {
    grid-template-columns: 1fr;
    grid-gap: 3.15rem;
  }

  .about-top .img-mobile {
    display: block;
    padding: 185px 35px 100px;
  }

  .about-top .img-desktop {
    display: none;
  }

  .about-02.two-col > .text {
    order: 1;
  }

  /* FOOTER */
  footer {
    flex-flow: wrap;
    padding: 35px;
    font-size: 16px;
  }

  .footer-menu {
    flex-flow: column;
    flex: 1 1 50%;
  }

  .footer-menu li {
    margin-bottom: 1rem;
  }

  ul#footer-2 li {
    text-align: right;
  }

  footer div.menu-container {
    margin: 0;
    order: -1;
  }

  footer div:not(.menu-container) {
    order: 1;
    flex: 1 1 100%;
    margin-top: 35px;
  }
}

/* ICON COLOR CHANGE */
.color-change {
  color: #fffaee; /* set default color */
}

.color-change svg path {
  fill: currentColor !important;
  /* transition: fill 0.3s ease; */
}
.color-change svg line {
  stroke: currentColor !important;
  /* transition: fill 0.3s ease; */
}

body.is-dark-detected .color-change {
  color: #000000; /* Dark Color */
}

.page-template-page-default .burger-icon line {
  stroke: black;
}
