/* ==========================================================================
   NASHORN – Showroom Urbach
   Developed by webndo

   Below 1200px the section stacks. From 1200px a short pinned scroll
   opens a 50/50 image-and-text frame, then brings the Germany map in
   from the right. Reduced motion shows the finished frame directly.
   ========================================================================== */

.showroom {
  position: relative;
  background: #F6F8FA;
  color: var(--text-dark);
}

.showroom__sticky {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: clip;
  padding-bottom: calc(min(420px, 86vw) * 250 / 188);
}

.showroom__content {
  position: relative;
  z-index: 3;
  order: 1;
  min-width: 0;
  padding-block: clamp(56px, 7vw, 72px) 32px;
}

.showroom__copy {
  max-width: 420px;
}

.showroom__address {
  display: grid;
  gap: 3px;
  margin: 28px 0 26px;
  font-style: normal;
}

.showroom__company {
  color: var(--text-dark);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.showroom__street,
.showroom__city {
  color: #34414E;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.showroom__city {
  color: var(--nashorn-blue);
  font-weight: 600;
}

.showroom .btn.btn--primary.showroom__cta:hover .btn__icon--ne,
.showroom .btn.btn--primary.showroom__cta:focus-visible .btn__icon--ne {
  transform: translate(3px, -3px);
}

.showroom__photo {
  order: 2;
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  height: clamp(220px, 58vw, 320px);
  margin: 0;
  overflow: hidden;
  background: #d7e0e8;
}

.showroom__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 74% 62%;
}

.showroom__map {
  order: 3;
  position: absolute;
  z-index: 1;
  right: -56px;
  bottom: 0;
  width: min(420px, 86vw);
  min-width: 0;
  aspect-ratio: 188 / 250;
  height: auto;
  margin: 0;
  background: transparent;
  pointer-events: none;
}

.showroom__germany {
  display: block;
  width: 100%;
  height: 100%;
}

.showroom__land {
  fill: #01498E;
  opacity: 0.055;
}

