/*
Theme Name: bf_takt
Author: Wolfgang Schellnast
Author URI: https://www.bureauf.com
Description: Responsive Theme for bureau f
Version: 1.0
*/

/* Fonts */
@import url("https://use.typekit.net/bsk8edt.css");

* {
  box-sizing: border-box;
}

body,
html {
  font-family: "helvetica-neue-lt-pro", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  color: #000;

  background-color: #f5f5f5;
}

a {
  text-decoration: none;
  color: inherit;
}

h1 {
  font-size: clamp(52px, 5vw, 5rem);
  font-family: "obviously", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(38px, 4.5vw, 4rem);
  font-family: "obviously", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;

  margin: 0;
}

h3 {
  font-size: clamp(22px, 2vw, 1.5rem);
  font-family: "obviously", sans-serif;
  font-weight: 700;
  text-transform: uppercase;

  margin: 0;
}

h4 {
  margin-top: 0;
  margin-bottom: 1.15rem;
  font-size: clamp(18px, 2vw, 1.5rem);
  font-weight: normal;
  line-height: 1.17;
}

p.big {
  font-size: clamp(25px, 2.5vw, 2.25rem);
  line-height: 1.25;
  margin: 0;
}

p.small {
  font-size: clamp(14px, 2vw, 1rem);
  margin: 0.5rem 0 0;
  font-weight: normal;
}

p {
  font-size: clamp(18px, 2.5vw, 1.5rem);
  line-height: 1.175;
  margin: 2rem 0;
}

/* Helper */
.img-fluid {
  width: 100%;
  height: auto;
}

.ob {
  font-family: "obviously", sans-serif;
  font-weight: 700;
  font-style: normal;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: #c0dcfa;

  position: sticky;
  top: 0;
}

header .logo img {
  height: 50px;
  width: auto;
}

.menu-toggle {
  display: flex;
}

.menu-toggle img {
  height: 30px;
  width: auto;
}

.page-template-page-home header {
  position: fixed;
  z-index: 10;
  width: 100%;
}

/* MAIN MENU */
nav.mainmenu .menu-toggle {
  position: absolute;
  right: 30px;
  top: 25px;
}

nav.mainmenu {
  display: flex;
  flex-flow: column;
  justify-content: space-between;

  min-width: 35vw;
  height: 100vh;
  padding: 5rem 1rem 1rem;

  background-color: #d2f7a9;

  position: fixed;
  z-index: 10;
  top: 0;
  right: 0;
  transform: translateX(100%);

  transition: transform 500ms ease;
}

.menu-active nav.mainmenu {
  transform: translateX(0);
}

.mainmenu .bottom {
  display: flex;
  gap: 1rem;
  margin-left: 1rem;
}

.mainmenu ul.menu {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1;
}

.mainmenu ul li {
  margin-bottom: 2rem;
}

.mainmenu ul.menu a {
  text-transform: uppercase;
  font-size: 4rem;
  font-family: "obviously", sans-serif;
  font-weight: 700;

  padding: 0 0.65rem 0.65rem 0.65rem;
  display: inline-block;

  background-image: linear-gradient(white, white);
  background-repeat: no-repeat;
  background-size: 0% 100%; /* Start with no white background */
  background-position: left center; /* Start drawing from the left */
  transition: background-size 0.5s ease, background-position 0.5s ease;
}

.mainmenu ul.menu a:hover {
  background-size: 100% 100%; /* Fill fully */
  background-position: left center;
}

/* MENU TOGGLES */
header .menu-toggle a img.opened {
  display: none;
}

/* SECTIONS */
/* -> FIRST */
section.first {
  min-height: 100vh;
  background-color: #c6daf0;
  background-image: url(images/bg_first.svg);
  background-position: right 30px bottom 40px;
  background-size: 65%;
  background-repeat: no-repeat;
  padding-top: 95px;
  padding-bottom: 95px;

  display: flex;
}

section.first > div {
  display: flex;
  flex-flow: column;
  justify-content: space-between;
  flex: 1;
}

section.first h1,
section.first p.big {
  margin-left: 7%;
}

.spacer {
  margin: 0;
}

@media (max-width: 768px) {
  .spacer {
    margin: 1.5rem;
  }
}

section.first h1 span {
  /* padding: 0rem 1rem 1rem 1rem; */
  padding: 0 1% 1% 1%;
  background-color: #f5f5f5;
  display: inline-block;
  margin-bottom: 1rem;
}

a.button-bottom {
  position: absolute;
  bottom: 40px;
  right: 30px;
  height: 150px;
  width: 150px;
}

/* SECTION SECOND */
section.second {
  min-height: 100vh;
  padding: 10% 0 7%;
}

