/* Virexon Pharma · Eine Bühne, ein Objekt: das Emblem führt durch die Seite */

@font-face { font-family: "Red Hat Display"; src: url("../fonts/red-hat-display.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Red Hat Text"; src: url("../fonts/red-hat-text.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --ink: #020a18;
  --ink-2: #04183a;
  --navy: #012e61;
  --blue: #0586cc;
  --cyan: #12d3ec;
  --cyan-soft: #7fe3f3;
  --white: #ffffff;
  --text: #eaf4ff;
  --muted: rgba(206, 226, 250, 0.64);
  --faint: rgba(206, 226, 250, 0.38);
  --line: rgba(170, 220, 255, 0.14);

  --display: "Red Hat Display", "Segoe UI", sans-serif;
  --sans: "Red Hat Text", "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 80px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Größe und Lage des Emblems im Einstieg, identisch mit main.js */
  --emb: min(66vh, 86vw, 700px);
  --emb-cy: 40vh;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--cyan); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--white); color: var(--navy); border-radius: 10px; text-decoration: none; }
.skip:focus { top: 16px; }

/* ---------- Bühne ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 40%, rgba(5, 134, 204, 0.16), transparent 70%),
    radial-gradient(40% 40% at 85% 10%, rgba(18, 211, 236, 0.06), transparent 70%),
    radial-gradient(50% 50% at 10% 95%, rgba(10, 91, 208, 0.12), transparent 70%),
    linear-gradient(180deg, #020a18 0%, #031530 60%, #020a18 100%);
}
.stage { position: fixed; inset: 0; z-index: 0; width: 100vw; height: 100vh; pointer-events: none; }
main, .footer { position: relative; z-index: 1; }

/* ---------- Kopfleiste und Kapitelleiste ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  pointer-events: none;
}
.bar > * { pointer-events: auto; position: relative; }
.bar::before {
  content: ""; position: absolute; inset: 0 0 -40px 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 10, 24, 0.97) 0%, rgba(2, 10, 24, 0.88) 60%, rgba(2, 10, 24, 0) 100%);
  opacity: 0; transition: opacity .6s var(--ease);
}
.bar.is-scrolled::before { opacity: 1; }
.bar__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; opacity: 0; transform: translateY(-6px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.bar.is-scrolled .bar__brand { opacity: 1; transform: none; }
.bar__brand img { width: 34px; height: auto; }
.bar__word {
  display: block; width: 108px; aspect-ratio: 1200 / 150; background: var(--white);
  -webkit-mask: url("../img/wordmark.png") center / contain no-repeat;
  mask: url("../img/wordmark.png") center / contain no-repeat;
}
.bar__cta {
  padding: 9px 20px; border-radius: 999px; border: 1px solid rgba(234, 244, 255, 0.28);
  font-size: 14.5px; font-weight: 600; text-decoration: none; letter-spacing: 0.01em;
  transition: border-color .3s, background-color .3s, color .3s;
}
.bar__cta:hover { border-color: var(--cyan); background: rgba(18, 211, 236, 0.1); }
.js .bar { opacity: 0; animation: fadeIn 1.2s var(--ease-out) 1.8s forwards; }

.rail {
  position: fixed; right: calc(var(--gutter) * 0.5); top: 50%; z-index: 20;
  display: flex; flex-direction: column; gap: 14px; align-items: flex-end;
  transform: translateY(-50%);
  opacity: 0; transition: opacity .6s var(--ease);
  pointer-events: none;
}
.rail.is-visible { opacity: 1; pointer-events: auto; }
.rail a { display: flex; align-items: center; gap: 12px; padding: 4px 0; text-decoration: none; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--faint); }
.rail a span { opacity: 0; transform: translateX(6px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.rail a::after { content: ""; width: 14px; height: 1.5px; border-radius: 2px; background: currentColor; transition: width .45s var(--ease), background-color .3s; }
.rail a:hover span, .rail a.is-active span, .rail:hover a span { opacity: 1; transform: none; }
.rail a.is-active { color: var(--text); }
.rail a.is-active::after { width: 30px; background: var(--cyan); }

/* ---------- Schrift ---------- */
.label {
  display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan-soft);
}
.label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.display {
  font-family: var(--display); font-weight: 400; font-size: clamp(36px, 3.9vw, 60px);
  line-height: 1.06; letter-spacing: -0.03em; color: var(--text); text-wrap: balance;
}
.title {
  font-family: var(--display); font-weight: 400; font-size: clamp(30px, 2.9vw, 44px);
  line-height: 1.14; letter-spacing: -0.025em; color: var(--text); text-wrap: balance;
}
.copy { margin-top: 28px; max-width: 44ch; font-size: 18px; line-height: 1.7; color: var(--muted); }
.copy + .copy { margin-top: 16px; }