.showroom__outline {
  fill: none;
  stroke: url(#showroom-coast-ink);
  stroke-width: 0.85;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.showroom__shine {
  fill: none;
  stroke: #D6E9F6;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  pointer-events: none;
}

.showroom__mark,
.showroom__pulse {
  fill: none;
  stroke: var(--nashorn-blue);
  vector-effect: non-scaling-stroke;
}

.showroom__mark {
  stroke-width: 1.6px;
}

.showroom__pulse {
  stroke-width: 1.25px;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.showroom__core {
  fill: var(--nashorn-blue);
}

.showroom__marker {
  transform-box: fill-box;
  transform-origin: center;
}

.showroom__place {
  fill: #1C3348;
  font-family: var(--font-ui);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Finished desktop frame. Reduced motion and no-js use this directly. */
@media (min-width: 1200px) {
  .showroom__sticky {
    display: grid;
    grid-template-columns: minmax(0, 39fr) minmax(440px, 33fr) minmax(240px, 28fr);
    align-items: stretch;
    height: clamp(760px, 78vh, 920px);
    min-height: clamp(760px, 78vh, 920px);
    padding-block: 0;
  }

  .showroom__photo {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    width: auto;
    height: 100%;
    min-height: 100%;
    align-self: stretch;
  }

  .showroom__content {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    width: auto;
    max-width: none;
    margin: 0;
    min-height: 0;
    padding: 160px 0 160px clamp(48px, 3.9vw, 88px);
  }

  .showroom__copy {
    width: 100%;
    max-width: 34rem;
    margin: 0;
  }

  .showroom__map {
    grid-column: 3;
    grid-row: 1;
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    height: auto;
    aspect-ratio: auto;
    min-height: 0;
    margin: 0;
    align-self: stretch;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .showroom__germany {
    position: absolute;
    top: 50%;
    right: -9vw;
    left: auto;
    width: 126%;
    height: 126%;
    max-width: none;
    transform: translateY(-50%);
  }
}

/* Pinned scroll. Columns start at 50/50 and open for the map. */
@media (min-width: 1200px) {
  .showroom.is-cinematic {
    height: 190vh;
    --shrink: 0;
    --map-in: 0;
    --map-fade: 0;
    --draw: 0;
    --mark: 0;
    --label: 0;
    --pulse: 0;
    --shine: 1;
    --shine-o: 0;
  }

  .showroom.is-cinematic .showroom__sticky {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    padding-block: 0;
    overflow: clip;
  }

  .showroom.is-cinematic .showroom__photo {
    flex: 0 0 calc(50% - var(--shrink) * 11%);
    order: 1;
    align-self: stretch;
    width: auto;
    height: 100%;
    min-height: 100%;
  }

  .showroom.is-cinematic .showroom__photo img {
    position: absolute;
    inset: 0;
    object-position: calc(64% + var(--shrink) * 10%) 58%;
  }

  .showroom.is-cinematic .showroom__content {
    flex: 0 0 calc(50% - var(--shrink) * 17%);
    order: 2;
    min-width: 440px;
    width: auto;
    max-width: none;
    margin: 0;
  }

  .showroom.is-cinematic .showroom__map {
    flex: 1 1 0%;
    order: 3;
    min-width: 0;
    opacity: var(--map-fade);
    transform: translate3d(calc((1 - var(--map-in)) * 100%), 0, 0);
  }

  .showroom.is-cinematic .showroom__land {
    opacity: calc(var(--draw) * 0.055);
  }

  .showroom.is-cinematic .showroom__outline {
    stroke-dasharray: 1;
    stroke-dashoffset: calc(1 - var(--draw));
  }

  .showroom.is-cinematic .showroom__shine {
    opacity: var(--shine-o);
    stroke-dasharray: 0.07 0.93;
    stroke-dashoffset: var(--shine);
  }

  .showroom.is-cinematic .showroom__marker {
    opacity: var(--mark);
    scale: calc(0.7 + var(--mark) * 0.3);
  }

  .showroom.is-cinematic .showroom__pulse {
    opacity: calc(var(--pulse) * (1 - var(--pulse)) * 2.1);
    scale: calc(1 + var(--pulse) * 0.9);
  }

  .showroom.is-cinematic .showroom__place {
    opacity: var(--label);
  }
}

/* Stacked enter sequence. The pinned scene overrides these. */
.js .showroom__photo img {
  opacity: 0;
  scale: 1.035;
}

.js .showroom__outline {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.js .showroom__land,
.js .showroom__place,
.js .showroom .eyebrow,
.js .showroom .h2,
.js .showroom__text,
.js .showroom__address,
.js .showroom__cta {
  opacity: 0;
}

.js .showroom .eyebrow,
.js .showroom .h2,
.js .showroom__text,
.js .showroom__address,
.js .showroom__cta {
  translate: 0 20px;
}

.js .showroom__marker {
  opacity: 0;
  scale: 0.7;
}

.js .showroom.is-in .showroom__photo img {
  opacity: 1;
  scale: 1;
  transition:
    opacity 900ms var(--ease-out),
    scale 1400ms var(--ease-expo);
}

.js .showroom.is-in .eyebrow,
.js .showroom.is-in .h2,
.js .showroom.is-in .showroom__text,
.js .showroom.is-in .showroom__address,
.js .showroom.is-in .showroom__cta {
  opacity: 1;
  translate: 0 0;
  transition:
    opacity 640ms var(--ease-out),
    translate 820ms var(--ease-expo);
}

.js .showroom.is-in .eyebrow { transition-delay: 40ms; }
.js .showroom.is-in .h2 { transition-delay: 120ms; }
.js .showroom.is-in .showroom__text { transition-delay: 200ms; }
.js .showroom.is-in .showroom__address { transition-delay: 280ms; }
.js .showroom.is-in .showroom__cta { transition-delay: 360ms; }

.js .showroom.is-in .showroom__outline {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1700ms cubic-bezier(0.45, 0.02, 0.2, 1) 280ms;
}

.js .showroom.is-in .showroom__shine {
  animation: showroom-shine 1680ms cubic-bezier(0.45, 0.02, 0.2, 1) 980ms 1 both;
}

.js .showroom.is-in .showroom__land {
  opacity: 0.055;
  transition: opacity 800ms ease 1200ms;
}

.js .showroom.is-in .showroom__marker {
  opacity: 1;
  scale: 1;
  transition:
    opacity 420ms ease 1760ms,
    scale 700ms var(--ease-expo) 1760ms;
}

.js .showroom.is-in .showroom__pulse {
  animation: showroom-pulse 760ms ease 2140ms 2 both;
}

.js .showroom.is-in .showroom__place {
  opacity: 1;
  transition: opacity 520ms ease 1980ms;
}

.js .showroom.is-cinematic .showroom__photo img,
.js .showroom.is-cinematic .eyebrow,
.js .showroom.is-cinematic .h2,
.js .showroom.is-cinematic .showroom__text,
.js .showroom.is-cinematic .showroom__address,
.js .showroom.is-cinematic .showroom__cta,
.js .showroom.is-cinematic .showroom__marker,
.js .showroom.is-cinematic .showroom__place,
.js .showroom.is-cinematic .showroom__land,
.js .showroom.is-cinematic .showroom__outline,
.js .showroom.is-cinematic .showroom__shine,
.js .showroom.is-cinematic .showroom__pulse {
  transition: none;
  animation: none;
  translate: none;
}

.js .showroom.is-cinematic .showroom__photo img,
.js .showroom.is-cinematic .eyebrow,
.js .showroom.is-cinematic .h2,
.js .showroom.is-cinematic .showroom__text,
.js .showroom.is-cinematic .showroom__address,
.js .showroom.is-cinematic .showroom__cta {
  opacity: 1;
  scale: 1;
}

.js .showroom.is-cinematic .showroom__outline {
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--draw));
}

.js .showroom.is-cinematic .showroom__land {
  opacity: calc(var(--draw) * 0.055);
}

.js .showroom.is-cinematic .showroom__shine {
  opacity: var(--shine-o);
  stroke-dasharray: 0.07 0.93;
  stroke-dashoffset: var(--shine);
}

.js .showroom.is-cinematic .showroom__marker {
  opacity: var(--mark);
  scale: calc(0.7 + var(--mark) * 0.3);
}

.js .showroom.is-cinematic .showroom__pulse {
  opacity: calc(var(--pulse) * (1 - var(--pulse)) * 2.1);
  scale: calc(1 + var(--pulse) * 0.9);
}

.js .showroom.is-cinematic .showroom__place {
  opacity: var(--label);
}

@keyframes showroom-shine {
  0% {
    opacity: 0;
    stroke-dasharray: 0.07 0.93;
    stroke-dashoffset: 1;
  }

  14% {
    opacity: 0.95;
  }

  78% {
    opacity: 0.85;
  }

  100% {
    opacity: 0;
    stroke-dasharray: 0.07 0.93;
    stroke-dashoffset: -0.08;
  }
}

@keyframes showroom-pulse {
  0% {
    opacity: 0.45;
    scale: 1;
  }

  100% {
    opacity: 0;
    scale: 1.85;
  }
}

.reveal-fallback:not(.anim-ready) .showroom__outline,
.reveal-fallback:not(.anim-ready) .showroom__land,
.reveal-fallback:not(.anim-ready) .showroom__place,
.reveal-fallback:not(.anim-ready) .showroom__marker,
.reveal-fallback:not(.anim-ready) .showroom__photo img,
.reveal-fallback:not(.anim-ready) .showroom .eyebrow,
.reveal-fallback:not(.anim-ready) .showroom .h2,
.reveal-fallback:not(.anim-ready) .showroom__text,
.reveal-fallback:not(.anim-ready) .showroom__address,
.reveal-fallback:not(.anim-ready) .showroom__cta {
  opacity: 1 !important;
  translate: none !important;
  scale: 1 !important;
  stroke-dashoffset: 0 !important;
}

.reveal-fallback:not(.anim-ready) .showroom__land {
  opacity: 0.055 !important;
}

.reveal-fallback:not(.anim-ready) .showroom__shine,
.reveal-fallback:not(.anim-ready) .showroom__pulse {
  animation: none !important;
  opacity: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  .js .showroom__outline,
  .js .showroom__land,
  .js .showroom__place,
  .js .showroom__marker,
  .js .showroom__photo img,
  .js .showroom .eyebrow,
  .js .showroom .h2,
  .js .showroom__text,
  .js .showroom__address,
  .js .showroom__cta {
    opacity: 1;
    translate: none;
    scale: 1;
    stroke-dashoffset: 0;
    transition: none;
    animation: none;
  }

  .js .showroom__land {
    opacity: 0.055;
  }

  .showroom__shine,
  .showroom__pulse {
    animation: none;
    opacity: 0;
  }
}
