.vorlage {
  border: 6px solid var(--farbe-honig);
  box-shadow: var(--schatten-gehoben);
  object-fit: cover;
  pointer-events: none;
  border-radius: 10px;
  position: absolute;
}

.flaeche {
  background: var(--farbe-haupt-tief);
  border-radius: 8px;
  position: absolute;
  overflow: hidden;
  box-shadow: inset 0 2px 10px #00000059, 0 0 0 6px #e2b3508c;
}

.hilfsbild {
  opacity: .25;
  object-fit: cover;
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.hilfsbild[hidden] {
  display: none;
}

.feld {
  pointer-events: none;
  position: absolute;
  box-shadow: inset 0 0 0 1px #d9e4d359;
}

.flaeche--fertig {
  animation: 1.2s ease-in-out aufleuchten;
}

@keyframes aufleuchten {
  50% {
    filter: brightness(1.08);
    box-shadow: inset 0 2px 10px #0003, 0 0 0 6px var(--farbe-honig), 0 0 40px #e2b35099;
  }
}

.teile {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.teil {
  transform-origin: 0 0;
  transition: transform .4s var(--uebergang), box-shadow .2s var(--uebergang);
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  background-repeat: no-repeat;
  border-radius: 4px;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 2px 4px #00000040, 0 8px 18px -6px #00000073;
}

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

.teil--einrasten {
  transition-duration: .2s;
}

.teil--gehoben {
  z-index: 10;
  cursor: grabbing;
  box-shadow: 0 6px 10px #00000040, 0 24px 40px -10px #0000008c;
}

.teil--fest {
  cursor: default;
  box-shadow: none;
  border-radius: 0;
}

.teil--richtig {
  box-shadow: inset 0 0 0 3px #d9e4d3d9;
}

.teil--gewaehlt {
  z-index: 5;
  box-shadow: 0 0 0 6px var(--farbe-honig), 0 14px 28px -8px #0009;
}

.spielbildschirm--tauschen .teil {
  cursor: pointer;
  transition-duration: .3s;
}
