/* hotfix:  gin.css (ca. Zeile 2052) setzt Hintergrund auf transparent - warum auch immer */
body fieldset:not(.fieldgroup) {
  background: #fff;
}

/* drupal messages */
.messages-list {

	.messages__content {
		font-weight: 500;
	}
}

div[data-drupal-messages] {

  .messages--error {
    background-color: #FEF3F2;
    border: 1px solid #FDD6C3;
    color: #55160C;

    h2 {
      color: #B42318;
    }

    .messages__content,
    a {
      color: #55160C;
    }
  }

  .messages--info {
    background-color: #EFF8FF;
    border: 1px solid #B2DDFF;

    h2 {
      color: #175CD3;
    }

    .messages__content,
    a {
      color: #102A56;
    }

    .messages__header::before {
      width: 20px;
      height: 20px;
      background-color: #1570EF;
      mask-image: url('../icons/info.svg');
      mask-size: 20px 20px;
    }
  }

  .messages--status {
    background-color: #ECFDF3;
    border: 1px solid #ABEFC6;

    h2 {
      color: #067647;
    }

    .messages__content,
    a {
      color: #067647;
    }

    .icon-close {
      background-color: #067647;
    }
  }

  .messages__header:empty {
    margin-block-end: 0;

    &::before {
      inset-block-start: calc((1lh - 20px) / 2);
    }
  }

}

/* copy embed code (e.g. events) */
.uv-copy-code {
  position: relative;
  margin: 1rem 0;
  padding: 1rem;
  background: #f6f6f6;
  border-radius: 6px;
}

.uv-copy-code__content {
  display: block;
  padding-right: 3rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: monospace;
  font-size: 0.875rem;
}

.uv-copy-code__button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

/* Copy-Icon */
.uv-copy-code__icon::before {
  content: "⧉";
  font-size: 18px;
}

/* Häkchen nach dem Kopieren */
.uv-copy-code__button.is-copied .uv-copy-code__icon::before {
  content: "✓";
}

/* Tooltip */
.uv-copy-code__button::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  padding: 4px 8px;
  border-radius: 4px;
  background: #222;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.uv-copy-code__button:hover::after,
.uv-copy-code__button:focus-visible::after {
  opacity: 1;
}