/*
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-bottom: 1.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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);
}
.ff-courier {
  font-family: 'Courier 10 Pitch', courier, monospace;
}

#colophon {
  margin-top: auto;
}

/* * Buttons / CTAs
* --------------------------------------------- */
.cta {
  width: fit-content;
}

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

.cta_icon {
  padding-top: 0.1rem;
}

.cta.double_size .cta_text {
  font-size: 1.5rem;
}

.cta.double_size .cta_icon :is(svg, img) {
  width: 1rem;
  height: auto;
}

@media (max-width: 576px) {
  .cta.double_size .cta_text {
    font-size: 1.25rem;
  }

  .cta.double_size .cta_icon :is(svg, img) {
    width: 0.75rem;
  }
}

/* * 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: 1px;
  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: rotate(0deg);
}

.cta.simple :is(a, button):hover .cta_icon {
  transform: rotate(45deg);
}

/* * 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+ */
}

/* playfair-display-700 - 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: 700;
  src: url('../bsTheme/assets/fonts/playfair-display/playfair-display-v40-latin-700.woff2')
    format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* cy-grotesk-regular */
@font-face {
  font-display: swap;
  font-family: 'CY Grotesk';
  font-style: normal;
  font-weight: 400;
  src:
    url('../bsTheme/assets/fonts/cy-grotesk/cy-grotesk-regular.woff2')
      format('woff2'),
    url('../bsTheme/assets/fonts/cy-grotesk/cy-grotesk-regular.woff')
      format('woff');
}

/* cy-grotesk-medium */
@font-face {
  font-display: swap;
  font-family: 'CY Grotesk';
  font-style: normal;
  font-weight: 500;
  src:
    url('../bsTheme/assets/fonts/cy-grotesk/cy-grotesk-medium.woff2')
      format('woff2'),
    url('../bsTheme/assets/fonts/cy-grotesk/cy-grotesk-medium.woff')
      format('woff');
}

/* * Utility
* --------------------------------------------- */
.sticky {
  position: -webkit-sticky;
  position: sticky;
  z-index: 2;
  top: 0;
}

.br-none br {
  display: none !important;
}

@media (max-width: 768px) {
  .br-md-none br {
    display: none !important;
  }
}

/* * 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: 1rem;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.25rem;
}

@media (min-width: 1201px) {
  .header_col_left,
  .header_col_right {
    width: 38%;
  }

  .header_col_middle {
    width: 24%;
  }
}

@media (max-width: 1200px) {
  .logo_wrapper.header :is(img, svg) {
    height: 1.5rem;
    margin-block: 1rem;
  }

  .header_col_middle {
    transition: 0.3s all ease;
    margin-block: 20rem;
  }

  .site__header.scrolling .header_col_middle {
    margin-block: 0rem;
  }
}

@media (max-width: 576px) {
  .logo_wrapper.header :is(img, svg) {
    height: 1rem;
  }
}

.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: 1px;
  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);
  display: none;
}

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

@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%;
    max-width: 100%;
  }

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

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

@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 1s ease 2s forwards;
}

.preloader__wrapper {
  position: relative;
  overflow: hidden;
}

.preloader__wrapper::after,
.preloader__wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: 51%;
  background: var(--cLight);
}

.preloader__wrapper::after {
  right: 0;
  animation: fadeRight 1s ease 0.25s forwards;
}

.preloader__wrapper::before {
  left: 0;
  animation: fadeLeft 1s ease 0.25s forwards;
}

/* Ensure that if the class is added by JS, it stays hidden */
.hide-preloader #preloader {
  display: none !important;
}

#preloader img {
  width: clamp(140px, 18vw, 415px);
  height: auto;
}
@media (max-width: 1200px) {
  #preloader img {
    width: clamp(240px, 28vw, 415px);
  }
}

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

@keyframes fadeLeft {
  to {
    transform: translateX(-100%);
    visibility: hidden;
  }
}

@keyframes fadeRight {
  to {
    transform: translateX(100%);
    visibility: hidden;
  }
}

/* * Hero Block
* --------------------------------------------- */
.hero img.wp-block-cover__image-background {
  position: absolute;
  inset: -2.5% 2.5% 2.5% -2.5%;
  width: 105%;
  max-width: 105%;
  height: 105%;
  max-height: 105%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
  filter: blur(0px);
}

/* * Projects
* --------------------------------------------- */
.project_meta {
  font-family: var(--family-headline);
  text-transform: uppercase;
  font-size: 1rem;
  position: relative;
  padding-left: 2rem;
}

.project_meta::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1px;
  background: var(--cDef);
}

.project_meta ~ .project_meta {
  margin-top: 0.5rem;
}

.project_meta__wrapper {
  top: 1.5rem;
}

.project_content .wp-block-gallery {
  --wp--style--unstable-gallery-gap: 3rem !important;
  gap: 3rem !important;
}

.project_content .wp-block-image {
  margin-block: 3rem;
}

.project_content .wp-block-gallery .wp-block-image {
  margin-block: 0;
}

@media (max-width: 1200px) {
  .project_content .wp-block-gallery {
    --wp--style--unstable-gallery-gap: 2rem !important;
    gap: 2rem !important;
  }

  .project_content .wp-block-image {
    margin-block: 2rem;
  }
}

@media (max-width: 768px) {
  .project_content .wp-block-gallery {
    --wp--style--unstable-gallery-gap: 1rem !important;
    gap: 1rem !important;
  }

  .project_content .wp-block-image {
    margin-block: 1rem;
  }
}

