/****** GLOBAL START *****/
:root {
  --gradient-main: linear-gradient(150deg, #349649 54.59%, #3bbc84 79.87%);
  --gradient-white-light-green: linear-gradient(150deg,
      #ffffff 54.59%,
      #3bbc84 79.87%);
  --text-bg-gradient: linear-gradient(180deg,
      rgba(0, 0, 0, 0) 66.44%,
      rgba(0, 0, 0, 0.59) 78.94%);
  --text-shadow: drop-shadow(0 0 7px rgba(0, 0, 0, 0.5));
  --main-distance: 20px;
  --hero-padding: 30px;
}

html {
  scroll-behavior: smooth;
}

@font-face {
  font-family: "Mulish";
  src: url("https://hesteig.de/assets/font/Mulish-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Mulish", sans-serif;
  background: rgb(0, 0, 0);
  color: white;
  overflow-x: hidden;
}

#content-before-footer {
  background: var(--bg_gradient,
      linear-gradient(172deg,
        #000000 20.72%,
        #1d1d1d 37.95%,
        #05051b 74.7%,
        #1b1922 95.99%,
        #1b1922 99.99%));
  margin-bottom: 45vh;
  box-shadow: #00000056 2px 2px 30px;
  padding-bottom: 2vh;
}

.flex {
  display: flex;
  justify-content: center;
}

.p-main {
  padding: var(--main-distance);
}

.container {
  padding: var(--main-distance);
  max-width: 1200px;
  width: 100%;
}

.p-0 {
  padding: 0;
}

.hesteigBackground {
  background-color: #000000;
  background-image: url("./assets/looping-web-background.jpg");
  background-repeat: repeat, repeat;

  background-size: 500px;
}

section {
  margin-bottom: 200px;
  scroll-margin-top: 150px;
}

/****** GLOBAL ENDE *****/

/****** FONT START *****/
h1 {
  padding: 4px;
  font-family: Mulish, sans-serif;
  text-transform: uppercase;
}

h2 {
  padding: 4px;
  font-family: Mulish, sans-serif;

  font-style: normal;
  font-weight: 800;
  line-height: 90%;
  letter-spacing: 5.4px;
  text-transform: capitalize;
  filter: --text-shadow;

  color: #ffffff;
  margin-top: var(--main-distance);
  margin-bottom: var(--main-distance);

  text-align: center;
  text-transform: uppercase;
}

h3 {
  filter: --text-shadow;
  font-family: Mulish, sans-serif;

  font-style: normal;
  font-weight: 800;
  line-height: 90%;
  letter-spacing: 5.4px;
  text-transform: capitalize;
  color: #ffffff;
  text-transform: uppercase;
}

h4 {
  color: #fff;
  font-family: Mulish, sans-serif;

  font-style: normal;
  font-weight: 800;
  line-height: normal;
}

.h1-size {
  font-size: 56px;
}

.h2-size {
  font-size: 48px;
}

.h3-size {
  font-size: 56px;
}

.h4-size {
  font-size: 24px;
}

p {
  color: #fff;
  font-family: Mulish;
  font-size: 20px;
  font-style: normal;
  font-weight: 200;
  line-height: normal;
}

a {
  font-family: "Mulish", sans-serif;
  font-size: 20px;
  font-weight: 200;
  line-height: 90%;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.3s ease;
  filter: var(--text-shadow);
}

a:hover {
  opacity: 0.7;
}

.text-fill-gradient {
  background: var(--gradient-main);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/****** FONT ENDE *****/

/****** BUTTON START *****/
.say-hi-button {
  opacity: 1 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 30px 80px;
  border: 2px solid transparent;
  border-image: var(--gradient-main) 4;
  background-image: linear-gradient(150deg, #349649 0%, rgb(0, 0, 0) 70%);
  background-size: 300%;
  background-position: right;
  color: #fff;
  text-align: center;
  font-family: "Mulish", sans-serif;
  font-style: normal;
  font-weight: 800;
  line-height: 90%;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-position 0.2s ease;
}

.say-hi-button:hover {
  background-position: left;
}

.btn-sec {
  display: inline-block;
  opacity: 1 !important;

  padding: 30px 80px;
  border: 2px solid rgb(255, 255, 255);
  background-color: rgba(0, 0, 0, 0);

  background: linear-gradient(150deg, #000000 0%, rgba(0, 0, 0, 0.055) 70%);
  background-size: 300%;
  background-position: right;
  color: #fff;
  text-align: center;
  font-family: "Mulish", sans-serif;
  font-style: normal;
  font-weight: 800;
  line-height: 90%;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-position 0.2s ease;
}

.btn-sec:hover {
  background-position: left;
}

/****** BUTTON END *****/

/*** HERO START ****/
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 900px;
  padding: var(--hero-padding);
  box-sizing: border-box;
  overflow: hidden;
}

.hero-video,
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero-overlay {
  background: linear-gradient(270deg,
      rgba(0, 0, 0, 0) -0.34%,
      rgba(0, 0, 0, 0.24) 50.71%);
}

.hero-inner {
  position: relative;
  height: 100%;
  width: 100%;
  border: 5px solid;
  border-image: var(--gradient-white-light-green) 1;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  padding: var(--hero-padding);
  display: flex;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(3rem, 18vw, 14rem);
  font-weight: 800;
  line-height: 0.9;
  text-transform: uppercase;
}

.hero-line {
  padding-left: 3px;
  display: block;
}

.hero-line.white {
  background: none;
  -webkit-text-fill-color: #fff;
}

.hero-header {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  padding: var(--hero-padding);
  display: flex;
  justify-content: right;
  align-items: center;
  z-index: 4;
}

.hero-logo {
  width: 120px;
  height: auto;
}

#hero-logo-div {
  position: absolute;
  bottom: 0;
  bottom: 0;
  width: 100%;
  padding: var(--hero-padding);
  display: flex;
  justify-content: right;
  align-items: center;
  z-index: 4;
}

.hero-nav ul {
  display: flex;
  gap: var(--main-distance);
  list-style: none;
  margin: 0;
  padding: 0;
}

/*** HERO END ****/

/*** HEADER START ****/
.light-animation-distance {
  width: 100%;
  height: 10vh;
}

#lightanimation-header {
  position: static;
  top: -20vw;
  padding: 20px 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

#small-header {
  position: sticky;
  top: 0;
  background: #000;
  padding: 20px 0;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  opacity: 1;
  margin-top: -27%;
}

#small-header-always {
  position: sticky;
  top: 0;
  background: #000;
  padding: 20px 0;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.hesteig-logo {
  width: 160px;
  height: auto;
}

/*** HEADER END ****/

/****** CARD START *****/

.border-grad-card {
  border: 1px solid transparent;
  border-image: var(--gradient-white-light-green) 4;
}

.project-card {
  aspect-ratio: 6 / 10;
  width: 380px;
  max-width: 80vw;
  margin: 0;
  flex: 0 0 auto;
}

.project-card h4 {
  text-transform: uppercase;
}

.project-card .Xcard-content {
  background: var(--text-bg-gradient);
}

#card-video .Xcard-bg-img {
  background-image: url(assets/vivalamalle2025.webp);
}

#card-visuals .Xcard-bg-img {
  background-image: url(assets/gibson2024c.webp);
}

#card-light .Xcard-bg-img {
  background-image: url(assets/universe2024b.webp);
}

#card-live .Xcard-bg-img {
  background-image: url(assets/sgf2025c.webp);
}

