/*
Theme Name: bsTheme
Theme URI: http://brotsalz.de/
Author: brot & salz
Author URI: http://www.brotsalz.de
Description: brot & salz Theme
Version: 1.0.8
Tested up to: 6.8.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: bstheme
Tags: brot&salz, tailor-made-theme

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

bsTheme is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
*/

/* * General
* --------------------------------------------- */
body {
  background: var(--cLight);
  padding-block: 1.5rem;
}

body
  :is(
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl
  ) {
  max-width: 2560px !important;
}

.no-wrap {
  white-space: nowrap;
}

.text-bg-light {
  color: var(--cDef);
  background: var(--cLight);
  display: inline;
  line-height: 1.35;
  padding: 0 0.25rem;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  font-family: var(--family-headline);
}

/* * Buttons / CTAs
* --------------------------------------------- */
.cta {
}

.cta :is(a, button) {
  display: flex;
  transition: 0.3s all ease;
}

/* * Simple ------------------ */
.cta.simple .cta_text {
  text-transform: uppercase;
  font-family: var(--family-headline);
  position: relative;
  padding-bottom: 0.15rem;
}

.cta.simple .cta_text::after {
  height: 2px;
  background: var(--cDef);
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  transition: width 0.3s ease;
  display: block;
}

.cta.simple a:hover .cta_text::after {
  width: 100%;
}

/* * Simple Arrow ------------------ */
.cta.simple.arrow .cta_text {
  margin-right: 0.5rem;
}
.cta.simple.arrow .cta_icon {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s all ease;
  transform: translateX(0);
}

.cta.simple :is(a, button):hover .cta_icon {
  transform: translateX(10px);
}

/* * Typography
* --------------------------------------------- */
/* playfair-display-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  src: url('../bsTheme/assets/fonts/playfair-display/playfair-display-v40-latin-regular.woff2')
    format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* * Header
* --------------------------------------------- */
.site__header {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  mix-blend-mode: difference;
  background: transparent;
  z-index: 99;
  pointer-events: none;
}

.logo_wrapper.header :is(img, svg) {
  height: 3rem;
  width: auto;
}

.menu_list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.menu_list a,
.logo_wrapper.header a img {
  pointer-events: all;
  color: var(--cLight);
}

.menu_list a {
  padding-bottom: 0.15rem;
  position: relative;
}

.menu_list a::after {
  height: 2px;
  background: var(--cLight);
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  transition: width 0.3s ease;
  display: block;
}

.menu_list a:hover::after {
  width: 100%;
}

/* Nav down */
.scrolling {
  /* background: #fff;
  box-shadow: 0 4px 3px rgba(0, 0, 0, 0.07);
  -webkit-box-shadow: 0 4px 3px rgba(0, 0, 0, 0.07);
  -moz-box-shadow: 0 4px 3px rgba(0, 0, 0, 0.07); */
}

/* * Nav Button
* --------------------------------------------- */
body.nav__open {
  overflow: hidden;
}

#menu_burger {
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  border: none;
}

#menu_burger.circle {
  border: 3px solid var(--cDef);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
}

#menu_burger .menu_burger__button_wrapper {
  width: 1.6rem;
  height: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

#menu_burger span {
  width: 100%;
  height: 0.2rem;
  background-color: var(--cDef);
  transition: 0.3s all ease;
}

#menu_burger span:nth-of-type(3) {
  width: 50%;
}

/* * Hover */
#menu_burger:hover span:nth-of-type(3) {
  width: 100%;
}

/* * Active */
#menu_burger.active span:nth-of-type(1) {
  transform: translate(0, 190%) rotate(45deg);
}

#menu_burger.active span:nth-of-type(2) {
  transform: translate(0, 0) rotate(-45deg);
}

#menu_burger.active span:nth-of-type(3) {
  opacity: 0;
}

/* * Navigation Overlay
* --------------------------------------------- */
#navigation_overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: var(--cLight);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.01);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 98;
}

#navigation_overlay.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* * Social Media Icons
* --------------------------------------------- */
.social_media__item svg {
  width: auto;
  height: 2rem;
}

.social_media__item svg path {
  fill: var(--cDef);
}

/* * Footer
* --------------------------------------------- */
.footer_end {
  font-size: 16px;
}

.footer_end p {
  margin-bottom: 0;
}

/* * Home Events & Catering
* --------------------------------------------- */
.services_main_paragraph {
  max-width: 800px;
}

.floating-text-wrapper__event {
  position: absolute;
  bottom: 10rem;
  right: 0;
  display: block !important;
}

/* * Parallax */
.img_parallax_wrapper {
  position: relative;
  isolation: isolate;
}

.img_parallax_item {
  will-change: transform;
  transition: transform 0.1s linear;
  pointer-events: none;
  z-index: -1;
}

figure.img_parallax_item {
  will-change: transform;
  transition: transform 0.1s linear;
  pointer-events: none;
  z-index: -1;
}

.service_mood.first {
  position: absolute;
  top: 0rem;
  right: 10%;
  max-width: clamp(100px, 20vw, 400px);
}

.service_mood.last {
  position: absolute;
  bottom: -25rem;
  left: 22.5%;
  max-width: clamp(100px, 25vw, 450px);
}

@media (min-width: 769px) {
  .intro_img.big {
    margin-top: -3rem;
  }
}

@media (max-width: 1600px) {
  .services_main_paragraph {
    max-width: 700px;
  }
}

@media (max-width: 1400px) {
  .service_mood.first {
    right: 0;
  }

  .service_mood.last {
    bottom: -20rem;
  }
}

@media (max-width: 1200px) {
  .service_mood.last {
    bottom: -15rem;
    left: 10%;
  }
}

@media (max-width: 992px) {
  .services_main_paragraph {
    max-width: 70%;
  }

  .service_mood.first {
    max-width: 25%;
  }

  .service_mood.last {
    bottom: -20rem;
    left: 0;
    max-width: 35%;
  }
}

@media (max-width: 768px) {
  .floating-text-wrapper__event {
    max-width: 60%;
    bottom: 0;
  }
}

/* * Preloader
* --------------------------------------------- */
#preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: var(--cLight);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  pointer-events: none;
  animation: fadeAway 0.5s ease 1s forwards;
}

#preloader svg #preloader_path {
  stroke-dasharray: 1250;
  stroke-dashoffset: 1250;
  animation: draw 1s ease-in-out forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeAway {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