section.second h2 {
  padding-left: 7%;
}

.green-bg {
  display: inline-block;
  background-color: #d2f7a9;
  padding: 0 0.5rem 0.5rem;
}

section.second > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 7%;
}

section.second > div > div:nth-child(1) {
  display: flex;
  align-items: center;
  justify-content: center;
}

section.second > div > div:nth-child(2) {
  margin-right: 7rem;
  padding-left: 1rem;
}

.button-default {
  display: inline-block;
  padding: 15px 20px;
  font-family: "obviously", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(16px, 3vw, 20px);
  background-color: #c1b6dd;
  color: #000;
}

/* SECTION THIRD */
section.third {
  min-height: 100vh;
  /* display: flex;
  flex-flow: column;
  justify-content: center; */

  padding: 7% 0 11%;

  background-image: url(images/illu-02.svg);
  background-repeat: no-repeat;
  background-position: 43px 100px;
  background-size: 30%;
}

section.third > div {
  margin-left: 44%;
  margin-right: 7rem;
}

ul.services h3 {
  display: flex;
  justify-content: space-between;
}

ul.services {
  list-style: none;
  margin: 4rem 0 0;
  padding: 0;
}

ul.services li {
  border-top: 2px solid black;
  padding: 1rem 1rem 1.2rem;
  transition: all 300ms ease-in-out;
}

ul.services li:not(.active):hover {
  cursor: pointer;
}

ul.services li:last-child {
  border-bottom: 2px solid black;
}

ul.services li.active {
  background-color: #c6daf0;
}

ul.services li img {
  transition: transform 300ms ease-in-out;
}

ul.services li.active img {
  transform: rotate(180deg);
}

ul.services li p {
  display: none;
}

ul.services li.active p {
  display: flex;
}

/* SECTION FOURTH */
section.fourth {
  padding: 5rem 0;
}

section.fourth > div:nth-child(1) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  margin: 5rem 14% 5rem 7%;
}

section.fourth > div:nth-child(1) img {
  width: 20vw;
  min-width: 200px;
}

/* EMBLA CAROUSEL */
.embla {
  position: relative;
  margin: 0 auto;
}

.embla__viewport {
  overflow: hidden;
}

.embla__container {
  display: flex;
}

.embla__slide {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% / 2.5));
  min-width: 0;
  /* max-width: 470px; */
  background: #c6daf0;
  padding: 1.25rem;
  margin: 0 1rem;
}

.embla__button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  cursor: pointer;
  background: none;

  background-color: #f5f5f5;
  border-radius: 50%;
  height: 85px;
  width: 85px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.embla__button--prev {
  left: 7%;
}

.embla__button--next {
  right: 30px;
  display: none;
}

.embla__slide .button-default {
  background-color: white;
  align-self: flex-start;
  margin-top: auto;
}

.embla__slide p.small {
  margin-bottom: 3rem;
}

.embla__viewport {
  padding-left: 15%;
}

/* hide next button until active */
.carousel-active .embla__button--next {
  display: flex;
}

/* SECTION BREAKER */
section.breaker {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 5rem 30px;
  margin: 5rem 0;
  background-color: #c1b6dd;
}

section.breaker > div {
  font-size: clamp(22px, 2.5vw, 50px);
  flex: 1;
}

section.breaker > div:nth-child(1) {
  padding: 0.4rem 0 1rem;
}

section.breaker > div:nth-child(1) span {
  font-family: "obviously", sans-serif;
  font-weight: 700;
  background-color: white;
  padding: 0 0.1rem 0.3rem;
  white-space: unset;
  box-decoration-break: clone;
  line-height: 1.2;

  display: flex;
  justify-content: center;
}

section.breaker > div:nth-child(2) {
  overflow: hidden;

  font-family: "obviously", sans-serif;
  font-weight: 700;
  padding: 0.6rem 0rem 1rem 0;
}

.marquee {
  overflow: hidden;
}

/* SECTION FIFTH */
section.fifth {
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding-top: 5rem;

  background-image: url(images/illu-05.svg);
  background-repeat: no-repeat;
  background-position: 85.5% 0;
  background-size: 30%;
}

section.fifth .inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  grid-gap: 2rem;
  row-gap: 4rem;

  font-family: "obviously", sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 4vw, 2rem);
  padding: 5% 15%;
}