#card-visuals,
#card-light,
#card-video {
  aspect-ratio: 1/1;
}

#card-live p {
  padding-bottom: 40px;
}

.Xcard {
  position: relative;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

.Xcard-content {
  padding: var(--main-distance);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.Xborder-grad-card {
  border: 1px solid transparent;
  border-image-outset: 0;
  border-image-repeat: stretch;
  border-image-slice: 100%;
  border-image-source: none;
  border-image-width: 1;
  border-image: var(--gradient-white-light-green) 4;
  min-height: 30px;
  /** damit Rendern nicht blockiert wird */
}

.Xcard-bg-img {
  background-size: cover;
  background-position: center;
  height: 100%;
  padding: var(--main-distance);
  background-clip: content-box;
  background-origin: padding-box;
}

.Xcard-max-size-1-1 {
  min-height: 0vh;
  width: 100%;
  max-width: 600px;

  height: 100%;
}

.tl {
  justify-content: flex-start;
  align-items: flex-start;
}

.tr {
  justify-content: flex-end;
  align-items: flex-start;
}

.bl {
  justify-content: flex-start;
  align-items: flex-end;
}

.br {
  justify-content: flex-end;
  align-items: flex-end;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  padding: 0px 0px;
}

/****** CARD ENDE *****/

/***********FOOTER START***************/
#footer-space {
  height: 600px;
}

.sticky-footer {
  height: 50vh;
  flex-direction: column;
  width: 100%;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 0;
  z-index: -1;
}

.footer-bottom {
  position: absolute;
  width: 100%;
  background: var(--gradient-main);
  padding: var(--main-distance) 0;
  bottom: 0;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: clamp(5px, 5vw, 120px);
  padding: 0;
  margin: 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
  width: 100%;
}

.footer-left {
  flex: 1;
  display: flex;
  justify-content: right;
  align-items: right;
  padding-right: 30px;
}

.footer-logo {
  max-height: 120px;
  width: 20vw;
  object-fit: contain;
}

.footer-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: left;
  align-items: left;

  padding: 30px;
  border-left: white 2px solid;
}

