@font-face {
  font-family: "Editorfont";
  src: url("../../fonts/Roboto-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Editorfont";
  src: url("../../fonts//Roboto-Medium.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

/* GLOBAL */

html {
  font-size: 16px;
  --full-height: 100vh; /* Overwritten in AppController.js */
}

body {
  margin: 0;
  height: var(--full-height);  
  color: #333;
  --alert-red: #c00;
  --border-color: #ddd;
  --notice-color: #f83c00;
  --font: "Editorfont";
  overflow: hidden;
  background-color: #fff;
  font-family: var(--font), sans-serif;
}

body * {
  box-sizing: border-box;
}

a {
  color: var(--main-color);
  text-decoration: none;
  cursor: pointer;
}

a:hover {
  text-decoration: underline;
}


input[type=text],
input[type=password],
input[type=number],
input[type=date],
input[type=email],
textarea, 
textareaXL, 
textareaXXL, 
select,
.form-input.text,
.form-input.textarea,
.form-input.textareaXL,
.form-input.textareaXXL {
  font-family: var(--font);
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  box-sizing: border-box;
  padding: 0px 10px;
  box-sizing: border-box;
  background-color: #ffffff;
}

input:not([type=checkbox]):not([type=radio]):not([type=range]),
.form-input.text,
.form-input.textarea,
.form-input.textareaXL,
.form-input.textareaXXL {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textareaXL:-webkit-autofill,
textareaXL:-webkit-autofill:hover,
textareaXL:-webkit-autofill:focus,
textareaXXL:-webkit-autofill,
textareaXXL:-webkit-autofill:hover,
textareaXXL:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  background-color: #fff;
  transition: background-color 5000s ease-in-out 0s;
}

select, option {
  font-family: inherit;
}


button {
  outline: -webkit-focus-ring-color none;
}

/* HEADLINE STYLES */

h1,
h2,
h3,
h4,
h5,
h6 {  
  margin: unset;
  font-family: var(--font);
  font-weight: bold;
}

h1 {
  font-size: 1.2rem;
}

h2 {
  font-size: 1rem;
}

h3 {
  font-size: 1rem;
}

h4 {
  font-size: .8rem;
}

:disabled {
  opacity: 0.5;
  cursor: default !important;
}

ul {
  padding: 0;
  margin: 0;
}

/* Formatting */

.big {
  font-size: 1.1rem;
}

.small {
  font-size: 0.85rem;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.float-left {
  float: left;
}

.float-right {
  float: right;
}

/* BIG CHECKBOX */

.big-checkbox-input {
  display: none;
}

.big-checkbox-label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 25px;
  width: 25px;
  background-color: #ddd;
  border-radius: 2px;
  margin-top: 3px;
  cursor: pointer;
}

.big-checkbox-input:checked + .big-checkbox-label {
  background-color: var(--main-color);
}

.big-checkbox-label > i {
  display: none;
  color: #fff;
  font-size: 16px;
}

.big-checkbox-input:checked + .big-checkbox-label > i,
.big-checkbox-label:hover > i {
  display: block;
}

/* FORM-SECTIONS */

*:not(.form-section) > .form-section {
  width: 100%;
  position: relative;
  border-bottom: 1px solid #ddd;
  padding: 10px 0px;
}

*:not(.form-section) > .form-section:last-of-type {
  border-bottom: none;
}

.field.required-warning::after {
  content: 'Dieses Feld ist ein Pflichtfeld. Um die Vorlage fertigstellen zu können, bitte einen Wert eintragen.';
  grid-column: 1/3;
  padding-top: 0.25em;
  font-size: 12px;
  color: var(--alert-red);
}

.form-section {
  display: grid;
  grid-template-columns: 38.5% 58.5%;
  justify-content: space-between;
}

.form-section.invisible {
  display: none;
}

.form-section > h2
.form-section > h3
.form-section > h4 {
  grid-column: 1 / 3;
}

.form-container-left {
  grid-column: 1 / 2;
  display: flex;
/*   align-items: center; */
  flex-direction: column;
  justify-content: center;
  font-size: 0.95em;
}

.form-container-left.headline {
  font-family: var(--font);
  font-weight: bold;
}

.form-container-left > .field-name {
  font-weight: bold;
}

.field.required > .form-container-left > .field-name {
  width: fit-content;
  position: relative;
}

.field.required > .form-container-left > .field-name::before {
  content: '*';
  position: absolute;
  left: 105%;
}

.field.required > .form-container-left > .field-name::after {
  content: 'Pflichtfeld';
  position: absolute;
  top: calc(50% - .95em);
  left: calc(100% + 1em);
  padding: .4em .4em .3em;
  border-radius: 2px;
  background-color: #fff;
  box-shadow: 2px 2px 5px rgba(0,0,0,.2);
  opacity: 0;
  transition: all .3s ease-out;
}

.field.required > .form-container-left > .field-name:hover::after {
  opacity: 1;
}

.form-container-left > .field-description {
  font-size: 12px;
  margin-top: 10px;
  color: #777;
  font-style: italic;
}

.form-section.container > .form-container-left {
  grid-column: 1 / 3;
}

.form-container-right {
  grid-column: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.form-container-left + .form-container-right {
  grid-column: 2 / 3;
  justify-content: flex-start;
}

.form-container-right button {
  margin: 0;
}

.field.required-warning > .form-container-right > .form-input.text,
.field.required-warning > .form-container-right > .form-input.textarea,
.field.required-warning > .form-container-right > .form-input.textareaXL,
.field.required-warning > .form-container-right > .form-input.textareaXXL,
.field.required-warning > .form-container-right > button {
  border: 2px solid var(--alert-red);
}

.form-section > .form-section {
  grid-column: 1 / 3;
}

*:not(.form-section) > .form-section > h2,
*:not(.form-section) > .form-section > h3,
*:not(.form-section) > .form-section > h4,
*:not(.form-section) > .form-section > .form-container-left,
*:not(.form-section) > .form-section > .form-container-right,
*:not(.form-section) > .form-section > .form-section {
  margin: 5px 0px;
}

*:not(.form-section) > .form-section > .form-section > h2,
*:not(.form-section) > .form-section > .form-section > h3,
*:not(.form-section) > .form-section > .form-section > h4,
*:not(.form-section) > .form-section > .form-section > .form-container-left,
*:not(.form-section) > .form-section > .form-section > .form-container-right,
*:not(.form-section) > .form-section > .form-section > .form-section,
*:not(.form-section) > .form-section > .form-section > .form-section > h2,
*:not(.form-section) > .form-section > .form-section > .form-section > h3,
*:not(.form-section) > .form-section > .form-section > .form-section > h4,
*:not(.form-section) > .form-section > .form-section > .form-section > .form-container-left,
*:not(.form-section) > .form-section > .form-section > .form-section > .form-container-right,
*:not(.form-section) > .form-section > .form-section > .form-section > .form-section,
*:not(.form-section) > .form-section > .form-section > .form-section > .form-section > h2,
*:not(.form-section) > .form-section > .form-section > .form-section > .form-section > h3,
*:not(.form-section) > .form-section > .form-section > .form-section > .form-section > h4,
*:not(.form-section) > .form-section > .form-section > .form-section > .form-section > .form-container-left,
*:not(.form-section) > .form-section > .form-section > .form-section > .form-section > .form-container-right,
*:not(.form-section) > .form-section > .form-section > .form-section > .form-section > .form-section {
  margin: 2.5px 0px;
}

.form-section.user-setting {
  margin: 0 !important;
}

.form-section.user-setting .button {
  margin: 2.5px 0;
}

/* TEXT INPUTS */

.form-container-right.text,
.form-container-right.textarea,
.form-container-right.textareaXL,
.form-container-right.textareaXXL {
  display: grid;
  grid-template-columns: 100%;
  grid-gap: 7px;
}

.form-container-right.text > *,
.form-container-right.textarea > *,
.form-container-right.textareaXL > *,
.form-container-right.textareaXXL > * {
  grid-column: 1/2;
}

.form-input.text,
.form-input.textarea,
.form-input.textareaXL,
.form-input.textareaXXL {
  width: 100%;
  min-height: 40px;
  line-height: 20px;
  display: block;
  padding: 10px;
}

.form-input.text {
  max-height: 40px;  
  overflow: hidden;
}

.form-input.text * {
  display: inline; 
}

.form-input.text br {
  display: none; 
}

.form-input.textarea {
  max-height: 113px;  
  overflow-y: auto;
  scrollbar-width: thin;
}

.form-input.textareaXL {
  max-height: 226px;  
  overflow-y: auto;
  scrollbar-width: thin;
}

.form-input.textareaXXL {
  max-height: 339px;  
  overflow-y: auto;
  scrollbar-width: thin;
}

.button.form-text-suggestions-button {
  justify-self: end;
  display: flex;
}


/* FORMATTING INPUT */

.field-formatoptions {
  width: 100%;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

#categories.apple-mobile .field-formatoptions {
  grid-row: 1/2;
}

button.field-formatoption,
button.field-formatoption-erase {
  min-width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  background-color: var(--border-color);
  cursor: pointer;
}

button.field-formatoption > i {
  line-height: 30px;
}


/* PASSWORD INPUT */

.password input:valid {
  background-color: rgba(0,128,0,.2);
}

/* .password input:invalid {
  background-color: rgba(255,0,0,.2);
}
 */

/* CHECK INPUT */

.check .form-input {
  display: none;
}

.check .toggle-container {
  display: flex;
  position: relative;
  height: 15px;
  width: 25px;
  cursor: pointer;
  padding: 15px 0;
}

.check .toggle-container.small {
  height: 12px;
  width: 20px;
  margin-right: 8px;
}

.check .toggle-bar {
  box-sizing: border-box;
  position: absolute;
  height: 10px;
  width: 25px;
  top: 10px;
  border-radius: 5px;
  background-color: #cdcdcd;
}

.check .toggle-bar.small {
  height: 8px;
  width: 19px;
  left: 1px;
  top: 2px;
  border-radius: 4px;
}

.check .form-input:checked + label .toggle-bar {
  background-color: var(--main-color);
  opacity: 0.3;
}

.check .toggle-button {
  box-sizing: border-box;
  position: absolute;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  box-shadow: 0px 1px 3px rgba(0,0,0,0.35);
  top: 7px;
  background-color: #eee;
  transition: all 0.1s linear;
}

.check .toggle-button.small {
  height: 12px;
  width: 12px;
}

.check .form-input:checked + label .toggle-button {
  background-color: var(--main-color);
  transform: translatex(10px);
  transition: all 0.1s linear;
}

.check .form-input:checked + label .toggle-button.small {
  transform: translatex(8px);
}


/* PREVIEW INPUT */

.preview-options .form-input {
  display: none;
}

.preview-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 5px;
}

.form-container-left + .preview-container {
  grid-template-columns: repeat(3, 1fr);
}

.preview-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 83px;
  border-radius: 2px;
  cursor: pointer;
  font-size: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}

.preview-image:hover {
  background-color: #f9f9f9;
  filter: brightness(95%);
}

.preview-options .form-input:checked + .preview-image {
  outline: 3px solid var(--main-color) !important;
  outline-offset: -2px !important;
}

.form-container-wide {
  width: 100%;
  display: grid;
  grid-template-columns: auto auto auto auto auto;
  grid-row-gap: 7.63px;
}

.preview-options.field-wide {
  flex-direction: column;
}


/* DROPDOWN INPUT */

.dropdown-container {
  position: relative;
  cursor: pointer;
}

.dropdown-container > .select-icon {
  width: auto;
  height: auto;
  position: absolute;
  right: 5px;
  line-height: 40px;
  pointer-events: none;
}

.form-input.dropdown {
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  appearance: none;
  width: 100%;
  height: 40px;
  padding: 0px 10px;
  font-family: var(--font), sans-serif;
  color: inherit;
  font-size: 1rem;
  line-height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  outline: none;
  box-shadow: none;
  cursor: pointer;
}

.form-input.dropdown::-ms-expand {
  display: none;
}

.dropdown > option {
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  appearance: none;
  font-family: var(--font), sans-serif;
}


/* IMAGE INPUT */

.image-selection > .form-container-right {
  justify-content: space-between;
}

.image-selection-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.thumbnail-container {
  position: relative;
  display: none;
}

.thumbnail-container.active {
  display: block;
}

.thumbnail-image {
  display: block;
  width: 140px;
  height: auto;
}

.thumbnail-delete {
  position: absolute;
  top: 0;
  right: 0;
  width: 25px;
  height: 25px;
  background-color: rgba(255,255,255,0.4);
  border-bottom-left-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
}

.thumbnail-delete:hover {
  color: #222;
}


/* RANGE INPUT */

.range-slider > .form-container-right {
  justify-content: space-between;  
}

.slider {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  height: 65px;
  max-width: 100%;
}

.slider-container {
  position: absolute;
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: 18px auto auto;
/*   grid-column-gap: 15px; */
  grid-row-gap: 5px;
  font-size: .8rem;
}

.slider-label {
/*   grid-column: 1 / 2; */
/*   grid-row: 1 / 2; */
/*   position: relative; */
  position: absolute;
/*   top: -5px; */
/*   left: 0px; */
  width: 50px;
/*   margin-bottom: 8px; */
/*   padding: 0 5px; */
/*   margin-right: auto; */
/*   margin-left: -17.5px; */
  text-align: left;
}

.slider-label::after {
  content: attr(label);
  margin-left: 1px;
}

.form-input.slider-range {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  appearance: none;
  width: 100%;
  border: none;
  margin: 0px;
  cursor: pointer;
  background-color: rgba(0,0,0,0);
}

.form-input.slider-range:focus {
  outline: none;
}

.minmax {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

/* Webkit */ 

.form-input.slider-range::-webkit-slider-runnable-track {
  width: calc(100% - 2px);
  height: 5px;
  cursor: pointer;
  box-shadow: none;
  background: #cdcdcd;
  border-radius: 2.5px;
  margin: 5px 0px;
}

.form-input.slider-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  border: none;
  box-shadow: 0px 1px 3px rgba(0,0,0,0.35);
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background-color: #eee;
  cursor: pointer;
  margin-top: -5px;
} 

/* Firefox */

.form-input.slider-range::-moz-range-track,
.form-input.slider-range::-moz-range-progress {
  width: calc(100% - 2px);
  height: 5px;
  cursor: pointer;
  box-shadow: none;
  border-radius: 2.5px;  
}

.form-input.slider-range::-moz-range-track {
  background: #cdcdcd;
}

.form-input.slider-range::-moz-range-progress {
  background: var(--main-color);
}

/* IE / Edge */ 

.form-input.slider-range::-ms-track
{
  appearance: none;
  width: calc(100% - 2px);
  height: 5px;
  cursor: pointer;
  box-shadow: none;
  border-radius: 2.5px;
  box-sizing: border-box;
}

.form-input.slider-range::-ms-fill-lower {
  background: #999999;
}

.form-input.slider-range::-ms-fill-upper {  
  background: #cdcdcd;
}
  
.form-input.slider-range::-ms-thumb {
  -ms-appearance: none;
  border: none;
  box-shadow: 0px 1px 3px rgba(0,0,0,0.35);
  height: 10px;
  width: 10px;
  border-radius: 50%;
  background-color: #eee;
  cursor: pointer;
  margin-top: .5px;
}

.form-input.slider-range::-moz-range-thumb {
  -moz-appearance: none;
  border: none;
  box-shadow: 0px 1px 3px rgba(0,0,0,0.35);
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background-color: #eee;
  cursor: pointer;
  margin-top: -2.5px;
}
.form-input.slider-range::-moz-focus-outer {
  border: 0;
} 


/* ICON INPUT */

.icon-options .form-input {
  display: none;
}

.option-icon {
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 3.5px;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  font-size: 19px;
  color: #888;
  cursor: pointer;
}

.option-icon:first-of-type {
  margin-left: 0;
}

.option-icon:last-of-type {
  margin-right: 0;
}

.option-icon:hover {
  filter: brightness(95%)
}

.option-icon > i {
  line-height: 30px;
}

.icon-options .form-input:checked + .option-icon {
  outline: 3px solid var(--main-color) !important;
  outline-offset: -2px !important;
}


/* QR-CODE INPUT */

.qr-code-container {
  gap: 5px;
}


/* LOGO INPUT */

.logo-selection-container {
  gap: 5px;
}


/* NO INPUT, BUT INFORMATION */

.form-container-right.form-info {
  display: block;
  height: auto;
  font-size: .8rem;
  text-align: left;
}



/* BUTTONS GENERAL*/

.button {
  font-family: var(--font);
  font-weight: bold;
  font-size: .85rem;
  height: 32px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 2px;
  cursor: pointer;
  margin: 0 10px 0 0;
  box-sizing: border-box;
  border: none;
  padding: 0 6px; 
}

a.button:hover {
  text-decoration: none;
}

.button.big {
  height: 40px;
  line-height: 40px;
  margin-left: 0;
  margin-right: 0;
}

.button-secondary {
  background-color: #fff;
  color: inherit;
  border: 1px solid var(--border-color);
}

.button-secondary:hover:not(:disabled) {
  background-color: #f4f4f4;
}

.button-primary {
  background-color: var(--main-color);
  color: #fff;
}

.button-primary:hover:not(:disabled) {
  opacity: 0.8;
}

.button-premium {
  background-color: var(--premium-color);
/*   color: #fff;   */
  box-shadow: 0px 0px 2px rgba(150, 150, 150, 1);
}

.button-premium:hover:not(:disabled) {
  opacity: 0.8;
}

.button-icon, 
.button-text {
  margin-right: 4px;
  margin-left: 4px;
}


/* form group */

.form-group {

}

.form-group-buttons {
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.form-group-buttons > .button {
  margin: 0 0 0 5px;
}

.form-group-row  {
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 0;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  padding: 0px;
  box-sizing: border-box;
}

.form-group-row:first-of-type {
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;  
}

.form-group-row:last-of-type {
  border-bottom: 1px solid var(--border-color);
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
}

.form-group-row > * {
  grid-column-end: span 10;
  border: none;
  display: flex;
  align-items: center;
}

.form-group-row > :not(:last-of-type) {
  border-right: 1px solid var(--border-color);
}

.form-group-row > .span-1 {
  grid-column-end: span 1;
}

.form-group-row > .span-2 {
  grid-column-end: span 2;
}

.form-group-row > .span-3 {
  grid-column-end: span 3;
}

.form-group-row > .span-4 {
  grid-column-end: span 4;
}

.form-group-row > .span-5 {
  grid-column-end: span 5;
}

.form-group-row > .span-6 {
  grid-column-end: span 6;
}

.form-group-row > .span-7 {
  grid-column-end: span 7;
}

.form-group-row > .span-8 {
  grid-column-end: span 8;
}

.form-group-row > .span-9 {
  grid-column-end: span 9;
}

.form-group-row > input,
.form-group-row > select {
  height: 45px;
  background-color: transparent;
  padding: 0 12px;
}

.form-group input[type=radio],
.form-group input[type=checkbox] {
  display: none;
}

.form-group-row .buttons {
  display: none;
  align-items: center;
  justify-content: center;
}

.form-group-row:hover .buttons {
  display: flex;
}

.form-group-row .button {
  margin: 2.5px;
  min-width: 32px;
}

/* use row as radio button */

input[type=radio] + .form-group-row {
  padding: 2px 2px 3px;
}

input[type=radio] + .form-group-row:last-of-type {
  padding-bottom: 2px;
}

 input[type=radio]:checked + .form-group-row:not(:only-of-type) {
  border: 3px solid var(--main-color);
  padding: 0px;
}

.form-group-row > label {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  height: 45px;
  cursor: pointer;
  padding: 0 12px;
}

.form-group-row > label > :not(:first-child):not(:last-child) {
  margin-right: 15px;
}

.form-group-row > label > :first-child {
  margin-right: auto;
}

.form-group-row > label > img {
  height: 18px;
  width: auto;
}

/* use row as accordion */

.accordion > .accordion-content {
  display: none;
  padding: 0 12px 12px 12px;
}

.accordion.open > .accordion-content {
  display: block;
}

.accordion > label .accordion-hidden {
  display: none;
}

.accordion.open > label .accordion-hidden {
  display: block;
}

.accordion > label .accordion-visible {
  display: block;
}

.accordion.open > label .accordion-visible {
  display: none;
}

/* Badges */

.badge {
  border: 1px solid var(--main-color);
  border-radius: 3px;
  color: var(--main-color);
  padding: 3px 5px;
  font-size: 0.7rem;
}

.badge:hover {
  text-decoration: none;
}






















