/* Freies Layout: Abschnitte und einzelne Spalten werden zu eigenen Zeichenflächen. */
.cms-builder-page :is(.content-blocks,.column-body)[data-layout="free"]{
  position:relative;
  box-sizing:border-box;
  height:calc(var(--canvas-h,120) * 1px)!important;
  min-height:120px!important;
}
.cms-builder-page :is(.content-blocks,.column-body)[data-layout="free"] > .site-block{
  position:absolute!important;
  left:calc(var(--bx,0) * 1%);
  top:calc(var(--by,0) * 1px);
  width:calc(var(--bw,100) * 1%)!important;
  max-width:none!important;
  margin:0!important;
  min-height:calc(var(--bh,0) * 1px)!important;
  z-index:var(--bz,1);
}
.cms-builder-page :is(.content-blocks,.column-body)[data-layout="free"] > .site-block:is([data-type="image"],[data-type="gallery"]){
  height:calc(var(--bh,0) * 1px)!important;
}
.cms-builder-page :is(.content-blocks,.column-body)[data-layout="free"] > .site-block[data-type="anchor"]{
  min-height:0!important;
  height:0!important;
}
.cms-builder-page :is(.content-blocks,.column-body)[data-layout="free"] > .site-block:is([data-type="text"],[data-type="heading"],[data-type="quote"]):not([data-fixed-width]){
  right:0;
  width:fit-content!important;
  max-width:100%!important;
}
.cms-builder-page :is(.content-blocks,.column-body)[data-layout="free"] > .empty-section,
.cms-builder-page :is(.content-blocks,.column-body)[data-layout="free"] > .empty-column{display:none!important}

@container site (max-width:960px){
  .cms-builder-page :is(.content-blocks,.column-body)[data-layout="free"]{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    align-content:start;
    row-gap:16px;
    height:auto!important;
    min-height:0;
  }
  .cms-builder-page :is(.content-blocks,.column-body)[data-layout="free"] > .site-block{
    position:relative!important;
    left:auto;
    top:auto;
    width:100%!important;
    grid-column:1;
    grid-row:var(--bo,auto);
    margin-top:min(calc(var(--bgo,0) * 1px),calc(var(--bgo,0) * 100cqw / 1200))!important;
    min-height:min(calc(var(--bmh,0) * 1px),calc(var(--bmh,0) * 100cqw / 1200))!important;
    height:auto!important;
  }
  .cms-builder-page :is(.content-blocks,.column-body)[data-layout="free"] > .site-block:is([data-type="image"],[data-type="gallery"]){
    height:min(calc(var(--bh,0) * 1px),calc(var(--bh,0) * 100cqw / 1200))!important;
    min-height:0!important;
  }
  .cms-builder-page :is(.content-blocks,.column-body)[data-layout="free"] > .site-block:is([data-type="button"],[data-type="icon"],[data-type="phone"],[data-type="social"],[data-type="text"],[data-type="heading"],[data-type="quote"]):not([data-fixed-width]){
    width:fit-content!important;
    max-width:100%!important;
    justify-self:var(--ba,start);
  }
}

