/* ==========================================================================
   DOSTER Karriereseite – Bewegung & Effekte (Klon, Desktop-Fokus)
   Premium-Hero mit Buchstaben-Animation, Bildkompositionen, laufende Bänder,
   wortweise einfahrende Überschriften, Vorhang-Bilder, Parallax, Hover.
   ========================================================================== */
:root {
  --section-y: 92px;
  --ease-x: cubic-bezier(.16, 1, .3, 1);
}
.section-head { margin-bottom: 52px; }

/* ---------- Scroll-Fortschritt ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 150; height: 3px; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--c-cyan-btn), var(--c-magenta)); transform: scaleX(0); transform-origin: 0 50%; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero--x {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 100vh; min-height: 100svh;
  padding: 128px 0 0;
  overflow: hidden;
  background: #14171b;
  isolation: isolate;
}
.hero--x::after { /* feines Raster, kaum sichtbar */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(80% 70% at 70% 40%, #000 0%, transparent 75%); mask-image: radial-gradient(80% 70% at 70% 40%, #000 0%, transparent 75%);
}
.hero__aurora { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__aurora i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform; }
.hero__aurora i:nth-child(1) { width: 620px; height: 620px; left: 52%; top: -12%; background: radial-gradient(closest-side, rgba(4,172,238,.55), transparent); animation: aur1 18s ease-in-out infinite alternate; }
.hero__aurora i:nth-child(2) { width: 520px; height: 520px; left: 70%; top: 45%; background: radial-gradient(closest-side, rgba(235,1,138,.35), transparent); animation: aur2 22s ease-in-out infinite alternate; }
.hero__aurora i:nth-child(3) { width: 700px; height: 700px; left: -12%; top: 30%; background: radial-gradient(closest-side, rgba(4,172,238,.22), transparent); animation: aur3 26s ease-in-out infinite alternate; }
@keyframes aur1 { to { transform: translate(-140px, 90px) scale(1.15); } }
@keyframes aur2 { to { transform: translate(-180px, -110px) scale(.9); } }
@keyframes aur3 { to { transform: translate(160px, -60px) scale(1.1); } }
.hero__frost { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; width: 100%; }
.hero--x .hero__copy > * { max-width: 620px; }
.hero--x .hero__inner, .hero--x .hero__media, .hero--x .hero__shade { display: none; }
.hero__eyebrow { margin-bottom: 26px; }
.hero__pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--c-cyan); flex: none; }
.hero__pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--c-cyan); animation: pulse 2.2s var(--ease-x) infinite; }
.hero__eyebrow::before { display: none; }
@keyframes pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.hero--x .hero__title {
  max-width: 640px;
  margin: 0 0 26px;
  font-size: clamp(44px, 4.3vw, 66px);
  line-height: 1.02;
  letter-spacing: .2px;
}
/* Buchstaben steigen aus einer Maske */
[data-split] .sw { display: inline-block; white-space: nowrap; }
[data-split] .nw { white-space: nowrap; }
.hero--x { padding-top: 112px; }
.hero--x .hero__title { font-size: clamp(40px, 3.9vw, 60px); margin-bottom: 22px; }
.hero--x .hero__lead { font-size: 15.5px; line-height: 1.7; margin-bottom: 28px; max-width: 600px; }
.hero--x .hero__actions { margin-bottom: 26px; }
.hero--x .hero__trust { padding-top: 16px; }
.hero__ticker { margin-top: 40px; }
.hero__visual { height: min(62vh, 600px); }
[data-split="chars"] .sc { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split="chars"] .sc > i { display: inline-block; font-style: normal; transform: translateY(105%) rotate(6deg); filter: blur(6px); opacity: 0; transition: transform 1s var(--ease-x), filter 1s var(--ease-x), opacity .6s ease; transition-delay: var(--d, 0ms); }
.is-in[data-split="chars"] .sc > i { transform: none; filter: none; opacity: 1; }
/* Lichtschimmer über die blauen Wörter */
.hero__title em .sc > i { color: var(--c-cyan); }
.hero__title.is-shine em .sc > i { animation: glint 5.5s ease-in-out infinite; animation-delay: var(--g, 0ms); }
@keyframes glint { 0%, 12%, 100% { color: var(--c-cyan); text-shadow: none; } 5% { color: #e9f8ff; text-shadow: 0 0 18px rgba(127, 216, 255, .9); } }

.hero--x .hero__lead, .hero--x .hero__actions, .hero--x .hero__trust, .hero--x .hero__eyebrow { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform 1.1s var(--ease-x); }
.hero--x.is-ready .hero__eyebrow { opacity: 1; transform: none; }
.hero--x.is-ready .hero__lead { opacity: 1; transform: none; transition-delay: .7s; }
.hero--x.is-ready .hero__actions { opacity: 1; transform: none; transition-delay: .85s; }
.hero--x.is-ready .hero__trust { opacity: 1; transform: none; transition-delay: 1s; }
.hero--x .hero__lead { font-size: 16.5px; margin-bottom: 34px; color: rgba(255,255,255,.74); }
.hero--x .hero__actions { margin-bottom: 36px; }

/* Glanz über den Hauptbutton */
.button--shine { position: relative; overflow: hidden; }
.button--shine::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: shine 4.5s ease-in-out 2s infinite; }
@keyframes shine { 0% { left: -60%; } 22%, 100% { left: 130%; } }

/* Bildkomposition rechts */
.hero__visual { position: relative; height: min(66vh, 620px); }
.hv { position: absolute; margin: 0; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); will-change: transform; }
.hv img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.18); transition: transform 2.2s var(--ease-x); }
.hv { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-x); }
.hero--x.is-ready .hv { clip-path: inset(0 0 0 0); }
.hero--x.is-ready .hv img { transform: scale(1.02); }
.hv--main { left: 18%; top: 4%; width: 54%; height: 88%; transition-delay: .35s; }
.hv--main img { object-position: 30% 30%; }
.hv--top { right: 0; top: 0; width: 38%; height: 34%; transition-delay: .6s; }
.hv--bottom { left: 0; bottom: 0; width: 34%; height: 40%; transition-delay: .8s; }
.hv--top img, .hv--bottom img { transition-delay: .3s; }
.hv-float { animation: floaty 7s ease-in-out infinite; }
.hv-icon { position: absolute; width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0,0,0,.5)); opacity: 0; transition: opacity .8s ease 1.3s; }
.hero--x.is-ready .hv-icon { opacity: 1; }
.hv-icon--a { right: 8%; top: 40%; }
.hv-icon--b { left: 6%; top: 18%; width: 84px; height: 84px; }
.hv-chip {
  position: absolute; right: 4%; bottom: 8%;
  display: flex; align-items: center; gap: 10px;
  margin: 0; padding: 12px 18px;
  background: rgba(20, 23, 27, .55);
  border: 1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: #fff; font-family: var(--f-head); font-size: 12px; font-weight: 600; letter-spacing: .16em;
  opacity: 0; transform: translateY(12px); transition: opacity .8s ease 1.5s, transform 1s var(--ease-x) 1.5s;
}
.hv-chip span { width: 7px; height: 7px; background: var(--c-cyan); border-radius: 50%; box-shadow: 0 0 10px var(--c-cyan); }
.hero--x.is-ready .hv-chip { opacity: 1; transform: none; }
.hv-bob { animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* Ticker mit offenen Stellen */
.hero__ticker { position: relative; display: flex; align-items: center; gap: 28px; margin-top: 56px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.02); }
.hero__ticker-label { flex: none; padding-left: max(20px, calc((100vw - 1140px) / 2 + 20px)); color: var(--c-cyan); font-family: var(--f-head); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.hero__ticker-mask { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.hero__ticker-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: ticker 38s linear infinite; }
.hero__ticker-track a { color: rgba(255,255,255,.82); font-family: var(--f-head); font-size: 15px; font-weight: 500; letter-spacing: .06em; white-space: nowrap; transition: color .3s; }
.hero__ticker-track a:hover { color: var(--c-cyan); }
.hero__ticker-track i { width: 6px; height: 6px; background: var(--c-magenta); transform: rotate(45deg); flex: none; }
.hero__ticker:hover .hero__ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ==========================================================================
   Überschriften wortweise
   ========================================================================== */
[data-split="words"] .sw { overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
[data-split="words"] .sw > i { display: inline-block; font-style: normal; transform: translateY(110%); transition: transform 1s var(--ease-x); transition-delay: var(--d, 0ms); }
.is-in[data-split="words"] .sw > i { transform: none; }

/* ---------- Bilder mit Vorhang ---------- */
.img-curtain { overflow: hidden; }
.img-curtain img { clip-path: inset(0 0 100% 0); transform: scale(1.16); transition: clip-path 1.3s var(--ease-x), transform 1.8s var(--ease-x); }
.img-curtain.is-in img { clip-path: inset(0 0 0 0); transform: scale(1); }
.job__media.img-curtain.is-in img { transform: scale(1); }

/* ---------- Gestaffeltes Einblenden ---------- */
.js .reveal { transition-delay: var(--rd, 0ms); }

/* ==========================================================================
   ÜBER UNS
   ========================================================================== */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.about__media { position: relative; height: 560px; }
.about__img { position: absolute; margin: 0; }
.about__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__img--big { left: 0; top: 0; width: 82%; height: 72%; }
.about__img--small { right: 0; bottom: 0; width: 46%; height: 52%; box-shadow: 0 30px 60px -28px rgba(20,23,27,.55); border: 8px solid #fff; transition-delay: .2s; }
.about__img--small img { object-position: 50% 30%; }
.about__word { position: absolute; left: -4px; bottom: 6px; z-index: -1; font-family: var(--f-head); font-size: 130px; font-weight: 700; line-height: .8; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px #d9e1e8; letter-spacing: .02em; }
.about__media { isolation: isolate; }
.about__text .section-title { margin-bottom: 26px; font-size: clamp(36px, 3.6vw, 54px); }
.about__text .prose p { font-size: 16.5px; }
.about__text .prose p:first-child { color: var(--n-ink); font-size: 19px; line-height: 1.65; }
.about__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 34px 0 0; padding: 28px 0 0; border-top: 1px solid var(--n-line); list-style: none; }
.about__facts li { display: grid; gap: 10px; align-content: start; }
.about__facts img { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(4,30,50,.22)); transition: transform .6s var(--ease-x); }
.about__facts strong { display: block; margin-bottom: 4px; color: var(--n-ink); font-family: var(--f-head); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.about__facts span { color: var(--n-soft); font-size: 13.5px; line-height: 1.55; }
#ueber-uns { padding-bottom: 72px; }

/* Laufband */
.marquee { overflow: hidden; padding: 26px 0; background: var(--n-ink); }
.marquee__track { display: flex; align-items: center; gap: 36px; width: max-content; animation: ticker 45s linear infinite; }
.marquee__track span { color: #fff; font-family: var(--f-head); font-size: 26px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.marquee__track span:nth-child(4n+1) { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.55); }
.marquee__track i { width: 9px; height: 9px; background: var(--c-cyan-btn); transform: rotate(45deg); flex: none; }

/* ==========================================================================
   KÄLTEKREISLAUF · 3D-Icons in den Knoten
   ========================================================================== */
.kreis { padding-block: 104px; }
.kreis__node img { width: 78px; height: 78px; object-fit: contain; filter: saturate(.5) brightness(.7) drop-shadow(0 14px 18px rgba(0,0,0,.5)); transition: filter .6s ease, transform .7s var(--ease-x); }
.kreis__node.is-passed img { filter: drop-shadow(0 14px 18px rgba(0,0,0,.5)); }
.kreis__node.is-active img { filter: drop-shadow(0 0 22px rgba(4,172,238,.55)) drop-shadow(0 14px 18px rgba(0,0,0,.5)); transform: scale(1.15); }
.kreis__node[data-node="1"].is-active img { filter: drop-shadow(0 0 22px rgba(235,1,138,.55)) drop-shadow(0 14px 18px rgba(0,0,0,.5)); }
.kreis__ring { stroke-width: 1.5; }
.kreis__arc { stroke-width: 4; filter: drop-shadow(0 0 6px rgba(255,255,255,.25)); }

/* ==========================================================================
   BENEFITS · mitlaufendes Foto + kleine 3D-Icons
   ========================================================================== */
.benefits { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
.benefits__photo { position: sticky; top: 110px; margin: 0; height: calc(100vh - 170px); max-height: 640px; }
.benefits__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 40%; display: block; }
.benefits__photo figcaption { position: absolute; left: 0; bottom: 0; padding: 14px 22px; background: var(--n-ink); color: #fff; font-family: var(--f-head); font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
#benefits .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
#benefits .card { grid-template-columns: 52px minmax(0, 1fr); column-gap: 18px; padding: 24px 0 26px; }
#benefits .card__icon--3d { grid-row: 1 / span 2; width: 52px; height: 52px; margin: -4px 0 0; }
#benefits .card__icon--3d img { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 8px 12px rgba(4,30,50,.22)); transition: transform .6s var(--ease-x); }
#benefits .card__title { font-size: 16px; }
#benefits .card p { font-size: 14.5px; }

/* ---------- Karten: Hover mit Leben ---------- */
.card { position: relative; transition: border-color .4s ease, transform .6s var(--ease-x); }
.card::after { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 2px; background: var(--c-cyan-btn); transition: width .7s var(--ease-x); }

/* ---------- Bildband ---------- */
.photo-band { margin-top: 72px; overflow: hidden; }
.photo-band__track { display: flex; gap: 16px; width: max-content; animation: ticker 70s linear infinite; }
.photo-band__track img { height: 260px; width: auto; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.92); transition: filter .5s, transform .6s var(--ease-x); }
.photo-band__track img:nth-child(3n+2) { aspect-ratio: 3 / 2; }
.photo-band:hover .photo-band__track { animation-play-state: paused; }
#team { padding-bottom: 0; }
#team .container + .photo-band { margin-bottom: 0; }

/* ---------- Arbeitsbereiche mit Bild ---------- */
.card--media { padding-top: 0; border-top: 0; }
.card--media::after { top: auto; bottom: 0; }
.card__media { margin: 0 0 24px; aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease-x); }

/* ---------- Dunkle Abschnitte: Licht folgt der Maus ---------- */
.kreis, .feature__text, .why { --mx: 50%; --my: 50%; }
.kreis::after, .why::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px circle at var(--mx) var(--my), rgba(4,172,238,.09), transparent 60%);
}
.why > * { position: relative; z-index: 1; }
.why > .why__bg { position: absolute; z-index: 0; top: -22%; bottom: auto; height: 144%; }
.why > .why__overlay { position: absolute; z-index: 0; }

/* ---------- Haltung / Stellen / Formular: kleine Lebenszeichen ---------- */
.vision-media__main, .vision-media__small { will-change: transform; }
.job { transition: transform .6s var(--ease-x), box-shadow .6s var(--ease-x); }
.button .icon { transition: transform .4s var(--ease-x); }
.faq__item { transition: background-color .3s; }

@media (prefers-reduced-motion: reduce) {
  .hero__aurora i, .hero__ticker-track, .marquee__track, .photo-band__track, .button--shine::after, .hero__pulse::after, .hv-bob, .hero__title.is-shine em .sc > i { animation: none !important; }
  [data-split] .sc > i, [data-split] .sw > i, .hv, .hv img, .img-curtain, .img-curtain img { transition: none !important; transform: none !important; clip-path: none !important; filter: none !important; opacity: 1 !important; }
  .hero--x .hero__lead, .hero--x .hero__actions, .hero--x .hero__trust, .hero--x .hero__eyebrow, .hv-icon, .hv-chip { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 1024px) {
  .hero__grid, .about, .benefits { grid-template-columns: 1fr; }
  .hero__visual { height: 420px; }
  .benefits__photo { position: relative; top: 0; height: 360px; }
}

/* ---------- Feedback Felix: Raster, Lichtwolken und Icons weg, Schimmer dezenter ---------- */
.hero--x::after { display: none; }
.hero__aurora { display: none; }
.hero__title.is-shine em .sc > i { animation: glint-soft 9s ease-in-out infinite; animation-delay: var(--g, 0ms); }
@keyframes glint-soft { 0%, 8%, 100% { color: var(--c-cyan); } 4% { color: #8fdcff; } }
