/****** 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;

  /* modern 2026 tokens */
  --accent: #3bbc84;
  --accent-deep: #349649;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-border: rgba(255, 255, 255, 0.12);
  --text-muted: rgba(255, 255, 255, 0.66);
  --radius: 16px;
  --radius-lg: 24px;
  --space-section: clamp(90px, 14vh, 180px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 40px -6px rgba(59, 188, 132, 0.45);
}

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: var(--space-section);
  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: 1.04;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  filter: --text-shadow;

  color: #ffffff;
  margin-top: var(--main-distance);
  margin-bottom: var(--main-distance);

  text-align: center;
}

h3 {
  filter: --text-shadow;
  font-family: Mulish, sans-serif;

  font-style: normal;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 1px;
  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: clamp(2rem, 5vw, 3rem);
}

.h3-size {
  font-size: 56px;
}

.h4-size {
  font-size: 24px;
}

p {
  color: var(--text-muted);
  font-family: Mulish;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  font-style: normal;
  font-weight: 300;
  line-height: 1.65;
}

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;
}

.white-shadow {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

/****** 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-text h2 {
  text-align: left;
}

.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;
}

.footer-right p {
  color: #fff;
}

.footer-right a {
  text-transform: none;
  letter-spacing: normal;
  font-size: 1rem;
  font-weight: 300;
}

/*** 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 ****/

/****** MODERN 2026 REFINEMENTS START ******/

/* Shared building blocks */
.eyebrow {
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-lead {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

/* Section heading outside a .container (#we-do) */
#we-do>.h2-size {
  max-width: 1200px;
  width: 100%;
  padding: 0 var(--main-distance);
  margin-left: auto;
  margin-right: auto;
}

/* Navigation CTA pill */
.nav-cta {
  display: inline-block;
  padding: 12px 26px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: background-color 0.3s var(--ease-out),
    color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.nav-cta:hover {
  opacity: 1;
  background-color: var(--accent);
  color: #06150e;
  box-shadow: var(--shadow-glow);
}

/* Scroll reveal (only hidden when JS is active) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 56px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.stat-value {
  font-family: "Mulish", sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
}

.stat-label {
  color: var(--text-muted);
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.process-step {
  position: relative;
  padding: 32px 26px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.process-step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gradient-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.process-step:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 188, 132, 0.5);
  box-shadow: var(--shadow-soft);
}

.process-step:hover::before {
  transform: scaleX(1);
}

.process-no {
  display: block;
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 18px;
  background: var(--gradient-main);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.process-title {
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.process-step p {
  font-size: 0.98rem;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
  margin-top: 48px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 36px 30px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.testimonial-card blockquote {
  margin: 0;
  position: relative;
  padding-top: 36px;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.6;
  color: #fff;
}

.testimonial-card blockquote::before {
  content: "\201C";
  position: absolute;
  top: -6px;
  left: -4px;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.6;
}

.testimonial-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--surface-border);
  padding-top: 18px;
}

.testimonial-author {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.testimonial-role {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Button glow polish */
.say-hi-button:hover,
.btn-sec:hover {
  box-shadow: var(--shadow-glow);
}

/* Project card hover polish */
.project-card {
  transition: transform 0.4s var(--ease-out);
}

.project-card:hover {
  transform: translateY(-6px);
}

/* Responsive */
@media (max-width: 999px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .hero-nav ul {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px 18px;
  }

  .hero-nav a {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/****** MODERN 2026 REFINEMENTS END ******/