.koerbe, .dinge {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.ding {
  transform-origin: 0 0;
  transition: transform .4s var(--uebergang), box-shadow .2s var(--uebergang);
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  background: #fff;
  border-radius: 16px;
  padding: 0;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 2px 4px #00000040, 0 12px 24px -10px #0000008c;
}

.ding img {
  box-sizing: border-box;
  object-fit: contain;
  pointer-events: none;
  width: 100%;
  height: 100%;
  padding: 4%;
}

.ding--ohne-uebergang {
  transition: none;
}

.ding--gehoben {
  z-index: 10;
  cursor: grabbing;
  box-shadow: 0 6px 10px #00000040, 0 26px 40px -12px #0009;
}

.ding--gewaehlt {
  z-index: 5;
  box-shadow: 0 0 0 6px var(--farbe-honig), 0 16px 30px -10px #0009;
}

.ding--im-korb {
  cursor: default;
  pointer-events: none;
  box-shadow: 0 2px 6px #0000004d;
}

.korb {
  pointer-events: auto;
  cursor: pointer;
  touch-action: none;
  flex-direction: column;
  align-items: center;
  display: flex;
  position: absolute;
}

.korb__schild {
  background: var(--farbe-flaeche);
  color: var(--farbe-text);
  font-family: var(--schrift-titel);
  z-index: 1;
  border-radius: 12px;
  align-items: center;
  gap: .5em;
  margin-bottom: -6px;
  padding: .25em .9em;
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  display: inline-flex;
  position: relative;
  box-shadow: 0 2px 4px #00000040, 0 10px 20px -10px #00000080;
}

.korb__schild svg {
  flex: none;
  width: 1.3em;
  height: 1.3em;
}

.korb__bild {
  flex: 1;
  width: 100%;
  min-height: 0;
}

.korb__bild svg {
  width: 100%;
  height: 100%;
  display: block;
}

.koerbe {
  z-index: 0;
}

.dinge {
  z-index: 1;
}

.korb--ziel .korb__bild {
  filter: brightness(1.12) drop-shadow(0 0 14px #e2b350b3);
}

.satz {
  z-index: 20;
  background: var(--farbe-flaeche);
  width: max-content;
  max-width: calc(100% - 200px);
  color: var(--farbe-text);
  font-family: var(--schrift-titel);
  text-align: center;
  box-shadow: var(--schatten-gehoben);
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s var(--uebergang);
  border-radius: 999px;
  margin: 0;
  padding: .3em 1em;
  font-size: clamp(1.5rem, 1.1rem + 1.1vw, 1.9rem);
  font-weight: 650;
  line-height: 1.25;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.satz--sichtbar {
  opacity: 1;
}

@media (width <= 40rem) {
  .korb__schild {
    gap: .3em;
    padding: .2em .5em;
  }

  .korb__schild svg {
    display: none;
  }

  .satz {
    max-width: calc(100% - 104px);
    font-size: 1.5rem;
    left: 16px;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ding {
    transition: none;
  }
}
