.dm-switch {
  margin-bottom: var(--articleItemMarginBottom);
}

.dm-switch__label {
  width: 40px; /* go ahead, change it! */
  position: relative;
  display: block;
  height: 19px;
  padding: 1px;
  border-radius: 29px;
  cursor: pointer;
  box-sizing:content-box;
  user-select: none;
  margin-block: .5em;
  transition: margin-top 300ms ease;
  margin: 0 auto 13px auto;
  left:-35px;
}

.dm-switch__input:checked + .dm-switch .dm-switch__label {
  margin-bottom: 0;
  transition: margin 300ms ease;
  opacity: .5;
}

.dm-switch__label:after {
  content: attr(data-descriptionOff);
  display: block;
  font-size: 12px;
  font-family: "Segoe UI", system-ui;
  transform: translate(49px,-20px);
  font-weight: bold;
  width: 105px;
  margin-top: -1px;
  line-height: 1;
}

.dm-switch__input:checked + .dm-switch .dm-switch__label:after {
  content: attr(data-descriptionOn);
  font-weight: normal;
}

.dm-switch__input {
	position: absolute;
	visibility: hidden;
}

.dm-switch__onOff {
	position: relative;
	display: block;
	font-family: "Segoe UI", system-ui;
	height: inherit;
	font-size: 12px;
	text-transform: uppercase;
	background: var(--darkGrey);
	border-radius: inherit;
	margin: 0; /* workaround LI editor */
}

.dm-switch__onOff:before, .dm-switch__onOff:after {
	position: absolute;
	top: 50%;
	margin-top: -.5em;
	line-height: 1;
	transition: inherit;
	box-sizing:content-box;
    color: #FFF;
}

.dm-switch__onOff:before {
	content: attr(data-off);
	right: 12px;
	text-shadow: 0 1px rgba(255, 255, 255, 0.5);
}

.dm-switch__onOff:after {
	content: attr(data-on);
	left: 12px;
	text-shadow: 0 1px rgba(0, 0, 0, 0.2);
	opacity: 0;
}

.dm-switch__input:checked + .dm-switch .dm-switch__onOff:before {
	opacity: 0;
}

.dm-switch__input:checked + .dm-switch .dm-switch__onOff:after {
	opacity: 1;
}

.dm-switch__knobMover {
  position: absolute;
  top: 2.5px;
  left: 2.5px;
  width: 100%;
  height: inherit;
  margin: 0; /* workaround LI editor */
}

.dm-switch__knob {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 100%;
}

.dm-switch__input:checked + .dm-switch .dm-switch__knobMover {
	transform: translateX(calc(100% - 21px));
}

.dm-switch__onOff, .dm-switch__knobMover {
	transition: all 0.3s ease;
}

/* infobox styles */
.dm-switch--infoBox {
  background-color: var(--brandColorSoft);
  line-height: normal;
  padding: 0 var(--mobileMargin) 1rem var(--mobileMargin);
  box-sizing: border-box;
  overflow: hidden;
  border-radius: var(--borderRadius);
}

.dm-switch__input:checked + .dm-switch--infoBox {
  background-color: transparent;
  transition: padding 300ms ease, border 300ms ease, background-color 300ms ease;
}

.dm-switch__headline {
  font-size: 1rem;
  margin: .8rem 0 .3rem;
  font-weight: bold;
}

.dm-switch__text {
  font-size: 12px;
}

.dm-switch__text a {
  text-decoration: underline;
  color: var(--brandColor);
}

.dm-switch__headline,
.dm-switch__text {
  display: block;
  overflow: hidden;
  max-height: 100px;
  opacity: 1;
  transition: max-height 300ms ease, margin  300ms ease, opacity 300ms ease;
}

.dm-switch__input:checked + .dm-switch .dm-switch__headline,
.dm-switch__input:checked + .dm-switch .dm-switch__text {
  max-height: 0; opacity: 0; margin: 0;
  transition: opacity 300ms ease, max-height 300ms ease, margin 300ms ease;
}

