/*
Theme Name: bf_gu
Author: Wolfgang Schellnast
Author URI: https://www.bureauf.com
Description: Responsive Theme for bureau f
Version: 1.1
*/

* {
  box-sizing: border-box;
}

body {
  font-family: acumin-variable, sans-serif;
  font-size: 20px;
  color: #000;
  background-color: #f5f3eb;
}

h1 {
  font-size: clamp(30px, 4vw, 60px);
  line-height: 1;
  font-weight: normal;
  font-family: alverata, serif;

  margin: 0;
}

h2 {
  font-size: clamp(15px, 2.5vw, 40px);
  font-weight: normal;
  margin: 0;
  font-family: alverata, serif;
}

h3 {
  font-size: clamp(30px, 3.5vw, 3em);
  font-weight: normal;
  margin: 0;
  font-family: alverata, serif;
}

h4 {
  font-size: clamp(15px, 2vw, 1.5em);
  font-weight: normal;
  margin: 0 0 1em;
  text-transform: uppercase;
  font-family: alverata, serif;
}

h5,
.h5-title {
  margin: 0;
  font-size: clamp(15px, 2vw, 1.5em);
  line-height: 1.2;
  color: #adbec5;
  font-weight: normal;
  font-family: alverata, serif;
}

a {
  color: inherit;
  text-decoration: none;
}

section.therapie p a,
section.info p a,
a.underline {
  text-decoration: underline;
}

p {
  font-size: clamp(13px, 1.3vw, 20px);
  margin: 2em 0;
  line-height: 1.5;
}

p.big {
  font-size: clamp(18px, 3vw, 2em);
}

.mid {
  margin: 0;
  font-size: clamp(18px, 2vw, 1.5em);
  line-height: 1.3;
}

pre {
  font-family: acumin-variable, sans-serif;
  line-height: 1.5;
  margin: 2em 0;
}

.logo {
  display: flex;
  font-size: clamp(28px, 4vw, 74px);
  line-height: 1;
  color: #fff;
  font-family: alverata, serif;
  text-transform: uppercase;
  align-items: center;
  gap: 0.3em;
  letter-spacing: 0.1em;
}

span.small {
  font-size: clamp(18px, 3vw, 36px);
  letter-spacing: 0.1em;
}

.sub_title {
  display: block;
  font-size: clamp(8px, 1vw, 13px);
  letter-spacing: 0.3em;
  line-height: 1.3;

  text-transform: uppercase;
  color: #fff;
}

/* Helper */
.img-fluid {
  width: 100%;
  height: auto;
}

/* MENU */
ul.main-menu {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  justify-content: space-between;

  grid-gap: 1em;
}

ul.main-menu a {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.3em;

  font-size: clamp(15px, 1.1vw, 20px);
  white-space: nowrap;
}

/* TINY HEADER */
.tiny-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
  background-color: #d6dfe2;
  padding: 0 60px;

  position: sticky;
  top: 0;
  z-index: 99;
  transition: all 300ms ease-in-out;
}

.page-template-page-home .tiny-header {
  opacity: 0;
  visibility: hidden;
}

body.scrolled .tiny-header {
  z-index: 99;
  opacity: 1;
  visibility: visible;
  transition: all 300ms ease-in-out;
}

.tiny-header > div {
  flex: 1;
}

.tiny-header > div:nth-child(1) {
  display: flex;
  align-items: center;
  grid-gap: 1em;
}

.tiny-header .sub_title {
  font-size: 9px;
  color: #000;
  line-height: 1.2;
  margin-top: 5px;
}

.tiny-header a.logo {
  font-size: clamp(1.5em, 3vw, 2em);
  color: #000;
  margin: 0;

  white-space: nowrap;
}
.tiny-header a.logo span.small {
  font-size: clamp(18px, 2vw, 25px);
  letter-spacing: 0.1em;
}

.tiny-header ul.main-menu a {
  color: #000;
}

.page-template-page-home .tiny-header {
  position: fixed;
  width: 100%;
  background-color: #f5f3eb;
  color: #adbec5;
}

.page-template-page-home .tiny-header ul a,
.page-template-page-home .tiny-header a.logo,
.page-template-page-home .tiny-header .sub_title {
  color: #adbec5;
}