.cms-builder-page .site[data-editing="true"] :is(.content-blocks,.column-body)[data-layout="free"]{
  outline:1px dashed rgba(139,185,220,.65);
  outline-offset:-1px;
  background-image:linear-gradient(rgba(139,185,220,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(139,185,220,.12) 1px,transparent 1px);
  background-size:40px 40px;
}
.cms-builder-page .site[data-editing="true"] :is(.content-blocks,.column-body)[data-layout="free"].is-drop-target{outline:2px solid #0875d1}
.cms-builder-page .site[data-editing="true"] :is(.content-blocks,.column-body)[data-layout="free"] > .site-block:is(:hover,.is-selected,.is-free-dragging){z-index:500!important}
.cms-builder-page .site[data-editing="true"] :is(.content-blocks,.column-body)[data-layout="free"] > .site-block.is-free-dragging{opacity:.9;box-shadow:0 8px 24px rgba(16,56,93,.25)}
.cms-builder-page .site[data-editing="true"] :is(.content-blocks,.column-body)[data-layout="free"] > .site-block > :is(.insert-point,.insert-point-top,.margin-guide,.resize-handle,.block-move,.padding-area-guide){display:none!important}
.cms-builder-page .site[data-editing="true"] :is(.content-blocks,.column-body)[data-layout="free"] > .site-block:not([data-type="anchor"]),
.cms-builder-page .site[data-editing="true"] :is(.content-blocks,.column-body)[data-layout="free"] > .site-block:not([data-type="anchor"]) > :not(.block-controls):not(.free-handle),
.cms-builder-page .site[data-editing="true"] :is(.content-blocks,.column-body)[data-layout="free"] > .site-block:not([data-type="anchor"]) > :not(.block-controls):not(.free-handle) *{cursor:move}
.cms-builder-page .site[data-editing="true"] :is(.content-blocks,.column-body)[data-layout="free"] > .site-block > .block-controls,
.cms-builder-page .site[data-editing="true"] :is(.content-blocks,.column-body)[data-layout="free"] > .site-block > .block-controls *{cursor:pointer}
.cms-builder-page .site[data-editing="true"] :is(.content-blocks,.column-body)[data-layout="free"] > .site-block.is-free-dragging,
.cms-builder-page .site[data-editing="true"] :is(.content-blocks,.column-body)[data-layout="free"] > .site-block.is-free-dragging *{cursor:move!important;user-select:none}
.cms-builder-page .free-handle{
  position:absolute;
  z-index:6;
  display:none;
  width:10px;
  height:10px;
  border:1px solid #0875d1;
  border-radius:2px;
  background:#fff;
  touch-action:none;
}
.cms-builder-page .site-block:is(:hover,.is-selected) > .free-handle{display:block}
.cms-builder-page .free-handle[data-dir="n"]{top:-5px;left:calc(50% - 5px);cursor:ns-resize}
.cms-builder-page .free-handle[data-dir="s"]{bottom:-5px;left:calc(50% - 5px);cursor:ns-resize}
.cms-builder-page .free-handle[data-dir="e"]{right:-5px;top:calc(50% - 5px);cursor:ew-resize}
.cms-builder-page .free-handle[data-dir="w"]{left:-5px;top:calc(50% - 5px);cursor:ew-resize}
.cms-builder-page .free-handle[data-dir="nw"]{top:-5px;left:-5px;cursor:nwse-resize}
.cms-builder-page .free-handle[data-dir="ne"]{top:-5px;right:-5px;cursor:nesw-resize}
.cms-builder-page .free-handle[data-dir="sw"]{bottom:-5px;left:-5px;cursor:nesw-resize}
.cms-builder-page .free-handle[data-dir="se"]{bottom:-5px;right:-5px;cursor:nwse-resize}
.cms-builder-page .free-guide{position:absolute;z-index:900;pointer-events:none;background:#e5336d}
.cms-builder-page .free-guide-x{top:0;bottom:0;width:1px}
.cms-builder-page .free-guide-x.is-center{background:#e5348b}
.cms-builder-page .free-guide-y{left:0;right:0;height:1px}
.cms-builder-page .free-canvas-resize{position:absolute;z-index:6;right:50%;bottom:-10px;width:56px;height:14px;margin-right:-28px;border:1px solid #0875d1;border-radius:7px;background:#fff;cursor:ns-resize;touch-action:none}
.cms-builder-page .free-canvas-resize::after{content:"";position:absolute;left:18px;right:18px;top:5px;height:2px;border-radius:1px;background:#0875d1}
.cms-builder-page .free-add-bar{position:relative;display:flex;justify-content:center;padding:14px 0 0}
.cms-builder-page .free-add-bar > .insert-add{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:4px;border:1px dashed #8bb9dc;border-radius:50%;background:#fff;color:#10385d;font-size:20px;cursor:pointer}
.cms-builder-page .free-add-bar[data-free-column-add="true"]{position:absolute;z-index:7;right:4px;bottom:4px;padding:0}
.cms-builder-page .free-add-bar[data-free-column-add="true"] > .insert-add{width:28px;height:28px}
.cms-builder-page .margin-guide{display:none!important}
@container site (max-width:960px){
  .cms-builder-page .site[data-editing="true"] :is(.content-blocks,.column-body)[data-layout="free"]{background-image:none}
  .cms-builder-page .free-handle,.cms-builder-page .free-canvas-resize{display:none!important}
}
