/*
Theme Name: bsTheme
Theme URI: http://brotsalz.de/
Author: brot & salz
Author URI: http://www.brotsalz.de
Description: brot & salz Theme
Version: 1.0.1
Tested up to: 6.1.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.
*/

/* * Theme Overwrites
* --------------------------------------------- */
body {
  background: var(--cDark);
}

/* * Fonts 
* --------------------------------------------- */
/* jost-800 - 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: 'Jost';
  font-style: normal;
  font-weight: 800;
  src: url('../bsTheme/assets/fonts/jost/jost-v19-latin-800.woff2')
    format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

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

/* * Utilities 
* --------------------------------------------- */
.seo_only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
}

/* * CTAs / Buttons
* --------------------------------------------- */
.cta {
  width: fit-content;
  margin-bottom: 0.5rem;
}

.no-interaction {
  pointer-events: none;
}

.cta > :is(a, button, div, input) {
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--cBeige);
  cursor: pointer;
  transition: 0.3s all ease;
  position: relative;
  padding: 0;
  font-family: var(--family-body);
  font-weight: var(--fw-regular);
  display: flex;
  align-items: center;
}

.cta_corners {
  display: none;
}

/* Default ------------------ */
.cta.default > :is(a, button, div, input) {
  padding: 0.5rem 1.75rem;
  color: var(--cBeige);
  text-transform: uppercase;
  transition: 0.3s all ease;
  position: relative;
}

.cta.default .cta_corners {
  display: block;
}

/* Left Corners */
.cta.default .cta_corners.left::after,
.cta.default .cta_corners.left::before {
  content: '';
  display: block;
  position: absolute;
  height: 10px;
  width: 2px;
  left: 0;
  background: var(--cDef);
}

.cta.default .cta_corners.left::after {
  top: 0;
}

.cta.default .cta_corners.left::before {
  bottom: 0;
}

/* Right Corners */
.cta.default .cta_corners.right::after,
.cta.default .cta_corners.right::before {
  content: '';
  display: block;
  position: absolute;
  height: 10px;
  width: 2px;
  right: 0;
  background: var(--cDef);
}

.cta.default .cta_corners.right::after {
  top: 0;
}

.cta.default .cta_corners.right::before {
  bottom: 0;
}

/* Top Corners */
.cta.default .cta_corners.top::after,
.cta.default .cta_corners.top::before {
  content: '';
  display: block;
  position: absolute;
  height: 2px;
  width: 10px;
  background: var(--cDef);
}

.cta.default .cta_corners.top::after {
  left: 0;
  top: 0;
  transition: 0.3s all ease;
}

.cta.default:hover .cta_corners.top::after {
  width: 100%;
}

.cta.default .cta_corners.top::before {
  right: 0;
  top: 0;
}

/* Bottom Corners */
.cta.default .cta_corners.bottom::after,
.cta.default .cta_corners.bottom::before {
  content: '';
  display: block;
  position: absolute;
  height: 2px;
  width: 10px;
  background: var(--cDef);
}

.cta.default .cta_corners.bottom::after {
  left: 0;
  bottom: 0;
}

.cta.default .cta_corners.bottom::before {
  right: 0;
  bottom: 0;
  transition: 0.3s all ease;
}

.cta.default:hover .cta_corners.bottom::before {
  width: 100%;
}

/* Default ------------------ */
.cta.default.transparent > :is(a, button, div, input) {
  padding: 0.5rem 1.75rem;
  background: transparent;
  border: 2px solid var(--cDef);
  color: var(--cDef);
  text-transform: uppercase;
  border-radius: var(--b-radius-xl);
  transition: 0.3s all ease;
}

.cta.default.transparent:hover > :is(a, button, div, input) {
  background: var(--cDef);
  color: var(--cBeige);
}

.cta.default.transparent > :is(a, button, div, input) div {
  margin-right: 0.5rem;
  /* font-size: 16px; */
}

.cta.default.transparent > :is(a, button, div, input) svg path {
  transition: 0.3s all ease;
}

.cta.default.transparent:hover > :is(a, button, div, input) svg path {
  stroke: var(--cBeige);
}