/* Wörter steigen einzeln aus einer Maske auf */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.w > span { display: inline-block; }
.js [data-split] .w > span { transform: translateY(108%); transition: transform 1.1s var(--ease-out); transition-delay: var(--wd, 0s); }
.js [data-split].is-in .w > span { transform: none; }

.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Einstieg ---------- */
.intro { position: relative; height: 100vh; height: 100svh; min-height: 620px; }
.intro__drag {
  position: absolute; left: 50%; top: var(--emb-cy);
  width: calc(var(--emb) * 0.8); height: calc(var(--emb) * 0.8);
  transform: translate(-50%, -50%); border-radius: 50%; cursor: grab; touch-action: pan-y;
}
.intro__drag.is-dragging { cursor: grabbing; }
.intro__fallback { display: none; }
.no-emblem .intro__fallback {
  display: block; position: absolute; left: 50%; top: var(--emb-cy); width: calc(var(--emb) * 0.56); height: auto;
  transform: translate(-50%, -50%); animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 50% { transform: translate(-50%, calc(-50% - 10px)); } }

.lockup {
  position: absolute; left: 50%; top: calc(var(--emb-cy) + var(--emb) * 0.4);
  display: flex; flex-direction: column; align-items: center; transform: translateX(-50%);
}
.lockup__word {
  position: relative; display: block; width: min(480px, 74vw); aspect-ratio: 1200 / 150; overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #d4ecff 100%);
  -webkit-mask: url("../img/wordmark.png") center / contain no-repeat;
  mask: url("../img/wordmark.png") center / contain no-repeat;
}
.lockup__shine {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 32%, rgba(18, 211, 236, 0.9) 48%, #ffffff 50%, rgba(18, 211, 236, 0.9) 52%, transparent 68%);
  transform: translateX(-110%); animation: shine 8s var(--ease) 3.4s infinite;
}
@keyframes shine { 0% { transform: translateX(-110%); } 25%, 100% { transform: translateX(110%); } }
.lockup__sub {
  display: block; margin-top: 13px; width: calc(min(480px, 74vw) * 0.69); aspect-ratio: 900 / 84; background: var(--cyan);
  -webkit-mask: url("../img/pharma-gmbh.png") center / contain no-repeat;
  mask: url("../img/pharma-gmbh.png") center / contain no-repeat;
}
.js .lockup__word { opacity: 0; transform: translateY(16px); animation: rise 1.4s var(--ease-out) 1.05s forwards; }
.js .lockup__sub { opacity: 0; transform: translateY(12px); animation: rise 1.4s var(--ease-out) 1.3s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }

.intro__foot {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px;
  padding: 0 var(--gutter) clamp(24px, 5vh, 44px);
}
.intro__claim { font-family: var(--display); font-weight: 500; font-size: clamp(18px, 1.6vw, 23px); letter-spacing: -0.015em; }
.intro__note { justify-self: end; max-width: 300px; text-align: right; font-size: 14.5px; color: var(--muted); }
.intro__cue { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none; color: var(--faint); }
.intro__cue-line { position: relative; width: 1px; height: 46px; overflow: hidden; background: rgba(200, 235, 255, 0.18); }
.intro__cue-line::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 16px; background: var(--cyan); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { from { transform: translateY(-18px); } to { transform: translateY(50px); } }
.js .intro__foot > * { opacity: 0; animation: fadeIn 1.2s var(--ease-out) forwards; }
.js .intro__claim { animation-delay: 1.9s !important; }
.js .intro__cue { animation-delay: 2.2s !important; }
.js .intro__note { animation-delay: 2s !important; }

