.counter.seconds, .counter-caption.seconds {
  display: none;
}

.counter-group:before,
.counter-group:after {
  content: " ";
  display: table;
}

.counter-group:after {
  clear: both;
}

.counter-block {
  float: left;
  margin-right: 1rem;
}

.counter-block .counter {
  position: relative;
  width: 28px;
  height: 34px;
  overflow: hidden;
}

.counter-block .counter .number {
  width: 46%;
  height: 100%;
  position: absolute;
  top: -10000px;
}

.counter-block .counter .number.tens {
  left: 0;
}

.counter-block .counter .number.units {
  left: 50%;
}

.counter-block .counter .number.hundreds {
  display: none;
}

.counter-block .counter .number.show {
  top: 0;
  z-index: 2;
}

.counter-block .counter .number.hidden-down {
  top: 100%;
}

.counter-block .counter .number.hidden-up {
  top: -100%;
  z-index: 100;
}

.counter-block .counter.with-hundreds {
  width: 42px;
}

.counter-block .counter.with-hundreds .number {
  width: 30.66%;
}

.counter-block .counter.with-hundreds .number.tens {
  left: 33.33%;
}

.counter-block .counter.with-hundreds .number.units {
  left: 66.66%;
}

.counter-block .counter.with-hundreds .number.hundreds {
  display: block;
  left: 0;
}
/* Die Ziffern rollen beim Wechsel nach oben aus dem Feld heraus. Bis TYPO3 v14
   hat das ein jQuery-Plugin animiert, jetzt macht es diese Transition. */
.counter-block .counter .number {
  transition: top 0.4s ease;
}

.counter-block .counter .number.hidden-up {
  transition: none;
}