/*** FOOTER END ***/

/*** Outline animation START ****/
#imgContainer {
  z-index: 2;
  position: relative;
  width: 100%;
  aspect-ratio: 820/337;
}

#svgPlacer,
#pngPlacer {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: auto;
  display: inline-block;
  pointer-events: none;
}

#pngPlacer {
  opacity: 0;
  transition: opacity 0.1s ease-in-out;
}

svg path {
  fill: none !important;
  stroke-width: 3 !important;

  stroke-linejoin: round;
  transition: stroke-dashoffset 0.4s ease-out, stroke 1s ease-in-out;
}

.fade-to-white svg path {
  stroke: #ffffff;
}

/*** Outline animation END ****/

/*** TEXT + IMG SECTION START ****/
.about-us-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--main-distance);
  align-items: stretch;
}

.about-text,
.about-image {
  flex: 1 1 400px;
}

.about-image {
  aspect-ratio: 1/1;
}

.about-text h2,
.about-text p {
  margin-bottom: 1.75rem;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*** TEXT + IMG SECTION END ****/

/*** RANDOM ***/
.scroll-wrapper {
  display: flex;
  gap: var(--main-distance);
  overflow-x: auto;
  overflow-y: hidden;
  padding-top: var(--main-distance);
  padding-bottom: var(--main-distance);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.text-box-shadow {
  box-shadow: 0px 0px 40px 10px rgba(0, 0, 0, 0.41);
  background-color: rgba(0, 0, 0, 0.29);

  /* backdrop-filter: blur(2.5px);
  -webkit-backdrop-filter: blur(2.5px);*/
}

.green-container {
  width: 100%;
  background: var(--gradient-main);
  padding-top: 120px;
  padding-bottom: 120px;
}

.green-container h2 {
  text-align: left;
  font-size: clamp(3.5rem, 7vw, 7rem);
}

.green-container p {
  margin-bottom: 40px;
}

.footer-bottom a {
  font-size: 14px;
}

.footer-innerX a {
  text-decoration: underline;
  text-decoration-color: #349649;
  text-decoration-thickness: 2px;
}

/*** MEDIA BREAKPOINTS START ****/
@media (max-width: 768px) {
  .about-us {
    flex-direction: column;
    padding: 40px var(--main-distance);
  }

  .about-text,
  .about-image {
    max-width: 100%;
  }

  p,
  a {
    font-size: 16px;
  }

  .hero-section {
    padding: 15px;
  }

  .card-max-size-1-1 {
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 999px) {
  .d-none-small-screen {
    display: none !important;
  }

  #lightanimation-header {
    position: sticky;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {}

/*** MEDIA BREAKPOINTS END ****/