@charset "utf-8";

/* TEXTEDITOR CSS*/
body {
  --texteditor-icon-color: currentColor;
  --texteditor-padding-unit: 8px;
  --texteditor-button-size: 32px;
}

selstart,
selend {
  display: inline-block;
  position: relative;
}

.toolbar_texteditor[texteditor-toolbar-id]:not([is-current-texteditor-toolbar]) {
  opacity: 0.5;
  pointer-events: none;
}

.toolbar_texteditor[texteditor-toolbar-id]:not([is-current-texteditor-toolbar]) * {
  pointer-events: none;
}

.toolbar_texteditor_global {
  opacity: 0;
  pointer-events: none;
  top: 0.25em;
  left: 0.25em;
  box-shadow: rgba(0, 0, 0, 0.08) 3px 3px 8px;
  position: fixed;
  z-index: 9999999999;
  display: flex;
  background: var(--bg-color);
  border-radius: var(--texteditor-padding-unit);
  padding: var(--texteditor-padding-unit);
  /* border: solid white var(--texteditor-padding-unit); */
}

body[device-mode="mobile"] .toolbar_texteditor_global {
  top: calc(var(--cmstopbar-height) + 0.5em);
}

.toolbar_texteditor div {
  display: flex;
}

.toolbar_texteditor .draggrip {
  position: relative;
  width: 32px;
  height: 100%;
  cursor: pointer;
}

.toolbar_texteditor *[class^="iconbt"] {
  width: var(--texteditor-button-size);
  height: var(--texteditor-button-size);
  flex-shrink: 0;
  cursor: pointer;
}

.toolbar_texteditor *[class^="iconbt"] {
  -webkit-mask-image: var(--scope-icon);
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-image: var(--scope-icon);
  mask-size: contain;
  mask-repeat: no-repeat;
  clip-path: inset(0 round var(--texteditor-padding-unit));
  background: var(--texteditor-icon-color);
}

.iconbt_a {
  --scope-icon: var(--texteditor-format-a);
}

.iconbt_strong {
  --scope-icon: var(--texteditor-format-strong);
}

.iconbt_u {
  --scope-icon: var(--texteditor-format-underline);
}
.iconbt_button-1 {
  --scope-icon: var(--texteditor-format-button-1);
}
.iconbt_em {
  --scope-icon: var(--texteditor-format-italic);
}

.iconbt_bullet-point {
  --scope-icon: var(--texteditor-format-bulletpoint);
}

.iconbt_ff-quote {
  --scope-icon: var(--texteditor-format-ff-quote);
}

.iconbt_erase {
  --scope-icon: var(--texteditor-format-delete);
}

.iconbt_h1 {
  --scope-icon: var(--texteditor-format-h1);
}

.iconbt_h2 {
  --scope-icon:
    var(--texteditor-format-h2);
}

.toolbar_texteditor .urltfbox {
  display: block;
  width: 64em;
  box-shadow: inset rgba(0 0 0 / 10%) 0px 0px 6px;
  margin-left: 0;
  float: left;
  border-radius: 1em;
  margin-bottom: var(--texteditor-padding-unit);
  padding-left: 1em;
  padding-right: 1em;
  box-sizing: border-box;
}

.toolbar_texteditor .iconbt_link {
  display: block;
}

.toolbar_texteditor .linkbox {
  display: block;
}

body[show-urltfbox] .urltfbox {
  opacity: 1;
  pointer-events: all;
}

.urltfbox {
  position: fixed;
  left: 50%;
  bottom: 50%;
  transform: translate(-50%, 50%);
  width: 19em;
  max-width: calc(100% - 1em);
  height: auto;
  background-color: white;
  box-shadow: rgb(0 0 0 / 36%) 0px 0px 8px;
  border-radius: var(--texteditor-padding-unit);
  padding: var(--texteditor-padding-unit);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 999999;
  box-sizing: border-box;
  outline: 4096px solid rgb(0 0 0 / 8%);
  --parent-em: 1em;
}

.urltf {
  display: block;
  box-shadow: inset rgba(0 0 0 / 23%) 0px 0px 0.3em;
  border-radius: var(--texteditor-padding-unit);
  text-align: left;
  padding: var(--texteditor-padding-unit);
  padding-left: 0.5em;
  /* line-height: calc(var(--parent-em) * 2); */
  width: 100%;
  position: relative;
  font-size: 1em;
  color: black;
  background: white;
}

.urltfboxbts {
  display: flex;
  margin-top: var(--texteditor-padding-unit);
  justify-content: right;
}

.toolbar_texteditor div[class^="iconbt_color"] {
  border-radius: 2em;
  transition: transform 0.3s, opacity 0.3s;
  transform: scale(0.95);
}

.toolbar_texteditor div[class^="iconbt_c"]:hover {
  transform: scale(1.0);
}

.toolbar_texteditor div[class^="iconbt_color"]:not(.iconbt_color-1) {
  opacity: 0.0;
  --scope-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Crect width='32' height='32' style='fill:rgb(0,0,0);' /%3E%3C/svg%3E");
}

.toolbar_texteditor div.colorbts:hover div[class^="iconbt_color"] {
  opacity: 1.0;
  cursor: pointer;
}

.toolbar_texteditor div.iconbt_color-1 {
  background: var(--color-1);
}

.toolbar_texteditor div.iconbt_color-2 {
  background: var(--color-2);
}

.toolbar_texteditor div.iconbt_color-3 {
  background: var(--color-3);
}

.toolbar_texteditor div.iconbt_color-4 {
  background: var(--color-4);
}

.toolbar_texteditor div.iconbt_color-5 {
  background: var(--color-5);
}


*[editor-tags][is-empty]:after {
  content: 'Text Eingeben';
}

*[editor-tags][placeholder]:empty:after {
  content: attr(placeholder);
}

*[editor-tags][is-empty]:after,
*[editor-tags][placeholder]:empty:after {
  content: attr(placeholder);
  opacity: 0.2;
  white-space: nowrap;
  pointer-events: none;
}

*[editor-tags]:focus {
  outline: dotted var(--ci-color) 1px;
  outline: none;
}