/* ---------- Transportwege ---------- */
.ways { position: relative; height: 400vh; }
.ways__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.ways__panel {
  position: absolute; top: 50%; right: max(var(--gutter), 7vw); transform: translateY(-50%);
  width: min(36vw, 500px);
}
.ways__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 38px; }
.ways__steps li { display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); transition: color .4s var(--ease); }
.ways__steps li.is-current { color: var(--cyan-soft); }
.ways__steps i { position: relative; display: block; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.ways__steps b { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.ways__texts { display: grid; margin-top: 30px; }
.ways__texts > div { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.ways__texts > div.is-current { opacity: 1; transform: none; }
.ways__texts h3 { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.02em; color: var(--text); }
.ways__texts p { margin-top: 10px; max-width: 42ch; font-size: 17px; line-height: 1.65; color: var(--muted); }

/* ---------- Kapitel ---------- */
.chapter { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 18vh var(--gutter); }
.chapter__col { width: min(40vw, 560px); }
.chapter--left .chapter__col { margin-left: max(0px, 4vw); }
.chapter--right .chapter__col { margin-left: auto; margin-right: max(0px, 6vw); }

/* Leistungen als Index: eine Zeile pro Leistung, Text öffnet sich beim Darüberfahren */
.index { margin-top: 40px; border-top: 1px solid var(--line); }
.index__item { position: relative; padding: 20px 0; border-bottom: 1px solid var(--line); outline: none; cursor: default; }
.index__name {
  display: flex; align-items: center;
  font-family: var(--display); font-weight: 400; font-size: clamp(21px, 1.9vw, 28px); letter-spacing: -0.02em; line-height: 1.25;
  color: var(--faint); transition: color .5s var(--ease);
}
.index__name::before { content: ""; width: 0; height: 1.5px; margin-right: 0; border-radius: 2px; background: var(--cyan); transition: width .5s var(--ease), margin-right .5s var(--ease); }
.index__text { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.index__text > span { overflow: hidden; max-width: 44ch; font-size: 16px; line-height: 1.65; color: var(--muted); transition: padding-top .6s var(--ease); }
.index__item.is-active .index__name, .index__item:focus-visible .index__name { color: var(--text); }
.index__item.is-active .index__name::before, .index__item:focus-visible .index__name::before { width: 24px; margin-right: 14px; }
.index__item.is-active .index__text, .index__item:focus-visible .index__text { grid-template-rows: 1fr; }
.index__item.is-active .index__text > span, .index__item:focus-visible .index__text > span { padding-top: 10px; }

/* ---------- Kunden auf der Ringbahn ---------- */
.therapy { display: block; min-height: 0; height: 200vh; padding: 0; }
.therapy__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.therapy__head { position: absolute; left: 0; right: 0; top: 13vh; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 var(--gutter); }
.therapy__head .label { margin-bottom: 16px; }
.therapy__text {
  position: absolute; left: 50%; bottom: 11vh; transform: translateX(-50%);
  display: grid; width: min(560px, calc(100% - 2 * var(--gutter))); text-align: center;
}
.therapy__text p {
  grid-area: 1 / 1; font-size: 18px; line-height: 1.65; color: var(--muted);
  opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.therapy__text p.is-active { opacity: 1; transform: none; }

.orbit { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease); }
.orbit.is-visible { opacity: 1; }
.orbit.is-visible .orbit__label { pointer-events: auto; }
.orbit__label {
  position: absolute; left: 0; top: 0;
  transform: translate3d(var(--x, 50vw), var(--y, 50vh), 0) translate(-50%, -50%) scale(var(--s, 1));
  opacity: var(--o, 1);
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  font-family: var(--display); font-weight: 500; font-size: 16.5px; letter-spacing: -0.01em; color: rgba(234, 244, 255, 0.82);
  background: rgba(2, 10, 24, 0.5); border: 1px solid var(--line);
  transition: color .35s, border-color .35s, background-color .35s;
}
.orbit__label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(127, 227, 243, 0.5); transition: background-color .35s, box-shadow .35s; }
.orbit__label:hover, .orbit__label[aria-selected="true"] { color: var(--white); border-color: rgba(18, 211, 236, 0.55); background: rgba(4, 24, 58, 0.72); }
.orbit__label[aria-selected="true"]::before { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

/* ---------- Qualität ---------- */
.quality { position: relative; height: 340vh; }
.quality__sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 18vh var(--gutter) 12vh;
}
.quality__head { max-width: 640px; margin-left: max(0px, 4vw); }
.quality__track { width: min(1100px, 100%); margin: 0 auto; }
.quality__steps { display: grid; grid-template-columns: repeat(6, 1fr); }
.quality__steps li {
  position: relative; padding-bottom: 22px;
  font-family: var(--display); font-weight: 500; font-size: clamp(14px, 1.3vw, 19px); letter-spacing: -0.015em; padding-right: 12px;
  color: var(--faint); transition: color .5s var(--ease);
}
.quality__steps li::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink); border: 1.5px solid rgba(170, 220, 255, 0.35);
  transition: background-color .4s, border-color .4s, box-shadow .4s;
}
.quality__steps li.is-on { color: rgba(234, 244, 255, 0.72); }
.quality__steps li.is-on::after { background: var(--cyan); border-color: var(--cyan); }
.quality__steps li.is-current { color: var(--white); }
.quality__steps li.is-current::after { box-shadow: 0 0 0 6px rgba(18, 211, 236, 0.16), 0 0 18px var(--cyan); }
.quality__line { position: relative; height: 1px; background: var(--line); }
.quality__line span {
  position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: 0 0 12px rgba(18, 211, 236, 0.6);
}
.quality__texts { display: grid; margin-top: 34px; max-width: 560px; }
.quality__texts p {
  grid-area: 1 / 1; font-size: 18px; line-height: 1.65; color: var(--muted);
  opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.quality__texts p.is-current { opacity: 1; transform: none; }

/* ---------- Kontakt ---------- */
.contact { min-height: 100vh; align-items: flex-end; justify-content: center; padding-top: 50vh; padding-bottom: 14vh; text-align: center; }
.contact__col { display: flex; flex-direction: column; align-items: center; max-width: 760px; }
.contact .label { justify-content: center; }
.contact__mail {
  margin-top: 36px; padding-bottom: 6px;
  font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3vw, 42px); letter-spacing: -0.02em; text-decoration: none; color: var(--white);
  background:
    linear-gradient(var(--cyan), var(--cyan)) 0 100% / 0% 1.5px no-repeat,
    linear-gradient(rgba(234, 244, 255, 0.25), rgba(234, 244, 255, 0.25)) 0 100% / 100% 1px no-repeat;
  transition: background-size .6s var(--ease), color .3s;
}
.contact__mail:hover { background-size: 100% 1.5px, 100% 1px; color: var(--cyan-soft); }
.contact__topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 30px; }
.contact__topics a { font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; transition: color .3s; }
.contact__topics a:hover { color: var(--cyan-soft); }
.contact__address { margin-top: 34px; font-style: normal; font-size: 14.5px; color: var(--faint); }