/* Menu ------------------ */
.cta.menu > :is(a, button, div, input) {
  padding: 0 0 0.25rem 0;
  background: transparent;
  border: none;
  color: var(--cDef);
  text-transform: uppercase;
  transition: 0.3s all ease;
}

.cta.menu > :is(a, button, div, input) {
  background: transparent;
  position: relative;
}
.cta.menu > :is(a, button, div, input)::after {
  position: absolute;
  content: '';
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--cDef);
  bottom: 0;
  transition: 0.3s all ease;
}

.cta.menu:hover > :is(a, button, div, input)::after {
  width: 100%;
}

/* Submit ------------------ */
.cta.submit {
  position: relative;
}

.cta.submit > :is(a, button, div, input) {
  transition: 0.3s all ease;
  background: var(--cDef);
  color: var(--cDark);
}

.cta.submit.deny {
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.5;
}

@media (max-width: 576px) {
  .cta.default > :is(a, button, div, input) {
    white-space: nowrap;
  }
}

/* Menu ------------------ */
.cta.hyper > :is(a, button, div, input) {
  padding: 0.15rem 0.75rem;
  background: transparent;
  border: 3px solid var(--cDef);
  color: var(--cRed);
  text-transform: uppercase;
  border-radius: 50px;
  transition: 0.3s all ease;
  font-size: clamp(var(--f-lg-min), var(--f-lg-ideal), var(--f-lg-max));
  height: 100%;
}

.cta.hyper:hover > :is(a, button, div, input) {
  background: var(--cRed);
  color: var(--cBeige);
}

@media (max-width: 576px) {
  .cta.hyper > :is(a, button, div, input) {
    padding: 0.15rem 1rem;
  }
}

/* * Site Header
* --------------------------------------------- */
.site__header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  transition: 0.6s all ease;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 8, 0.75) 0%,
    rgba(8, 8, 8, 0) 100%
  );
}

/* Nav open */
.navOpen {
  overflow: hidden;
  transition: 0.6s all ease;
}

/* Nav down */
.navDown {
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 8, 0.75) 0%,
    rgba(8, 8, 8, 0) 100%
  );
}

/* Book UI */
#book_ui {
  pointer-events: none;
  z-index: 97;
  position: fixed;
  inset: 0;
  isolation: isolate;
  width: 100%;
  height: 100%;
}

#book_ui::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 9999; /* Adjust above your UI */
  background-image: url('/wp-content/uploads/noise-transparent.webp'); /* static noise PNG */
  opacity: 0.4; /* tweak for desired strength */
  animation: grain 0.1s steps(10) infinite;
}

@media (max-width: 576px) {
  #book_ui::after {
    opacity: 1; /* tweak for desired strength */
  }
}

@keyframes grain {
  0% {
    transform: translate(1px, -1px);
  }
  5% {
    transform: translate(-2px, 2px);
  }
  10% {
    transform: translate(2px, -2px);
  }
  15% {
    transform: translate(-1px, 3px);
  }
  20% {
    transform: translate(3px, -1px);
  }
  25% {
    transform: translate(-3px, 1px);
  }
  30% {
    transform: translate(1px, -3px);
  }
  35% {
    transform: translate(-2px, 0px);
  }
  40% {
    transform: translate(0px, 2px);
  }
  45% {
    transform: translate(2px, 2px);
  }
  50% {
    transform: translate(-2px, -2px);
  }
  55% {
    transform: translate(3px, 0px);
  }
  60% {
    transform: translate(0px, -3px);
  }
  65% {
    transform: translate(-3px, 2px);
  }
  70% {
    transform: translate(2px, -3px);
  }
  75% {
    transform: translate(-1px, 1px);
  }
  80% {
    transform: translate(1px, -2px);
  }
  85% {
    transform: translate(-2px, 3px);
  }
  90% {
    transform: translate(3px, -2px);
  }
  95% {
    transform: translate(-1px, -1px);
  }
  100% {
    transform: translate(0, 0);
  }
}

.book_ui__corner {
  position: absolute;
  padding: 1rem;
}

