/* 1. Global */
html {
  /* immer vertikale Scroll‑Bar anzeigen (auch wenn nicht scrollbar notwendig) */
  overflow-y: scroll;
  overflow-x: hidden !important;
  overscroll-behavior-x: none;  /* blockiert horizontales Wischen/Scrollen */

}

body {
  font-family: 'Yantramanav', sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden !important;
  overscroll-behavior-x: none;  /* blockiert horizontales Wischen/Scrollen */
}
h1,h2,h3,h4 { font-weight: 600; }







/* ===== Herausforderungen mit eigenem Viewport ===== */
.challenges-section { position: relative; }

.challenges-section .challenge-left {
  position: sticky;
  top: 12vh;                 /* bleibt sichtbar */
  padding-right: 1rem;
}

.challenge-nav {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.challenge-nav-item {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  letter-spacing: .2px;
  opacity: .65;
  transition: opacity .25s ease, transform .25s ease;
}
.challenge-nav-item .num {
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  min-width: 2.2ch;
}
.challenge-nav-item .dot { opacity: .4; }
.challenge-nav-item.is-active { opacity: 1; transform: translateX(2px); }

/* Rechter Bereich: zentriertes eigenes Viewport-Fenster */
.sticky-center {
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
}

.challenge-viewport {
  height: 60vh;             /* eigenes Fenster */
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  border: 0;
  padding-right: .5rem;
}
.challenge-viewport::-webkit-scrollbar { width: 8px; }
.challenge-viewport::-webkit-scrollbar-thumb { background: #d7d7d7; border-radius: 4px; }
.challenge-viewport:hover::-webkit-scrollbar-thumb { background: #c2c2c2; }

.challenge-steps { position: relative; }

.challenge-step {
  min-height: 60vh;         /* füllt das Viewport-Fenster */
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-snap-align: start;
  border-bottom: 1px solid #eee;
  padding: 2rem 1rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s ease, transform .45s ease;
}
.challenge-step:last-child { border-bottom: 0; }
.challenge-step.is-inview { opacity: 1; transform: translateY(0); }

.challenge-step .big-num {
  position: absolute;
  top: 1rem;
  left: 0;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  opacity: .12;
  user-select: none;
}

@media (max-width: 991.98px) {
  .challenges-section .challenge-left { top: 8vh; }
  .challenge-viewport { height: 55vh; }
  .challenge-step { min-height: 55vh; }
}






















/* ===== MID-HIGHLIGHT (zwischen Trenner 1 und 2) ===== */
.mid-highlight { position: relative; }

.mid-figure {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  transform: translateZ(0);
}

.mid-figure-img {
  display: block;
  width: 100%;
  height: auto;
  will-change: transform, filter;
  transition: transform .6s ease, filter .6s ease;
}

.mid-figure:hover .mid-figure-img {
  transform: scale(1.03);
  filter: saturate(1.05);
}

.mid-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mid-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: 1.05rem;
  padding: .6rem 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease;
}

.mid-list li i {
  font-size: 1.25rem;
  color: #4169E1;
  line-height: 1.2;
  margin-top: .15rem;
}

/* Sichtbar-Zustand (durch JS gesetzt) */
#mid-highlight.is-visible .mid-list li {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger-Effekt */
#mid-highlight.is-visible .mid-list li:nth-child(1) { transition-delay: .05s; }
#mid-highlight.is-visible .mid-list li:nth-child(2) { transition-delay: .15s; }
#mid-highlight.is-visible .mid-list li:nth-child(3) { transition-delay: .25s; }

@media (max-width: 992px) {
  .mid-figure { margin-bottom: 1rem; }
}


















/* ------------------------------
   SO FUNKTIONIERTS (Eigenes Scroll‑Fenster)
   ------------------------------*

/* a) Basis‑Layout */
#so-funktionierts {
  position: relative;
  margin: 0;
  padding: 0;
}
#so-funktionierts .home_chall_component {
  display: flex;
  gap: 2rem;
  align-items: flex-start;    /* verhindert, dass der Container selbst mitwächst */
}
#so-funktionierts .home_chall_left {
  flex: 1;
  position: sticky;
  top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* rechter Scroll‑Container: eigenes Viewport‑Fenster */
#so-funktionierts .home_chall_right {
  flex: 2;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;      /* sanftes Snap‑Scrolling */
}

/* jeder Schritt füllt dieses Fenster exakt aus */
#so-funktionierts .home_chall_item {
  height: 100%;                 /* genau Fenster‑Höhe */
  scroll-snap-align: start;     /* Snap an den Anfang jedes Items */
  opacity: 0;
  transform: translateY(50px);
  transition: opacity .6s, transform .6s;
}
#so-funktionierts .home_chall_item.active {
  opacity: 1;
  transform: translateY(0);
}


