/* v0.86 – Web integration and compact desktop presentation.
   The site's own navigation is intentionally outside the configurator.
   The 3D stage, studio lighting, materials and product geometry are unchanged. */

@media (min-width: 761px) and (min-height: 501px) {
  /* Retain the hero for SEO and orientation, but stop duplicating website navigation. */
  main#konfigurator { padding-top: 6px; }
  .intro { padding: 16px 0 18px; gap: 18px; }
  .intro h1 { font-size: clamp(32px, 2.9vw, 45px); line-height: 1.1; }
  .intro p { font-size: 12px; padding-bottom: 3px; }

  /* Smaller overall workspace at 100% zoom; both columns stay the same height. */
  .viewport,
  .configurator > aside {
    height: clamp(490px, calc(100svh - 275px), 730px) !important;
    min-height: 490px !important;
    max-height: 730px !important;
  }
  .configurator { gap: clamp(22px, 2.35vw, 38px); }
  .product-stage { top: 12px; }
  .stage-kicker { padding-bottom: 9px; }
  .stage-caption { margin-top: 10px; }

  /* Less empty chrome in the material sidebar, without shrinking the swatches. */
  .configurator > aside { padding-top: 8px; }
  .panel-progress { margin-bottom: 14px; }
  .panel-heading { min-height: 80px; }
  .panel-heading h2 { font-size: 27px; min-height: 0; margin: 7px 0 6px; }
  .panel-heading p { font-size: 12px; }
  #mobile-tabs { margin: 12px 0 13px !important; min-height: 58px; }
  #mobile-tabs button { gap: 5px !important; padding-bottom: 3px !important; }
  .step-number { width: 29px; height: 29px; }
  #material-tabs, #final-tabs { margin-bottom: 17px; }
  #settings-scroll { padding-top: 3px; }
  .step-actions { min-height: 66px; }
}

/* Phones retain readable controls and a stacked product-first layout. */
@media (max-width: 760px), (max-width: 1000px) and (max-height: 500px) {
  main#konfigurator { display: block !important; grid-template-rows: none !important; }
  .intro { padding: 10px 0 14px !important; }
  .intro h1 { font-size: clamp(25px, 6.3vw, 32px) !important; }
}

/* If embedded as a full-screen product stage, never constrain fullscreen mode. */
.viewport:fullscreen {
  height: 100dvh !important;
  min-height: 0 !important;
  max-height: none !important;
}