.book_ui__corner svg {
  width: 2.5rem;
  height: auto;
}

.book_ui__corner.top.left {
  top: 0;
  left: 0;
}

.book_ui__corner.top.right {
  top: 0;
  right: 0;
}

.book_ui__corner.top.right .book_ui__corner_content {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: fit-content;
  white-space: nowrap;
}

.book_ui__corner.top.right .book_ui__corner_content svg {
  width: auto;
  height: 20px;
  opacity: 1;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  49% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 0.5;
  }
}

.book_ui__corner.bottom.left {
  bottom: 0;
  left: 0;
}

.book_ui__corner.bottom.left .book_ui__corner_content {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  width: fit-content;
  white-space: nowrap;
}

.book_ui__corner.bottom.right {
  bottom: 0;
  right: 0;
}

.book_ui__corner.bottom.right .book_ui__corner_content {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  width: fit-content;
  white-space: nowrap;
}

.book_ui__static {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0.4;
}

.book_ui__static.one {
  animation: static 60s infinite;
}

.book_ui__static.two {
  animation: static 60s 5s infinite;
}

.book_ui__static.three {
  animation: static 60s 15s infinite;
}

@keyframes static {
  0% {
    top: -20%;
    opacity: 0.15;
  }
  8% {
    opacity: 0.3;
  }
  15% {
    opacity: 0.18;
  }
  22% {
    opacity: 0.35;
  }
  30% {
    opacity: 0.16;
  }
  38% {
    opacity: 0.32;
  }
  45% {
    opacity: 0.15;
  }
  52% {
    opacity: 0.38;
  }
  60% {
    opacity: 0.18;
  }
  68% {
    opacity: 0.3;
  }
  75% {
    opacity: 0.16;
  }
  82% {
    opacity: 0.35;
  }
  90% {
    opacity: 0.17;
  }
  100% {
    top: 120%;
    opacity: 0.15;
  }
}

@media (max-width: 992px) {
  .menu_logo {
    width: 7.5rem;
  }

  .book_ui__static {
    overflow: hidden;
  }

  .book_ui__static img {
    min-width: 200%;
    transform: translateX(-50%);
  }
}

/* * Burger Button
* --------------------------------------------- */
.menu_burger__button {
  padding: 0;
  border: none;
  background: transparent;
}

.menu_burger__button div {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  border: 2px solid var(--cDef);
  padding: 0.5rem;
  background: transparent;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.menu_burger__button div span {
  width: 20px;
  height: 2px;
  background: var(--cDef);
  transition: 0.3s all ease;
}

.menu_burger__button div span:nth-of-type(2) {
  margin-block: 0.225rem;
}

.menu_burger__button div span:nth-of-type(3) {
  width: 10px;
}

.menu_burger__button:hover div span:nth-of-type(3) {
  width: 20px;
}

.menu_burger.active .menu_burger__button div span:nth-of-type(1) {
  transform: rotate(45deg);
}

.menu_burger.active .menu_burger__button div span:nth-of-type(2) {
  margin-block: 0;
  transform: rotate(-45deg) translate(1px, -1px);
}

.menu_burger.active .menu_burger__button div span:nth-of-type(3) {
  display: none;
}

@media (max-width: 1200px) {
  .menu_burger {
    transform: translateX(-1.5rem);
  }
}

@media (max-width: 576px) {
  .menu_burger {
    transform: translateX(-1.75rem) translateY(0.5rem);
  }
}

/* * Burger Menu
* --------------------------------------------- */
#navOverlayContainer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  opacity: 0;
  background-color: var(--cDark);
  z-index: -90;
  width: 100%;
  height: 100%;
  transition: 0s opacity ease;
}

.ovNavContainer__wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

#navOverlayContainer.openOverlay {
  transition-delay: 0s;
  opacity: 1;
  z-index: 9;
}

@media (min-width: 993px) {
  #navOverlayContainer {
    display: none;
  }
}

/* * Book Mockup
* --------------------------------------------- */
@media (max-width: 768px) {
  .book_mockup {
    max-width: 300px;
  }
}