/* SECTIONS */
/* section top */

section.top {
  min-height: 100vh; /* Fallback for browsers that do not support Custom Properties */
  min-height: calc(var(--vh, 1vh) * 100);

  background-color: #adbec5;
  padding: 50px 60px;

  display: flex;
  flex-flow: column;
  justify-content: space-between;

  position: relative;
  z-index: 20;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  background-color: #adbec5;
}

.hero-carousel .owl-stage-outer,
.hero-carousel .owl-stage,
.hero-carousel .owl-item,
.hero-carousel .item {
  height: 100%;
}

.hero-carousel .item {
  background-size: cover;
  background-position: center center;
}

.hero-carousel-mobile {
  display: none;
}

.content-carousel {
  width: 100%;
  overflow: hidden;
}

.hero-carousel .owl-animated-out,
.hero-carousel .owl-animated-in {
  animation-duration: 700ms;
  animation-fill-mode: both;
}

.hero-carousel .fadeIn {
  animation-name: hero-fade-in;
}

.hero-carousel .fadeOut {
  animation-name: hero-fade-out;
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes hero-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .hero-carousel-desktop {
    display: none !important;
  }

  .hero-carousel-mobile {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel .owl-stage {
    transition: none !important;
  }
}

section.top .header {
  display: flex;
}

section.top .header > div {
  flex: 1;
}

section.top .blase {
  width: 50%;
  align-self: flex-end;

  background-color: #adbec5;
  padding: 2em 2.5em;
  border-radius: 2em;
}

a.button {
  font-size: clamp(13px, 1.5vw, 20px);
  white-space: nowrap;

  display: inline-block;
  text-transform: uppercase;
  color: #000;
  background-color: #f5f3eb;
  padding: 1em 2em;
  border-radius: 0.25em;
  letter-spacing: 0.2em;
}

/* section about */
section.about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;

  /* 
  padding: 100px 215px 0;
  column-gap: 190px;
  */
  padding: 100px 11.5% 3em;
  column-gap: 10%;
  background-color: #f5f3eb;
}

section.about > div:first-child {
  padding-top: 15%;
}

section.about > div p:first-of-type {
  margin-top: 60px;
}

section.about .img-container,
section.info .img-container {
  padding-left: 1em;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

section.about h3,
section.therapie h3 {
  padding-bottom: 40px;
}

/* section about - bubbles */
section.bubbles {
  /* padding: 0 215px 100px; */
  padding: 0 11.5% 100px;

  display: flex;
  grid-gap: 2em;
  background-color: #f5f3eb;
}

.heading-bubble {
  background-color: #adbec5;
  padding: 1.5em 4em;
  border-radius: 2em;
  position: absolute;
  text-align: center;
  top: 0;
  right: 0;
  margin-top: -8%;
  margin-right: -22%;
}

.heading-bubble h4 {
  margin-bottom: 0;
}

.bubble {
  flex: 1;
  background-color: #d6dfe2;
  padding: 2em;
  border-radius: 2em;
  align-self: end;
}

.bubble_01 {
  margin-bottom: 5em;
  position: relative;
}

.bubble > .info:first-of-type {
  border-top: 1px solid #adbec5;
}

.bubble .info {
  display: flex;
  border-bottom: 1px solid #adbec5;
  padding: 1em 0;

  font-size: clamp(13px, 1.3vw, 20px);
}

.bubble .info > div {
  flex: 2;
  line-height: 1.5;
}

.bubble .info > div:first-child {
  flex: 1;
}

/* section schwerpunkte */

section.schwerpunkte {
  background-color: #adbec5;
  /* padding: 100px 215px; */
  /* padding: 100px 8%; */
  padding: 100px;
}

section.schwerpunkte h4 {
  margin-bottom: 2em;
}

section.schwerpunkte h3 {
  text-align: center;
  margin-bottom: 100px;
}

section.schwerpunkte p {
  font-size: clamp(13px, 1.1vw, 18px);
}

.schwerpunkte .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 40px;
}

@media (max-width: 1500px) {
  section.schwerpunkte {
    padding: 100px 60px;
  }
}

@media (max-width: 1200px) {
  .schwerpunkte .grid {
    grid-template-columns: 1fr;
  }
  section.schwerpunkte {
    padding: 100px 60px;
  }
}

