/* Die Original-SVGs ersetzen die einfarbige Maske nur bei der Form Bookstar. */
.wp-postratings-shape-bookstar .wp-postratings-item {
  -webkit-mask-image: none; mask-image: none;
  background-color: transparent;
  background-image: var(--bookstar-off);
  background-repeat: no-repeat; background-position: center; background-size: contain;
}
.wp-postratings-shape-bookstar .wp-postratings-fill .wp-postratings-item {
  background-image: var(--bookstar-on);
}
.wp-postratings-shape-bookstar.wp-postratings-scale.wp-postratings-vote label .wp-postratings-item {
  position: relative;
  background-image: var(--bookstar-off);
}
.wp-postratings-shape-bookstar.wp-postratings-scale label .wp-postratings-item::after {
  content: ""; position: absolute; inset: 0;
  background: var(--bookstar-on) center / contain no-repeat;
  clip-path: inset(0 calc(100% - var(--wp-postratings-step-fill, 0%)) 0 0);
  pointer-events: none;
}
.wp-postratings-shape-bookstar.wp-postratings-scale label:hover .wp-postratings-item,
.wp-postratings-shape-bookstar.wp-postratings-scale input:focus-visible + label .wp-postratings-item {
  background-image: var(--bookstar-hover);
}
.wp-postratings-shape-bookstar.wp-postratings-scale label:hover .wp-postratings-item::after,
.wp-postratings-shape-bookstar.wp-postratings-scale input:focus-visible + label .wp-postratings-item::after {
  display: none;
}

/* Wert 1: Motiv D */
.wp-postratings-shape-bookstar .wp-postratings-row .wp-postratings-item:nth-child(1),
.wp-postratings-shape-bookstar.wp-postratings-scale input[value="1"] + label .wp-postratings-item {
  --bookstar-on: url("assets/BOOKSTAR_25_RatingStern_D.svg");
  --bookstar-off: url("assets/BOOKSTAR_25_RatingStern_D_weiss.svg");
  --bookstar-hover: url("assets/BOOKSTAR_25_RatingStern_D_50.svg");
}

/* Wert 2: Motiv C */
.wp-postratings-shape-bookstar .wp-postratings-row .wp-postratings-item:nth-child(2),
.wp-postratings-shape-bookstar.wp-postratings-scale input[value="2"] + label .wp-postratings-item {
  --bookstar-on: url("assets/BOOKSTAR_25_RatingStern_C.svg");
  --bookstar-off: url("assets/BOOKSTAR_25_RatingStern_C_weiss.svg");
  --bookstar-hover: url("assets/BOOKSTAR_25_RatingStern_C_50.svg");
}

/* Wert 3: Motiv B */
.wp-postratings-shape-bookstar .wp-postratings-row .wp-postratings-item:nth-child(3),
.wp-postratings-shape-bookstar.wp-postratings-scale input[value="3"] + label .wp-postratings-item {
  --bookstar-on: url("assets/BOOKSTAR_25_RatingStern_B.svg");
  --bookstar-off: url("assets/BOOKSTAR_25_RatingStern_B_weiss.svg");
  --bookstar-hover: url("assets/BOOKSTAR_25_RatingStern_B_50.svg");
}

/* Wert 4: Motiv A */
.wp-postratings-shape-bookstar .wp-postratings-row .wp-postratings-item:nth-child(4),
.wp-postratings-shape-bookstar.wp-postratings-scale input[value="4"] + label .wp-postratings-item {
  --bookstar-on: url("assets/BOOKSTAR_25_RatingStern_A.svg");
  --bookstar-off: url("assets/BOOKSTAR_25_RatingStern_A_weiss.svg");
  --bookstar-hover: url("assets/BOOKSTAR_25_RatingStern_A_50.svg");
}