/* * Footer
* --------------------------------------------- */
.line_separator {
  height: 2px !important;
  border: none;
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--cDef);
  opacity: 1;
}

.footer_cover {
  position: relative;
}

.footer_cover::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 8, 0) 0%,
    rgba(8, 8, 8, 1) 85%
  );
  z-index: 2;
}

.footer_cover > div {
  position: relative;
  z-index: 3;
}

#colophon {
  position: relative;
  margin-top: 15rem;
}

.portrait_animation__wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: 1s all ease;
  isolation: isolate; /* creates a new stacking context */
  will-change: transform;
}

#colophon.active .portrait_animation__wrapper {
  top: -300px;
}

.portrait_item {
  width: clamp(200px, 50vw, 1000px);
  margin-inline: auto;
  transform: rotate(0);
  transform-origin: bottom center;
  cursor: pointer;
}

.portrait_item.active {
  z-index: 1; /* Also reinforce during animation */
  animation: wobble 1s ease-in-out infinite;
  pointer-events: none;
}

.portrait_item img {
  z-index: 1 !important;
  width: 100%;
  height: auto;
}

.footer_newsletter_cover,
.footer_newsletter_cover
  :is(img.wp-block-cover__image-background, .wp-block-cover__background) {
  pointer-events: none;
}

.footer_newsletter_cover .wp-block-cover__inner-container {
  pointer-events: all;
}

@keyframes wobble {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(5deg);
  }
  35% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(5deg);
  }
  60% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@media (max-width: 1800px) {
  #colophon.active .portrait_animation__wrapper {
    top: -250px;
  }
}

@media (max-width: 1400px) {
  #colophon.active .portrait_animation__wrapper {
    top: -225px;
  }
}

@media (max-width: 1200px) {
  #colophon.active .portrait_animation__wrapper {
    top: -185px;
  }
}

@media (max-width: 992px) {
  #colophon.active .portrait_animation__wrapper {
    top: -155px;
  }
}

@media (max-width: 850px) {
  #colophon.active .portrait_animation__wrapper {
    top: -120px;
  }
}

@media (max-width: 768px) {
  #colophon.active .portrait_animation__wrapper {
    top: -90px;
  }
}

@media (max-width: 576px) {
  #colophon.active .portrait_animation__wrapper {
    top: -90px;
  }

  .portrait_item {
    width: clamp(200px, 85vw, 1000px);
  }
}

/* * Newsletter
* --------------------------------------------- */
.videoswitch__wrapper {
  position: relative;
  width: 100%;
}

.videoswitch__wrapper video {
  width: 100%;
  max-width: 550px;
}

.videoswitch__seo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0;
}

/* * Newsletter
* --------------------------------------------- */
#form_EMAIL {
  border: 2px solid var(--cDef);
  border-radius: var(--b-radius-xl);
  padding: 0.5rem 1.5rem;
  color: var(--cDef);
  opacity: 1;
  font-weight: var(--fw-semibold);
}

::placeholder {
  text-decoration: uppercase;
  opacity: 1;
  color: var(--cDef);
  font-weight: var(--fw-semibold);
}

#form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.checkBoxWrap {
  isolation: isolate;
}

.checkBoxWrap input {
  position: absolute;
  opacity: 0 !important;
  cursor: none;
  top: 0;
  z-index: -1;
  pointer-events: none;
}

.checkBoxWrap .checker {
  position: relative;
  width: 20px;
  height: 20px;
  border: 2px solid var(--cDef);
  border-radius: 4px;
  z-index: 2;
}

.checkBoxWrap .checked {
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
}

.checkBoxWrap .checked svg {
  width: 90%;
  height: auto;
}

.checkBoxWrap.active .checked {
  display: flex;
}

@media (min-width: 577px) {
  #form_EMAIL,
  .dsgvoWrapper {
    width: 500px;
  }
}

@media (max-width: 576px) {
  #form_EMAIL {
    width: 300px;
  }
}

/* * Text Section
* --------------------------------------------- */
.additional_text {
  display: none;
  max-width: 800px;
}

/* * Utility Classes
* --------------------------------------------- */
@media (max-width: 576px) {
  .mw-tiny {
    max-width: 250px;
  }

  .no-br-mobile br {
    display: none;
  }
}