section.fifth .inner span {
  font-size: clamp(100px, 10vw, 200px);
  background-color: #d2f7a9;
  display: block;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* SECTION SIXTH */
section.sixth {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  margin-left: 7%;
  margin-right: 15%;
  padding: 9rem 0;
}

section.sixth > div:nth-child(2) {
  display: flex;
  align-items: center;
  justify-content: center;
}

section.sixth > div:nth-child(2) img {
  width: 100%;
  height: auto;
  max-width: 520px;
}

.button-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  row-gap: 1rem;
  margin-top: 4rem;
}
.h-desktop {
  display: none;
}

/* PAGE IMPRINT */
.section-default {
  min-height: calc(100vh);
}

.section-default .heading {
  background-color: #c0dcfa;
  padding: 0 0 0 7%;
  min-height: calc(50vh);
  margin-top: -83px; /* - Header */

  display: flex;
  align-items: center;
}

.section-default .content {
  background-color: #f5f5f5;
  padding: 0rem 7% 2rem 7%;
  min-height: calc(50vh);

  display: flex;
  align-items: center;
}

.section-default p {
  font-size: clamp(18px, 2vw, 24px);
}

.ob-bold {
  font-family: "obviously", sans-serif;
  font-weight: bold;
  font-size: clamp(22px, 2vw, 30px);
}

/* PAGE CONTACT */
.page-template-page-contact .section-default .heading,
.page-template-page-contact header,
.page-template-page-contact footer {
  background-color: #1e602e;
}

.page-template-page-contact .content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  margin-left: 7%;
  margin-right: 10%;
  padding: 2.5rem 0 4rem;
}

.page-template-page-contact .button-container {
  margin-top: 3.5rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  row-gap: 1rem;
}

.page-template-page-contact h1 {
  margin: 1em 0;
}

.page-template-page-contact h1 span {
  padding: 0 1% 2% 1%;
  background-color: #d0beff;
  display: inline-block;
  white-space: nowrap;
  vertical-align: super;
  box-decoration-break: clone;
}

/* PAGE CASES */

@media (max-width: 768px) {
  .section-default .heading {
    margin-top: -60px;
    padding: 60px 15px 0 15px;
    align-items: flex-start;
  }

  .section-default .content {
    text-align: center;
    padding: 1rem 30px;
  }

  /* PAGE CONTACT */
  .page-template-page-contact h1 span {
    display: inline;
    white-space: unset;
  }
  .page-template-page-contact .content {
    grid-template-columns: 1fr;
    padding: 2.5rem 15px;
    margin: unset;
    text-align: center;
    grid-gap: 2.5rem;
  }

  .page-template-page-contact .content > div:nth-child(2) {
    order: -1;
  }
  .page-template-page-contact .content > div:nth-child(2) img {
    width: 60%;
  }

  .page-template-page-contact .button-container {
    flex-flow: column;
    gap: 1rem;
    margin: 0 3% 2.5rem 3%;
    white-space: nowrap;
  }
}

/* FOOTER */
footer {
  background-color: #c0dcfa;
  padding: 30px 30px 30px 50px;
}

footer .inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-gap: 2rem;
}

ul#footer-menu {
  margin: 0;
  padding: 0;
  list-style: none;

  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  /* justify-content: space-between; */
}

ul#footer-menu a,
.mainmenu .bottom a {
  display: flex;
  align-items: center;
  padding: 15px 20px;

  font-family: "obviously", sans-serif;
  font-weight: 500;
  text-transform: uppercase;

  font-size: clamp(16px, 3vw, 20px);
  background-color: #f5f5f5;
  color: #000;
}

footer .inner > div:nth-child(2) {
  display: flex;
  flex-flow: column;
  justify-content: space-between;
}