.schwerpunkte .grid > div {
  display: flex;
  max-height: unset;
}

.grid .text {
  padding: 2em;
  border-radius: 2em 0 0em 2em;
  width: 55%;
  min-width: 300px;
}

.grid .illu {
  /* padding: 1em; */
  border-radius: 0 2em 2em 0;
  width: 45%;

  display: flex;
  align-items: center;
  justify-content: center;
}

.grid .illu img {
  max-height: unset;
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 0 20px 20px 0;
}

/* Divs: 1 & 2 - 5 & 6 etc. */
.schwerpunkte .grid > div:nth-child(4n-2) .illu,
.schwerpunkte .grid > div:nth-child(4n-3) .illu {
  background-color: #d6dfe2;
}

.schwerpunkte .grid > div:nth-child(4n-2) .text,
.schwerpunkte .grid > div:nth-child(4n-3) .text {
  background-color: #f5f3eb;
  hyphens: auto;
}

/* Divs: 3 & 4 - 7 & 7 etc. */
.schwerpunkte .grid > div:nth-child(4n-1) .illu,
.schwerpunkte .grid > div:nth-child(4n) .illu {
  background-color: #f5f3eb;
}
.schwerpunkte .grid > div:nth-child(4n-1) .text,
.schwerpunkte .grid > div:nth-child(4n) .text {
  background-color: #d6dfe2;
  hyphens: auto;
}

/* section therapie */
section.therapie {
  display: grid;
  grid-template-columns: 1fr 1fr;

  min-height: calc(var(--vh, 1vh) * 100);
}

section.therapie > div:nth-child(1) {
  position: relative;
}

section.therapie .therapy-carousel .owl-stage-outer,
section.therapie .therapy-carousel .owl-stage,
section.therapie .therapy-carousel .owl-item,
section.therapie .therapy-carousel .item {
  height: 100%;
}

section.therapie .therapy-carousel .item {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  position: relative;
}

section.therapie .therapy-carousel .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

section.therapie .heading-bubble {
  margin-top: 0;
  margin-left: 0;
  top: 72%;
  left: -7%;
  z-index: 1;
  margin-right: unset;
  right: unset;
}

section.therapie > div:nth-child(2) {
  padding: 100px 17% 40px 18%;
  background-color: #d6dfe2;
  position: relative;
}

/* section info */
section.info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 100px 11.5%;

  background-color: #f5f3eb;
}

section.info > div:nth-child(1) {
  padding-top: 15%;
}

section.info > div:nth-child(2) {
  padding-left: 170px;
}

.info-list {
  margin-top: 5em;
}

.info-list .item {
  position: relative;
}

.info-list .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #adbec5;
  /* padding: 1em 0; */
}

.info-list .head h5,
.info-list .head .h5-title {
  padding: 1em 0;
}

.info-list .head img {
  height: 2em;
  width: auto;
}

.info-list .item.active img {
  transform: rotate(180deg);
}

.info-list .head:hover {
  cursor: pointer;
}

.info-list .item .list-content {
  display: none;
  visibility: hidden;
  height: 0;
  min-height: 0;
  margin-top: -100%;
  transition: all 500ms ease-in-out;
}

.info-list .item.active .list-content {
  display: block;
  visibility: visible;
  height: auto;
  margin-top: 0;
}

.info-list .item.active p {
  margin: 0;
  padding: 1em 0;
  border-bottom: 1px solid #adbec5;
}

/* section termin */
section.termin {
  padding: 100px;
  text-align: center;
  background-color: #d6dfe2;
}

a.mail {
  white-space: nowrap;
}

/* PAGE - Impressum/DSGVO */
section.default-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 0;

  padding: 30px 60px 60px;
  background-color: #d6dfe2;
}

section.default-page div:nth-child(2) p:first-of-type,
section.default-page div:nth-child(4) p:first-of-type {
  margin-top: 0;
}

.page-template-page-impressum section.default-page div:nth-child(1) {
  display: flex;
  flex-flow: column;
  justify-content: space-between;
}

.page-template-page-datenschutz h1,
.page-template-page-impressum h1 {
  margin-bottom: 30px;
}

table {
  margin: 2em 0;
  font-size: clamp(13px, 1.3vw, 20px);
}