/* d) Link‑Highlight & Typo */
#so-funktionierts .home_chall_link-item { cursor: pointer; }
#so-funktionierts .home_chall_link-item .dot { opacity: .3; transition: opacity .3s; }
#so-funktionierts .home_chall_link-item.is-active .dot { opacity: 1; }
#so-funktionierts .home_chall_link-item.is-active .chall_side_text { font-weight: 700; }
#so-funktionierts .home_chall_big { font-size: 3rem; font-weight: bold; }







/* Slider für Features */
.slider {
  background: white;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.125);
  height: 150px;
  margin: auto;
  overflow: hidden;
  overflow-x: hidden !important;
  position: relative;
  width: 100%;
  max-width: 100%;

}

.slider::before,
.slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 200px;
  height: 150px;
  z-index: 2;
  background: linear-gradient(to right, white 0%, rgba(255,255,255,0) 100%);
}

.slider::after {
  right: 0;
  transform: rotateZ(180deg);
}

@keyframes scroll {
  0%   { transform: translateX(0); }
  100%{ transform: translateX(-1800px); } /* statisch für 6 Features: 6×300px */
}

.slide-track {
  display: flex;
  width: 3600px; /* 6 Features × 300px × 2 */
  animation: scroll 40s linear infinite;
}

.slide {
  flex: 0 0 300px;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
  box-sizing: border-box;
  overflow-x: hidden !important;

}

.slide i {
  font-size: 2.5rem;
  color: #4169E1;
  margin-bottom: 0.5rem;
}

.slide h5 {
  font-size: 1rem;
  margin: 0;
}

.slide p {
  font-size: 0.875rem;
  margin: 0.25rem 0 0;
}





/* Scroll-Fenster mittig kleben */
.sticky-center {
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
}



.home_chall_right{
  height: 15vh !important; 

}





/* 2. Hero */
.landing-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: #fff;
  text-align: center;
}
.landing-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.landing-hero .container { position: relative; z-index: 1; }
.landing-hero h1 { font-size: 3.5rem; margin-bottom: 1rem; }
.landing-hero p { font-size: 1.25rem; margin-bottom: 2rem; }
.landing-hero .btn { min-width: 200px; }

/* 3. Section‑Headings */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* 4. Warum-InstantJob */
#why .feature {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
#why .feature-icon {
  font-size: 2rem;
  color: #007bff;
  flex-shrink: 0;
}

/* 5. Rollen‑Cards */
.role-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 4rem 0;
}
.role-card {
  flex: 1;
  border-radius: .75rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
  transition: flex .4s ease, transform .3s ease;
  cursor: pointer;
  position: relative;
}
.role-card:not(.active):hover {
  transform: translateY(-5px);
}
.role-card.active { flex: 2; }
.role-card img {
  width:100%; display:block;
  object-fit: cover;
  height: 250px;
}
.role-card .body {
  padding: 2rem;
}
.role-card .body h3 { margin-bottom: 1rem; }
.role-card .body p { margin-bottom: 1rem; }
.role-card .body ul {
  list-style: none;
  padding: 0;
}
.role-card .body ul li::before {
  content: '✓';
  color: #28a745;
  margin-right: .5rem;
}

/* 6. CTA */
.landing-cta {
  background: #007bff;
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
}
.landing-cta .btn { min-width: 250px; }

/* 7. Lazy-load Placeholder */
img[loading='lazy'] {
  filter: blur(5px);
  transition: filter .5s ease-out;
}
img[loading='lazy'].lazyloaded {
  filter: blur(0);
}

/* 8. Responsive Gaps */
@media (max-width: 768px) {
  .role-cards { flex-direction: column; }
}

/* Header & Nav */
.header-divider {
  width: 90%; height: 1px; background-color: #e0e0e0;
  margin: 1.5rem auto; border-radius: 1px; opacity: 0.75;
}
.header  { background: white; padding: 1rem; padding-bottom: 3rem; }
.nav     { display: flex; justify-content: space-between; align-items: center; }
.logo    { font-size: 1.5rem; font-weight: 700; color: var(--accent); text-decoration: none; }
.nav-links { list-style: none; display: flex; gap: 1.5rem; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 500; }
.btn      { display: inline-block; padding: 0.75rem 1.5rem; border-radius: 2rem; text-decoration: none; font-weight: 600; transition: opacity 0.3s; }
.btn-signup { font-size: 26px !important; }
.btn-primary   { background: var(--accent); color: var(--light); }
.btn-primary:hover { opacity: 0.9; }
.btn-secondary { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-secondary:hover { background: var(--accent); color: var(--light); }
