/* Studio Inside — layout from Figma node 26:345 (1440px reference width) */

.studio-inside-page {
  position: relative;
  background: #ffffff;
  color: #2d2d2d;
  overflow-x: hidden;
}

/* Center content on a virtual 1440px column; grows with viewport on wide monitors */
.studio-canvas {
  --studio-ref: 1440px;
  --studio-half: 720px;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  position: relative;
}

/* Horizontal alignment to Figma grid: max(64px, 50% - 720px + offset) */

/* —— Hero: 1440 × 900 —— */
.studio-hero {
  position: relative;
  width: 100%;
  height: 900px;
  overflow: hidden;
}

@media (min-width: 1440px) {
  .studio-hero {
    height: min(1200px, max(900px, 62.5vw));
  }
}

.studio-hero-slides {
  position: absolute;
  inset: 0;
  background: #000;
}

.studio-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  will-change: opacity;
  backface-visibility: hidden;
}

/* Outgoing slide stays fully opaque underneath the incoming one so the
   container is never partially exposed during the crossfade. This removes
   the dimming flicker and the thin grey bar that showed through when both
   slides faded at the same time. */
.studio-hero-slide.is-prev {
  opacity: 1;
  z-index: 1;
}

.studio-hero-slide.is-active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
  transition: opacity 420ms ease;
}

.studio-hero-pagination {
  position: absolute;
  left: max(64px, calc(50% - var(--studio-half) + 587px));
  top: auto;
  bottom: 74px;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.studio-hero-pip {
  margin: 0;
  padding: 10px 2px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  box-sizing: border-box;
}

.studio-hero-pip:focus {
  outline: none;
}

.studio-hero-pip:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  border-radius: 4px;
}

.studio-hero-pip-bar {
  display: block;
  height: 10px;
  border-radius: 5px;
  background: #fe210a;
  width: 42px;
  opacity: 0.55;
  transition:
    width 280ms ease,
    opacity 280ms ease;
}

.studio-hero-pip.is-active .studio-hero-pip-bar {
  width: 110px;
  opacity: 1;
  border-radius: 5px;
}

/* —— Studio Space + Collage: height 1459, #861408 —— */
.studio-red-band {
  position: relative;
  width: 100%;
  height: auto;
  min-height: calc(530px + (100vw / 3) * (676 / 480) + 253px);
  padding-bottom: 253px;
  box-sizing: border-box;
  background: #861408;
}


.studio-heading {
  position: absolute;
  margin: 0;
  font-family: "Clash Display", Arial, sans-serif;
  font-weight: 500;
  font-size: 100px;
  line-height: 120px;
  color: #fe210a;
}

.studio-heading--line1 {
  left: max(64px, calc(50% - var(--studio-half) + 96px));
  top: 152px;
  width: min(311px, calc(100vw - 128px));
}

.studio-heading--line2 {
  left: max(64px, calc(50% - var(--studio-half) + 204px));
  top: 255px;
  width: min(302px, calc(100vw - 128px));
}

.studio-intro {
  position: absolute;
  left: max(64px, calc(50% - var(--studio-half) + 737px));
  top: 178px;
  width: min(607px, calc(100vw - 128px));
  max-width: 607px;
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 21px;
  color: #ffffff;
}

.studio-collage {
  position: absolute;
  left: 0;
  top: 530px;
  width: 100%;
  display: flex;
  flex-direction: row;
}

.studio-collage .u-collage-cell {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 480 / 676;
}

.studio-collage .u-collage-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* —— Grundriss: height 994, white —— */
.studio-floorplan {
  position: relative;
  width: 100%;
  min-height: 994px;
  height: auto;
  padding-bottom: 48px;
  background: #ffffff;
}

.floorplan-title {
  position: absolute;
  left: max(64px, calc(50% - var(--studio-half) + 64px));
  top: 104px;
  margin: 0;
  font-family: "Clash Display", Arial, sans-serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 105%;
  color: #fe210a;
}

.floorplan-graphic {
  position: absolute;
  left: 50%;
  top: 181px;
  transform: translateX(-50%);
  width: min(850px, calc(100vw - 128px));
  height: auto;
  max-height: min(702px, 55vw);
  object-fit: contain;
}

.floorplan-download {
  position: absolute;
  left: max(24px, calc(50% - var(--studio-half) + 1278px));
  top: 842px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 41px;
  padding: 10px;
  border: 2px solid #fe210a;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 21px;
  color: #fe210a;
  text-decoration: none;
  z-index: 2;
}

.floorplan-download:hover,
.floorplan-download:focus-visible {
  background: rgba(254, 33, 10, 0.06);
}

/* —— Features: height 804 —— */
.studio-features {
  position: relative;
  width: 100%;
  height: 804px;
  background: #861408;
}

.studio-feature {
  position: absolute;
  left: max(64px, calc(50% - var(--studio-half) + 404px));
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 70px;
}

.studio-feature--power {
  top: 140px;
}

.studio-feature--wlan {
  top: 348px;
}

.studio-feature--lift {
  top: 556px;
}

.studio-feature-icon-wrap {
  width: 106px;
  height: 106px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.studio-feature-icon-wrap img {
  max-width: 106px;
  max-height: 106px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.studio-feature-copy {
  width: min(456px, calc(100vw - 320px));
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.studio-feature-copy h3 {
  margin: 0;
  font-family: "Clash Display", Arial, sans-serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 105%;
  color: #ffffff;
}

.studio-feature-copy p {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 21px;
  color: #ffffff;
}

/* —— Equipment & Service: height 669 —— */
.studio-equipment {
  position: relative;
  width: 100%;
  height: 669px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.studio-equipment-card-link {
  position: relative;
  z-index: 1;
  display: block;
}

.studio-inside-page .studio-equipment .card {
  width: min(1072px, calc(100vw - 128px));
  height: auto;
  min-height: 377px;
}

.studio-inside-page .studio-equipment .card p {
  width: 100%;
  max-width: 1003px;
}

/* —— Anfahrt & Logistic + visual: 258 + 776 —— */
/* Equipment end 4826 → titles start 5026 → gap 200px */
.studio-logistics {
  position: relative;
  width: 100%;
  margin-top: 200px;
  min-height: 1074px;
  background: #ffffff;
}

.logistics-title {
  position: absolute;
  margin: 0;
  font-family: "Clash Display", Arial, sans-serif;
  font-weight: 500;
  font-size: 80px;
  line-height: 90px;
  color: #fe210a;
}

.logistics-title--a {
  left: max(64px, calc(50% - var(--studio-half) + 96px));
  top: 40px;
  width: min(377px, calc(100vw - 128px));
  height: 90px;
}

.logistics-title--b {
  left: max(64px, calc(50% - var(--studio-half) + 245px));
  top: 120px;
  width: min(302px, calc(100vw - 128px));
  height: 90px;
}

.logistics-visual {
  position: absolute;
  left: 0;
  top: 298px;
  width: 100%;
  height: 776px;
  overflow: hidden;
  background: #ffffff;
}

.logistics-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (min-width: 1440px) {
  .logistics-visual {
    height: min(1100px, max(776px, 53.89vw));
  }

  .studio-logistics {
    min-height: calc(298px + min(1100px, max(776px, 53.89vw)));
  }
}

/* —— Footer: gleiche Struktur & Styles wie Home / Equipment (global.css) —— */
.studio-inside-page .footer {
  position: relative;
  top: auto;
  left: auto;
  margin-top: 0;
  width: 100%;
}