tr > td:nth-child(1) {
  padding-right: 2em;
}

/* FOOTER */
footer {
  display: grid;
  grid-template-columns: 1.5fr 2fr 2fr;
  grid-template-rows: min-content 1fr;
  padding: 60px 20px 60px 60px;
  background-color: #adbec5;
  min-height: 540px;
}

footer h3 {
  line-height: 1;
}

footer .bottom {
  align-self: flex-end;
}

footer .bottom {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: clamp(15px, 1.1vw, 20px);
}

.logo-footer {
  font-family: alverata, serif;
  font-size: clamp(6.5em, 10vw, 7.5em);
  line-height: 77%;
}

footer > div:nth-child(2) {
  display: flex;
  flex-flow: column;
  /* justify-content: space-around; */
  grid-gap: 1rem;

  font-size: clamp(15px, 1.5vw, 1em);
}

footer > div img {
  padding: 0 9rem 0 0;
}

.bottom-menu {
  display: grid;
  grid-column: span 2;
  grid-template-columns: subgrid;
}

/* MEDIA QUERIES */
.toggle-container {
  display: flex;
}

br.br-mobile {
  display: none;
}

.menu-container {
  display: none;
}

.toggle-container {
  flex: unset !important;
  display: flex;
}

.toggle-container img {
  height: 30px;
  width: auto;
}

/* MENU ACTIVE */

body.menu-active .tiny-header {
  background-color: #d6dfe2;
  z-index: 100;
}

body.menu-active .tiny-header a.logo {
  color: #000;
}

body.menu-active .tiny-header .sub_title {
  display: block;
  color: #000;
}

body.menu-active .tiny-header > div:nth-child(1) {
  display: flex;
  /* flex-flow: column;
  align-items: flex-start; */
  align-items: center;
  grid-gap: 1em;
}

body.menu-active a.toggle-menu img.menu-close {
  display: block;
}

body.menu-active a.toggle-menu img.menu-open {
  display: none;
}

body.menu-active .tiny-header .menu-container {
  display: block;
  position: fixed;
  top: 76px;
  left: 0;
  width: 100%;
  padding: 0px 60px 20px;
  background-color: #d6dfe2;
  border-radius: 0 0 20px 20px;

  transform: scale(1);
}

body.menu-active .tiny-header ul {
  flex-flow: column;
  grid-gap: 0;
}

body.menu-active .tiny-header ul li {
  border-bottom: 1px solid #adbec5;
  padding: 1em 0;
  letter-spacing: normal;
}

body.menu-active .tiny-header ul li:first-of-type {
  border-top: 1px solid #adbec5;
}

body.menu-active.page-template-page-home .tiny-header ul a {
  color: #000;
  font-size: 19px;
  letter-spacing: 3.8px;
}

body.menu-active.page-template-page-home .tiny-header {
  z-index: 99;
  opacity: 1;
  visibility: visible;
  transition: all 300ms ease-in-out;
}

a.toggle-menu {
  position: absolute;
  right: 60px;
  top: 25px;
}

a.toggle-menu img.menu-close {
  display: none;
}

.header .toggle-container a.toggle-menu {
  top: 60px;
}

@media (max-width: 1550px) {
  .heading-bubble {
    padding: 1em 2.5em;
    margin-right: -26%;
  }
}

@media (max-width: 1280px) {
  section.top {
    padding: 25px 30px;
  }

  .tiny-header {
    padding: 0 30px;
  }

  a.toggle-menu {
    right: 30px;
  }

  .header .toggle-container a.toggle-menu {
    top: 25px;
  }

  .toggle-container img {
    height: 20px;
    width: auto;
  }

  body.menu-active .tiny-header .menu-container {
    padding: 0 30px 20px;
  }

  .tiny-header .sub_title {
    font-size: 8px;
  }

  footer {
    padding-left: 30px;
    padding-bottom: 30px;
    min-height: 420px;
  }
}

.mobile-block {
  display: none;
}