/* * Gallery General
* --------------------------------------------- */
.wp-block-gallery {
  --wp--style--unstable-gallery-gap: 3rem !important;
  gap: 3rem !important;
}

@media (max-width: 1200px) {
  .wp-block-gallery {
    --wp--style--unstable-gallery-gap: 2rem !important;
    gap: 2rem !important;
  }
}

@media (max-width: 768px) {
  .wp-block-gallery {
    --wp--style--unstable-gallery-gap: 1rem !important;
    gap: 1rem !important;
  }
}

/* * Table Stylings
* --------------------------------------------- */
.wp-block-table thead {
  border: none;
}

.wp-block-table thead th {
  border: none;
  border-bottom: 1px solid;
  font-weight: 400;
}

.wp-block-table tbody td {
  border: none;
  border-bottom: 1px solid;
  border-color: #00000020;
}

/* * Contact
* --------------------------------------------- */
#contact :is(input[type='email'], select, textarea) {
  width: 100%;
  border-radius: 0;
}

#contact :is(input[type='email'], select) {
  border: none;
  border-bottom: 1px solid var(--cDef);
}

#contact textarea {
  height: 100px;
  border: 1px solid var(--cDef);
}

#contact label:has(:is(input[type='email'], select, textarea)) {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--family-headline);
  height: 100%;
  gap: 1rem;
  font-size: 1.1rem;
}
.offerPre pre strong {
  font-family: var(--family-headline);
  font-size: 1.1rem;
}

#contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#contact input[type='submit'] {
  align-self: flex-start;
  border: none;
  padding: 0;
  font-family: var(--family-headline);
  text-transform: uppercase;
  color: var(--cLight);
  background: var(--cDef);
  font-weight: 700;
  position: relative;
  padding: 0.45rem 2rem 0.25rem 2rem;
  border: 1px solid var(--cDef);
}

#contact label:has(input[type='submit']) {
  position: relative;
}

#contact input[type='checkbox'] {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
}

#contact label:has(input[type='checkbox']) {
  display: flex;
  gap: 1rem;
}

#contact label:has(input[type='checkbox'])::before {
  content: '';
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
  width: 15px;
  height: 15px;
  border: 1px solid var(--cDef);
}

#contact label:has(input[type='checkbox']:checked)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}
.offerPre pre,
main pre {
  padding: 20x;
  white-space: pre-wrap; /* Erlaubt Zeilenumbrüche, behält aber Formatierung bei */
  word-wrap: break-word; /* Bricht extrem lange Wörter (z.B. URLs) um */
  overflow-x: hidden; /* Verhindert den horizontalen Scrollbalken sicherheitshalber */
  height: auto;
}

.fullWImg img {
  width: 100vw;
}

@media (min-width: 992px) {
  .offerPre pre {
    padding-right: 60px;
  }
  .heroImg img,
  .projectHeroImg img {
    width: 100vw;
    object-fit: cover;
    aspect-ratio: 16/9;
    height: auto;
  }
}

@media (min-width: 1664px) {
  .heroImg img {
    aspect-ratio: 16/7;
  }
}
footer {
  font-family: var(--family-alternative);
}
.wp-block-image.w-100 img {
  width: 100%;
}

.videoHero {
  position: relative;
}
.videoHero,
.videoHero video {
  height: 100vh;
  width: 100%;
  object-fit: cover;
}
.videoHero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.deskSubHeader {
  display: none;
}
.deskSubSticky {
  position: sticky;
  top: 30px;
  height: 100%;
  z-index: 2;
}

.deskSubSticky h2 {
  margin-bottom: 1rem;
}

.deskSubSticky pre,
pre.noPreBox {
  background: transparent;
  padding-left: 0;
}
.desk2Header h1 {
  margin-top: 2rem;
}
.fdivider {
  display: inline-block;
  padding-inline: 3px;
}
.copyright {
  text-align: left;
}

@media (orientation: portrait) {
  .videoHero,
  .videoHero video {
    height: 100vh;
    width: 100%;
    object-fit: cover;
  }

  .deskSubSticky h2 {
    display: none;
  }
  .deskSubHeader,
  .desk2Header {
    margin-top: 120px;
    display: block;
  }
  .deskSubSticky {
    position: relative;
    top: 0;
    padding-block: 20px;
  }
  .deskSubSticky pre,
  pre.noPreBox {
    margin-bottom: 0;
  }
  .fdivider {
    display: none;
  }
  .copyright span {
    display: block;
  }
  .desk2Header h1 {
    margin-top: 0;
  }
  .projects-sticky-wrap {
    justify-content: flex-start !important;
  }
}

@media (max-width: 576px) {
  .deskSubHeader {
    margin-top: 0px;
    display: flex;
    flex-direction: column-reverse;
  }

  .deskSubHeader h1 {
    margin-left: 1.5rem !important;
    margin-right: auto !important;
    margin-bottom: 0rem !important;
    margin-top: 2.5rem !important;
  }

  .deskSubHeader .heroImg img {
    max-height: 400px;
    object-fit: cover;
  }
  .deskSubSticky {
    padding-top: 0;
  }
  .events_archive__col--thumb {
    display: block !important;
  }
  .events_archive__thumbnail {
    width: 100% !important;
    min-height: 140px;
  }
}

.cta.simple.arrow a {
}
.cta.simple.arrow .cta_text {
  text-decoration: underline;
  font-family: 'Courier 10 Pitch', courier, monospace;
  font-size: 1.3rem;
}
.cta.simple.arrow .cta_text::after {
  display: none;
}
.cta.simple.arrow .cta_icon {
  display: none;
}