/* ---------- Impressum ---------- */
.footer { background: #010612; border-top: 1px solid var(--line); padding: 64px var(--gutter) 28px; font-size: 14px; color: var(--muted); }
.footer__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; }
.footer h2 { margin-bottom: 18px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan-soft); }
.footer__col p + p { margin-top: 16px; }
.footer strong { color: var(--text); font-weight: 600; }
.footer a { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; max-width: 1200px; margin: 44px auto 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { color: var(--cyan-soft); }

/* ---------- Schmal ---------- */
@media (max-width: 1000px) {
  .rail { display: none; }
  .chapter__col { width: min(100%, 620px); }
  .chapter--left .chapter__col, .chapter--right .chapter__col { margin: 0 auto; }
}

@media (max-width: 700px) {
  :root { --emb: min(96vw, 56vh); --emb-cy: 38vh; }
  body { font-size: 16px; }
  .bar { padding: 16px var(--gutter); }
  .intro__foot { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 12px; }
  .intro__note { justify-self: center; text-align: center; font-size: 13.5px; }
  .intro__cue { order: 3; }
  .intro__cue-line { height: 30px; }
  .chapter { padding: 14vh var(--gutter); }
  .copy { font-size: 16.5px; }

  .therapy { height: auto; }
  .therapy__sticky { position: relative; height: auto; overflow: visible; padding: 16vh var(--gutter) 14vh; }
  .therapy__head, .therapy__text { position: static; transform: none; padding: 0; width: auto; }
  .therapy__text { margin-top: 26px; }
  .orbit { position: static; opacity: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 34px; }
  .orbit .orbit__label { position: static; transform: none; opacity: 1; pointer-events: auto; font-size: 15px; }

  .ways { height: 360vh; }
  .ways__panel { top: auto; bottom: 8vh; left: var(--gutter); right: var(--gutter); transform: none; width: auto; }
  .ways__steps { margin-top: 22px; }
  .ways__texts { margin-top: 18px; }
  .ways__texts p { font-size: 15.5px; }

  .quality { height: 300vh; }
  .quality__sticky { padding: 14vh var(--gutter) 10vh; }
  .quality__head { margin-left: 0; }
  .quality__steps { grid-template-columns: 1fr; }
  .quality__steps li { display: none; font-size: 30px; padding-bottom: 16px; }
  .quality__steps li.is-current { display: block; }
  .quality__steps li::after { display: none; }
  .quality__texts { margin-top: 22px; }
  .quality__texts p { font-size: 16.5px; }

  .contact { padding-top: 42vh; }
  .footer__inner { grid-template-columns: 1fr; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
  .js [data-reveal], .js [data-split] .w > span { opacity: 1; transform: none; }
  .lockup__shine { display: none; }
}