.copyright {
  font-size: clamp(12px, 3vw, 1rem);
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
  h4 {
    margin-bottom: 15px;
  }

  .page-template-page-home header {
    z-index: 11;
  }

  header {
    padding: 10px 15px;
  }

  header .logo img {
    height: 37px;
  }

  .menu-toggle img {
    height: 22px;
  }

  /* MENU */
  nav.mainmenu .menu-toggle {
    display: none;
  }

  nav.mainmenu {
    width: 100%;
    padding: 6rem 15px 15px;
  }

  nav.mainmenu .menu a {
    padding: 0;
    font-size: 3rem;
  }

  .mainmenu .bottom {
    margin-left: 0;
  }

  .mainmenu ul.menu a:hover {
    background-size: 0; /* disable on mobile */
  }

  header {
    z-index: 11;
    /* background-color: transparent; */
    background-color: #c0dcfa;
    transition: background-color 300ms ease-in-out;
  }

  .menu-active header {
    background-color: #d2f7a9;
  }

  /* MENU TOGGLES */
  .menu-active header .menu-toggle a img.closed {
    display: none;
  }
  .menu-active header .menu-toggle a img.opened {
    display: unset;
  }

  /* SECTION FIRST */
  section.first {
    padding: 80px 15px 15px 15px;

    background-position: calc(100% - 15px) calc(100% - 15px);
    background-size: 93%;
  }

  section.first > div {
    justify-content: unset;
  }

  section.first h1 span {
    display: inline;
    padding: 0 0.5rem 0.3rem 0.5rem;
    vertical-align: super;
    box-decoration-break: clone;
  }

  section.first h1,
  section.first p.big {
    margin-left: 0;
  }

  section.first p.big br {
    display: none;
  }

  a.button-bottom {
    height: 50px;
    width: 50px;
    bottom: 15px;
    right: 15px;
  }

  /* SECTION SECOND */
  section.second {
    min-height: 100vh;
    padding: 5rem 15px 4rem;
    min-height: unset;
  }

  section.second h2 {
    padding-left: unset;
    text-align: center;
  }

  section.second > div {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }

  section.second div img {
    max-width: 40vw;
  }

  section.second > div > div:nth-child(1) {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  section.second > div > div:nth-child(2) {
    margin-right: unset;
    padding-left: unset;
    text-align: center;
  }

  .green-bg {
    padding: 0.1rem 0.5rem 0.3rem;
  }

  /* SECTION THIRD */
  section.third {
    min-height: unset;
    padding: 5rem 15px 15px;

    background-image: url(images/illu-02_horizontal.svg);
    background-size: 92%;
    background-position: 15px 7%;
  }

  section.third h2 {
    text-align: center;
  }

  section.third > div {
    margin: 0;
  }

  ul.services li {
    padding: 0.75rem;
  }

  ul.services li img {
    height: 1rem;
  }

  /* SECTION FOURTH */
  section.fourth {
    padding: 4rem 0 5rem;
  }
  section.fourth > div:nth-child(1) {
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 15px;
    text-align: center;
  }

  /* EMBLA */
  .embla {
    position: relative;
    margin: 0 auto;
    width: 93%;
    margin-left: 15px;
  }

  .embla__slide {
    flex: 0 0 calc((100% / 1.3));
    margin: 0 7.5px;
    padding: 15px;
  }
  .embla__slide p.small {
    margin: 0 0 2rem 0;
  }
  .embla__button {
    padding: 0;
    height: 32px;
    width: 32px;
  }

  .embla__button--prev {
    left: 0px;
  }

  .embla__button--next {
    right: 0px;
  }

  .embla__button img {
    width: 20px;
    height: auto;
  }

  .embla__container .embla__slide:nth-child(1) {
    margin-left: 7.5px;
  }

  /* SECTION BREAKER */
  section.breaker {
    padding: 2rem 0 1rem;
    margin: 2rem 0 5rem 0;
    gap: 1rem;

    display: flex;
    justify-content: center;
  }

  section.breaker > div:nth-child(1) {
    margin: 0 3rem;
    padding: 0;
    text-align: center;
  }
  section.breaker > div:nth-child(1) span {
    display: inline;
    white-space: unset;
    text-align: center;
    margin: 0 15px;
    padding: 0 0.2rem;
  }

  section.breaker > div {
    flex: unset;
  }

  /* SECTION FIFTH */
  section.fifth {
    padding-top: 0;

    background-image: url(images/illu-05_mirrored.svg);
    background-size: 92%;
    background-position: 15px 0;
  }
  section.fifth .inner {
    grid-template-columns: 1fr;
    text-align: center;
    row-gap: 2rem;
    padding: 4rem 2.25rem;
  }
  section.fifth .inner span {
    margin-bottom: 0.5rem;
    padding-bottom: 1rem;
  }

  /* SECTION SIXTH */
  section.sixth {
    grid-template-columns: 1fr;
    padding: 4rem 20px;
    margin: unset;
    text-align: center;
    grid-gap: 3.5rem;
  }

  section.sixth > div:nth-child(2) img {
    width: 60%;
  }

  .button-container {
    flex-flow: column;
    gap: 1rem;
    margin-top: unset;
    margin: 0 16%;
  }

  .h-desktop {
    display: flex;
  }

  .h-mobile {
    display: none;
  }

  /* FOOTER */
  footer {
    padding: 30px 15px 15px 15px;
  }

  footer .inner {
    grid-template-columns: 1fr;
  }
  footer .inner img {
    width: 100%;
    height: auto;
  }
  footer .inner > div:nth-child(1) {
    margin: 1rem 0 15px;
    order: 2;
  }

  footer .inner > div:nth-child(2) {
    margin: 1rem 0 2.5rem;
  }

  ul#footer-menu {
    justify-content: unset;
    gap: 1rem;
  }
}