/* * Intro section
* --------------------------------------------- */
.additional_text_cta.close {
  display: none;
}

/* * Order Section
* --------------------------------------------- */
.order_headline_group {
  margin-top: -10rem;
}

.order_promotional_image {
  position: relative;
}

.order_promotional_image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 85%
  );
}

@media (max-width: 576px) {
  .order_promotional_image {
    max-width: 300px;
  }
}

/* * Merch Animation
* --------------------------------------------- */
.merch_asset {
  transform: scale(0.75);
  transition: 1s all ease;
}

.merch_section.active .merch_asset {
  transform: scale(1);
}

/* * Consent / Cookies
* --------------------------------------------- */
#change-consent {
  cursor: pointer;
}

/* * YouTube Single
* --------------------------------------------- */
.youtube_embed__wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.youtube_embed__wrapper .wp-block-embed {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.youtube_embed__wrapper .wp-block-embed__wrapper {
  border: 3px solid var(--cRed);
  width: 100%;
  max-width: 992px;
  aspect-ratio: 16 / 9;
  border-radius: var(--b-radius-xl);
  overflow: hidden;
}

.youtube_embed__wrapper .wp-block-embed__wrapper iframe {
  width: 100%;
  height: 100%;
}

/* * Leafs
* --------------------------------------------- */
.leaf {
  position: absolute;
  width: 7.5rem;
  height: auto;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

.leaf img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.leaf.left {
  left: 0;
}

.leaf.right {
  right: 0;
}

.leaf.right.order {
  top: 3rem;
}

.leaf.left.order,
.leaf.right.order {
  transform: translateY(0);
}

@media (max-width: 992px) {
  .leaf {
    opacity: 0.5;
  }
}

.z-index-2 {
  z-index: 2;
}

/* * Glitch Effect
* --------------------------------------------- */
.glitch {
  position: relative;
  animation: glitch-skew 1s infinite ease-in-out;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* White glitch shadow */
.glitch::before {
  left: 2px;
  text-shadow: -2px 0 #fff;
  clip: rect(0, 0, 0, 0);
  animation: glitch-anim 2.5s infinite steps(1, end) alternate;
}

/* Blue-grey glitch shadow */
.glitch::after {
  left: -2px;
  text-shadow: -2px 0 #547a8f, 2px 2px #fff;
  clip: rect(0, 0, 0, 0);
  animation: glitch-anim2 2.5s infinite steps(1, end) alternate;
}

/* White glitch shadow */
.glitch.teal::before {
  left: 2px;
  text-shadow: -2px 0 #547a8f;
  clip: rect(0, 0, 0, 0);
  animation: glitch-anim 2.5s infinite steps(1, end) alternate;
}

/* Blue-grey glitch shadow */
.glitch.teal::after {
  left: -2px;
  text-shadow: -2px 0 #547a8f, 2px 2px #547a8f;
  clip: rect(0, 0, 0, 0);
  animation: glitch-anim2 2.5s infinite steps(1, end) alternate;
}

/* Subtle skew every few seconds */
@keyframes glitch-skew {
  0%,
  97%,
  100% {
    transform: none;
  }

  98% {
    transform: skew(-1deg);
  }

  99% {
    transform: skew(2deg);
  }
}

/* Momentary glitch clip box + skew */
@keyframes glitch-anim {
  0%,
  97%,
  100% {
    clip: rect(0, 0, 0, 0);
    transform: none;
  }

  98% {
    clip: rect(20px, 9999px, 40px, 0);
    transform: skew(1deg);
  }

  99% {
    clip: rect(60px, 9999px, 80px, 0);
    transform: skew(-1deg);
  }
}

@keyframes glitch-anim2 {
  0%,
  97%,
  100% {
    clip: rect(0, 0, 0, 0);
    transform: none;
  }

  98% {
    clip: rect(30px, 9999px, 50px, 0);
    transform: skew(-2deg);
  }

  99% {
    clip: rect(70px, 9999px, 90px, 0);
    transform: skew(1deg);
  }
}