@media (max-width: 767px) {
  .mobile-none {
    display: none;
  }

  .mobile-block {
    display: block;
  }

  .logo {
    margin-bottom: 0;
    line-height: 1.2;
  }

  .sub_title,
  .tiny-header .sub_title {
    margin-top: 10px;
  }

  a.toggle-menu {
    right: 20px;
  }

  body.menu-active .tiny-header > div:nth-child(1) {
    flex-flow: column;
    align-items: flex-start;
    grid-gap: 0;
  }

  body.menu-active .tiny-header .menu-container {
    padding: 0 20px 20px;
    top: 74px;
  }

  /* menu */
  .menu-container,
  .tiny-header .sub_title {
    display: none;
  }

  .tiny-header a.logo {
    font-size: clamp(28px, 4vw, 74px);
  }

  .tiny-header {
    padding: 20px;
    height: unset;
  }

  /* top */
  section.top {
    padding: 20px;
    min-height: unset;
    height: 100svh;
  }

  section.top .blase {
    width: 100%;
    padding: 20px;
    border-radius: 20px;

    margin-bottom: -15rem; /* offset for top text field overflow */
  }

  /* about */
  section.about {
    grid-template-columns: 1fr;
    grid-gap: 2em;
    padding: 0 20px 2em;

    margin-top: 15rem; /* offset for top text field overflow */
  }

  section.about > div p:first-of-type {
    margin-top: 0;
  }

  section.about .img-container {
    padding-left: unset;
  }

  section.bubbles {
    flex-flow: column;
    grid-gap: 20px;
    padding: 3em 20px;
  }

  .bubble {
    border-radius: 20px;
  }
  .bubble_01 {
    padding-top: 3em;
    margin-bottom: unset;
  }

  .heading-bubble {
    border-radius: 20px;
    right: 0;
    left: 0;
    width: 70%;
    margin: 0 auto;
    margin-top: -15%;
  }

  /* schwerpunkte */
  section.schwerpunkte {
    padding: 100px 20px;
  }

  .schwerpunkte .grid {
    grid-template-columns: 1fr;
    grid-gap: 20px;
  }

  .schwerpunkte .grid > div {
    max-height: unset;
    flex-flow: column;
  }

  .grid .text {
    order: 2;
    width: 100%;
    border-radius: 0 0 1em 1em;
    padding: 20px;
  }

  .grid .illu {
    order: 1;
    width: 100%;
    border-radius: 1em 1em 0 0;
    /* padding: 0 1em; */
    max-height: unset;
  }

  .grid .illu img {
    border-radius: 20px 20px 0 0;
  }

  .grid p {
    margin: 1em 0 0;
  }

  /* therapie */
  section.therapie {
    grid-template-columns: 1fr;
    padding: 0;
  }

  section.therapie > div:nth-child(2) {
    padding: 100px 20px 30px;
  }
  section.therapie h3 {
    padding-bottom: 15px;
  }
  section.therapie .heading-bubble {
    top: 0;
    left: unset;
    right: 20px;
    margin-top: -32px;
    width: 50%;
    max-width: 250px;
    padding: 1em 1em;
  }

  /* info */
  section.info {
    grid-template-columns: 1fr;
    padding: 0px 20px 60px;
  }

  section.info > div:nth-child(2) {
    padding-left: unset;
    margin-top: 60px;
  }

  .info-list {
    margin-top: 30px;
  }

  .info-list .head img {
    height: 1em;
  }

  /* termin */
  section.termin {
    padding: 60px 20px 20px;
  }

  br.br-mobile {
    display: block;
  }

  /* footer */
  footer {
    grid-template-columns: 1fr;
    padding: 30px 20px 20px;
  }

  footer > div:nth-child(2) {
    padding: 60px 0;
  }

  footer > div:nth-child(3) {
    padding-bottom: 60px;
  }

  footer > div img {
    padding: 2rem 3rem 1rem;
  }

  footer .bottom {
    font-size: 13px;
  }

  .bottom-menu {
    display: grid;
    grid-column: span 1;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 1em;
  }

  /* default-page */
  section.default-page {
    padding: 45px 20px;
    grid-template-columns: 1fr;
  }

  table {
    font-size: 13px;
  }
}

/* FONTS */
@font-face {
  font-family: "liberation";
  src: url("fonts/LiberationMono-Regular-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "cringe";
  src:
    url("fonts/BNCringeSans-Regular.woff") format("woff"),
    url("fonts/BNCringeSans-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}
