:root {
  --accent: #ff8200;
}

/* GPU-Beschleunigung für bessere Performance */
#hex-large,
#hex-small,
#hero-text h1,
#hero-line,
#hero-text-p,
#hero-image,
#experte h2,
#experte .col-12,
#experte .custom-btn,
#experte + section .col,
#kernkompetenzen .col,
.usp_section .item,
.contact-form-container form,
.contact-video-container video {
  will-change: transform, opacity;
}
.sht-hero {
  background: linear-gradient(135deg, #014672, #036ea5);
  color: white;
  padding: 6.25rem 1.25rem 3.75rem;
  height: 62.5rem;
  position: relative;
  z-index: 0;
}

.sht-hero__container {
  max-width: 100rem;
  margin: 0 auto;
  position: relative;
  height: 100%;
}

.sht-hero__text {
  position: absolute;
  top: 12.5rem;
  left: 8.75rem;
  width: 37.5rem;
  z-index: 2;
}

.sht-hero__image {
  position: absolute;
  top: 12.5rem;
  left: 56.25rem;
  width: 38.75rem;
  border: 0.25rem solid var(--accent);
  padding: 0.25rem;
  background-color: white;
  z-index: 2;
  /* Initial state for 3D reveal */
  opacity: 0;
  transform: perspective(1000px) rotateY(15deg) translateX(5rem);
  will-change: transform, opacity, box-shadow;
}

.sht-hero__image.animate-pulse {
  animation: sht-pulse 2s infinite alternate ease-in-out;
}

@keyframes sht-pulse {
  0% {
    box-shadow: 0 0 10px rgba(255, 130, 0, 0.2);
  }
  100% {
    box-shadow: 0 0 30px rgba(255, 130, 0, 0.6);
  }
}

.sht-hero__image img {
  width: 100%;
  height: auto;
  display: block;
}

.sht-hero__text h1 {
  font-size: 3.125rem;
  margin-bottom: 0.625rem;
  position: relative;
  width: 56.25rem;
  overflow: visible; /* Wichtig für carets */
}

#sht-animate-welcome {
  display: inline-block;
  position: relative;
  font-weight: 700;
  /* 2-stufiger Gradient: Weiß -> Transparent */
  background: linear-gradient(90deg, #fff 50%, rgba(255, 255, 255, 0) 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#hero-text-p {
  font-size: 1.5625rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  position: relative;
  display: inline-block;
  /* 2-stufiger Gradient: Weiß -> Transparent */
  background: linear-gradient(90deg, #fff 50%, rgba(255, 255, 255, 0) 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sht-hero__text h1 span {
  display: inline-block;
  position: relative;
  font-size: 2.625rem;
  /* 3-stufiger Gradient: Orange -> Weiß -> Transparent */
  background: linear-gradient(
    90deg,
    var(--accent) 33.33%,
    #fff 33.33%,
    #fff 66.66%,
    rgba(255, 255, 255, 0) 66.66%
  );
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.sht-fake-cursor {
  position: absolute;
  width: 3px;
  height: 2.8rem;
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  will-change: transform, opacity;
}

.sht-fake-cursor--white {
  background-color: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.sht-fake-cursor--orange {
  background-color: var(--accent);
  box-shadow: 0 0 8px rgba(255, 130, 0, 0.4);
}

.sht-hero__line {
  width: 0;
  height: 0.25rem;
  background-color: #ff8200;
  margin: 3.125rem 0;
  animation: expandLine 1.2s ease-out forwards;
}

@keyframes expandLine {
  from {
    width: 0;
  }
  to {
    width: 12.5rem;
  }
}

.sht-hero__text p {
  font-size: 1.5625rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.sht-btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  border-radius: 1.875rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-right: 0.75rem;
  margin-top: 0.625rem;
  border: 0.125rem solid transparent;
}

#hero-buttons .sht-btn {
  opacity: 0;
  transform: scale(0);
  position: relative;
  overflow: hidden; /* Für den Glanz-Effekt */
}

/* Glanz-Effekt (Shine) */
#hero-buttons .sht-btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -100%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  transition: none;
  pointer-events: none;
}

#hero-buttons .sht-btn.animate-shine::after {
  animation: sht-shine 0.8s ease-out forwards;
}

@keyframes sht-shine {
  100% {
    left: 150%;
  }
}

.sht-btn--primary {
  background-color: #ff8200;
  color: white;
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 2rem;
  font-size: 1.05rem;
  border: none;
  box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.sht-btn--primary:hover {
  background-color: #be6403;
  box-shadow: 0 0.375rem 1rem rgba(0, 0, 0, 0.3);
  transform: translateY(-0.125rem);
}

.sht-btn--secondary {
  background-color: transparent;
  color: white;
  border: 0.125rem solid white;
}

.sht-btn--secondary:hover {
  background-color: white;
  color: #113c5b;
  box-shadow: 0 0 0.625rem rgba(255, 255, 255, 0.3);
  transform: translateY(-0.125rem);
}

.custom-btn {
  background-color: #ff8200;
  color: white;
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 2rem;
  font-size: 1.05rem;
  border: none;
  box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
  margin-bottom: 3.75rem;
}

.custom-btn:hover {
  background-color: #be6403;
  box-shadow: 0 0.375rem 1rem rgba(0, 0, 0, 0.3);
  transform: translateY(-0.125rem);
}

/* Hexagon */
.sht-hero__hexagon {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.075);
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  z-index: 1;
}

.sht-hero__hexagon--large {
  width: 31.25rem;
  height: 31.25rem;
  top: 12.5rem;
  right: 1.25rem;
  z-index: 1;
}

.sht-hero__hexagon--small {
  width: 31.25rem;
  height: 31.25rem;
  bottom: 4.375rem;
  left: 50rem;
}

/* Kartenbereich */
.hebezeuge {
  margin-bottom: 3.125rem;
}

/* Expert Section Animations */
.expert-card-animate {
  opacity: 0;
  transform: perspective(1000px) rotateY(-15deg) translateX(100px)
    translateZ(-50px);
  will-change: transform, opacity;
}

.expert-card-animate .card {
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.expert-card-animate .card:hover {
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateY(-10px);
  box-shadow:
    0 20px 40px rgba(255, 130, 0, 0.3),
    0 0 20px rgba(255, 130, 0, 0.2);
}

.expert-card-animate .card:hover img {
  transform: scale(1.05);
}

.expert-card-animate .card img {
  transition: transform 0.3s ease;
}

.expert-btn-animate {
  opacity: 0;
  transform: scale(0);
  will-change: transform, opacity;
  position: relative;
}

.expert-btn-animate.glow-pulse {
  animation: expert-glow-pulse 2s ease-in-out infinite;
}

@keyframes expert-glow-pulse {
  0%,
  100% {
    box-shadow:
      0 0.25rem 0.625rem rgba(0, 0, 0, 0.2),
      0 0 20px rgba(255, 130, 0, 0.4);
  }
  50% {
    box-shadow:
      0 0.25rem 0.625rem rgba(0, 0, 0, 0.2),
      0 0 30px rgba(255, 130, 0, 0.7);
  }
}

/* Why SHT Section Animations */
.why-sht-title-animate {
  opacity: 0;
  transform: translateY(-30px) scale(0.95);
  will-change: transform, opacity;
}

.why-card-animate {
  opacity: 0;
  transform: translateY(50px) scale(0.9);
  will-change: transform, opacity;
}

.why-card-animate .icon-wrapper i {
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Icon bounce on card hover */
.why-card-animate:hover .icon-wrapper i {
  animation: icon-bounce 0.6s ease;
}

@keyframes icon-bounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  25% {
    transform: translateY(-10px) scale(1.1);
  }
  50% {
    transform: translateY(0) scale(1);
  }
  75% {
    transform: translateY(-5px) scale(1.05);
  }
}

/* Category Card */
.category-card {
  overflow: hidden;
  border-radius: 0.75rem;
  border: 0.1875rem solid #ff8200;
  position: relative;
  perspective: 62.5rem;
  transform-style: preserve-3d;
  transform-origin: center;
  transition:
    transform 0.4s ease,
    box-shadow 0.3s ease;
}

.category-card:hover {
  transform: scale(1.03) rotateZ(1deg);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.category-card img {
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto;
  max-width: 12.5rem;
  max-height: 12.5rem;
  object-fit: contain;
}

/* USP Section */
.usp_section {
  background: linear-gradient(135deg, #ff8200 0%, #ffaa4d 100%);
  padding: 3.125rem 1.25rem 5rem;
  clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
  color: rgb(0, 0, 0);
  text-align: center;
}

.usp_section .item {
  padding: 1.875rem 0.9375rem;
  margin: 1.25rem 0;
  color: rgb(0, 0, 0);
}

.usp_section .item img {
  width: 8.5rem;
  height: auto;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 0.125rem 0.375rem rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.usp_section .item:hover img {
  transform: scale(1.1) rotate(3deg);
}

.usp_section .item h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03125rem;
}

.usp_section .item p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.95;
  margin: 0 auto;
  max-width: 17.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .usp_section {
    clip-path: none;
    padding: 3.75rem 0.9375rem;
  }

  .usp_section .item {
    padding: 1.25rem 0.625rem;
  }

  .usp_section .item h3 {
    font-size: 1.1rem;
  }

  .usp_section .item p {
    font-size: 0.95rem;
  }

  .text-center .custom-btn {
    width: 18.75rem;
  }
}

@media (max-width: 1024px) {
  .sht-hero__container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .sht-hero__text,
  .sht-hero__image {
    flex: 1 1 100%;
    max-width: 90%;
  }

  .sht-hero__text h1 {
    font-size: 2.25rem;
  }

  .sht-hero__text h1 span {
    font-size: 1.75rem;
  }

  .sht-hero__line {
    margin: 1.25rem auto;
  }

  .sht-hero__text p {
    font-size: 1.125rem;
  }

  #hero-buttons a {
    display: block;
    width: 100%;
    max-width: 17.5rem;
    margin: 0.625rem auto;
  }
}

@media (max-width: 768px) {
  .sht-hero__text,
  .sht-hero__image {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .sht-hero__text {
    padding: 0 0.9375rem;
  }

  .sht-hero__image {
    margin-top: 1.875rem;
  }

  .sht-hero__text h1 {
    margin-top: 1.875rem;
    width: 100% !important;
    max-width: 100%;
    text-align: center;
    margin: 0 auto 0.625rem;
  }
}

@media (max-width: 576px) {
  .sht-hero__text h1 {
    margin-top: 1.875rem;
    font-size: 1.625rem;
    line-height: 1.3;
    text-align: center;
  }

  .sht-hero__text h1 span {
    display: block;
    margin-top: 0.375rem;
    font-size: 1.375rem;
  }
}

@media (max-width: 768px) {
  .custom-btn {
    padding: 1rem;
  }
}

/* ===================== */
/* ====== ANIMATIONEN ====== */
/* ===================== */

.fade-in-up {
  opacity: 0;
  transform: translateY(2.5rem);
  transition: all 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up.delay-1 {
  transition-delay: 0.2s;
}
.fade-in-up.delay-2 {
  transition-delay: 0.4s;
}
.fade-in-up.delay-3 {
  transition-delay: 0.6s;
}
.fade-in-up.delay-4 {
  transition-delay: 0.8s;
}
.fade-in-up.delay-5 {
  transition-delay: 1s;
}
.fade-in-up.delay-6 {
  transition-delay: 1.2s;
}

/* Honeypot unsichtbar, aber erreichbar für Screenreader-Ausblendung */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ===================== */
/* === SCROLL PROGRESS === */
/* ===================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #ff8200, #ffaa4d, #ff8200);
  z-index: 10000;
  transition: none;
  pointer-events: none;
}

/* ===================== */
/* === HEADING REVEAL == */
/* ===================== */
.heading-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px) rotateX(-40deg);
  transition:
    opacity 0.4s ease,
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.heading-revealed .heading-char {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

/* ===================== */
/* === PARALLAX BG ===== */
/* ===================== */
.parallax-bg {
  background-attachment: fixed;
  background-size: cover;
  will-change: background-position;
}

/* ===================== */
/* === ICON PULSE ====== */
/* ===================== */
.icon-pulse {
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

/* ===================== */
/* === CARD SHINE HOVER  */
/* ===================== */
.card-shine {
  position: relative;
  overflow: hidden;
}

.card-shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: skewX(-25deg);
  transition: none;
  pointer-events: none;
}

.card-shine:hover::after {
  animation: cardShine 0.6s ease-out forwards;
}

@keyframes cardShine {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

/* ===================== */
/* === KERN STAGGER ==== */
/* ===================== */
#kernkompetenzen .col {
  opacity: 0;
  transform: translateY(50px) scale(0.92);
}

#kernkompetenzen .col.kern-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===================== */
/* === SLIDE-IN CONTACT  */
/* ===================== */
.contact-form-container {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-form-container.slide-in-left {
  opacity: 1;
  transform: translateX(0);
}

.contact-video-container {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.2s;
}

.contact-video-container.slide-in-right {
  opacity: 1;
  transform: translateX(0);
}

/* ===================== */
/* === TILT CARDS ======= */
/* ===================== */
.category-card {
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.category-card:hover {
  box-shadow:
    0 1.5rem 3rem rgba(255, 130, 0, 0.2),
    0 0 0 2px rgba(255, 130, 0, 0.3);
}

/* ===================== */
/* == USP STAGGER ANIM == */
/* ===================== */
.usp_section .item {
  opacity: 0;
  transform: translateY(40px) scale(0.9);
}

.usp_section .item.usp-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===================== */
/* == MAGNETIC BUTTONS == */
/* ===================== */
.magnetic-btn {
  transition: transform 0.2s ease-out;
}
